Skip to content

Instantly share code, notes, and snippets.

View jstine35's full-sized avatar

Jake Stine jstine35

View GitHub Profile
@jstine35
jstine35 / pr.md
Created May 14, 2018 23:41 — forked from piscisaureus/pr.md
Checkout github pull requests locally

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 = [email protected]: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:

@jstine35
jstine35 / choco-installer.nsi
Created February 3, 2018 17:57
Chocolatey Web Installer NSIS Script
; Chocolatey Web Installer
; By Jake Stine
;
; This is currently a one-way install. No uninstaller is provided.
; Uninstalling Chocolatey normally consists of deleting the chocolatey dir and removing
; Chocolatey from the PATH.
!include "LogicLib.nsh"
name "Chocolatey Web Installer"