Skip to content

Instantly share code, notes, and snippets.

View funrep's full-sized avatar

Karl-Oskar Rikås funrep

View GitHub Profile
@funrep
funrep / 20-thinkpad.conf
Created September 27, 2014 10:13
Emulate scroll wheel with trackpoint
Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection
@funrep
funrep / .xinitrc
Created September 27, 2014 09:55
My dwm statusbar
# statusbar
while true; do
xsetroot -name "$( statusbar )"
sleep 1m # Update time every minute
done &
# settings
xset -b
xrdb -merge ~/.XResources
xsetroot -solid "#002b36"
@funrep
funrep / .emacs.el
Created June 19, 2014 15:03
My emacs config, nothing fancy...
;; Visual stuff
(menu-bar-mode 0)
(tool-bar-mode 0)
(scroll-bar-mode 0)
(setq inhibit-startup-message t)
(global-linum-mode t)
(setq linum-format " %d ")
(set-window-fringes nil 0 0)
(set-fringe-mode 0)
@funrep
funrep / lisp.sml
Created June 3, 2014 17:42
Unfinished (but working) lisp interpreter in SML.
(* simple lisp interpreter *)
type sym = string
datatype exp = Sym of sym
| List of exp list
| Num of int
| Str of string
| Bool of bool
| Lam of (sym list) * ((sym * exp) list) * exp
@funrep
funrep / lenstute.md
Last active August 29, 2015 14:01
Mini van Laarhoven lens tutorial

Basic functional references with pairs.

data FRef a b = FRef
  { get :: a -> b
  , set :: b -> a -> a
  }

fstF :: FRef (x, y) x
fstF = FRef
@funrep
funrep / spjbook.md
Created May 20, 2014 19:24
WHY DID I NOT KNOW BAOUT THIS!11!!111 ZOMG
@funrep
funrep / gittips.md
Created May 14, 2014 16:45
Foxborons awesome git tips

GIT STUFF!!!!

if you fuck up shit

git clone blalbblalb
cd blablabla
git checkout -b bar origin/bar
git checkout master
git checkout -b foo
git cherry-pick foo~1
@funrep
funrep / fonts.conf
Last active August 29, 2015 14:00
Nice font config from trisquil
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
<!--
DO NOT EDIT THIS FILE.
IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
LOCAL CHANGES BELONG IN 'local.conf'.
@funrep
funrep / gist:0c3459669c6280f002cd
Created May 2, 2014 19:41
Linux temperature check laptop
sudo apt-get install xsensor
@funrep
funrep / AWESOMESITE.md
Created April 22, 2014 06:06
AWESOME GAME THING SITE