Difference between revisions of "Random Stuff"

From WTFwiki
Jump to navigation Jump to search
(Added openbsd key lifetimes for ipsec.conf)
(Added hipe bitarray link)
Line 28: Line 28:
 
* [http://student.northpark.edu/pemente/sed/sed1line.txt sed one liners]
 
* [http://student.northpark.edu/pemente/sed/sed1line.txt sed one liners]
  
 +
* [http://erlang.org/pipermail/erlang-questions/2009-April/043460.html Erlang HIPE bitarrays] - Undocumented mutable bitarrays/binaries for Erlang (when using HIPE)
 
== OpenBSD key life times in ipsec.conf ==
 
== OpenBSD key life times in ipsec.conf ==
 
Use the undocumented 'life' keyword for quick and main mode [http://kerneltrap.org/mailarchive/openbsd-misc/2007/12/7/481748 see here].
 
Use the undocumented 'life' keyword for quick and main mode [http://kerneltrap.org/mailarchive/openbsd-misc/2007/12/7/481748 see here].

Revision as of 00:34, 25 July 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

OpenBSD key life times in ipsec.conf

Use the undocumented 'life' keyword for quick and main mode see here.