Skip to content

Instantly share code, notes, and snippets.

View sgnconnects's full-sized avatar

Zakhele Dlamini sgnconnects

View GitHub Profile
@sgnconnects
sgnconnects / virtengine-waldur.sh
Created June 14, 2023 11:23 — forked from jaeko44/virtengine-waldur.sh
VirtEngine Waldur Installation Script
#!/bin/bash
yum update -y
yum install -y https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
yum install -y postgresql96-server
/usr/pgsql-9.6/bin/postgresql96-setup initdb
systemctl start postgresql-9.6
@sgnconnects
sgnconnects / prouting.sh
Created June 14, 2023 22:19 — forked from oskar456/prouting.sh
A simple script to set up policy routing on linux. It's stateless and detects everything automatically, so all you have to do is to run it after every network subsystem change. I run it in postup and postdown hooks in Gentoo network configuration file.
#!/bin/bash
IP="/bin/ip"
function prepare_rt_table() {
local rttables=/etc/iproute2/rt_tables
local iface=$1
[[ "${iface}" = 'lo' ]] && return
if ! egrep -q "\s${iface}\s*"\$ $rttables; then
idx=$(wc -l <$rttables)
@sgnconnects
sgnconnects / prouting.sh
Created June 14, 2023 22:19 — forked from oskar456/prouting.sh
A simple script to set up policy routing on linux. It's stateless and detects everything automatically, so all you have to do is to run it after every network subsystem change. I run it in postup and postdown hooks in Gentoo network configuration file.
#!/bin/bash
IP="/bin/ip"
function prepare_rt_table() {
local rttables=/etc/iproute2/rt_tables
local iface=$1
[[ "${iface}" = 'lo' ]] && return
if ! egrep -q "\s${iface}\s*"\$ $rttables; then
idx=$(wc -l <$rttables)
@sgnconnects
sgnconnects / xavier-lxc-centos7.md
Created June 17, 2023 08:13 — forked from fwyzard/xavier-lxc-centos7.md
Install CentOS 7 in an LXC/LXD container on an NVIDIA Xavier

Install and configure LXD

Install LXD

sudo snap install lxd

Perform the initial configuration

sudo lxd init
@sgnconnects
sgnconnects / setup.sh
Created June 17, 2023 08:20 — forked from jescalan/setup.sh
Environment Setup
#!/bin/sh
# --------------------------------------------------------------------------------------
# Sets up your computer with the tools you need to develop in a modern ruby environment.
# --------------------------------------------------------------------------------------
# This install includes:
# - homebrew
# - rbenv
# - ruby-build
# - ruby 1.9.3-p125
@sgnconnects
sgnconnects / install-minishift-ubuntu.md
Created June 17, 2023 12:04 — forked from mehdihasan/install-minishift-ubuntu.md
minishft installationin ubuntu

Install minishift in Ubuntu

OS: Ubuntu 19.10

Install libvirt and qemu-kvm on the system

sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system
@sgnconnects
sgnconnects / README.md
Created June 18, 2023 00:20 — forked from horosin/README.md
Chrome Remote Desktop on Debian Server

Chrome Remote Desktop on Debian/Ubuntu Server

Get a remote connection to your cloud server! This utility script by default installs XFCE, Chrome and Chrome Remote Desktop.

Based on this guide, made ready to install with one command and use xfce by default.

Steps:

  1. Install requirements (please check if the script is safe before you execute this command!)
#!/bin/bash
# <UDF name="ssh_key" Label="Paste in your public SSH key" default="" example="" optional="false" />
# root ssh keys
mkdir /root/.ssh
echo $SSH_KEY >> /root/.ssh/authorized_keys
chmod 0700 /root/.ssh
# update to latest
@sgnconnects
sgnconnects / external-ip-services.sh
Created July 7, 2023 16:53 — forked from styblope/external-ip-services.sh
Services routing using external IPs
# https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
# If there are external IPs that route to one or more cluster nodes, Kubernetes services can be exposed on those externalIPs.
# Traffic that ingresses into the cluster with the external IP (as destination IP), on the service port, will be routed to
# one of the service endpoints.
# Create test app pods
cat <<EOF | kubectl create -f -
apiVersion: v1
kind: Pod
metadata:

Hello Pi

This is a writedown of how I installed my raspberry pi(s).

The base is a Proxmox, so I don't have to worry about reformat the SD card every time I wanna try out something new, as I can start VMs and LXC containers, as well as Docker containers once it's configured properly.

Note: Those files are versioned, so you can always look what changed from time to time.

Topics

  • Pimox