Skip to content

Instantly share code, notes, and snippets.

@Gestas
Gestas / youtube-archive-channels.sh
Created January 6, 2023 22:26
Youtube channel archiver -
#!/bin/sh
#
# Based on the TheFrenchGhosty's Ultimate YouTube-DL Scripts Collection: The ultimate collection of scripts for YouTube-DL
# https://github.com/TheFrenchGhosty/TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection
# Version: 3.2.2
#
STORAGE_PATH="~/youtube/"
SUBSCRIPTIONS_FILE="youtube-subscriptions.lst"
DOWNLOAD_ARCHIVE="downloaded-videos.lst"
LOG_FILE="yt-dlp.log"
@Dobby233Liu
Dobby233Liu / .bash_history.sh
Last active March 18, 2023 17:30
stuff ive done to fix my "awesome random music" bookmark folder
# Prerequisite
pip install git+https://github.com/FlyingWolFox/Netscape-Bookmarks-File-Parser.git
python # Snippet 1
cd ~/storage/downloads
mkdir tmp/th && cd tmp/th
# Download descs
yt-dlp --skip-download --write-description --no-mtime $(cat ../../bookmarks_pure.txt)
@CornerSyrup
CornerSyrup / ffmpeg.md
Last active April 5, 2025 10:26
cli tools common options

FFmpeg

Check the integrity

It will encode video to null (or /dev/null).

ffmpeg -v error -i problem_video.mp4 -f null -
@Issykul
Issykul / 7zz_cheat_sheet.md
Last active November 27, 2024 00:06
A Cheat Sheet for the 7zz Linux Terminal Utility

7zz Cheat Sheet

Overview

7z [Args] [archive.7z] [files / folders to archive]

A file archiver with highest compression ratio

Args:
@nonnullish
nonnullish / making-windows-11-usable.md
Last active May 12, 2025 04:37
Making Windows 11 Usable

Making Windows 11 Usable

Remove Garbage

Sophia Script for Windows

Keep in mind that if you're not careful when selecting the settings, not only will it remove the preinstalled TikTok app but also the default photo viewer. Other than that works great.

Fix Explorer and Right Click Menus

Explorer Patcher

@FarisR99
FarisR99 / Guide.md
Last active May 12, 2023 17:04
Intel Arc on Ubuntu 22.04 with ffmpeg & mpv

I recently received an Intel A750 from an Intel run contest. My idea for it was to replace the GTX 1660 in my media server with it, as it has AV1 encode/decode and faster encoding. Before installing my A750 in my media server, I had to make sure it will actually work, and work well with ffmpeg.

This took some time spanning a couple of days to figure out, but I managed to get it almost completely working thanks to coming across this post, and the very helpful user who wrote it (u/Mr_Deathproof): https://www.reddit.com/r/Tdarr/comments/yvsq3n/got_my_intel_arc_a380_dg2_to_work_with_booshs_qsv/iwhsezk/

I've adapted this to include solutions to issues I faced, and following method should work on a fresh install of Ubuntu 22.04.

Disclaimer: I'm not proficient at Linux, and there may be a much simpler method of doing this. This will also be using a "bleeding edge" kernel.

Make sure your user is in the render and video groups:

@chthollyphile
chthollyphile / alist-download-env.bash
Last active March 18, 2023 14:50
alist-download-env
#!/bin/bash
# curl -fsSL https://gist.github.com/chthollyphile/d2a09d2b38483800439280cc82ccf943/raw/e67fce260037cee50ad82628b711c6987e5227b0/alist-download-env.bash | bash -s install
apt install -y python-is-python3
apt install -y pip
apt install -y ffmpeg
pip install yt-dlp
pip install ffmpeg
ufw disable
ips=`ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"`
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s install
@fomychov
fomychov / linux.sh
Last active March 19, 2024 18:05
linux
#!/bin/bash # any bash-script should start with "shebang"-lint
# after #! indicate path to the bash interpetator
#############################################
# get updates
sudo apt update
apt list --upgradable
sudo apt upgrade
sudo apt dist-upgrade
@Kambaa
Kambaa / dockeraliases.txt
Created November 19, 2022 00:33
From htpcBeginner / docker-traefik - docker aliases.
# https://www.smarthomebeginner.com/install-docker-on-ubuntu-22-04/
# This is my current / up-to-date list of bash aliases.
# This is the exact same file that is on all of my hosts - synced using Synthing.
# Aliases will automatically adapt slightly based on the host.
# SOURCE ENVIRONMENTAL VARIABLES FOR BASH_ALIASES
# Sensitive information goes into the .env file - this allows me to share my bash aliases with the community
# Rename shared/config/bash_aliases.env.example and use it as a starter
source ~/.bash_aliases.env