Skip to content

Instantly share code, notes, and snippets.

View atward's full-sized avatar

Adam Ward atward

  • Melbourne, Australia
View GitHub Profile
@atward
atward / POK3R-Layer-2-Windows.kbd.json
Last active November 11, 2015 18:11
POK3R Layer 2 Windows
[
{
"name": "POK3R Layer 2 Windows",
"author": "sublimal",
"switchMount": "cherry",
"switchBrand": "cherry",
"switchType": "MX1A-C1xx",
"plate": true
},
[
@atward
atward / POK3R-Default.kbd.json
Last active November 11, 2015 18:11
POK3R Default
[
{
"name": "POK3R Default",
"author": "Vortex"
},
[
{
"y": 1.5,
"c": "#3c4041",
"t": "#aba18b",
@atward
atward / POK3R-Default-v1_14.kbd.json
Last active November 11, 2015 18:11
POK3R Default v1.14
[
{
"name": "POK3R Default v1.14",
"author": "Vortex"
},
[
{
"c": "#3c4041",
"t": "#aba18b",
"p": "DCS",
@atward
atward / asg-suspend.yaml
Last active November 20, 2016 22:27
AWS CustomResource example - Autoscaling group suspend/resume processes
AWSTemplateFormatVersion: 2010-09-09
Description: 'Custom resource example - ASG suspend/resume'
Parameters:
Input:
Type: String
Description: Make ASG
Default: true
AllowedValues: [true, false]
@atward
atward / custom-resource.yaml
Created November 21, 2016 04:04
AWS Custom resource example. Multiplies number by 42
AWSTemplateFormatVersion: 2010-09-09
Description: 'Custom resource test'
Parameters:
Value:
Type: Number
Description: input a number
Default: 1
Resources:
@atward
atward / cf-templater.yaml
Last active January 24, 2017 04:02
CloudFormation Templating Custom Resource
# NOTE: there is a 4k CustomResource response limit, so keep all templates well under that
AWSTemplateFormatVersion: 2010-09-09
Description: 'CloudFormation Templating Custom Resource'
Resources:
TemplateFunctionRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: 2012-10-17
@atward
atward / POK3R-Layer-3-OSX.kbd.json
Last active May 7, 2017 22:14
POK3R Layer 3 OSX
[
{
"name": "POK3R Layer 3 OSX",
"author": "sublimal",
"switchMount": "cherry",
"switchBrand": "cherry",
"switchType": "MX1A-C1xx",
"plate": true
},
[
@atward
atward / ONI_Priority_Shortcut.ahk
Last active May 29, 2017 09:36
Oxygen Not Included: Priority shortcut keys
; Oxygen Not included fast priority keybindings.
;
; Instructions:
; - start ahk script
; - start game
; - hit q, wait bit to scan UI
; - use numbers as priorities
;
; Original credits:
; https://www.reddit.com/r/Oxygennotincluded/comments/5vw1us/tired_of_clicking_a_priority_use_autohotkey_to/de8fgnt/
@atward
atward / WinMove.ahk
Created April 8, 2018 05:14
Script to allow positioning of windows based on quadrants of the current monitor
; Script to allow positioning of windows based on quadrants of the current monitor
; https://autohotkey.com/board/topic/108780-move-window-to-half-quarter-of-current-monitor/
#Backspace::
MoveIt(8)
Return
#\::
MoveIt(2)
Return
@atward
atward / gist:ca414f25627ceddc62de77532e8270f2
Created July 11, 2018 09:49
Jenkins scan config & generate stages
def jobs = ["JobA", "JobB", "JobC"]
def parallelStagesMap = jobs.collectEntries {
["${it}" : generateStage(it)]
}
def generateStage(job) {
return {
stage("stage: ${job}") {