Skip to content

Instantly share code, notes, and snippets.

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

Kage GitKageHub

🏠
Working from home
View GitHub Profile
@GitKageHub
GitKageHub / sys.php
Last active February 15, 2023 19:36
This PHP script displays system information and provides buttons to create a file and restart the web server with appropriate checks. This is for educational purposes.
<!DOCTYPE html>
<html>
<head>
<title>System Information and Control Panel</title>
<meta charset="UTF-8">
</head>
<body>
<h1>System Information</h1>
<table>
<tr>
@GitKageHub
GitKageHub / tail.ps1
Created March 25, 2020 20:01
Powershell equivalent of tail -f
Get-Content $FILENAME -Wait -Tail 20
@GitKageHub
GitKageHub / cloudflare-update-record.sh
Created July 15, 2019 20:43 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
#!/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 April 26, 2016 13:34
Bash Script Template Generator
#!/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.