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
-Xms4g | |
-Xmx4g | |
-XX:-UseParNewGC | |
-XX:-UseConcMarkSweepGC | |
-XX:ReservedCodeCacheSize=1g | |
-XX:+UseG1GC | |
-XX:+DisableExplicitGC |
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
[ | |
["f", "Show next/latest diffs", "setProposedRevRanges()"], | |
["shift+]", "Next unreviewed file", "nextUnreviewedFile()"], | |
["shift+[", "Previous unreviewed file", "prevUnreviewedFile()"], | |
["]", "Next changed file", "nextChangedFile()"], | |
["[", "Previous changed file", "prevChangedFile()"], | |
[null, "Next visible file", "nextVisibleFile()"], | |
[null, "Previous visible file", "prevVisibleFile()"], |
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 | |
set -euo pipefail | |
IFS=$'\n\t' | |
scriptdir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) | |
. $scriptdir/env.sh | |
echo ">>>>> Mac Docker found - making /var/lib/kubelet shared" | |
MOBY_TTY="${HOME}/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty" | |
if [ -c "$MOBY_TTY" ]; then |
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
# This is a shell archive. Save it in a file, remove anything before | |
# this line, and then unpack it by entering "sh file". Note, it may | |
# create directories; files and directories will be owned by you and | |
# have default permissions. | |
# | |
# This archive contains: | |
# | |
# Library/LaunchAgents/com.docker.machine.default.plist | |
# | |
echo x - Library/LaunchAgents/com.docker.machine.default.plist |
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/sh | |
OUT="${1%.*}.pdf" | |
$(dirname "$0")/gprof2dot.py -f pstats "$@" | dot -Tpdf > $OUT | |
open $OUT |
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
from gevent import spawn | |
from gevent.queue import Queue | |
def whisper(left, right): | |
left.put(right.get() + 1) | |
def main(): | |
n = 100000 | |
leftmost = Queue() | |
left, right = None, leftmost |
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
import logging | |
logging.basicConfig( | |
level=logging.INFO, | |
format='%(asctime)s %(levelname)7s: %(message)s', # [%(name)s +%(lineno)d]', | |
datefmt='%Y-%m-%dT%H:%M:%S%z', | |
) | |
logger = logging.getLogger(__name__) | |
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
sed -e '$a\' * |
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
function 95p { tail -n +$((` wc -l $1 | cut -d ' ' -f 2 `*95/100)) $1 | head -n 1 ; }; |
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
trap 'echo -ne "\033]0;${BASH_COMMAND%% *}\007"' DEBUG | |
function show_name { | |
if [[ -n "$BASH_COMMAND" ]]; then | |
echo -en "\033]0;`basename ${PWD}`\007" | |
fi | |
} | |
export PROMPT_COMMAND=${PROMPT_COMMAND:+${PROMPT_COMMAND%%;*( )};}'history -a;show_name' |