Skip to content

Instantly share code, notes, and snippets.

View leighghunt's full-sized avatar

Leigh Hunt leighghunt

View GitHub Profile
@leighghunt
leighghunt / 30.geojson
Last active November 20, 2019 22:06
GeoJSON grid thoughts
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
@leighghunt
leighghunt / .vimrc
Last active February 28, 2019 02:37
vimrc
set nocompatible
execute pathogen#infect()
syntax on
filetype plugin indent on
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
let g:NERDTreeNodeDelimiter = "\u00a0"
" let g:ackprg = 'ag --nogroup --nocolor --column'
let g:ackprg = 'ag --vimgrep'

Copied from https://github.com/Project-OSRM/osrm-backend

wget http://download.geofabrik.de/australia-oceania/new-zealand-latest.osm.pbf

Pre-process the extract with the car profile and start a routing engine HTTP server on port 5000

docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-extract -p /opt/car.lua /data/new-zealand-latest.osm.pbf
esriJobMessageTypeInformative: Executing (mitigation): mitigation 3076 0004082231 1061 VERB
esriJobMessageTypeInformative: Start Time: Fri Dec 07 10:28:43 2018
esriJobMessageTypeInformative: Executing (mitigation): mitigation 3076 0004082231 1061 VERB
esriJobMessageTypeInformative: Start Time: Fri Dec 07 10:28:43 2018
esriJobMessageTypeInformative: Running script mitigation...
esriJobMessageTypeInformative: Getting configuration from "G:\ArcGIS\GPConfig\config.ini".
esriJobMessageTypeInformative: setting scratch geodatabase to "C:\Temp\scratch.gdb"
esriJobMessageTypeInformative:
esriJobMessageTypeInformative: =========================
esriJobMessageTypeInformative: Mitigation Calculations