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
#!/bin/bash | |
if [ "$1" == "--noop" ]; then | |
NOOP=1 | |
VERBOSE=1 | |
fi | |
# We only support stretch or newer | |
if [ "$(lsb_release -cs)" == "jessie" ]; then | |
exit 0 |
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 | |
# | |
# Usage: | |
# | |
# To deploy the current branch to production | |
# | |
# .deploy | |
# | |
# To deploy the current branch to a different environment | |
# |
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
package scattergather | |
import ( | |
"context" | |
"sync" | |
) | |
type ScatteredFunction func(context.Context, ...interface{})(interface{}, error) | |
type ScatterGather struct { |
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
# (c) 2011-2013 Dennis Kaarsemaker <dennis@kaarsemaker.net> | |
# see COPYING for license details | |
# Test edit! | |
import os | |
import platform | |
import random | |
import re | |
import socket | |
import subprocess |
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
#!/usr/bin/env python | |
# coding: Latin-1 | |
# Load library functions we want | |
from inputs import get_gamepad | |
import piconzero as pz | |
import time | |
import sys | |
import random | |
import colorsys |
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 |
NewerOlder