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
colors () { | |
for i in {0..255}; do | |
printf "\x1b[38;5;${i}mcolor%-5i\x1b[0m" $i ; | |
if ! (( ($i + 1 ) % 8 )); then echo ; fi ; | |
done | |
} |
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
package main | |
import ( | |
"fmt" | |
"net" | |
) | |
func main() { | |
_, vpn, _ := net.ParseCIDR("172.27.0.0/16") | |
ifaces, err := net.Interfaces() |
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
call plug#begin() | |
" editor | |
Plug 'tpope/vim-sensible' | |
Plug 'tpope/vim-surround' | |
Plug 'tpope/vim-commentary' | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
Plug 'jesseleite/vim-agriculture' | |
Plug 'valloric/youcompleteme', { 'do': './install.py' } | |
Plug 'sirver/ultisnips' |
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 | |
# brew install xbar jq | |
# pip install astro-cli | |
PATH=$PATH:/usr/local/bin | |
ASTRO=$(pyenv which astro) | |
$ASTRO --date "a week ago" -f json moon phases | jq -r "first | .emoji" | |
echo "---" | |
echo "phases | size=10" |
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 | |
set -e | |
if ! which gh 2>&1 > /dev/null; then | |
echo 'Missing gh cli' | |
exit 1 | |
fi | |
if [ $# -eq 0 ]; then | |
echo "usage: $0 <github query>" | |
echo "Read more in https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests" |
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
KUBECONFIG=$(find ~/eventbrite/{yak-configs,kubernetes-devenv/devenv}/.kube -type f | tr '\n' ':') kubectl config view --flatten > ~/.kube/config |