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 August 22, 2025 08:44
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/meetmatt/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 September 27, 2024 21:32
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 October 31, 2025 06:32
Capture Table
/**
* Extract data from an HTML table with flexible column selection and processing.
*
* @param {string} id - The table's HTML id attribute
* @param {string|number[]} columns - Column selection: "*" for all, "1-3" for range, "1,3,5" for specific, or array of column numbers (1-based)
* @param {Object} options - Configuration options
* @param {boolean} options.combine - Combine multiple cells into single string per row (default: false)
* @param {boolean} options.skipHeaders - Skip rows containing <th> elements (default: false)
* @param {number} options.skipRows - Number of rows to skip from the top (default: 0)
* @param {string} options.delimiter - Character(s) to separate cell data (default: '\t')