Skip to content

Instantly share code, notes, and snippets.

View michealespinola's full-sized avatar
:octocat:

Micheal Espinola michealespinola

:octocat:
  • Las Vegas, NV
  • 21:29 (UTC -07:00)
View GitHub Profile
@mietzen
mietzen / SynoCommunity-autoupdate.md
Last active May 4, 2025 07:51
A shell script to auto update SynoCommunity Packages

Auto Update SynoCommunity Packages

I always had the problem that synology doesn't let us auto update 3rd party packages such as the ones from SynoCommunity, so I wrote a shell script to auto update SynoCommunity Packages:

#! /bin/bash -e

PATH="/bin:/usr/syno/bin:${PATH}"

SYSTEM_PKGS=$(synopkg checkupdateall)
@MartinEesmaa
MartinEesmaa / youtube_formats.md
Last active August 12, 2025 03:01 — forked from AgentOak/youtube_formats.md
Youtube Format IDs

Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.

See the credits and also special thanks in below.

Last updated: 22 July 2025

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

@erickyun
erickyun / ytdl trimmerV1.bat
Last active February 7, 2024 16:11
Download only part of a youtube video
@setlocal
@echo off
set /p "URL=Enter URL here: "
set /p "START_TIME=Enter START_TIME here: "
set /p "END_TIME=Enter END_TIME here: "
set /p "END_FILENAME=Enter END_FILENAME here: "
set "VIDEO_URL= "
#!/usr/bin/env bash
set -e
# Purpose: Update Server certificates
# find certificates that might need an update
# cd / && find . -name "*.pem"
declare -a CERT_DIRS
CERT_DIRS=(\ '/usr/syno/etc/certificate/AppPortal/VideoStation/' \ '/usr/syno/etc/certificate/AppPortal/AudioStation/' \ '/usr/syno/etc/certificate/AppPortal/FileStation/' \ '/usr/syno/etc/certificate/AppPortal/DownloadStation/' \ '/usr/local/etc/certificate/DirectoryServer/slapd/' \ '/usr/local/etc/certificate/LogCenter/pkg-LogCenter/' \ '/usr/local/etc/certificate/WebStation/vhost_225bb9ca-d884-44dd-a0f9-83ff557b95d6/' \ '/usr/local/etc/certificate/CloudStation/CloudStationServer/' \ '/usr/syno/etc/certificate/smbftpd/ftpd/' \ '/usr/syno/etc/certificate/system/FQDN/' \ '/usr/syno/etc/certificate/system/default/' )
urlbase='https://cert.example.com/'
filebase='synology'
base="${urlbase}${filebase}"
@Gustavo-Kuze
Gustavo-Kuze / force-ctrl-c-v.md
Last active July 27, 2025 08:10
Enable copy and paste in a webpage from the browser console
javascript:(function(){
  allowCopyAndPaste = function(e){
  e.stopImmediatePropagation();
  return true;
  };
  document.addEventListener('copy', allowCopyAndPaste, true);
  document.addEventListener('paste', allowCopyAndPaste, true);
  document.addEventListener('onpaste', allowCopyAndPaste, true);
})(); 
@sidneys
sidneys / youtube_format_code_itag_list.md
Created January 20, 2018 11:12
YouTube video stream format codes itags

YouTube video stream format codes

Comprehensive list of YouTube format code itags

itag Code Container Content Resolution Bitrate Range VR / 3D
5 flv audio/video 240p - - -
6 flv audio/video 270p - - -
17 3gp audio/video 144p - - -
18 mp4 audio/video 360p - - -
22 mp4 audio/video 720p - - -
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active July 23, 2025 11:47
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@JonnyWong16
JonnyWong16 / add_label_recently_added.py
Last active December 4, 2024 23:47
Automatically add a label to recently added items in your Plex library
Updated script link:
https://github.com/blacktwin/JBOPS/blob/master/utility/add_label_recently_added.py
@blacktwin
blacktwin / delete_watched_TV.py
Created April 10, 2017 14:02
From a list of TV shows, check if users in a list has watched shows episodes. If all users in list have watched an episode of listed show, then delete episode
"""
From a list of TV shows, check if users in a list has watched shows episodes.
If all users in list have watched an episode of listed show, then delete episode.
"""
import requests
import sys
import os
@AgentOak
AgentOak / youtube_formats.md
Last active July 19, 2025 02:59
Youtube Format IDs

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