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
#setup | |
mkdir test | |
echo 'print("Hello World!")' > test/__main__.py | |
python -m zipfile -c test.zip test/* | |
rm -rf test | |
echo '#!/usr/bin/python' > test | |
cat test.zip >> test | |
rm test.zip | |
chmod a+x test |
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
{ | |
"title": "Terminal Keys", | |
"rules": [ | |
{ | |
"description": "<capslock> to <esc>", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "caps_lock", |
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
# Two days ago (Nov. 6th) | |
NAME READY STATUS RESTARTS AGE | |
couchbase-operator-79947c877d-gwwmk 1/1 Running 0 28m | |
couchbase-operator-admission-fcf6ff86f-9bvxj 1/1 Running 0 28m | |
primary-db-0000 1/1 Running 0 28m | |
primary-db-0001 1/1 Running 0 27m | |
primary-db-0002 1/1 Running 0 26m | |
# Today (Nov. 8th) | |
NAME READY STATUS RESTARTS AGE |
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
sudo apt-get -y install build-essential autoconf libtool pkg-config | |
sudo apt-get -y install libgflags-dev | |
if ! [[ -f ~/bin/grpc_cli ]]; then | |
pushd "$(mktemp -d)" | |
git clone https://github.com/grpc/grpc.git ./ | |
git submodule update --init | |
make grpc_cli | |
mv ./bins/opt/grpc_cli ~/bin/grpc_cli | |
popd | |
fi |
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
"NeoBundle Scripts----------------------------- | |
if &compatible | |
set nocompatible " Be iMproved | |
endif | |
" Required: | |
set runtimepath+=/home/hunter/.vim/bundle/neobundle.vim/ | |
" Required: | |
call neobundle#begin(expand('/home/hunter/.vim/bundle')) |
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
"NeoBundle Scripts----------------------------- | |
if &compatible | |
set nocompatible " Be iMproved | |
endif | |
" Required: | |
set runtimepath+=/home/hunter/.vim/bundle/neobundle.vim/ | |
" Required: | |
call neobundle#begin(expand('/home/hunter/.vim/bundle')) |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
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 appendCacheInvalidation(url) { | |
const parsed = new URL(url); | |
parsed.searchParams.set('sutraCachedInvalidation', (1e16 * Math.random()).toString(16)); | |
return parsed.toString(); | |
} |
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 isIterableNode(node) { | |
if (node.nodeName == 'NOSCRIPT') { | |
return false; | |
} | |
return true; | |
} | |
function* nodeIterator(root) { | |
const treeWalker = document.createTreeWalker( |
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 isIgnoredNode(node) { | |
if (node.nodeName == 'NOSCRIPT') { | |
return true; | |
} | |
return false; | |
} | |
function* nodeIterator(root) { | |
const treeWalker = document.createTreeWalker( |
OlderNewer