Skip to content

Instantly share code, notes, and snippets.

View loganmzz's full-sized avatar
🦀
Doing some stuff with K8S, TF and Rust

Logan Mzz loganmzz

🦀
Doing some stuff with K8S, TF and Rust
View GitHub Profile
@loganmzz
loganmzz / index.js
Last active April 1, 2020 08:44
OVH API - Node.js - POST /cloud/project/<project>/kube
const projectid = process.argv[1];
const clustername = process.argv[2];
const region = process.argv[3];
var ovh = require('ovh')({
endpoint: 'ovh-eu',
appKey: process.env.OVH_APP_KEY,
appSecret: process.env.OVH_APP_SECRET,
consumerKey: process.env.OVH_CONSUMER_KEY,
});
@loganmzz
loganmzz / README.md
Last active September 22, 2020 07:18
Terraform - Helm - Chart managed PVC not found on "recreate"
@loganmzz
loganmzz / main.sh
Created June 8, 2021 15:34
Git ignore demo
#!/usr/bin/env bash
basedir="$(cd "$(dirname "${BASH_SOURCE}")" >/dev/null; pwd)" || exit 1
current_datetime="$(date --utc --iso-8601=ns)"
function main.clean() {
rm -rf "${basedir}/"{001..004}".txt" "${basedir}/"{boo,foo,bar,far}
}
function main.mkfile() {
@loganmzz
loganmzz / index.js
Last active December 4, 2023 20:05
Olympiade - Moustiques
const DEBUG = false;
const MOSQITO_DENSITY = 0.1;
const MAP_HEIGHT = 200;
const MAP_WIDTH = 120;
function randomBoolean() {
return Math.random() < MOSQITO_DENSITY;
}
class Map {