Instantly share code, notes, and snippets.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
// 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 | |
functionFindProxyForURL(url,host){ | |
/* Normalize the URL for pattern matching */ | |
url=url.toLowerCase(); |
SystemJargon /nz_radio.m3u
CreatedApril 20, 2024 05:52
M3U Playlist containing some New Zealand radio station streams. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
#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 /udm_free_diskspace.sh
CreatedJanuary 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 This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
## 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 /Microsoft.PowerShell_profile.ps1
CreatedNovember 6, 2023 08:25
Simple Strap your Powershell profile via OneDrive This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
# profile-load | |
$PROFILE="$env:onedrive\Custom.PowerShell_profile.ps1" | |
&$profile |
SystemJargon /install-docker-essentials.sh
CreatedNovember 3, 2023 00:03
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
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 /docker-compose.yml
Last activeNovember 3, 2023 00:04
My docker-compose.yml file for portainer This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
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 /unifi-casting-firewall-rules.md
CreatedOctober 8, 2023 04:09
Basic Setup of IP/Ports Groups and Firewall Rules needed for Casting in Unifi OS NetworkSystemJargon /autounattend.xml
CreatedMay 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 This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<unattendxmlns="urn:schemas-microsoft-com:unattend"> | |
<settingspass="windowsPE"> | |
<componentname="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> |
SystemJargon /NZX-Jan17-2023.csv
CreatedJanuary 16, 2023 21:20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
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 |
NewerOlder