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 / gh-feed.md
Last active September 11, 2023 22:01
Github - Dashboard Feed
@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
@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 / 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;
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 / 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
```
@dzoladz
dzoladz / I'm an early 🐤
Last active May 25, 2024 00:15
🏓 Productivity Chart
🌞 Morning 116 commits ████▎░░░░░░░░░░░░░░░░ 20.5%
🌆 Daytime 186 commits ██████▉░░░░░░░░░░░░░░ 32.9%
🌃 Evening 263 commits █████████▊░░░░░░░░░░░ 46.5%
🌙 Night 0 commits ░░░░░░░░░░░░░░░░░░░░░ 0.0%
@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%
(function() {
var doi = document.querySelector('[data-auto="ep_link"]');
var fixed_doi = doi.toString().replace(".sinclair.ohionet.org", "");
doi.innerText = fixed_doi
})();
@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