Skip to content

Instantly share code, notes, and snippets.

View protrolium's full-sized avatar

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

View GitHub Profile
@protrolium
protrolium / add-remote.md
Last active May 7, 2018 23:51
sync forks via linking new remote to master branch

Sync forked repositories by creating remote to master branch

cd to Git

clone respository if necessary to local machine and then cd

git clone <repo-location>

The origin remote is pre-set for you by GitHub to point to your forked repo. Let's add another remote called upstream - this will be your main repo (the repo that you forked from).

@protrolium
protrolium / terminal-gif.md
Last active February 15, 2024 09:09
convert images to GIF in Terminal

Install ImageMagick

brew install ImageMagick

Pull specific region of frames from video file w/ ffmpeg

ffmpeg -ss 14:55 -i video.mkv -t 5 -s 480x270 -f image2 %04d.png

  • -ss 14:55 gives the timestamp where I want FFmpeg to start, as a duration string.
  • -t 5 says how much I want FFmpeg to decode, using the same duration syntax as for -ss.
  • -s 480x270 tells FFmpeg to resize the video output to 480 by 270 pixels.
  • -f image2 selects the output format, a series of still images — make sure there are leading zeros in filename.
@protrolium
protrolium / renoise-keyboard-shortcuts.md
Last active February 8, 2024 02:03
Renoise : Keyboard Shortcuts

Renoise 3.0

Keyboard Shortcuts OS X 10.10.5

play from playhead position
shift space bar

toggle FOLLOW in pattern view [custom keybinding]
option esc

toggle global loop [custom keybinding]

@protrolium
protrolium / working with zip.md
Last active June 10, 2016 18:15
zip terminal command

zip a directory for windows by removing .DS_Store

zip -r foo.zip 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.
  • foo.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"
@protrolium
protrolium / sibelius-keyboard-shortcuts.md
Last active August 30, 2016 21:06
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
protrolium / custom-bash-commands.md
Last active September 11, 2022 15:56
bash scripts

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

#!/bin/bash
command goes here

exit and save

sudo chmod +x [scriptname] to make executable

@protrolium
protrolium / monty-ffmpeg.md
Last active December 24, 2023 19:03
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

@protrolium
protrolium / bitmarkClaiming
Created April 19, 2017 04:53
Claiming of Bitmark account
Publicly linking my Bitmark account / https://registry.bitmark.com/account/aS9z7CeCiQpNRdho92xYDEk1Nxz72x9KtPdEVtH2zt9TQBe7vR/a84bf8d23ed8238162c43f9ba267332885b4bb012b31a774aeec9d083d1094f0ac439a1a9a1a03e9734b747f46c7ab586762fa25c38ae3289f59c2df4eef4b01
@protrolium
protrolium / dorico.md
Last active March 19, 2023 00:04
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
protrolium / custom-aliases.md
Last active March 25, 2020 19:44
custom aliases

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

#!/bin/bash
# file : /scripts/myAlias
#
cd /directory/that/i/want