Skip to content

Instantly share code, notes, and snippets.

View sgnconnects's full-sized avatar

Zakhele Dlamini sgnconnects

View GitHub Profile
@sgnconnects
sgnconnects / setup_ipv6_hacky_router.sh
Created February 9, 2023 04:28 — forked from vi/setup_ipv6_hacky_router.sh
A script to set up IPv6 router advertisment proxy for single peer
#!/bin/bash
set -e
if [ -z "$2" ]; then
echo "Script to set up router advertising proxy for one peer"
echo "Usage: setup_ipv6_hacky_router UPLINK DOWNLIK"
echo "Example: setup_ipv6_hacky_router eth0 wlan0"
exit 1
fi
# Virtual Environment Setup
mkdir /opt/certbot
cd /opt/certbot
git clone https://github.com/certbot/certbot
cd certbot
git checkout v0.22.0
sudo ./certbot-auto --os-packages-only
./tools/venv.sh
source venv/bin/activate
@sgnconnects
sgnconnects / doc.adoc
Created May 10, 2023 20:56 — forked from KrustyHack/doc.adoc
proxmox-ubuntu-cloud-howto

Cloud-Init Support

Cloud-Init is the defacto multi-distribution package that handles early initialization of a virtual machine instance. Using Cloud-Init, one can configure network

@sgnconnects
sgnconnects / microk8s-enable-gpu-1.21.sh
Created May 17, 2023 12:39 — forked from neoaggelos/microk8s-enable-gpu-1.21.sh
Bash script to enable GPU support on MicroK8s 1.21
#!/bin/bash
# The script below documents the steps needed to install the NVIDIA GPU operator on MicroK8s 1.21 (for Ubuntu OS)
# 1. install microk8s and enable required addons
sudo snap install microk8s --classic --channel 1.21
microk8s enable dns
microk8s enable helm3
# 2. install nvidia drivers
@sgnconnects
sgnconnects / cluster.yaml
Created May 17, 2023 12:41 — forked from neoaggelos/cluster.yaml
lxd provider cluster-api
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: test
namespace: default
spec:
controlPlaneRef:
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: MicroK8sControlPlane
name: test-control-plane
@sgnconnects
sgnconnects / 0-pve.sh
Created May 19, 2023 17:54 — forked from sugoidogo/0-pve.sh
customized install proxmox ve on debian - only tested on buster, bullseye
#!/usr/bin/env bash
# wget -qO 0-pve.sh https://gist.github.com/sugoidogo/4684e4659431e17d15be20171160c1f9/raw/ && bash 0-pve.sh
set -e
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none
function download { wget $* || curl -fLO $*; }
function stream { wget -qO- $* || curl -fsSL $*; }
function package { apt $* || dnf $*; }
echo "This script will download and run the installation script in a screen session"
echo "The installation script will download post-installation scripts to $HOME and reboot the system upon successful installation"
@sgnconnects
sgnconnects / README.md
Created May 22, 2023 15:09 — forked from arikfr/README.md
Setting up HTTPS with LetsEncrypt for Redash Docker Deployment
  1. Make sure the domain you picked points at the IP of your Redash server.
  2. Switch to the root user (sudo su).
  3. Create a folder named nginx in /opt/redash.
  4. Create in the nginx folder two additional folders: certs and certs-data.
  5. Create the file /opt/redash/nginx/nginx.conf and place the following in it: (replace example.redashapp.com with your domain name)
    upstream redash {
        server redash:5000;
    }
    
#!/bin/sh
# non-interactive kde installer for alpine
# apk add curl && curl -L https://cutt.ly/alpine_kde | sh
echo "I will make Alpine Linux a Desktop Linux.. ."
## Desktop user
sudo fallocate -l 4G /swapfile
sudo mkswap /swapfile
sudo chmod 600 /swapfile
# "UUID" & create
#SWAP_UUID=`sudo blkid -s UUID /swapfile | grep -Po '[\w*-]*\w'| tail -1`
echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab
sudo swapon -a
@sgnconnects
sgnconnects / VirtEngine Installation
Created June 14, 2023 07:30 — forked from jaeko44/VirtEngine Installation
Install VirtEngine Ubuntu 16.04 & OpenNebula 5.6
Information:
[VirtEngine Website](https://virtengine.com)
[Public Cloud.tc Multi-Provider](https://cloud.tc)
[VirtEngine Installation](https://docs.virtengine.com)
[OpenNebula 5.6 Installation](https://docs.opennebula.org/5.6/deployment/node_installation/kvm_node_installation.html)
# Prep System:
apt-get update