Skip to content

Instantly share code, notes, and snippets.

View chrissexton's full-sized avatar

Chris Sexton chrissexton

View GitHub Profile
@chrissexton
chrissexton / sh_env_var_opts.sh
Created September 14, 2023 01:26 — forked from KylePDavis/sh_env_var_opts.sh
Simple bash shell script templates. There are two versions: 1) simple env var based options, and 2) with added command line argument parsing and error handling.
#!/bin/bash -e
# A SHORT DESCRIPTION OF YOUR SCRIPT GOES HERE
# USAGE:
# DESCRIPTION OF ENV VARS HERE
###############################################################################
set -e # exit on command errors (so you MUST handle exit codes properly!)
set -o pipefail # capture fail exit codes in piped commands
#set -x # execution tracing debug messages
# Get command info
@chrissexton
chrissexton / hello.go
Last active April 17, 2018 18:13 — forked from mccoyst/hello.go
Say hi to skiesel
ackage main
import "fmt"
func main() {
fmt.Println("Hello, mccoyst!")
}
@chrissexton
chrissexton / GAME_MASTER_v0_1.protobuf
Created July 17, 2016 13:35 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {