Skip to content

Instantly share code, notes, and snippets.

View AmandaRiu's full-sized avatar
🏠
Working from home

Amanda Riu AmandaRiu

🏠
Working from home
View GitHub Profile
@AmandaRiu
AmandaRiu / logcatapp.sh
Created October 11, 2018 16:35 — forked from kevinxucs/logcatapp.sh
Filter logcat by app package name
#!/bin/bash
usage() {
echo "Usage: $(basename $0) [package] ..."
}
app_package=$1
shift
if [ -z $app_package ]; then
@AmandaRiu
AmandaRiu / pr.md
Created July 23, 2018 20:45 — 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 = 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: