Skip to content

Instantly share code, notes, and snippets.

@jperkin
jperkin / osx-install.md
Last active January 5, 2022 21:01
macOS desktop setup

Install

Always fresh install from USB media on newly formatted disk, currently APFS, case sensitive, full disk.

Disable location services, application feedback, etc. during install. Don't set up Apple ID yet.

Desktop Settings

Enable 4 additional desktops (Ctrl-Up, click + on right)

@thomasfr
thomasfr / iptables.sh
Last active October 17, 2024 07:55
iptable rules to allow outgoing DNS lookups, outgoing icmp (ping) requests, outgoing connections to configured package servers, outgoing connections to all ips on port 22, all incoming connections to port 22, 80 and 443 and everything on localhost
#!/bin/bash
IPT="/sbin/iptables"
# Server IP
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')"
# Your DNS servers you use: cat /etc/resolv.conf
DNS_SERVER="8.8.4.4 8.8.8.8"
# Allow connections to this package servers
@kimus
kimus / ufw.md
Created March 2, 2014 22:46
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.