Skip to content

Instantly share code, notes, and snippets.

View mattpotts's full-sized avatar
🦒

Matthew Potts mattpotts

🦒
View GitHub Profile
BEGIN MESSAGE.
e3ry3OS2D7rCdgp u3Glxc7XYjgg9Lb z4z8ZyDb8zm8WZ5 h9GWcOZWuhzsmHy
S2rWdt4SJKIAUTB kcOxIsdhwa9TCKq 6Xr2MZHgg4SQeRj uQ8zynIFAZi4P1Y
YOWfnFWpaOW1lfJ 8aYZOR6EkUYatBi bQ6KZd2d02o3C5o awswe68QuJLDAJf
B7WbGrnGZML6aed wryRFjhljKBsDJj hDdKC29HFxl.
END MESSAGE.

Bash

alias upside-login-development='eval $(upside-auth-login development)'
alias upside-login-production='eval $(upside-auth-login production)'

Homebrew

@mattpotts
mattpotts / macos.md
Last active July 31, 2022 20:46
New macOS Setup

Old machine

  • Backup alfred preferences: cp '/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/preferences/features/websearch/prefs.plist' config:/alfred/websearch-prefs.plist
  • Backup iterm preferences (Profile, keymap, colors)
  • TODO roll all this into a script

SSH

#!/usr/bin/env bash
# Copy specific characters from a string to the clipboard
# Enter empty character index to exit
# Read password
echo -n "Password: "
read -s password
echo

Keybase proof

I hereby claim:

  • I am mattpotts on github.
  • I am mattpotts (https://keybase.io/mattpotts) on keybase.
  • I have a public key ASDe-Pb-IWb3Ql495gPfs3jPgjnyuoPQnrM9uO8Pz4BLgQo

To claim this, I am signing this object:

@mattpotts
mattpotts / xcode-build-bump.sh
Last active April 1, 2019 09:59
Auto-increment Xcode target build number every time the project is archived
# xcode-build-bump.sh
# @desc Auto-increment Xcode target build number every time the project is archived
# @src stackoverflow.com/a/15483906
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)