Skip to content

Instantly share code, notes, and snippets.

View crrapi's full-sized avatar

Christopher Rrapi crrapi

View GitHub Profile
@crrapi
crrapi / docker-compose.yml
Last active July 22, 2022 21:15
Wireguard (wg-easy) with Pi-Hole + cloudflared DNS over HTTPS using docker-compose
version: "3.8"
services:
wg-easy:
environment:
# ⚠️ Change the server's hostname (clients will connect to):
- WG_HOST=change.me.xyz
# ⚠️ Change the Web UI Password:
- PASSWORD=CHANGEMEPLZ
- WG_DEFAULT_DNS=10.8.1.3
@crrapi
crrapi /
Created July 6, 2020 15:33
@crrapi
crrapi / bulletproof-debian-install.sh
Last active May 13, 2020 14:42
From the d.py tag (credit goes to Gorialis)
# Update your package database
(sudo) apt-get update
# Install build and runtime dependencies
(sudo) apt-get install ca-certificates libexpat1 libffi6 libreadline7 libsqlite3-0 libssl1.1 dpkg-dev gcc libbz2-dev libc6-dev libexpat1-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tcl-dev tk-dev wget xz-utils zlib1g-dev gnupg dirmngr
# Download the Python source code & cryptographic signature
wget https://www.python.org/ftp/python/3.7.5/Python-3.7.5.tar.xz
wget https://www.python.org/ftp/python/3.7.5/Python-3.7.5.tar.xz.asc
# Ensure the signing key is available on this machine
0.0.0.0 adclick.g.doublecklick.net
0.0.0.0 adeventtracker.spotify.com
0.0.0.0 ads-fa.spotify.com
0.0.0.0 analytics.spotify.com
0.0.0.0 audio2.spotify.com
0.0.0.0 b.scorecardresearch.com
0.0.0.0 bounceexchange.com
0.0.0.0 bs.serving-sys.com
0.0.0.0 content.bitsontherun.com
0.0.0.0 core.insightexpressai.com
@crrapi
crrapi / nintendont-update
Last active August 23, 2020 16:23
(Updated from wiiubrew.org, originally nus.cdn.c.shop.nintendowifi.net nus.cdn.shop.wii.com nus.cdn.wup.shop.nintendo.net nus.wup.shop.nintendo.net nus.c.shop.nintendowifi.net c.shop.nintendowifi.net cbvc.cdn.nintendo.net cbvc.nintendo.net)
nus.cdn.wup.shop.nintendo.net
nus.wup.shop.nintendo.net
a23-65-181-75.deploy.static.akamaitechnologies.com
a96-17-161-145.deploy.akamaitechnologies.com
a184-50-229-158.deploy.static.akamaitechnologies.com
a184-50-229-137.deploy.static.akamaitechnologies.com
nus.c.shop.nintendowifi.net
nus.cdn.c.shop.nintendowifi.net
nus.cdn.shop.wii.com
@crrapi
crrapi / webserver_and_bot.py
Last active December 7, 2023 16:47
(Don't use if you can) Run a Flask app and a discord.py bot in one program using threads.
# Note: You really should not use this.
# You can easily convert your app
# to use Quart by using async+await
# and then use loop.create_task(bot.start(...))
# before using app.run.
from threading import Thread
from flask import Flask
from functools import partial
from discord.ext import commands