Skip to content

Instantly share code, notes, and snippets.

View Parent5446's full-sized avatar

Tyler Romeo Parent5446

View GitHub Profile
@Parent5446
Parent5446 / slack.lua
Last active August 1, 2016 21:54
MPV Slack Upload Script
--[[
Copyright 2016 Google Inc.
Written by Tyler Romeo <tromeo@google.com?
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@Parent5446
Parent5446 / CLA.html
Created July 27, 2015 03:10
castlepointanime/brancher CLA
<h2 id="i-tmp-title">Contributor Agreement</h2>
<h2 id="i-tmp-subtitle"><span id="i-tmp-contributor-type">Individual</span> Contributor <span id="i-tmp-contributor-exclusivity">Non-Exclusive</span> License Agreement</h2>
<h2 id="i-tmp-subtitle-patent">including the <span id="i-tmp-patent-option">Patent Pledge</span> OPTION</h2>
<p>Thank you for your interest in contributing to <span id="i-tmp-project-name">Brancher</span> ("We" or "Us").</p>
<p>The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at <span id="i-tmp-submission-instructions">____________________</span>.</p>
<h3>1. DEFINITIONS</h3>
@Parent5446
Parent5446 / pre-commit
Last active April 18, 2017 03:34 — forked from DmZ/pre-commit
Adjusted regex to make more accurate
#!/bin/sh
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
@Parent5446
Parent5446 / keybase.md
Created October 10, 2014 19:14
Keybase Verification

Keybase proof

I hereby claim:

  • I am parent5446 on github.
  • I am parent5446 (https://keybase.io/parent5446) on keybase.
  • I have a public key whose fingerprint is C534 55EA 154A E382 DC85 9D68 405D 34A7 C86B 42DF

To claim this, I am signing this object:

@Parent5446
Parent5446 / git-cleanup.sh
Last active December 17, 2015 04:39
Git Cleanup Script
git reflog expire --expire=1.minute --all
git gc --prune=all --aggressive

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: