This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for FILE in *; do squoosh-cli --mozjpeg 50 --resize '{width: 1000, height: 1000}' "$FILE"; done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const handleHeaderLogic = (() => { | |
const header = document.querySelector('header'); | |
const sections = document.querySelectorAll('.section'); | |
const whereSectionsStartAndEnd = {} | |
const headerHeight = 132; | |
let lastPosition = Math.ceil(window.scrollY); | |
let ticking = false; | |
// scrolls to section when menu item is clicked | |
const handleClickOnMenuItems = (() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync -v -a -e 'ssh -p 2200' user@example.com:home/wp-content/uploads/ uploads/ | |
// Keep in mind that rsync works left to right (from => target). | |
// -v verbose lets you know things are happening | |
// -a archive maintains preserves directory structure | |
// -e executes a piece of code ( I use it to target a specific port for ssh ). |
OlderNewer