I hereby claim:
- I am JasonGiedymin on github.
- I am jasongiedymin (https://keybase.io/jasongiedymin) on keybase.
- I have a public key whose fingerprint is 144B 2F97 1556 C9DB E25F 1DD0 DFCD 2760 F15F 44F2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/python3 | |
| # | |
| # script: rancher_metadata_service_lookup.py | |
| # author: jason_g_at_apache_dot_org | |
| # desc: does a lookup for for a specific service and port mapping in a rancher stack returning a host ip or fqdn. | |
| # usage: python3 rancher_metadata_service_lookup.py --stack="MyApp" --service="MockBackend3" --port=80 --debug --fqdn | |
| # notes: this script is dirty. Totally Usable but dirty. If you want to build on it clean up the cyclomatic complexity | |
| # in some of the functions. | |
| # | |
| # Alpine: |
| #!/bin/bash | |
| sensors -f | grep "Core 0" | awk '{print $3}' | awk -F '°' '{ print $1 }' |
| #!/bin/bash | |
| # | |
| # Script Name: bitnami-jenkins-upgrade.sh | |
| # Version: v1.0.0 | |
| # Author: Jason Giedymin <jason_g_at_apache_dot_org> | |
| # Usage: `bash bitnami-jenkins-upgrade.sh` | |
| # Descr: An upgrade script to help do some minor upgrades | |
| # to the bitnami jenkins image. | |
| # Note: this script does reference sudo and will stop | |
| # if any part of it fails. |
| # quick n dirty powerball app done in python | |
| # wrote this in 30min (just look at the globals, tuples, string interpolation everywhere) | |
| # not even sure if it's correct, probably won't play again due to odds ;-) | |
| # | |
| # outputs: | |
| # $4, powerball match on ticket #0 [44, 47, 51, 57, 57], list: ([44, 47, 51, 57, 61], 10) | |
| # $4, powerball match + 1 ball match on ticket #1 [*4, 47, 51, 57, 57], list: ([4, 47, 51, 57, 61], 10) | |
| # $7, powerball match + 2 ball matches on ticket #2 [61, 47, 51, *8, *8], list: ([61, 47, 51, 8, 4], 10) | |
| # $100, powerball match + 3 ball matches on ticket #3 [61, 47, *19, *8, *8], list: ([61, 47, 19, 8, 4], 10) | |
| # $10000, powerball match + 4 ball matches on ticket #4 [61, *27, *19, *8, *8], list: ([61, 27, 19, 8, 4], 10) |
| # Python actors using gevent libev. | |
| # | |
| # [gevent](http://www.gevent.org/index.html) | |
| # [libev](http://software.schmorp.de/pkg/libev.html) | |
| # | |
| # Jason Giedymin <jason g _at_ g mail dot com> | |
| # | |
| # This example serves as a simple play between four actors. | |
| # - 2 Workers | |
| # - 1 Supervisor |
| #!/bin/bash | |
| # Author: Jason Giedymin <jason dot giedymin -at- gmail dot com> | |
| # License: Apache2 | |
| # Desc: Simple script to help drive the boot2docker docker with | |
| # parallels without much change. | |
| set -e | |
| BOOT2DOCKER_PARALLELS=~/boot2docker-parallels |
| 'use strict'; | |
| // Imports | |
| var bunyan = require('bunyan'); | |
| var Promise = require('bluebird'); | |
| var lodash = require('lodash'); | |
| var kafka = require('kafka-node'); | |
| // Vars | |
| var Producer = kafka.Producer; |
| # Bash Command Runner | |
| # bash_command_runner.sh | |
| # [email protected] | |
| # ApacheV2 | |
| # | |
| # Helpers | |
| # ------- | |
| # f(x) runner | |
| function run() { |