Skip to content

Instantly share code, notes, and snippets.

@ssgtcookie
ssgtcookie / cloudflare-api-synology.sh
Last active October 13, 2022 19:31
Batch: Cloudflare APIv4 dynamic update A-record script. Created for a Synology NAS hosted Wordpress website.
# set shell variables with your contents
email="[email protected]"
authKey=""
zoneid=""
dnsrecord=""
domain="example.com"
# Collect current IP
current_ip=$(curl --silent --show-error --fail ipecho.net/plain) || exit
@ssgtcookie
ssgtcookie / .gitlab-ci.yml
Created October 25, 2017 16:39
Google App Engine - Gitlab CI deployment
image: google/cloud-sdk:latest
stages:
- deploy
deploy:
stage: deploy
environment: Production
only:
- master
@ssgtcookie
ssgtcookie / splunk_ipv6.sh
Created August 27, 2018 12:00
Splunk bash installation script for ipv6 only
#!/bin/bash
# Download and install Splunk
wget https://download.splunk.com/products/splunk/releases/7.1.2/linux/splunk-7.1.2-a0c72a66db66-linux-2.6-amd64.deb
sudo dpkg -i splunk-7.1.2-a0c72a66db66-linux-2.6-amd64.deb
sudo /opt/splunk/bin/splunk enable boot-start
sudo service splunk start
# Configure Splunk to work with ipv6 only
echo 'listenOnIPv6=only' >> /opt/splunk/etc/system/local/server.conf
@ssgtcookie
ssgtcookie / DiscordLeaveAndRejoinServer.ahk
Last active October 20, 2018 14:08
Can be used to reset roles assigned to you. Works with the discord.exe client.
^+\::
DiscordServer = https://discord.gg/z8qBSAP
CountToGoDownWhenServerIsRejoined = 7
; Get current mouse position and activate discord
MouseGetPos, xcur, ycur
WinActivate, ahk_exe Discord.exe
; Leave server