I hereby claim:
- I am roens on github.
- I am roens (https://keybase.io/roens) on keybase.
- I have a public key whose fingerprint is DBB5 EB73 2D9E B1AB D101 A98A 5811 66FB A46E 29EB
To claim this, I am signing this object:
| char pinBrakeLight = 6; // brake output pin | |
| char pinRunLight = 5; // running light output pin | |
| char pinBrakeSense = 8; // brake sense pin | |
| boolean didBlink = false; | |
| boolean brakeState; // brakes activated or not? | |
| boolean runLightState = true; // running lights on? | |
| unsigned long remindTimer; // tracking when to blinky remind | |
| boolean dbg = false; // debug or not debug? | |
| void setup() |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| # This is for triggering & capturing backups of Atlassian's Confluence cloud | |
| # service. | |
| # | |
| # https://docs.atlassian.com/jira/REST/cloud/ | |
| # https://bitbucket.org/atlassianlabs/automatic-cloud-backup/src/ | |
| # https://github.com/ghuntley/atlassian-cloud-backup/issues/5 | |
| # https://github.com/den-crane/my-stupid-scripts/blob/master/jira_backup.sh |
| #!/usr/bin/env bash | |
| # supervisor-log-compress.sh | |
| # | |
| # supervisord writes logs, and rotates them, but does not compress old log | |
| # files. This script is meant to help with that cleanup, reclaiming storage. | |
| # | |
| # A nice place for this script is in: /etc/cron.daily/ | |
| for f in /var/log/supervisor/*.log.*; do |
| # Add to your ~/.bash_aliases or preferred spot for such functions: | |
| docker-compose-install (){ | |
| if [ ! "$(type -p jq)" ]; then | |
| echo -e "** Fail! This needs jq. Please do one of:\n apt install jq\n port install jq" | |
| return 99 | |
| fi | |
| [ $(type -p docker-compose) ] && \ | |
| current_version=$(docker-compose -v | awk '{print $4}') | |
| current_version="${current_version:-v0.0.0}" |
| # A "1-liner" for listing all services. | |
| aws servicediscovery list-services --query 'Services[].{Id:Id,Name:Name}' --output text | sort -bk 2 | |
| # A "1-liner" for deleting cruft services, and any associated insttance registrations. | |
| # The `$id` at the start is one from the first column of the above command to list services. | |
| id=''; \ | |
| instances=$( \ | |
| aws servicediscovery list-instances --service-id $id --query 'Instances[*].Id' --output text \ | |
| ); \ | |
| for x in $instances; do |
I'll drop WIP status when I've worked out: