As configured in my dotfiles.
start new:
tmux
start new with session name:
| require("lsqlite3") | |
| -- Igmar: Wanneer closen we dat DB object eigenlijk ? | |
| db = sqlite3.open('/etc/asterisk/users.sqlite') | |
| --CONSOLE = "Console/dsp" -- Console interface for demo | |
| --CONSOLE = "DAHDI/1" | |
| --CONSOLE = "Phone/phone0" | |
| TRUNK = "DAHDI/G1" |
| #!/bin/bash | |
| # System-wide crontab file and cron job directory. Change these for your system. | |
| CRONTAB='/etc/crontab' | |
| CRONDIR='/etc/cron.d' | |
| # Single tab character. Annoyingly necessary. | |
| tab=$(echo -en "\t") | |
| # Given a stream of crontab lines, exclude non-cron job lines, replace |
| # source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list | |
| # A list of available STUN server. | |
| stun.l.google.com:19302 | |
| stun1.l.google.com:19302 | |
| stun2.l.google.com:19302 | |
| stun3.l.google.com:19302 | |
| stun4.l.google.com:19302 | |
| stun01.sipphone.com | |
| stun.ekiga.net |
| #!/usr/bin/env bash | |
| # This should work whether you are already in a TMUX session or not... | |
| # Irssi directory is assumed to be in the user's home dir | |
| if [ -z "$TMUX" ] | |
| then | |
| tmux new-session -d -s ircuser | |
| tmux split-window -tircuser -h -l20 | |
| tmux send-keys -tircuser "tmux send-keys -t0 \"irssi\" C-m; \ | |
| tmux send-keys -t0 \"/set nicklist_height \$(stty size | cut -f1 -d' ' -)\" C-m; \ | |
| tmux send-keys -t0 \"/set nicklist_width \$(stty size | cut -f2 -d' ' -)\" C-m; \ |
| ! Hybrid Terminal Colours. Uses the palette from Tomorrow-Night: | |
| ! https://github.com/chriskempson/tomorrow-theme/blob/master/vim/colors/Tomorrow-Night.vim | |
| ! vim: ft=xdefaults | |
| *background: #1D1F21 | |
| *foreground: #C5C8C6 | |
| ! black | |
| *color0: #282A2E | |
| *color8: #373B41 | |
| ! red |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/bash | |
| DA='dahdi-linux-complete-2.5.0.1+2.5.0.1' | |
| WAN="wanpipe-3.5.23" | |
| PRI="libpri-1.4.12" | |
| apt-get -y install build-essential | |
| apt-get -y install gcc | |
| apt-get -y install g++ | |
| apt-get -y install automake |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
| #!/usr/bin/env python | |
| """ | |
| web page screenshot by webkit | |
| command usage: | |
| python webkitscreenshot.py test.html | |
| library usage: | |
| import webkitscreenshot | |
| image = webkitscreenshot.screenshot_vfb("file://test.html") |