Nowadays, I’ve been used to google searches as a quick way to solve problems. Once in a while, I come across a tip or trick that fixes an issue at hand and then move on. However, I may late on meet a similar problem, but only vaguely remember how I solved it previously. So I’d need to start googling around again. This list is a remedy for such situations, and it will be continuously updated. While the list is created for my own reference, it may also be useful to other viewers of the post, presumably reaching here via google.
icdiff— show diff with colorscc— strip C commentsTaskwarrior (taks)— manage TODO list from terminalhttpieas a replacement ofcurlandwgetbyebugandpryfor debugging Rubyagto search for PATTERN in source files, replacinggrepfdto find files and directoriesbatto view files with syntax highlighting (in place ofcat)exaas an alternative tolsbenchto benchmark codeasciinemaandsvg-termto record terminal activity as an SVG animation. Another option istermtosvg. Moreover, the triottyrec, ttyplay, ttygifcan record, play terminal screen recordings, and convert it into smooth GIFwrkto benchmark HTTP APIshub— git wrapper for GitHubtail -n +2to skip the first line (starting from the second line)sudo -i -u user_id, the-ior--loginoption invokes login shell- Understanding Shell Script’s idiom: 2>&1 — redirect ‘stderr’ to ‘stdout’ via ’2>&1’ in
bashshell. - Ruby one-liners
ruby -pi.bak -e "gsub(/SOME_PATTERN/, 'other_text')" filesfor global replacement of SOME_PATTERN by other_text in filesruby -pe 'gsub(/_/, ".")'globally replace ‘_’ with ‘.’
