Archives
- March 2026
- October 2025
- February 2025
- January 2025
- 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
Archives
- March 2026
- October 2025
- February 2025
- January 2025
- 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
Category Archives: Linux
Cool curl commands
Using curl to GET a page The simplest and most common request/operation made using HTTP is to get a URL. The URL could itself refer to a web page, an image or a file. The client issues a GET request … Continue reading
Posted in Linux
Comments Off on Cool curl commands
WordPress database error MySQL server has gone away for query blah
Edit the php file “wp-db.php” (in the “wp-include/” folder of your WordPress installation) and add $this->query(“set session wait_timeout=600”); somewhere in the function “___construct” after the $this->dbhost = $dbhost; and before the $this->dv_connect() statement. Reference this link if you need more: … Continue reading
Posted in Linux
Comments Off on WordPress database error MySQL server has gone away for query blah
Delivering root mail locally while relaying others
In order to deliver some accounts locally, you can set up virtual aliases as follows: 1. Add the following line to /etc/postfix/main.cf: virtual_alias_maps = hash:/etc/postfix/virtual mail_spool_directory=/var/spool/mail 2. Create /etc/postfix/virtual as follows: root root@localhost 3. postmap /etc/postfix/virtual 4. Restart postfix Note: … Continue reading
Posted in Linux
Comments Off on Delivering root mail locally while relaying others
Dealing with Openssl Certificates and Keys
# Get the details of a PEM cert:openssl x509 -in <certname>.pem -text # Get the details of a crt file:openssl x509 -in your_certificate.crt -text -noout# Check whether a key and cert match using openssl:openssl rsa -noout -modulus -in server.key | … Continue reading
Posted in Linux, OPENSSL and TLS
Comments Off on Dealing with Openssl Certificates and Keys
Using blackbox to change multiple dns records for account
browse to https://clouddns.dcx.rackspace.com/zones/search Enter the account number and click Exact Search copy the lines from the console to a file called domainlist.txt domainlist.txt=================== 1 View accidentlawyerny.net 2 View acnestories.com 3 View acnewonders.com 4 View aromatherapyrecipe.com 5 View attorneyny.us 6 View … Continue reading
Posted in Linux
Comments Off on Using blackbox to change multiple dns records for account
Make fail2ban send emails
Edit /etc/fail2ban/jail.conf as follows: action = %(action_)s gets changed to action = %(action_mw)s which causes fail2ban to execute an action shortcut that sends mail: #########section of jail.conf############################################ # Action shortcuts. To be used to define action parameter # The simplest … Continue reading
Posted in Linux
Comments Off on Make fail2ban send emails
Changing munin password
To change the serverinfo password for munin, htpasswd /etc/munin/munin-htpasswd serverinfo To test, go to http://IP/munin
Posted in Linux
Comments Off on Changing munin password
Adding usb device to qemu in kvm
HOWTO: Use USB devices in Virtual Machine Manager with QEMU
Posted in Linux
Comments Off on Adding usb device to qemu in kvm
Deny POST to a site in .htaccess
<limit POST OPTIONS> Order deny,allow Deny from all </limit>
Posted in Linux
Comments Off on Deny POST to a site in .htaccess