This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debug | |
noauth | |
connect "/usr/sbin/chat -v -f /etc/chatscripts/three" | |
noipdefault | |
usepeerdns | |
/dev/ttyUSB0 | |
defaultroute | |
persist | |
crtscts | |
lcp-echo-failure 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TIMEOUT 3 | |
ECHO ON | |
ABORT 'BUSY' | |
ABORT 'DELAYED' | |
ABORT 'ERROR' | |
ABORT 'NO ANSWER' | |
ABORT 'NO CARRIER' | |
ABORT 'NO DIALTONE' | |
ABORT 'VOICE' | |
'' \rAT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir e220_drivers; cd e220_drivers | |
mount -t vfat /dev/sr2 /mnt/huawei | |
for file in $(find *.cab); do unpack $file; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
au InsertEnter * !echo "notify.start('Insert mode started')" | awesome-client | |
au InsertLeave * !echo "notify.stop('Insert mode finished')" | awesome-client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if &term =~? '^rxvt' && exists('&t_EI') | |
let &t_EI="\033]12;red\007" | |
let &t_SI="\033]12;green\007" | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/ruby | |
require "webrick" | |
server = WEBrick::HTTPServer.new( | |
:BindAddress => "localhost", | |
:Port => 8080, | |
:DocumentRoot => ARGV[0] | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http_serve() | |
{ | |
if [ "${1}" = "--help" ] | |
then | |
echo "Usage: ${FUNCNAME} [location]" | |
echo "Start a httpd in \`location', defaulting to \`${http_serve_location}'." | |
return 1 | |
fi | |
busybox httpd -f -p 8080 -h ${1:-${http_serve_location}} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GENERATED = $(patsubst %.rst, %.html, $(wildcard *.rst)) | |
all: $(GENERATED) | |
$(GENERATED): %.html: %.rst | |
rst2html.py $< $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CTAGS := exuberant-ctags | |
TARGETS := $(patsubst /usr/lib/%, tags/%.ctags, $(wildcard /usr/lib/python*)) \ | |
doc/tags | |
all: $(TARGETS) | |
tags/%.ctags: /usr/lib/% | |
$(CTAGS) --exclude=test_* --exclude=tests.py --exclude=test.py \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PRIVATE_FILES := .abook/addressbook .gnupg/secring.gpg .mailfilter .msmtprc \ | |
.ssh/id_rsa | |
PRIVATE_DIRS := .gnupg | |
fix-perms: $(PRIVATE_FILES) $(PRIVATE_DIRS) | |
$(info - Removing extra read permissions from private files and directories) | |
chmod 600 $(PRIVATE_FILES) | |
chmod 700 $(PRIVATE_DIRS) |