Skip to content

Instantly share code, notes, and snippets.

View michaelsproul's full-sized avatar

Michael Sproul michaelsproul

View GitHub Profile
@kmcallister
kmcallister / gist:c9ae9b977a7718376c7f
Last active August 29, 2015 14:12
Macros migration

With Rust 1.0-alpha, the macro reform RFC is mostly implemented. This document gives a quick guide to migrating your code.

Macro syntax

#[macro_use] extern crate

A macro import such as

@paulhauner
paulhauner / gist:2791c44cac848b23dbb95a30c4f09453
Created April 18, 2023 02:27
retag-lighthouse-docker-images.fish
# This fish script will re-tag all the $SRC_TAG_PREFIX images with the
# $DEST_TAG_PREFIX and push those images to Dockerhub.
#
# This script is specifically designed for the github.com/sigp/lighthouse
# repos, as they exist in April 2023.
#
# Be sure to double check the images after you've pushed them, especially the
# mainfests. I ran this script twice because I kept pulling outdated manifests,
# I'm not sure if that's a caching issue or if the script needs to be run
# twice. Running it twice shouldn't hurt.
@asheroto
asheroto / README.md
Last active October 2, 2024 06:34
Nextcloud - Show gallery view by default with public / sharing / shared folders

Nextcloud - Show gallery view by default with public / sharing / shared folders

This will automatically switch a public or shared folder to gallery view when loading.

This only works on public or shared folders on Nextcloud and will not affect normal folders viewed under your user account.

Tested and working on Nextcloud 27+.

How to Configure

  1. Open core/js/public/publicpage.js.