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
import random | |
import string | |
TARGET = "Hello, World!" | |
POPULATION_SIZE = 100 | |
MUTATION_RATE = 0.05 | |
GENERATIONS = 1000 | |
INITIAL_INDIVIDUAL = "Cr3@tiv3_#ode" | |
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
import express from "express" | |
import * as child_process from "child_process"; | |
const app = express() | |
app.get('/', function (req, res) { | |
let proc = child_process.execFile('docker', ['run', 'hello-world'], () => { | |
if (error) { | |
console.error("stderr", stderr); | |
throw error; | |
} |
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
COMPOSE = docker-compose -f docker/docker-compose.yml -p example | |
MAIN_CONTAINER = node | |
build: service_build db_init migration | |
service_build: | |
$(COMPOSE) build | |
db_init: | |
$(COMPOSE) run db docker-entrypoint.sh |
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
# CI/CD example written by @siu_issiki | |
# | |
# Set bellow environments before running this flow: | |
# - AWS_ECR_ENDPOINT | |
# - AWS_DEFAULT_REGION | |
# - AWS_ACCESS_KEY_ID | |
# - AWS_SECRET_ACCESS_KEY | |
# - CONTAINER_IMAGE_NAME | |
# - DOCKERFILE_PATH | |
# - SLACK_WEBHOOK |
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
require 'rest-client' | |
require 'json' | |
require 'yaml' | |
$tokens = { | |
} | |
$base_uri = '' | |
def get_wiki_list base: "kibela/wikis" | |
wiki_list = Dir.glob("#{base}/*") |