Skip to content

Instantly share code, notes, and snippets.

View vkoop's full-sized avatar

Viktor Koop vkoop

View GitHub Profile
@vkoop
vkoop / powerline.sh
Created June 30, 2014 07:56
Install powerline on Ubuntu
sudo apt-get install python-pip git
pip install --user git+git://github.com/Lokaltog/powerline
wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf
mkdir -p ~/.fonts/ && mv PowerlineSymbols.otf ~/.fonts/
fc-cache -vf ~/.fonts
mkdir -p ~/.config/fontconfig/conf.d/ && mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
@vkoop
vkoop / Random 1GB file
Created June 29, 2014 19:45
Random 1GB file
openssl rand -out sample.txt -base64 $(( 2**30 * 3/4 ))
@vkoop
vkoop / reencode.sh
Created February 11, 2014 20:12
Change encoding *.java (ISO 8859-1 to UTF-8)
find . -name \*.java -type f | \
(while read file; do
iconv -f "ISO-8859-1" -t "UTF-8" "$file" > "$file".new && mv -f "$file.new" "$file"
done)
@vkoop
vkoop / starter.bat
Created October 15, 2013 09:51
Playframework - Windows batch starter
java %1 -cp "./lib/*;" play.core.server.NettyServer .