Skip to content

Instantly share code, notes, and snippets.

View abacigalup-eb's full-sized avatar

Agustin Bacigalup abacigalup-eb

View GitHub Profile
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
}
package main
import (
"fmt"
"net"
)
func main() {
_, vpn, _ := net.ParseCIDR("172.27.0.0/16")
ifaces, err := net.Interfaces()
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'
#!/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"
#!/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"
@abacigalup-eb
abacigalup-eb / setup-k8s-config.sh
Last active August 3, 2022 16:10
merge all EB k8s configs into a single .kube/config
KUBECONFIG=$(find ~/eventbrite/{yak-configs,kubernetes-devenv/devenv}/.kube -type f | tr '\n' ':') kubectl config view --flatten > ~/.kube/config