Skip to content

Instantly share code, notes, and snippets.

@carlansell94
carlansell94 / .ebay_digital_signature.py
Created December 11, 2022 18:30
Functions to create and use an eBay digital signature in Python
#!/usr/bin/env python3
from base64 import b64encode
from urllib.parse import urlparse
import sys
import time
import requests
from Crypto.PublicKey import ECC
from Crypto.Signature import eddsa
from Crypto.Hash import SHA256
@carlansell94
carlansell94 / wii_fit_u_parser.py
Created October 18, 2023 15:55
Wii Fit U Parser
#!/usr/bin/python
#
# Based on the Wii Fit parser found here: https://gist.github.com/tewalds/86170c18ecf6f211a9bc
#
# Extract data from a Wii Fit U .dat file to a CSV.
# Add the -p flag to include user name, date of birth and current height to the output.
# File paths can be passed to the script. If none are passed, 'Step0.dat' will be used.
#
#
# 0xD = Name start
@carlansell94
carlansell94 / wordpress_template_with_backup.yml
Created November 19, 2023 15:50
A docker stack template to create a Wordpress/mariadb stack with added SSH backup capability
# A docker stack template to create a Wordpress/mariadb stack with added SSH backup capability.
#
# Backups are managed by offen/docker-volume-backup. Check the documentation for more options.
# Backups are configured to run at 23:00 every Sunday, change the BACKUP_CRON_EXPRESSION to change the backup frequency.
# This particular file is set to send backups to an external server using SSH.
#
# Required environment variables (should be self-explanatory):
# MYSQL_USER
# MYSQL_PASSWORD
# MYSQL_DATABASE
@carlansell94
carlansell94 / kofi-sync.php
Created March 21, 2024 23:30
A PHP script to parse Ko-Fi webhook data and store it in a database
<?php
//
// The KOFI_TOKEN value must match the verification token on your Ko-Fi account
// Database settings should be self explanatory
//
const KOFI_TOKEN = '';
const DB_HOST = '';
const DB_USER = '';