Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Erik Petersen AgentOak

  • Germany
View GitHub Profile
@AgentOak
AgentOak / skeleton2
Created Sep 11, 2019
SysVinit service skeleton using start-stop-daemon
View skeleton2
#!/bin/sh
#
# This init script is compatible with the LSB 4.1.0 Core Section 20.2.
# Modify the options above the vertical line only.
#
# This script was designed to be compatible with any daemon. Even if your
# program is not a daemon, you can specify "--background --make-pidfile" in
# START_OPTIONS to make it a daemon.
#
# Check out start-stop-daemon(8) for more options. All options can also be set
@AgentOak
AgentOak / youtube_formats.md
Last active Jun 8, 2021
Youtube Format IDs
View youtube_formats.md

Last updated: April 2021

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4
@AgentOak
AgentOak / VNCViewer_Login.ahk
Last active Sep 11, 2019
AutoHotKey script for writing long passwords into VNCviewers with broken paste
View VNCViewer_Login.ahk
#NoEnv
#NoTrayIcon
SendMode Input
SetBatchLines -1
; Ask for username and password
InputBox, username, VNCViewer Login, Username, , , , , , , , root
if Errorlevel ; User cancelled
ExitApp
InputBox, password, VNCViewer Login, Password, HIDE