Skip to content

Instantly share code, notes, and snippets.

View leighghunt's full-sized avatar

Leigh Hunt leighghunt

View GitHub Profile
@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
@leighghunt
leighghunt / brown-owl-google-maps-api-consuming-mapbox-tiles.markdown
Last active November 6, 2018 00:56
Brown Owl - Google Maps API consuming MapBox tiles
@leighghunt
leighghunt / brown-owl-google-maps-api-consuming-mapbox-tiles.markdown
Last active December 17, 2019 18:44
Brown Owl - Google Maps API consuming MapBox tiles
@leighghunt
leighghunt / brown-owl-swipe-light.markdown
Created November 1, 2018 20:13
Brown Owl Swipe Light
@leighghunt
leighghunt / brown-owl-swipe-aerial.markdown
Created November 1, 2018 20:13
Brown Owl Swipe Aerial
docker run -ti --rm container-registry.oracle.com/database/instantclient sqlplus <user>/<password>@<hostname>:1521/<servicename>
SET LINESIZE 400;
SELECT * FROM USER_OBJECTS WHERE OBJECT_TYPE = 'TABLE' ORDER BY OBJECT_NAME;
@leighghunt
leighghunt / docker-compose.yml
Last active August 12, 2017 05:54
Docker install files for Energy Monitoring Dashboard
version: '2'
services:
dashboard:
container_name: dashboard
image: leighghunt/energy-monitoring-dashboard
restart: on-failure
ports:
- 80:80
volumes:
- /home/pi/logFiles:/root/logFiles