Skip to content

Instantly share code, notes, and snippets.

@pdanford
pdanford / README.md
Last active July 11, 2024 21:12
Launching iTerm2 from macOS Finder

Launching iTerm2 from macOS Finder

(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)

The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.

pdanford - April 2020


@louischan
louischan / firefox-gestures.md
Last active March 1, 2022 16:53
Enable Multi-touch Gestures in Firefox
  1. Open about:config in Firefox
  2. Set the following values
  3. Restart Firefox
browser.snapshots.limit           5
browser.gesture.pinch.in          cmd_fullZoomReduce
browser.gesture.pinch.out         cmd_fullZoomEnlarge
browser.gesture.pinch.latched     false
browser.gesture.pinch.threshold 35
@matoakley
matoakley / gist:1092571
Created July 19, 2011 14:38
MySQL to convert a string into a slug
LOWER(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(TRIM('My String'), ':', ''), ')', ''), '(', ''), ',', ''), '\\', ''), '\/', ''), '\"', ''), '?', ''), '\'', ''), '&', ''), '!', ''), '.', ''), ' ', '-'), '--', '-'), '--', '-')) AS `post_name`