Skip to content

Instantly share code, notes, and snippets.

View francoism90's full-sized avatar
😸
Cuddling the cat

François M. francoism90

😸
Cuddling the cat
View GitHub Profile
@francoism90
francoism90 / concat.sh
Last active July 9, 2018 16:31
Concat compatible video files using ffmpeg (in this case mp4)
#!/bin/sh
rm -rf .list.txt
for file in *; do
filename=$(basename -- "$file")
basename="${filename%.*}"
extension="${filename##*.}"
echo "file '$file'" >> .list.txt;
done
@francoism90
francoism90 / retrieve.py
Last active February 24, 2025 00:25
libtorrent - get seeds/peers + metadata without downloading (DHT/magnet)
#!/usr/bin/env python3
import libtorrent as lt
import time
import json
import os
def write_json(path, contents):
with open(path, 'w', encoding='utf-8') as f:
json.dump(contents, f, default=str, indent=4, sort_keys=True)
@francoism90
francoism90 / generator.php
Last active December 14, 2017 13:27
Laravel Seeder Generator KISS
<?php
/*
* Your settings here
*/
define('DB_DSN', 'mysql:host=localhost;dbname=mydb;charset=UTF8');
define('DB_USER', 'myuser');
define('DB_PASS', 'mypass');
define('DB_TABLE', 'mytable');
define('DB_OPTIONS', [
@francoism90
francoism90 / 98-smargo.rules
Created March 4, 2017 14:58
OSCam with DVB-ABI (Ziggo) and Smargo Smart Reader
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GROUP="video", MODE="0660", SYMLINK+="smargo"
@francoism90
francoism90 / qemu_win10x64.sh
Last active June 18, 2024 03:18
QEMU + Windows 10 x64 + KVM + IOMMU + AHCI + QXL & SPICE (as socket)
#!/bin/sh
qemu-system-x86_64 -enable-kvm -machine q35,accel=kvm \
-cpu host \
-m 4G \
-drive id=disk,file=/home/archie/Documents/Images/win10x64.img,if=none \
-drive file=/home/archie/Downloads/Win10_1709_English_x64.iso,index=3,media=cdrom \
-drive file=/home/archie/Downloads/drivers.iso,index=4,media=cdrom \
-device intel-iommu \
-device ich9-ahci,id=ahci \
-device ide-drive,drive=disk,bus=ahci.0 \