I’ve experienced many instances where the Auto-update feature in WordPress fails to update either a plugin or WordPress itself. One solution to this problem is remarkably simple, and hopefully will be fixed soon by the WP core developers in an upcoming release. The problem seems to be caused by a messy previous upgrade in which…
Block a country using mod_geoip
Do you have a list of countries that you want to block access to your site? Have you tried adding IP numbers into your .htaccess file only to generate a HUGE .htaccess file and a neverending stream of IP numbers? How about using mod_geoip!! mod_geoip is a module that can be compiled into Apache on…
Disable PDF protection
Disable PDF protection using two simple commands in Ubuntu Use two simple commands to convert a protected pdf into an unprotected pdf. Here in this example i assume the protected pdf file name to be ‘protected.pdf’. Now open your terminal and type. pdftops protected.pdf out.ps pstopdf out.ps out.pdf The out.pdf will be your unprotected PDF….
Send stderr & stdout to same file
Send standard error and standard out to the same file This article may seem odd to those who have read a few of my others. However, this is by far my highest ranking search term. Thus I thought I would write up an simple and explicit explanation. The following will send the output of ls…
Quick performance site test
time curl -s “http://g33kinfo.com?[1-1000]” real 0m0.017s user 0m0.006s sys 0m0.006s and another one from bashcurescancer/com #!/bin/bash # Author: see http://bashcurescancer.com/improve-this-script-win-100-dollars.html # Modified and extended by “Chris F.A. Johnson” , 2007-02-25 # Web site: http://cfaj.freeshell.org ## Features: ## Will use non-standard port if specified in URL ## (e.g., http://example.com:8080/index.html) ## Checks for successful connection ## Moderately…
Mdadm Cheat Sheet
Mdadm Cheat Sheet Mdadm is the modern tool most Linux distributions use these days to manage software RAID arrays; in the past raidtools was the tool we have used for this. This cheat sheet will show the most common usages of mdadm to manage software raid arrays; it assumes you have a good understanding of…
Create many files of random size
I am not sure why you would want to use a command like this but I am sure there is some reason for it, so here ya go; $ for i in $(seq 1 1000); do let “size = ($RANDOM/100)”; dd if=/dev/urandom \ of=file-$i count=$size 2>/dev/null;done Maybe if you want to prank your cubemate or…
Serve current directory temporarily via web
python -m SimpleHTTPServer 9914 This command runs a simple single-threaded web server on any port you choose as the current user. Logging is to stdout/stderr, and a ctrl-c will stop the server. Great for temporarily sharing a directory. All data in the folder will be visible, including (dot) .files and they can be downloaded, but…
Auto Firewall IPs with high connection counts
via Paul (lovepig.org): netstat -npa –inet | grep :80 | sed ‘s/:/ /g’ | awk ‘{print $6}’ | sort | uniq -c | sort -n | while read line; do one=`echo $line | awk ‘{print $1}’`; two=`echo $line | awk ‘{print $2}’`; if [ $one -gt 100 ];then iptables -I INPUT -s $two -j DROP;…
Linux Instructions for installing Diet Chromium OS to USB
Download and extract the chromiumos.img and run the following command in the same directory as the file, where X is the device name of your USB drive. sudo dd if=chromiumos.img of=/dev/X bs=4M Once the command finishes, you can then boot from the USB drive. FAQ: —————————————- Q: How big a USB drive does this require?…
-
Recent Posts
-
Archives
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- October 2020
- September 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- August 2019
- June 2019
- March 2019
- February 2019
- January 2019
- November 2018
- August 2018
- July 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- October 2017
- June 2017
- December 2016
- October 2016
- September 2016
- August 2016
- June 2016
- May 2016
- March 2016
- February 2016
- September 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- March 2009
-
Meta