Skip to content

Instantly share code, notes, and snippets.

View tannermares's full-sized avatar

Tanner Mares tannermares

View GitHub Profile
@tannermares
tannermares / build-and-publish.yml
Created August 10, 2020 20:03
Build and Publish React Native Project to Testflight and Google Play
# Sources:
# https://blog.usejournal.com/automate-react-native-builds-with-github-actions-af54212d26dc
# https://zach.codes/ios-builds-using-github-actions-without-fastlane/
# https://stackoverflow.com/questions/16550594/jenkins-xcode-build-works-codesign-fails/19550453#19550453
# https://www.valueof.io/blog/deploying-to-google-play-using-github-actions
name: Build and Publish Test Builds
on:
push:
@tannermares
tannermares / rmb
Created January 19, 2017 18:54
Remove Merged Branches
#!/bin/bash
current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
if [ "$current_branch" != "master" ]; then
echo "WARNING: You are on branch $current_branch, NOT master."
fi
echo "Fetching merged branches..."
git remote prune origin
remote_branches=$(git branch -r --merged | grep -v '/master$' | grep -v "/$current_branch$")
local_branches=$(git branch --merged | grep -v 'master$' | grep -v "$current_branch$")
if [ -z "$remote_branches" ] && [ -z "$local_branches" ]; then
@tannermares
tannermares / GitHubPullRequestEnhancement.js
Last active February 23, 2021 20:07
Toggle "NOT READY!" PRs, Toggle +2 PR's
// ==UserScript==
// @name GitHub Pull Request Enhancements
// @namespace http://tannermar.es
// @version 1.3
// @description Easily toggle visibility of "NOT READY", +2, and needed review PR's
// @match https://github.com/ministrycentered/services/pulls
// @require https://code.jquery.com/jquery-3.3.1.min.js
// @copyright 2021+, @tannermares
// ==/UserScript==
@tannermares
tannermares / nginx.rb
Last active August 29, 2015 14:04 — forked from mranallo/nginx.rb
require 'formula'
class Nginx < Formula
homepage 'http://nginx.org/'
url 'http://nginx.org/download/nginx-1.6.1.tar.gz'
sha1 'e58c865f67b580541ed4eadf69d1676762bf50ab'
devel do
url 'http://nginx.org/download/nginx-1.5.1.tar.gz'
sha1 'bd5a5e7dba39a4aa166918112367589f165ce5bc'
@tannermares
tannermares / .aliases
Last active August 29, 2015 14:02
GTFO: Reverts modified files and removes new files in a branch.
alias gtfo="git reset --hard && git clean --force"
@tannermares
tannermares / keybase.md
Last active June 16, 2016 21:44
I am who I am.

Keybase proof

I hereby claim:

  • I am tannermares on github.
  • I am tannermares (https://keybase.io/tannermares) on keybase.
  • I have a public key whose fingerprint is 3FBA 442C 9A25 3252 8749 A942 BF69 9954 767E 298D

To claim this, I am signing this object:

#!/usr/bin/env ruby
if `git diff --cached spec` =~ /,\s?(:focus|focus:\s?true|:focus\s?=>\s?true)/
puts "\e[31mPlease focus and remove your :focus tags before committing!\e[0m"
exit 1
end
if `git diff --cached app/assets/javascripts` =~ /\+\s*console.log/
puts "\e[31mPlease remove your console.logs before committing!\e[0m"
exit 1