Skip to content

Instantly share code, notes, and snippets.

View ar4s-eth's full-sized avatar

Ashley Barr ar4s-eth

View GitHub Profile
@ar4s-eth
ar4s-eth / Proxmox_setup.sh
Last active August 15, 2023 18:19
macOSX86
#!/bin/bash
# Modified script from: https://gist.github.com/ilude/32aec45964bc1207810f7e6e49544064
# Copy and paste oneliner below to run
# curl -s https://gist.githubusercontent.com/Rockz1152/16c9fd2bd0bacdceff2ff058bfba568c/raw/proxmox_setup.sh | /bin/bash -s
# Check if Proxmox is installed
if [ ! -f /usr/bin/pvecm ]; then
echo "Proxmox is not installed"
exit 1
fi
@ar4s-eth
ar4s-eth / proxmox-proxy.md
Created August 15, 2023 17:49 — forked from caraar12345/proxmox-proxy.md
Running Proxmox behind a single IP address

I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables.

What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding.

Network configuration

Here’s how it’s done:

  • Create a virtual interface that serves as the gateway for your VMs:
@ar4s-eth
ar4s-eth / proxmox-proxy
Created August 15, 2023 17:48 — forked from basoro/proxmox-proxy
Running Proxmox behind a single IP address
I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables.
What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding.
Network configuration
Here’s how it’s done:
Create a virtual interface that serves as the gateway for your VMs:
@ar4s-eth
ar4s-eth / docker.md
Created July 17, 2023 04:29 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@ar4s-eth
ar4s-eth / launch.sh
Created January 21, 2023 18:24 — forked from salman-abedin/launch.sh
XDG Alternative
#!/bin/sh
#
# Launches files based on their mimetypes
# Usage: launch [FILE...]
# Dependencies: file
case $(file --mime-type "$@" -bL) in
# Check for the mimetype of your file (This is POSIX regex)
video/* | audio/* | image/gif)
# Launch using your favorite application
@ar4s-eth
ar4s-eth / README.md
Created November 30, 2022 21:20 — forked from RulerOf/README.md
Dynamic DNS Script I used for Google Domains with DD-WRT

DD-WRT Dynamic DNS for Google Domains

Create a Synthetic Record for Dynamic DNS. Copy the script and substitute your synthetic record's username, password, and FQDN in the config section.

Go to Administration > Commands tab and paste the code into the Command box, then click Save Custom Script.

Go to Administration > Management tab. Scroll down to the Cron section, and toggle Cron: Enable

In the Additional Cron Scripts section, put:

@ar4s-eth
ar4s-eth / npminstall.sh
Created May 8, 2022 06:48 — forked from note/npminstall.sh
Automate creating nix-shell environments with node2nix
#!/bin/bash
# Exit on any failure
set -e
if [ "$#" -lt 1 ]; then
echo "Expected at least one parameter (npm package name)"
exit 1
fi