From 8b85eb300b63a80160d2f38be8b0f2a0816a93a1 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Fri, 27 Jul 2012 14:38:27 -0700 Subject: misc tricks and notes --- software/freebsd-tricks.page | 4 ++++ software/misc.page | 12 ++++++++++++ software/packages.page | 4 ++-- software/unix-tricks.page | 7 +++++++ 4 files changed, 25 insertions(+), 2 deletions(-) (limited to 'software') 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``. -- cgit v1.2.3