Skip to content

Instantly share code, notes, and snippets.

View zshift's full-sized avatar

Peter David Faria zshift

  • Fort Lauderdale, FL, USA
View GitHub Profile
@zshift
zshift / npr.zsh
Last active August 12, 2020 16:59
# -------------------------------------------------------
# npr
# Creates a PR on github for the current branch to the
# default branch.
#
# Note: Only tested on
# * macOS 10.15.5
# * zsh 5.7.1 (x86_64-apple-darwin19.0)
#
# 1. Checks if the current directory is within a git repo
@piotrkulpinski
piotrkulpinski / .cleaninstall
Last active March 19, 2024 12:45
New macOS install script
#!/bin/sh
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install taps
brew tap homebrew/cask
# Install cli stuff
brew install git
anonymous
anonymous / GAME_MASTER_v0_1.protobuf
Created July 16, 2016 16:31
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 {
@adharris
adharris / postgres_array.go
Created November 28, 2012 19:52
PostgreSQL demo of Array types using Golang
package main
import (
"database/sql"
"errors"
"fmt"
_ "github.com/bmizerany/pq"
"os"
"regexp"
"strings"