Skip to content

Instantly share code, notes, and snippets.

View chetstone's full-sized avatar

Chester Wood chetstone

View GitHub Profile
@xujiaao
xujiaao / android-set-ntp-server.md
Last active November 6, 2024 04:56
Set the NTP server of your android device
tags
Android
Android Things

Set the NTP server of your android device

@joshuaswilcox
joshuaswilcox / current_song
Last active July 29, 2024 00:14
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 ""