Skip to content

Instantly share code, notes, and snippets.

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEA66n/I0Xi6KdC/ktzL+/XPhdTE/XPEd7SKIgl1+jUS+Fhc307Qi8XS+adQoqbhP8pK3u1BgFjpCbzzcRdubK6EsDUvlNDE8zY3r3ROTAgr8dovPiqykhr14OsC4ytCm4Hae0ToXhjxlb5x8IWYtaParbok6npFvGJxbblZT1vHqMmXMm2Oq78joC8CZivYXN8C8t18MdwBn4uctxSP5MOLu3dPc0AJ9qwT9eggiku2y2JnxHzYa/maywgOkHA9Ht9vtna3G+VrjW4RwQ+hfWwrRQaWATlGplfPtwlrOJzjIAxZMLQGgTW8IvuCPv3zTKTl9XJkjy8952XF2KgVbwjTUUGJxbA5eElUcPI6GKiJK9FqnAinrFYEWJyPmSKUEysYTckpHQnHp5r3yHLPfAAMVrLbPOamZWJC0JN6sr0K9mG6PduKP6toznxp0cQL8MQguLTptTBcUEyN+Zbtc4qKogD99ZPNT7CtlOW1lSK1BwQuncz+vAhV5rpooRQiuXE3mhLmooTtF4E7xLa2eow/3lGwq+yA26lWxFbJ0DYyfIke3v5D2De0NIeETwhW0enC19qFtj2mRg3lZLUX/8rdcrZEI9jcu2tRNnAgVZ2JEWorPczGxXRFGrBxXP2JPqYLJWYO8gQ9iVmEXhpQUfsyPdotKfcIX4vRhq+MMX6hBk= dylan@njord
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAw1IMdQG3xO1W4fPWEKwdLniFYyO2ekioGdMjqcQTS+LHhyH3dgKjKMj9MsNPbAWSi+XACREZbd6kKxZLG/qCURSNqvoyQEaeWTqjblMBH2IIr6qfd9d+Aq1YYxQAUsROhxR9kdYQvFaYPPR4xAYChhBQzA66+cdYLMlj7b8bIYaPgV7OpMAAgM+F+/zSqBHGYJg2Aecbnpz8EnW+fVJdXwYFCMfnOPuTo6zfj3vbqEuzQDULuEIUmnAgOfBpex
% aptitude search '~m Dylan.*Hardison'
i libapp-cmd-perl - write command line apps with less suffering
i libdevel-partialdump-perl - Partial dumping of data structures, optimized for argument
i libdevel-stringinfo-perl - Gather information about strings
i libforest-perl - A collection of n-ary tree related modules
i libio-tiecombine-perl - produce tied (and other) separate but combined variables
i libmoosex-app-cmd-perl - Mashes up MooseX::Getopt and App::Cmd.
% units
2411 units, 71 prefixes, 33 nonlinear units
You have: 1000 bytes
You want: mebibytes
* 0.00095367432
/ 1048.576
You have: 1 mebibyte
You want: bytes
* 1048576
ps -u dylan | awk 'NR>1{print $4}' | sort -u
alsamixer
awk
dbus-daemon
dbus-launch
firefox-bin
gconfd-2
gnome-keyring-d
mplayer
ps
% ps -u dylan | awk 'NR>1{total[$4]++} END { for (k in total) print total[k], k }' | sort -n
1 alsamixer
1 awk
1 dbus-daemon
1 dbus-launch
1 firefox-bin
1 gconfd-2
1 gnome-keyring-d
1 mplayer
1 ps
local keybuf = ""
function process(key)
keybuf = keybuf .. key
if is_prefix(keybuf) then
-- do nothing
elseif is_complete(keybuf) then
local func = lookup(keybuf)
keybuf = ""
func()
else
local M = {}
local make_keyspec = require("moonshine.ui.term").make_keyspec
local Tree = require "moonshine.tree"
local tree = Tree:new()
function M.bind(spec, name)
tree:insert( make_keyspec(spec), name)
end
local make_keyspec = require("moonshine.ui.term").make_keyspec
local Tree = require "moonshine.tree"
local tree = Tree:new()
function M.bind(spec, name)
tree:insert( make_keyspec(spec), name)
end
-- called by on_keypress_raw()
/* Class-related functions {{{ */
gpointer ms_lua_toclass(LuaState *L, const char *class, int index)/*{{{*/
{
gpointer p = lua_touserdata(L, index);
if (p == NULL) luaL_typerror(L, index, class);
return p;
}/*}}}*/
gpointer ms_lua_checkclass(LuaState *L, const char *class, int index)/*{{{*/
{
@-moz-document domain(github.com) {
#top_search_form *[type=submit] {
display: none;
}
}