Skip to content

Instantly share code, notes, and snippets.

View alkar's full-sized avatar

Dimitrios Karagiannis alkar

View GitHub Profile
@aaronNGi
aaronNGi / newscript.sh
Created April 28, 2020 20:38
Boilerplate for new POSIX shell scripts
#!/bin/sh
prog_name=${0##*/}
version=1.0
version_text="Boilerplate for new scripts v$version"
options="h o: q v V"
help_text="Usage: $prog_name [-o <text>] [-hqvV] [<file>]...
Boilerplate for new scripts
@mtthlm
mtthlm / arch_linux_fde.md
Created August 28, 2015 21:42
Arch Linux FDE

Arch Linux FDE via LVM on LUKS (Including /boot)

Step 1 (Optional): Securely wipe your disk

dd if=/dev/zero of=/dev/sda iflag=nocache oflag=direct bs=4096

Note: More research desired for proper way to wipe disk.

Step 2: Setup SSH

@alkar
alkar / VyOS on EC2
Created June 6, 2014 15:04
Setting up a VyOS EC2 instance to connect two VPCs
interfaces {
vti vti0 {
address <CGW_INTERNAL_IP_A>/30
description "VPC Tunnel A"
mtu 1436
}
vti vti1 {
address <CGW_INTERNAL_IP_B>/30
description "VPC Tunnel B"
mtu 1436
@j3tm0t0
j3tm0t0 / config.boot
Last active December 1, 2017 21:59
Vyatta static routing with redundancy VPN configuration for Amazon VPC
interfaces {
ethernet eth0 {
address x.x.x.50/30
duplex auto
hw-id 00:0c:29:8e:f1:58
smp_affinity auto
speed auto
}
ethernet eth2 {
address 172.31.1.50/16