Skip to content

Instantly share code, notes, and snippets.

View nstielau's full-sized avatar

Nick Stielau nstielau

  • Red Hat
  • San Francisco
View GitHub Profile
#!/usr/bin/env ruby
require 'yaml'
#
# dasher
# This script takes a configmap yaml file and a JSON grafana dashboard file,
# and replaces the JSON in the configmap with the JSON from the file. This
# is useful for updating the telemeter-lts dashboard config maps with JSON
# expoerted from a modified Grafana dashboard.
@nstielau
nstielau / trees_answer.scad
Created July 11, 2018 22:29
Recursive Deciduous Trees
/* [Tree] */
// Base size for trunk
size = 25; //[10:500]
// Depth of recursion (more depth, more complexity)
depth = 8; //[1:9]
// ratio of bottom of branch to previous branch
widthBottom = 0.25; //[0.1:0.05:1.2]
@nstielau
nstielau / default.cfg
Created May 1, 2018 02:20
fflsliver default config
# ffslicer default is config file
precision = 0.1 # valid range [0.01, 0.4], default is 0.1
filamentDiameter = 1.75 # valid range [0.5, 10.0], default is 1.75
extrusionRatio = 1.09 # valid range [0.5, 2.0], default is 1.0
layerHeight = 0.18 # valid range [0.01, 0.4], default is 0.18
firstLayerHeight = 0.27 # valid range [0.05, 0.5], default is 0.27
pathWidth = 0.4 # valid range [0.35, 0.45], default is 0.4
baseSpeed = 80 # valid range [10, 200], default is 80
travelSpeed = 120 # valid range [10, 200], default is 120

Keybase proof

I hereby claim:

  • I am nstielau on github.
  • I am nstielau (https://keybase.io/nstielau) on keybase.
  • I have a public key ASBLS8dyezbtA0oWJmVJf9VCAzkvB0d9ZXhtzCY8fwhj-Qo

To claim this, I am signing this object:

CheckJournal WARNING: 2 matches found for Orphaned binding in journal (warn 1/crit 10)
Orphaned binding detected: a417d0d6ad3d45f4b5eeba63be6f454a, this will cause slow convergence to eventually back up.
Orphaned binding detected: 473199549e5844f097ae750c299837ec, this will cause slow convergence to eventually back up.
Executing 'journalctl --no-pager -a MESSAGE_ID=72395a954c4e4449921c42a5faab671c --since=-10minutes' Match: -- Logs begin at Thu 2016-03-03 02:42:33 UTC, end at Thu 2016-03-17 19:39:37 UTC. -- Ignoring: -- Logs begin at Thu 2016-03-03 02:42:33 UTC, end at Thu 2016-03-17 19:39:37 UTC. -- Match: Mar 17 19:32:20 endpoint091c557c.xhios.panth.io chef_solo_slow_converge[14314]: Orphaned binding detected: b517d0d6ad3d45f4b5eeba63be6f454a, this will cause slow convergence to eventually back up. Match: Mar 17 19:33:11 endpointac9c557c.xhios.panth.io chef_solo_slow_converge[14314]: Orphaned binding detected: 473199549e5844f097ae750c299837ec, this will cause slow convergence to eventually back up. CheckJournal WARNING: 2 matches found for .* in `journalctl --no-pager -a MESSAGE_ID=71395a954c4e4449921c42a5faab671c --since=-10minutes` (threshold 1)
/*
CSS Hacks to change "Postmortem" to "Incident Review" on
the statuspage.io pages. Nobody died.
*/
.update.postmortem strong {
display: none;
}
.update.postmortem {
color: white;
@nstielau
nstielau / lint_json.sh
Created February 25, 2014 21:35
A one-liner for validating json
# Lint JSON with python (the exit 255 stops xargs after the first failed command)
find . -name "*.json" -print | xargs -Ixx bash -c "echo JSON linting xx 1>&2; cat xx | python -mjson.tool > /dev/null || exit 255"
@nstielau
nstielau / victorops.json
Created February 12, 2014 19:13
Configuring Sensu for VictorOps
{
"handlers": {
"victorops": {
"type": "pipe",
"command": "/etc/sensu/handlers/victorops.rb"
}
},
"checks": {
"tmp_check": {
"description": "check that /tmp exists ",
@nstielau
nstielau / packer_fedora_bounty.md
Last active December 26, 2015 05:49
Packer for Fedora Vagrant box

WANTED: Automated Fedora Vagrant Box Creation

Deliverables

  • Public Github Repo with Packer VirtualBox templates for Fedora 19, 20
  • Script capable of creating box, testing, and uploading to S3 on success (to be run via CI)
  • Bare-bones Vagrantfile example

Box Requirements