Skip to content

Instantly share code, notes, and snippets.

View brett-schneider's full-sized avatar

brett-schneider

View GitHub Profile
@brett-schneider
brett-schneider / network-namespace-demo.sh
Created November 23, 2022 19:02 — forked from agentzh/network-namespace-demo.sh
Create 2 network namespaces and bridge them and the default namespace together so that they can directly talk to each other via static IP addresses; also enable Internet access in all the namespaces via NAT.
#!/usr/bin/env bash
set -x
main_if=ens33
ping_count=1
echo 1 > /proc/sys/net/ipv4/ip_forward || exit 1
ip netns del ns1 > /dev/null 2>&1
@avoidik
avoidik / README.md
Created January 13, 2020 07:37
How to deploy Streisand on AWS

Generate ssh-key

ssh-keygen -t rsa -b 2048 -C "streisand@stack" -f id_rsa_streisand -q -N ""
aws ec2 import-key-pair --key-name 'streisand' --public-key-material file://./id_rsa_streisand.pub

Prepare prerequisites

@CraftyCanine
CraftyCanine / episodesplit.py
Last active July 7, 2023 08:57
episodesplit.py - Python script that combines functionality from ffmpeg and mkvmerge to identify and split multi-episode TV shows into separate files
#!/usr/bin/env python
#----------------------------------------------------------
#
# Episode Split
# CraftyCanine
#
# Description
#
# This script is meant to make the process of splitting