Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Wilson Mar wilsonmar

💭
I may be slow to respond.
View GitHub Profile
View gist:55694e74a06c82e83535c1350ce6a184
# 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 Aug 18, 2019 — forked from squarism/iterm2.md
iterm2 cheatsheet
View iterm2.md

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 Mar 10, 2019
The things I have to do for keybase ...
View keybase.md

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 Jun 29, 2017
Simple Hello Groovy script
View hello.groovy
// 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 Jun 24, 2017 — forked from larrycai/complete.groovy
CodingWithMe Learn JobDSL for Jenkins in 90 minutes
View complete.groovy
freeStyleJob("Hello3") {
logRotator(2, 30)
scm {
git('https://github.com/larrycai/docker-images.git')
}
triggers {
scm('H/15 * * * *')
}
wrappers {
preBuildCleanup()
View graph-dag
#!/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 Dec 2, 2016 — forked from dpryden/ClassLoaderLeakExample.java
Example of a ClassLoader leak in Java
View ClassLoaderLeakExample.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,
View hello-world-index.js
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 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
View pedantically_commented_playbook.yml
---
# ^^^ 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 Apr 17, 2016
trymm.sh - Try minimal-mistakes by populating with unit test data