This file contains 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", |
This file contains 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 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 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 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 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 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 | |
# | |
# List all files that have ever been committed in this repository, in any | |
# commit in any branch. | |
import pygit2 | |
import stat | |
def list_all_files(repo_path): | |
repo = pygit2.Repository(repo_path) |
This file contains 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
sbin/MAKEDEV | |
sbin/mount.crypt_LUKS | |
sbin/mount.crypto_LUKS | |
sbin/umount.crypt_LUKS | |
sbin/umount.crypto_LUKS | |
usr/bin/AClock | |
usr/bin/ANTS | |
usr/bin/ASFileBrowser | |
usr/bin/ASRun | |
usr/bin/ASWallpaper |
This file contains 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
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
void print_cmdline(void); | |
int main(int argc, char **argv) { | |
char *end; | |
print_cmdline(); | |
end = argv[argc-1] + strlen(argv[argc-1]); |
This file contains 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
From 4a9745b590c9912d5e1b6e139f0dcbe374196fad Mon Sep 17 00:00:00 2001 | |
From: Dennis Kaarsemaker <[email protected]> | |
Date: Thu, 8 Nov 2012 10:07:57 +0100 | |
Subject: [PATCH] Add a start delay option that allows healthchecks to run | |
early | |
When restarting haproxy with the -sf/-st options, the restart is almost | |
seamless. The problem is that all state (admin down via socket, | |
monitoring down) gets lost. This delay allows for health checks to | |
happen before the listeners start and the older process gets killed, |
OlderNewer