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 | |
| BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
| BRANCH_NAME="${BRANCH_NAME##*/}" | |
| if [[ "$BRANCH_NAME" =~ ^RCRM- ]]; then | |
| sed -i -e "1s/^/+ $BRANCH_NAME: /" $1 | |
| 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
| def h = Jenkins.getInstance() | |
| def p = h.getProjects() | |
| j = h.getJDK("JDK 7") | |
| println(j) | |
| for (n in p) { | |
| n.setJDK(j) | |
| println(n.getName() + " " + n.getJDK()) | |
| } |
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
| blockdev --report | tail -n +2 | awk '{ if ($2 != 256) print $7 }' | xargs -r -l1 blockdev --setra 256 |
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
| # Shell script to download Oracle JDK from command prompt / terminal. | |
| # You can download all the binaries one-shot by just giving the BASE_URL. | |
| ## Features: | |
| # Resumes a broken [previous] download, if any. | |
| # Renames the file to a proper name with platform adding platform info. | |
| # Downloads all the following from Oracle Website with one shell invocation. | |
| # a. Windows 64 and 32 bit; | |
| # b. Linux 64 and 32 bit; and | |
| # c. API Docs. |
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
| while getopts ":H:" opt; do | |
| case $opt in | |
| H) | |
| HOST=$OPTARG | |
| ;; | |
| \?) | |
| echo "Invalid option: -$OPTARG" >&2 | |
| exit 2 | |
| ;; | |
| :) |
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 -e | |
| if [ "$#" -ne 5 ]; then | |
| echo "Invalid usage" | |
| echo "`basename $0` host port key 200000 4000000" | |
| exit 2 | |
| fi | |
| LLEN=`redis-cli --raw -h $1 -p $2 LLEN $3` |
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
| // ==UserScript== | |
| // @name Runkeeper Average Speed | |
| // @author Martin Stříž | |
| // @namespace http://martinstriz.cz/ | |
| // @version 2013.06.22 | |
| // @description Shows average speed instead of average pace on certain activity types | |
| // @include *runkeeper.com/user/*/activity/* | |
| // ==/UserScript== | |
| (function(){ |