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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"net/url" | |
) | |
const ( |
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/sh | |
# I have this as /root/eject-usb.sh and execute it from the mac by ssh with keypair | |
# With no parameters we list the currently mounted devices | |
if [ -z "$1" ] | |
then | |
# Listing mounted USB Drives | |
/usr/syno/bin/synousbdisk -enum | |
exit 0 |
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
try | |
tell application "Spotify" | |
set theTrack to name of the current track | |
set theArtist to artist of the current track | |
set theAlbum to album of the current track | |
set track_id to id of current track | |
end tell | |
set AppleScript's text item delimiters to ":" | |
set track_id to third text item of track_id |
NewerOlder