Skip to content

Instantly share code, notes, and snippets.

View keys.pub (prince.local)
BEGIN MESSAGE.
e3ry3OS2D7rCdgp u3Glxc7XYjgg9Lb z4z8ZyDb8zm8WZ5 h9GWcOZWuhzsmHy
S2rWdt4SJKIAUTB kcOxIsdhwa9TCKq 6Xr2MZHgg4SQeRj uQ8zynIFAZi4P1Y
YOWfnFWpaOW1lfJ 8aYZOR6EkUYatBi bQ6KZd2d02o3C5o awswe68QuJLDAJf
B7WbGrnGZML6aed wryRFjhljKBsDJj hDdKC29HFxl.
END MESSAGE.
View macos-upside.md
@mattpotts
mattpotts / macos.md
Last active Jul 23, 2021
New macOS Setup
View macos.md

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

View subset.sh
#!/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
View keybase.md

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 Apr 1, 2019
Auto-increment Xcode target build number every time the project is archived
View xcode-build-bump.sh
# 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)