Skip to content

Instantly share code, notes, and snippets.

Matthias Johnson opennomad

Block or report user

Report or block opennomad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
opennomad /
Last active Jun 12, 2019
version count of all Elasticbeanstalk application
# get a version count of all Elasticbeanstalk application
aws elasticbeanstalk describe-application-versions | jq '.ApplicationVersions[] | .ApplicationName' | sort | uniq -c | sort -nr
opennomad / log_search_strings.txt
Created Mar 14, 2019
Cloudwatch Log searching
View log_search_strings.txt
# all the 4xx errors
[host, logName, user, timestamp, request, statusCode=4*, size]
opennomad / gist:4fcc9755b440e98e06b70a8208b01b12
Created Sep 18, 2018
what's my IP from the command line
View gist:4fcc9755b440e98e06b70a8208b01b12
dig +short
opennomad /
Last active Mar 21, 2019
working with ElasticBeanstalk
sudo /opt/elasticbeanstalk/bin/get-config
opennomad / 1_find_old_snapshots
Last active Mar 1, 2018
Cleaning AWS snapshots older than a given date
View 1_find_old_snapshots
aws ec2 describe-snapshots --owner-ids <owner> --query 'Snapshots[?StartTime<=`2017-01-01T00:00-07:00`]' > out
opennomad / kubernetes_dashboard_upgrade
Last active Aug 5, 2016
Kubernetes dashboard upgrade. The default dashboard for kubernetes 1.2 is ineffective. The following will upgrade the dashboard the running cluster.
View kubernetes_dashboard_upgrade
kubectl delete svc kubernetes-dashboard --namespace kube-system
kubectl create -f
opennomad / github-issue-export.rb
Last active Oct 1, 2015
Simple way to export all issues from a github repo using token authentication
View github-issue-export.rb
#!/usr/bin/env ruby
# Simple script to pull all issues from a github repo.
# Simply create an authentication token in github
# Then set the environment variable GITHUB_TOKEN to that
# then run the script passing the <owner>/<repo> as the one and only parameter
# output will be in JSON form. From there you can use jq -
# For example: cat file.json| jq '.[] | .user.login, .title, .body' etc.
# requires octokit and json module
opennomad /
Last active Dec 22, 2018 — forked from coderofsalvation/
Snippy text expander
#!/usr/bin/env bash
# video demo at:
# augmented by "opennomad":
# originally written by "mhwombat":
# Based on "snippy" by "sessy"
# (
# You will also need "dmenu", "zenity", "xsel" and "xdotool". Get them from your linux
# distro in the usual way.
opennomad / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.