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
import os | |
import whisper | |
from pathlib import Path | |
from concurrent.futures import ProcessPoolExecutor | |
#Requirements: | |
#pip install -U openai-whisper | |
#winget install ffmpeg | |
#copy ffmpeg.exe from this folder | |
#C:\Users\foo\AppData\Local\Microsoft\WinGet\Packages\Gyan.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-6.0-full_build\bin\ffmpeg.exe |
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
Install QGIS | |
Layer -> Add Layer -> XYZ Layer -> New | |
URL: | |
https://heatmap-external-b.strava.com/tiles-auth/run/hot/{z}/{x}/{y}.png?Key-Pair-Id=VALUE&Policy=VALUE&Signature=VALUE | |
Get the three VALUEs above by logging into Strava and inspecting the site cookies (F12 in Chrome or Firefox). | |
Max Zoom Level: 23 |
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
# from https://labs.f-secure.com/tools/tcp-over-file-tunnel/ | |
import sys | |
import socket | |
import threading | |
import base64 | |
import time | |
import binascii | |
import mutex | |
import signal |
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
//Read-write test (non-destructive) | |
badblocks -nsv /dev/device -o badblocks.txt | |
//Read-write test (warning: destructive) | |
badblocks -wsv /dev/device -o badblocks.txt |
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
Ventoy a USB drive | |
Copy Ubuntu | |
Boot Ubuntu and 'Try' instead of install | |
chmod a+x ./Beyond-All-Reason-1.1824.0.AppImage | |
./Beyond-All-Reason-1.1824.0.AppImage | |
Might require the following libraries: | |
sudo apt update //might not be required |
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
Install Xming in Windows 10 | |
Using Putty, select Connection -> SSH -> X11 -> Enable X11 forwarding | |
In Linux, echo $DISPLAY | |
Confirm it's DISPLAY=:0.0 | |
If not: | |
export DISPLAY=:0.0 | |
or |
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
ddrescue /dev/sda sda.img sda.img.log | |
--interpret ddrescue log | |
ddrescuelog --show-status sda.img.log |
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
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" helloworld.cs |
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
The following settings appear to result in a file that's not corrupted when the user logs off or shuts down without first stopping the OBS recording. | |
Recording Format: MP4 | |
Custom Muxer Settings: movflags=frag_keyframe min_frag_duration=1000000 |
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
ddrescue | |
photorec | |
photorec drive.img | |
testdisk | |
Seems to just repair file systems | |
foremost | |
- Pointed to drive image |