-
Create new Automator application with Run Shell script action (exact steps below).
- Open Automator.app (e.g. from Spotlight)
- Select File → New in menu
- Select "Application", click "Choose"
- With "Actions" toggle selected, type "Run Shell Script" in filter box, double click on filtered item
-
Put contents from
lock_spotify_version.sh
into script's body (exact steps below). -
In opened right-hand item select
/bin/sh
as "Shell" type and copy contents of Gist's "lock_spotify_version.sh" below/in text area
This file contains 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
alias docker-compose='docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v "${PWD}":"${PWD}" --workdir="$(pwd)" docker/compose' |
This file contains 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
import jwt | |
from jwt.algorithms import RSAAlgorithm | |
import requests | |
from time import time | |
import json | |
import os | |
APPLE_PUBLIC_KEY_URL = "https://appleid.apple.com/auth/keys" | |
APPLE_PUBLIC_KEY = None |
This file contains 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
# API Key 可以在以下頁面建立: | |
# https://max.maicoin.com/api_tokens/new | |
# | |
MAX_API_KEY= | |
MAX_API_SECRET= |