Skip to content

Instantly share code, notes, and snippets.

@phnahes
phnahes / convert.sh
Last active October 27, 2023 16:33
Audio and Video Encoding for Pionner DVH-8580AVBT to play movies from USB
# Audio and Video Encoding for Pionner DVH-8580AVBT to play movies from USB
ffmpeg -i source_video.mp4 \
-c:v libxvid \
-b:v 192k \
-s 640x480 \
-ar 44100 \
-ac 2 \
-b:a 192k \
destination_video.avi
@phnahes
phnahes / convert.sh
Created November 1, 2023 18:00
# Audio and Video Encoding for Pionner AVH-P3180DVD to play movies from USB/CD
# Audio and Video Encoding for Pionner AVH-P3180DVD to play movies from USB/CD
ffmpeg -i source_video.mp4 \
-c:v mpeg4 \
-q:v 5 \
-tag:v DIVX \
-s 640x480 \
-c:a libmp3lame \
-q:a 5 \
-ac 2 \
#!/usr/bin/env python3
'''
VW XOR Calculator
How to use:
$ python3 vw_xor_calculator.py --file Car/extract/FD_7100FLASHDATA --start 0x32C --end 0x1234 --key 0xA5A5A5A5
Arguments:
@phnahes
phnahes / binary-compare.py
Created April 28, 2025 18:50
Compare two binary files and show the differences (byte offset and values).
#!/usr/bin/env python3
"""
compare_bins.py - Compare two binary files and print the differences.
Usage:
python compare_bins.py original.bin modified.bin
Example output:
Offset 0x1234: 56 → 78
@phnahes
phnahes / youtube-playlist-downlaoder.sh
Created June 10, 2025 19:03
Download Youtube Playlist mp3 files
#!/bin/bash
# URL da playlist
PLAYLIST_URL="https://www.youtube.com/watch?v=&list=RDQMryGw58F5QcU"
# Diretório de destino para os arquivos
DEST_DIR="musicas"
mkdir -p "$DEST_DIR"
# Baixar a lista de URLs e nomes das faixas