Compare commits
2 Commits
f70bc8b9cd
...
6df4a1e506
Author | SHA1 | Date | |
---|---|---|---|
6df4a1e506 | |||
10c6e8e06c |
33
aliases
33
aliases
|
@ -365,7 +365,7 @@ function my_transcribe_video() {
|
|||
# catches most words. Small and medium can do better word detection at
|
||||
# times, but suffer from bad punctuation. Medium is particularly bad and
|
||||
# not adding commas and periods.
|
||||
transcribe-video "$file" "$output" base tiny
|
||||
transcribe-video "$file" "$output" tiny base
|
||||
}
|
||||
|
||||
function my_transcribe_video_all_models() {
|
||||
|
@ -511,15 +511,17 @@ download_youtube_playlist_list() {
|
|||
printf "${BOLD}Downloading Youtube playlist video list\n\n${NORMAL}"
|
||||
|
||||
local cmd="yt-dlp.exe --ignore-errors -O \"%(playlist_index)s-%(title)s--%(id)s\" --skip-download $opts $url"
|
||||
eval $cmd 1>"${output_name}.txt" # Need to eval in order to preserve the quotes wrapping the filename format string.
|
||||
eval $cmd 1>"${output_name}.txt" # Need to eval in order to preserve the quotes wrapping the filename format string.
|
||||
|
||||
printf "${BOLD}Finished downloading the playlist video list\n${NORMAL}"
|
||||
}
|
||||
|
||||
download_youtube_uploads_list() {
|
||||
local url="$1"
|
||||
local output_name="$2"
|
||||
shift 2
|
||||
local include_descriptions="$1"
|
||||
|
||||
local url="$2"
|
||||
local output_name="$3"
|
||||
shift 3
|
||||
local opts="$@"
|
||||
|
||||
if [[ $url == "" || $output_name == "" ]]; then
|
||||
|
@ -527,10 +529,17 @@ download_youtube_uploads_list() {
|
|||
return
|
||||
fi
|
||||
|
||||
printf "${BOLD}Downloading Youtube uploads list\n\n${NORMAL}"
|
||||
local cmd=""
|
||||
|
||||
local cmd="yt-dlp.exe --ignore-errors -O \"%(video_autonumber)s-%(upload_date>%Y-%m-%d)s--%(title)s--%(id)s\" --skip-download $opts $url"
|
||||
eval $cmd 1>"${output_name}.txt" # Need to eval in order to preserve the quotes wrapping the filename format string.
|
||||
if [[ $include_descriptions == "1" ]]; then
|
||||
printf "${BOLD}Downloading Youtube uploads list with descriptions\n\n${NORMAL}"
|
||||
cmd="yt-dlp.exe --ignore-errors -O \"@@@ %(video_autonumber)s-%(upload_date>%Y-%m-%d)s--%(title)s--%(id)s\" --skip-download --get-description $opts $url"
|
||||
else
|
||||
printf "${BOLD}Downloading Youtube uploads list\n\n${NORMAL}"
|
||||
cmd="yt-dlp.exe --ignore-errors -O \"%(video_autonumber)s-%(upload_date>%Y-%m-%d)s--%(title)s--%(id)s\" --skip-download $opts $url"
|
||||
fi
|
||||
|
||||
eval $cmd 1>"${output_name}.txt" # Need to eval in order to preserve the quotes wrapping the filename format string.
|
||||
|
||||
printf "${BOLD}Finished downloading the upload list\n${NORMAL}"
|
||||
}
|
||||
|
@ -918,7 +927,8 @@ download_from_m3u8() {
|
|||
#-------------------------------------------------
|
||||
# YouTube Vid DL
|
||||
#-------------------------------------------------
|
||||
alias yt-list='download_youtube_uploads_list '
|
||||
alias yt-list='download_youtube_uploads_list 0 '
|
||||
alias yt-list-desc='download_youtube_uploads_list 1 '
|
||||
|
||||
alias yt='download_youtube_vid "" $SHORTNAME_OFF $TRANSCRIBE_OFF'
|
||||
alias yt-shortname='download_youtube_vid "" $SHORTNAME_ON $TRANSCRIBE_OFF'
|
||||
|
@ -1126,7 +1136,7 @@ alias gaup='git add --update -p'
|
|||
alias gb='git branch -v'
|
||||
alias gbb='git bisect bad'
|
||||
alias gbd='git branch -D'
|
||||
alias gbdr='git branch -Dr'
|
||||
alias gbdr='git branch -Dr' # Delete a remote tracking branch; useful when the remote no longer exists and branch pruning isn't removing the lingering tracking branches.
|
||||
alias gbg='git bisect good'
|
||||
alias gbl='git branch --all'
|
||||
alias gblm='git blame -wMC'
|
||||
|
@ -1227,10 +1237,11 @@ alias gsp3='git stash pop stash@{3}'
|
|||
alias gsp4='git stash pop stash@{4}'
|
||||
alias gsp5='git stash pop stash@{6}'
|
||||
alias gsp6='git stash pop stash@{7}'
|
||||
alias gt='git tag -s' # Signed
|
||||
alias gt='git tag' # Unsigned
|
||||
alias gta='git tag -a'
|
||||
alias gtd='git tag -d'
|
||||
alias gtl='git tag -l'
|
||||
alias gts='git tag -s' # Signed
|
||||
alias gx='git reset --hard'
|
||||
alias gxx='git reset --hard HEAD~1'
|
||||
alias gxom='git reset --hard origin/master'
|
||||
|
|
4
windows/disable-windows-platform-binary-table.reg
Normal file
4
windows/disable-windows-platform-binary-table.reg
Normal file
|
@ -0,0 +1,4 @@
|
|||
Windows Registry Editor Version 5.00
|
||||
|
||||
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager]
|
||||
"DisableWpbtExecution"=dword:00000001
|
|
@ -1,6 +1,15 @@
|
|||
# Windows Setup
|
||||
|
||||
* Make a system restore point after a fresh install
|
||||
* Make a system restore point after a fresh install.
|
||||
|
||||
* Disable Windows Platform Binary Table
|
||||
* This is a system Windows made for hardware vendors to inject firmware to the OS drive, running it at boot time.
|
||||
It's a huge security hole! Vendors can do things like download software, auto update the mobo firmware, etc.
|
||||
In 2023, Gigabyte was caught using this to download exe's from their server over an http connection! (keep in mind
|
||||
that they're corporate systems have been hacked multiple times in the last year). Anyway, this feature is fucking
|
||||
dumb and you can be sure that all mobo vendors are using this stupid shit. I don't blame them though since Microsoft
|
||||
built this for them. There's no way to stop this from happening other than to disable the platform entirely.
|
||||
* Run `disable-windows-platform-binary-table.reg` and reboot.
|
||||
|
||||
* Change PC name and reboot
|
||||
* Open settings -> System -> About -> Rename this PC
|
||||
|
|
Loading…
Reference in New Issue
Block a user