Skip to content

Instantly share code, notes, and snippets.

View shreddedbacon's full-sized avatar

Ben Jackson shreddedbacon

View GitHub Profile
Wed Jun 7 00:43:50 UTC 2017
@shreddedbacon
shreddedbacon / manifest.yml
Created June 7, 2017 01:48 — forked from drnic/manifest.yml
BOSH deployment manifest - AWS
name: redis
director_uuid: 2ce88742-5da6-406e-93da-8d4fa9b8fa27
releases:
- name: redis
version: latest
compilation:
workers: 6
network: redis1
reuse_compilation_vms: true
cloud_properties:
@shreddedbacon
shreddedbacon / manifest.yml
Last active June 13, 2017 23:08 — forked from mkb/manifest.yml
BOSH deployment manifest - AWS
name: redis
releases:
- name: redis
version: latest
update:
canaries: 1
max_in_flight: 50
canary_watch_time: 1000-100000
update_watch_time: 1000-100000
# REST API
* https://www.codementor.io/codehakase/building-a-restful-api-with-golang-a6yivzqdo
# SQLite
* https://www.thepolyglotdeveloper.com/2017/04/using-sqlite-database-golang-application/
# EXEC
* https://gist.github.com/Guiguillermo/e2b0bf09622dea09647d
# REST Postgre
#!/bin/bash
# Usage:
# ./createcertfilesfrompfx.sh /path/to/domain.pfx
#
# Creates domain.pem and domain.key in the current directory
#
pfxpath="$1"
if [ ! -f "$pfxpath" ];
then
@shreddedbacon
shreddedbacon / armbian
Created February 7, 2018 22:28
armbian
# Arbmian Custom Image
* https://github.com/armbian/build/blob/f65c606430dce4e2e67764540d6e6b68505de2c8/lib/configuration.sh
* https://forum.armbian.com/topic/1866-creating-image-with-extra-packages-pre-installed/
@shreddedbacon
shreddedbacon / button click events1
Created March 2, 2018 09:21
arduino button click event
/* 4-Way Button: Click, Double-Click, Press+Hold, and Press+Long-Hold Test Sketch
By Jeff Saltzman
Oct. 13, 2009
To keep a physical interface as simple as possible, this sketch demonstrates generating four output events from a single push-button.
1) Click: rapid press and release
2) Double-Click: two clicks in quick succession
3) Press and Hold: holding the button down
4) Long Press and Hold: holding the button for a long time
@shreddedbacon
shreddedbacon / vbox-bridged-network.md
Last active September 12, 2018 01:22
a gist to set up bridged network for a BOSH director in vbox

create release

git clone https://github.com/cppforlife/bosh-virtualbox-cpi-release.git && cd bosh-virtualbox-cpi-release
git checkout bridged
bosh create-release --force --tarball /tmp/vbox-cpi-release

set up ops file

<passwordHash>#jbcrypt:$2a$10$razd3L1aXndFfBNHO95aj.IVrFydsxkcQCcLmujmFQzll3hcUrY7S</passwordHash>