Skip to content

Instantly share code, notes, and snippets.

@WelkinVan
WelkinVan / sticky-block.html
Created November 10, 2023 01:10 — forked from ndiego/sticky-block.html
Sticky Block - js + CSS
<script type="text/javascript">
jQuery(document).ready(function($) {
// Only enable when the screen size is large enough for a sidebar
if ( $(window).width() > '1024' ) {
// Fix the block if our scroll position is below the top of the page - 1px to make transition more fluid.
var top = $('.sticky').offset().top - 1;
$(window).scroll(function(e) {
@WelkinVan
WelkinVan / ffmpeg-wrapper
Created February 20, 2020 05:34 — forked from BenjaminPoncet/ffmpeg-wrapper
Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD support (Installation instructions in 1st comment)
#!/bin/bash
_log(){
echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamhash} - $1" >> /tmp/ffmpeg.log
}
_log_para(){
echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamhash} - = &/" >> /tmp/ffmpeg.log
}