Skip to content

Instantly share code, notes, and snippets.

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@ryrun
ryrun / bitwigpresetgen.el
Last active May 1, 2021 15:34
It generates Bitwig presets (.bwpreset), Renoise .xrni patches and Komplete Kontrol .nksf Patches of vst instrument patches (.fxp) with automatically generated meta data. Its written for windows and uses 7z to compress the fxp patch for bitwig and renoise patches. Other implementation as PHP scripts: https://github.com/ryrun/PHPBitwigPresetGen
;;; https://github.com/jhorology/gulp-bitwig-rewrite-meta/blob/master/gulp-bitwig-rewrite-meta.coffee
(require 'bindat)
;;; gen for komplete kontrol
(defun create-nksf (fxp id devicefilename devicecreator presetname category tags bank comment)
(setq vstname (substring devicefilename 0 -4))
;;load fxp
(let ((coding-system-for-read 'binary))
(setq fxp (substring
(with-temp-buffer