Skip to content

Instantly share code, notes, and snippets.

View wilsonmar's full-sized avatar
💭
I may be slow to respond.

Wilson Mar wilsonmar

💭
I may be slow to respond.
View GitHub Profile
@wilsonmar
wilsonmar / iterm2.md
Created August 18, 2019 04:29 — 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)
@wilsonmar
wilsonmar / complete.groovy
Created June 24, 2017 00:09 — forked from larrycai/complete.groovy
CodingWithMe Learn JobDSL for Jenkins in 90 minutes
freeStyleJob("Hello3") {
logRotator(2, 30)
scm {
git('https://github.com/larrycai/docker-images.git')
}
triggers {
scm('H/15 * * * *')
}
wrappers {
preBuildCleanup()
@wilsonmar
wilsonmar / ClassLoaderLeakExample.java
Created December 2, 2016 14:35 — forked from dpryden/ClassLoaderLeakExample.java
Example of a ClassLoader leak in Java
import java.io.IOException;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
/**
* Example demonstrating a ClassLoader leak.
*
* <p>To see it in action, copy this file to a temp directory somewhere,
@wilsonmar
wilsonmar / pedantically_commented_playbook.yml
Created May 25, 2016 22:21 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@wilsonmar
wilsonmar / git_move.sh
Last active February 2, 2016 22:51
moves a folder from one git repo into another repo with history intact
#!/usr/bin/env bash
# (forked from https://gist.github.com/gregferrell/942639)
# Usage:
# ./git_move.sh git@repo_site.com:/my_repo.git origin/folder/path/ /destination/repo/path/ new/folder/path/
# To prevent who repos being wiped out by blank options:
if [ $# -lt 4 ] ; then
echo "Usage: $0 git@repo_site.com:/my_repo.git origin/folder/path/ /destination/repo/path/ new/folder/path/"
@wilsonmar
wilsonmar / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console