Skip to content

Instantly share code, notes, and snippets.

View rgdev's full-sized avatar
🎯
Focusing

Raphael rgdev

🎯
Focusing
View GitHub Profile
@rgdev
rgdev / dev_signed_cert.sh
Created May 22, 2022 17:59 — forked from dobesv/dev_signed_cert.sh
Script to create (1) a local certificate authority, (2) a host certificate signed by that authority for the hostname of your choice
#!/usr/bin/env bash
#
# Usage: dev_signed_cert.sh HOSTNAME
#
# Creates a CA cert and then generates an SSL certificate signed by that CA for the
# given hostname.
#
# After running this, add the generated dev_cert_ca.cert.pem to the trusted root
# authorities in your browser / client system.
#
@rgdev
rgdev / scrape_data.py
Created April 14, 2020 16:26 — forked from NWPlayer123/scrape_data.py
Animal Crossing New Horizons data scraping (to show fixer algo)
from bcsv_reader import BCSV
from msbt_reader import MSBT
from binascii import hexlify
from os import listdir
import sys, string, codecs
'''reload(sys)
sys.setdefaultencoding('utf8')'''
msg_path = "../message1.1"
bcsv_path = "."
@rgdev
rgdev / generate-nginx-cloudflare-allow.sh
Last active February 24, 2020 17:40 — forked from mkg20001/generate-nginx-cloudflare-allow.sh
A script to generate a config to allow or additionally allow cloudflare addresses for a specific domain
#!/bin/bash
set -e
cf_ips() {
echo "# https://www.cloudflare.com/ips"
for type in v4 v6; do
echo "# IP$type"
curl -s "https://www.cloudflare.com/ips-$type" | sed "s|^|allow |g" | sed "s|\$|;|g"