Skip to content

Instantly share code, notes, and snippets.

View SimonXIX's full-sized avatar

Simon Bowie SimonXIX

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# @name: _quarto.yml
# @creation_date: 2023-03-13
# @license: The MIT License <https://opensource.org/licenses/MIT>
# @author: Simon Bowie <ad7588@coventry.ac.uk>
# @purpose: specifies Quarto book structure
project:
type: book
output-dir: docs
@SimonXIX
SimonXIX / Dockerfile_GoAccess
Created August 15, 2023 08:40
Dockerfile for building a GoAccess application container
ARG ALPINE_VERSION=3.10.2
# Builds a goaccess image from the current working directory:
FROM alpine:${ALPINE_VERSION}
ARG build_deps="build-base ncurses-dev autoconf automake git gettext-dev"
ARG runtime_deps="tini ncurses libintl gettext musl-utils libmaxminddb libmaxminddb-dev "
ARG geolib_path="/usr/local/share/GeoIP"
ARG geolib_filename="GeoCity.dat"
@SimonXIX
SimonXIX / create_onion_service.sh
Last active February 23, 2024 12:17
Copies the Copim Hugo site, finds the correct onion address, replaces the Onion-Location header in the original, and replaces the base_url with the onion service address in the onion mirror.
#! /bin/bash
# @name: create_onion_service.sh
# @creation_date: 2022-09-02
# @license: The MIT License <https://opensource.org/licenses/MIT>
# @author: Simon Bowie <ad7588@coventry.ac.uk>
# @purpose: Copies the Copim Hugo site, finds the correct onion address, replaces the Onion-Location header in the original, and replaces the base_url with the onion service address in the onion mirror.
# define variables
SOURCE_DIRECTORY='/home/[REDACTED]/website_inate/copim_website/public'