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
  • Zurich, CH
  • 09:44 (UTC +02:00)
  • X @0x8616
View GitHub Profile
"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,
@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"
}
@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

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 / 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
@dw5
dw5 / db-os.txt
Last active November 10, 2023 15:15
windows
linux
macos / darwin
haikuos / beos
riscos / custom
Atlas-OS / winnt
ReviOS / winnt
reactos / winnt foss
Redox (https://redox-os.org/) / rust, unix like - custom
serenityos / unix like - custom
# NGiNX reverse proxy configuration for Jellyfin
#
# Use this configuration on NGiNX running on the same server as your Jellyfin instance. Replace the values as needed.
# LetsEncrypt is enabled and configured using `certbot`: install it via apt on Debian (`sudo apt install certbot`) or
# your package manager of choice. To start, make only the first section (port 80) active, then once that configuration
# is active, run Certbot for the first time to request your cert. Then, add the second section (port 443) and reload.
# With this config left in place, Certbot's automatic renewal will work and automatically replace the cert and
# reload NGiNX as needed, without interrupting your Jellyfin instance.
#
# Certbot request command:
@dw5
dw5 / phpdangerousfuncs.md
Created August 17, 2021 20:39 — forked from mccabe615/phpdangerousfuncs.md
Dangerous PHP Functions

Command Execution

exec           - Returns last line of commands output
passthru       - Passes commands output directly to the browser
system         - Passes commands output directly to the browser and returns last line
shell_exec     - Returns commands output
\`\` (backticks) - Same as shell_exec()
popen          - Opens read or write pipe to process of a command
proc_open      - Similar to popen() but greater degree of control
pcntl_exec - Executes a program
@dw5
dw5 / disposable-email-provider-domains
Created August 14, 2021 13:21
List of disposable email provider domains
0815.ru
0wnd.net
0wnd.org
10minutemail.co.za
10minutemail.com
123-m.com
1fsdfdsfsdf.tk
1pad.de
20minutemail.com
21cn.com
<table class="table table-remaining">
<tbody><tr>
<td>Iš viso mokėti:</td>
<td align="right"><div class="remaining_text"><span class="remaining">15.71 €</span></div><button onclick="window.location=&quot;/mokejimai/&quot;;" class="btn btn-mezon">Peržiūrėti/Mokėti</button></td>
</tr>
</tbody></table>