wget https://storage.googleapis.com/golang/go1.7.linux-armv6l.tar.gz
tar -C /usr/local -xzf go1.7.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if ! brew ls --versions imagemagick > /dev/null; then | |
# The package is not installed | |
echo "Installing imagemagick…" | |
brew install imagemagick | |
fi | |
echo "Resizing to @2x…" | |
mogrify -path . -resize "160x30>" ../originals/*.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $(seq -f "%03g" 1 100) | |
do | |
wget http://example.com/assets/pics/myawesomestuff${i}.jpg | |
done |
Taken from https://stackoverflow.com/a/7756455
$0.exportStyles()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
!/.gitkeep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async () => { | |
function sleep(ms, msg) { | |
console.log(`Executing '${msg}'`); | |
return new Promise((resolve) => | |
setTimeout(() => { | |
console.log(`Resolving '${msg}'`); | |
resolve(msg); | |
}, ms) | |
); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Automatically prepend the JIRA issue-key to the commit message | |
readonly COMMIT_MESSAGE_PATH="$1" | |
readonly COMMIT_TYPE="$2" | |
readonly GIT_BRANCH=$(git branch --show-current) | |
# Pick the last issue key in a branch name or return empty result. | |
# - "feature/AB-123-is-not/the/AB-987-last" will yield "AB-987" | |
# - "main" will yield "" | |
readonly ISSUE_KEY=$(node -e 'console.log(process.argv.pop().split("/").reduce(((e,o)=>(o=/^[A-Z]{2,}-\d+/.exec(o)?.pop())?o:e),""))' "${GIT_BRANCH}") |
- Default style: Font size of 16px, font weight of 400 (normal), line height of 1.5, and a letter spacing of normal.
- Default style: Font size of 24px for
h2
and 20px forh3
, font weight of 600 (semi-bold), line height of 1.4, and a letter spacing of normal.
- Default style: Font size of 32px, font weight of 700 (bold), line height of 1.2, and a letter spacing of normal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Must have git, homebrew, and xcode to install | |
# Check for git | |
if ! command -v git &> /dev/null | |
then | |
echo "git could not be found, please install git before proceeding." | |
exit | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /Library/Audio/Plug-Ins/Components -name "*.component" -exec sh -c 'for f; do n=$(plutil -extract AudioComponents.0.name raw -o - "$f/Contents/Info.plist" 2>/dev/null) && n=$(echo "$n" | sed "s/^\"//; s/\"$//; s/.*: //") || n=$(plutil -extract CFBundleName raw -o - "$f/Contents/Info.plist" 2>/dev/null) && n=$(echo "$n" | sed "s/^\"//; s/\"$//") || n=$(basename "$f" .component); echo "$n"; done' sh {} + | sort -u -f | tr '\n' ',' | sed 's/,/, /g; s/, $/\n/' | pbcopy && pbpaste |
OlderNewer