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
DEVICE=eth0 | |
BOOTPROTO=static | |
IPADDR=your_IP | |
NETMASK=your_network_mask | |
HWADDR=NIC_MAC_address | |
NM_CONTROLLED=no | |
ONBOOT=yes | |
TYPE=Ethernet | |
IPV6INIT=no |
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
git diff -p -R --no-color \ | |
| grep -E "^(diff|(old|new) mode)" --color=never \ | |
| git apply |
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
git branch -r | while read remoteBranch; do git checkout --track -b "${remoteBranch/origin\//}" $remoteBranch; done | |
# push | |
git push --all <origin> | |
git push --tags <origin> |
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
http://asciiflow.com/ (used to make ascii graphs) | |
Feature based development | |
# Three basic workflow (base, hotfix, and exclude feature) | |
# Base workflow | |
* Release is made by merging in a set of feature branches | |
* Release and feature branches are branched off master | |
* When QA passes a feature the feature is merged into release branch |
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
git log --all --grep='SOME-TICKET' |
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/sh | |
find $1 -type f -print0 | while read -d $'\0' file | |
do | |
# determine type | |
TYPE=$(echo $(file -i "$file")|cut -d : -f 2) | |
FOUND=$(echo $TYPE|grep -E -c "^video/[^[:space:]]{1,};[[:space:]]{1}charset=binary$") | |
if [ "$FOUND" = "1" ]; then | |
echo "cp file:$file type:$TYPE to:$2" | |
cp -p "$file" "$2" | |
fi |
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
curl -d '<?xml version="1.0"?><methodCall><methodName>Handler.Method</methodName><params><param><value>SOME_VALUE</value></param></params></methodCall>' \ | |
protocol://host:port |
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
mvn dependency:get -Dartifact=[GROUP_ID]:[ARTIFACT_ID]:[VERSION] |