This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hmf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hmf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rockj@pandora:~$ cat .xsession | |
#!/bin/bash | |
export WINDOW_MANAGER=xmonad | |
[[ -f "$HOME/.pathrc" ]] && source $HOME/.pathrc | |
# Load resources | |
#xrdb -merge .Xresources | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rockj@pandora:/opt$ cat ~/.xmonad/xmonad.hs | |
import XMonad | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Hooks.SetWMName | |
import XMonad.Layout.Fullscreen | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig(additionalKeys) | |
import System.IO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XMonad | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Hooks.SetWMName | |
import XMonad.Hooks.ICCCMFocus | |
import XMonad.Layout.Fullscreen | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig(additionalKeys) | |
import XMonad.Util.EZConfig(additionalKeysP) | |
import System.IO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /usr/local/nav/etc/apache/subsystems/cricket.conf | |
<Location /cricket> | |
SetHandler none | |
AddHandler cgi-script .cgi | |
</Location> | |
<!-- Legge til denne kanskje pr default i nav? --> | |
<Directory /usr/share/cricket> | |
Order allow,deny | |
Allow from all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import timeit | |
import os | |
from nav.rrd.presenter import * | |
from nav.models.rrd import RrdDataSource | |
class Foo: | |
def __init__(self): | |
os.environ["DJANGO_SETTINGS_MODULE"] = "nav.django.settings" | |
self.datasources = [x.id for x in RrdDataSource.objects.filter(rrd_file__key='interface').select_related('rrd_file')] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rockj@pandora:/tmp$ ls *commitmsg.txt | |
bad-commitmsg.txt commitmsg.txt | |
rockj@pandora:/tmp$ for i in `ls *commitmsg.txt`; do echo $i; cat $i; done; | |
bad-commitmsg.txt | |
this is not a good commit messsage | |
CV-123 even tho commit# is here but not on first line | |
commitmsg.txt | |
CVE-123 This is good commit message | |
yaii yaii |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rockj@pandora:/tmp/foo$ .git/hooks/commit-msg.sample /tmp/commitmsg.txt | |
rockj@pandora:/tmp/foo$ .git/hooks/commit-msg.sample /tmp/bad-commitmsg.txt | |
Requires valid ticket number | |
rockj@pandora:/tmp/foo$ cat .git/hooks/commit-msg.sample | |
#!/bin/sh | |
test "" = "$(head -1 "$1" | grep -vE ^[[:alpha:]]\{2,3}-[[:digit:]]\{1,3})" || { | |
echo >&2 Requires valid ticket number | |
exit 1 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(root@pi)-(/usr/local/src/weechat) $ gdb attach 32618 | |
GNU gdb (GDB) 7.0.1-debian | |
Copyright (C) 2009 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "i486-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>... |