Skip to content

Instantly share code, notes, and snippets.

View chetstone's full-sized avatar

Chester Wood chetstone

View GitHub Profile
@joshuaswilcox
joshuaswilcox / current_song
Last active September 2, 2023 14:12
Applescript to show current playing song and determine if its spottily or iTunes that is playing
if application "Spotify" is running and application "iTunes" is not running then
tell application "Spotify"
if player state is stopped then
set display to "No Track Playing"
else
set track_artist to artist of current track
set track_name to name of current track
set track_duration to duration of current track
set seconds_played to player position
set state to ""
@xujiaao
xujiaao / android-set-ntp-server.md
Last active March 25, 2024 05:01
Set the NTP server of your android device
tags
Android
Android Things

Set the NTP server of your android device