Skip to content

Instantly share code, notes, and snippets.

View 128f's full-sized avatar
☠️

128f

☠️
View GitHub Profile
@meetmatt
meetmatt / 01-openstack.md
Last active June 27, 2023 10:25
Scripted version of the how-to article by Rodrigo Nascimento "OpenStack Single-Node (MicroStack)" https://connection.rnascimento.com/2021/03/08/openstack-single-node-microstack/ Part 2 with Kubernetes can be found here https://gist.github.com/yurgol/92167f8cc61e85346bbb97b4501d8d22

Openstack

OS configuration

Add user to sudoers without password

echo 'user ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/user

Kernel optimizations

@zarkone
zarkone / helm3.ts
Created October 27, 2020 08:28
Helm3 workaround for pulumi, see https://github.com/pulumi/pulumi-kubernetes/issues/1335. Doens't support arrays and requires manual escaping / marshaling.
import * as child_process from "child_process";
import * as pulumi from "@pulumi/pulumi";
import * as k8s from "@pulumi/kubernetes";
const SPAWN_PROCESS_BUFFER_SIZE = 104857600;
export const repos = {
stable: "https://kubernetes-charts.storage.googleapis.com",
prometheus: "https://prometheus-community.github.io/helm-charts",
jetstack: "https://charts.jetstack.io",
@hideojoho
hideojoho / 0-4-steps-get-docker-with-gpu-on-ubuntu-2004.md
Last active October 3, 2023 06:39
4 steps to get a docker running with GPU on Ubuntu 20.04

⚠️ The following instruction is written on 25 Jul 2020 (= old).

4 steps to get a docker running with GPU on Ubuntu 20.04

Environment

  • Ubuntu 20.04
  • CUDA 10.2
  • Docker Latest
@blizzardengle
blizzardengle / capture-table.js
Last active February 18, 2023 17:43
Capture Table
/**
* Loop through a table and pull out certain cells of data.
*
* This loops through a the rows of a table and grabs the requested cell(s) from each row.
* Cell data is seperated with tabs when multiple cells of data are requested OR with the
* combine flag set to true the data will be combined into a single string per row.
*
* Version: Alpha
*
* @param {int} id The value of the tables HTML id attribute.