diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-07-27 14:38:27 -0700 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-07-27 14:38:27 -0700 |
commit | 8b85eb300b63a80160d2f38be8b0f2a0816a93a1 (patch) | |
tree | 7ed0e85632d9079c267d3783b507c40af473400a | |
parent | 78d14ca99ddc7b4d1727d330b1aaed4e6502294c (diff) | |
download | knowledge-8b85eb300b63a80160d2f38be8b0f2a0816a93a1.tar.gz knowledge-8b85eb300b63a80160d2f38be8b0f2a0816a93a1.zip |
misc tricks and notes
-rw-r--r-- | electronics/misc.page | 7 | ||||
-rw-r--r-- | software/freebsd-tricks.page | 4 | ||||
-rw-r--r-- | software/misc.page | 12 | ||||
-rw-r--r-- | software/packages.page | 4 | ||||
-rw-r--r-- | software/unix-tricks.page | 7 |
5 files changed, 32 insertions, 2 deletions
diff --git a/electronics/misc.page b/electronics/misc.page index d092bb5..6503b98 100644 --- a/electronics/misc.page +++ b/electronics/misc.page @@ -19,4 +19,11 @@ Random Number Generators - `Wikipedia comparison of devices <http://en.wikipedia.org/wiki/Comparison_of_hardware_random_number_generators>`_ - `Entropy Key <http://www.entropykey.co.uk>`_: a $50 USB key using avalanche noise from two P-N junctions; lots of support and features. +- Overview of cheap avalanche technique: http://web.jfet.org/hw-rng.html +- whirlygig CPLD-based source: http://warmcat.com/_wp/whirlygig-rng/ + +See also: + +- http://en.wikipedia.org/wiki/A_Million_Random_Digits_with_100,000_Normal_Deviates +- http://en.wikipedia.org/wiki/Nothing_up_my_sleeve_number diff --git a/software/freebsd-tricks.page b/software/freebsd-tricks.page index 80c29d1..009ffa9 100644 --- a/software/freebsd-tricks.page +++ b/software/freebsd-tricks.page @@ -27,3 +27,7 @@ Network Tools ---------------------- ``iftop`` is great. + +vim w/o X11 +------------ +Use the editors/vim-lite package. diff --git a/software/misc.page b/software/misc.page index ecedf85..111fd38 100644 --- a/software/misc.page +++ b/software/misc.page @@ -148,3 +148,15 @@ From https://gist.github.com/2841832:: 1 ns = 10-9 seconds 1 ms = 10-3 seconds * Assuming ~1GB/sec SSD + +Great Hacks +---------------- + +HTML as image: http://lcamtuf.coredump.cx/squirrel/ + +xscreensaver +------------- +To lock the screen immediately, do: + + xscreensaver-command -lock + diff --git a/software/packages.page b/software/packages.page index 639c056..f14a0ce 100644 --- a/software/packages.page +++ b/software/packages.page @@ -31,10 +31,10 @@ Almost all machines get the following (decreasing minimalism): netcat ngrep tcpdump - mtr If debian-based, add ``build-essential``, ``openssh-server``, ``manpages-dev``, -and it's ``git-core`` (not ``git``). See also [debian]. +``iproute``, and it's ``git-core`` (not ``git``) and ``mtr-tiny`` (not +``mtr``). See also [debian]. If it's not a headless machine I add: diff --git a/software/unix-tricks.page b/software/unix-tricks.page index 34c96d5..293045e 100644 --- a/software/unix-tricks.page +++ b/software/unix-tricks.page @@ -38,6 +38,10 @@ server up the working directory as cgi to local host, use:: $ thttpd -p 8080 -h localhost -D +To allow CGI for PHP scripts: + + $ thttpd -p 8080 -h localhost -D -c \*.php + Simple "undelete" -------------------- This oneliner is useful for recovering recently deleted files from unix @@ -52,3 +56,6 @@ Misc ``tput`` is useful for controlling the terminal cursor position, font style, etc. +OpenSSL Primes +----------------- +See if a number is prime with ``openssl prime 2011``. |