Skip to content

Instantly share code, notes, and snippets.

View jim60105's full-sized avatar
๐Ÿ›ธ
๐Ÿš—๐Ÿš•๐Ÿš™๐Ÿš“๐Ÿš‘๐Ÿšš๐Ÿš›๐Ÿšœ๐ŸŽ๐Ÿš“๐Ÿš”๐Ÿš๐Ÿš’๐Ÿš˜๐Ÿš–๐Ÿ›บ๐Ÿš๐Ÿš–๐Ÿšฒ๐Ÿ๏ธ๐Ÿ›ต๐Ÿš„๐Ÿš…๐Ÿšˆ๐Ÿš‚๐Ÿš†๐Ÿš‡๐Ÿš–๐Ÿ›ด๐ŸšŠ๐Ÿš‰๐Ÿš๐Ÿš†๐ŸšŸ๐Ÿš๐Ÿšž๐Ÿš‹๐Ÿšˆ๐Ÿ›ถ๐Ÿšค๐Ÿšขโ›ต๐Ÿš€๐Ÿ›ธ๐Ÿ›น๐Ÿš‚๐Ÿšƒ๐ŸšŽ๐ŸšŒ๐Ÿ›ต๐Ÿ›บ๐Ÿšฒ๐Ÿš๐Ÿš‘๐Ÿš’๐Ÿš

้™ณ้ˆž jim60105

