Skip to content

Instantly share code, notes, and snippets.

View boydaihungst's full-sized avatar
💻

boydaihungst boydaihungst

💻
View GitHub Profile
@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 <[email protected]>
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
@boydaihungst
boydaihungst / config.json
Created December 22, 2024 13:42
aegisub dark theme, I guess
"Colour" : {
"Audio Display" : {
"Keyframe" : "rgb(255, 0, 255)",
"Line Boundary Inactive Line" : "rgb(188, 196, 201)",
"Line boundary End" : "rgb(0, 0, 216)",
"Line boundary Start" : "rgb(216, 0, 0)",
"Play Cursor" : "rgb(32, 255, 0)",
"Seconds Line" : "rgb(79, 166, 237)",
"Spectrum" : "Icy Blue",
"Syllable Boundaries" : "rgb(255, 255, 0)",
@boydaihungst
boydaihungst / ini.lua
Last active November 20, 2024 04:00
yazi/init.lua
--------------------------------- Components -----------------------------------------
function Status:file_size_and_folder_childs()
local h = self._tab.current.hovered
if not h or h.cha.is_link then
return ui.Line({})
end
local size = h:size()
if size then