Skip to content

Instantly share code, notes, and snippets.

View boydaihungst's full-sized avatar
💻

boydaihungst boydaihungst

💻
View GitHub Profile
@boydaihungst
boydaihungst / gist:89c9bd1c6fbd0494797d68e7ac2d3ad3
Created October 6, 2025 17:30
lenovo legion 5 2025 amd + nvidia fix hibernate, suspend-then-hibernate and hybrid-sleep
Guide here: https://github.com/boydaihungst/.config/tree/master/_misc/lenovo%20legion%205%202025%20suspend%2C%20hibernate%2C%20hybrid-sleep%20fix
(process:48464): Timings-DEBUG: 08:29:42.063: 0.000001 (0.000000): Started
(process:48464): Timings-DEBUG: 08:29:42.063: 0.000095 (0.000095): ../rofi/source/rofi.c:main:1012
(process:48464): Timings-DEBUG: 08:29:42.063: 0.000386 (0.000291): ../rofi/source/rofi.c:main:1062
(process:48464): Timings-DEBUG: 08:29:42.064: 0,000473 (0,000087): ../rofi/source/rofi.c:main:1092 Setup Locale
(process:48464): Timings-DEBUG: 08:29:42.064: 0,000520 (0,000047): ../rofi/source/rofi.c:main:1094 Collect MODES
(process:48464): Timings-DEBUG: 08:29:42.064: 0,000533 (0,000013): ../rofi/source/rofi.c:main:1096 Setup MODES
(process:48464): Timings-DEBUG: 08:29:42.064: 0,000549 (0,000016): ../rofi/source/rofi.c:main:1100 Setup mainloop
(process:48464): Timings-DEBUG: 08:29:42.064: 0,000617 (0,000068): ../rofi/source/rofi.c:main:1103 NK Bindings
(process:48464): Timings-DEBUG: 08:29:42.064: 0,000643 (0,000026): ../rofi/source/rofi.c:main:1107 Setup abe
(process:48464): Timings-DEBUG: 08:29:42.066: 0,003119 (0,002476): ../rofi/source
@boydaihungst
boydaihungst / YouTube Rich Grid: 4 Items Per Row.user.js
Created May 15, 2025 05:26
YouTube Rich Grid: 4 Items Per Row
// ==UserScript==
// @name YouTube Rich Grid: 4 Items Per Row
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Forces the YouTube rich grid (like the homepage) to display 4 items per row by setting the --ytd-rich-grid-items-per-row CSS variable.
// @author Your Name
// @match *://www.youtube.com/*
// @grant none
// ==/UserScript==
@boydaihungst
boydaihungst / shonenmagazine-downloader.user.js
Last active April 27, 2025 18:38
shonenmagazine downloader.user.js
// ==UserScript==
// @name Download All Intercepted Images as ZIP (Shonen Magazine)
// @namespace http://tampermonkey.net/
// @version 1.2
// @description Intercept fetch, collect images, and download them all as a zip with proper filenames from pocket.shonenmagazine.com/episode/*
// @author boydaihungst
// @match https://pocket.shonenmagazine.com/episode/*
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js
@boydaihungst
boydaihungst / Episode 13.vtt
Created April 5, 2025 15:40
Ninja kamui VN ep 3
WEBVTT
00:00.988 --> 00:05.318
Mike, dinh tổng thống và
Bộ Quốc phòng đã bị chiếm đóng.
00:05.343 --> 00:06.670
Gì cơ?!
00:06.670 --> 00:08.719
# REMOVE THIS LINE -- $HOME/.config/xdg-desktop-portal-termfilechooser/config
[filechooser]
cmd=$HOME/.config/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
default_dir=$HOME/Downloads
General
Unique ID : 298400737667328328316219609541488841669 (0xE07DE4408ECFF7144ECF67C7C22A93C5)
Complete name : Monster (2004) - S01E01 - 001 - Herr Dr. Tenma [NF WEBDL-1080p][10bit][x265][AC3 2.0][JA]-Mo7tas.mkv
Format : Matroska
Format version : Version 4
File size : 477 MiB
Duration : 23 min 55 s
Overall bit rate : 2 788 kb/s
Frame rate : 23.976 FPS
Movie name : Monster : Chapter 01 : Herr Dr. Tenma
@boydaihungst
boydaihungst / PKGBUILD
Created March 5, 2025 16:36
ibus-git PKGBUILD arch linux
# Maintainer: Campbell Jones <serebit at archlinux dot org>
# Contributor: Felix Yan <felixonmars@archlinux.org>
pkgbase=ibus
pkgname=(ibus libibus)
pkgver=1.5.32
pkgrel=2
pkgdesc="Intelligent input bus for Linux/Unix"
arch=('x86_64')
url="https://github.com/ibus/ibus/wiki"
@boydaihungst
boydaihungst / *.workers.dev link generate.user.js
Created February 28, 2025 17:49
*.workers.dev link generate.user.js
@boydaihungst
boydaihungst / gist:14e6677e9a2f6d436ab0c47588c500ea
Last active February 15, 2025 08:24
laftel api vietnamese sub
Sub laftel. Tất cả đều dùng GET method:
Lấy list series id sort theo gần nhất
(limit = 20 offset = 0 tức là 20 bộ gần nhất, offset = 20 là 20 bộ xếp thứ 21-40. Ko nên tăng limit quá cao vì query lâu, để 20-50 thôi)
https://api.laftel.tv/v1.0/series/discover/?limit=20&offset=0&ordering=recent_updated
Search api keyword search "Headhunter", limit offset tương tự trên, được series id:
https://api.laftel.tv/v1.0/series/search/?keyword=Headhunter&limit=25&offset=0
Lấy season id (season id: 131)
https://api.laftel.tv/v1.0/seasons?series_id=86