Skip to content

Instantly share code, notes, and snippets.

View chawyehsu's full-sized avatar
☯️
no silver bullet

Chawye Hsu chawyehsu

☯️
no silver bullet
View GitHub Profile
@chawyehsu
chawyehsu / uTorrent.txt
Created May 25, 2025 15:43
Executable info of the last version of the classic uTorrent software, uTorrent 2.0.4 Build 22967
Size: 328568 bytes : 320 KiB
MD5: 44a7d7ba01f438714eafb84684d2a99a
SHA1: 263a91693d0976473cd321cd6f1b0103a814f3ad
SHA256: 8439f7ed52aed8e32118aa164bf5048525bb5350cc8207f3fe69b5245d599679
SHA512: 20989e155955fbff38608a170cfef39677dcdba59d6bd9393146f29f2352d4548c771d106ed817814b977f232d37b7ca14a5f46690088a9d8096697c323a1b8c
@chawyehsu
chawyehsu / punycode.c
Created July 29, 2024 14:55
Reference implementation of RFC3492, Punycode: A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA). https://datatracker.ietf.org/doc/html/rfc3492
/*
punycode.c from RFC 3492
http://www.nicemice.net/idn/
Adam M. Costello
http://www.nicemice.net/amc/
This is ANSI C code (C89) implementing Punycode (RFC 3492).
*/
@chawyehsu
chawyehsu / makeding.conf
Created May 9, 2024 12:59
思杰马克丁域名列表
4009997658.com
6xigema.com
abbyychina.com
affinitychina.cn
affinitysoft.cn
aida64cn.com
alienskins.cn
anydeskchina.cn
appscan.net.cn
ayoachina.com
@chawyehsu
chawyehsu / style.c
Last active August 3, 2024 15:42
NetBSD C language source coding style (Kernel Normal Form - KNF) /usr/share/misc/style
/* $NetBSD: style,v 1.77 2024/01/29 05:42:41 rin Exp $ */
/*
* The revision control tag appears first, with a blank line after it.
* Copyright text appears after the revision control tag.
*/
/*
* The NetBSD source code style guide.
* (Previously known as KNF - Kernel Normal Form).
@chawyehsu
chawyehsu / gist:0498cab0d35fc7c0a3e7652f54042c4f
Created October 13, 2021 12:05 — forked from rahuldamodar94/gist:6bdd022f3457934f2a104fd5f4bb45e4
0x V3 deployment on Matic Testnet (Mumbai - 80001) and Matic Mainnet (137)
"80001":{
"erc20Proxy": "0x0b47076aaa5246411458fcf85494f41bbfdb8470",
"erc721Proxy": "0xff7ca10af37178bdd056628ef42fd7f799fac77c",
"erc1155Proxy": "0x53d791f18155c211ff8b58671d0f7e9b50e596ad",
"zrxToken": "0x5af2b282779c7d4ffc69ca4e6e16676747f5c56b",
"etherToken": "0x5b5e11e4818cceba3e82ca9b97cd0ab80be75ad3",
"exchange": "0x533dc89624dcc012c7323b41f286bd2df478800b",
"erc20BridgeProxy": "0x5638a4b19f121adc4436de3f0e845173b33b594c",
"forwarder": "0x6dcf02d3a963f22dbf85c4025b86a834fef16c15",
"coordinatorRegistry": "0x6f5b9e0456c4849224c7b59dc15f05c48641c4e3",
extern crate self;
extern crate self as hello;
extern crate notify;
extern crate std; // equivalent to: extern crate std as std;
extern crate std as ruststd; // linking to 'std' under another name
extern crate lazy_static;
extern crate hello_world; // hyphen replaced with an underscore
use once_cell;
use ::once_cell;
@chawyehsu
chawyehsu / 📊 Weekly development breakdown
Last active November 11, 2025 00:35
📊 Weekly development breakdown
Rust 4 hrs 12 mins ███████████▏░░░░░░░░░ 53.3%
JSON 2 hrs 13 mins █████▉░░░░░░░░░░░░░░░ 28.3%
TOML 34 mins █▌░░░░░░░░░░░░░░░░░░░ 7.3%
Jest Sn... 15 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.3%
Markdown 9 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.0%
@chawyehsu
chawyehsu / ublock-origin-csdn-list.txt
Last active December 6, 2020 16:40
用 uBlock 调整 CSDN 博客版面
! 2020-11-27 https://blog.csdn.net
blog.csdn.net##.clearfix.recommend-item-box
blog.csdn.net##.template-box
blog.csdn.net##.triplet-prompt
blog.csdn.net###asideNewComments
blog.csdn.net###asideArchive
blog.csdn.net###asideHotArticle
blog.csdn.net###asideCategory
blog.csdn.net##.left-toolbox
blog.csdn.net##.comment-sofa-flag
diff --git a/libexec/scoop-list.ps1 b/libexec/scoop-list.ps1
index de366ddf..46e72894 100644
--- a/libexec/scoop-list.ps1
+++ b/libexec/scoop-list.ps1
@@ -18,32 +18,14 @@ $apps = @($local) + @($global)
if($apps) {
write-host "Installed apps$(if($query) { `" matching '$query'`"}): `n"
- $apps | Sort-Object { $_.name } | Where-Object { !$query -or ($_.name -match $query) } | ForEach-Object {
- $app = $_.name
@chawyehsu
chawyehsu / pQuery.js
Created August 20, 2018 12:34 — forked from niyazpk/pQuery.js
Add or update query string parameter
// Add / Update a key-value pair in the URL query parameters
function updateUrlParameter(uri, key, value) {
// remove the hash part before operating on the uri
var i = uri.indexOf('#');
var hash = i === -1 ? '' : uri.substr(i);
uri = i === -1 ? uri : uri.substr(0, i);
var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i");
var separator = uri.indexOf('?') !== -1 ? "&" : "?";
if (uri.match(re)) {