Skip to content

Instantly share code, notes, and snippets.

View bradchesney79's full-sized avatar

BradChesney79 bradchesney79

View GitHub Profile
@bradchesney79
bradchesney79 / Dockerfile
Created May 24, 2021 12:07 — forked from lsena/Dockerfile
Python Dockerfile
# using ubuntu LTS version
FROM ubuntu:20.04 AS builder-image
# avoid stuck build due to user prompt
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install --no-install-recommends -y python3.9 python3.9-dev python3.9-venv python3-pip python3-wheel build-essential && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# create and activate virtual environment
@bradchesney79
bradchesney79 / post_install.sh
Last active March 11, 2021 04:48 — forked from waleedahmad/post_install.sh
Ubuntu post installation script for installing software of your choice.
#!/bin/bash
#Become master of the everything within this host
[ `whoami` = root ] || exec su -c $0 root
#Update and Upgrade
echo "Updating and Upgrading"
apt-get update && sudo apt-get upgrade -y
sudo apt-get install dialog
@bradchesney79
bradchesney79 / iptables_rules.sh
Created December 4, 2016 23:25 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP