Skip to content

Instantly share code, notes, and snippets.

View leighghunt's full-sized avatar

Leigh Hunt leighghunt

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leighghunt
leighghunt / ReadMe.md
Created February 5, 2020 01:00
docker container DotNet cheatsheet
  • Open up an interactive docker shell:
docker run -ti ubuntu /bin/bash
  • Update Apt cache, install [stuff].
apt-get update
apt-get install -y wget unzip
@leighghunt
leighghunt / 30.geojson
Last active November 20, 2019 22:06
GeoJSON grid thoughts
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leighghunt
leighghunt / postgis-cheatsheet.md
Created July 22, 2019 09:58
postgres/postgis on AWS cheatsheet
@leighghunt
leighghunt / readme.md
Last active July 12, 2019 00:57
Dotnet in glitch.com
@leighghunt
leighghunt / EnergyManagementDashboardInstallation.md
Last active October 6, 2023 04:51
Energy Management Dashboard installation

How to get running on a Raspberry Pi Zero W

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

Install:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Normal tools:

choco install 7zip atom git googlechrome -y
@leighghunt
leighghunt / Docker cheatsheet.md
Last active August 11, 2023 09:22
Squid whitelist only

Update docker to use proxy:

PS C:\Users\Administrator>  [Environment]::SetEnvironmentVariable("HTTP_PROXY", "http://localhost:3128", [EnvironmentVariableTarget]::Machine)
PS C:\Users\Administrator> Restart-Service docker

Restart Squid when updating whitelist

PS C:\Users\Administrator> Restart-Service squidsrv; docker pull hello-world