๐Ÿ›ธ
๐Ÿš—๐Ÿš•๐Ÿš™๐Ÿš“๐Ÿš‘๐Ÿšš๐Ÿš›๐Ÿšœ๐ŸŽ๐Ÿš“๐Ÿš”๐Ÿš๐Ÿš’๐Ÿš˜๐Ÿš–๐Ÿ›บ๐Ÿš๐Ÿš–๐Ÿšฒ๐Ÿ๏ธ๐Ÿ›ต๐Ÿš„๐Ÿš…๐Ÿšˆ๐Ÿš‚๐Ÿš†๐Ÿš‡๐Ÿš–๐Ÿ›ด๐ŸšŠ๐Ÿš‰๐Ÿš๐Ÿš†๐ŸšŸ๐Ÿš๐Ÿšž๐Ÿš‹๐Ÿšˆ๐Ÿ›ถ๐Ÿšค๐Ÿšขโ›ต๐Ÿš€๐Ÿ›ธ๐Ÿ›น๐Ÿš‚๐Ÿšƒ๐ŸšŽ๐ŸšŒ๐Ÿ›ต๐Ÿ›บ๐Ÿšฒ๐Ÿš๐Ÿš‘๐Ÿš’๐Ÿš
View GitHub Profile
@david082321
david082321 / tw.sh
Last active May 11, 2024 04:19 — forked from XargonWan/japanese_locale_enabler.sh
Steam Deck ไธญๆ–‡ๅŒ–
#!/bin/bash
# ๅœ็”จ ๅ”ฏ่ฎ€ๆจกๅผ
sudo steamos-readonly disable
# ๅˆๅง‹ๅŒ– Pacman Keys
sudo pacman-key --init
sudo pacman-key --populate archlinux
# ้‡ๆ–ฐๅฎ‰่ฃ glibc
sudo pacman -S glibc --noconfirm
# ็ทจ่ผฏ locale.gen
sudo sed -i "s%#zh_TW.UTF-8 UTF-8%zh_TW.UTF-8 UTF-8%" /etc/locale.gen
@jim60105
jim60105 / Youtube-่‡ชๅ‹•ๆ‹ๆ‰‹ๆฉŸๅ™จ.user.js
Last active January 3, 2025 21:58
Youtube: ่‡ชๅ‹•ๆ‹ๆ‰‹ๆฉŸๅ™จ
// ==UserScript==
// @name Youtube: Automatic clapping machine
// @name:zh Youtube: ่‡ชๅ‹•ๆ‹ๆ‰‹ๆฉŸๅ™จ
// @version 1.4.5
// @description ๅœจๅ…ถๅฎƒไบบๆ‹ๆ‰‹ๆ™‚่‡ชๅ‹•่ทŸ่‘—ไธ€่ตทๆ‹
// @author ็ณ(jim60105)
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @license GPL3
// ==/UserScript==
@jim60105
jim60105 / Youtube-่ง€็œ‹5ๅˆ†้˜ๅฝฑ็‰‡ๅพŒ่‡ชๅ‹•ๆŒ‰ๅ–œๆญก.user.js
Last active June 18, 2024 12:21
Youtube: ่ง€็œ‹5ๅˆ†้˜ๅฝฑ็‰‡ๅพŒ่‡ชๅ‹•ๆŒ‰ๅ–œๆญก
// ==UserScript==
// @name Youtube: Automatically press like after watching 5 minutes of video
// @name:zh Youtube: ่ง€็œ‹5ๅˆ†้˜ๅฝฑ็‰‡ๅพŒ่‡ชๅ‹•ๆŒ‰ๅ–œๆญก
// @version 1.1.3
// @description Youtube: Automatically press like after watching 5 minutes of video
// @author ็ณ(jim60105)
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @license GPL3
// ==/UserScript==
@jim60105
jim60105 / twitcasting-css-override.css
Last active July 12, 2024 16:47
ๆ”นๅ–„Twitcasting็š„ๅžƒๅœพUIไป‹้ข
/* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
**/
header {
display: flex;
justify-content: center;
@sidneys
sidneys / youtube_format_code_itag_list.md
Created January 20, 2018 11:12
YouTube video stream format codes itags

YouTube video stream format codes

Comprehensive list of YouTube format code itags

itag Code Container Content Resolution Bitrate Range VR / 3D
5 flv audio/video 240p - - -
6 flv audio/video 270p - - -
17 3gp audio/video 144p - - -
18 mp4 audio/video 360p - - -
22 mp4 audio/video 720p - - -
@weihanglo
weihanglo / tokio-internals.md
Last active January 25, 2025 09:10
ใ€่ญฏใ€‘Tokio ๅ…ง้ƒจๆฉŸๅˆถ๏ผšๅพž้ ญ็†่งฃ Rust ้žๅŒๆญฅ I/O ๆก†ๆžถ

ๆœฌๆ–‡่ญฏ่‡ช [Tokio internals: Understanding Rust's asynchronous I/O framework from the bottom up][tokio-internals]ใ€‚
Thanks [David Simmons][david-simmons] for this awesome article!

[Tokio][tokio] ๆ˜ฏ Rust ็š„้–‹็™ผๆก†ๆžถ๏ผŒ็”จๆ–ผ้–‹็™ผ้žๅŒๆญฅ I/O ็จ‹ๅผ๏ผˆasynchronous I/O๏ผŒไธ€็จฎไบ‹ไปถ้ฉ…ๅ‹•็š„ไฝœๆณ•๏ผŒๅฏๅฏฆ็พๆฏ”ๅ‚ณ็ตฑๅŒๆญฅ I/O ๆ›ดๅฅฝ็š„ๅปถไผธๆ€งใ€ๆ•ˆ่ƒฝ่ˆ‡่ณ‡ๆบๅˆฉ็”จ๏ผ‰ใ€‚ๅฏๆƒœ็š„ๆ˜ฏ๏ผŒTokio ้Žๆ–ผ็ฒพๅฏ†็š„ๆŠฝ่ฑก่จญ่จˆ๏ผŒๆ‹›่‡ด้›ฃไปฅๅญธ็ฟ’็š„ๆƒกๅใ€‚ๅณไฝฟๆˆ‘่ฎ€ๅฎŒๆ•™็จ‹ๅพŒ๏ผŒไพ็„ถไธ่ช็‚บ่‡ชๅทฑๅ……ๅˆ†ๅ…งๅŒ–้€™ไบ›ๆŠฝ่ฑกๅฑค๏ผŒไปฅไพฟๆŽจๆ–ทๅฏฆ้š›็™ผ็”Ÿ็š„ไบ‹ๆƒ…ใ€‚

ๅพžๅ‰็š„้žๅŒๆญฅ I/O ็›ธ้—œ้–‹็™ผ็ถ“้ฉ—็”š่‡ณ้˜ป็ค™ๆˆ‘ๅญธ็ฟ’ Tokioใ€‚ๆˆ‘็ฟ’ๆ…ฃไฝฟ็”จไฝœๆฅญ็ณป็ตฑๆไพ›็š„ selection ๅทฅๅ…ท๏ผˆไพ‹ๅฆ‚ Linux epoll๏ผ‰็•ถไฝœ่ตท้ปž๏ผŒๅ†่ฝ‰็งป่‡ณ dispatchใ€state machine ็ญ‰็ญ‰ใ€‚ๅ€˜่‹ฅ็›ดๆŽฅๅพž Tokio ๆŠฝ่ฑกๅฑคๅ‡บ็™ผ๏ผŒๅปๆฒ’ๆœ‰ๆธ…ๆฅšไบ†่งฃ epoll_wait() ๅœจไฝ•่™•ๅŠๅฆ‚ไฝ•็™ผ็”Ÿ๏ผŒๆˆ‘ๆœƒ่ฆบๅพ—้›ฃไปฅ้€ฃ็ตๆฏๅ€‹ๆฆ‚ๅฟตใ€‚Tokio ่ˆ‡ future-driven ็š„ๆ–นๆณ•ๅฐฑๅฅฝๅƒไธ€ๅ€‹้ป‘็›’ๅญใ€‚

@doggy8088
doggy8088 / Angular 18 Dev Setup.md
Last active March 29, 2025 14:04
Angular 18 ้–‹็™ผ็’ฐๅขƒ่ชชๆ˜Ž

Angular 18 ้–‹็™ผ็’ฐๅขƒ่ชชๆ˜Ž

็‚บไบ†่ƒฝ่ฎ“ๅคงๅฎถ่ƒฝๅค ้ †ๅˆฉ็š„ๅปบ็ซ‹่ตท Angular 18 ้–‹็™ผ็’ฐๅขƒ๏ผŒไปฅไธ‹ๆ˜ฏ้œ€่ฆๅฎ‰่ฃ็š„็›ธ้—œ่ปŸ้ซ”่ˆ‡ๅฎ‰่ฃๆญฅ้ฉŸ่ˆ‡่ชชๆ˜Žใ€‚

Angular LOGO

[ ไฝœๆฅญ็ณป็ตฑ ]

  • Windows 10 ไปฅไธŠ็‰ˆๆœฌ
  • Mac OS X 10.6 ไปฅไธŠ็‰ˆๆœฌ
@AgentOak
AgentOak / youtube_formats.md
Last active April 25, 2025 18:04
Youtube Format IDs

Last updated: April 2021

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4
@jwebcat
jwebcat / gist:5122366
Last active January 23, 2025 05:43 — forked from lemenkov/gist:1674929
Properly download from github using wget and curl
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1
# --no-check-cerftificate was necessary for me to have wget not puke about https
curl -LJO https://github.com/joyent/node/tarball/v0.7.1