Skip to content

Instantly share code, notes, and snippets.


Ꮹανiη Ꮐaмвoα protrolium

View GitHub Profile
protrolium /
Last active Dec 25, 2020
rename command utility

rename | syntax and examples

brew install rename
to install

rename "s/SEARCH/REPLACE/g" *

This will replace the string SEARCH with REPLACE in every file (that is, *). The /g means global, so if you had a SEARCH_SEARCH.jpg, it would be renamed REPLACE_REPLACE.jpg. If you didn't have /g, it would have only done substitution once, and thus now named REPLACE_SEARCH.jpg. If you want case-insensitive, add /i (that would be, /gi or /ig at the end).


protrolium /
Last active Feb 19, 2020
QLab + Applescript to control Applications & Panasonic Projectors over LAN

QLab + Applescript commands for Projector & Application Boot-Up/Shut-Down Routine

Boot Up Sequence

Open Projector Manager app

tell application "Terminal"
   delay 0.5
   do script "open -a Projector Manager"
   delay 0.5
   tell application "Terminal to quit"
end tell
protrolium /
Created Jan 13, 2019
imagemagick + ghostscript to covert PDFs to PNG (high quality)

$ convert -verbose -density 150 -trim document.pdf -quality 100 -sharpen 0x1.0 PDF-IMAGES/image.png


I decided that I wanted to use aliases to quickly navigate to directories.
Inside a directory I have called scripts I create each one:

nano myAlias

# file : /scripts/myAlias
cd /directory/that/i/want

protrolium /
Last active Apr 29, 2020
Dorico Keyboard Shortcuts

Dorico | default keybindings

adjust octave
command + option + up/down arrow key

adjust note rhythmic value
shift option left right arrow key

shift note (or staff object i.e. clef) forwards/backwards
option left right arrow key

protrolium / bitmarkClaiming
Created Apr 19, 2017
Claiming of Bitmark account
View bitmarkClaiming
Publicly linking my Bitmark account /
protrolium /
Last active Nov 24, 2018
using ffmpeg to add sound to youtube videos

quick/dirty process to merge audio streams

create initial video offset
ffmpeg -ss 0:00 -t 0:00 -i input.mp4 output.mp4

exctract audio from new output.mp4
ffmpeg -i output.mp4 -f mp3 -ab 192000 -vn output.mp3

merge the two audio files
ffmpeg -i output.mp3 -i audio2.mp3 -filter_complex amerge -ac 2 -c:a libmp3lame -q:a 4 merged.mp3


$ cd /usr/local/bin
$ sudo nano [scriptname]

command goes here

exit and save

sudo chmod +x [scriptname] to make executable

protrolium /
Last active Aug 30, 2016
Keyboad Shortcuts | Sibelius 6 | OS X 10.6.8

Command + Option + Up/Down Arrow
Jump up/down systems

Option + Shift + Left/Right Arrow
Adjust spacing of note

Tab / Tab + Shift
Tab through objects in current staff … use to toggle Dynamic markings

Shift + Left/Right Arrow to select, then Option + Shift + Up/Down Arrow

protrolium / working with
Last active Jun 10, 2016
zip terminal command
View working with

zip a directory for windows by removing .DS_Store

zip -r foo -x "*.DS_Store"

To interpret this, we are running the zip executable with the following parameters/arguments:

  • -r for recursively including all directories underneath the targets we want to zip.
  • is the name of the zip archive we are creating
  • foo is the target directory we want to zip up
  • -x "*.DS_Store" excludes all files whose path ends in the string ".DS_Store"