Skip to content

Instantly share code, notes, and snippets.

View init.lua
-- Hammerspoon configuration, heavily influenced by sdegutis default configuration
-- init grid
hs.grid.MARGINX = 0
hs.grid.MARGINY = 0
hs.grid.GRIDWIDTH = 16
hs.grid.GRIDHEIGHT = 10
-- disable animation
View For Want of a
itemlost_becauseof(shoe, nail).
itemlost_becauseof(horse, shoe).
itemlost_becauseof(rider, horse).
itemlost_becauseof(battle, rider).
itemlost_becauseof(kingdom, battle).
write_poem(ItemLost) :-
View T580 - sxhkdrc
### Default jumpapp key bindings ###
super + ctrl + {g,space,f,c,t,e,v,x,k,o,b,p,d,a}
jumpapp -m {google-chrome,google-chrome,firefox,xfce4-terminal,xfce4-terminal,emacs,gvim,xfce4-taskmanager,gitkraken,libreoffice,bcompare,pavucontrol,atril,anki}
super + space
jumpapp -m xfce4-terminal
super + {alt + space, bracketright}
jumpapp -m emacs
View T470P - tmux.conf
# source '/usr/share/tmux/powerline.conf'
# source '/usr/lib/python3.5/site-packages/powerline/bindings/tmux/powerline.conf'
# Default shell to fish
set-option -g default-shell "/home/chathura/.nix-profile/bin/fish"
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
View T580 - fish.config
# Config to fix z.lua
# See -
set -gx _ZL_CD cd
alias t "tmux"
# alias e "edit_files"
alias e "$EDITOR (fzf -m --reverse --height 40%)"
alias o "exo-open 2>/dev/null"
alias ec "emacsclient -nw"
alias vo "vim (fzf -m --reverse --height 40%)"
View .ideavimrc
set ignorecase
set smartcase
set scrolloff=3 " 3 lines above/below cursor when scrolling
" Emulated Plugins
set surround
" set easymotion
set NERDTree
" Copy to system clipboard as well
View Win10.ahk
; Launch or focus Applications
appFlapper(exePath) {
exeName := substr(exePath, instr(exePath, "\",, 0)+1)
IfWinExist, % "ahk_exe " exeName
WinWait, ahk_exe %exeName%

Keybase proof

I hereby claim:

  • I am dewaka on github.
  • I am dewaka ( on keybase.
  • I have a public key whose fingerprint is D736 AC36 64C6 8357 0600 B686 06F9 E16C D9A7 5C97

To claim this, I am signing this object:

dewaka /
Created Aug 28, 2017
Install pkgsrc on Linux as non-root user
#!/usr/bin/env sh
mkdir ~/build
cd ~/build
# get the current version
# unpack
tar xvf pkgsrc.tar.gz