Skip to content

Instantly share code, notes, and snippets.

View jdhom's full-sized avatar

John Dhom jdhom

  • bridgeGap consulting
  • USA
View GitHub Profile
@jdhom
jdhom / mistel-barocco-md600.md
Last active September 3, 2023 13:09
Mistel Barocco MD600 Programming and Firmware

Mistel Barocco MD600 RGB Split Keyboard

keyboard firmware

What I remap

CapsLock is RCTRL    ... i do this on all keyboards
FN CapsLock is RCTRL ... was accidently toggling capslock with fn+capslock
LCTRL is FN ... arrow/pg/home on right half, FN+arrow I now prefer on ALL keyboards... so nice
@jdhom
jdhom / powershell-mac.md
Last active February 21, 2018 19:29
Powershell Core on macos

Was really pretty simple and just worked ;). Note, .NetCore is really important, I accidently installed AWSPowerShell instead of AWSPowerShell.NetCore, which installs but throws exceptions. Duh.

Set-AWSCredential -ProfileName 'SOME-PROFILE.ROLE'

Set-DefaultAWSRegion -Region 'us-east-1'

@jdhom
jdhom / ansible_awsretry_decorator.md
Last active October 20, 2017 21:14
Ansible AWSRetry Decorator

Some example usages of AWSRetry (implementation of CloudRetry)

Though current interest is around an ongoing issue with AWS throttling api calls... AWSRetry deals more generally with eventual consistency issue when working with aws resources... delete returns but all references are not yet freed, create returns but the resource isn't yet fully realized, and so on.

Also seems like you should be able to tweak, at least, the parameters to the backoff function from your ansible code. Exposing a dictionary of retry params would be useful while we are testing this out.

@jdhom
jdhom / jenkins-console-scripts.md
Last active November 25, 2021 13:09
jenkins console scripts

find job / publishers

import org.jenkinsci.plugins.github.*
import org.jenkinsci.plugins.github.status.err.*

def job = findJob(Hudson.instance.items, 'pb_jdhom_tech-ui')
println( job )

for (publisher in job.publishers) {
@jdhom
jdhom / homebrew-awscli.md
Last active April 25, 2017 20:49
Homebrew awscli (stable versus develop version)

Description

Homebrew formula for awscli installs develop and not latest stable version (1.11.80 vs 1.10.38 at time of this typing).

Homebrew formula for 1.10.38

Sample usage...

grab latest dev

brew update && brew install awscli