This file contains hidden or 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
// gallery-injector-v5 | |
// strip out any bs html / etc | |
(()=> { | |
// empty page footer | |
const footer = document.querySelector('.page-wrap > footer'); | |
if (footer) { | |
footer.classList.remove('Footer'); | |
footer.innerHTML = ''; |
This file contains hidden or 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
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sagittis eget erat placerat consequat. Maecenas eu arcu augue. Aenean viverra ex id dui ornare, a dictum velit iaculis. Proin ut ligula ipsum. Nulla rutrum aliquam tortor fermentum consequat. Suspendisse mollis nulla in lectus aliquam, quis gravida ex imperdiet. Sed iaculis neque sed ultricies sodales. | |
Nunc ut tellus tellus. Quisque vitae aliquet ex, at pharetra erat. Integer at finibus enim, et gravida nunc. Maecenas ac fermentum metus. Mauris accumsan sollicitudin dolor, ut posuere mauris commodo nec. Etiam sollicitudin justo nec massa convallis vehicula. Aenean a sem placerat, congue dui ut, auctor ligula. Nullam velit tellus, fermentum sed eros quis, dictum sollicitudin arcu. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vestibulum ac quam hendrerit, euismod arcu suscipit, pellentesque lacus. Phasellus non tellus eu ante imperdiet gravida. Cras sapien augue, finibus quis faucibus eget, consequat at magna |
This file contains hidden or 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
#!/bin/bash | |
#-- space sep list | |
pkgs="bc exfat-utils gawk git hfsutils jq pv source-highlight sysbench tmux wget" | |
#-- --=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-- --# | |
# \\ [ bash 1-liner ]\_ | |
# \\~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~\_ | |
#-- start by displaying list |
This file contains hidden or 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
#!/usr/bin/env bash | |
export LC_ALL=C.UTF-8 | |
export LANG=C.UTF-8 | |
# Directory of *this* script | |
DIR="$( cd "$( dirname "$0" )" && pwd )" | |
cd "$DIR/../../" | |
source .venv/bin/activate |
This file contains hidden or 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
// overwrite history events for url change | |
(()=> { | |
var pushState = history.pushState; | |
var replaceState = history.replaceState; | |
history.pushState = function() { | |
pushState.apply(history, arguments); | |
window.dispatchEvent(new Event('pushstate')); | |
window.dispatchEvent(new Event('locationchange')); | |
}; |
This file contains hidden or 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
// overwrite history events for url change | |
(()=> { | |
var pushState = history.pushState; | |
var replaceState = history.replaceState; | |
history.pushState = function() { | |
pushState.apply(history, arguments); | |
window.dispatchEvent(new Event('pushstate')); | |
window.dispatchEvent(new Event('locationchange')); | |
}; |
This file contains hidden or 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 uint8_t Consolas_Bold7pt7bBitmaps[] PROGMEM = { | |
0x00, 0xFF, 0xFC, 0xF0, 0xDE, 0xF6, 0x3C, 0x7B, 0xF9, 0xE3, 0xCF, 0x3F, | |
0xBC, 0x78, 0x08, 0xFB, 0x66, 0x8F, 0x0F, 0x87, 0x8B, 0x17, 0xF8, 0x81, | |
0x00, 0x62, 0x94, 0x9C, 0x68, 0x18, 0x10, 0x26, 0x69, 0x49, 0xC6, 0x38, | |
0x6C, 0x6C, 0x6C, 0x38, 0x7E, 0xDE, 0xCE, 0xCE, 0x7B, 0xFC, 0x13, 0x66, | |
0xCC, 0xCC, 0xC6, 0x63, 0x10, 0x8C, 0x66, 0x33, 0x33, 0x36, 0x6C, 0x80, | |
0x32, 0xD7, 0x9E, 0xB4, 0xC0, 0x18, 0x18, 0x18, 0xFF, 0x18, 0x18, 0x18, | |
0x67, 0x33, 0xC0, 0xF0, 0xFF, 0x80, 0x04, 0x18, 0x20, 0xC1, 0x86, 0x0C, | |
0x10, 0x60, 0x83, 0x00, 0x38, 0xDB, 0x1E, 0x7D, 0x7C, 0xF1, 0xB6, 0x38, | |
0x31, 0xCB, 0x0C, 0x30, 0xC3, 0x0C, 0xFC, 0x7A, 0x30, 0xC3, 0x18, 0xC6, |
This file contains hidden or 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
// immediate fan speed | |
int fanRpm = (60000000 / float(pulseIn(tachPin, LOW, 100000))) * 0.5; | |
// no average yet, use last fan reading | |
if (avgRpm == 0) { | |
avgRpm = fanRpm; | |
} | |
// check array vals for first -1 | |
int emptyInd = -1; |
This file contains hidden or 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
#-- give root privileges to all db's --# | |
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'pass'; | |
#-- make a new user, w/ localhost & subnet access --# | |
CREATE USER 'db_user'@'localhost' IDENTIFIED BY 'pass'; | |
CREATE USER 'db_user'@'192.168.1.0/255.255.255.0' IDENTIFIED BY 'pass'; | |
#-- create new empty database --# | |
CREATE DATABASE plamp_db; |
This file contains hidden or 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
-v, --verbose increase verbosity | |
-q, --quiet suppress non-error messages | |
--no-motd suppress daemon-mode MOTD (see manpage caveat) | |
-c, --checksum skip based on checksum, not mod-time & size | |
-a, --archive archive mode; same as -rlptgoD (no -H) | |
--no-OPTION turn off an implied OPTION (e.g. --no-D) | |
-r, --recursive recurse into directories | |
-R, --relative use relative path names | |
--no-implied-dirs don't send implied dirs with --relative | |
-b, --backup make backups (see --suffix & --backup-dir) |