Archives
- October 2024
- August 2024
- June 2024
- May 2024
- February 2024
- December 2023
- October 2023
- June 2023
- April 2023
- August 2016
- June 2016
- May 2016
- February 2016
- December 2015
- October 2015
- May 2015
- April 2015
- January 2015
- December 2014
- November 2014
- October 2014
- January 2014
- December 2013
- November 2013
- October 2013
- August 2013
- July 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- April 2012
Categories
Meta
Monthly Archives: June 2012
compression on your site
Ensure that the browser sends the Accept-encoding: gzip, deflate header Add the following to your .htaccess file: # compress text, html, javascript, css, xml: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType … Continue reading
Posted in Linux
Leave a comment
PHP email script to test email
Sometimes you gotta test outgoing email. If you have php installed, it is as easy as adding the following into a file called something like emailtest.php and executing with php emailtest.php. Check the email logs to ensure it went out. … Continue reading
Posted in Linux
Leave a comment
Cool MySQL command list
# to see the full CREATE TABLE statement and show table engine show create table table_name\G #To see full CREATE TABLE statement on all tables in a database export database=”dbname”;for table in `mysql -s –column-name=false -e “SHOW TABLES” $database`;do mysql … Continue reading
Posted in Linux
Leave a comment
Copying Files in Linux bash shell
So you want to copy a file in Linux? Easy enough. cp filename newfilename But sometimes it isn’t so easy… Say the file you want to copy begins with a . You can’t see these files unless you add -a … Continue reading
Posted in Linux
Leave a comment
vi stuff
” at top of paragraph, format this paragraph !} fmt -c ” for the whole file, format all paragraphs !G fmt -c “from here to the end of the file, format all paragraphs !$ fmt -c ” from anwhere in … Continue reading
Posted in Linux
Leave a comment
Disaster Recovery Planning
HARDWARE Document computer assets internal to organization Document external components like bridges, switches, routers, cables, and connectors Document redundancy setup for critical hardware and services DATA RESTORATION Document backup process to specify the following as a minimum: a) storage devices … Continue reading
Posted in Linux
Leave a comment
Using Loopback Command
Loopback filesystem support allows a user to mount an ordinary file as if it were a device, such as /dev/hda1. This is useful for mounting a CD-ROM filesystem to populate and test before burning it to CDROM. Use the dd … Continue reading
Posted in Linux
Leave a comment