Misc scribbles

Command line productivity stuff


In 2016, I wrote a list of things that I found to be useful or interesting information about the work I did at the time https://cmdcolin.github.io/posts/2016-04-06

I thought it would be interesting to do the same now


I use many "double tap" aliases for lots of things. They are not very 'mnemonic', but I like the action of double tapping a key. Here is a list of some of my favorites. I don't expect you will like the shortenings

Also recommend https://github.com/rupa/z, very quickly jump to commonly used directories. I alias z to p because I try to type with my right hand.

#Neovim/editor stuff

I use neovim, I run lots of stuff off nightly, and my setup changes a lot just as I like to tweak things, but here are some currently nice things I like about my workflow


#Web dev


set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"

Without this, all the neovim color schemes I tried looked not just subtly off, but significantly off, because it had only 256 colors without it (way less than the millions with true color). Resources

https://gist.github.com/andersevenrud/015e61af2fd264371032763d4ed965b6 https://jdhao.github.io/2018/10/19/tmux_nvim_true_color/

function vaporwave() {
  ffmpeg -i "$1" -af "asetrate=44100*${2:-0.66},aresample=44100" "`basename $1 .m4a`.vaporwave.m4a"

example usage:

vaporwave file.mp3 # default slowdown factor of 0.66, outputs file.vaporwave.mp3
vaporwave file.mp3 0.5 # custom slowdown factor, outputs file.vaporwave.mp3

#Audio players

I worked on a couple projects to make custom music players to scratch my own itch. I made a Rust one, to try to replace foobar2000, hoping to go back to the days of yore when I used a desktop player, and then a web based one when I realized I just listen to alot of youtube anyways now

Currently attempting to get the web based version approved by youtube compliance because they give you quite a limited number of API requests, so unless I want other users of my app to supply their own key, it seems prudent to get it approved