Skip to content

Instantly share code, notes, and snippets.

@manueldev
manueldev / ffmpeg_dash_to_hls.txt
Created February 2, 2023 14:25
FFmpeg command for Mpeg Dash mpd to HLS streamcopy.
ffmpeg -hide_banner -loglevel 24 -fflags +igndts -i "http://mpd-link" -map 0:2 -map 0:3 -c copy -c:a aac -b:a 128k -af aresample=async=1 -f hls -hls_time 3 -hls_list_size 5 -segment_list_flags +live -hls_flags independent_segments+delete_segments -hls_segment_type mpegts -hls_segment_filename data_chv_%02d.ts master_chv.m3u8
@manueldev
manueldev / gist:e66d6947dc288a9ebefcdcd395bc834d
Created November 22, 2022 21:49
disable microsoft edge updates
C:\Program Files (x86)\Microsoft\EdgeUpdate
rename microsoftedgeupdate.exe
@manueldev
manueldev / gist:c1e89887b3ab523e455a147ef45e0ade
Created September 27, 2022 10:30
clear oembed wordpress cache
DELETE FROM `wp_postmeta` WHERE `meta_key` LIKE '%_oembed%'
@manueldev
manueldev / gist:2c31f4d92f152799dda2571b9351cd1b
Created July 27, 2022 00:56
How to fix: The symbolic link cannot be followed because its type is disabled
fsutil behavior query SymlinkEvaluation
fsutil behavior set SymlinkEvaluation R2R:1
fsutil behavior set SymlinkEvaluation R2L:1
@manueldev
manueldev / gist:bf076e3f7977364149d09cac7ea0f163
Created July 19, 2022 08:35
forza ups tracker passwords
5242-87f6-64re-di8d-986u
111296
@manueldev
manueldev / gist:fc325c86ab322603c2ae31cff4606402
Created May 10, 2022 16:43
Convert Opus file to Mp3 with FFmpeg from windows context menu.
REG ADD "HKCR\VLC.opus\Shell\Convert to MP3\command" /VE /T REG_EXPAND_SZ /D "ffmpeg.exe -i \"%1\" -ab 128k \"%1.mp3\""
@manueldev
manueldev / liquidaciones.sh
Last active February 2, 2024 03:47
comandos interesantes en bash
Renombra los archivos agregando "LIQ.2" al comienzo
for f in *;do mv -v "$f" "LIQ.2 ${f%.*}.${f##*.}";done
Borra todas las carpetas con x nombre:
find . -type d -name "LIQUIDACIONES 2024" -exec rm -r {} \;
Crea una carpeta "LIQUIDACIONES 2024" en cada empleado menos en finiquitados:
find * -maxdepth 0 -type d ! -name "FINIQUITADOS" -exec mkdir -p {}/LIQUIDACIONES\ 2024 \;
Este comando considera la estructura que proporcionaste, toma el tercer elemento como el segundo nombre y el cuarto elemento como el apellido, y genera el nuevo nombre utilizando el primer apellido y el primer nombre. Ejecútalo desde el directorio correcto y realiza pruebas en un conjunto de archivos antes de aplicarlo a tus archivos principales.
https://www.mls-software.com/opensshd.html
openssh windows installer
shutdown.exe /f /r /t 1
@manueldev
manueldev / icecast.xml
Created November 26, 2021 17:16
icecast kh windows SSL HTTPS
Download https://certifytheweb.com/
Certificate: add your domain
Authorization: http-01, C:\program files\icecast kh
Deployment: No Deployment
Tasks: add Deploy to generic server (mult purpose).
Task Parameters:
C:\Program Files\Icecast KH\cert.pem
C:\Program Files\Icecast KH\privkey.pem
C:\Program Files\Icecast KH\fullchain.pem
C:\Program Files\Icecast KH\chain.pem