Skip to content

Instantly share code, notes, and snippets.

@SummittDweller
SummittDweller / progress-marker
Created February 25, 2024 16:06
My standard README.md progress marker
<!-- Progress Marker !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<div style="border: 3px solid red; padding: 10px; margin: 10px; font-weight: bold; font-size: large;text-align: center;">
<span>Attention! The remainder of this document is original README.md content from other projects.</span>
</div>
<!-- Progress Marker !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
@SummittDweller
SummittDweller / gist:1af7ecbb9051ee04d0a9dbad7f74c1e7
Created March 20, 2023 13:56
blog-eleventy-ghost Initial Setup Output
cd ~/GitHub
╭─mark@Marks-Mac-Mini ~/GitHub
╰─$ git clone https://github.com/TryGhost/eleventy-starter-ghost.git blog-eleventy-ghost
Cloning into 'blog-eleventy-ghost'...
remote: Enumerating objects: 774, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 774 (delta 5), reused 3 (delta 1), pack-reused 763
Receiving objects: 100% (774/774), 914.18 KiB | 3.94 MiB/s, done.
Resolving deltas: 100% (471/471), done.
@SummittDweller
SummittDweller / Wieting-Guild-in-Eleventy.md
Created February 19, 2023 04:14
Part 3 of Wietring-Guild.TamaToledo.com development

wieting-guild-pages

Resources used in the creation of this site can be found in a OneTab at https://www.one-tab.com/page/iyQVdlpSRICO67Mue7Cb_Q. In particular, I found A Deep Dive Into Eleventy Static Site Generator to be especially helpful!

Changing Smol Eleventy Starter Content to wieting-guild-pages

@SummittDweller
SummittDweller / pre-commit
Last active January 21, 2023 01:33
My 'pre-commit' git Hook
# Contents of ~/gitconfig/hooks/pre-commit
# Replace `last_modified_at` timestamp with current time in the specified TZ for .md edits only
# Note that this file should exist on your workstation as `~/gitconfig/hooks/pre-commit` and the file must be executable!
git diff --cached --name-status | egrep -i "^(A|M).*\.(md)$" | while read a b; do
cat $b | sed "/---.*/,/---.*/s/^last_modified_at:.*$/last_modified_at: $(TZ=CST6CDT date "+%Y-%m-%dT%H:%M:%S")/" > tmp
mv tmp $b
git add $b
done
@SummittDweller
SummittDweller / startup_script.sh
Created January 7, 2021 20:49
CentOS7 Home Server Startup Script for Paperless-ng
echo "This is my /var/tmp/startup_script.sh to auto run during boot" > /var/tmp/script.out
echo "The time the script run was --> `date`" >> /var/tmp/script.out
# See ~/Desktop/README.md Set inotify capacity for Paperless-ng
#
cat /proc/sys/fs/inotify/max_user_watches # default is 8192
sudo sysctl fs.inotify.max_user_watches=1048576 # increase to 1048576
echo "Parameter for inotify increased, max_user_watches=1048576" >> /var/tmp/script.out
# Start Paperless-ng
@SummittDweller
SummittDweller / gist:5c16c99c75727f19e9da122b671ae29f
Last active January 4, 2021 22:36
Testing blog update of public gist display
This is just a test, and the results are showing me that additions or updates to this list are NOT pulled into my blog at run-time. The fetch of these gists must be a compile-time activity.
@SummittDweller
SummittDweller / gist:624628ae38586d6b26024dd14de4b8d0
Last active June 10, 2020 01:11
5" Raspberry Pi Display QuickStart - Driver Installation
sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show
sudo ./LCD5-show
@SummittDweller
SummittDweller / Digital_Grinnell_MODS_Master.twig
Last active April 14, 2020 18:58
File copy of the Twig template (Rev 17) from Digital_Grinnell_MODS_Master, a Google Sheet
<?xml version="1.0" encoding="UTF-8"?>
{# Digital_Grinnell_MODS_Master.twig Revision 17
A copy of this file lives as a Gist at https://gist.github.com/SummittDweller/de551b7583bf7022401e8b4a5320a201
This TWIG template for IMI import is intended to serve as a general-purpose
starting point for MODS import into Digital Grinnell.
The canonical copy of this Twig is part of a 4-tab Google Sheet named
@SummittDweller
SummittDweller / Fixing IMI on summitt-services-droplet-01
Last active January 4, 2021 20:34
Fixing IMI on summitt-services-droplet-01
Last login: Tue Feb 25 16:54:13 2020 from 173-18-136-80.client.mchsi.com
[centos@summitt-services-droplet-01 ~]$ docker exec -it isle-apache-dg bash
root@01d77bea4bd2:/# cd /var/www/html/sites/all/modules/islandora/islandora_multi_importer/
root@01d77bea4bd2:/var/www/html/sites/all/modules/islandora/islandora_multi_importer# git remote -v
origin https://github.com/DigitalGrinnell/islandora_multi_importer (fetch)
origin https://github.com/DigitalGrinnell/islandora_multi_importer (push)
root@01d77bea4bd2:/var/www/html/sites/all/modules/islandora/islandora_multi_importer# git status
HEAD detached at 78c06b7
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
@SummittDweller
SummittDweller / My Implementation of hook_islandora_multi_importer_remote_file_get
Created September 29, 2019 18:59
My dg7.module implementation of hook_islandora_multi_importer_remote_file_get to retrive content from a mounted file system when "local*" option is selected.
/**
* Implements hook_islandora_multi_importer_remote_file_get for https://digital.grinnell.edu. and
* https://dgadmin.grinnell.edu
*
* @param $url
* Path to the file to be fetched. Default behavior strips the 'basename' from $url and looks
* for that file somewhere in $target.
* @return array
* On error or failure an empty array is returned.
* On success, a single array element LOCAL path like /mnt/storage/exmample.xml