Skip to content

Instantly share code, notes, and snippets.

View vicchi's full-sized avatar

Gary Gale vicchi

View GitHub Profile
@vicchi
vicchi / multiarch-build.log
Created February 24, 2025 09:45
Ubuntu 22.04 amd64 build host - multi-arch build for arm64 and amd64
/etc/bash.bashrc: line 7: PS1: unbound variable
/etc/bash.bashrc: line 7: PS1: unbound variable
/etc/bash.bashrc: line 7: PS1: unbound variable
/etc/bash.bashrc: line 7: PS1: unbound variable
make _build_image \
-e BUILD_DOCKERFILE=./docker/buildtest/Dockerfile \
-e BUILD_REPO=ghcr.io/vicchi \
-e BUILD_IMAGE=buildtest \
-e BUILD_FLAGS="--no-cache"
/etc/bash.bashrc: line 7: PS1: unbound variable
@vicchi
vicchi / arm64-build.log
Created February 24, 2025 09:44
Ubuntu 22.04 amd64 build host - build for arm64 only
/etc/bash.bashrc: line 7: PS1: unbound variable
/etc/bash.bashrc: line 7: PS1: unbound variable
/etc/bash.bashrc: line 7: PS1: unbound variable
/etc/bash.bashrc: line 7: PS1: unbound variable
make _build_image \
-e BUILD_DOCKERFILE=./docker/buildtest/Dockerfile \
-e BUILD_REPO=ghcr.io/vicchi \
-e BUILD_IMAGE=buildtest \
-e BUILD_FLAGS="--no-cache"
/etc/bash.bashrc: line 7: PS1: unbound variable
@vicchi
vicchi / amd64-build.log
Created February 24, 2025 09:43
Ubuntu 22.04 amd64 build host - build for amd64 only
/etc/bash.bashrc: line 7: PS1: unbound variable
/etc/bash.bashrc: line 7: PS1: unbound variable
/etc/bash.bashrc: line 7: PS1: unbound variable
/etc/bash.bashrc: line 7: PS1: unbound variable
make _build_image \
-e BUILD_DOCKERFILE=./docker/buildtest/Dockerfile \
-e BUILD_REPO=ghcr.io/vicchi \
-e BUILD_IMAGE=buildtest \
-e BUILD_FLAGS="--no-cache"
/etc/bash.bashrc: line 7: PS1: unbound variable
@vicchi
vicchi / main.py
Last active September 21, 2024 10:34
Versioned documentation in FastAPI, based on https://gist.github.com/Kludex/1c515aa38d22ec28d514da6b6f36da9f
# uvicorn main:app --host $(hostname) --port 8080 --log-level debug --reload
from fastapi import APIRouter, FastAPI
from utils import create_versioned_docs
VERSION = '2.0.0'
TITLE = 'Sample Versioned API'
DESCRIPTION = 'Sample versioned API blurb'
app = FastAPI(docs_url=None, redoc_url=None, title=TITLE, version=VERSION, description=DESCRIPTION)
@vicchi
vicchi / # osgeo-qgis - 2019-05-21_12-51-31.txt
Created May 21, 2019 14:33
osgeo-qgis (osgeo/osgeo4mac/osgeo-qgis) on macOS 10.14.5 - Homebrew build logs
Homebrew build logs for osgeo/osgeo4mac/osgeo-qgis on macOS 10.14.5
Build date: 2019-05-21 12:51:31
@vicchi
vicchi / what3words-xmlhttprequest.js
Created February 22, 2016 08:53
what3words API authentication with XMLHttpRequest
function loadConfig(callback) {
var xobj = new XMLHttpRequest();
xobj.overrideMimeType("application/json");
xobj.open('GET', './config.json', true);
xobj.onreadystatechange = function () {
if (xobj.readyState == 4 && xobj.status == "200") {
// Required use of an anonymous callback as .open will NOT return a value but simply returns undefined in asynchronous mode
callback(xobj.responseText);
}
};
@vicchi
vicchi / what3words-jquery.js
Created February 22, 2016 08:48
what3words API authentication with jQuery
var json = (function() {
var json = null;
$.ajax({
'async': true,
'global': false,
'url': "./config.json",
'dataType': "json",
'success': function (data) {
json = data;
}
@vicchi
vicchi / what3words-node.js
Created February 22, 2016 08:45
what3words API authentication with Node.js
var json = require('./config.json');
var key = json.what3words.key;
var options = {
key: key
lang: 'en'
};
var w3w = new What3words(options);
@vicchi
vicchi / config.json
Created February 22, 2016 08:39
General JSON configuration file for the what3words Javascript wrapper
{
"what3words": {
"key": "your-api-key-here"
}
}
2015-05-09 12:18:27 +0100
./configure
--enable-layout=Homebrew
--enable-mods-shared=all
--enable-unique-id
--enable-ssl
--enable-dav
--enable-cache
--enable-proxy