Skip to content

Instantly share code, notes, and snippets.

View kiraitachi's full-sized avatar
🤖
From Z3R0 to H3R0

Adel de la Llave kiraitachi

🤖
From Z3R0 to H3R0
View GitHub Profile
@kiraitachi
kiraitachi / SyncForkMaster.md
Last active March 12, 2019 22:36
Sync Forks with Master Repo

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@Pandry
Pandry / Firewalld GeoIP firewall script
Last active July 3, 2024 13:07
Block countries IPs via Firewalld
#!/bin/bash
##
# Name: GeoIP Firewall script
# Author: Pandry
# Version: 0.1.1
# Description: This is a simple script that will set up a GeoIP firewall blocking all the zones excecpt the specified ones
# it is possible to add the whitelisted zones @ line 47
# Additional notes: Usage of [iprange](https://github.com/firehol/iprange) is suggested
# for best performances