You are not logged in.
Pages: 1
ok... so, I was looking through the source of scrunchy which is a very simple web server, written in one single c source file of about 20KB, and came across this gem:
/* Are they on our shitlist? If so, send feces.
*/
if (ip_block_all[prefix])
send_feces (fd);
if (ip_block_sub1[prefix] == second)
send_feces (fd);
if (ip_block_sub2[prefix] == second)
send_feces (fd);
I almost died laughing... and I really wish I had the opportunity to write a send_feces function...
Anyone have any other diamonds-in-the-rough like this?
Offline
rofl! great!
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
Came across this the other day
if (s.trim() == "" && s != null)
Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?
Offline
Came across this the other day
if (s.trim() == "" && s != null)
hah! that took me a bit... but I got it.
Offline
well phrakture, u got me intrested (after i stopped giggling for a while...), so i browsed the sources a bit... seems the author is having a good sence of humor :
int send_feces (int fd)
{
...
char *feces = "<html><body><font size=+3>Your IP looks like that of a hacker, thus I repel you.";
...
and he doesnt stop there :
int send_witty (int fd)
{
char *witty = "<html><body><font size=+3>Only a girly-man would make a request such as you have just made.</html>";
...
Offline
Here is another one from the same code base
List list = null;
try {
list.add(new Object())
} catch (Exception e) {
log.warn(e)
}
return list
Surprisingly it never worked quite right
Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?
Offline
This is from a Perl script I was provided at work:
# do the initializations...
do_inits();
# retrieve parameters for this report (from gjbprun)
retrieve_parms();
#delete the stored parameters
del_parms();
# do the sql preps
do_preps();
Then later:
# Call the procedure student_hdr
student_hdr();
This part isn't dumb, its just kind of funy:
$endoftime = '99990101';
talk about meaningful variable names... (I know exactly when I'm gonna die. My birth certificate has an expiry date)
Dusty
Offline
$thissucks = 0;
I thought that was hilarious, but its even funnier when I realized it was in a block of variable definitions preceded by a comment saying "should probably start using more meaningful variable names"
Dusty
Offline
Pages: 1