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 | |
| # For harddisks that have bad sectors. | |
| # It overwrites the last bad sector based on SMART test reporting and starts a new selective test from there. | |
| # To start from the last error run "./fixdisk.sh sda" | |
| # To start from a specific sector run "./fixdisk.sh sda 2906890725" (overwrites this sector) | |
| # To start from the first sector run "./fixdisk.sh sda min" | |
| # Check if running as root | |
| if [ "$(id -u)" -ne 0 ]; then |
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
| #Requires AutoHotkey v2.0 | |
| ; This script creates a dark mode for specific windows by inverting their colors. | |
| ; It uses the Windows Magnifier in the background for the color inverting, but it only inverts just the rectangle in place | |
| ; of the specific windows, NOT the whole screen like the Magnifier applicaion does. This is possible through DLL calls. | |
| ; Big thanks to the original source at https://www.autohotkey.com/boards/viewtopic.php?p=563023#p563023. | |
| ; Requirements: | |
| ; - AutoHotkey needs to be installed in C:\Program Files (or use the workaround from https://www.reddit.com/r/AutoHotkey/comments/16ux144/ui_access_without_reinstalling_in_program_files_v2/). | |
| ; - In the 'Launch Settings' of 'AutoHotkey Dash' you need to enable 'UI Access'. |
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 python3 | |
| # vim: expandtab sw=4 ts=4 | |
| """ | |
| FRITZ!OS WebGUI Login | |
| Get a sid (session ID) via PBKDF2 based challenge response algorithm. | |
| Fallback to MD5 if FRITZ!OS has no PBKDF2 support. | |
| AVM 2020-09-25 | |
| Code from https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AVM_Technical_Note_-_Session_ID_deutsch_2021-05-03.pdf | |
| added a function to reboot the router |