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
############################################################################################ | |
# # | |
# GET EVENT LOGS FROM NETGEAR CM600 ROUTER/MODEM IN CSV FORMAT # | |
# CULMINATION OF: # | |
# https://stackoverflow.com/questions/20383924/how-to-access-netgear-router-web-interface # | |
# https://stackoverflow.com/users/1777330/murrgon # | |
# https://gist.github.com/DexterHaslem/d0365dd4cbbcceac22a002fa981beaae # | |
# # | |
# PYTHON 2.7 # | |
############################################################################################ |
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
#!/bin/bash | |
#set -xv | |
DISPLAY=:0.0 | |
export DISPLAY=:0.0 | |
export XAUTHORITY=/home/pi/.Xauthority | |
m=0 | |
action="" | |
min=$(date +"%M") | |
times=(00 05 10 15 20 25 30 35 40 45 50 55) |
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
# Powershell Script | |
# Name: Save_Bookmarks_and_Export_Installed_Apps.ps1 | |
# Date: 2022-06-02 | |
# Ver: 1.3 | |
################################################################################################# | |
# | |
# PLEASE READ ME FIRST !!!! | |
# | |
# PLEASE DEFINE YOUR OWN VARIABLES BEFORE RUNNING |
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
#!/bin/bash | |
# NOTE: Requires ddcutil | |
# sudo apt install ddcutil -y | |
# Edit /boot/config.txt and replace fkms with kms, then reboot | |
# Call using screendim.sh -b 70 -c 70 | |
# Such as in sudo's crontab to bring the screens "alive" at 6am: | |
# 0 6 * * * /home/pi/scripts/screendim.sh -b 70 -c 70 | |
# | |
# 70 being a number that you are visually comfortable with, for each setting | |
# ddcutil detect <-- To get the displays |
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
#!/bin/bash | |
# Convert your directory of webm files to mp3 automatically | |
D="/your_folder_here" | |
echo $D | |
while IFS= read -r -d '' file; do | |
echo "Processing $file" >> "$D/converted.txt" | |
sleep 1 | |
ffmpeg -nostdin -i "$file" -vn -ab 320k -ar 48000 -y "${file%.*}.mp3" | |
rm "$file" |
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
#!/bin/bash | |
IFS='' | |
echo -n "Enter character to remove: " | |
read -r rename | |
while true; do | |
read -p "The character to remove is \""${rename}"\" - Is this correct? " yn | |
case $yn in | |
[Yy]* ) for i in *; do | |
if [[ "$i" == *"_"* ]];then | |
echo "Found a file...."; |
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
#!/bin/bash | |
IFS='' | |
echo -n "Enter text to rename: " | |
read -r rename | |
echo -n "Enter filetype to search (txt, jpg, pdf, etc): " | |
read ftype | |
while true; do | |
read -p "The text to rename is \""${rename}"\" and the filetype is \""${ftype}"\" - Is this correct? " yn | |
case $yn in | |
[Yy]* ) for i in *.$ftype; do |
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
#!/usr/bin/python | |
import os | |
import time | |
if os.path.isdir('/sys/bus/w1/devices/28-011111ffffff/'): | |
os.system('/sbin/modprobe w1-gpio') | |
os.system('/sbin/modprobe w1-therm') | |
temp_sensor = '/sys/bus/w1/devices/28-011111ffffff/w1_slave' |
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
d3-diagram.html | |
-------------------------------------------------------------------- | |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<head> | |
<style> | |
body {font-family: 'Arial'; | |
background: #000000;} | |
</style> | |
<svg width="960" height="600"></svg> |
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
/usr/lib/nagios/plugins/check_rasp_temp | |
--------------------------------------------------------- | |
#!/bin/bash | |
# Adapted from check_nagios_latency | |
VCGENCMD="/opt/vc/bin/vcgencmd" | |
# Prints usage information | |
usage() { |
NewerOlder