Skip to content

Instantly share code, notes, and snippets.

Avatar

Adam Ward atward

  • Melbourne, Australia
View GitHub Profile
View POK3R-Layer-2-Windows.kbd.json
[
{
"name": "POK3R Layer 2 Windows",
"author": "sublimal",
"switchMount": "cherry",
"switchBrand": "cherry",
"switchType": "MX1A-C1xx",
"plate": true
},
[
View POK3R-Default.kbd.json
[
{
"name": "POK3R Default",
"author": "Vortex"
},
[
{
"y": 1.5,
"c": "#3c4041",
"t": "#aba18b",
View POK3R-Default-v1_14.kbd.json
[
{
"name": "POK3R Default v1.14",
"author": "Vortex"
},
[
{
"c": "#3c4041",
"t": "#aba18b",
"p": "DCS",
@atward
atward / asg-suspend.yaml
Last active Nov 20, 2016
AWS CustomResource example - Autoscaling group suspend/resume processes
View asg-suspend.yaml
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 Nov 21, 2016
AWS Custom resource example. Multiplies number by 42
View custom-resource.yaml
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 Jan 24, 2017
CloudFormation Templating Custom Resource
View cf-templater.yaml
# 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
View POK3R-Layer-3-OSX.kbd.json
[
{
"name": "POK3R Layer 3 OSX",
"author": "sublimal",
"switchMount": "cherry",
"switchBrand": "cherry",
"switchType": "MX1A-C1xx",
"plate": true
},
[
@atward
atward / aws-console
Last active May 26, 2017
AWS Web console login via boto credentials (IAM access token/profile)
View aws-console
#!/usr/bin/env python
import boto3
import json
import sys
import urllib2
import webbrowser
from urllib import urlencode
@atward
atward / ONI_Priority_Shortcut.ahk
Last active May 29, 2017
Oxygen Not Included: Priority shortcut keys
View ONI_Priority_Shortcut.ahk
; 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 Apr 8, 2018
Script to allow positioning of windows based on quadrants of the current monitor
View WinMove.ahk
; 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