Skip to content

Instantly share code, notes, and snippets.

ivan-leschinsky /
Created May 9, 2023 06:39 — forked from zonca/
FFMPEG scripts to speedup and concatenate videos, useful for prerecording videos for conferences
ffmpeg -safe 0 -f concat -i <(find . -type f -name '*.mp4' -printf "file '$PWD/%p'\n" | sort) -c copy output.mp4
ivan-leschinsky / synology_find_recycle.bash
Last active February 21, 2023 13:00
find size of recycles on Synology DSM
View synology_find_recycle.bash
find / -maxdepth 3 -type d -name "#recycle" | xargs du -sh
ivan-leschinsky / !
Created December 17, 2022 17:05 — forked from ilude/
How to setup a community version of Proxmox VE 5.x-7.x
View !
# copy and paste oneliner below to run
# curl -s$(date +%s) | /bin/bash -s
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
# Add PVE Community Repo
echo "deb $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
# setup no nag script to run on upgrade
ivan-leschinsky / Video encoding with
Created November 17, 2022 19:49 — forked from Aldaviva/Video encoding with
Video encoding with FFmpeg, a great tool with the shittiest user interface you can imagine: lots of confusing, unmemorable, unintuitive, undiscoverable command-line flags
View Video encoding with

Remux without transcoding

ffmpeg -i input.ts -c copy output.mp4

x264, AAC

ffmpeg -i input.avi -c:v libx264 -preset slow -crf 18 -pix_fmt yuvj420p -c:a aac -b:a 160k output.mp4
ivan-leschinsky /
Last active January 26, 2022 19:04
proxmox ha install
#!/usr/bin/env bash
# original: bash -c "$(wget -qLO -"
# mine: bash -c "$(wget -qLO -"
# Setup script environment
set -o errexit #Exit immediately if a pipeline returns a non-zero status
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
set -o nounset #Treat unset variables as an error
set -o pipefail #Pipe will exit with last non-zero status if applicable
shopt -s expand_aliases
View yosemite ntfs read+write.txt
Remove osxfuse if installed via homebrew:
> brew uninstall osxfuse
Install osxfuse binary and choose to install the MacFUSE compatibility layer:
Reboot (optional but recommended by osxfuse)
Install ntfs-3g via homebrew:
> brew update && brew install ntfs-3g
ivan-leschinsky /
Created March 29, 2019 21:18
How to add SSH access by pubkey for synology
ivan-leschinsky /
Last active November 1, 2018 11:05
how to user debugger in the rails webpacker setup