Skip to content

Instantly share code, notes, and snippets.

View fatihbaltaci's full-sized avatar

Fatih Baltaci fatihbaltaci

View GitHub Profile
@fatihbaltaci
fatihbaltaci / iterm2.md
Created September 9, 2019 10:54 — forked from squarism/iterm2.md
iterm2 cheatsheet

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
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@fatihbaltaci
fatihbaltaci / gist:20e2152e20302808c42c9a51b937df07
Created December 27, 2017 11:34 — forked from rb2k/gist:8372402
A jenkins script to clean up workspaces on slaves
// Check if a slave has < 10 GB of free space, wipe out workspaces if it does
import hudson.model.*;
import hudson.util.*;
import jenkins.model.*;
import hudson.FilePath.FileCallable;
import hudson.slaves.OfflineCause;
import hudson.node_monitors.*;
for (node in Jenkins.instance.nodes) {