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 / gist:3848260
Created October 7, 2012 12:31
nanorc
## nano.rc file
include "/usr/share/nano/nanorc.nanorc"
## C/C++
include "/usr/share/nano/c.nanorc"
## Makefiles
include "/usr/share/nano/makefile.nanorc"
## Cascading Style Sheets
@funrep
funrep / gist:3848392
Created October 7, 2012 13:23
urxvt libs
$ ldd /usr/bin/urxvt
linux-vdso.so.1 (0x00007ffff1577000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007fcc0c927000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007fcc0c6ed000)
libXft.so.2 => /usr/lib/libXft.so.2 (0x00007fcc0c4d8000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007fcc0c2cd000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fcc0bf94000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x00007fcc0bd72000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007fcc0bb24000)
libstartup-notification-1.so.0 => /usr/lib/libstartup-notification-1.so.0 (0x00007fcc0b91b000)
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO
main = do
xmproc <- spawnPipe "/usr/bin/xmobar /home/klr/.xmobarrc"
reverseString :: [a,b,c] -> [c,b,a]
reverseString [] error "empty string or list"
reverseString [a,b,c] = [c,b,a]
@funrep
funrep / gist:3912864
Created October 18, 2012 16:11
for hutty :P
git clone https://github.com/hutty/ps-xonotic.git && cd ps-xonotic && git remote add upstream https://github.com/klrr/ps-xonotic.git && git fetch upstream && mkdir maps textures demos other && git add maps textures other
@funrep
funrep / gist:3912885
Created October 18, 2012 16:13
for hutty v.2
git add #your files && git commit -m "trololol" && git push origin master
@funrep
funrep / gist:3912901
Created October 18, 2012 16:17
GIT GUIDE FOR HUTTY! XD
first copy paste this in the terminal:
git clone https://github.com/hutty/ps-xonotic.git && cd ps-xonotic && git remote add upstream https://github.com/klrr/ps-xonotic.git && git fetch upstream && mkdir maps textures demos other && git add maps textures other
then add your files and such, also use "git add" for each one and then do:
git commit -m "trololol" && git push origin master
then go to https://github.com/klrr/ps-xonotic and click the pull-request button ;)
tracepath www.xonotic-gaming.org
1: h85-30-59-72.static.se.alltele.net 0.095ms pmtu 1500
1: h85-30-56-1.static.se.alltele.net 1.610ms
1: h85-30-56-1.static.se.alltele.net 1.120ms
2: 10.11.35.177 2.765ms
3: 10.11.0.2 1.449ms
4: h87-241-80-1.static.se.alltele.net 1.911ms
5: v2021-0-te-3-2.cr2.sth1.se.alltele.net 12.263ms
6: no reply
7: level3.sto01.atlas.cogentco.com 13.087ms
(gdb) bt
#0 WINS_Init () at libs/l_net/l_net_berkley.c:176
#1 0x000000000058cfc6 in Net_Setup () at libs/l_net/l_net.c:330
#2 0x00000000005735c7 in CWatchBSP::SetupListening (this=this@entry=0x949580)
at radiant/watchbsp.cpp:503
#3 0x0000000000573664 in CWatchBSP::DoEBeginStep (this=this@entry=0x949580)
at radiant/watchbsp.cpp:514
#4 0x0000000000573a24 in CWatchBSP::DoMonitoringLoop (this=0x949580, pCmd=pCmd@entry=
0x164c160, sBSPName=<optimized out>, sBSPName@entry=0x1690780 "mcts1")
at radiant/watchbsp.cpp:783
lastButOne :: [a] -> a
lastButOne xs
| xs == [] = "Sorry, empy list!"
| length xs == 1 = "Sorry, too short list!"
| otherwise = last (init xs)