Skip to content

Instantly share code, notes, and snippets.

@anugupta
anugupta / proxmox-proxy
Created May 12, 2023 13:32 — 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:
<?xml version="1.0" encoding="UTF-8"?>
<templateSet group="WordPress">
<template name="aa" value="add_action( '$hook$', '$callback$' );&#10;$END$" description="add_action" toReformat="false" toShortenFQNames="true">
<variable name="hook" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="callback" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
### Keybase proof
I hereby claim:
* I am anugupta on github.
* I am anugupta (https://keybase.io/anugupta) on keybase.
* I have a public key ASBk0JbzncHe9RuEHO6MYxiL2kKn0RECjFnGX49GhMQXkQo
To claim this, I am signing this object:
@anugupta
anugupta / osx-for-hackers.sh
Created July 2, 2016 14:28 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@anugupta
anugupta / gist:257a95f59d6fdc691f47
Last active August 29, 2015 14:15
My current terminal prompt - with timestamp
PS1="\[\033[01;32m\]\u\[\033[01;34m\]::\[\033[01;31m\]\h \D{%T} \[\033[00;34m\]{ \[\033[01;34m\]\w \[\033[00;34m\]}\[\033[01;32m\] \n-> \[\033[00m\]"
export PS1=$PS1