This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WAV header spec information: | |
//https://web.archive.org/web/20140327141505/https://ccrma.stanford.edu/courses/422/projects/WaveFormat/ | |
//http://www.topherlee.com/software/pcm-tut-wavformat.html | |
typedef struct wav_header { | |
// RIFF Header | |
char riff_header[4]; // Contains "RIFF" | |
int wav_size; // Size of the wav portion of the file, which follows the first 8 bytes. File size - 8 | |
char wave_header[4]; // Contains "WAVE" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# spotify_platform_oauth.sh | |
# | |
# A script to quickly and easily generate Spotify oauth tokens given a client | |
# id, secret, and scope. Will authenticate a user via the browser. | |
# The app must have "http://localhost:8082/' as a redirect_uri | |
# spotify_client_creds.json should contain a spotify client id and secret pair |