Skip to content

Instantly share code, notes, and snippets.

View HunterLarco's full-sized avatar
🚀
making all the things

Hunter Larco HunterLarco

🚀
making all the things
View GitHub Profile
@HunterLarco
HunterLarco / script.bash
Created July 7, 2016 18:05
Python Goodness
#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
@HunterLarco
HunterLarco / terminal.json
Last active October 5, 2019 19:06
Modifier Keys for Macbook Pro Touchbar
{
"title": "Terminal Keys",
"rules": [
{
"description": "<capslock> to <esc>",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
# 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
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
"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'))
"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'))
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
function appendCacheInvalidation(url) {
const parsed = new URL(url);
parsed.searchParams.set('sutraCachedInvalidation', (1e16 * Math.random()).toString(16));
return parsed.toString();
}
function isIterableNode(node) {
if (node.nodeName == 'NOSCRIPT') {
return false;
}
return true;
}
function* nodeIterator(root) {
const treeWalker = document.createTreeWalker(
function isIgnoredNode(node) {
if (node.nodeName == 'NOSCRIPT') {
return true;
}
return false;
}
function* nodeIterator(root) {
const treeWalker = document.createTreeWalker(