Skip to content

Instantly share code, notes, and snippets.

View FleXoft's full-sized avatar
😃

FLEISCHMANN György, _flex, Gyurci, FleXoft FleXoft

😃
View GitHub Profile
@gingerbeardman
gingerbeardman / uri.sh
Created May 1, 2023 16:29
Convert a file to data-uri
#!/usr/bin/env bash
echo "url('data:$(file -bN --mime-type "$1");base64,$(base64 < "$1")')"
@BenjaminPoncet
BenjaminPoncet / ffmpeg-wrapper
Last active February 19, 2024 17:18
Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD support. This project is no longer maintained: Please see the following projects: https://github.com/darknebular/Wrapper_VideoStation/ - https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher
#!/bin/bash
rev="12"
_log(){
echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log
}
_log_para(){
echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log
@hellais
hellais / gist:4552537
Last active March 9, 2024 13:34
Clear the logs of the all the files you downloaded in OSX (ref: www.tuaw.com/2012/02/14/mac-os-xs-quarantineevents-keeps-a-log-of-all-your-downloads/)
# To delete all the currently stored files
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent where LSQuarantineEventIdentifier like "%%";'
# To never store such information you can sym link it to dev null
ln -s /dev/null ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2