Skip to content

Instantly share code, notes, and snippets.

@saitooo
saitooo / spotify.md
Created July 4, 2024 18:41 — forked from skidoodle/spotify.md
How to get your Spotify tokens
  1. Create an application in the Spotify Developer Dashboard
    • Click on the Edit settings button
    • Set the Redirect URIs to a convenient location (doesn't matter)
    • Save the given Client ID along with the Client Secret
  2. Retrieve the access code
    • Visit the following URL after replacing $CLIENT_ID, $SCOPE, and $REDIRECT_URI
    https://accounts.spotify.com/authorize?response_type=code&client_id=$CLIENT_ID&scope=$SCOPE&redirect_uri=$REDIRECT_URI
@saitooo
saitooo / mv.sh
Created March 5, 2024 17:43 — forked from premek/mv.sh
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
#
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)