I hereby claim:
- I am czechboy0 on github.
- I am honzadvorsky (https://keybase.io/honzadvorsky) on keybase.
- I have a public key ASDrO2xgsCJ5xuHgLnr4TfUqgexRE33AOzRyvLE080gOWwo
To claim this, I am signing this object:
# based on https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04 | |
# run with eval "$(curl -sL https://gist.githubusercontent.com/czechboy0/ba249dc375dd6335f30f7acd593aa193/raw/add_swap.sh)" | |
echo "Starting with swap table:" | |
sudo swapon -s | |
echo "Available space:" | |
df -h | |
echo "Creating a 4GB swap file" |
# you find the app id of an app by calling the following API and parse the JSON | |
QUERY="swiftkey" | |
curl -X "GET" "https://itunes.apple.com/search?term=$QUERY&country=us&entity=software" | |
# this is how you fetch the page 3 of the app with ID 911813648 (SwiftKey) | |
# you'd probably want to write a script and start fetching from page 1 up until you get 404 back | |
PAGE=3 | |
APPID=911813648 | |
curl -X "GET" "https://itunes.apple.com/us/rss/customerreviews/page=$PAGE/id=$APPID/sortby=mostrecent/json?urlDesc=%2Fcustomerreviews%2Fid%3D$APPID%2FsortBy%3DmostRecent%2Fjson" |
#!/usr/bin/env bash | |
# Automatically installs swiftenv and run's swiftenv install. | |
# This script was designed for usage in CI systems. | |
git clone --depth 1 https://github.com/kylef/swiftenv.git ~/.swiftenv | |
export SWIFTENV_ROOT="$HOME/.swiftenv" | |
export PATH="$SWIFTENV_ROOT/bin:$SWIFTENV_ROOT/shims:$PATH" | |
if [ -f ".swift-version" ] || [ -n "$SWIFT_VERSION" ]; then | |
swiftenv install -s |
I hereby claim:
To claim this, I am signing this object: