Skip to content

Instantly share code, notes, and snippets.

View luoling8192's full-sized avatar
:octocat:
Focusing

RainbowBird luoling8192

:octocat:
Focusing
View GitHub Profile
@nekomeowww
nekomeowww / org-repository-go.workflow.yaml
Last active August 15, 2025 09:18
Example of distributing Protobuf files from centralized repository to sub packages like Golang, Python, Rust, Node.js while maintain their each languages / frameworks workflow and structure of projects. Each sub-repository can have their own publishing mechanism like go-releaser, or bumpp for Node.js.
name: Protobuf Codegen
concurrency: protobuf-gen
on:
workflow_dispatch:
jobs:
protobuf_gen_golang:
runs-on: ubuntu-latest
@luoling8192
luoling8192 / reposize.js
Last active August 10, 2025 13:35
GitHub Repo Size Display
// ==UserScript==
// @name GitHub Repo Size Display
// @namespace http://tampermonkey.net/
// @version 0.1
// @license MIT
// @description Display repository size on GitHub repository pages
// @author RainbowBird
// @match https://github.com/*
// @grant GM_xmlhttpRequest
// @connect api.github.com
@luoling8192
luoling8192 / issue.js
Last active March 16, 2025 12:06
Github Issue Quick Edit
// ==UserScript==
// @name GitHub Issue 快速编辑器
// @namespace https://github.com/
// @version 0.2.2
// @description 通过点击 GitHub Issue 标题栏快速进入编辑模式
// @author RainbowBird
// @match https://github.com/*/*/issues/*
// @match https://github.com/*/*/issues
// @grant none
// @run-at document-end
@lucasmrdt
lucasmrdt / settings.json
Last active October 30, 2025 07:47
Trae theme for cursor/vscode
{
"workbench.colorTheme": "Default Dark+",
"window.titleBarStyle": "custom",
"editor.scrollbar.vertical": "visible",
"editor.scrollbar.horizontal": "visible",
"editor.scrollbar.verticalScrollbarSize": 8,
"editor.scrollbar.horizontalScrollbarSize": 8,
"breadcrumbs.showFiles": true,
"breadcrumbs.showArrays": false,
"breadcrumbs.showBooleans": false,
@luoling8192
luoling8192 / setup.sh
Last active November 26, 2024 11:54
Ubuntu Setup Script
#!/bin/bash
# Define colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
# Define package groups
MIRROR="https://mirrors.tuna.tsinghua.edu.cn/ubuntu"
@luoling8192
luoling8192 / mouse.ps1
Last active August 17, 2024 23:35
Windows Nature Mouse Scrolling
# 检查当前用户是否具有管理员权限
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Write-Host "请以管理员身份运行此脚本。"
exit
}
# 注册表路径
$regPath = "HKLM:\SYSTEM\CurrentControlSet\Enum\HID"
# 获取所有以 VID_ 开头的设备
@saeziae
saeziae / custom.css
Created April 19, 2024 15:23
Visuwual Stuwudio Cowode
.editor-group-watermark > .letterpress{
background-image: url(https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode-Thick.png) !important;
opacity: .75;
}
@WillianTomaz
WillianTomaz / wsl2-with-1password-info.md
Last active November 28, 2025 22:07
Instructions for using 1Password SSH Agent with WSL2 (on Windows 11)

LinkedIn

Saturday, April 22, 2023

How to Use 1Password SSH Agent with WSL2 (on Windows 11)

  • Note:

    • Always look for the official documentation, this tutorial may not suit you as there are new updates to the installation process.
    • References are at the end of the document.
  • Was used:

@lewangdev
lewangdev / default.custom.yaml
Last active October 30, 2025 03:46
雾凇拼音自定义配置,MacOS-like & Wechat-like Dark/Light Color Scheme For Rime
patch:
# 菜单
menu:
page_size: 8 # 候选词个数
# alternative_select_labels: [ ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩ ] # 修改候选项标签
# alternative_select_keys: ASDFGHJKL # 如编码字符占用数字键,则需另设选字键
# ascii_mode、inline、no_inline、vim_mode 等等设定,可参考 /Library/Input Methods/Squirrel.app/Contents/SharedSupport/squirrel.yaml
# 中西文切换
#
# 【good_old_caps_lock】 CapsLock 切换到大写或切换中英。
@abc1763613206
abc1763613206 / bvtest.py
Last active March 16, 2025 15:30
BVID Validate
import requests
import json
import random
Back_URL = 'https://api.bilibili.com/x/web-interface/archive/stat?aid='
headers = {
'Cookie': "Replace Me With REAL COOKIE" ,
'Pragma': 'no-cache',