Skip to content

Instantly share code, notes, and snippets.

View protrolium's full-sized avatar

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

View GitHub Profile
@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 / 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 / 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 / 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 / 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 / rsync.md
Last active December 24, 2023 19:05
rsync methods

using rsync

$ rsync -avE --progress /source/ /destination

  • -v --verbose
  • -a --archive (preserve all attributes)
  • -n --dry-run
  • -E, --executability (preserve executability)
  • --delete This tells rsync to delete extraneous files from the receiving side (files that aren't on the sending side), but only for the directories that are being synchronized.
@protrolium
protrolium / deepdreamExamples.md
Created December 17, 2015 21:32
_=deepdream examples
layer_list = [
"conv1/7x7_s2",
"pool1/3x3_s2",
"pool1/norm1",
"conv2/3x3_reduce",
"conv2/3x3",
"conv2/norm2",
"pool2/3x3_s2",
"inception_3a/1x1",
@protrolium
protrolium / build-caffe.md
Last active August 23, 2017 00:05 — forked from kylemcdonald/build-caffe.md
How to build Caffe for OS X.

Theory of Building Caffe on OS X

(with addendums, tangents, and other follies)

Introduction

I have followed Kyle McDonald's Theory of Building Caffe after what could be described as some careless brew updates and obliviousness to the conflicts between various versions of OS X, CUDA, CUDA drivers, CuDNN, and Caffe itself. I am replicating Kyle's steps here and adding a few more which were unique to my case and may not necessarily work for everyone. The goal is to run python -c "import caffe" without crashing.

Official Caffe OS X Installation Guide

http://caffe.berkeleyvision.org/install_osx.html

@protrolium
protrolium / colorsync-filters.md
Created June 12, 2015 05:39
ColorSync Utility to shrink PDF with custom filters from Preview Quartz Filter

ColorSync Utility to shrink PDF with custom filters from Preview Quartz Filter

Create new filter in ColorSync, saved in:
/User/[username]/Library/Filters/
copy to
/Library/PDFServices

@protrolium
protrolium / wget.md
Last active March 8, 2024 01:46
wget commands

Download Only Certain File Types Using wget -r -A

You can use this under following situations:

  • Download all images from a website
  • Download all videos from a website
  • Download all PDF files from a website

$ wget -r -A.pdf http://url-to-webpage-with-pdfs/