Skip to content

Instantly share code, notes, and snippets.

View drexlma's full-sized avatar
🌴
On vacation

Daniel Drexlmaier drexlma

🌴
On vacation
View GitHub Profile
@drexlma
drexlma / encoding.txt
Created June 12, 2024 17:52 — forked from Andrey2G/encoding.txt
Video Encoding with multiple resolutions
ffmpeg -i "c:/videos/sample.mp4
-map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0
-c:v libx264 -crf 22 -c:a aac -ar 48000
-filter:v:0 scale=w=480:h=360 -maxrate:v:0 600k -b:a:0 64k
-filter:v:1 scale=w=640:h=480 -maxrate:v:1 900k -b:a:1 128k
-filter:v:2 scale=w=1280:h=720 -maxrate:v:2 900k -b:a:2 128k
-var_stream_map "v:0,a:0,name:360p v:1,a:1,name:480p v:2,a:2,name:720p"
-preset slow -hls_list_size 0 -threads 0 -f hls -hls_playlist_type event -hls_time 3
-hls_flags independent_segments -master_pl_name "name-pl.m3u8"
"c:/videos/encoded/name-%v.m3u8"
@drexlma
drexlma / gist:8d0b9ed0eb8d729266b66641aadf824a
Created December 12, 2019 11:44 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.


Updated Apr 5 2019:

because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.

some other notes:

@drexlma
drexlma / zeugs
Last active November 25, 2019 13:45
sudo dd if=/dev/sdb of=./sdb.raw
VBoxManage convertdd sdb.raw sdb.vdi --format VDI
$ VBoxManage clonehd sdb.vdi sdb.raw --format RAW
sudo dd if=./sdb.raw of=/dev/sdb
@drexlma
drexlma / gist:7e9d2680bd8d40d56301bb3d275955cb
Last active March 31, 2019 11:06
OS-Upgrade for all Docker Container
for container in `docker ps -q`; do
docker inspect --format='{{.Name}}' $container;
docker exec -it $container date;
docker exec -it $container apt-get update;
docker exec -it $container apt-get upgrade;
done
@drexlma
drexlma / Controller-Incection
Created April 2, 2017 18:10 — forked from langhard/Controller-Incection
TYPO3 - CMS - Extbase - PersistenceManager
/**
* @var \TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface
* @inject
*/
protected $persistenceManager;