Skip to content

Instantly share code, notes, and snippets.

@GJCav
GJCav / github.user.css
Created March 9, 2024 11:57
Typora Theme : Auto numbering headers
/* page break */
.new-page {
page-break-before: always;
}
@media print, (overflow-block: paged) or (overflow-block: optional-paged) {
/* Move top-level headings to a new page on the right-hand side: */
h1 {
@GJCav
GJCav / imstitch.py
Last active April 11, 2023 15:23
use SIFT to match mutiple images and stitch them
SEE: https://github.com/GJCav/imstitch
THIS FILE GIST IS DEPRECATED!!!
@GJCav
GJCav / cloudflare_ddns.py
Created June 30, 2022 12:38
DDNS script for cloudflare
import socket as S
import requests
ZONE_ID = "zone_id_here"
TOKEN = "token_here"
DNS_NAME = "name.domain.ltd"
##################################################################
#
# A bunch of helper functions
@GJCav
GJCav / switchdns.py
Created June 24, 2022 15:16
dns_switcher: quickly switch dns, written with python
CONFIG_FILE = "dnsconfig.json"
# BACKUP_FILE = "dnsbackup.json"
""" config file template
[
{
"name": "default",
"v4": null,
"v6": null
},
{