Skip to content

Instantly share code, notes, and snippets.

View JavierLuna's full-sized avatar
🌚
What's up?

Javier Luna Molina JavierLuna

🌚
What's up?
View GitHub Profile
@kopwei
kopwei / k3s-cluster.md
Last active April 15, 2024 15:57
K3s and Rancher on Raspberry Pi 4 Cluster

Deploy K3s and Rancher on Raspberry Pi 4 cluster

Today I tried to setup a small Kubernetes cluster on top of 3 Raspberry Pi 4 (4GB Memory). Here is the steps to install the cluster.

IMG_3817

Preparation

I have 3 Raspberry Pi 4 stacked with PoE headers and connected to a PoE switch at home. The are connected to Internet through a home router. All Pis are equipped with a 64GB Samsung SDXC card flushed with Ubuntu 20.04 image.

@JavierLuna
JavierLuna / ubuntu-setup.sh
Last active November 12, 2018 14:55
Script to install my shit on a fresh Ubuntu install. Only tested on Ubuntu 16.04
#!/bin/bash
if [ "$EUID" -eq 0 ]
then echo "Execute again without sudo"
exit
fi
cd $HOME
sudo apt-get update -y
@k3kdude
k3kdude / DiscordWebhook.java
Created August 17, 2017 15:31
Java DiscordWebhook class to easily execute Discord Webhooks
import javax.net.ssl.HttpsURLConnection;
import java.awt.Color;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.reflect.Array;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;