Skip to content

Instantly share code, notes, and snippets.

View dw5's full-sized avatar
πŸ‡¨πŸ‡­
Making better tasting swiss cheese for mail

dw5

πŸ‡¨πŸ‡­
Making better tasting swiss cheese for mail
  • ‍
  • 10:37 (UTC +03:00)
  • X @0x8616
View GitHub Profile
@dw5
dw5 / GeoIP Block NGINX Ubuntu 20.04.md
Created January 29, 2023 15:14 — forked from dunderrrrrr/GeoIP Block NGINX Ubuntu 20.04.md
Allow or block GeoIP in Nginx on Ubuntu 20.04

GeoIP Block NGINX Ubuntu 20.04

Block or filter IPs based on location in Nginx (tested on 1.18.0) on Ubuntu 20.04.

Install Nginx modules

To make use of the geographical filtering, we must first install the Nginx GeoIP module as well as the GeoIP database containing the mappings between visitors’ IP addresses and their respective countries. To do so, let’s execute:

$ sudo apt install libnginx-mod-http-geoip geoip-database
1 sudo apt update && sudo apt dist-upgrade
2 git clone
3 sudo apt install git
4 sudo apt install neofetch screenfetch
7 git clone https://github.com/keybase/client
8 cd client/packaging/linux
9 ls
10 bash build_binaries.sh
11 KEYBASE_BUILD_ARM_ONLY=1
12 bash build_binaries.sh
@dw5
dw5 / private_fork.md
Created August 7, 2023 17:12 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@dw5
dw5 / cloudflare-dns-bulk-add-update-remove.ps1
Created July 21, 2024 09:39
cloudflare dns bulk add update remove
# Cloudflare API Token
$apiToken = ""
#Region Token Test
## This block verifies that your API key is valid.
## If not, the script will terminate.
$headers = @{
"Authorization" = "Bearer $($apiToken)"
"Content-Type" = "application/json"
}
"announcement_last_id": 13,
"hide_create_button": false,
"hide_crowdfunding_box": true,
"hide_fullscreen_ads": false,
"hide_player_flyout_lock_screen": true,
"playback_speed_default": 1.75,
"start_page": "open.subscriptions",
"swipe_brightness": false,
"swipe_brightness_value": 0.83,
"swipe_save_and_restore_brightness": false,