Skip to content

Instantly share code, notes, and snippets.

View tzbob's full-sized avatar

Bob R tzbob

  • Cleverbase
View GitHub Profile
@tzbob
tzbob / xmonad.hs
Created January 21, 2012 11:18
xmonad.hs
--
-- File : ~/.xmonad/xmonad.hs (for Xmonad >= 0.9)
-- Adapted by: Bob Reynders
-- Author : Thayer Williams
-- Website : http://cinderwick.ca/
-- Desc : A simple, mouse-friendly xmonad config geared towards
-- netbooks and other low-resolution devices.
--
-- dzen is used for statusbar rendering, with optional mouse
-- integration provided by xdotool:
@tzbob
tzbob / config.py
Created April 17, 2012 22:14
Qtile config
from libqtile.manager import Key, Screen, Drag, Group
from libqtile.command import lazy
from libqtile import layout, bar, widget, hook
mod = "mod1"
win = "mod4"
# Keybinds: Key([modifiers], "key", action())
keys = [
Key([mod], "space", lazy.nextlayout()),
dirtyFrameHack = function() {
$("a").unbind("click");
return $("a").click(function(e) {
var href;
href = $(this).attr("href");
if (!~href.indexOf("#")) {
window.open(href);
return false;
}
});
urxvt.scrollBar: false
urxvt.font: xft:inconsolata:size=11
urxvt.boldFont: xft:inconsolata:size=11
urxvt.cursorColor: #7F7F7F
Xft.hintstyle: hintfull
Xft.hinting: true
Xft.antialias: true
Xft.rgba: rgb
@tzbob
tzbob / gist:3959764
Created October 26, 2012 16:31
Micro TDD Prolog
% test predicate
test(Summary, Predicate) :-
string_concat('\n ', Summary, Buf),
string_concat(Buf, ' is running', Message),
write(Message),
call(Predicate),
write('\ndone.').
% example
force(anakin, 9).
Config {
font = "xft:inconsolata:size=10:antialias=true"
, fgColor = "#EFEFEF"
, bgColor = "#333333"
, position = Static { xpos = 0, ypos = 1050, width = 1920, height = 30 }
, lowerOnStart = True
, commands = [
Run Battery ["-t", "<left>"] 100
, Run MultiCpu ["-t","<total0>"] 30
, Run Date "%_d %#B %Y <fc=#AEB898>|</fc> %H:%M" "date" 600
[options]
resize_grip = false
scroll_on_output = false
scroll_on_keystroke = true
audible_bell = false
visible_bell = false
mouse_autohide = false
allow_bold = false
dynamic_title = true
urgent_on_bell = true
@tzbob
tzbob / .vimrc
Created September 1, 2013 12:11
.vimrc
" Vundle "
" ========== "
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
# * menu.c32 - provides a text menu
# * vesamenu.c32 - provides a graphical menu
# * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
# * hdt.c32 - hardware detection tool
# * reboot.c32 - reboots the system
# * poweroff.com - shutdown the system
@tzbob
tzbob / .vimrc
Created October 16, 2013 19:55
current .vimrc using vundle as bundler
" Vundle "
" ========== "
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'