Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Kage GitKageHub

🏠
Working from home
View GitHub Profile
@GitKageHub
GitKageHub / tail.ps1
Created Mar 25, 2020
Powershell equivalent of tail -f
View tail.ps1
Get-Content $FILENAME -Wait -Tail 20
@GitKageHub
GitKageHub / cloudflare-update-record.sh
Created Jul 15, 2019 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
View cloudflare-update-record.sh
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)
@GitKageHub
GitKageHub / new_script.sh
Created Apr 26, 2016
Bash Script Template Generator
View new_script.sh
#!/bin/bash
# ---------------------------------------------------------------------------
# new_script - Bash shell script template generator
# Copyright 2012, William Shotts <bshotts@users.sourceforge.net>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.