function check_referrer() { if (!isset($_SERVER['HTTP_REFERER']) || $_SERVER['HTTP_REFERER'] == “”) { wp_die( __('Please enable referrers in your browser, or, if you\'re a spammer, bugger off!') ); } } add_action('check_comment_flood', 'check_referrer'); Linux | buffer overflow - Part 3

Archive for the ‘Linux’ Category

Shell Scripting 101

July 13th 2007

IBM always has good articles on basically everything. This one is like a best practices/tips and tricks for writing solid bash scripts for automation. Yay IBM.

System Administration Toolkit: Build intelligent, unattended scripts

Posted by darkhelmet under Computers & Linux & Programming | No Comments »

YouTube Video Downloader

July 13th 2007

This looks like a pretty slick way to download videos from YouTube. I never liked any of the plugins for Firefox, and I’m a Linux/UNIX guy anyway. I also started using kuake so I always have a terminal handy for exactly these kinds of things. I’m excited. I’m weird like that.

youtube-dl: Download videos from YouTube.com

Posted by darkhelmet under Intraweb & Linux & Programming | No Comments »

Learn Python in 10 Minutes

July 13th 2007

Finally a nice quick python ‘tutorial’. And by finally I mean something that just showed up in Google Reader.

Learn Python in 10 minutes | Poromenos’ Stuff

Posted by darkhelmet under Computers & Linux & Programming | No Comments »

Fun With Linux

July 10th 2007

The best command ever. Can be found all over the intraweb

alias sex='updatedb; locate; talk; date; cd; strip; look; touch; finger; unzip; uptime; gawk; head; apt-get install condom; mount; fsck; gasp; more; yes; yes; yes; more; umount; apt-get remove –purge condom; make clean; sleep'

Posted by darkhelmet under Intraweb & Linux & Programming | No Comments »

find + xargs + spaces in the filename

July 10th 2007

So today I had to use find + xargs + grep to search for some things in cygwin, since Windows search is like a hunting dog with no sense of smell. Being Windows, there are spaces in file paths left, right, and center. xargs and grep don’t play overly nice with this.

Originally I had:

find . -name *.js | xargs grep Saving

Which didn’t work. grep was looking for weird things which did not exist. Then I found this link with Google,

find + xargs: how do I handle space in the path – comp.unix.shell | Google Groups

which provided a solution:

find . -name *.js -print0 | xargs -0 grep Saving

A friend pointed out that if there are any JavaScript files in the current directory, .js will get expanded by bash and not work too well. Final solution:

find . -name "</strong>.js" -print0 | xargs -0 grep --color=always Saving

Posted by darkhelmet under Linux & Programming & Windows | No Comments »

Linux Kernel 2.6.22 Out

July 9th 2007

Yay! Now I am happy. Must go home to compile…

Linux 2 6 22 – Linux Kernel Newbies

Posted by darkhelmet under Linux | No Comments »

« Prev - Next »

My wishlist

 Subscribe in a reader
  • Categories

  • Tags

  • Monthly

  • Pages

  • Blogroll

  • Last.fm

  • Einstein@home

  • Word of the Day