-
My First Android App
More info here: Graph Muni I wrote an Android client to view Munin Graphs. Please check it out.
-
missing scheme in email body url
Some mail service providers (Yahoo Mail exhibits this at the moment), do not like links that do not have a scheme(http/https for instance) and will make the link non-clickable by removing the href. The fix is simple: Google Google
-
how to not run a cron job between certain datetimes
Say, I have a cron job entry and do not want the job to run between 2013-02-01 9PM (Feb 1st 2013) and 2013-02-02 11AM (Feb 2nd 2013), this is one possible solution (in crontab).
-
rsync only certain files
Create a file on on the origin server and use the –files-from option cd / rsync -anvi –files-from=/tmp/only_these_files . to-server:/ cat /tmp/only_these_files /srv/www/mysite/uploaded_files/9a3d3d9046aaad4bbe3074d794a6adaf.jpg /srv/www/mysite/uploaded_files/5ca1c97efd730427f846e457bd0a0667.png /srv/www/mysite/uploaded_files/5b0923025b4a1fde3a34119bfcd56567.jpg /srv/www/mysite/uploaded_files/870ed45d9ad704deace8fb541242425a.jpg
-
Starting KVM guest after memory change
After a memory module was taken out the system, the KVM guest was failing to start complaining about insufficient memory. Editing the domain XML file (in /etc/libvirt/qemu on Debian) to use less RAM and then trying to start the guest did not work. I had to do this: libvirt-bin restart for the the updated XML…
-
WordPress + Nginx + Permalinks Rewrite rules
The following works for me: I have my blog here: http://www.trk7.com/blog/and my permalink structure is: /%postname%/
-
Bella donna
Bella donna won’t be tamed Belluci, however, is unconcerned about what her children might think of her movies. ”If you are scared about what people think or what you represent or what your image can be, then you are not free any more in your choices. That can be dangerous for your art. I think…
-
Backgrounded PHP jobs in ‘STOPPED’ state
This could be specific to the PHP package from Ubuntu. Please consider the following a disclaimer. $ php -v PHP 5.3.5-1ubuntu7.2 with Suhosin-Patch (cli) (built: May 2 2011 23:00:17) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans $ cat /etc/lsb-release…
-
Parrallel processing from the bash commandline
for i in `seq 1 40`; do echo $i; /tmp/script.sh >> /tmp/script.out 2>&1 & done Note the lack of ‘;’ before ‘done’. The ‘&’ indicates the end of the statement.
-
Checking for the existence of domains from commandline in Bash
while read line; do wget –quiet –spider –timeout=10 $line; if [ $? -ne 0 ]; then echo $line; fi; done < "/tmp/domains.txt" /tmp/domains.txt would hold the list of domain names separated by newline. Note this is just a quick hack and not entirely reliable.