summaryrefslogtreecommitdiffstats
path: root/software
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-07-27 14:38:27 -0700
committerbnewbold <bnewbold@robocracy.org>2012-07-27 14:38:27 -0700
commit8b85eb300b63a80160d2f38be8b0f2a0816a93a1 (patch)
tree7ed0e85632d9079c267d3783b507c40af473400a /software
parent78d14ca99ddc7b4d1727d330b1aaed4e6502294c (diff)
downloadknowledge-8b85eb300b63a80160d2f38be8b0f2a0816a93a1.tar.gz
knowledge-8b85eb300b63a80160d2f38be8b0f2a0816a93a1.zip
misc tricks and notes
Diffstat (limited to 'software')
-rw-r--r--software/freebsd-tricks.page4
-rw-r--r--software/misc.page12
-rw-r--r--software/packages.page4
-rw-r--r--software/unix-tricks.page7
4 files changed, 25 insertions, 2 deletions
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``.