Skip to content

Instantly share code, notes, and snippets.

Avatar

BradChesney79 bradchesney79

View GitHub Profile
@bradchesney79
bradchesney79 / Dockerfile
Created May 24, 2021 — forked from lsena/Dockerfile
Python Dockerfile
View 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 Mar 11, 2021 — forked from waleedahmad/post_install.sh
Ubuntu post installation script for installing software of your choice.
View post_install.sh
#!/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 Dec 4, 2016 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
View iptables_rules.sh
# 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