Compare commits
5 Commits
5d8efa5e1e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 985b2a78cb | |||
| 4ae86c6994 | |||
| 96cbde72f0 | |||
| 5095652b9e | |||
| 2db5c4b0e9 |
2
AI/n8n/Learning path - n8n Docs.url
Normal file
2
AI/n8n/Learning path - n8n Docs.url
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[InternetShortcut]
|
||||||
|
URL=https://docs.n8n.io/learning-path/
|
||||||
2
AI/n8n/Video courses - n8n Docs.url
Normal file
2
AI/n8n/Video courses - n8n Docs.url
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[InternetShortcut]
|
||||||
|
URL=https://docs.n8n.io/video-courses/
|
||||||
2
AI/n8n/n8n - YouTube.url
Normal file
2
AI/n8n/n8n - YouTube.url
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[InternetShortcut]
|
||||||
|
URL=https://www.youtube.com/@n8n-io/videos
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
[InternetShortcut]
|
||||||
|
URL=https://www.youtube.com/playlist?list=PLYLEmQupIzOEEvgtBduSgYLaug7LKqlSo
|
||||||
19
Apps/yt-dlp/download.cmd
Normal file
19
Apps/yt-dlp/download.cmd
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
:: Download video from the internet
|
||||||
|
|
||||||
|
set url=%*
|
||||||
|
|
||||||
|
::echo %url%
|
||||||
|
|
||||||
|
:: yt-dlp --format "bestvideo[ext=mkv][height<='1080']+bestaudio/best" https://www.youtube.com/watch?v=<VIDEO_ID>
|
||||||
|
|
||||||
|
::"C:\Users\kbram\Downloads\media_download\yt-dlp" --sleep-interval 5 --max-sleep-interval 10 --format "bestvideo[ext=mkv][height<=1080]+bestaudio/best" "%url%"
|
||||||
|
::"C:\Users\kbram\Downloads\media_download\yt-dlp" --sleep-interval 5 --max-sleep-interval 10 --postprocessor-args "VideoConvertor:-vcodec libx265" --recode-video mkv --format "bestvideo[height<=1080]+bestaudio/best" "%url%"
|
||||||
|
"C:\Users\kbram\Downloads\media_download\yt-dlp" --postprocessor-args "VideoConvertor:-vcodec libx265" --recode-video mkv --format "bestvideo[height<=1080]+bestaudio/best" "%url%"
|
||||||
|
|
||||||
|
set url=
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
43
Apps/yt-dlp/download_v2.cmd
Normal file
43
Apps/yt-dlp/download_v2.cmd
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
@echo off
|
||||||
|
REM Batch Script for downloading videos with yt-dlp from YouTube and other websites, accepting URL as input via command line.
|
||||||
|
|
||||||
|
REM Clear any previous download commands to avoid conflicts
|
||||||
|
setlocal ENABLEEXTENSIONS
|
||||||
|
set LC_ALL=C & SET _='' & setLOCAL ENGLISH
|
||||||
|
|
||||||
|
REM Accept a video URL as command-line argument (no prompt) and verify its presence
|
||||||
|
IF "%~1"=="" (
|
||||||
|
ECHO No input provided. Usage: scriptname "https://www.youtube.com/watch?v=VIDEO_ID" & GOTO EndScript
|
||||||
|
) ELSE (SET InputUrl=%~1 & ECHO %InputUrl%)
|
||||||
|
|
||||||
|
REM Define yt-dlp path and format for downloading videos up to 1080p in MKV container with the best audio quality
|
||||||
|
set "YT_DL_CMD=yt-dl.exe --format "bestvideo[height<=1080]&bestaudio[ext=mp3,quality=5][codec:bestaudio]"
|
||||||
|
|
||||||
|
REM Run yt-dlp to download videos and extract the output filename for ffmpeg use
|
||||||
|
FOR /F delims== %%A IN ('%YT_DL_CMD%') DO SET "YT_DL_COMMAND=%%A"
|
||||||
|
|
||||||
|
SET "OUTPUTFILE=downloaded_video.mkv"
|
||||||
|
|
||||||
|
REM Execute yt-dlp command and pipe the output to ffmpeg for conversion if necessary
|
||||||
|
call :DownloadAndConvert "%InputUrl%" "%OutputFile%"
|
||||||
|
GOTO EndScript
|
||||||
|
|
||||||
|
:DownloadAndConvert
|
||||||
|
set "VideoUrl=%~1"
|
||||||
|
set "OutputFile=%~2"
|
||||||
|
REM Inform about processing download...
|
||||||
|
echo Processing download of %VideoUrl%...
|
||||||
|
%YT_DL_COMMAND% -o "%OutputFile%" "%VideoUrl%" && (
|
||||||
|
REM Use ffmpeg to convert audio track if not already in AAC format and output MKV file
|
||||||
|
ffmpeg -i "%OutputFile%.mp3" -c:v copy -c:a aac "%OutputFile%.aac" && (
|
||||||
|
Echo Conversion to AAC complete. MKV video is ready with audio track in the same folder as MP3 file.
|
||||||
|
REM The final .mkv file will be located at "%OutputFile%".mkv
|
||||||
|
) || (
|
||||||
|
ECHO Failed to convert video, make sure ffmpeg is installed and available in PATH or provide full path for FFMPEG command here.
|
||||||
|
)
|
||||||
|
GOTO EndScript
|
||||||
|
|
||||||
|
:EndScript
|
||||||
|
REM Documentation of the script can be found below this line
|
||||||
|
REM Usage instructions are provided above as a comment when running the batch file from the command prompt.
|
||||||
|
REM Ensure yt-dlp and ffmpeg executables are accessible or provide full paths in variables YT_DL_CMD and FFMPEG_COMMAND respectively before execution.
|
||||||
BIN
Apps/yt-dlp/yt-dlp.exe
Normal file
BIN
Apps/yt-dlp/yt-dlp.exe
Normal file
Binary file not shown.
2
Docker/Dockhand - Modern Docker Management.url
Normal file
2
Docker/Dockhand - Modern Docker Management.url
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[InternetShortcut]
|
||||||
|
URL=https://dockhand.pro/
|
||||||
14
Proxmox/variousKeysAndIDs.md
Normal file
14
Proxmox/variousKeysAndIDs.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\# homepage
|
||||||
|
|
||||||
|
api homepage
|
||||||
|
|
||||||
|
Token ID: api@pve!homepage
|
||||||
|
|
||||||
|
Secret: 43fac2a0-ab06-42f7-b462-64559156bcfc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
[InternetShortcut]
|
||||||
|
URL=https://craigwilson.blog/post/2024/2024-09-21-torwebsite/
|
||||||
2
TrueNas/ZFS/ZFS Basecamp - Klara Systems.url
Normal file
2
TrueNas/ZFS/ZFS Basecamp - Klara Systems.url
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[InternetShortcut]
|
||||||
|
URL=https://klarasystems.com/zfs-basecamp/
|
||||||
20
TrueNas/ZFS/ZFS Commands.md
Normal file
20
TrueNas/ZFS/ZFS Commands.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# ZFS Commands
|
||||||
|
Use sudo for all commands unless specifically stated.
|
||||||
|
|
||||||
|
## Rename dataset
|
||||||
|
`zfs [-f][-p][-u] rename oldname newname`
|
||||||
|
(Note: remember to use the full path i.e. tank/oldname etc.)
|
||||||
|
- `-f`
|
||||||
|
*to force unmount the dataset if needed (has no effect if used together with `-u`)*
|
||||||
|
- `-p`
|
||||||
|
*Creates all the nonexistent parent datasets. Datasets created in this manner are automatically mounted according to the mountpoint property inherited from their parent.*
|
||||||
|
- `-u`
|
||||||
|
*Do not remount file systems during rename. If a file system's mountpoint property is set to legacy or none, the file system is not unmounted even if this option is not given*
|
||||||
|
|
||||||
|
`zfs -r rename snapshot snapshot`
|
||||||
|
- `-r`
|
||||||
|
*Recursively rename the snapshots of all descendent datasets. Snapshots are the only dataset that can be renamed recursively*
|
||||||
|
|
||||||
|
## Get compression ratios
|
||||||
|
`zfs get compressratio [dataset]`
|
||||||
|
*If no dataset given, the command with list out all datasets and their compressionratios. If dataset given, then only that dataset is returned.*
|
||||||
20
ssh/List of users and servers.md
Normal file
20
ssh/List of users and servers.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# List of users and servers
|
||||||
|
|
||||||
|
## Physical Machines
|
||||||
|
|
||||||
|
- ### Proxmox 01 server
|
||||||
|
- ssh rcadmin@pve-01.home.ramberg.net
|
||||||
|
|
||||||
|
## Virtual machines
|
||||||
|
|
||||||
|
- ### Database server
|
||||||
|
- ssh rcadmin@database.home.ramberg.net
|
||||||
|
- ### Docker-01 server
|
||||||
|
- ssh rcadmin@docker-01.home.ramberg.net
|
||||||
|
- ### TrueNas Scale server
|
||||||
|
- ssh truenas\_admin@truenas-01.home.ramberg.net
|
||||||
|
- ### Proxmox Backup server
|
||||||
|
- ssh root@pbs.home.ramberg.net
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user