Skip to content

Instantly share code, notes, and snippets.

@frogger1805
frogger1805 / ffmpeg-wrapper
Created September 21, 2022 23:29 — forked from BenjaminPoncet/ffmpeg-wrapper
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
@frogger1805
frogger1805 / bot_discord.py
Created June 27, 2022 17:52
mon 1er obt discord pour server 7dtd
# Imports
import discord
from discord.ext import commands
import operator
# Credentials
TOKEN = 'OTg5MTEzNzk5NzQ5NTYyNDA5.GK4kHY.saVA3UDLAdyh2ZvuPWt03FYyka2Ui4xA9dBLng'
# Imports
import discord
from discord.ext import commands
import operator
# Credentials
TOKEN = 'OTg5MTEzNzk5NzQ5NTYyNDA5.GK4kHY.saVA3UDLAdyh2ZvuPWt03FYyka2Ui4xA9dBLng'
# -*- coding: utf-8 -*-
# FreeCAD sheet metal workbench: addWall tool.
# (c) 2014 Javier Martínez García
#***************************************************************************
#* (c) Javier Martínez García 2014 *
#* *
#* This program is free software; you can redistribute it and/or modify *
#* it under the terms of the GNU Lesser General Public License (LGPL) *
#* as published by the Free Software Foundation; either version 2 of *