Skip to content

Instantly share code, notes, and snippets.

View manifestinteractive's full-sized avatar

Peter Schmalfeldt manifestinteractive

View GitHub Profile
@manifestinteractive
manifestinteractive / README.md
Created April 8, 2022 05:02
Custom Scroll Helper to make listening to Page Level Scroll Events easier

Sample Usage

CSS

:root {
  --header-height: 100px;
}
@manifestinteractive
manifestinteractive / README.md
Last active July 17, 2024 10:03
LZ-based Compression Algorithm for Salesforce Commerce Cloud (SFCC)
@manifestinteractive
manifestinteractive / accessibility-testing.md
Last active March 29, 2025 15:41
Accessibility Testing

Introduction

A basic understanding of Accessibility Testing is essential for Web Developers to integrate into their daily web development practices.

The Google Chrome Developer team put together a fantastic intro series for accessibility testing.

StackShare

⚠️   ATTENTION:

@manifestinteractive
manifestinteractive / overscroll.js
Created September 5, 2021 14:36
Fun little easter egg for touch devices that uses overscroll ( rubber banding that happens past scroll bottom ) to reveal hidden content
/**
* Usage:
*
* const overscroll = new Overscroll();
* overscroll.init('/path/to/image.png');
*/
function Overscroll() {
// Check if this is a mobile device that can actually support overscroll
var supported = (typeof matchMedia !== 'undefined' && matchMedia('(hover: none)').matches);
var $elm;
@manifestinteractive
manifestinteractive / sample-report.md
Last active July 9, 2022 08:50
SFCC DevOps - Accessibility Test Sample

A11Y Report Summary

Date: Sunday, August 4, 2019 8:17 PM

Total Issues: 192

✖ Errors: 8 ▲ Warnings: 38 ◆ Notices: 146


⚑ Google

@manifestinteractive
manifestinteractive / backup.sh
Created February 12, 2019 17:56
Quick Backup Script
#!/bin/bash
# Backup Important Files on Storage Drive
echo -e "\n\033[48;5;22m Starting Storage Backup › Android \033[0m\n"
rsync -hrPul /Volumes/Storage/Android /Volumes/Backup/Storage
echo -e "\n\033[38;5;34m✓ BACKUP SYNCED\033[0m\n"
@manifestinteractive
manifestinteractive / own-dark.theme
Created September 26, 2018 14:50
MacOS Mojave Dark Theme Style for SmartGit
extends=smartgit-dark-theme.properties
preferredEditorTheme=dark
background1=#2d2d2d
background2=#1e1e1e
selection.background=#0a0a0a
composite.background#border=#1e1e1e
selection.background.unfocused=#0a0a0a
selection.foreground=foreground2
selection.foreground.unfocused=foreground2
toolBar.background.hover=#0a0a0a
@manifestinteractive
manifestinteractive / README.md
Last active July 28, 2018 01:41
Nginx Config Files for Node API

Nginx Config Files for Node API

My servers are setup using Digital Ocean using These Instructions.

Then, for the API setup for Nginx, I use this setup for nginx.

@manifestinteractive
manifestinteractive / fix-ssl-certs.md
Created October 12, 2017 22:42
Fix Let's Encrypt Failing Certificates

Fix Let's Encrypt Failing Certificates

For some reason, sometimes Let's Encrypt just has a hard time renewing SSL certificates and you might need to recreate them. Here is the process I take to get things back up and running fairly quickly with Digital Ocean Nginx Servers.

Check Issues

Change to Let's Encrypt directory:

@manifestinteractive
manifestinteractive / long-term-prep.md
Last active September 7, 2017 07:19
Long Term Prep

Long Term Prep

By no means am I an expert on this stuff, but I have been doing basic research on this from year to year and have been trying to keep up with "best practices". I started this "prepper" stuff back in St. Louis, MO as we lived on a fault line and we were well past due for a major earthquake ( by 100+ years actually ). So I felt kind of stupid not being ready if it was a pretty good bet that at some point in my life, I was going to meet a natural disaster.

Something important to note, is that I did not just drop a bunch of money on this all at once. I just slowly accumulated things over the past 6-8 years. I figured if I budgeted about max of $250 a year on preparation stuff, I would only need to do that for a few years before I could have a pretty decent nest egg.

My primary focus was based purely on how I live my life, which is that I mainly work from home with my wife, and when I am traveling, it's usually by car, and I'm usually within 30 miles from home.

Get Home Bag (GHB)