Skip to content

Instantly share code, notes, and snippets.

View rhass's full-sized avatar
🏠
Working from home

Ryan Hass rhass

🏠
Working from home
View GitHub Profile
public class GithubNotification {
import groovy.json.JsonOutput
String repoName
String repoOwner
String oauthToken
String headSha
public class Statuses {
String context
# INCIDENT DATE - INCIDENT TYPE
## Meeting
#### Waiving meetings
In some cases the IC might determine that a PM meeting for the incident isn't needed.
If the IC decides to waive the meeting please replace the `Meeting` section with a
note indicating the meeting has been waived (example: `Meeting waived: Paul Mooring`)
@rhass
rhass / pfsense-backup.sh
Last active April 5, 2022 00:55
Mount USB flash drive and create an encrypted xz compressed tarball. Prunes backups older than six months.
#!/usr/bin/env sh
USB_DRIVE='/dev/da0s1'
MOUNT_PATH='/mnt'
DATE="$(date '+%Y.%m.%d-%H.%M.%S')"
is_mounted() {
mount | grep -q "$USB_DRIVE"
}
@rhass
rhass / keybase.md
Created March 16, 2017 00:32 — forked from reset/keybase.md
keybase.md

Keybase proof

I hereby claim:

  • I am reset on github.
  • I am reset (https://keybase.io/reset) on keybase.
  • I have a public key whose fingerprint is 49D2 1EB1 5B5A BD75 8D1D 581A A3D6 61E7 5334 E988

To claim this, I am signing this object:

@rhass
rhass / blueprints.md
Last active March 16, 2017 21:01
Blueprints

Blueprints

Blueprints are default implementations of the build phases and runtime hooks for your application. They also provide some default health check hooks where appropriate to ensure your application is functioning reliably. Customized Blueprints can be created to facilitate re-usability of common patterns in your organization for developing, building, and running your applications.

Getting Started

New Projects

Simply run hab plan init to leverage blueprints. Habitat will look in your application code for known project types and the appropriate pkg_blueprint.

If you would like to specify the desired blueprint to use, you can run hab plan init --blueprint core/java8-maven-tomcat

The resulting plan will contain all the available callbacks and variables relevant to the blueprint type.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

#!/usr/bin/env ruby
# Usage: find stable current -name downloads-05-08-2016*.csv -exec bintray-paths.rb '{}' +
require 'csv'
FILES=ARGV
FILES.each do |f|
csv = CSV.table(f)
csv.each do |row|
puts row[:path_information].to_s if row[:http_method] =~ /GET/
SOCKET: SET COMM INACTIVITY UNIMPLEMENTED 10
NameError: uninitialized constant EventMachine::EM_PROTO_TLSv1
from org/jruby/RubyModule.java:3299:in `const_missing'
@rhass
rhass / Dockerfile
Created April 10, 2016 18:24 — forked from ruffsl/Dockerfile
Chef ROS example
FROM ubuntu:14.04
RUN apt-get update && \
apt-get install -y \
git \
wget \
expect
# Install Chef DK
RUN wget https://packages.chef.io/stable/ubuntu/12.04/chefdk_0.12.0-1_amd64.deb && \
==> Removing old directory...
==> Building...
Number of parallel builds: 7
--> linux/amd64: _/home/rhass/src/packer
1 errors occurred:
--> linux/amd64 error: exit status 1
Stderr: config.go:13:2: cannot find package "github.com/kardianos/osext" in any of:
/opt/go/src/github.com/kardianos/osext (from $GOROOT)