Skip to content

Instantly share code, notes, and snippets.

View cargabsj175's full-sized avatar

Carlos Sánchez cargabsj175

View GitHub Profile
@cargabsj175
cargabsj175 / ffmpeg.md
Created December 17, 2023 06:46 — forked from buendias-dev/ffmpeg.md
Guía rápida de ffmpeg

ffmpeg es una utilidad que permite manipular vídeos desde la línea de comandos. Créeme si te digo que no hay una manera más rápida de editar vídeos que con ffmpeg.

Recortar la duración de un vídeo

Desde el segundo 3, al minuto y 20 segundos de un vídeo

ffmpeg -i entada.mp4 -ss 00:00:03 -t 00:01:20 -o salida.mp3

Desde el minuto 5:10 del vídeo hasta el minuto 15:30 sin recodificar

@cargabsj175
cargabsj175 / nds_controller.c
Created October 7, 2024 14:08
Mificaciones para los DSi con los botones superiores estropeados
#include <PR/gbi.h>
#include "nds_include.h"
#include "nds_renderer.h"
#include "engine/math_util.h"
#include "lib/src/osContInternal.h"
#define STICK_RADIUS 28
extern u8 nds_audio_state;
@cargabsj175
cargabsj175 / snippet_shorcode_div.php
Created January 14, 2025 18:32
incrustar un shorcode en una etiqueta div indicada
// 1. Generar el contenido del shortcode en el servidor y añadirlo en un contenedor oculto
function insertar_shortcode_en_contenido($content) {
// Solo ejecutar en posts individuales del tipo 'property'
if (!is_singular('property')) {
return $content;
}
// Generar el contenido del shortcode
$mi_shortcode = do_shortcode('[dynamic_button]');
@cargabsj175
cargabsj175 / jzIntvImGui_linux_ini2home.patch
Created September 8, 2025 14:26
This patch allows you to organize *.ini files in the $HOME/.local/* directory.
diff -Naur jzIntvImGui.orig/app/libs/imgui/imgui.cpp jzIntvImGui.new/app/libs/imgui/imgui.cpp
--- jzIntvImGui.orig/app/libs/imgui/imgui.cpp 2025-09-08 01:00:13.609337465 -0300
+++ jzIntvImGui.new/app/libs/imgui/imgui.cpp 2025-09-08 07:25:16.317197041 -0300
@@ -764,6 +764,8 @@
// [SECTION] INCLUDES
//-------------------------------------------------------------------------
+
+
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
@cargabsj175
cargabsj175 / jzintvimgui.desktop
Created September 8, 2025 14:45
Desktop launcher for jzIntvImGui
[Desktop Entry]
Name=jzIntvImGui
GenericName=Emulador de Intellivision
Comment=Una interfaz gráfica multiplataforma para jzIntv
Exec=jzIntvImGui
Icon=jzIntvImGui
Terminal=false
Type=Application
Categories=Game;Emulator;
StartupNotify=false