This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: generic-prog | |
# Required-Start: $local_fs $remote_fs $network | |
# Required-Stop: $local_fs $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Generic Program | |
# Description: Generic Program is a generic program to do generic things with | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Get OpenBSD from http://www.openbsd.org/ ;) | |
- Find an Ubuntu cloud image on https://cloud-images.ubuntu.com/ | |
- Get https://github.com/reyk/meta-data and configure it for cloud-init | |
- Run the VM ... | |
Script started on Thu Mar 30 01:53:50 2017 | |
# qemu-img convert ubuntu-16.10-server-cloudimg-amd64.img ubuntu-16.10-server-cloudimg-amd64.raw | |
# vmctl start ubuntu -d ubuntu-16.10-server-cloudimg-amd64.raw -n nat -c | |
Connected to /dev/ttyp6 (speed 9600) | |
Changing serial settings was 0/0 now 3/0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twisted.internet import reactor | |
from twisted.web.server import Site | |
from twisted.web.resource import Resource | |
import json, hmac | |
from hashlib import sha1 | |
from blinker import signal | |
class WebhookServer(Resource): |