Skip to content

Instantly share code, notes, and snippets.

View fiddyschmitt's full-sized avatar

Fidel Perez-Smith fiddyschmitt

  • Brisbane, Australia
View GitHub Profile
C:\Program Files\Wireshark
//remove VLAN tags
editcap -F pcap -L -C 12:4 "packets.pcap" "packets-1.pcap"
//change source & destination IPs
C:\Portable\bittwist-win-2.0\src
./bittwiste -I "packets-1.pcap" -O "packets-2.pcap" -T ip -s 192.168.1.1 -d 192.168.1.50
@fiddyschmitt
fiddyschmitt / gist:216258e3ce164106500814d7cc6e7638
Created October 11, 2023 01:31
Block/adjust DNS use of an application
ForceBindIP
Memory faulty?
Run memtest86
SSD faulty?
//Read-write test (non-destructive)
badblocks -nsv /dev/device -o badblocks.txt
CPU overheating / thermal paste not effective?
Check temperature with Coretemp
@fiddyschmitt
fiddyschmitt / speech_to_text.py
Last active April 22, 2025 04:08
Generate subtitles/captions for MP4 file using OpenAI Whisper
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
@fiddyschmitt
fiddyschmitt / Strava Heatmap to KML.txt
Last active February 2, 2025 19:01
Strava Heatmap to KML
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
@fiddyschmitt
fiddyschmitt / file_comm.py
Last active January 27, 2023 03:17 — forked from ydf/file_comm.py
tcp over file python
# 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
//Read-write test (non-destructive)
badblocks -nsv /dev/device -o badblocks.txt
//Read-write test (warning: destructive)
badblocks -wsv /dev/device -o badblocks.txt
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
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