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 May 27, 2022 14:28
zsh function to open a browser link to create a PR for the current branch
function npr() {
git rev-parse --is-inside-work-tree 1>/dev/null 2>/dev/null
if [[ $? != 0 ]]; then
echo2 Usage: npr
echo2
echo2 Only valid inside a git repository.
return 1
fi
default=$(git symbolc-ref refs/remotes/origin/HEAD | sed -e 's@^refs/remotes/origin/@@')
@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
@zshift
zshift / .cleaninstall
Created October 7, 2019 18:13 — forked from piotrkulpinski/.cleaninstall
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 caskroom/cask
# Install cli stuff
brew install git

Keybase proof

I hereby claim:

  • I am zshift on github.
  • I am zshift (https://keybase.io/zshift) on keybase.
  • I have a public key ASDdnKJJ95xg0QkX2cqcSbZyp6j7Bfm3QdxvFe6bp6gnpgo

To claim this, I am signing this object:

@zshift
zshift / # curl - 2018-08-16_11-40-43.txt
Created August 16, 2018 15:43
curl on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for curl on macOS 10.12.6
Build date: 2018-08-16 11:40:43
@zshift
zshift / GAME_MASTER_v0_1.protobuf
Created July 17, 2016 14:52 — 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 {
using System;
using System.Threading;
using EasyNetQ;
using EasyNetQ.ConnectionString;
using EasyNetQ.Loggers;
namespace EasyNetQBug
{
public class Program
{