Skip to content

Instantly share code, notes, and snippets.

View spikensbror's full-sized avatar

Kimmy Andersson spikensbror

  • Monitor ERP System AB
  • Sweden
View GitHub Profile
@spikensbror
spikensbror / clearfix.css
Created May 6, 2012 17:06
Easy non-html clearfix.
/* float clearing for IE6 */
* html .clearfix{
height: 1%;
overflow: visible;
}
/* float clearing for IE7 */
*+html .clearfix{
min-height: 1%;
}
@spikensbror
spikensbror / devsh
Last active August 29, 2015 14:01
TMux/VIM shell-based development environment with IRC provided by WeeChat.
#!/bin/sh
if [ -z "$1" ]; then
SESSIONNAME="devsh"
else
SESSIONNAME="devsh-$1"
fi
tmux -2 new-session -n dev -d -s $SESSIONNAME
@spikensbror
spikensbror / terminator-config
Created May 28, 2014 13:41
~/.config/terminator/config - Terminator config.
[global_config]
enabled_plugins = APTURLHandler, LaunchpadCodeURLHandler, LaunchpadBugURLHandler
title_transmit_bg_color = "#d30102"
focus = system
[keybindings]
[profiles]
[[default]]
scrollbar_position = hidden
palette = "#073642:#d30102:#859900:#b58900:#6c71c4:#d33682:#2aa198:#839496:#586e75:#cb4b16:#859900:#b58900:#268bd2:#dc322f:#2aa198:#93a1a1"
login_shell = True
@spikensbror
spikensbror / pasteboard.sh
Last active August 29, 2015 14:01
Provides the pbcopy and pbpaste functions for Linux.
# Create aliases for pbcopy and pbpaste.
alias pbcopy='xsel -b -i'
alias pbpaste='xsel -b -o'
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@spikensbror
spikensbror / .tmux.conf
Last active August 29, 2015 14:01
~/.tmux.conf - Tmux configuration.
set -g set-titles off
#set -g set-titles-string "#T"
# Prefix is Ctrl-A.
set -g prefix C-a
bind C-a send-prefix
unbind C-b
#set -sg escape-time 1
set -g base-index 1
@spikensbror
spikensbror / devsh-kill
Created May 30, 2014 21:57
Kill script for devsh.
#!/bin/sh
if [ -z "$1" ]; then
SESSIONNAME="devsh"
else
SESSIONNAME="devsh-$1"
fi
tmux kill-session -t $SESSIONNAME
@spikensbror
spikensbror / Ayin.sublime-theme
Last active August 29, 2015 14:02
Various fixes for the Ayin theme that comes with Nil.
[
/*
Ayin theme for Sublime Text 2
Bright variant of the Nil theme.
https://github.com/nilium/st2-nil-theme
*/
/*==============================================================================
@spikensbror
spikensbror / multish
Created June 4, 2014 10:50
TMux based pre-configured multishell.
#!/bin/sh
tmux -2 new-session -n multish -d -s multish
tmux split-window -h
tmux select-pane -t 0
tmux -2 attach-session -t multish
@spikensbror
spikensbror / .vimperatorrc
Created June 9, 2014 02:29
~/.vimperatorrc - Firefox Vimperator configuration.
" Remap keys to fit swedish touch-typing.
nmap j <Left>
nmap k <Down>
nmap l <Up>
nmap ö <Right>
nmap J :back <C-m>
nmap Ö :forward <C-m>
" Remap Ctrl-a in insert mode to select all.
:inoremap <C-a> <Ins><C-a><Ins>