I can easily write an app using 7z or winrar but is there an app that i can feed a long list of filenames and have it automatically go through my folders and unzip files it finds?
I don't want to assume that someone has Word installed on their machine. What is the best file format so that everyone can read a document file?
The only ones I can think of are:
Rich Text Format
Open Document Format
Portable Document Format
Plaint Text
For example, what would be the best file format to write a resume in? I've actually written mine in XHTML, but some places simply demand a .doc file.
I am looking for a TCP proxy - a utility that will connect to a port, read a TCP stream, and write it to clients that connect to it.
The key point here is that there may be more than one client, and each client should receive a copy of the stream.
Preferably windows solution, but Linux can be useful as well.
I am running mac 10.6.4 on an iMac and am using it as a developer server.
I have Apache and Entropy php5 installed, when i write my applications, some pages wont run when php has errors, however these are not recorded on a log file, I created one php_errors.log and entered the following on the php.ini file
error_log = /usr/local/php5/logs/php_errors.log
However errors are not written to this file and i have
log_errors = true
What could be the problem
I'm looking to secure my server. Initially my first thought was to use iptables but then I also learnt about Fail2ban. I understand that Fail2ban is based on iptables, but it has the advantages of being able to ban IP's after a number of attempts.
Let's say I want to block FTP completely:
Should I write a separate IPtable rule to block FTP, and use Fail2ban just for SSH
Or instead simply put all rules, even the FTP blocking rule within the Fail2Ban config
Any help on this would be appreciated.
James
Hello,
I am trying to write a script which includes disk defragmentation as one of its steps. defrag needs administrative rights to work. I tried to use runas /user:Administrator, but it always asked me for password (even though there isn't one set).
The script needs to run unattended for a long time, and it needs to be started from standard user account (it is actually being run by cygwin), so I'd like to get rid of that prompt. Is this possible?
Thanks,
Hy,
I need a (linux/shell) script which does the following:
It takes a folder full of jpg-files, generates thumbnails and previews (maybe using imagemagik's convert) and creates a html-page which includes all the thumbnails, opens a preview using something like LightBox and links to the original size.
Does somebody know a script which does this? I could write one on my own, but it would save me some time.
There's a bucket into which some users may write their data for backup purposes.
They use s3cmd to put new files into their bucket.
I'd like to enforce a non-destruction policy on these buckets - meaning, it should be impossible for users to destroy data, they should only be able to add data.
How can I create a bucket policy that only lets a certain user put a file if it doesn't already exist, and doesn't let him do anything else with the bucket.
I'm looking for a way to be able to track the bandwidth of multiple vhosts on an nginx web server. I'm guessing there is a way that I can set up the log files to output this information and then I can write a script to parse through the log files and add up the file sizes.
If that is the case does anyone know the correct log format, and if there is already a script out there that does this?
I want to know what the average CPU usage is of a particular executable on my PC over a day.
I could write a C# app to do this, but it must exist out there?...
I'm using Windows 7 64 bit, in case it matters!
Thanks!
It seemed quite strange.
I have a share folder with full read/write permission on my Windows 2003 server. With a XP client, I can create a new folder on the share folder, and I can copy files to it normally, but I can not copy these files back to my client PC. I tried use ftp,and webdav to get the files from server. None of them worked. Is the issue related with NETWORK SERVICE?
Thanks for your help.
I have an ISO image of a DVD which is 8.5GB in size. I find this strange, because that is about 500MB more than a standard DL DVD can hold. I tried overburning with Nero, but it failed. Is it possible to somehow burn such an image? Are there some special DVD blanks that allow you to write more?
Or is this ISO simply made by some tool without any regards of whether it can be burned or not?
I have LAMP running in Ubuntu.
However, my files are located on a separate NTFS hard drive (/media/shared/mysite/).
going to http://localhost gives me a 403
how can i, securely, allow apache to read/write the NTFS disk?
'shared' is currently being mounted when system boots. here's the entry in fstab:
/dev/sda1 /media/shared ntfs-3g quiet,defaults,locale=en_US.utf8,umask=000 0 0
I am using this is fstab to mount the partition at backup.
/dev/sda5 /media/virtual ntfs defaults 0 0
When i reboot the permissions are automatically set to 777.
I want that only one user i.e userA can read and write , all others should not see the contents of that drive.
What should i do
anything like
/dev/sda5 /media/virtual ntfs userA 700 defaults 0 0
is there anyway to convince mput to send all sub directories of the current directory to the server. Im trying to write a script to automatically update a website when it is run. So far ive been trying
mput *
but that only sends the files in the current directory.
Any help would be appreciated.
Task
I am trying to convert a virtual machine to a live CD. Specifically, the virtual machine I am trying to convert is the IOI 2013 Competition Environment. In this task, I am aided by a guide Converting a virtual disk image: VDI or VMDK to an ISO you can distribute.
Symptoms
However, after getting through all the instructions, the live CD causes a kernel panic on boot on bare metal. In particular, the screen shows:
[0.737348] cdrom: Uniform CD-ROM driver Revision: 3.20
[0.737503] sr 3:0:0:0: >Attached scsi CD-ROM sr0
[0.737638] sr 3:0:0:0: >Attached scsi generic sg2 type 5
[0.737771] Freeing unused kernel memory: 756k freed
[0.738093] Write protecting the kernel text: 5960k
[0.738155] Write protecting the kernel read-only data: 2424k
[0.738224] NX-protecting the kernel data: 4280k
Loading, please wait...
[0.752252] udevd[100]: starting version 175
[0.768708] VMware vmxnet3 virtual NIC driver - version 1.1.29.0-k-NAPI
[0.781204] VMware PVSCSI driver - version 1.0.2.0-k
[0.789555] VMware vmxnet virtual NIC driver
[0.799356] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
[0.799356]
[0.799472] Pid: 1, comm: init Tainted: G 0 3.5.0-17-generic #28-Ubuntu
[0.799549] Call Trace:
[0.799603] [<c15bf0ec>] panic+0x81/0x17b
[0.799654] [<c104a6a5>] do_exit+0x745/0x7a0
[0.799707] [<c104a9a4>] do_group_exit+0x34/0xa0
[0.799760] [<c104aa28>] sys_exit_group+0x18/0x20
[0.799813] [<c15cff5f>] sysenter_do_call+0x12/0x28
Possible problem
I suspect that the problem is the VMware vmxnet virtual NIC driver - however, I do not know how I can uninstall it, and possibly install one for a bare metal machine. If anyone knows which packages needs installing/uninstalling at the .rootfs/ chroot directory stage, please let me know.
Details on procedure
Do note that after importing the .ova file into Virtualbox, the virtual machine is stored as a .vmdk file already, and not a .vdi file.
I would like to point out some results of the procedure followed in case of any questions. This is after extracting the filesystem from the .raw file to the .rootfs/ directory mentioned in the blog. I changed the filesystem table as mentioned in the blog, then looked at the possible "kernel optimized for virtualization".
However, I found that linux-image-generic was already installed. Also, when running the command dpkg-query --showformat='${Package}\n' -W 'vmware-tools*' (or dpkg-query --showformat='${Package}\n' -W '*-virtual'), no packages were found.
Thus, I did not find any virtualization specific packages. I proceeded to generate the iso following the steps in the blog, and burned it to a DVD.
I'm looking for a way to set a group of File Types to "Index Properties and File Contents" (Control Panel, Indexing Options, Advanced Options, File Types).
Basically I'd like to write a batch file that switches that setting for a large group of file types and be able to share it with my entire team. Clicking in the UI is time consuming for everyone.
This is a great solution for bringing up the GUI, but I'd like to create a batch file
What is the command line for Indexing Options?
I have list of person names in column A.
I want to display "1" in column B for names which end with either "e" or "i" or "n".
If there would be only one match to test against, I would write something like:
=IF( MID(A1,FIND(" ",B1)-1,1) = "e", "1", "0")
In PHP I would solve that like this:
echo in_array( $names[$row_number], array('e', 'i', 'n') ) ? '1' : '0';
What formula should I use in column B in Excel?
Is there a command that can be run to verify that a users cron job has run successfully?
Platform is Ubuntu 8.04 LTS.
I have scripts in /home/useraccount/bin/
running
crontab -l
while logged in as user results in:
# m h dom mon dow command
@hourly /home/useraccount/bin/script_1
@hourly /home/locateruser/bin/script_2
I realize scripts could send email or write to a log with a timestamp, but wondering if there is just a way to verify it ran from the command line.
I chrooted a user to the directory /var/www/upload using ChrootDirectory /var/www/upload in my etc/ssh/sshd_config.
The permissions of all the files in var/www/upload is 755 and owner is root:upload_user.
However, I still cannot modify the files. (Getting a permission denied error.)
Is it possible if I create a subdirectory with ownership upload_user:upload_user.
Is it, by any means, possible to allow my chrooted user to write to his / directory?
I have strange behavior with browsers on my PC (but it work well before yesteday)
My Chrome, FF (ERROR: Error 101 (net::ERR_CONNECTION_RESET): Unknown Error ) write me that can't connect to Internet I need to check Proxy, Firewall etc.
I did it and all settings are fine, on other PC in this area all working with the same settings. Only explorer can work in internet. How to solve it ?
Thanks
I have tried chrome://net-internals/#tests in grope and test gooogle.com but all test failed with 101 error
I am using http://www.pnotepad.org/ (i wouldnt mind switching to something else if it lightweight and has most/all features i like which i'll check on a app by app basis)
When i create a new tab/file and save it unless i write .txt i get a file with no extention. Which makes it hard to open since i cant double click it (i dont think i can tell win7 to set a default app for files with no extension)
How do i make pnotepad save with a .txt when non are specified?
already posted here so feel free to answer there.
everytime i commit/push something to the git server the file permissions change (all added/edited files in the repository have no read and execute access for the group). thus trac can't access the repository.
do I need to change permissions of the folder differently?
chmod u=rwx,g=rx,o= -R /home/git/repositories
or do i need to setup gitolite somehow to write files with different permissions???
regards,
klemens
I'd like to write a simple script that alerts me if a log changes. For this I'm using grep to find the lines I'm interested in. Right now it works like this:
grep line /var/log/file | mail -s Log [email protected]
Problem is that this sends a mail even if no matching lines are found. The mail utility from mailutils seems to have no switch telling it to drop mails that have an empty body.
Is there a quick and easy way to do so?
OK I run a streaming website and my CMS is giving me an error when uploading videos "Failed To Find Flength File" ok so I did some research. The answer I got from the coder was below. I did do all that, but the only thing I could not do is turn off what he refers to as performance cache, talked about in the last sentence... I am on a Cent OS
Assuming the script is set up properly, you are probably dealing with some kind of write-caching. Some servers perform write-caching which prevents writing out the flength file or the entire CGITemp file during the upload. The flength file or the CGITemp file do not actually hit the disk until the upload is complete, making it worthless for reporting on progress during the upload. This may be fixed using a .htaccess file assuming your host supports them. Here is a link to an excellent tutorial on using .htaccess files. I strongly recommend giving it a quick read before attempting to install your own .htaccess file.
1. A mod_security module for Apache.
To fix it just create a file called .htaccess (that's a period followed by "htaccess") and put the following lines in that file. Upload the file into the directory where the Uber-Uploader CGI ".pl" scripts resides, or in some directory above it (like your server's DOCUMENT_ROOT, i.e. the top-level of your webspace). htaccess files must be uploaded as ASCII mode, not BINARY. You may need to CHMOD the htaccess file to 644 or (RW-R--R--).
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
If the above method does not work, try putting the following lines into the file
SetEnvIfNoCase Content-Type \
"^multipart/form-data;" "MODSEC_NOPOSTBUFFERING=Do not buffer file uploads"
mod_gzip_on No
2. "Performance Cache" enabled on OS X SERVER.
If you're running OS X Server and the progress bar isn't working, it could be because of "performance caching." Apparently if ANY of your hosted sites are using performance caching, then by default, all sites (domains) will attempt to. The fix then is to disable the performance cache on all hosted sites.