Skip to content

Instantly share code, notes, and snippets.

View farhaven's full-sized avatar
🦄
I'm a unicorn.

Gregor Best farhaven

🦄
I'm a unicorn.
View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyMNboVjcpBuUl0VvL1esm89a7MplR4LuN8CSxCVWdMeQFUErDI49EP3Vokfcms0ULDeGeeaoF4c1oEOZ6NcxDR9iJ0pxCrd2JAgfOGmi5eV5O7qX5DgKODeVH/ltJMgIP1dfhBANet4iIu8m87s9XRyqLRCcCFhXJP1jNSS6qkhiZ20tB73jM/uh0tHdVxh8iUt4fgA0b2mgd/NSDl49vQN2FOs7KI3xck/ZVQx+hEQNcZAD7BZWVPgGodJRdPnIwGr3YBxi+XqPHUVQ3K0GM8RfR1ptQvIt3J8FG4kFclB2jWtJ1g55xO5VRfeDS6OmxgvpQ1yO3XtOFRszQFuxvw== gregor@hydrogen
diff -r e9301fef1b63 config.def.h
--- a/config.def.h Sat Oct 27 00:01:15 2012 +0200
+++ b/config.def.h Mon Oct 29 10:20:23 2012 +0100
@@ -1,9 +1,8 @@
static const Bool wmborder = True;
-static const char font[] = "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*";
+static const char font[] = "DejaVu Sans Mono:pixelsize=14:antialias=true:autohint=true";
static const char normbgcolor[] = "#cccccc";
static const char normfgcolor[] = "#000000";
static const char pressbgcolor[] = "#0000cc";
import pickle
class Test(object):
def __init__(self, idx):
self.foo = 100 * idx
self.bar = 200 * idx
if __name__ == "__main__":
l = []
for x in range(20):
! make CapsLock work as modbutton3
keycode 66 = Hyper_L
clear lock
clear mod3
clear mod4
add mod3 = Hyper_L
add mod4 = Super_L Super_R
cache=8192
# cache=65535
cache-min=10
stop-xscreensaver=yes
heartbeat-cmd="xscreensaver-command -deactivate >&- 2>&- &"
menu=yes
fontconfig=yes
$ cat test.hy
(defmain [&rest args]
(print "foo"))
$ hy test.hy
Traceback (most recent call last):
File "/usr/local/bin/hy", line 9, in <module>
load_entry_point('hy==0.10.0', 'console_scripts', 'hy')()
File "/usr/local/lib/python2.7/site-packages/hy/cmdline.py", line 295, in hy_main
sys.exit(cmdline_handler("hy", sys.argv))
File "/usr/local/lib/python2.7/site-packages/hy/cmdline.py", line 283, in cmdline_handler
b'd4:code'
b'7:(+ 2 3)2:op4:evale'
Future/Task exception was never retrieved
future: Task(<handle_sess>)<exception=AttributeError("'BencodeProtocol' object has no attribute 'reader'",)>
Traceback (most recent call last):
File "/home/gbe/sourcecode/HyREPL/HyREPL/server.py", line 32, in handle_sess
msg = list(nrepl.decode(data.decode()))[0]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
import nrepl
c = nrepl.connect("nrepl://localhost:8888")
c.write({"op": "eval", "code": "(+ 2 3)"})
#!/bin/ksh
RSYNC="rsync -hPaHx"
backupdir="`pwd`"
now=`date +%Y-%m-%d-%H-%M`
echo $now
target=`find "$backupdir" -type d -maxdepth 1 -mindepth 1 | tail -n 1`
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1
hQIMA4ueAQoq3B61AQ/9HeNULLRZobtgSHuKuPMS6fPdh0FnebA4eZ3Z4uuS6+4q
o+feD9G23Ft2QjJx72/7uul/sD3Bgy4aNBI5pO0ORyeyXHWf6HTenqlyY98fzLZY
iv6A3uY643w9ok4jBu6KMIhFi3H3vvcItI/PreL9HcGuifT0jTDH7t/3JqIXoDjI
nbzIoRZH4lAlakL/ntjHV5saYdoQwy4R48+G/W8fq3Ff0+scWhFzG+3dNv85UQtW
BlXle7P6zwlBs/Yml2rnjtaAnHkGZ8+HINjMR8fUrO67gF5/ymJ8aROaQHNO2Egd
lVoPptNAkvAg9DrteWeDBzu2I5+pzJ5zbeIM0h1NnkzqBpJz3u9F+0ckhLrExnnK
K3H6B1/FatKpE32t5R6LxpnwAX3l8IDaJreMLvclv2Z8Oj7NjJjSFWqmj0HhEvuB