Skip to content

Instantly share code, notes, and snippets.

Robin Skahjem-Eriksen ironhouzi

  • Norway
View GitHub Profile
ironhouzi / .muttrc
Last active Jun 9, 2016
Script for piping IMAP and SMTP passwords from KWallet to mutt.
View .muttrc
#in .muttrc
set imap_pass ="` mutt 2>&1`"
set smtp_pass ="` mutt 2>&1`"
ironhouzi / .vimrc
Last active Dec 20, 2015
Basic vimrc
View .vimrc
set nocp " use vim settings instead of vi - MUST BE 1ST LINE!
" set pathogen plugin which helps installing plugins and runtime files
execute pathogen#infect()
set encoding=utf-8
set fileencoding=utf-8
scriptencoding utf-8
let mapleader = ","
syntax on " enable syntax highlighting
ironhouzi / .vimrc
Last active Dec 26, 2015
Airline settings
View .vimrc
" ---------------------------------------
" ---------------------------------------
let g:airline_left_sep = ''
let g:airline_right_sep = ''
let g:airline_fugitive_prefix = ''
let g:airline#extensions#tabline#enabled = 0 " Extended tab bar on top
let g:airline#extensions#default#section_truncate_width = {
\ 'a': 45,
\ 'b': 45,
ironhouzi / tibtest.html
Last active Jan 4, 2016
Corner case for testing correct stacking of Tibetan Unicode glyphs
View tibtest.html
<!DOCTYPE html>
<p style="font-size:400%"> &#x0f67;&#x0fb9;&#x0fa8;&#x0fb3;&#x0fba;&#x0fbc;&#x0fbb;&#x0f83;&#x0f0b;&#x0f4a;&#x0f9b;&#x0f9c;&#x0f9d;&#x0f9e;&#x0f71; </p>
ironhouzi / evdev.xml
Created May 20, 2014
XKB rules for Poker II in both English (US) and Norwegian (no dead keys), allowing esc to be used as the key to the left of '1' on a full size keyboard. Esc is handled by xcape to allow for dual-role caps_lock.
View evdev.xml
<!-- This goes in: X11/xkb/rules/evdev.xml -->
<!-- This file adds the custom layouts (no_poker & us_poker) -->
<!-- to the menu of available keyboard layouts. -->
<!-- This snippet goes above the tag: </layoutList> -->
<!-- ... -->
View ultisnips_py_console
global !p
import string, vim
import textwrap
_snips_fns = {}
def py(*args):
import re
old_a = vim.eval('@a')
import sys
from PyQt4.QtGui import \
QApplication, \
QDialog, \
QGraphicsScene, \
QGraphicsView, \
QVBoxLayout, \
ironhouzi / Makefile
Last active Aug 29, 2015
edit distance in c
View Makefile
ODIR := obj/
SDIR := src/
LDFLAGS = -lncurses
#TODO fix -g
DFLAGS = -g -std=c99 -Wall -Wextra -pedantic
CC = clang
lz : $(ODIR)lz.o
$(CC) $^ -o $@ $(LDFLAGS)
View .vimrc
" vim-plug
call plug#begin('~/.vim/plugged')
" Bare necessities
Plug 'tpope/vim-surround'
Plug 'scrooloose/syntastic'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-unimpaired'
Plug 'tpope/vim-vinegar'
View gist:4a14ab343275ea0e528b
nnoremap <leader>w :silent! %s/\s\+$//<cr>:let @/=''<CR>:w<CR>
function! FixInf3151()
normal mz
set st=2 sts=2 noet
set st=4 sts=4 et
normal ,w
normal gg=G
You can’t perform that action at this time.