Skip to content

Instantly share code, notes, and snippets.

View haywardgg's full-sized avatar
🏠
Working from home

Lee Hayward haywardgg

🏠
Working from home
  • TheCloud.org.uk
  • United Kingdom
View GitHub Profile
@haywardgg
haywardgg / recycle.py
Created May 21, 2023 14:04
Python Script that Recyles Old Posts - Bludit
import requests
import datetime
# Bludit API endpoint and authentication token
api_url = 'http://your-bludit-site.com/bl-api'
auth_token = 'your-authentication-token'
# Get the list of pages
response = requests.get(f'{api_url}/pages', headers={'Authorization': auth_token})
pages = response.json()
@haywardgg
haywardgg / varietyscore.php
Last active March 31, 2023 15:24
What's your VARIETY gamer score? - A fun script for Gamers and Streamers.
<!DOCTYPE html> <!--
Copyright (c) 2023, Hayward @ PCGamers.win
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this code and associated documentation files (the "Code"), to deal
in the Code without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Code, and to permit persons to whom the Code is
furnished to do so, subject to the following conditions:
@haywardgg
haywardgg / cloud flare ip range to ufw
Last active May 25, 2021 13:55
Add CloudFlare IP Range to UFW using Bash!
At the command prompt type:
wget https://www.cloudflare.com/ips-v4
wget https://www.cloudflare.com/ips-v6
You should now have two files called ips-v4 and ips-v6
Next:
Create a file, call it whatever you like (i.e addcloudflare.s)