Skip to content

Instantly share code, notes, and snippets.

@unixzilla
unixzilla / glm-coding-plan-rush-helper.user.js
Created April 23, 2026 02:19 — forked from LessUp/glm-coding-plan-rush-helper.user.js
⚡ GLM Coding Rush — 智谱编程助手一键抢购脚本 | Auto-Purchase Userscript for GLM Coding | 自动解锁售罄 · 高速重试 · 定时触发 · 支付保护 · 中英双语面板 | Auto-unlock sold-out · High-speed retry · Scheduled trigger · Payment guard · Bilingual panel | Tampermonkey/Violentmonkey | 点击 Raw 安装 · Click Raw to install
// ==UserScript==
// @name GLM Coding Rush - 智谱编程助手抢购脚本
// @namespace https://gist.github.com/LessUp
// @version 1.1.0
// @description 智谱 GLM Coding 一键抢购脚本 — 自动解锁售罄按钮 / 高速重试引擎 / bizId 双重校验 / 错误弹窗自动恢复 / 支付弹窗保护 / 秒级定时触发 / 可拖拽浮动面板
// @author LessUp
// @match *://www.bigmodel.cn/*
// @match https://bigmodel.cn/glm-coding*
// @run-at document-start
// @grant none
@unixzilla
unixzilla / gist:b57cf961b9e0099b79a8e362025b08a4
Last active June 4, 2022 18:33
Ubuntu with Docker container application run the curl issue OpenSSL SSL_connect: Connection reset by peer in connection to domain.com:443
The problem is that maybe your host with docker containers network with different MTU settings.
usually your host under the VPN network.
please check in terminal: ip link
look at docker containers mtu number is match with the VPN mtu. e.g: 1400 or 1500
if the docker containers not match vpn mtu, you could try set you network driver mtu in docker-compose.yml
first stop all your docker containers
Then edit docker-compose.yml

Introduction

CICD Pipeline

A software development that plans development how developer coding and testing that process is a continuous integration and then continuous delivery is a process that auto testing on staging[docker] that will marge other code committed by other developers and then deploy to production server manually OR continuous deployment is a process that auto testing and auto-deploy to a production server, aim to automatic DevOps. Following instruction is base on Mac user and VS Code only, if you are Windows or Linux user that may a bit different.

How CI/CD works

every time you do git push will trigger CI operation that will follow the user script instruction (gitlab-ci.yml) to do DevOps operation.

Introduction

A software development that plans development how developer coding and testing that process is a continuous integration and then continuous delivery is a process that auto testing on staging[docker] that will marge other code committed by other developers and then deploy to production server manually OR continuous deployment is a process that auto testing and auto-deploy to a production server, aim to automatic DevOps.

How CI/CD works

every time you do git push will trigger CI operation that will follow the user script instruction (gitlab-ci.yml) to do DevOps operation.

create a git project

@unixzilla
unixzilla / ChunkFile.html
Created November 23, 2021 03:00
upload large file and chunk it send to server
<!DOCTYPE html>
<html>
<head>
<title>Upload Files using XMLHttpRequest</title>
<script type="text/javascript">
var upload_id = '<?= $result['UploadId']; ?>';
var upload_state = [];
var xhr = new XMLHttpRequest ();
@unixzilla
unixzilla / tmux.conf
Last active August 29, 2015 14:19 — forked from spicycode/tmux.conf
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000