Skip to content

Instantly share code, notes, and snippets.

@nikhan
nikhan / zazen.vim
Created January 4, 2017 05:42
01-03-2017
" =============================================================================
" File: zazen.vim
" Description: Vim color scheme file
" Maintainer: Zoltan Dezso
" =============================================================================
" (fixed status line)
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
@nikhan
nikhan / .Xresources
Created January 4, 2017 05:41
01-03-2017
Xft.antialias: true
Xft.rgba: none
Xft.hinting: true
Xft.autohint: true
Xft.hintstyle: hintslight
URxvt*termName: screen-256color
URxvt*scrollBar: false
URxvt*visualBell: false
URxvt*urgentOnBell: true
@nikhan
nikhan / .vimrc
Created January 4, 2017 05:40
01-03-2017
set t_Co=256
set t_ut=
execute pathogen#infect()
syntax on
filetype plugin indent on
colorscheme zazen
set nu
set shiftwidth=2
@nikhan
nikhan / 16color.vim
Last active January 3, 2017 19:19
modified 16color.vim 12/31/2016
let g:colors_name = "16color"
hi Normal ctermfg=none
hi Boolean ctermfg=12
hi Comment ctermfg=8 ctermbg=none cterm=none
hi Conditional ctermfg=10
hi Constant ctermfg=11
hi Cursor ctermbg=none
hi Debug ctermfg=13
hi Define ctermfg=11
@nikhan
nikhan / config
Created December 31, 2016 20:32
.i3/config 12-31-2016
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@nikhan
nikhan / .vimrc
Last active January 3, 2017 19:18
.vimrc 12-31-2016
" colors
set t_Co=256
set t_ut=
execute pathogen#infect()
syntax on
filetype plugin indent on
colorscheme 16color
set nu
@nikhan
nikhan / .Xresources
Last active January 3, 2017 19:19
XResources 12-31-2016
Xft.antialias: true
Xft.rgba: none
Xft.hinting: true
Xft.autohint: true
Xft.hintstyle: hintslight
URxvt*termName: screen-256color
URxvt*scrollBar: false
URxvt*visualBell: false
URxvt*urgentOnBell: true
# mark/jump support + completion
# un/mark name : bookmark a directory or remove one (unmark)
# jump name : jump to directory
# marks : show all bookmarks
export MARKPATH=$HOME/.marks
function jump {
cd -P $MARKPATH/$1 2>/dev/null || echo "No such mark: $1"
}
function mark {
mkdir -p $MARKPATH; ln -s $(pwd) $MARKPATH/$1
@nikhan
nikhan / twitter.sh
Created January 1, 2016 04:45
twitter ffmpeg
ffmpeg -i test.mov -vcodec libx264 -vf 'scale=640:trunc(ow/a/2)*2' -acodec aac -vb 1024k -minrate 1024k -maxrate 1024k -bufsize 1024k -ar 44100 -strict experimental -r 30 out.mp4
@nikhan
nikhan / histogram.md
Created November 15, 2015 19:37
histogram
{"label":"root","blocks":[{"label":"","type":"exponential","id":8,"inputs":[{"name":"rate","value":{"data":1},"type":"number"}],"outputs":[{"name":"draw","type":"number"}],"source":null,"position":{"x":18,"y":143}},{"label":"","type":"toString","id":9,"inputs":[{"name":"in","value":null,"type":"any"}],"outputs":[{"name":"out","type":"string"}],"source":null,"position":{"x":141,"y":143}},{"label":"","type":"concat","id":10,"inputs":[{"name":"a","value":null,"type":"string"},{"name":"b","value":{"data":"ms"},"type":"string"}],"outputs":[{"name":"a+b","type":"string"}],"source":null,"position":{"x":240,"y":143}},{"label":"","type":"delay","id":11,"inputs":[{"name":"in","value":{"data":1},"type":"any"},{"name":"duration","value":null,"type":"string"}],"outputs":[{"name":"out","type":"any"}],"source":null,"position":{"x":332,"y":128}},{"label":"","type":"*","id":12,"inputs":[{"name":"x","value":{"data":2},"type":"number"},{"name":"y","value":null,"type":"number"}],"outputs":[{"name":"x*y","type":"number"}],"so