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
# required, available from https://console.cloud.google.com/apis/credentials | |
client_id="" | |
client_secret="" | |
redirect_uri="" | |
api_key="" | |
# Copy address and navigate in browser | |
copy <<<"https://accounts.google.com/o/oauth2/v2/auth?client_id=$client_id&redirect_uri=$redirect_uri&response_type=code&scope=https://www.googleapis.com/auth/calendar.readonly%20https://www.googleapis.com/auth/calendar.events.readonly" | |
# get code from redirected URL |
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
cat > /tmp/strava-authorise <<EOF | |
#!/bin/bash | |
set -euf -o pipefail | |
# Get client ID and secret from API settings page | |
settings_url="https://www.strava.com/settings/api" | |
xdg-open "\$settings_url" | |
echo "Client ID?" | |
read CLIENT_ID | |
echo "Client secret?" |
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
#!/bin/bash | |
set -xe | |
wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add - | |
sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/buster.list | |
sudo apt update | |
sudo apt install mopidy mopidy-local python3-pip mopidy-spotify | |
sudo python3 -m pip install Mopidy-Iris |
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
// MultiExporter.jsx | |
// Version 0.1 | |
// Version 0.2 Adds PNG and EPS exports | |
// Version 0.3 Adds support for exporting at different resolutions | |
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize | |
// Version 0.5 Fixed cropping issues | |
// Version 0.6 Added inner padding mode to prevent circular bounds clipping | |
// | |
// Copyright 2013 Tom Byrne | |
// Comments or suggestions to tom@tbyrne.org |