Skip to content

Instantly share code, notes, and snippets.

View byllc's full-sized avatar

Bill Chapman byllc

View GitHub Profile
@byllc
byllc / RaspiNotes.md
Last active December 5, 2015 00:39
Some initial configurations for Headless Raspberry Pi

###IF you are using Raspian many of these tasks are unescessary. With Raspbian:

  • SSH is ready to go out of the box
  • default runlevel is 3
  • many items can be configured with raspi-config tool

###Adding more swap for high memory use concerns

  sudo dd if=/dev/zero of=/swap bs=1M count=1024
  sudo mkswap /swap
  sudo swapon /swap
@byllc
byllc / bosh-release-job-control.md
Last active August 29, 2015 13:56
Question to ask when creating a bosh release.

BOSH Release Requirements Checklist

##Packaging

  • What packages are required?
  • Is there a usuable binary available?
  • Where is the source code located?
  • What are the compilation requirements on target platform?

##Job Creation

  • How to run process? eg. start, stop, restart.Control Script? Helpful wrapper script? ({name}_ctl)
@byllc
byllc / diy-ngrok.md
Last active April 20, 2017 22:42 — forked from tekacs/show
This does something essentially equivalent to showoff.io if you have a publicly facing server...

This is basically diy ngrok

Usage: show

function show() {
    DOMAIN=".example.com"
    REMOTE="$2$DOMAIN"
    ssh -tR 1080:127.0.0.1:$1 vps "sudo ssh -Nl \$USER -L $REMOTE:80:127.0.0.1:1080 localhost"
}