Rosio Pavoris

Alright, alright

Two slightly more useful programs, then. For given values of useful.

The first is a basic kopipe manager in C, the source code to which can be found here.
Should work under any real OS. If you’re going to compile it, make sure you change KOPIPE_FOLDER to something more appropriate.
Sample session follows:

cairnarvon@feynman:~$ kopipe
USAGE:
kopipe [name]
	Display kopipe
echo "[kopipe]" | kopipe -n [name]
	Create new kopipe
kopipe -d [name]
	Delete existing kopipe

Current kopipe:
kartoffelbrei  lisp-fig25      progsnake	  tanasinn
lisp-box       lisp-spacetoad  progsnake-classic
cairnarvon@feynman:~$ kopipe lisp-spacetoad
                       //`'''```,
             o        //LISP   `.,
       ,....OOo.   .c;.',,,.'``.,,.`
    .'      ____.,'.//
   / _____  \___/.'
  | / ||  \\---\|
  ||  ||   \\  ||
  co  co    co co
cairnarvon@feynman:~$

It only accepts input from stdin for new kopipe, with all the issues associated with that, so it isn’t ideal (and could probably be done more easily with bash aliases), but whatever.
It’s still nice to have, and it gave me an opportunity to use C.

The second basically mimics this thing. The guy who posted that never posted his source code, so I wrote it in Perl.
This one should work on Windows too.
Sample session:

cairnarvon@feynman:~$ progfind

USAGE: progfind [topic]

cairnarvon@feynman:~$ progfind Xarn

Title:		Xarn [Part 1]
URL:		http://dis.4chan.org/read/prog/1213290157
Posted:		Thu Jun 12 19:02:37 2008
Last Post:	Sun Jun 15 03:19:08 2008

Title:		Xarn
URL:		http://dis.4chan.org/read/prog/1205354504
Posted:		Wed Mar 12 21:41:44 2008
Last Post:	Fri Mar 14 13:46:50 2008

cairnarvon@feynman:~$

Simple but handy. It can be adapted to other Shiichan boards by replacing the URL it tries to get information from.
It can be slow because dis.4chan.org is slow as fuck at times, but it’s still faster than looking through the threads manually.

So. What have you written to make life less aggravating?

3 Comments

  1. lolife said,


    lolife [11:13pm] % which lrt
    lrt: aliased to ls -lrt | tail -40

  2. What said,

    You should consider porting the strl* family of functions from BSD to make your future C programming easier.

  3. Cairnarvon said,

    It’d make more sense just not to use C for programs involving heavy string manipulation.

Post a Comment

RSS feed for comments on this post · TrackBack URL