curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Define header size (IP + ICMP headers) | |
HEADER_SIZE=28 | |
# Define the starting MTU size (adjust as needed) | |
START_MTU=1472 | |
# Define the minimum MTU size (optional, adjust as needed) | |
MIN_MTU=100 # Common minimum Ethernet MTU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rkeConfig: | |
chartValues: | |
rke2-cilium: | |
kubeProxyReplacement: true | |
k8sServiceHost: 127.0.0.1 | |
k8sServicePort: 6443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CLUSTER_TAG=harvester-$(openssl rand -hex 6) | |
ISO=/var/lib/libvirt/images/harvester-v1.3.0-amd64.iso | |
for i in {1..2}; do \ | |
VM_NAME=$(openssl rand -hex 4); \ | |
sudo qemu-img create /var/lib/libvirt/images/${CLUSTER_TAG}-${VM_NAME}-ROOT_VOL.img 180G; \ | |
sudo qemu-img create /var/lib/libvirt/images/${CLUSTER_TAG}-${VM_NAME}-DATA_VOL.img 250G; \ | |
sudo virt-install \ |
Using virt-install
to install SUSE Elemental on KVM.
When creating your Machine Registration Endpoint in the Rancher UI, ensure that registration.emulated-tpm-seed
is set to -1
, if you plan to add more than a single machine using the ISO you will be building.
For example:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class NashEquilibrium { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
int[][] game = new int[2][2]; | |
System.out.println("Enter the payoff matrix for Player 1 (separate values with spaces):"); | |
for (int i = 0; i < 2; i++) { | |
for (int j = 0; j < 2; j++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set from="user@protonmail.com" | |
set my_user="user@protonmail.com" | |
set my_pass="pass" | |
set smtp_port="1025" | |
set imap_port="1143" | |
set ssl_starttls=yes | |
set smtp_url="smtp://$my_user:$my_pass@127.0.0.1:$smtp_port" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name api.mart.data.internal; | |
access_log on; | |
location / { | |
proxy_set_header Host $host; | |
proxy_set_header Connection ''; | |
proxy_http_version 1.1; | |
proxy_pass http://127.0.0.1:9000; |
This is a Bash script that generates an epidemic curve graph using the gnuplot tool. The script takes in a data file in CSV format and outputs a PNG image of the epidemic curve.
In order to use this script, you will need to have gnuplot installed on your system. If you're using a Debian-based distribution, you can install gnuplot using the following command:
sudo apt-get install gnuplot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module uuid-generator | |
go 1.16 | |
require github.com/google/uuid v1.2.0 |
NewerOlder