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
description "backend" | |
start on stopped cloud-final | |
stop on runlevel [06] | |
respawn | |
# limit respawning to 30 times in 2 minutes | |
respawn limit 30 120 |
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
- name: Sample deploy | |
hosts: backend | |
sudo: yes | |
remote_user: ubuntu | |
gather_facts: no | |
vars: | |
- build_dir: "/tmp/build" | |
- deploy_dir: "/opt/deploy" |
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
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.js" type="text/javascript"></script> | |
<script> | |
var server = '...'; | |
var port = 8080; | |
var clientId = "unique-mqtt-client-id"; | |
// Create a client instance | |
client = new Paho.MQTT.Client(server, Number(port), clientId); |
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
ServletHolder holder = new ServletHolder(new HttpServlet() { | |
@Override | |
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { | |
resp.getWriter().print("pong"); | |
resp.getWriter().close(); | |
} | |
}); | |
environment.getApplicationContext().getServletHandler().addServletWithMapping(holder, "/servlet/ping"); |
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
{ | |
"name": "aws-es-proxy", | |
"version": "0.0.1", | |
"description": "AWS ES Proxy", | |
"author": "Nuutti Kotivuori", | |
"license": "ISC", | |
"dependencies": { | |
"aws-sdk": "~2.2.46", | |
"http-proxy": "~1.13.2", | |
"body-parser": "~1.15.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
### Keybase proof | |
I hereby claim: | |
* I am grahamoregan on github. | |
* I am grahamoregan (https://keybase.io/grahamoregan) on keybase. | |
* I have a public key whose fingerprint is 0159 7707 5409 BA18 F81D 9489 2931 DB8D BD43 E0C5 | |
To claim this, I am signing this object: |