I wanted to make chromium (chrome) more secure. Just to be safe. I found out that the package apparmor-profiles on Ubuntu contained an apparmor profile for chromium-browser. I installed it and tried to enforce it without using the aa-enforce
binary...
dump a Varien_Db_Select / Zend_Db_Select query
1 2 3 4 5 6 | <?php $query = $adapter->getProfiler()->getLastQueryProfile()->getQuery(); //print last executed query foreach ($adapter->getProfiler()->getLastQueryProfile()->getQueryParams() as $k => |
Nginx + sabnzbd + sickbeard + couchpotato + spotweb on my pandaboard
I got Apache- (mpm-itk), sickbeard, sabnzbd, couchpotato and spotweb running on my pandaboard. But apache really used up a lot of resources. So I decided to replace it with nginx. Nginx would be a reverse proxy and communicate via fastcgi with php...
Access a pandaboard with a 'screen' serial console
Easy as:
1 | /usr/bin/screen /dev/ttyUSB0 115200
|
ACTA / SOPA / PIPA
Iedereen die het nog niet gedaan heeft: onderteken de ACTA petitie nu!
git add -u
This is a nice one:
1 | git add -u
|
This only adds already commited files to a new commit. And leaves files not in the git repository alone.
Ubuntu 11.10 on my laptop and ufw
I decided on enabling ufw (uncomplicated firewall) on my laptop (you can’t be secure enough). Too bad it isn’t enabled by default on Ubuntu. So I had to do this:
1 2 3 4 5 6 7 | sudo ufw enable sudo ufw... |
Listing contents of a tar.gz and extracting one specific directory
1 2 | # tar -ztvf babyhuiscasita.nl.tar.gz |grep sql
# tar -xzvf babyhuiscasita.nl.tar.gz ./.backup/babyhuiscasita.nl_mysql
|
-t = list -x = extract
Asus k53sv & ubuntu power management
Using my new Asus k53sv with Ubuntu 11.10 resulted in 2 hours of battery time. I know the k53 doesn’t have a fancy battery (quite the opposite) but I thought 2 hours was really bad.
With the power regression bug of the Linux kernel in my mind, I started...
3 useful route commands
To route an ip address through a (vpn) connection:
1 2 3 | sudo route add -net XX.192.85.XX netmask 255.255.255.255 gw 192.168.1.1 sudo route add -net 10.76.122.0 netmask 255.255.255.0 gw 192.168.1.1... |