Skip to content

Instantly share code, notes, and snippets.

View narze's full-sized avatar
🕺
You know the rules, and so do I

Manassarn "Noom" Manoonchai narze

🕺
You know the rules, and so do I
View GitHub Profile
/* ==UserStyle==
@name Youtube Live Chat for capture
@namespace yt_live_chat.narze
@version 0.1.0
@author narze
@license MIT
==/UserStyle== */
@-moz-document url-prefix("https://www.youtube.com/live_chat") {
@import url("https://fonts.googleapis.com/css?family=Candal");
@narze
narze / hacktoberfest.sh
Created October 6, 2022 16:31
Add contributers to my Hacktoberfest repos
#!/bin/bash
USER="tinarskii"
REPOS=(
"narze/DaiMai"
"narze/awesome-cheab-quotes"
"narze/awesome-salim-quotes"
"narze/coffee-to-code"
"narze/dumb-questions-th"
"narze/nunmun"
@narze
narze / gist:36059068752b12ac44ece9c7930d1b36
Last active August 1, 2022 14:38
gh-add-user-to-repos.sh
#!/bin/bash
USER="narze"
REPOS=(
"orgname/reponame"
)
for REPO in "${REPOS[@]}"; do
echo "Adding user ${USER} to $REPO"
@narze
narze / gh-add-repos-to-team.sh
Created July 22, 2022 08:33
Add repos to team with gh
#!/bin/bash
PERMISSION="push" # Can be one of: pull, push, admin, maintain, triage
ORG="orgname"
TEAM_SLUG="your-team-slug"
# Get names with `gh repo list orgname`
REPOS=(
"orgname/reponame"
)
@narze
narze / settings.json
Created March 12, 2022 08:51
VSCode Customize UI settings
{
"customizeUI.activityBar": "top",
"customizeUI.activityBarHideSettings": true,
"customizeUI.font.monospace": "FantasqueSansMono Nerd Font",
"customizeUI.font.regular": "FantasqueSansMono Nerd Font",
"customizeUI.fontSizeMap": {
"12px": "11px",
"13px": "11px",
// "monospace": "11px", // Used for monospace fonts in user interface
"menu": "13px", // Used for menu items (windows only)
KBD Manoonchai "Thai Manoonchai v1.0"
COPYRIGHT "MIT"
COMPANY "Manoonchai"
LOCALENAME "th-TH"
LOCALEID "0000041e"
@narze
narze / gov-project-generator.rb
Last active May 27, 2021 05:55
gov-project-generator
sub = %w[เรา หมอ ชาติ ไทย ครู กรุงเทพ นนท์]
verb = %w[รัก มี เที่ยว ชนะ ชิม ช้อป ใช้ สะดวก พร้อม ไม่ทิ้ง ร่วมใจ]
obj = %w[เรา กัน ไทย ด้วยกัน ชาติ หมอ สะดวก ครู] + [nil]
special_verb = %w[สู้โควิด ปลอดภัย]
normal = sub.product(verb, obj).map(&:join).uniq
special = sub.product(special_verb).map(&:join)
all = (normal + special).sort
async function run() {
const wait = ms => new Promise(resolve => setTimeout(resolve, ms))
const selector = 'div[aria-label="Toggle to follow"] div'
const nodes = [...document.querySelectorAll(selector)]
if (!nodes.length) return
for (let node of nodes) {
const text = node.parentElement.parentElement.parentElement.innerText
า : 1854
น : 1593
ร : 1530
อ : 1139
ก : 1102
เ : 1050
ง : 989
ั : 947
ย : 900
่ : 894