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.
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
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 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.
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.
Has anyone built a program/script to transfer files between 2 hard drives, but like if both are near full....so one copies 1 file over then the other copies the other file, then they delete the files that were copied?
Kind of annoying, have a 6tb raid at about 4tb full, then 1 4.5tb basically full, can't really swap them easily....without doing many copies and deletes of files....
Anyone know a way to make them just swap? lol
For Oracle 9i + 10g (database), there used to be a really helpful script that you could run to validate your environment was correct before you did the install.
Does such a thing exist for 11g does anyone know? Or is the validation finally done by the OUI? If something similar does still exist, please can someone point me in the right direction?
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.
My main domain is example.com, but also bought example.org and example.net. I've configured my webservers at *.example.com to handle requests from the other domains and redirect them correctly to example.com, but I'd rather not re-configure all my DNS records at example.org and example.net to be the same as example.com.
Other than writing some ugly synchronization script, what should I do to have route53 answer queries against my "other" domains with the same data from the "main" domain?
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.
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!
For my company, I would like to create a single directory for each user in a server. Each directory must be personal, and I would like to create a desktop link to that directory. For example, in my server SERVER01 I need a simple structure like
users\johnsmith
users\robertgreen
users\johndoe
Each directory must have a limit of 5 gigabytes and must be accessible only to the single user and to the domain administrator. How to do in Active Directory? With 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 would like to know how can I accomplish the following:
When I join a workstation (with Windows 7) in the domain, I want that computer to be put into a specific OU. Only when its a workstation with Windows 7. This is because I have GPOs that must apply to all workstations in the domain.
Can I only accomplish this using a script? Or can I set a rule like if the computers has Windows 7, put that computer into this specific OU.
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 a batch file intended to replace all instances of tracking.js within a folder/sub folders.
FOR /R "D:\Virtual Servers (Testing)\CourseWare Master\Shared\Jenison\Version1.2\" %%I IN (tracking.js*) DO COPY /Y "D:\Virtual Servers (Testing)\CourseWare Master\Shared\Jenison\tracking.js" %%~fI
When this is run I get the following syntax error
C:COPY /Y "D:\Virtual Servers (Testing)\CourseWare Master\Shared\Jenison\track
ing.js" D:\Virtual Servers (Testing)\CourseWare Master\Shared\Jenison\Version1.2
\SHAPERS_COMBINED\Smarter Communications\WhatisInfluencing\script\Tracking.js
The syntax of the command is incorrect.
Ideas please?
I have written a script in monit interface for Webmin service. I can execute the process wherien I am unable to restart the service.
check process webmin with pidfile /var/webmin/miniserv.pid
start = "/etc/init.d /webmin start"
stop = "/etc/init.d /webmin stop"
if failed host in1.miracletel.com port 10000 then restart
if 5 restarts within 5 cycles then timeout
#if changed pid 2 times within 2 cycles then aler
Would you please look into this and let me know, whether I can considered the service correct or not?
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?
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?
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
I know how to create an AutoHotkey script to switch to (say) a Firefox window.
But suppose I have a number of Firefox windows open. I would like the key to switch to the next window each time it is pressed.
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 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 have set-up Postfix with Spamassassin on Ubuntu 12.04.5. Fundamental usage of Postfix is to (pipe) trigger a PHP file. Till here I've arrived successfully.
Now, to avoid unneccessary load on the server, and also to avoid unwanted mails triggering my PHP script, I want to configure Postfix to allow mails only from [email protected] and reject everything else.
How to achieve this absolute lock-down on mail server unless mail comes from [email protected]?
I am trying to start xampp when the ubuntu starts on ubuntu 9.10. I tried going to system-preferences-startup applications adding it there, but it didn't work. I surmised it was because it needs to be started as root. I know you can make a startup script some how, but I'm not sure how to do it. How can I make it start xampp when the computer boots, even without logging in?
FYI, the command for starting it is sudo /opt/lampp/lampp start