Skip to content

Instantly share code, notes, and snippets.

Matt Potts mattpotts

View GitHub Profile
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)
You can’t perform that action at this time.