Skip to content

Instantly share code, notes, and snippets.

@qzi
qzi / word.count.bug
Created December 6, 2025 07:31
word.count.bug - bun - cf
2025-12-06T07:22:47.881481Z Using v2 root directory strategy
2025-12-06T07:22:47.902793Z Success: Finished cloning repository files
2025-12-06T07:22:48.624363Z No build output detected to cache. Skipping.
2025-12-06T07:22:48.624977Z No dependencies detected to cache. Skipping.
2025-12-06T07:22:49.637589Z Checking for configuration in a Wrangler configuration file (BETA)
2025-12-06T07:22:49.638312Z
2025-12-06T07:22:49.639824Z Found wrangler.toml file. Reading build configuration...
2025-12-06T07:22:49.646286Z pages_build_output_dir: public
2025-12-06T07:22:49.646481Z Build environment variables:
2025-12-06T07:22:49.646573Z - BUN_VERSION: 1.3.3
@qzi
qzi / styles.styl
Created November 26, 2025 01:52
styles.styl for Hexo Next
/* Custom Styles for Hexo NexT */
/* Image Alignment: Mobile Center, Desktop Left */
.post-body img {
display: block;
margin-left: auto;
margin-right: auto;
}
/* Desktop (min-width 768px is standard for tablets/desktop in NexT) */
@qzi
qzi / markdown.preview.for.vscode.css
Created November 21, 2025 21:02
markdown.preview.for.vscode.css
/* VS Code Markdown Preview */
/* Center images */
img {
display: block;
margin-left: auto;
margin-right: auto;
}
/* Desktop left-aligned images */
@qzi
qzi / wpa_customer_message.js
Created September 29, 2023 08:44
wpa_customer_message
var options = {
method: 'POST',
uri: 'https://api.weixin.qq.com/cgi-bin/message/custom/send',
body: {
touser: wxContext.FROM_OPENID,
msgtype: "text",
text: {
content: "Hello World"
}
},
@qzi
qzi / pom.xml
Created August 8, 2022 16:38
Cucumber4java using io.cucumber
<!--
! Excerpted from "The Cucumber for Java Book",
! published by The Pragmatic Bookshelf.
! Copyrights apply to this code. It may not be used to create training material,
! courses, books, articles, and the like. Contact us if you are in doubt.
! We make no guarantees that this code is fit for any purpose.
! Visit http://www.pragmaticprogrammer.com/titles/srjcuc for more book information.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@qzi
qzi / sysctl.conf.sh
Last active March 2, 2024 16:18
sysctl.conf.sh for macos
#!/bin/bash
# Desc: network performance tunning for mac gateway and it should run using sudo
# increase the socket buffer
sysctl -w kern.ipc.maxsockbuf=16777216
# net.inet.tcp.sendspace + net.inet.tcp.recvspace < kern.ipc.maxsockbuf
sysctl -w net.inet.tcp.sendspace=1048576
sysctl -w net.inet.tcp.recvspace=1048576
@qzi
qzi / snell-tf.sh
Last active January 8, 2022 16:16
For snell v3.0.0rc2 on ubuntu aarch64
#!/usr/bin/env bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
CONF="/etc/snell/snell-server.conf"
SYSTEMD="/etc/systemd/system/snell.service"
apt-get install unzip -y
cd ~/
wget --no-check-certificate -O snell.zip https://github.com/surge-networks/snell/releases/download/v3.0.0rc2/snell-server-v3.0.0-linux-aarch64.zip
unzip -o snell.zip
rm -f snell.zip