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
[alias] | |
hist = log --graph --color=always --pretty='[%C(cyan)%h%Creset]%C(bold cyan)%d%Creset %s' --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
#!/bin/bash | |
# | |
# Hook to copy the contents of a static blog generator to its final location. | |
# Publishing is now a matter of 'git push blog' | |
set -e | |
read oldrev newrev refname | |
if [ $refname = refs/heads/master ]; then | |
rev=$(echo $newrev | cut -c1-7) |
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/python | |
# | |
# Script to mirror github repositories and keep them up-to-date | |
# | |
# Usage: | |
# | |
# ./github_mirror | |
# | |
# It mirrors the configured repositories in the current directory | |
# |
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
# Set git user/email based on ldap values | |
test -x /usr/bin/git || return | |
test -x /usr/bin/ldapsearch || return | |
git config --global user.name > /dev/null || { | |
name=$(ldapsearch -x -LLL "(uid=$USER)" cn | sed -ne 's/^cn: //p') | |
test -n "$name" && git config --global user.name "$name" | |
} |
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/python | |
# | |
# Fetch passwords for imap/smtp accounts from gnome-keyring | |
# Adding passwords to gnome-keyring is up to yourself. Passwords added | |
# by evolution will be picked up, which may help. | |
# | |
# Usage in .muttrc: | |
# source "~/bin/mutt-keyring $folder $smtp_url|" | |
import gnomekeyring as gk |
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
class lvm { | |
} | |
define lvm::volume( | |
$lv = "LogVol01", | |
$vg = "VolGroup00", | |
$size = "", | |
$auto_extend = true, | |
$owner = "root", |
NewerOlder