Skip to content

Instantly share code, notes, and snippets.

View chetstone's full-sized avatar

Chester Wood chetstone

View GitHub Profile
xujiaao /
Last active April 17, 2024 03:40
Set the NTP server of your android device
Android Things

Set the NTP server of your android device

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"
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 ""