$ sudo nano /usr/local/bin/cpu-temp
#!/bin/bash
temp=$(
@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 |
#!/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) |
@echo off | |
adb.exe kill-server | |
netsh wlan show interfaces | Findstr /c:"Signal" && set "CStatus=true" || set "CStatus=false" | |
for /f "tokens=2,3 delims={,}" %%a in ('"WMIC NICConfig where IPEnabled="True" get DefaultIPGateway /value | find "I" "') do set "location=%%a" | |
set location=%location:"=% |