Skip to content

Instantly share code, notes, and snippets.

View alexander-danilenko's full-sized avatar

Alex Danilenko alexander-danilenko

View GitHub Profile
@alexander-danilenko
alexander-danilenko / Debloat Xiaomi Smart TV Box S (2nd Gen) [Windows].md
Last active June 30, 2024 08:40
Debloat Xiaomi Smart TV Box S (2nd Gen) [Windows]
  1. Installd ADB drivers
winget install ClockworkMod.UniversalADBDriver
  1. Enable developer mode on your box

  2. Enable usb debugging while doing this(note your usb port will no longer work until disabled again)

@alexander-danilenko
alexander-danilenko / run.sh
Created May 31, 2024 07:40
Lighthouse run against multiple URLs from urls.txt file
#!/usr/bin/env bash
urls=$(cat urls.txt)
outDir="results"
mkdir -p $outDir
for url in $urls; do
fileFriendlyUrl=$(echo $url | sed 's/[^a-zA-Z0-9]/_/g')
outFilePath="$outDir/$fileFriendlyUrl.html"
if ! [ -f "$outFilePath" ]; then
@alexander-danilenko
alexander-danilenko / create-cert.sh
Last active August 22, 2024 06:48
HTTPS for Next.js v12
#!/bin/bash
###> Utils
if [[ -t 2 ]] && [[ -z "${NO_COLOR-}" ]] && [[ "${TERM-}" != "dumb" ]]; then
NOFORMAT='\033[0m' RED='\033[0;31m' GREEN='\033[0;32m' ORANGE='\033[0;33m' BLUE='\033[0;34m' PURPLE='\033[0;35m' CYAN='\033[0;36m' YELLOW='\033[1;33m'
else
NOFORMAT='' RED='' GREEN='' ORANGE='' BLUE='' PURPLE='' CYAN='' YELLOW=''
fi
debug() { echo >&2 -e"${CYAN}[DEBUG] $* ${NOFORMAT}"; }
info() { echo >&2 -e "${BLUE}[INFO] $* ${NOFORMAT}"; }
@alexander-danilenko
alexander-danilenko / script.js
Created April 24, 2024 08:20
Tempermonkey: Copy Apple Music playlist information | Export Apple Music playlist to text
// ==UserScript==
// @name Apple music - Copy playlist info
// @description Copy playlist information in format `${index}. ${artist} - ${title}`
// @namespace Alex Danilenko
// @version 1.0
// @license MIT
// @grant GM.setClipboard
// @grant GM_setClipboard
// @match https://music.apple.com/*
// ==/UserScript==
{
"PresetList": [
{
"AlignAVStart": false,
"AudioCopyMask": [
"copy:opus"
],
"AudioEncoderFallback": "av_aac",
"AudioLanguageList": [
"ukr",
@alexander-danilenko
alexander-danilenko / torrent-trackers-2023.txt
Created April 16, 2023 16:12
Torrent Trackers based on Popularity and Latency and list of trackers with more than 95% of uptime
udp://tracker.opentrackr.org:1337/announce
udp://9.rarbg.com:2810/announce
udp://tracker.openbittorrent.com:6969/announce
udp://exodus.desync.com:6969/announce
http://tracker.openbittorrent.com:80/announce
http://openbittorrent.com:80/announce
udp://retracker.lanta-net.ru:2710/announce
udp://open.stealth.si:80/announce
udp://www.torrent.eu.org:451/announce
udp://wassermann.online:6969/announce
@alexander-danilenko
alexander-danilenko / windows-11-cheatsheet.md
Last active December 22, 2024 09:18
Windows 11 Cheatsheet
@alexander-danilenko
alexander-danilenko / windows-10-cheatsheet.md
Last active November 24, 2024 15:18
Windows 10 CheatSheet