Mindblown: a blog about philosophy.
Add source url to content copied from your site
Ever wonder how the url gets added when you copy something on some websites? There are plugins and websites that do it (for money or registration), but they also appear to track clicks, so I was a bit paranoid. It isn’t so difficult and is very useful. Basically, what happens is that whenever content from…
Redirect www to non-www on Nginx
How to redirect the www.domain.com version of your website to domain.com version on Nginx? Here is how. You basically have to make two server blocks. The block with your normal configuration should be the version you want, the version you want to redirect should have a simple rewrite rule alone. For example, to redirect www.vidyut.net…
Random Tweet Assistant if you hate sickular people
After getting thoroughly fed up of highly repetitive trolls not even able to insult with any creativity, here is a writing aid to help single-digit IQs to insult “sickulars” with some flair at least. I mean, if you must look like an idiot, at least look like pretty idiot, yes? [otw_is sidebar=otw-sidebar-1] Most of these…
How to install ioncube loader on Ubuntu in one line of code
To install ioncube loader on Ubuntu, AS ROOT paste this line: cd /usr/local && wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz && tar xzf ioncube_loaders_lin_x86-64.tar.gz && echo “zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so” | sudo tee /etc/php5/conf.d/ioncube.ini If you are using nginx, that would be: cd /usr/local && wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz && tar xzf ioncube_loaders_lin_x86-64.tar.gz && echo “zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so” | sudo tee /etc/php5/fpm/conf.d/ioncube.ini Please note that if…
Chromium starts about:blank tabs on typing into dashboard in Ubuntu
This is a strange and inexplicable error. Typing into the Ubuntu dashboard spawns new tabs in Chromium. This happens even if Chromium is not running it simply launches and spawns one or more tabs. Sometimes this also happened when software updater started. I had Chromium as the default browser earlier and made Firefox the default…
Nginx: upstream timed out (110: Connection timed out)
Error 110: Connection timed out while reading response header from upstream Sometimes a Nginx web server seems to load pages with php code with a lot of xml parsing really slowly. Often it doesn’t load or connection times out. This will be seen more on pages where the php code parses through large xml files…
Fix a broken mysql
If your mysql seems broken and giving errors like: # service mysql start start: Job failed to start or ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) Or if you try to recreate databases with mysqlinstalldb: … … ERROR: 1 Can’t create/write to file ‘./mysql/db.frm’ (Errcode: 13) 041226 xx:xx:xx /usr/libexec/mysqld:…
How to retrieve your passwords saved in Google Chrome or Chromium on ubuntu linux
This post explains how you can export unencrypted, readable, usable passwords saved in Google Chrome as a spreadsheet table.
bash: add-apt-repository: command not found
If you are trying to add a ppa repository and get the following error bash: add-apt-repository: command not found You need to install python-software-properties, like so apt-get install python-software-properties If you have python-software-properties installed and are still getting this error, there is some problem with the package. Uninstall and reinstall it. apt-get remove python-software-properties –purge…
Got any book recommendations?