Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am n0coast on github.
  • I am n0coast (https://keybase.io/n0coast) on keybase.
  • I have a public key ASB2cXjR87ILXcLHyasYMwl_AEUC7Kx0Nf5m2CCq00N02Qo

To claim this, I am signing this object:

@n0coast
n0coast / README.md
Last active December 5, 2022 04:12 — forked from defunkt/browser
pipe html to a browser

Installation:

sudo curl https://gist.github.com/n0coast/bd95a4d7d06aff0159fcf98fb6fcc44a/raw/e24e42d9d14c70f5be4ce2b385f1c42f62ace7a4/browser -o /usr/local/bin/browser
sudo chmod +x /usr/local/bin/browser

Usage:

echo 'hi mom!' | browser
@n0coast
n0coast / restart_newrelic-sysmond.sh
Last active December 8, 2015 23:10
Newrelic docker rollup doesn't happen unless the newrelic server agent is restarted, this super basic script creates checks if the running containers differ from a previous run and restarts newrelic-sysmond if they have. Only tested on RHEL, not all errors handled.
#!/bin/bash
# define location to dump docker/md5sum output
dockerSum="/tmp/dockerSum.out"
# Verify that docker and newrelic agent are running
isRunning=$(systemctl is-active newrelic-sysmond.service docker.service)
active="active
active"
[[ $isRunning != $active ]] && exit 1;
@n0coast
n0coast / gencerts.sh
Last active August 30, 2016 09:26
docker cert creation script
#!/bin/bash
# Use this to quickly generate and sign certs for docker hosts, using the -c
# option creates a cert that will allow client auth to the docker node.
#
# Before you use this you need to create the docker-ca certificates using
# commands similart to this:
# openssl genrsa -aes256 -out docker-ca-key.pem 2048
# openssl req -new -x509 -days 3650 -key docker-ca-key.pem -sha256 -out docker-ca.pem
#
# Then create the docker-ca.pass file and echo the docker-ca key password