does serving files like images via subdomain speed up loading speed. i read somewhere that static files like images, java script served via cookieless domain does mean something regarding website speed.
Is there a built-in command or a less verbose way of achieving this?
find /var/foo -maxdepth 1 -type d
Or should I just make a tiny shell script or function if I'm doing this sort of thing often?
Hello,
I have a php script that writes to a file.
But when I try to actually write to the file I get permission denied.
How can I tell what user name I need to add to the file permission in order for the php to write to it?
Thank you.
I make regular snapshots of my VM using a nightly script. These backups are compressed using WinRAR and do shrink considerably, but I suspect it's not as efficient as had the file had been deduplicated first (just a hunch which I'm hoping to test).
So instead of compressing the VHD itself, I would like to deduplicate the single file first, and then compress the output of the deduplicator.
Is anyone aware of such a CLI tool?
If I created a custom form (including Script) in Outlook 2003, published it to the personal forms library, the only way I know to create a item out of this form is "File - New - Choose Form... - Personal Forms Library - Select my Form - Ok".
Is there a faster way? For example, a link from the desktop or from the Outlook favorites folder?
Before powering down the Drobo and removing it you're supposed to use the "shutdown" functionality from the Drobo Dashboard. Is there a way to call this from the command line so it can be included in a script?
Since transferring or copying a file that is being used sometimes causes corruption of the transferred file, can we define a time interval in which Rsync checks each file in a given directory to see if there is a change within that time interval ?
Files that are not changed during that interval will be transferred, while those that have changes will not.
Can I do that with rsync ? Or another tool ?
Is there a script to add this functionality to Rsync ?
Thanks
I'm on a work machine, setting up a virtual ubuntu image using virtual box.
After I installed the image, I can't seem to connect to the internet.
If I look at network and sharing center on my host OS (W7) I see that the VirtualBox Host-Only Network reads as "no network access"
How can I set it up so that it uses the same network as the host OS.
UPDATE!
Okay, is there a way I can tell virtual box host-only network to use a proxy script?
We have a production database and visual studio 2010 database project. We had to make some changes in database schema. Unfortunately we don't have previous database schema file for production database. Is there a way to export existing database schema as *.dbschema file, preferably from Microsoft SQL Server Management Studio (2008 R2)? This way we could run schema comparison and generate update script.
If I have two computers, both running Windows 7, on my home network, is there some way to write a script so that I can click on a single icon on the one computer and make the other computer execute a program?
Clearly, I could do this by accessing the other computer through remote desktop connection and then executing the program, but I would like to avoid (or at least automate) making the connection so I can just click a single icon to have it happen.
I'm constructing a backup script for Windows 7, and the last action I want it to perform is to safely "remove" the USB drive that it is backing up to. I am under the impression that plugging the drive into the SAME USB port all the time will keep the same DEV_ID, correct me if I'm wrong. With a Command Line (or PowerShell), how can I tell Windows to safely remove the hardware automatically without user input?
Just as a place holder, other OSes that may have a way to do this would be great to know as well
I have been playing around with the Reddit open source software and have been getting no where fast.
I was wondering if anybody can instruct me on how to install the software on a web server. I know how to install normal php scripts etc, but I've never installed a software such as a python or rails script before.
I'm not very good with commands but I know how to run them. If that makes sense.
Thanks!
I do "crontab -e" and add the following line:
0 9 * * * /usr/bin/python /home/g1/g1/utils/statsEmail.py > /home/g1/log/statsemail.log
But it doesn't work! Why? The script itself works. Also, the log is empty.
My other command in crontab is this, and it works:
0 9 * * * /usr/bin/python /home/g1/g1/sphinx/updateall.py > /home/g1/log/updateall.log
For some reason, ifcfg-eth* under /etc/sysconfig/network-script were deleted.
Is there any tools that could detect network interfaces and re-generate these files?
Another question :
If I manually added ifcfg-eth0, is there any method to make it work without reboot?
I tried "/etc/init.d/networking restart", and it doesn't work.
I'm looking for recommendations on how to automate / simplify deployment from a git repository (github) to a hosting service. The hosting service supports FTP (yuck) / SSH / SFTP access.
Any good tools out there to give push-button deployment of new revisions? I know it's not a hard script to write, but when you start thinking about things like roll-back and multiple sites, it gets complicated enough that I'd rather not re-invent the wheel.
I'm running some Fortran software (LBLRTM) and a shell-script that prepares input generates a number of files with names TAPE3, TAPE4, etc. For debugging purposes, I used file to identify the file type. file tells me:
TAPE3: 8086 relocatable (Microsoft)
My guess is that file is wrong here, and that it's just a binary file that happens to look like a 8086 relocatable. But what is a 8086 relocatable?
i have one windows server (Plesk 9.5) with MailEnable free Edition, i want to transfer from MailEnable to Hmail Server,
i am looking for some program or script to transfer all email accounts, email redirects and emails from MailEnable to Hmail Server.
Thank
I'm trying to understand how and if it is possible to list the installed applications of Windows clients via Microsoft SMS (System Management Server). What I can find it's only VB script snippet code to get the installed applications onto the client machine, but I don't know how SMS could aggregate these data.
Could anyone give me an indication or link?
To facilitate automation of guest VM provisioning, how do I set (in a script) the IP address on a guest VM's NIC (or NIC's) once a new VM has booted?
Is there a way to "inject" netsh commands via the Citrix guest OS tools (for Windows for example) once the host has started?
Or can this be done via the Citrix API/SDK or the xe tools?
These are windows 2008 servers that have been sysprep'd so when the boot for the first time they have no IP address.
Is it possible to secure postfix in a way, that incoming emails are checked on whether the email comes really from the sender?
Is that possible to write php script and chose a sender, like the mail is really coming from the sender and what are the possibilities for postfix to find out that this mail is not actually coming from the real sender?
What I have found out and activated are the options
smtpd_sender_restrictions = reject_unknown_sender_domain
unknown_address_reject_code = 554
smtpd_client_restrictions = reject_unknown_client
unknown_client_reject_code = 554
Please mention, whether I have missed out on any points!
Is it possible to change the default terminal emulator on Windows (7 and 8 in particular) from cmd to, for example, Console2 or ConEmu? In essence, I want all command line tools, whether launched by double clicking, from "Run" or by other processes to use the custom terminal.
This is a trivial matter on Linux, is it even possible on Windows?
It would be especially helpful if this could be done via a script.
I use eCryptFS to encrypt the home directory of my laptop. My backup script copies the encrypted files to a server (together with everything else in (home/.ecryptfs).
How can I mount the encrypted files of the backup? I'd like to verify that I can do that, and that everything is in place.
My naive try with
mount -t ecryptfs /backup/home/.ecryptfs/boldewyn /mnt/test
didn't work, eCryptFS wanted to create a new partition.
I have the following in my Apache conf to get PHP-FPM working:
FastCgiExternalServer /srv/www/fast-cgi-fake-handler -host 127.0.0.1:9000
AddHandler php-fastcgi .php
AddType text/html .php
Action php-fastcgi /var/www/cgi-bin
Alias /var/www/cgi-bin /srv/www/fast-cgi-fake-handler
DirectoryIndex index.php
This works fine except that SCRIPT_NAME is always /var/www/cgi-bin and some scripts use SCRIPT_NAME to work out the location of the current script (vBulletin).
Google has plenty of solutions for Nginx but not a word for Apache.
i have one windows server (Plesk 9.5) with MailEnable free Edition, i want to transfer from MailEnable to Hmail Server,
i am looking for some program or script to transfer all email accounts, email redirects and emails from MailEnable to Hmail Server.
Thank
I'm writing a shell script that will make backups of my system ( like this: https://help.ubuntu.com/8.04/serverguide/C/backup-shellscripts.html ).
What is the best location in my system, to store this file? I know, I can put it anywhere, but what will be if it will be stored in a directory being backed up? What is the best practice here?
I'm running an Ubuntu-server.