Skip to content

Instantly share code, notes, and snippets.

View oxr463's full-sized avatar
💻
./configure --enable-hacker-mode

oxr463

💻
./configure --enable-hacker-mode
View GitHub Profile
@oxr463
oxr463 / README.md
Created January 21, 2021 21:40
Iterating through cluster nodes via the Rancher API v3

Rancher Cluster Nodes in Python

Iterating through cluster nodes via the Rancher API v3

Dependencies

Examples

@oxr463
oxr463 / README.md
Last active November 30, 2020 15:01
Installing Rancher in RKE on Alpine Linux

WIP: Installing Rancher in RKE on Alpine Linux

This is a work in progress.

Dependencies

Note: this requires software in the edge repository.

apk upgrade
@oxr463
oxr463 / Vagrantfile
Last active September 21, 2020 19:48
Create generic three-node cluster
# Copyright (c) 2020 Lucas Ramage <ramage.lucas@protonmail.com>
# SPDX-License-Identifier: UPL-1.0
# Create generic three-node cluster
# Based on: https://github.com/oracle/vagrant-projects/blob/master/Kubernetes/Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
@oxr463
oxr463 / base64tobin.js
Last active April 26, 2021 16:16
Encode/Decode binary as base64
#!/usr/bin/env node
// SPDX-License-Identifier: MIT
// Decode binary from base64
const fs = require("fs");
const process = require("process");
const util = require("util");
process.argv.forEach(function (val, index, array) {
const txt = fs.readFileSync(val);
const bin = Buffer.from(txt,'base64').toString();
@oxr463
oxr463 / CHANGELOG.rst
Last active September 17, 2022 02:08
Keep a Changelog in reStructuredText!

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

@oxr463
oxr463 / README.md
Last active April 29, 2020 17:53
Application Security Testing Playlist
@oxr463
oxr463 / yaml2dot.py
Last active April 7, 2022 12:47 — forked from rchrd2/yaml2dot.py
YAML to Graphviz
#!/usr/bin/python
# vim: fileencoding=utf-8
# SPDX-License-Identifier: MIT
u"""Translate YAML written text to graphviz dot language
Input YAML text like below:
---
@oxr463
oxr463 / schedule.md
Last active March 27, 2020 13:05
Daily Schedule

Daily Schedule

Schedule Start Time Time Interval Week Start Date
7:00 AM 60 MIN {{start_date}}
TIME SUN MON TUES WED THURS FRI SAT
7:00 AM
8:00 AM
@oxr463
oxr463 / csv2json.js
Last active June 15, 2020 23:42
Convert CSV to JSON
#!/usr/bin/env node
// SPDX-License-Identifier: MIT
// Convert CSV to JSON
const csv2json = require("csvjson-csv2json");
const fs = require("fs");
const process = require("process");
const util = require("util");
process.argv.forEach(function (val, index, array) {
if(val.includes(".csv")) {