Skip to content

Instantly share code, notes, and snippets.

View SystemJargon's full-sized avatar

SystemJargon SystemJargon

View GitHub Profile
@SystemJargon
SystemJargon / example_proxy.pac
Created April 20, 2024 06:19
Example proxy.pac configuration file
// This is just an example proxy.pac and is NOT to be used in production without changes to suit your environment.
//
// Some references about Proxy configuration below.
// https://wiki.squid-cache.org/SquidFaq/ConfiguringBrowsers
// https://learn.microsoft.com/en-us/troubleshoot/developer/browsers/connectivity-navigation/optimize-pac-performance
function FindProxyForURL(url, host) {
/* Normalize the URL for pattern matching */
url = url.toLowerCase();
@SystemJargon
SystemJargon / nz_radio.m3u
Created April 20, 2024 05:52
M3U Playlist containing some New Zealand radio station streams.
#EXTM3U
#RADIOBROWSERUUID:a25700ef-e952-4b73-8b4e-b92d938cb020
#EXTINF:1, Newstalk ZB Auckland
https://ais-nzme.streamguys1.com/nz_002_aac
#RADIOBROWSERUUID:ce5e5e45-7b40-4aa8-9c1c-a9be0331b2ff
#EXTINF:1, Flava Auckland 95.8 FM
https://ais-nzme.streamguys1.com/nz_010_aac
#RADIOBROWSERUUID:9e220835-ca65-4570-94f6-f31f70d6542f
@SystemJargon
SystemJargon / udm_free_diskspace.sh
Created January 28, 2024 08:34
free up space on Unifi UDM-PRO when it has low disk space due to the pool directory filling up with 1GB .ubv files
## free up space on Unifi UDM-PRO when it has low disk space due to the pool directory filling up with 1GB .ubv files
## largest 20 files in /volume1
# du -a /volume1 | sort -n -r | head -n 20
rm /volume1/.srv/unifi-protect/video/pool/*.ubv
@SystemJargon
SystemJargon / Microsoft.PowerShell_profile.ps1
Created November 6, 2023 08:25
Simple Strap your Powershell profile via OneDrive
# profile-load
$PROFILE = "$env:onedrive\Custom.PowerShell_profile.ps1"
& $profile
sudo apt install docker.io docker-compose -y
mkdir docker-run && cd docker-run
wget https://gist.githubusercontent.com/SystemJargon/dcffbd115d7202df79f5cdfec3ae4eac/raw/e12467952a1eb1cf0edeba929b5e4bdc90b6be49/docker-compose.yml
sudo docker-compose up -d
@SystemJargon
SystemJargon / docker-compose.yml
Last active November 3, 2023 00:04
My docker-compose.yml file for portainer
version: '3.7'
services:
portainer:
image: portainer/portainer-ce
restart: unless-stopped
volumes:
- "./portainer/data:/data"
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
@SystemJargon
SystemJargon / unifi-casting-firewall-rules.md
Created October 8, 2023 04:09
Basic Setup of IP/Ports Groups and Firewall Rules needed for Casting in Unifi OS Network

unifi-casting-firewall-rules.md

Create 3 Groups under Settings > profiles > IP Groups

Create 4 groups

  • IPv4 Address Group
  • Name: RFC1918
  • Address values: 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8
@SystemJargon
SystemJargon / autounattend.xml
Created May 28, 2023 04:28
autounattend.xml for Windows installation (en-NZ region/language). Is AutoPilot compatible. Will wipe disk0 and use max space possible on partition4 for Windows
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>1409:00000409</InputLocale>
<SystemLocale>en-NZ</SystemLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>en-NZ</UserLocale>
<SetupUILanguage>
Code Company Price Change Volume Value Captilisation
ACE Ascension Capital Limited $0.055 $0.000 / 0.00% 0 $0.00 $1,053,186
AFC AFC Group Holdings Limited $0.001 $0.000 / 0.00% 0 $0.00 $3,664,216
AFI Australian Foundation Investment Company Limited $8.180 $0.000 / 0.00% 0 $0.00 $10,107,411,338
AFT AFT Pharmaceuticals Limited $3.790 $0.000 / 0.00% 0 $0.00 $397,443,125
AGG Smartshares Global Aggregate Bond ETF $1.158 $0.000 / 0.00% 2,439,837 $2,813,132.06 $163,123,138
AGL Accordant Group Limited $1.820 $0.000 / 0.00% 0 $0.00 $61,531,020
AIA Auckland International Airport Limited $8.310 $0.000 / 0.00% 0 $0.00 $12,239,142,070
AIR Air New Zealand Limited (NS) $0.770 $0.000 / 0.00% 0 $0.00 $2,593,691,202
AKL Auckland Real Estate Trust $0.930 $0.000 / 0.00% 0 $0.00 $74,718,200
@SystemJargon
SystemJargon / NZX-Jan10-2023.csv
Created January 10, 2023 03:02
NZX/NZSE data from January 10 2023.
Code Company Price Change Volume Value Captilisation
ACE Ascension Capital Limited $0.055 $0.000 / 0.00% 0 $0.00 $1,053,186
AFC AFC Group Holdings Limited $0.001 $0.000 / 0.00% 0 $0.00 $3,664,216
AFI Australian Foundation Investment Company Limited $8.180 -$0.010 / -0.12% 301 $2,452.23 $10,107,411,338
AFT AFT Pharmaceuticals Limited $3.790 $0.070 / 1.88% 5,371 $20,318.65 $397,443,125
AGG Smartshares Global Aggregate Bond ETF $1.146 $0.005 / 0.44% 3,883 $4,464.98 $161,432,743
AGL Accordant Group Limited $1.790 $0.000 / 0.00% 61 $109.75 $60,516,773
AIA Auckland International Airport Limited $8.080 $0.040 / 0.50% 161,843 $1,304,994.80 $11,900,393,252
AIR Air New Zealand Limited (NS) $0.760 -$0.005 / -0.65% 469,478 $356,596.05 $2,560,006,900