Skip to content

Instantly share code, notes, and snippets.

View sdm7g's full-sized avatar

Steve Majewski sdm7g

  • University of Virginia
View GitHub Profile
@sdm7g
sdm7g / WTJU.xq
Last active April 18, 2023 15:39
BaseX script to download WTJU recent show playlists and mp3. Usage: basex [ -bt='Show Title' | -bd='yyyy-mm-dd' ] WTJU.xq
(: WTJU music stream downloader $d = date or $t = show title :)
declare option output:indent "yes" ;
declare variable $d as xs:string external := '';
declare variable $t as xs:string external := '';
declare variable $HTML := html:doc( "https://www.wtju.net/recent-shows/" || "?d=" || $d )/html/body//div[@id="content"]//section[@class="playlist-days"] ;
declare variable $GET := <http:request method='get' /> ;
declare variable $DOCSTR := "Download from WTJU available Recent Shows.
@sdm7g
sdm7g / adduserstogroup.sh
Last active August 29, 2015 14:27
bash script to add users to ArchivesSpace repository permissions group
# add users to group
#
# Usage: script $REPO_ID $GROUP_CODE [ list of user-names ]
#
ASHOST=${ASHOST:-localhost}
BASE="http://$ASHOST:8089"
USER=admin
PWD=admin
#
REPO=$1 ; shift;