Cheat Sheet
I code a lot but don’t normally remember the codes on top of my head. Here is list of stuff I use often. It is going to grow over time.
Apache
-VirtualHost
<VirtualHost *:80>
DocumentRoot “/path/to/dir”
ServerName namehere
</VirtualHost>
-Caching
LoadModule expires_module modules/mod_expires.so
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/gif “access plus 1 months”
ExpiresByType image/png “access plus 1 months”
ExpiresByType application/x-shockwave-flash “access plus 1 months”
ExpiresDefault “access plus 1 days”
</IfModule>
Linux
-grep
// This is to exclude the term.
grep -v term
-lftp
lftp serveraddress
login loginname password
// To transfer TO connecting server FROM connected server
mirror connected/dir /path/to/dir/from/connecting/server
// To transfer FROM connecting server TO connected server
mirror -R /path/to/dir/from/connecting/server connected/dir