Skip to content

Instantly share code, notes, and snippets.

View brianzelip's full-sized avatar

Brian Zelip brianzelip

View GitHub Profile
@brianzelip
brianzelip / Indigenous-remembrance.md
Last active January 29, 2021 18:42
Acknowledgement of indigenous people on a website

We acknowledge the Lenape people, the traditional custodians of the land where the studio operates. We pay respect to their Elders past and present and to all indigenous people of this continent.

Frank Chimero, https://studiofrank.co/colophon

@brianzelip
brianzelip / modern-favicon.md
Created December 25, 2020 12:35
Snippet on favicon approach as five icons and one json file

Modern favicon html and json

By Andrey Sitnik

<link rel="icon" href="/favicon.ico"><!-- 32×32 -->
<link rel="icon" href="/icon.svg" type="image/svg+xml" sizes="any">
<link rel="apple-touch-icon" href="/apple.png"><!-- 180×180 -->
<link rel="manifest" href="/manifest.webmanifest">
@brianzelip
brianzelip / cache-busting-CSS-components-in-WordPress.md
Last active August 11, 2020 20:13
Cache busting CSS components imported in a single CSS file in a WordPress project via PostCSS and Nodemon

This gist documents one method for cache busting CSS components imported in a single CSS file in a WordPress project via PostCSS and Nodemon.

  • project.css: shows the CSS componenents imported in a single file
  • package.json: shows the npm dependencies and build scripts
  • postcss.config.js: shows the postcss config
  • functions.php: shows the versioning of the theme's style.css based on the file's last modified date
@brianzelip
brianzelip / rebase-squash.md
Last active October 11, 2022 14:04
Squash many commits into one commit

Squash many commits into one commit

aka, clean up your commit history, but be careful!

# 1. find start of your changes, then copy the commit _prior_ to that
git log

# 2. init rebase
git rebase -i $PRIOR_COMMIT_ID
@brianzelip
brianzelip / merge-upstream.md
Created May 6, 2020 10:26
Merge with upstream/master

Merge with upstream/master

aka, pull in the latest changes from Master into local

git checkout master

git fetch upstream

git merge upstream/master
@brianzelip
brianzelip / rebuild-archivesspace.md
Created May 6, 2020 10:23
Rebuild ArchivesSpace back end

Rebuild ArchivesSpace back end

aka, Merged w/ upstream and have to nuke the temporary database

# 1. nuke
build/run db:nuke

# 2. rerun bootstrap
build/run bootstrap
@brianzelip
brianzelip / .gitignore
Created February 26, 2020 20:33
WordPress git ignore
# Exclude these files from the git repo
wp-content/backup/*
wp-content/cache/*
wp-content/upgrade/*
wp-content/uploads/*
sitemap.*
wp-config.php
# Hidden system files
*.DS_Store
@brianzelip
brianzelip / NCBI-Hackathons-products-checklist.md
Last active August 28, 2017 19:40
Marketing checklist for NCBI hackathons

NCBI hackathon product checklist

In order to maintain the online list of products created at NCBI hackathons, each shipped product's repo should include the following:

  • Title (required) - the proper display title for the product, with no unnecessary underscores/hyphens/lack of whitespace/etc., e.g., "NCBI Computational Cookbook", not "NCBIComputationalCookbook" or "NCBI_Computational_Cookbook"; achieve this via one of two methods:
    1. the repo name itself, ONLY IF it is the string of the ideal product name for display purposes, or,
    2. an issue titled title, with a label titled metadata, and the body of which should contain only the human readable title string for display purposes; see NCBI-Hackathons/ncbi-hackathons.github.io#5
  • Description (required) - the proper display description for the product, with proper grammer/punctuation/capitalization/etc.; achieve this via one of two methods:
  1. the repo description as input on the repo's homepage, above the list o