Skip to content

Instantly share code, notes, and snippets.

View protrolium's full-sized avatar

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

View GitHub Profile
@protrolium
protrolium / jupyter-not-finding-packages.md
Last active July 13, 2023 22:10
Troubleshooting why Jupyter notebook wasn't finding installed python packages

Tried creating and installing needed packages into a virtual python environment, but Jupyter notebook would still throw Module not found errors, even after pip, pip3 on base installation, as well as pip, pip3 install method into the virtual environment.

conda create -n my-conda-env         # creates new virtual env
source activate my-conda-env         # activate environment in terminal
conda install jupyter                # install jupyter + notebook
jupyter notebook                     # start server + kernel

To solve, in jupyter notebook, run:

TiddlyWiki: Getting Started with digital gardens, networked thinking and non-linear research

4 April 2021
Gavin Gamboa
@gavcloud

Overview

We will be diving into the Tiddlywiki framework (TW), which is an open-source tool great for compiling notes, research, bookmarking, and making non-linear and personalized knowledge maps. In my case I used it to build a virtual portfolio and bookcase for logging my reading notes and keeping track of my projects.

Prerequisites

@protrolium
protrolium / rename.md
Last active March 5, 2021 21:50
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).

Examples

@protrolium
protrolium / QLAB-scripting.md
Last active May 2, 2024 05:24
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
protrolium / convert-pdf-to-png.md
Created January 13, 2019 20:03
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

@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

@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 / 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 / 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 / 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