:root {
--header-height: 100px;
}
Helper Script for Salesforce Commerce Cloud (SFCC) to compress and decompress Objects and Strings. This library uses LZ-String to work around SFCC Character Limits by using Compression, as mentioned in this Trailhead Module:
SFCC Session Limits:
- Strings are limited to 2000 characters
| /** | |
| * 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; |
| #!/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" |
| 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 |
My servers are setup using Digital Ocean using These Instructions.
Then, for the API setup for Nginx, I use this setup for nginx.
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.
Change to Let's Encrypt directory:
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)