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
for s = 1, screen.count() do
awful.tag.attached_add_signal(s, "property::selected", function(tag)
local idx = nil
for i, v in pairs(screen[s]:tags()) do
if v == tag then
idx = i
break
end
end
if not idx then return end
QlpoOTFBWSZTWWRg6y4AA0d/hOxQAQB6/f/PB+2PT//v3/oAAQAIUAPMNq9tnZLK6pwkiRpU9oSe
0KfqYaT1J5R+hE0PUaDQ09QPU9QaY1BoRqPSTT1TymhmoD1ADIAHlAABoACREVTxtTKRp6jygzU2
kGQMgABiBmoGmOMmTRiGmhgJoYmjTJiBkYTRpphBkwkiJM0amp6CZTaMkDNTeqNB6mgDQA0/UgDc
cNvxxE+8lSE8wkg5eV4labk5BnCS+mTJJmEMSThtgGrnbNscZ++WpRzuGHPVDUVmCcahyomskVpE
odNNDE2hoqHSylkIXWGgEVEK5oDihJ/7fJ5CHRmIjO+TFQMHf03eXWVOVTMeayDW/w9q+nETN9cg
XKwma/vs4Hj/RjcxMrJsxmNQ2BpFU4/DnOTHDhil2NrOqhTSxvsMrqoQ6tQFpcZYZrLNOKrc5aR5
oOrFwZMyuwtTM6sbC2B3zaXolJceW9G3BNeaUSKs2sZYGjN9zXJKrEsws6XIlRqEqNmg4TivcAyQ
Tslxc+oVc1yui6xcllpIYGkhlvppL7dnE5h1Nlbs1X36FxhpXRmONlA9hnS7XIRTseSILunVg4QK
hxyhjEBeR7YjW4QxkGgDcgMabgvMkoeonEjrTnJ6ieAQWiSKaeiL7RKaDEdvSJaZ+byZrM7Idg0M
RLeiBzyUoNzDM3S4HAg693Pr+wVhTkOqgSvGxBgFIQBXHfeAfUKw6w/AsAiETa1sKt4tKhYBFarg
#!/usr/bin/python
# Kindle Firmware Update tool v0.11
# Copyright (c) 2009-2010 Igor Skochinsky & Jean-Yves Avenard
# $Id: kindle_update_tool.py 6761 2010-09-18 20:39:24Z NiLuJe $
# History:
# 2009-03-10 Initial release
# 2009-10-22 Update for K2 International support
# 2009-10-30 Add conversion from gzip tar to OTA update file, add signature of files for K2 International
# 2009-11-01 Use hashlib instead of obsolete md5
# Add ability to install package without first installing the freekindle-k2i package.
\" Compile with
\"
\" groff -e -p -me -mden -dpaper=a4
\"
.color
.in 1em
.ef "`%```"
.of "```%`"
.nr si 0.125i
text/html; /usr/bin/lynx -dump -nomargins -force_html -stdin; copiousoutput; description=HTML Text
image/*; geeqie '%s'; test=test "$DISPLAY" != ""
application/pdf; evince '%s'; test=test "$DISPLAY" != ""
*/*; less '%s'; needsterminal
# {{{ misc settings
set realname="Gregor Best"
set from="[email protected]"
set sendmail="/usr/bin/msmtp"
set sort=threads
set mailcap_path="~/.mailcap"
set beep_new
set edit_headers
set pager_stop
set pager_index_lines=10
#!/bin/sh
usage(){
cat <<EOF
Usage: $0 [add|del] [-n] pkg
add add pkg to the system
-n don't update already installed pkg
del remove pkg from the system
#!/bin/mksh
[ -z "$PS1" ] && return
# {{{ prompt
# {{{ is_scm_dir
is_scm_dir()
{
if [ -d $2/.$1 ]; then
return 0
elif [ $2 == "/" ]; then
#!/bin/sh
usage(){
cat <<EOF
Usage: $0 [add|del] pkg
add add pkg to the system
del remove pkg from the system
EOF
exit 255
#ifndef __XCB_ATOM_H__
#define __XCB_ATOM_H__
#include <xcb/xcb.h>
#ifdef __cplusplus
extern "C" {
#endif
enum xcb_atom_fast_tag_t {