Skip to content

Instantly share code, notes, and snippets.

View dzoladz's full-sized avatar
📖
Reading at the library

Derek C. Zoladz dzoladz

📖
Reading at the library
View GitHub Profile
@dzoladz
dzoladz / app_lightswitch.md
Last active December 20, 2018 22:26
Start MarcEdit3 in Mojave's 'light mode'

After purchasing a new machine and enabling Mojave's 'Dark Mode', low contrast was experienced on the MarcEdit3 UI. To set application-specific start-up parameters for 'light' and 'dark' mode, fire up a terminal and enter the following command:

osascript -e 'id of app "MarcEdit3"'

This will output the bundle id of the MarcEdit3 application. In this particular case, we have com.terry_reese.MarcEdit3.

To enable start-up of MarcEdit3 in 'light mode' to resolve the low contrast issues when the remainder of the application windows are set to launch in 'dark mode', use the following command:

@dzoladz
dzoladz / README.md
Created September 30, 2019 13:27
COOL: Carousel Implementation

Carousels

Library-specific configuration settings for the OPAC carousels are managed in config.ini.

Configurable Settings
  • The number of items returned
  • Items with a specific status (Default is Available)
  • Items from specific shelving locations
(function() {
var doi = document.querySelector('[data-auto="ep_link"]');
var fixed_doi = doi.toString().replace(".sinclair.ohionet.org", "");
doi.innerText = fixed_doi
})();
@dzoladz
dzoladz / 📊 Recent Development Breakdown
Last active April 3, 2023 00:11
📊 Recent Development Breakdown
HTML +21.6k/ -18.8k ███████████████▏░░░░░ 72.6%
Markdown +864/ -88 ████▍░░░░░░░░░░░░░░░░ 21.4%
XML +2.4k/ -721 ▌░░░░░░░░░░░░░░░░░░░░ 2.8%
JSON +644/ -633 ▌░░░░░░░░░░░░░░░░░░░░ 2.5%
YAML +282/ -282 ░░░░░░░░░░░░░░░░░░░░░ 0.6%
Vue +25/ -23 ░░░░░░░░░░░░░░░░░░░░░ 0.1%
JavaScript +9/ -8 ░░░░░░░░░░░░░░░░░░░░░ 0.0%
TOML +2/ -2 ░░░░░░░░░░░░░░░░░░░░░ 0.0%
@dzoladz
dzoladz / I'm an early 🐤
Last active June 17, 2024 00:17
🏓 Productivity Chart
🌞 Morning 115 commits ████▎░░░░░░░░░░░░░░░░ 20.6%
🌆 Daytime 190 commits ███████▏░░░░░░░░░░░░░ 34.0%
🌃 Evening 254 commits █████████▌░░░░░░░░░░░ 45.4%
🌙 Night 0 commits ░░░░░░░░░░░░░░░░░░░░░ 0.0%
@dzoladz
dzoladz / gist:ab26fa46326e70b2a3e0475c82adf952
Created February 6, 2022 18:44
Create Self-Signed SSL Certificates for Local Development
# ---------------------------------------------------------------
# How to create a self-signed SSL Certificate with Subject
# Alternative Names(SAN) for local development w/ Chromium
# ---------------------------------------------------------------
## Step 1: Generate a Private Key
```shell
openssl genrsa -des3 -out myapp.key 2048
```
docker rm -f $(docker ps -qa)
docker rmi -f $(docker images -q)
docker volume rm $(docker volume ls -q)
for mount in $(mount | grep tmpfs | grep '/var/lib/kubelet' | awk '{ print $3 }') /var/lib/kubelet /var/lib/rancher; do umount $mount; done
rm -rf /etc/ceph \
/etc/cni \
/etc/kubernetes \
@dzoladz
dzoladz / fix856.js
Created May 10, 2022 00:49
JS Fix for Duplicate 856 $9 in Evergreen E-Resource Bibs in Consortial View
(function() {
// index 0 contain the h2 element
const div = document.getElementsByClassName('rdetail_uris')[1];
// create a collection of the li elements
const targets = div.getElementsByTagName('li');
// loop to append css for UI cleanup
let i = 1; // we want to retain the first element
let len = targets.length;
@dzoladz
dzoladz / sierraBibLocToBibLoc.js
Created May 10, 2022 00:53
Scratch/Draft JS for Bib Location to Bib Location Mapping Client-Side
document.addEventListener("DOMContentLoaded", function(event) {
// EGCC eBook Locations
const ebookBibLocations = ['ebkga', 'ebkeb', 'ebkpe'];
// Create eBook Search Parameters
let array, searchParameters, displayEbooks
array = ebookBibLocations.map(el => '&b=' + el);
searchParameters = array.join('');
// Grab the Body element
@dzoladz
dzoladz / simplified-alao2022.gv
Last active November 7, 2022 19:25
A Simplified, High Level DOT Diagram for ALAO 2022 Conference
strict digraph MobileCredentials {
rankdir=RL
splines=ortho
compound=true
concentrate=false
label="BW Mobile Credentials"
node[style="rounded,filled,bold", shape=box, fixedsize=true, width=1.6, fontname="Arial"]
// SubGraphs
// Note: cluster_ prefix is important