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
  • Foxws
  • Netherlands
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 / 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"