Skip to content

Instantly share code, notes, and snippets.

View pleaseproject's full-sized avatar

Jason Miller pleaseproject

  • Montreal, QC
View GitHub Profile
@werid
werid / bbc.py
Last active July 13, 2025 04:39
bbc 1080p extraction with yt-dlp
import functools
import itertools
import json
import re
import urllib.parse
import xml.etree.ElementTree
from .common import InfoExtractor
from ..networking.exceptions import HTTPError
from ..utils import (
@AveYo
AveYo / 7-Zip_Windows11.reg
Last active October 23, 2025 15:31
7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo
Windows Registry Editor Version 5.00
; 7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo
; Add to archive.. only single files (multiple would need a single instance redirect tool)
[-HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive]
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive]
"MuiVerb"="@C:\\Program Files\\7-Zip\\7-zip.dll,-2324"
"Position"="Middle"
"Icon"="C:\\Program Files\\7-Zip\\7-zip.dll,0"
@FreddieOliveira
FreddieOliveira / docker.md
Last active November 3, 2025 21:04
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

#!/bin/bash
TOKEN=""
ARG="$1"
#get id of list files for torrent
#list-torrents
if [ "$ARG" == 'list' ]; then
curl -s 'https://app.real-debrid.com/rest/1.0/torrents' -H "Authorization: Bearer $TOKEN"|jq -r '.[]|.id,.filename,.status'|paste - - -|sed 's/downloaded//g'
exit 0

Setting up an Armbian build server with Multipass

In order to build an Armbian image from scratch, whether for development purposes or to apply user customizations on top of a base image, a build environment is required. Per the Armbian documentation, Ubuntu 20.04 is the officially supported build platform.

There is some support for Docker, though in my tests this has been a suboptimal experience. Even if you have access to Ubuntu 20.04 as your bare metal machine, the build process makes liberal use of sudo throughout, so it's probably not a bad idea to isolate the build process with a VM in any case.

Since the build environment is designed for Ubuntu, the flexibility (and complication) of using Vagrant to provision a VM seems a bit much when there is Multipass available that is desi

let bookmarkList = Array.from(document.querySelectorAll('.widget>.vbox'))
.map(e => e.shadowRoot)
.map(e => e && e.querySelector('.device-page-list'))
.find(e => e);
let bookmarks = Array.from(bookmarkList.querySelectorAll('.vbox'))
.map(e => `<a href="${e.querySelector('x-link').innerHTML}">${e.querySelector('.device-page-title').innerHTML}</a>`);
copy('<html><body>' + bookmarks.join('\n') + '</body></html>');
@TheGabrielHoward
TheGabrielHoward / 1-Pie-sGSI-notes.md
Last active August 10, 2024 08:02
Pie sGSI AB - Notes
@BlackDex
BlackDex / skylake-tuning-linux.md
Last active May 2, 2020 03:29 — forked from Brainiarc7/skylake-tuning-linux.md
This gist will show you how to tune your Intel-based Skylake, Kabylake and beyond Integrated Graphics Core for performance and reliability through GuC and HuC firmware usage on Linux.

Tuning Intel Skylake and beyond for optimal performance and feature level support on Linux:

Note that on Skylake, Kabylake (and the now cancelled "Broxton") SKUs, functionality such as power saving, GPU scheduling and HDMI audio have been moved onto binary-only firmware, and as such, the GuC and the HuC blobs must be loaded at run-time to access this functionality.

Enabling GuC and HuC on Skylake and above requires a few extra parameters be passed to the kernel before boot.

Instructions provided for both Fedora and Ubuntu (including Debian):

Note that the firmware for these GPUs is often packaged by your distributor, and as such, you can confirm the firmware blob's availability by running: