Skip to content

Instantly share code, notes, and snippets.

@hashmaparraylist
hashmaparraylist / default.conf
Created November 29, 2021 09:14
Nginx方向代理
server
{
listen 80 default;
server_name _;
index index.html index.htm index.php;
root /data/httpd/;
location ^~ /ms/b/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@hashmaparraylist
hashmaparraylist / deploy_modules.sh
Created February 22, 2023 06:29
获取pom.xml中所有module
#!/bin/bash
read_dom () {
#local IFS=\>
#read -d \< ENTITY CONTENT
local IFS=\>
read -d \< ENTITY CONTENT
local ret=$?
TAG_NAME=${ENTITY%% *}
ATTRIBUTES=${ENTITY#* }
@hashmaparraylist
hashmaparraylist / statusline.ps1
Created May 19, 2026 15:52
Claude Code Status Line
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$stdin = [System.Console]::OpenStandardInput()
$reader = [System.IO.StreamReader]::new($stdin)
$raw = $reader.ReadToEnd()
$reader.Dispose()
if ([string]::IsNullOrEmpty($raw)) {
Write-Output "Claude Code"
exit 0