Skip to content

Instantly share code, notes, and snippets.

View donbrae's full-sized avatar

donbrae

View GitHub Profile
@donbrae
donbrae / getQueryString.js
Last active August 18, 2020 13:34
Gets query string and returns as an object of key-value pairs
/**
* Gets query string and returns as an object of key-value pairs
* @returns {Object or null}
*/
function getQueryString() {
let q = document.location.href.split('?')[1];
let o = {};
if (q && q.length) {
@donbrae
donbrae / Squiz Matrix cheat sheet.md
Last active May 16, 2023 12:58
This cheat sheet documents various shortcuts, tips and tricks, and productivity boosters. Tested on Matrix v5.4.0.1 on macOS.

Keyboard shortcuts

  • Ctrl + + S to Save
  • Ctrl + + A to Acquire Locks
  • Ctrl + + R to Release Locks
  • Ctrl + + N to invoke the Next button
  • Delete to move selected assets in the Asset Map to the Trash

Releasing all your locks

@donbrae
donbrae / Bash cheat sheet.md
Last active June 1, 2022 06:25
A bash cheat sheet

Changing directories (cd)

cd /var/www/my_website (go to /var/www/my_website directory)

cd .. (go up a directory)

cd / (go to root directory)

cd ~ (go to home directory)

@donbrae
donbrae / Nineties Man
Last active June 30, 2022 13:58
Nineties Man chord chart
Nineties Man
4/4
___ Intro
D7sus4 | Bbmaj7 | D7sus4 | Bbmaj7 :||
___ Verse