Skip to content

Instantly share code, notes, and snippets.

View danmcadams's full-sized avatar
🏠
Still Working from home

Dan McAdams danmcadams

🏠
Still Working from home
View GitHub Profile

Creating A Docker-powered Composer Alias

Create a simple composer alias with docker

Add this alias to the file containing your other aliases.

# This will use the latest composer version
alias composer='docker run --rm -it -v "${PWD}:/app" --user "$(id -u):$(id -g)" composer'

Add a Personal Access Token for GitHub

@jbonney
jbonney / spotify_keybindings
Created June 9, 2013 13:22
Spotify - Linux key bindings. From XFCE / Ubuntu keyboard shortcuts configuration, assign the control command to their key. http://shkspr.mobi/blog/2011/12/linux-spotify-keybindings/
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrevious