Skip to content

Instantly share code, notes, and snippets.

@nouseforname
nouseforname / Get-Updates.ps1
Last active December 8, 2024 14:44
Powershell filter winget upgrade
# add id to skip the update
$skipUpdate = @(
'Microsoft.DotNet.SDK.6',
'Microsoft.WindowsSDK'
)
# object to be used basically for view only
class Software {
[string]$Name
@yuzhi535
yuzhi535 / aria2.conf
Created February 13, 2023 01:48
my aria2.conf
## Basic ###
# The directory to store the downloaded file.
dir=${HOME}/Downloads
# Downloads the URIs listed in FILE.
input-file=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to FILE on exit.
save-session=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0
save-session-interval=60
# Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5
@MrCordeiro
MrCordeiro / new-pc-setup.md
Last active July 31, 2024 16:32
Windows 11 Setup Guide

New Computer Setup

Configuring a new PC takes time. These are the steps I took to piece together my dev environment.

Windows 11

Local Account

To setup a new Windows PC without using a Microsoft account:

@YasunoriMATSUOKA
YasunoriMATSUOKA / setup-ubuntu2204.sh
Last active March 12, 2023 16:30
windows11pro-setup-memo
#!/bin/bash
cd ~/
# Update
sudo apt update -y
sudo apt upgrade -y
# Install desktop environment
sudo apt install ubuntu-desktop
@softeam-ej
softeam-ej / post.sh
Last active March 16, 2023 15:27
Script de pós instalação Fedora 37
#!/usr/bin/env bash
# Permite instalação de até 10 pacotes simultâneos
sudo sh -c 'echo -e "max_parallel_downloads=10" >> /etc/dnf/dnf.conf'
# Adiciona o compatibilidade com Flathub
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak remote-modify --enable flathub
# Adiciona o RPM Fusion
@nker150
nker150 / howto.md
Created February 3, 2023 05:10
How to archive YouTube channels

How to archive YouTube channels

This guide will show you how to download entire YouTube channels. I'm going to try to keep this as simple and straightforward as possible, and I'll also try to explain some of the why's here as well so that you can better understand how to modify this guide for your own personal use.

The first thing you're going to need is yt-dlp. Once upon a time we would have used youtube-dl, however the developer there didn't seem to keen on bypassing YouTube's throttling. yt-dlp is a fork of youtube-dl that performs far better on YouTube.

How you will get yt-dlp depends on which operating system you're using.

Installing on Windows:

@nker150
nker150 / update.sh
Created February 3, 2023 05:07
update.sh for subdirectory
#!/bin/bash
yt-dlp --extractor-args youtube:player_client=android --throttled-rate 100K --cookies ~/cookies.txt --download-archive ./archive.txt --write-description --write-info-json --write-annotations --write-sub --write-auto-sub --write-thumbnail -i -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' -o '%(upload_date)s-%(title)s.%(ext)s' https://www.youtube.com/@ThePatriotNurse
@XeonDead
XeonDead / yt-dlp-file
Last active July 30, 2024 14:09
yt-dlp-file
#!/data/data/com.termux/files/usr/bin/bash
function start_ciadpi {
~/bin/ciadpi -i 127.0.0.1 -p 10801 -s 1 &
export CIADPI_PID=$!
export -g extra_args=--proxy 'socks5://127.0.0.1:10801'
sleep 2s;
}
function stop_ciadpi {
@Jaid
Jaid / gallery-dl.schema.json
Last active February 3, 2023 19:10
gallery-dl v 1.24.3 config example (JSON5 with comments, JSON, JSON schema)
@joegasper
joegasper / winget-update-manifest.md
Last active November 13, 2023 01:51
winget - Update Existing Package Manifest