diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2025-08-31 21:46:11 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2025-08-31 21:46:11 -0400 |
| commit | bb4010e31c79d2716098843f7fe9b38c969f0950 (patch) | |
| tree | 10ed7f8f1fbfda3f6d0d6d9f528911a1416fcc74 | |
| parent | b0eb9b97fe9466d92927a5e746054921e44eaa0c (diff) | |
newsboat adds youtube urls to a file for downloading
| -rw-r--r-- | .config/.profile | 3 | ||||
| -rw-r--r-- | .config/newsboat/config | 47 | ||||
| -rw-r--r-- | .config/newsboat/urls | 54 | ||||
| -rwxr-xr-x | .config/shells/dirrc | 7 | ||||
| -rw-r--r-- | .config/shells/zsh/.zshrc | 3 | ||||
| -rwxr-xr-x | runs/cross-compiler | 75 | ||||
| -rwxr-xr-x | scripts/yt | 35 |
7 files changed, 140 insertions, 84 deletions
diff --git a/.config/.profile b/.config/.profile index 9f9c102..9253841 100644 --- a/.config/.profile +++ b/.config/.profile @@ -1,5 +1,5 @@ export PLAN9=$HOME/personal/plan9 -export PATH=/opt/MaXX/bin:/usr/dt/bin:~/personal/bin:~/.local/bin:$PATH:$HOME/go/bin:$PLAN9/bin +export PATH="/opt/MaXX/bin:/usr/dt/bin:~/personal/bin:~/.local/bin:$PATH:$HOME/go/bin:$PLAN9/bin" export EDITOR=nvim export HOMEBREW_EDITOR=nvim @@ -21,6 +21,5 @@ export XDG_DATA_HOME=$HOME/.local/share # Moving Folder and Files from ~/ export LESSHISTFILE=- -export ENV="$XDG_CONFIG_HOME"/shells/ksh/kshrc export ZDOTDIR="$XDG_CONFIG_HOME"/shells/zsh diff --git a/.config/newsboat/config b/.config/newsboat/config new file mode 100644 index 0000000..f654fb3 --- /dev/null +++ b/.config/newsboat/config @@ -0,0 +1,47 @@ +#show-read-feeds no +auto-reload yes + +bind-key j down +bind-key k up +bind-key j next articlelist +bind-key k prev articlelist +bind-key J next-feed articlelist +bind-key K prev-feed articlelist +bind-key G end +bind-key g home +bind-key d pagedown +bind-key u pageup +bind-key l open +bind-key h quit +bind-key a toggle-article-read +bind-key n next-unread +bind-key N prev-unread +bind-key D pb-download +bind-key U show-urls +bind-key x pb-delete + +color listnormal cyan default +color listfocus black yellow standout bold +color listnormal_unread blue default +color listfocus_unread yellow default bold +color info red black bold +color article white default bold + +highlight all "---.*---" yellow +highlight feedlist ".*(0/0))" black +highlight article "(^Feed:.*|^Title:.*|^Author:.*)" cyan default bold +highlight article "(^Link:.*|^Date:.*)" default default +highlight article "https?://[^ ]+" green default +highlight article "^(Title):.*$" blue default +highlight article "\\[[0-9][0-9]*\\]" magenta default bold +highlight article "\\[image\\ [0-9]+\\]" green default bold +highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold +highlight article ":.*\\(link\\)$" cyan default +highlight article ":.*\\(image\\)$" blue default +highlight article ":.*\\(embedded flash\\)$" magenta default + +browser linkhandler +macro , open-in-browser +macro y set browser "echo %u >> ~/Videos/youtube/list.txt"; open-in-browser ; set browser linkhandler +macro c set browser "echo %u | xclip -r -sel c" ; open-in-browser ; set browser linkhandler + diff --git a/.config/newsboat/urls b/.config/newsboat/urls new file mode 100644 index 0000000..23b4657 --- /dev/null +++ b/.config/newsboat/urls @@ -0,0 +1,54 @@ +https://feeds.feedburner.com/dancarlin/history?format=xml "Dan Carlin's Hardcore History" +https://dchhaddendum.libsyn.com/rss "Dan Carlin's Hardcore History: Addendum" +https://christitus.com/categories/linux/index.xml "Linux on Chris Titus Tech | Tech Content Creator" +https://lukesmith.xyz/rss.xml "Luke Smith's Webpage on Luke Smith" +https://christitus.com/categories/networking/index.xml "Networking on Chris Titus Tech | Tech Content Creator" +https://devblogs.microsoft.com/oldnewthing/author/oldnewthing/feed/ "Raymond Chen, Author at The Old New Thing" +http://www.psucollegian.com/search/?f=rss&t=article&c=culture_lifestyle&l=50&s=start_time&sd=desc "www.psucollegian.com - RSS Results in culture_lifestyle of type article" +http://www.psucollegian.com/search/?f=rss&t=article&c=news&l=50&s=start_time&sd=desc "www.psucollegian.com - RSS Results in news of type article" +https://www.youtube.com/feeds/videos.xml?channel_id=UCdmcAwbdiXQWs9d4Qd4KzDw "2 Much ColinFurze" +https://www.youtube.com/feeds/videos.xml?channel_id=UCUxIu91gGsK9Q0tTcQM8iNw "abe's projects" +https://www.youtube.com/feeds/videos.xml?channel_id=UC7qFfPYl0t8Cq7auyblZqxA "adventuresin9" +https://www.youtube.com/feeds/videos.xml?channel_id=UCk-buP3Jfj-2flpbj8ZTiEA "Ashtf" +https://www.youtube.com/feeds/videos.xml?channel_id=UCS0N5baNlQWJCUrhCEo8WlA "Ben Eater" +https://www.youtube.com/feeds/videos.xml?channel_id=UCWZp4y1jqBuvLtiyxSs_ZBw "Big guy" +https://www.youtube.com/feeds/videos.xml?channel_id=UCTrSsPMmZavLbc3Ex7VhjDg "Brandon Herrera" +https://www.youtube.com/feeds/videos.xml?channel_id=UCld68syR8Wi-GY_n4CaoJGA "Brodie Robertson" +https://www.youtube.com/feeds/videos.xml?channel_id=UCg6gPGh8HU2U01vaFCAsvmQ "Chris Titus Tech" +https://www.youtube.com/feeds/videos.xml?channel_id=UCp68_FLety0O-n9QU6phsgw "colinfurze" +https://www.youtube.com/feeds/videos.xml?channel_id=UCqbdxbvG6cqnh_S_RcGnWWg "CPSdrone" +https://www.youtube.com/feeds/videos.xml?channel_id=UC05XpvbHZUQOfA6xk4dlmcw "DJ Ware" +https://www.youtube.com/feeds/videos.xml?channel_id=UCktFRwNsuFYJYTeeVSuzeog "Edward" +https://www.youtube.com/feeds/videos.xml?channel_id=UCJ0-OtVpF0wOKEqT2Z1HEtA "ElectroBOOM" +https://www.youtube.com/feeds/videos.xml?channel_id=UCzr30osBdTmuFUS8IfXtXmg "Essential Craftsman" +https://www.youtube.com/feeds/videos.xml?channel_id=UCWIJV6NGYZYDVz13OmSi41Q "Fat Lip Collective" +https://www.youtube.com/feeds/videos.xml?channel_id=UCqnKDzxO2M_-B-MJYx5qz1Q "Ionic1k" +https://www.youtube.com/feeds/videos.xml?channel_id=UCR-DXc1voovS8nhAvccRZhg "Jeff Geerling" +https://www.youtube.com/feeds/videos.xml?channel_id=UCzj25NxFjI5jJM8StIBOvPA "jschlatt" +https://www.youtube.com/feeds/videos.xml?channel_id=UC2mP7il3YV7TxM_3m6U0bwA "jschlattLIVE" +https://www.youtube.com/feeds/videos.xml?channel_id=UCgEo1zXlYoUvL9btrdR9Csg "jschlattVODS" +https://www.youtube.com/feeds/videos.xml?channel_id=UCzgA9CBrIXPtkB2yNTTiy1w "Level 2 Jeff" +https://www.youtube.com/feeds/videos.xml?channel_id=UCXuqSBlHAE6Xw-yeJA0Tunw "Linus Tech Tips" +https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "Luke Smith" +https://www.youtube.com/feeds/videos.xml?channel_id=UCQJQB-ij7HNYKCyNdi0Y--Q "Make With Miles" +https://www.youtube.com/feeds/videos.xml?channel_id=UCBJycsmduvYEL83R_U4JriQ "Marques Brownlee" +https://www.youtube.com/feeds/videos.xml?channel_id=UCtHaxi4GTYDpJgMSGy7AeSw "Michael Reeves" +https://www.youtube.com/feeds/videos.xml?channel_id=UCIA-5UJZ1HMug3Imb61BOKQ "moody" +https://www.youtube.com/feeds/videos.xml?channel_id=UC-lHJZR3Gqxm24_Vd_AJ5Yw "PewDiePie" +https://www.youtube.com/feeds/videos.xml?channel_id=UCfQgsKhHjSyRLOp9mnffqVg "Renaissance Periodization" +https://www.youtube.com/feeds/videos.xml?channel_id=UCj4SLNED1DiNPHComZTCbzw "Rex Krueger" +https://www.youtube.com/feeds/videos.xml?channel_id=UC2eBMUTYqZSLrRJ1EBwJv-A "Salim Benbouziyane" +https://www.youtube.com/feeds/videos.xml?channel_id=UCsoIIWqR_2OAegsUTkY5E1g "Schlatt & Co." +https://www.youtube.com/feeds/videos.xml?channel_id=UCAbAsEZ-0LccTNbl8r-3EaQ "Scott Yu-Jan" +https://www.youtube.com/feeds/videos.xml?channel_id=UCtMVHI3AJD4Qk4hcbZnI9ZQ "SomeOrdinaryGamers" +https://www.youtube.com/feeds/videos.xml?channel_id=UCeeFfhMcJa1kjtfZAGskOCA "TechLinked" +https://www.youtube.com/feeds/videos.xml?channel_id=UC_T3Zsw2257Ke-g3F20ZCRA "The Fat Electrician" +https://www.youtube.com/feeds/videos.xml?channel_id=UCtY_8Xybt0GS2cF0nQHyB4Q "The Fat Files" +https://www.youtube.com/feeds/videos.xml?channel_id=UCkK9UDm_ZNrq_rIXCz3xCGA "The Lunduke Journal" +https://www.youtube.com/feeds/videos.xml?channel_id=UC8ENHE5xdFSwx71u3fDH5Xw "ThePrimeagen" +https://www.youtube.com/feeds/videos.xml?channel_id=UChk6TQce1EJMn6_liKdHDog "ThePrimeagenClips" +https://www.youtube.com/feeds/videos.xml?channel_id=UCUyeluBRhGPCW4rPe_UvBZQ "ThePrimeTime" +https://www.youtube.com/feeds/videos.xml?channel_id=UCVk4b-svNJoeytrrlOixebQ "TheVimeagen" +https://www.youtube.com/feeds/videos.xml?channel_id=UCxXqeNx2u6mLcFiPrX3-G_g "theweeklyslap" +https://www.youtube.com/feeds/videos.xml?channel_id=UC4Cqvm3LRHa2Fuv2m45sIEg "VoxelRifts" +https://www.youtube.com/feeds/videos.xml?channel_id=UCW8-pJyPdYAdubad1veFB3A "Wesley Treat" diff --git a/.config/shells/dirrc b/.config/shells/dirrc index 05b0b39..2815d12 100755 --- a/.config/shells/dirrc +++ b/.config/shells/dirrc @@ -4,7 +4,6 @@ alias \ d="cd ~/Documents" \ bk="cd ~/Documents/Books" \ dw="cd ~/Downloads" \ - g="cd ~/Documents/Projects/git" \ - c="cd ~/.config" \ - e="cd ~/Documents/Projects/Experiments" \ - cmpsc="cd /Users/jmm/OneDrive\ -\ The\ Pennsylvania\ State\ University/Semester\ 2/CMPSC132/" + p="cd ~/Documents/Projects" \ + m="cd ~/Documents/musings" \ + c="cd ~/.config" diff --git a/.config/shells/zsh/.zshrc b/.config/shells/zsh/.zshrc index 109e3bd..cbf682b 100644 --- a/.config/shells/zsh/.zshrc +++ b/.config/shells/zsh/.zshrc @@ -19,9 +19,6 @@ SAVEHIST=100 HISTSIZE=5000 setopt prompt_subst autoload -U colors && colors -#PROMPT='%{$fg_bold[$shColor]%}%n%{$reset_color%}@%m\ -#:[%{$fg_bold[$shColor]%}$(_collapsed_pwd)%{$reset_color%}]:$ ' -#PROMPT='%{$fg_bold[$shColor]%}$comSym%{$reset_color%}:[%{$fg_bold[$shColor]%}%c%{$reset_color%}]:$ ' PROMPT='%{$fg_bold[$shColor]%}$comSym%{$reset_color%} in %{$fg_bold[$shColor]%}%c%{$reset_color%} → ' source $ZSH/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh diff --git a/runs/cross-compiler b/runs/cross-compiler deleted file mode 100755 index 6f2f00e..0000000 --- a/runs/cross-compiler +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/sh - -BINUTILS="binutils-2.44" -GCC="gcc-15.1.0" -GDB="gdb-16.3" - -export PREFIX="$HOME/personal" -export TARGET=aarch64-elf - -CORES="$(nproc 2&>/dev/null)" - -cd /tmp - -sudo dnf install gcc gcc-c++ make bison flex gmp-devel libmpc-devel mpfr-devel texinfo isl-devel -y - -rm -rf cross -mkdir cross -cd cross - -if [[ "$(find . -type d -name "$BINUTILS")" != "./$BINUTILS" ]] -then - wget "https://ftp.gnu.org/gnu/binutils/$BINUTILS.tar.zst" - unzstd "$BINUTILS.tar.zst" - tar xf "$BINUTILS.tar" -fi - -if [[ "$(find . -type d -name "$GCC")" != "./$GCC" ]] -then - wget "https://ftp.gnu.org/gnu/gcc/$GCC/$GCC.tar.gz" - unxz "$GDB.tar.xz" - tar xf "$GDB.tar" -fi - -if [[ "$(find . -type d -name "$GDB")" != "./$GDB" ]] -then - wget "https://ftp.gnu.org/gnu/gdb/$GDB.tar.xz" - gunzip "$GCC.tar.gz" - tar xf "$GCC.tar" -fi - -rm -rf build-binutils -mkdir build-binutils -cd build-binutils - -../$BINUTILS/configure --target=$TARGET --prefix="$PREFIX" --with-sysroot --disable-nls --disable-werror -make -j $CORES -make install - -cd .. - -rm -rf build-gdb -mkdir build-gdb -cd build-gdb - -../$GDB/configure --target=$TARGET --prefix="$PREFIX" --disable-werror -make all-gdb -j $CORES -make install-gdb - -cd .. - -build-gcc () { -rm -rf build-gcc -mkdir build-gcc -cd build-gcc - -../$GCC/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers --disable-hosted-libstdcxx -make all-gcc -j $CORES -make all-target-libgcc -j $CORES -make all-target-libstdc++-v3 -j $CORES -make install-gcc -make install-target-libgcc -make install-target-libstdc++-v3 - -cd .. - diff --git a/scripts/yt b/scripts/yt new file mode 100755 index 0000000..e5e67ca --- /dev/null +++ b/scripts/yt @@ -0,0 +1,35 @@ +#!/bin/sh + +YT_DL_PATH="$HOME/Videos/youtube" +YT_INDEX="$YT_DL_PATH/youtube.txt" + +Usage() { + printf "Usage: %s [--download-path path] [--index-file path]\n" $(basename $0) > /dev/stderr + exit 1 +} + +while [[ $# -gt 0 ]]; +do + case $1 in + --download-path) + shift + YT_DL_PATH="$1" + YT_INDEX="$YT_DL_PATH/youtube.txt" + ;; + --index-file) + shift + YT_INDEX="$1" + ;; + --help) + Usage + ;; + *) + printf "Unknown option: %s\n" $1 > /dev/stderr + Usage + ;; + esac + shift +done + +parallel "yt-dlp -o \"$YT_DL_PATH/%(title)s.%(ext)s\" --restrict-filenames" ::: $(cat $YT_INDEX) + |
