I hereby claim:
- I am 2b3pro on github.
- I am ianshen (https://keybase.io/ianshen) on keybase.
- I have a public key ASBGXS9wWgstUMxPeGcWjmuH0W7fe1E0D3MpTRiwXFIx1Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
The following assumes you have ffmpeg
installed on your Mac.
If you need to install it, please use Homebrew.
The settings for encoding for YouTube with ffmpeg can be found here and here.
There is no error checking here. It assumes that there are videos in the folder, and that they have mp4 extensions.
set the ClipURL to (the clipboard as string) | |
ignoring case | |
set curlCMD to "curl --stderr /dev/null \"http://tinyurl.com/api-create.php?url=" & ClipURL & "\"" | |
set tinyURL to (do shell script curlCMD) | |
return tinyURL | |
end ignoring |
// javascript:javascript:%20(function()%20{function%20delay(ms)%20{return%20new%20Promise(resolve%20=>%20setTimeout(resolve,%20ms));}async%20function%20fetchTranscript()%20{const%20showTranscriptButton%20=%20Array.from(document.querySelectorAll(%27button%27)).find(button%20=>%20button.textContent.includes(%27Show%20transcript%27)%20||%20button.getAttribute(%27aria-label%27)%20===%20%27Show%20transcript%27);if%20(showTranscriptButton)%20{showTranscriptButton.click();console.log(%22Clicked%20%27Show%20Transcript%27%20button%22);await%20delay(6000);const%20channelName%20=%20document.querySelector(%22ytd-video-owner-renderer%20div#text-container.ytd-channel-name%20.yt-simple-endpoint%22)?%20document.querySelector(%22ytd-video-owner-renderer%20div#text-container.ytd-channel-name%20.yt-simple-endpoint%22).innerText.trim()%20:%20%27Unknown%20Channel%27;const%20videoTitle%20=%20document.title.replace(%27%20-%20YouTube%27,%20%27%27);const%20publishDate%20=%20document.querySelectorAll(%22ytd-watch-info-text%20span%22)[ |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |