Skip to content

Instantly share code, notes, and snippets.

View bpollman's full-sized avatar

Ben Pollman bpollman

View GitHub Profile

Merging Rubygems and Bundler

1.sh:

#!/bin/sh
set -eux
rm -rf rubygems bundler
git clone https://github.com/rubygems/rubygems
git clone https://github.com/rubygems/bundler
@bpollman
bpollman / icons
Last active May 6, 2022 03:46 — forked from brutella/icons
Generate iOS, watchOS, complications and macOS app icons from a single PDF
#! /bin/sh
# Original https://gist.github.com/brutella/0bcd671a9e4f63edc12e
function print_example() {
echo "Example"
echo " icons ios ~/AppIcon.pdf ~/Icons/"
}
function print_usage() {
@bpollman
bpollman / who_is_my_mummy.sh
Created February 1, 2019 00:06 — forked from joechrysler/who_is_my_mummy.sh
Find the nearest parent branch of the current git branch
#!/usr/bin/env zsh
git show-branch -a \
| grep '\*' \
| grep -v `git rev-parse --abbrev-ref HEAD` \
| head -n1 \
| sed 's/.*\[\(.*\)\].*/\1/' \
| sed 's/[\^~].*//'
# How it works: