Skip to content

Instantly share code, notes, and snippets.

@Hippyjake
Hippyjake / post-receive
Created June 7, 2019 23:42 — forked from guillaumewuip/post-receive
Git post-receive hook : build then run a docker container
#!/usr/bin/env bash
# A git post-receive hook
#
# On master branch only :
# 1. It builds a docker image named with the dir name
# 2. It then stop container of the same name, rm it and start a new one
## --- Config
// Captive Portal
var http = require('http');
var Wifi = require('Wifi');
var dgram = require('dgram');
var server = dgram.createSocket('udp4');
var SSID = 'CaptivePortalTest';
### Keybase proof
I hereby claim:
* I am hippyjake on github.
* I am hippyjake (https://keybase.io/hippyjake) on keybase.
* I have a public key whose fingerprint is 396C 0BA0 A44C 6ADE AD69 B284 72E4 4B6D 9305 10EE
To claim this, I am signing this object: