Skip to content

Instantly share code, notes, and snippets.

View eacousineau's full-sized avatar

Eric Cousineau eacousineau

View GitHub Profile
#!/usr/bin/python
import fnmatch
import argparse
import rosgraph.masterapi
import roslib
import rospy
import uuid
import sys
parser = argparse.ArgumentParser()
@eacousineau
eacousineau / glum.sh
Created July 25, 2013 09:13
glum - Git Lightweight User Management
#!/bin/bash
# Git Lightweight User Management
# To start a new user 'session'
# glum USER EMAIL
# To end user 'session'
# glum
glum-broken() {
# This shows an error, and replaces git in the current shell as an alias to this function
@eacousineau
eacousineau / git-submodule-test.sh
Created March 26, 2013 21:35
Git Submodule - Test Setup
for dir in a b c d; do
git init $dir
pushd $dir
touch test
echo $dir > bob
git add -A
git commit -m "Init"
popd
done
@eacousineau
eacousineau / git-new-workdir.sh
Last active December 15, 2015 10:59
git-new-workdir: Modification to enable this script for submodules. Copies config (does not symlink) and removes 'core.worktree' option.
Incorporated into: https://github.com/eacousineau/util
@eacousineau
eacousineau / git-fer.sh
Last active December 15, 2015 10:08
git-fer.sh: Different setup than git-submodule-foreach, some extensions. Can constrain module selection using 'scm.focusGroup' (spin off from Heiko Voigt's idea of submodule.includeSuper), with --force-all option to ignore it.
Incorporated into: https://github.com/eacousineau/util