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
Category Archives: Linux
How to check sessions
#Add this script to the DocRoot and browse to it. The session_id shouldn’t change if it is preserving sessions < ?php // DONT FORGET TO CHECK FOR VARNISH RUINING EVERYTHING ini_set( ‘display_errors’, 1); session_start(); echo ‘HOSTNAME: ‘ . gethostname() . … Continue reading
Posted in Linux
Comments Off on How to check sessions
SSH stuff
Use the -i option to specify a new key ssh -i newkey root@108.166.84.188 How to strip a passphrase from an openssl key cp filename.key filename.key.encrypted openssl rsa -in filename.key -out filename.key.nopass cp filename.key.nopass filename.key How to add or change a … Continue reading
Webmin foo
to change the password, use this command: which changepassword.pl /usr/libexec/webmin/changepass.pl /etc/webmin root PASSWORD http://www.webmin.com/faq.html
Posted in Linux
Comments Off on Webmin foo
Using traceroute
/Users/vick4522 ==> traceroute vickistan.com traceroute to vickistan.com (108.166.91.129), 64 hops max, 52 byte packets 1 72.32.115.226 (72.32.115.226) 172.771 ms 83.839 ms 89.278 ms 2 67.192.56.50 (67.192.56.50) 95.320 ms 95.043 ms 92.113 ms 3 coreb.dfw1.rackspace.net (74.205.108.26) 94.737 ms corea.dfw1.rackspace.net (74.205.108.10) 109.197 … Continue reading
Posted in Linux
Comments Off on Using traceroute
Percona XtraDB Cluster on cloud
http://www.percona.com/software/percona-xtradb-cluster
Posted in Linux
Comments Off on Percona XtraDB Cluster on cloud
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
Checking whether a key and cert match using openssl
openssl rsa -noout -modulus -in server.key | openssl md5 openssl x509 -noout -modulus -in server.crt | openssl md5
Posted in Linux, OPENSSL and TLS
Comments Off on Checking whether a key and cert match using openssl