Skip to content

Instantly share code, notes, and snippets.

View dotherightthing's full-sized avatar

Dan Smith dotherightthing

  • Do The Right Thing
  • Wellington, New Zealand
View GitHub Profile
@dotherightthing
dotherightthing / install-creativecloud-apps-on-an-external-drive.md
Created August 19, 2021 09:27
[Install CreativeCloud Apps on an external drive] #macos #adobe #hdd #space

Install Creative Cloud Apps on an external drive

From: Move Adobe programs to another HDD

  1. Open the Creative Cloud app
  2. Click the 3 dots next to your avatar > Preferences
  3. Change the Install Location

Note: This option only applies to future installs.

@dotherightthing
dotherightthing / download-google-fonts.md
Created August 19, 2021 05:36
Download Google Fonts for use in Sketch

Download Google Fonts for use in Sketch

How do you go about downloading and installing each and every font? Well, you can download the fonts from the official Google Fonts GitHub repository, but there is a better and more time-efficient way.

You can download and install all Google Fonts (~500MB) at once thanks to Quinton Pike and Peter Stacho.

curl https://raw.githubusercontent.com/qrpike/Web-Font-Load/master/install.sh | sh

Source: How to Solve Missing Fonts in Sketch App

@dotherightthing
dotherightthing / README.md
Last active March 22, 2023 17:57
ClyphX Pro: match state of controller LED to state in Ableton Live

SelectedTrackLedStates.py

This file has moved to:

@dotherightthing
dotherightthing / recaptcha.spec.js
Created January 15, 2021 01:35
Cypress - force No CAPTCHA reCAPTCHA to fail
/**
* @file cypress/integration/recaptcha.spec.js
* @summary Cypress spec for End-to-End UI testing.
*/
/* eslint-disable prefer-arrow-callback */
/* eslint-disable max-len */
// Test principles:
// ARRANGE: SET UP APP STATE > ACT: INTERACT WITH IT > ASSERT: MAKE ASSERTIONS
@dotherightthing
dotherightthing / maschine-mk1-macos-10-15-7.md
Last active May 11, 2022 17:51
Setup instructions for the Maschine Mk1 controller with Maschine 2 on macOS Catalina 10.15.7

Setup instructions for the Maschine Mk1 controller with Maschine 2 on macOS Catalina 10.15.7

Background

I wanted to open my old Maschine projects created prior to travel in 2015. I picked up a second hand Maschine Mk1 for a good price.

There are compatability issues between Maschine Mk1 and macOS Catalina 10.15.7

Onboarding

@dotherightthing
dotherightthing / working-with-toastmasters-templates.md
Last active January 10, 2021 04:23
Working with Toastmasters templates

Working with Toastmasters templates

The Toastmasters Resource Library contains various branded templates, including Name Tents to identify attendees during a meeting.

The Name Tents Zip file contains two file types:

  1. Editable PDF
  2. Microsoft Word Template (.dotx extension)

Editable PDF

@dotherightthing
dotherightthing / cypress-keycode-test.js
Last active November 12, 2020 22:42
Cypress keycode test
describe('Keydown test', function () {
before(function () {
cy.get('body').then(function ($body) {
var stub = '';
stub += '<span id="focusable-div" class="listener" tabindex="0" style="border: 1px solid;">Element 1</span>';
stub += '<button type="button" id="focusable-button" class="listener">Element 2</button>';
stub += '<span id="target" tabindex="0" style="border: 1px solid;">Target</span>';
// note: can't use jQuery here
@dotherightthing
dotherightthing / inject-gist-into-codepen.js
Last active September 5, 2020 01:32
Inject Gist into Codepen
function embedGist(url) {
// See duplicate in https://codepen.io/dotherightthingnz/pen/mdPqgda
// based on https://codersblock.com/blog/customizing-github-gists/
// TODO: Codepen also has an API: https://blog.codepen.io/documentation/prefill/
function handleDone(data) {
const filenames = Object.keys(data.files);
// const convertor = "https://cdn.jsdelivr.net/npm/remarkable@2.0.1/dist/remarkable.min.js";
@dotherightthing
dotherightthing / wbt-bike-touring-101.md
Last active August 23, 2020 01:26
[Wellington Bike Touring Meetup: Bike Touring 101]