Skip to content

Instantly share code, notes, and snippets.

@EntranceJew
EntranceJew / Get-TweetVid.ps1
Created May 17, 2017 20:33
take a twitter m3u8 link and download it properly
# take a twitter m3u8 link and download it properly
function Get-TweetVid {
param( [string]$Uri, [string]$OutDir )
$out_file = (Split-Path $Uri -Leaf).Replace(".m3u8", ".mp4")
$out_path = Join-Path $OutDir $out_file
if( -Not (Test-Path $out_path) ){
mkdir -Path $out_path
}
ffmpeg -i $Uri -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $out_path
}
@IljaN
IljaN / yt-dlp-cheatsheet.md
Created May 24, 2024 21:46
yt-dlp cheatsheet

Video as mp3:

yt-dlp -x --audio-format mp3 --audio-quality 0  "https://www.youtube.com/watch?v=JH-ct2dlGuc"

Playlist as mp3s:

yt-dlp --ignore-errors --format bestaudio --extract-audio --audio-format mp3 --audio-quality 160K --output "%(title)s.%(ext)s" --yes-playlist 'https://www.youtube.com/playlist?list=PLwGVk6o5Yub6X0z5D5gx3UBgOqlXVRQfI'
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 20, 2025 01:13
Conventional Commits Cheatsheet
@DanWBR
DanWBR / dwsim_automation.py
Last active December 20, 2025 01:13
Create, run and save a new DWSIM simulation in Python
import pythoncom
pythoncom.CoInitialize()
import clr
from System.IO import Directory, Path, File
from System import String, Environment
dwsimpath = "C:\\Users\\Daniel\\AppData\\Local\\DWSIM8\\"
@DanWBR
DanWBR / dwsim_automation_sample2.py
Last active December 20, 2025 01:12
DWSIM Automation Sample in Python - Create a Flowsheet with a Distillation Column for Water/Acetone/Ethanol Separation (requires DWSIM v8.4.5 or newer)
# remove the following two lines to run on linux
import pythoncom
pythoncom.CoInitialize()
import clr
from System.IO import Directory, Path, File
from System import String, Environment
dwsimpath = "C:\\Users\\danie\\AppData\\Local\\DWSIM\\"
@jweinst1
jweinst1 / lztzsort.rs
Last active December 20, 2025 01:11
Automatic Sorting in Rust with bit RZ and LZ instructions
fn get_eq_or_gt(num:u64, target:u64) -> Option<u64> {
if target > 63 {
return None;
}
let shifted = num >> target;
if shifted == 0 {
return None;
}
return Some(shifted.trailing_zeros() as u64 + target);
}
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@Klerith
Klerith / testing-configuration.md
Last active December 20, 2025 01:08
Configuración de Vitest + React Testing Library
@klutzyT
klutzyT / glass_tut.md
Last active December 20, 2025 01:06
Disable Liquid glass and revert ui elements on iOS 26.1 and below

Disable liquid glass on iOS 26.1 and below via feature flags

This is a very last minute guide so if you have problems message me on discord @klutzyt
But also note that I am not a dev, I basically used other peoples premade tools and knowledge to do this.
this also can work on 26.2 DEV BETA 1 but i left it out of everything to reduce confusion

What is this

This guide is dedicated to post I made on twitter a little while back Here

WARNING

I nor any developer of the tools required, are responsible for bricked devices, lost data, or any other issues that can happen. Please be responsible and back up your data in any way, Whether thats a iCloud backup or a local iTunes/Finder backup.

Warning Part 2

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 20, 2025 00:45
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter: