$ sudo nano /usr/local/bin/cpu-temp
#!/bin/bash
temp=$(| #!/bin/bash | |
| # Raspberry Pi Resilience Toolkit | |
| # Interactive installer for scheduled reboots, hardware watchdog, and emergency reset | |
| set -e | |
| # Colors for output | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[1;33m' |
| @import './reset.css'; | |
| /* @import url('@picocss/pico'); */ | |
| @import url('./bootstrap-4-utilities.min'); | |
| @import url('./pico-bootstrap-grid.min.css'); | |
| /* Pink Light scheme (Default) */ | |
| /* Can be forced with data-theme="light" */ | |
| [data-theme="light"], | |
| :root:not([data-theme="dark"]) { | |
| --background-color: #fffdef; |
| youtube.com###movie_player > div.ytp-gradient-top | |
| youtube.com###movie_player > div.ytp-chrome-top | |
| youtube.com###movie_player > div.ytp-gradient-bottom | |
| youtube.com###movie_player > div.ytp-chrome-bottom | |
| ! 18 Jul 2025 https://www.youtube.com | |
| ||i.ytimg.com/an/DS9hpqUEXsXUIcf0qDcBIA/featured_channel.jpg?v=667a546c$image | |
| #!/bin/bash | |
| #Stop Services | |
| /DietPi/dietpi/dietpi-services stop | |
| #Resize partition | |
| cat << _EOF_ | fdisk /dev/mmcblk0 | |
| p | |
| d | |
| 2 | |
| n |
| [Unit] | |
| Description=Service Description | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| ExecStartPre=/bin/sleep <TIME-IN-SECONDS> | |
| User=<USER> |
| const style = document.createElement('style'); | |
| style.textContent = '.app > div:not(:first-child) { visibility: hidden; }'; | |
| document.head.appendChild(style); | |
| function addCustomEvent() { | |
| const ADS_WIDTH = 320; | |
| document.addEventListener('resizecanvas', (e) => { | |
| // push the ads container outside of the viewport | |
| window.innerWidth = document.documentElement.clientWidth + ADS_WIDTH; | |
| }); |
Started with a fresh clean install of Gargoyle 1.13.x on the Netgear WNDR3700v4 router. This software image already includes USB basic support.
SSH into the router and installed tethering packages by issuing these commands at the command line prompt:
| #Located in :::: /lib/systemd/system/code-server.service | |
| [Unit] | |
| Description=code-server | |
| After=network.target | |
| [Service] | |
| Type=simple |
| #!/bin/bash | |
| dirbase="/var/www/" | |
| # cd $dirbase | |
| read -p "Current Directory as base? (y/N) " isCurrDir | |
| if [ "$isCurrDir" = "Y" ] || [ "$isCurrDir" = "y" ]; then | |
| dirpath=$(pwd) |