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 | |
ROOT=$(git rev-parse --show-toplevel) | |
usage() | |
{ | |
echo "Configures a subtree for git stpull" | |
echo "" | |
echo "git stconfig [-b=<branch>] -r=<remote> -p=<prefix> [--pull] <subtree-config-name>" | |
echo "git stconfig [-h | --help]" |
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
import groovy.util.XmlSlurper | |
import groovy.util.slurpersupport.* | |
def root = new XmlSlurper().parse(new File(args[0])) | |
def getAttributes(node) { | |
String res = ''; | |
node.attributes().each { key, value -> | |
if (key == 'class') { | |
key = "'class'" |
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 | |
PPPOE=HCSC | |
IFNAME=utun0 | |
SUBNET="10.0.0.0/8" | |
if [ $(id -u) != "0" ] | |
then | |
echo "Running using sudo.." | |
sudo "$0" "$@" | |
exit $? | |
fi |