Difference between revisions of "Random Stuff"

From WTFwiki
Jump to navigation Jump to search
(oops)
Line 24: Line 24:
  
 
* [http://home.powertech.no/sletner/cur Stian's CLI currency converter] - Install the perl libwww stuff if it bitches about LWP/Simple
 
* [http://home.powertech.no/sletner/cur Stian's CLI currency converter] - Install the perl libwww stuff if it bitches about LWP/Simple
 +
 +
* [http://www.pement.org/awk/awk1line.txt awk one liners]
 +
* [http://student.northpark.edu/pemente/sed/sed1line.txt sed one liners]

Revision as of 00:11, 21 February 2009


To convert asterisk gsm files to wav files it can still play:

 sox tt-weasels.gsm -r 8000 -b -c 1 -u -2 tt-weasels.wav

Upgrading pkgsrc bootstrapped packages (bmake install-sh nawk nbsed pax tnftp bootstrap-mk-files):

bmake USE_DESTDIR=full package
rm /var/db/pkg/<pkgname>-<pkgversion>/+PRESERVE
pkg_delete "<pkgname>*"
pkg_add /usr/pkgsrc/packages/All/<pkgname>-<pkgversion>.tgz
touch /var/db/pkg/<pkgname>-<pkgversion>/+PRESERVE