Skip to content

Instantly share code, notes, and snippets.

View leoluz's full-sized avatar

Leonardo Luz Almeida leoluz

View GitHub Profile
SELECT p.id, CASE p.method_id
WHEN 1 THEN 'MANUAL'
WHEN 2 THEN 'VISA'
WHEN 3 THEN 'MASTERCARD'
WHEN 4 THEN 'AMEX'
WHEN 6 THEN 'DISCOVER'
WHEN 8 THEN 'PAYPAL'
WHEN 9 THEN 'GATEWAY'
WHEN 100 THEN 'CUSTOM'
WHEN 101 THEN 'DTAG'
@squarism
squarism / iterm2.md
Last active June 3, 2026 07:27
An iTerm2 Cheatsheet

In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So + D does not mean hold shift. + Shift + D does of course.

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
@wosephjeber
wosephjeber / ngrok-installation.md
Last active November 25, 2025 11:24
Installing ngrok on Mac

Installing ngrok on OSX

For Homebrew v2.6.x and below:

brew cask install ngrok

For Homebrew v2.7.x and above:

@jehrhardt
jehrhardt / build.gradle
Created July 26, 2012 07:24
Groovy 2.0 with invokedynamic in Gradle
apply plugin: "groovy"
sourceCompatibility = 1.7
targetCompatibility = 1.7
compileGroovy {
groovyOptions.metaClass.optionMap = { [indy: true, encoding: "UTF-8"] }
}
compileTestGroovy {