Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:

Michael clrxbl

:shipit:
View GitHub Profile
View k3s
Control-plane:
PRIVATE_IFACE=eth1
PUBLIC_IP=$(curl http://ifconfig.me)
PRIVATE_IP=$(ip -f inet addr show $PRIVATE_IFACE | awk '/inet / {print $2}' | cut -d/ -f1)
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" INSTALL_K3S_EXEC="--bind-address $PRIVATE_IP --node-ip $PRIVATE_IP --node-external-ip $PUBLIC_IP --advertise-address $PRIVATE_IP --disable-network-policy --no-deploy traefik --disable traefik --no-flannel --kubelet-arg address=$PRIVATE_IP --kube-apiserver-arg kubelet-preferred-address-types=InternalIP --cluster-cidr 172.16.0.0/16 --service-cidr 172.17.0.0/16 --cluster-dns 172.17.0.10" sh -
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
Agents:
PRIVATE_IFACE=eth1
PUBLIC_IP=$(curl http://ifconfig.me)
View values.yaml
containerRuntime:
integration: "containerd"
socketPath: "/var/run/k3s/containerd/containerd.sock"
nodePort:
enabled: true
nodeinit:
enabled: true
restartPods: true
@clrxbl
clrxbl / harvest.js
Created Mar 22, 2021
Harvest Project Currency Conversion
View harvest.js
// ==UserScript==
// @name Harvest Currency Exchange
// @namespace Violentmonkey Scripts
// @match https://*.harvestapp.com/projects/*
// @run-at document-idle
// @grant none
// @version 1.0
// @author -
// @description 3/22/2021, 3:47:59 PM
// ==/UserScript==
View setrole.sh
#!/bin/bash
CURRENT_IP=$(hostname -I | cut -d' ' -f1)
CURRENT_NODE=$(kubectl get nodes -o wide | grep "$CURRENT_IP" | cut -d " " -f1)
kubectl label node $CURRENT_NODE node-role.kubernetes.io/worker=worker
View id_ed25519.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBFB8G8OSuHBEAcTpbDHtzapO5WjRwIpWJR/fCPfXJ2b michael@iptables.sh
View keybase.md

Keybase proof

I hereby claim:

  • I am clrxbl on github.
  • I am systemd (https://keybase.io/systemd) on keybase.
  • I have a public key ASCmmRiW1q09Ioph0I5LWXC-7b8c8leqm8f-3mFCHUuL2wo

To claim this, I am signing this object:

View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCdnZtp2EZhcbBJnPhISC9ehp7YisviZwXveQBC2jasfLf9MZbUgCaLJVcvPngfR33r0rP9j3AU5m2/GBGfF0E85zMcLenpFEOrbtugaaN6tem+o/b5l/ZwF4Y+4xfrHTlh7ptxzNGawuvI9RW2ydnaaw59sPDUzvak3Ti8MEGXES8AoHUUAGTOP3zSHPf6RX77MddxAYqisIG9s4ork6c79G3o4OJvI6z7LX9KuuI47JSrQABxmVRIPrPk+THTrCIK5eOxC1do7TWVR75hH2acD1MncquXWKb2Mtofr/LqAldS63OBSF+86QcEg1mQVyIF9+ZPjD/VqLVwOGM6yHND michael@arch
@clrxbl
clrxbl / spigotmc.css
Last active Jul 31, 2018
SpigotMC Flat Light
View spigotmc.css
@-moz-document url-prefix("https://www.spigotmc.org"), url-prefix("https://spigotmc.org") {
/*
* VARIABLES
* Edit for colors.
*/
:root {
--main-bg-color: #eee; /*#1a1a1a*/
--main-pimary-bg-color: #ed8106; /*#4e61f0*/
--main-secondary-bg-color: #eee; /*#161616*/
--main-tertiary-bg-color: #ed8106; /*#4959d8*/
@clrxbl
clrxbl / spigotmc.css
Last active Jul 31, 2018
SpigotMC Flat Dark
View spigotmc.css
@-moz-document url-prefix("https://www.spigotmc.org"), url-prefix("https://spigotmc.org") {
/*
* VARIABLES
* Edit for colors.
*/
:root {
--main-bg-color: #292929; /*#1a1a1a*/
--main-pimary-bg-color: #ed8106; /*#4e61f0*/
--main-secondary-bg-color: #292929; /*#161616*/
--main-tertiary-bg-color: #ed8106; /*#4959d8*/