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/awk -f | |
# Convert the "svn log" output into a one liner format, which is easier to grep | |
# or use in scripts. Pipe "svn log" into this script | |
# When we get a line that starts with a revision number, put the data in variables | |
/^r[0-9]+/ { | |
rev=$1 | |
user=$3 | |
date=$5 |
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
SETLOCAL | |
PUSHD . | |
REM Update buildroot path | |
FOR /F "tokens=*" %%i in ('cygpath %3') do SET NEW_BUILDROOT=%%i | |
REM Update topdir path | |
SET TOPDIR=%5 | |
SET TOPDIR=%TOPDIR:~9,-1% | |
FOR /F "tokens=*" %%i in ('cygpath "%TOPDIR%"') do SET NEW_TOPDIR=%%i |
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
// Anonymous "self-invoking" function | |
(function() { | |
// Load the script | |
var script = document.createElement("SCRIPT"); | |
script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'; | |
script.type = 'text/javascript'; | |
document.getElementsByTagName("head")[0].appendChild(script); | |
// Poll for jQuery to come into existance | |
var checkReady = function(callback) { |
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 | |
# Thx to: http://mykospark.net/2014/01/iterating-through-regular-expression-matches-with-bash/ | |
COMMENT=$1 | |
REGEX_ISSUE_ID="([A-Z]+-[0-9]+|[0-9]{3,})" | |
while [[ ${COMMENT} =~ (${REGEX_ISSUE_ID}) ]]; do | |
echo "${BASH_REMATCH[1]}" | |
COMMENT=${COMMENT##*${BASH_REMATCH[1]}} | |
done |
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 | |
raw=`cat users.txt` | |
IFS=$'\n' | |
arr=($raw) | |
output="" | |
for i in "${arr[@]}" | |
do | |
IFS='=' read -a line <<< "$i" |
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
ssh user@PROXY -N -L LOC_PORT:TARGET:TARGET_PORT | |
ssh [email protected] -N -L 2222:10.0.2.1:22 |
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
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=0;target-densityDpi:device-dpi;" /> |
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
git config --global url."https://".insteadOf git:// |
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
FilterDeclare subst | |
FilterProvider subst SUBSTITUTE resp=Content-Type $text/ | |
FilterProvider subst SUBSTITUTE resp=Content-Type $/xml | |
FilterProvider subst SUBSTITUTE resp=Content-Type $/json | |
FilterProvider subst SUBSTITUTE resp=Content-Type $/javascript | |
<location /node/> | |
ProxyPass http://localhost:1337/ | |
ProxyPassReverse http://localhost:1337/ | |
ProxyPassReverseCookiePath / /node/ |
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
lftp -c 'pget -n 10 sftp://USER:PASSWORD@URL/PATH_TO/FILE.zip' |
NewerOlder