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
# pentest.tf
# This establishes permissions to S3 buckets for
variable "bucket_root_name" {
type = string
}
# Parameter in GoCD Pipeline:
variable "synack_pentest_bool" {
type = bool
@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 / keybase.md
Created March 10, 2019 22:48
The things I have to do for keybase ...

Keybase proof

I hereby claim:

  • I am wilsonmar on github.
  • I am wilsonmar (https://keybase.io/wilsonmar) on keybase.
  • I have a public key ASDxj5xIICs5HUqp9uu3ehYrtA5Wk0tvtr_UrvBu_MuvUAo

To claim this, I am signing this object:

@wilsonmar
wilsonmar / hello.groovy
Last active June 29, 2017 21:31
Simple Hello Groovy script
// hello.groovy in https://github.com/wilsonmar/groovy-samples
class Example {
static void main(String[] args) {
/* This program is the first program
This program shows how to display hello world */
println('Hello World');
}
}
@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()
#!/bin/bash
# graph-dag.sh
# Draw a graphviz diagram of the Git DAG
#
# Labels consist of the short SHA1 and any refs.
# Unreachable commits (ignoring the reflog) will be marked with an asterisk and
# drawn with dashed lines.
#
# Largely stolen from https://git.wiki.kernel.org/index.php/ExampleScripts
# As seen on Seth House's videos at https://www.youtube.com/watch?v=AqDLz4yq_CI&index=1&list=PLA4B47B9B5F3691E3
@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,
var express = require('express');
var app = express();
app.get('/', function(res,req){
res.json({
message: 'hello world'
});
});
app.listen(3000); // This establishes port 3000. You can use another port.
@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 / trymm.sh
Created April 17, 2016 23:41
trymm.sh - Try minimal-mistakes by populating with unit test data
This