Skip to content

Instantly share code, notes, and snippets.

View Bonemind's full-sized avatar

Subhi Dweik Bonemind

View GitHub Profile
@schlarpc
schlarpc / gist:a327d4aa735f961555e02cbe45c11667
Last active November 18, 2024 20:03
USB Armory libcomposite init script (RNDIS and serial)
#!/bin/bash
set -euo pipefail
GADGET_NAME=usbarmory
LANGUAGE=0x409 # English
MANUFACTURER="Inverse Path"
PRODUCT="USB Armory"
HOST_ADDRESS="1a:55:89:a2:69:42"
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
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: