Skip to content

Instantly share code, notes, and snippets.

@rsdy
rsdy / Solarized.colors
Created January 21, 2013 14:19
QTCurve style and solarized (with magenta) colours. GTK theme can be set to the same thing through KDE system settings.
# ~/.kde/share/apps/color-schemes/Solarized.colors
[ColorEffects:Disabled]
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2
@rsdy
rsdy / .xinitrc
Created August 25, 2012 15:17
ibm trackpoint configuration
# these settings make the trackpoint scroll horizontally and vertically when the middle button is pressed
/usr/bin/xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
/usr/bin/xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
/usr/bin/xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5
/usr/bin/xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 150
/usr/bin/xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Middle Button Timeout" 50
@rsdy
rsdy / authorized_keys
Created June 25, 2012 22:36
dump android contacts to remote host using ssh
command="gpg --yes --encrypt --recipient [email protected] --output=contacts-$(date +%Y%m%d%H%M).json.gpg",no-pty,no-port-forwarding ssh-rsa etc....
@rsdy
rsdy / develenv.sh
Created May 26, 2012 15:56
enter a development chroot and run a command
#!/bin/ksh
## configuration
CHROOT=$HOME/sid-debootstrap
USER=rsdy
USER_HOME=/home/$USER
WORKDIR=$USER_HOME/build
TERM=rxvt-unicode
PATH_EXTEND='$HOME/.cabal/bin'
BIND_LIST="/dev /proc /sys"
@rsdy
rsdy / python.prez
Created April 30, 2012 21:59
A prezentation about what is wrong with Python
{{{
╻ ╻╻ ╻╻ ╻
┃╻┃┣━┫┗┳┛
┗┻┛╹ ╹ ╹
┏━┓╻ ╻╺┳╸╻ ╻┏━┓┏┓╻
┣━┛┗┳┛ ┃ ┣━┫┃ ┃┃┗┫
╹ ╹ ╹ ╹ ╹┗━┛╹ ╹
┏━┓╻ ╻┏━╸╻┏ ┏━┓
┗━┓┃ ┃┃ ┣┻┓┗━┓
┗━┛┗━┛┗━╸╹ ╹┗━┛
@rsdy
rsdy / .vimrc
Created April 26, 2012 14:24
vim prezentation macros
au! BufRead,BufNewFile *.prez setfiletype prez
@rsdy
rsdy / .Xdefaults
Created March 3, 2012 21:17
urxvt settings and colouring
URxvt*termName: rxvt-256color
URxvt.font: xft:Envy Code R:size=8
URxvt*scrollBar: false
URxvt*urllauncher: /usr/bin/firefox
URxvt*urlLauncher: /usr/bin/firefox
URxvt*matcher.button: 3
URxvt*saveLines: 8192
URxvt.perl-ext-common:default,matcher
URxvt*cursorColor: #d8d8d8
@rsdy
rsdy / ini
Created March 3, 2012 21:15
mc colors @ ~/.config/mc/ini
[Midnight-Commander]
skin=nicedark
[Colors]
base_color=brightgreen,black:normal=brightred,default:selected=black,brightred:markselect=white,gray:bbarhotkey=brightred,black:menusel=brighred,default:menuhot=magenta,default:
@rsdy
rsdy / getattr_time.py
Created December 22, 2011 02:56
perftesting different ways to override an arbitrary member method in python
#!/usr/bin/env python
#
# Example output:
#
# > testing mapped version
# 0.015753 usec/pass
# > waiting 1.0s
# > testing rebound version
# 0.025296 usec/pass
#
@rsdy
rsdy / 01mac.sh
Created December 15, 2011 00:02
wicd random mac preconnect hook
#!/bin/sh
LOG=/tmp/mac
WIRELESS=wlan0
WIRED=eth0
mac_map() {
case "x$1" in
xfixed) mac='11:22:33:44:55:66'
;;