Category Archives: Scripting languages (PHP, Perl, etc)



Reverse order sort du -h human-readable output

du -d 1 -h | perl -e’%h=map{/.\s/;99**(ord$&&7)-$`,$_}`du -d 1 -h`;die@h{reverse sort%h}’ MacBook-Pro.-=[jnevans] /var/log # sudo ~jnevans/sortd.sh 192K ./cups 728K ./krb5kdc 2.1M ./DiagnosticMessages 11M ./asl 22M . Hat tip to http://serverfault.com/questions/62411/how-can-i-sort-du-h-output-by-size Want it in your .bashrc? alias dsize=’du -d 1 -h | … Continue reading

Posted in Scripting languages (PHP, Perl, etc) | Leave a comment
_____

Other Similar Posts

Redis and php-resque on Ubuntu 12.04

During my free time, I help to administer a machine hosting several websites which generate copious amount of traffic and at times, there can be a significant load on the server. These websites require many tasks running on the back … Continue reading

Posted in Databases, Linux, Scripting languages (PHP, Perl, etc), Web/Tech | Leave a comment
_____

Other Similar Posts

Turn off all colors in vim

The text editor vim usually has default setting of colorized syntax and search highlighting, which I find too distracting. To kill it off, put the following inside the file .vimrc in your home directory: syntax off set nohlsearch set t_Co=0

Posted in Scripting languages (PHP, Perl, etc) | Leave a comment
_____

Other Similar Posts

Finding the state of a zipcode using reverse lookup with Google Geocoding API

Here’s a code snippet if you need to run a reverse lookup on a zipcode to identify which state it is located in.  Google Geocoding API version 3 is the latest at this time of post, and there’s no longer … Continue reading

Posted in Scripting languages (PHP, Perl, etc), Web/Tech | 2 Comments
_____

Other Similar Posts

Excellent primer on CSS

Continue reading

Posted in Scripting languages (PHP, Perl, etc) | 1 Comment
_____

Other Similar Posts

Atlas with PHP

Continue reading

Posted in Scripting languages (PHP, Perl, etc) | Leave a comment
_____

Other Similar Posts

PHP security papers to read

Continue reading

Posted in Scripting languages (PHP, Perl, etc) | Leave a comment
_____

Other Similar Posts

PHP file to help prevent many common XSS attack vectors

Continue reading

Posted in Scripting languages (PHP, Perl, etc) | Leave a comment
_____

Other Similar Posts

Understanding XSS attacks and PHP security

Continue reading

Posted in Scripting languages (PHP, Perl, etc) | Leave a comment
_____

Other Similar Posts

Gmail’s XSS exploit

Continue reading

Posted in Scripting languages (PHP, Perl, etc) | Leave a comment
_____

Other Similar Posts

How to do a Calendar Popup using Javascript and DHTML

Continue reading

Posted in Scripting languages (PHP, Perl, etc) | Leave a comment
_____

Other Similar Posts

Atlas will extend firefox and safari to account for IE’s broken web standard

Continue reading

Posted in Scripting languages (PHP, Perl, etc) | Leave a comment
_____

Other Similar Posts

Process an email automatically with PHP and PEAR Mail

Continue reading

Posted in Scripting languages (PHP, Perl, etc) | Leave a comment
_____

Other Similar Posts

javascript to check/uncheck all checkboxes

Continue reading

Posted in Scripting languages (PHP, Perl, etc) | Leave a comment
_____

Other Similar Posts

How many PHP frameworks do we really need?

Continue reading

Posted in Scripting languages (PHP, Perl, etc) | Leave a comment
_____

Other Similar Posts