Skip to content

Instantly share code, notes, and snippets.

Avatar

Luiz Aoqui lgfa29

View GitHub Profile
View main.tf
provider "google" {
project = "..."
region = "us-central1"
zone = "us-central1-a"
}
locals {
my_list_from_map = [for k, v in var.my_map : "${k}.${v}"]
}
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": "",