Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
function determine_packagemanager () {
packagemanager=""
which apt-get >/dev/null 2>&1 && packagemanager="apt-get"
which aptitude >/dev/null 2>&1 && packagemanager="aptitude"
which yum >/dev/null 2>&1 && packagemanager="yum"
which pacman >/dev/null 2>&1 && packagemanager="pacman"
}
determine_packagemanager
import XMonad
import XMonad.Layout
import qualified XMonad.StackSet as W
import XMonad.Util.EZConfig
import XMonad.Hooks.FadeInactive
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Layout.LayoutHints
# Maintainer: Zoran Zaric <[email protected]>
pkgname=babushka
pkgver=20100817
pkgrel=0
pkgdesc='test-driven sysadmin'
arch=(any)
url='http://babushka.me'
license=('None') #TODO
makedepends=('git')
#/bin/zsh
PWD=$(pwd)
STARTFILES=200000
ENDFILES=200365
FILES_DIR=${PWD}/texte
RESTORE_DIR=${PWD}/restore
BUP_DIR=${PWD}/bup
export BUP_DIR
#!/bin/sh
#
# Copyright (c) 2007 Andy Parkins
#
# An example hook script to mail out commit update information. This hook
# sends emails listing new revisions to the repository introduced by the
# change being reported. The rule is that (for branch updates) each commit
# will appear on one email and one email only.
#
# This hook is stored in the contrib/hooks directory. Your distribution
_redo()
{
local cur
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
local targets=$(for t in `ls *.do | sed 's/\.do$//'`; do echo ${t}; done)
COMPREPLY=($(compgen -W "${targets}" $cur))
}
@zoranzaric
zoranzaric / gist:784896
Created January 18, 2011 18:29
Make manpages colorfull
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
for f in bundle_/*; do url=$(grep url $f/.git/config | sed "s/ url = //"); name=$(basename $url | sed "s/\.git$//"); git submodule add $url bundle/$name; done
/* look-zenburn.xrdb --- X resource file for the Zenburn color theme
Copyright (C) 2003, 2004 Daniel Brockman -*- xrdb -*-
Copyright (C) 2002 Jani Nurminen vim:ft=xdefaults:
Author: Daniel Brockman <[email protected]>
URL: http://www.brockman.se/software/zenburn/look-zenburn.xrdb
Updated: 2004-10-11
This file is released under the GNU General Public License.
#
# This is the default wmfs config file, copy it to
# ~/.config/wmfs/wmfsrc and edit it.
#
# Include file to split configuration
# @include "~/.config/wmfs/menu-wmfsrc"
[misc]# {{{
font = "terminus-10"