Skip to content

Instantly share code, notes, and snippets.

View sergeiwaigant's full-sized avatar
🤙

Sergei Waigant sergeiwaigant

🤙
View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@sergeiwaigant
sergeiwaigant / bash_strict_mode.md
Created January 17, 2024 21:51 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@sergeiwaigant
sergeiwaigant / iptables.sh
Created January 16, 2024 13:13 — forked from danibram/iptables.sh
Redirect 443,80 to 8443,8080 on ubuntu with persistence
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8443
sudo sh -c "iptables-save > /etc/iptables.rules"
sudo apt-get install iptables-persistent
#allows localhost traffic to connect to 443 from 8443
sudo iptables -t nat -A OUTPUT -o lo -p tcp --dport 443 -j REDIRECT --to-port 8443
@sergeiwaigant
sergeiwaigant / openssl_commands.md
Created January 15, 2024 21:09 — forked from Hakky54/openssl_commands.md
Some list of openssl commands for check and verify your keys

OpenSSL 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl