Skip to content

Instantly share code, notes, and snippets.

View ChrisG661's full-sized avatar
🏠
localhost

Christopher G ChrisG661

🏠
localhost
View GitHub Profile
@ChrisG661
ChrisG661 / cf-ddns.rsc
Last active September 11, 2024 11:18
Mikrotik RouterOS Cloudflare Dynamic DNS Script
# Cloudflare Dynamic DNS update script
# Required policy: read, write, test, policy
# Add this script to scheduler
# Install DigiCert root CA or disable check-certificate
# Configuration ---------------------------------------------------------------------
:local TOKEN "__APITOKEN__"
:local ZONEID "__ZONEIDENTIFIER__"
:local RECORDID "__RECORDIDENTIFIER__"
:local RECORDNAME "__DNSRECORD__"
@ChrisG661
ChrisG661 / nokia-router-cfg-tool.py
Created March 18, 2021 05:48 — forked from thedroidgeek/nokia-router-cfg-tool.py
Nokia/Alcatel-Lucent router backup configuration tool
#!/usr/bin/env python3
#
# Nokia/Alcatel-Lucent router backup configuration tool
#
# Features:
# - Unpack/repack .cfg files generated from the backup and restore functionnality
# in order to modify the full router configuration
# - Decrypt/encrypt the passwords/secret values present in the configuration
@ChrisG661
ChrisG661 / UpdateAddressList.rsc
Last active April 13, 2023 05:38
MikroTik Address List Updater
## Generic IP address list input
## Based on a script written by Sam Norris, ChangeIP.com 2008
## Edited by ChrisG661, 2021
## Permissions: ftp, read, write, policy, test
# Check if file is not empty
:if ([/file get [/file find name=$filename] size] > 0) do={
# Remove existing addresses from the current address list
# Disabled as script will use same list for different sourcefiles
#/ip firewall address-list remove [/ip firewall address-list find list=$listname]
@ChrisG661
ChrisG661 / ZoomHosts.rsc
Last active April 13, 2023 05:37
MikroTik Zoom Hosts address list
## Made by ChrisG661, 2021
## github.com/ChrisG661
# Address list name
:local listname "zoom-hosts"
# Zoom IP range URLs
:local sourceUrl {"https://assets.zoom.us/docs/ipranges/Zoom.txt"; \
"https://assets.zoom.us/docs/ipranges/ZoomMeetings.txt"; \
"https://assets.zoom.us/docs/ipranges/ZoomCRC.txt"; \
"https://assets.zoom.us/docs/ipranges/ZoomPhone.txt"}
@ChrisG661
ChrisG661 / i8kmon.py
Last active March 17, 2024 03:05 — forked from goophile/i8kmon.py
i8kmon/i8kfan for Dell Optiplex 7050 SFF desktop
#!/usr/bin/python3
import re
import subprocess
import time
# On my Dell Precision desktop, the `i8kmon` controls the fan level according to the ambient temperature, not the CPU temperature.
# Maybe the i8kutils only works for laptop? I don't know. Luckily, the `i8kfan` CAN control the motherboard fan and CPU fan.
# It's usage is `i8kfan - -`, the first number is for motherboard, the second for CPU. You should test the sequence first.