scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

commit 5bbfeba084d6a138bed55ff3f9cf994b10642f21
parent 98374f4d68aee1a66e258a13950c94f992512c24
Author: sin <sin@2f30.org>
Date:   Thu, 27 Jun 2013 17:54:20 +0100

Add suicide script

Diffstat:
Asuicide | 44++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+), 0 deletions(-)

diff --git a/suicide b/suicide @@ -0,0 +1,44 @@ +#!/bin/sh + +echo "A PROGRAMMATICAL GUIDE TO SUICIDE" + +sudo mkdir /hell +sudo chmod 777 /hell +export CVSROOT=/hell +cvs init +mkdir tmp && cd tmp +cvs import -m 'help me' misery self stageone +cd .. && rmdir tmp +cvs checkout misery && cd misery + +cat > suicide.c << THISWAY +/* one-way program */ + +#include <stdlib.h> + +#define SOUL 0 +#define MAXPAIN 666 + +int +main(void) +{ + short *suffer; + double suffering; + unsigned int pain; + + suffer = malloc(MAXPAIN * sizeof (*suffer)); + + for (pain = 0; pain < MAXPAIN; pain++) + suffer[pain] = 1; + + if (suffer[MAXPAIN - 1] == 1) + suffering = 1; /* double suffering */ + + free(suffer); + + return (SOUL); +} +THISWAY + +cvs add suicide* +cvs commit -m 'sorry' suicide*