Skip to content

Instantly share code, notes, and snippets.

View natebeaty's full-sized avatar
🦉

Nate Beaty natebeaty

🦉
View GitHub Profile
@natebeaty
natebeaty / SIMPL.readme
Last active October 18, 2024 15:53
readme file for an amiga icon set from 1993
Short: A *different* icon set - v1
Uploader: nbeaty csugrad cs vt edu
Type: os20/wb
Architecture: generic
SIMPLICITY release 1 ------------------------ a different .info collection
__ ___ ___ ______
/ ) / / / / / /
/__/ /__ /__/ / /__/
@natebeaty
natebeaty / magcon.sh
Created February 3, 2022 18:30
process subsubdirs of $1 to extract magazine data
#!/bin/bash
# exit function
die() {
echo >&2 "$0 ERROR: $@"; exit 1;
}
[ "$1" ] || die "Argument missing."
[ -d "$1" ] || die "Arg '$1' is not a directory."
cd "$1" || die "Can't access '$1'."
@natebeaty
natebeaty / gist:9996d9388c5f8d111e46c7f9fdebd4ef
Created April 19, 2020 21:53
stupid reboot error on macbook pro 16" every time
panic(cpu 2 caller 0xffffff7f9a7a0aae): watchdog timeout: no checkins from watchdogd in 310 seconds (11 totalcheckins since monitoring last enabled), shutdown in progress
Backtrace (CPU 2), Frame : Return Address
0xffffff8209c6bc40 : 0xffffff8019d215cd
0xffffff8209c6bc90 : 0xffffff8019e5a3c5
0xffffff8209c6bcd0 : 0xffffff8019e4bf7e
0xffffff8209c6bd20 : 0xffffff8019cc7a40
0xffffff8209c6bd40 : 0xffffff8019d20c97
0xffffff8209c6be40 : 0xffffff8019d21087
0xffffff8209c6be90 : 0xffffff801a4c2ce8
0xffffff8209c6bf00 : 0xffffff7f9a7a0aae
@natebeaty
natebeaty / microcosm-onix-bisac-codes.csv
Created March 27, 2020 17:43
ONIX BISAC codes from microcosm publishing database, with some manually entered codes — use at your own risk!
ANT000000 Antiques & Collectibles / General
ANT001000 Antiques & Collectibles / Americana
ANT002000 Antiques & Collectibles / Art
ANT003000 Antiques & Collectibles / Autographs
ANT005000 Antiques & Collectibles / Books
ANT006000 Antiques & Collectibles / Bottles
ANT007000 Antiques & Collectibles / Buttons & Pins
ANT008000 Antiques & Collectibles / Care & Restoration
ANT009000 Antiques & Collectibles / Transportation
ANT010000 Antiques & Collectibles / Clocks & Watches
@natebeaty
natebeaty / gist:c959caa8c4f6df6ac0e20845050322d1
Created November 18, 2019 19:40
Install Composer on Opalstack
cd $HOME
curl -sS https://getcomposer.org/installer | php
mkdir -p ~/bin
mv composer.phar ~/bin/composer
@natebeaty
natebeaty / stickyHeaders.js
Created October 21, 2019 17:28
es6 module for push-as-you-scroll sticky headers (currently set for vertical, rotated 90º headers)
// Vertical sticky headers with push effect
//
// Use:
// import stickyHeaders from './stickyHeaders';
// stickyHeaders.init($('.sticky-header'), $(window), 20);
//
// Markup:
// <div class="sticky-header">
// <div class="sticky-title">Test Header</div>
// </div>
@natebeaty
natebeaty / sphp.sh
Last active March 19, 2019 19:10 — forked from marlocorridor/sphp.sh
sphp.sh w/ php 7.3 support
#!/bin/bash
# Creator: Phil Cook
# Email: [email protected]
# Twitter: @p_cook
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
brew_array=("5.6","7.0","7.1","7.2","7.3")
php_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]")
valet_support_php_version_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]")
php_installed_array=()
@natebeaty
natebeaty / gitlog
Last active October 29, 2024 15:21
script to pull your git commit logs for various date ranges, formatted for a timesheet
#!/bin/bash
# Pulls git log entries for a day formatted for pasting in a timesheet
# Usage:
# gitlog = all commits today
# gitlog -2 = all commits -2 days ago
# gitlog 2024-10-03 or 10/3/2024 or 10-3
args=$1
# Replace / with - in args for alternate date formats e.g. 10/3/2024
@natebeaty
natebeaty / _navigation.twig
Last active June 20, 2018 18:42
nested navigation partial for Navigation structure in Craft 3
{% set headerImage = pageHeader.image.one() %}
{% set grayImage = craft.imager.transformImage(headerImage, {
width: 1000,
height: 1000,
mode: 'crop',
position: '20% 65%',
effects: { grayscale: true, gamma: 1.5 }
}) %}
<div class="page-header">
<div class="image-wrap">
@natebeaty
natebeaty / deploy.sh
Created April 20, 2018 15:10
deploy script for a grav site
#!/bin/bash
USER=username
PROJECT=projectname
SERVER=siteurl.com
rsync --delete -rvzce ssh . ${USER}@${SERVER}:webapps/${PROJECT}/ \
--exclude /.git \
--exclude /assets \
--exclude /tmp \
--exclude /cache \