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 / .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 / 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

Esport stats

Tournaments

  • FFA Saturday Contest

    Game: Warxon (Alpha release)

    Qualification: Sign up with approval

Mode: Free-for-all

@funrep
funrep / driver.py
Last active August 29, 2015 14:16
Datateknik skolprojekt, arduino spelkontroll
# funkar bara på linux för tillfället
# måste byta ut xdotool till
# https://github.com/SavinaRoja/PyUserInput
import serial
import os
from multiprocessing import Process
# måste bytas ut mot rätt device
# använd skriv så här i kommando prompten
<meta charset="UTF-8">
<html>
<head>
<title>vitracker</title>
<script type="text/javascript" charset="utf-8" src="xm.js"></script>
</head>
<body>
<p>Hello, world</p>
</body>
</html>
@funrep
funrep / dot.mkshrc
Created September 17, 2012 17:20
doesnt work :(
PS1=$'\001\r''$(precmd)${USER:=$(ulimit -c 0; id -un 2>/dev/null || echo \?
)}@${HOSTNAME%%.*}:$(local d=${PWD:-?} p=~; [[ $p = ?(*/) ]] || \
d=${d/#$p/~};'$'\001\e[2;34m\001'' local m=${%d} n p=...; (( m > 0 )) || m=${#d}
(( m > (n = (COLUMNS/3 < 7 ? 7 : COLUMNS/3)) )) && d=${d:(-n)} || \
p=; print -nr -- "$$p$d\001\033[0;32m\001") '"$PS1 " $'\001\e[0m\001'
: ${MKSH:=$(whence -p mksh)}; export EDITOR HOSTNAME MKSH TERM USER
@funrep
funrep / sdfsdf
Created September 17, 2012 18:07
safdsdfsdf
klr's mksh configuration
: ${EDITOR:=/bin/ed} ${TERM:=vt100} ${HOSTNAME:=$(ulimit -c 0;hostname -s 2>&-)}
[[ $HOSTNAME = @(localhost|*([ ])) ]] && HOSTNAME=$(ulimit -c 0;hostname 2>&-)
: ${HOSTNAME:=nil}; if (( USER_ID )); then PS1='$'; else PS1='#'; fi
function precmd {
local e=$?
(( e )) && print -n "$e|"
@funrep
funrep / gist:3744548
Created September 18, 2012 17:40
asdassdasdasadsad
error:
foo.c: In function 'main':
foo.c:7:9: warning: unknown escape sequence: '\c' [enabled by default]
code:
/* FOOBAR */
@funrep
funrep / gist:3751145
Created September 19, 2012 18:02
asads
/* FOOBAR */
#include <stdio.h>
main()
{
int fuu;
int c;
fuu = ((c=getchar()) != EOF);
@funrep
funrep / gist:3751341
Created September 19, 2012 18:33
FOOBAR!!!1
/* FOOBAR */
#include <stdio.h>
main()
{
long nc;
nc = 0;
while (getchar() != EOF)