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:
@bpollman
bpollman / swiftlint-stats.sh
Created January 31, 2019 00:50
Generate Some useful Stats from swiftlint output with the help of sqlite3
#!/bin/bash --
csvfile=$(mktemp)
# get pwd to trim it from output
pwd=$(pwd)
pwdlen=${#pwd}
#get swifty
swiftlint lint --reporter csv > $csvfile
@bpollman
bpollman / git_tag_cleanup.sh
Last active January 31, 2019 00:48
Git Tag management
# batch delete remote tags
git push origin --delete (git tag -l "builds/iosbeta/*")
# Delete local tags
git tag --delete (git tag -l "builds/iosbeta/*")
@bpollman
bpollman / keybase.md
Created January 22, 2018 02:21
keybase

Keybase proof

I hereby claim:

  • I am bpollman on github.
  • I am bpollman (https://keybase.io/bpollman) on keybase.
  • I have a public key ASAzE6idBeFIHuk4XEOd2_xXntoAvX6JnfqvtyELDoDpyQo

To claim this, I am signing this object: