This file contains hidden or 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
from boto import route53 | |
class R53Updater(object): | |
""" | |
Example for A record: | |
r53 = R53Updater() | |
r53.connect() | |
records = r53.find_record('example.org') | |
new_ip_list = ['1.2.3.4', '4.3.2.1'] |
This file contains hidden or 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
" .vimrc | |
" For multi-byte character support (CJK support, for example): | |
" set fileencodings=ucs-bom,utf-8,cp936,big5,euc-jp,euc-kr,gb18030,latin1 | |
set visualbell | |
set wildmenu | |
" set cursorline | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set smarttab |
This file contains hidden or 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
# .tmux.conf [18/202] | |
## General settings | |
unbind C-b | |
set -g prefix C-a | |
set -g history-limit 5000 | |
set -g bell-action any | |
set -g display-panes-time 2000 | |
set -g base-index 0 | |
set -g set-titles on | |
set -g set-titles-string "#H.tmux.#I.#W" |
This file contains hidden or 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
#### COLOUR (Solarized 256) | |
# default statusbar colors | |
set-option -g status-bg colour235 #base02 | |
set-option -g status-fg colour136 #yellow | |
set-option -g status-attr default | |
# default window title colors | |
set-window-option -g window-status-fg colour244 #base0 | |
set-window-option -g window-status-bg default | |
#set-window-option -g window-status-attr dim |
This file contains hidden or 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
# stop messages | |
stty -ixon | |
# some zsh variables | |
HISTFILE=~/.histfile | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
DART=$'\u25ba' | |
GITUSER=`git config user.name` |
This file contains hidden or 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
#!/bin/sh | |
# | |
# ~/.xinitrc | |
# | |
if [ -d /etc/X11/xinit/xinitrc.d ]; then | |
for f in /etc/X11/xinit/xinitrc.d/*; do | |
[ -x "$f" ] && . "$f" | |
done | |
unset f |
This file contains hidden or 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
pointer = 1 2 3 5 4 6 7 8 9 10 11 12 | |
keycode 94 = 0x00b1 0x00a7 |
This file contains hidden or 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
URxvt.depth: 32 | |
URxvt.foreground: #000000 | |
URxvt.background: #ddd9c3 | |
URxvt.colorIT: #87af5f | |
URxvt.colorBD: #666666 | |
URxvt.colorUL: #87afd7 | |
URxvt.perl-ext-common: default,matcher | |
URxvt.url-launcher: /usr/bin/chromium | |
URxvt.matcher.button: 1 | |
URxvt.url-select.underline: true |
This file contains hidden or 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
import csv | |
import sys | |
import json | |
import argparse | |
import datetime | |
from dateutil import parser as dateparser | |
parser = argparse.ArgumentParser() | |
parser.add_argument('logfiles', metavar='N', nargs='+') |
This file contains hidden or 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
import os, pickle | |
settings_dir = os.path.dirname(__file__) | |
PROJECT_ROOT = os.path.abspath(os.path.dirname(settings_dir)) | |
def readenvfile(filename): | |
if not os.path.exists(filename): | |
raise IOError("file {} not found".format(filename)) | |
command = 'export $(cat {}|grep -v -e "^#"|xargs)'.format(filename) |
OlderNewer