Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# ---------------------------------------------------------------------------- #
# Prepare
# ---------------------------------------------------------------------------- #
read -p 'Cleanup old stuff? [y/n]: ' clean
if [ ${clean} = 'y' ]; then
sudo rm -rf /var/log/inst-*
sudo rm -rf /tmp/inst-*
➜ Downloads head -n 20 HoNClient-3.6.0.sh
#!/bin/sh
X86_START=455
X86_SIZE=156244
X86_64_START=156699
X86_64_SIZE=199096
if [ "$(echo $0 | awk '{ string=substr($1, 1, 1); print string; }' )" = "/" ]; then
BINARY="$0-bin"
else
BINARY="./$0-bin"
App = require 'App'
SingletonFactory = require 'SingletonFactory'
AppFactory = {}
AppFactory.get = (options) ->
return SingletonFactory.getObject 'App', options
AppFactory.has = () ->
return SingletonFactory.hasObject 'App'
}
@Anachron
Anachron / mappings.vim
Last active August 29, 2015 14:23
Tired of learning VIM on a non-US keyboard with complicated key-combinations that feel weird? Feel like key combinations should be intuitive and based on where the keys are? This file contains a lot of mappings for smart and fast movement. You'll find out there is a lot of thoughts inside the choosen combination.
" =======================
" Character movement
" =======================
" first character
noremap Q gg
" previous character
noremap a h
" next character
==============================================================
char (prev [a] next [d] first [Y] last [X])
word (start [y] end [x] prev [q] next [e] first [Q] last [E])
line (start [A] end [D] prev [w] next [s] first [W] last [S])
paragraph (start [R] end [F] prev [r] next [f])
page (start [C] end [V] prev [c] next [V])
==============================================================
goto [g] (brackets [r] line [e])
==============================================================
copy [p] (char [p] word [o] line [l] paragraph [k])
@Anachron
Anachron / vimrc
Last active September 1, 2015 17:50
New VimRC Mappings
"==========================================================
" Disable global Mappings
"==========================================================
"==========================================================
" Mode management
"==========================================================
" insert mode
nnoremap <C-e> <Esc>i
!! source: https://github.com/spazzpp2/dotfiles/blob/29819a5ac5e451bfa39bc324378aa508ef75cae8/Molokai.xrdb
URxvt.scrollBar: false
! Molokai theme
URxvt*background: #101010
URxvt*foreground: #d0d0d0
URxvt*color0: #101010
URxvt*color1: #960050
URxvt*color2: #66aa11
@Anachron
Anachron / Battalion_0.19.0.lua
Last active December 29, 2015 22:18
A new Hedgewars script, mix between "The Specialists" and "Random Weapons"
--[[
########################################################################
Version: 0.19.0
Made by: Anachron
########################################################################
]]--
--[[
########################################################################
ReadMe
@Anachron
Anachron / game0.log
Created October 28, 2015 13:55
Hedgewars issue
0: [PhysFS] init: 1
0: [PhysFS] mount /home/arch/code/hedgewars/build/Data at / : ok
0: [PhysFS] mount /home/arch/.hedgewars/Data at / : ok
0: [PhysFS] mount /home/arch/.hedgewars at / : ok
0: [Con] Hedgewars engine 0.9.22-r11249 (ead06147f84d) with protocol #50
0: Prefix: "/home/arch/code/hedgewars/build/Data"
0: UserPrefix: "/home/arch/.hedgewars"
0: 0: /home/arch/code/hedgewars/build/bin/hwengine
0: 1: --internal
0: 2: --port
[2015-12-11 13:59] [PACMAN] Running 'pacman -Syyu'
[2015-12-11 13:59] [PACMAN] synchronizing package lists
[2015-12-11 13:59] [PACMAN] starting full system upgrade
[2015-12-11 14:05] [ALPM] transaction started
[2015-12-11 14:05] [ALPM] upgraded gcc-libs (5.2.0-2 -> 5.3.0-2)
[2015-12-11 14:05] [ALPM] upgraded ncurses (6.0-3 -> 6.0-4)
[2015-12-11 14:05] [ALPM] upgraded icu (56.1-1 -> 56.1-2)
[2015-12-11 14:05] [ALPM] upgraded boost-libs (1.59.0-3 -> 1.59.0-5)
[2015-12-11 14:05] [ALPM] upgraded libxml2 (2.9.2-2 -> 2.9.3-1)
[2015-12-11 14:05] [ALPM] upgraded openal (1.17.0-2 -> 1.17.0-4)