Skip to content

Instantly share code, notes, and snippets.

View jagamypriera's full-sized avatar

Jaga My Priera jagamypriera

View GitHub Profile
@jagamypriera
jagamypriera / internet_radio_stream_aliases.sh
Created July 18, 2018 03:31 — forked from pwenzel/internet_radio_stream_aliases.sh
Internet Radio Streams Via Command Line
# 1. Install mplayer command line (via Brew, Macports, or APT)
# 2. Add the following aliases to ~/.profile
# 3. Type `source ~/.profile`
# 3. Type `news` or `current` to listen in your terminal
alias news="mplayer -playlist http://minnesota.publicradio.org/tools/play/streams/news.pls" # MPR News
alias current="mplayer -playlist http://minnesota.publicradio.org/tools/play/streams/the_current.pls" # The Current
alias classical="mplayer -playlist http://minnesota.publicradio.org/tools/play/streams/classical.pls" # Classical MPR
alias localcurrent="mplayer -playlist http://minnesota.publicradio.org/tools/play/streams/local.pls" # Local Current
alias heartland="mplayer -playlist http://minnesota.publicradio.org/tools/play/streams/radio_heartland.pls" # MPR Radio Heartland
@jagamypriera
jagamypriera / unsplash-random.sh
Last active March 24, 2017 08:49 — forked from dmpop/unsplash-random.sh
Use random photos from Unsplash as a desktop background on Elementary OS
#!/bin/bash
path="/path/to/directory/"
size=$(xdpyinfo | grep dimensions | awk '{print $2}')
downloaded=$(date +%Y%m%d%H%M%S)
IFS='x' read -ra size <<< "$size"
curl "https://unsplash.it/${size[0]}/${size[1]}/?random" --location --output $path/unsplash-random-$downloaded.jpeg
gsettings set org.gnome.desktop.background picture-uri file://$path/unsplash-random-$downloaded.jpeg