Skip to content

Instantly share code, notes, and snippets.

View nomad_mininet.py
#!/usr/bin/env python
import shutil
from mininet.cli import CLI
from mininet.net import Mininet
from mininet.topo import SingleSwitchTopo
from mininet.util import pmonitor
servers_count = 3
View draggable.js
(function(dragClass, dropZoneId) {
//
// Classes
//
// Point is a representation of (X, Y) coordinates
function Point(x, y) {
this.x = x;
this.y = y;
}
@lgfa29
lgfa29 / minecraft.hcl
Created Mar 26, 2020
Nomad job for running a Minecraft server
View minecraft.hcl
job "minecraft" {
datacenters = ["dc1"]
group "minecraft" {
volume "minecraft" {
type = "host"
source = "minecraft"
}
task "eula" {
View README.md

How to use it

  1. Create a GitHub Personal Access Token with the read:org permission.
  2. Copy the contents of bookmarklet.js and replace the placeholders with your specific values.
  3. Add a new bookmark to your browser using that as the URL.
View cloudant-query.json
[
{
"id": "cbb0ae9a.092cd8",
"type": "http in",
"z": "9358b649.b981c8",
"name": "",
"url": "/search",
"method": "get",
"upload": false,
"swaggerDoc": "",
View cloudant-test-flow.json
[
{
"id": "6db6830e.09ccfc",
"type": "inject",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
View node-red-cloudant-multiple-dbs.json
[
{
"id": "74b54544.7661ec",
"type": "switch",
"z": "a482186c.51edb8",
"name": "",
"property": "database",
"propertyType": "msg",
"rules": [
{