Skip to content

Instantly share code, notes, and snippets.

@lucascantor
lucascantor / youtube-channels-to-plex.sh
Last active September 3, 2021 03:45
Youtube Channels to Plex
#!/bin/bash
/path/to/youtube-dl --playlist-reverse --download-archive /path/to/download-archive.txt -i -o "%(uploader)s/%(playlist)s/%(playlist)s - S01E%(playlist_index)s - %(title)s [%(id)s].%(ext)s" -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --add-metadata --write-thumbnail --batch-file=/path/to/channel_list.txt
exit 0
@loganvolkers
loganvolkers / Byte Formatting for Google Sheets.md
Last active April 29, 2025 08:30
Byte formatting for Google Sheets
@shibaku
shibaku / Folder Path reference.scpt
Last active September 22, 2022 00:55
Applescript to return name, path, and path to parent folder of a given folder in Finder.
tell application "Finder"
set FolderPath to (choose folder) -- sets file path to folder you select
set ParentFolder to container of FolderPath -- sets the parent folder of the folder you select
set Foldername to name of folder FolderPath -- sets the folder name as text
display dialog FolderPath as text
display dialog ParentFolder as text
display dialog Foldername as text
@ccstone
ccstone / References For Learning & Using Applescript.md
Last active April 14, 2025 10:57
References For Learning & Using Applescript

REFERENCES FOR LEARNING & USING APPLESCRIPT Modified: 2018/06/19 18:47


NOTES

AppleScript is a rather peculiar scripting language to learn.

package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"net/url"
"os/exec"
"strconv"
@ZeroDragon
ZeroDragon / How to clone a git repo to an existing folder (not empty).md
Last active January 20, 2025 16:26
How to clone a git repo to an existing folder (not empty)
  1. First get to the existing directory
    $ cd my/folder/

  2. Now start a new git repository
    $ git init

  3. Identify if the current elements on the directory are needed or not and add them to the .gitignore file. When ready...
    $ vim .gitignore

  4. When ready create the first commit on the server

@ccstone
ccstone / BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
Last active March 25, 2025 18:03
BBEdit-TextWrangler Regular Expression Cheat-Sheet
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.