Skip to content

Instantly share code, notes, and snippets.

View michaelbaudino's full-sized avatar

Michael Baudino michaelbaudino

View GitHub Profile
@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 = 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:

@michaelbaudino
michaelbaudino / git-in-prompt.sh
Last active August 30, 2021 08:57
Bash prompt with GIT branch and status display
### Michael Baudino <michael.baudino@alpine-lab.com>
### License: WTFPL
###
### To use this fancy prompt:
### 1. copy this file as ~/.git-in-prompt.sh
### 2. add the following line to your ~/.bashrc file:
### [[ -s "$HOME/.git-in-prompt.sh" ]] && source "$HOME/.git-in-prompt.sh"
### 3. enjoy :-)
###
@phansch
phansch / yardoc_cheatsheet.md
Last active September 22, 2024 02:17 — forked from chetan/yardoc_cheatsheet.md
Improved YARD cheatsheet
@tzapu
tzapu / docker-compose.yml
Last active September 26, 2022 05:13
docker compose file for local server, plex, transmission, sonarr, radarr, ombi, netdata, nextcloud
version: '2.1'
services:
transmission:
container_name: transmission
image: dperson/transmission
restart: unless-stopped
depends_on:
- plex
network_mode: host
environment: