Skip to content

Instantly share code, notes, and snippets.

@hugozhu
hugozhu / du.go
Last active December 20, 2015 14:29
Another Go script to count folder size
package main
import (
"fmt"
"os"
"runtime"
"sync"
"sync/atomic"
"time"
)
#!/usr/bin/python
#
# based on code from lrvick and LiquidCrystal
# lrvic - https://github.com/lrvick/raspi-hd44780/blob/master/hd44780.py
# LiquidCrystal - https://github.com/arduino/Arduino/blob/master/libraries/LiquidCrystal/LiquidCrystal.cpp
#
from time import sleep
from datetime import datetime
package main
import (
"io/ioutil"
"log"
"net"
"net/http"
"net/url"
"strings"
"time"
@hugozhu
hugozhu / XSSFilter.filter
Created August 28, 2014 08:25
XSSFilter
package web.filter
import java.io.IOException;
import java.text.Normalizer;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.regex.Pattern;
@hugozhu
hugozhu / base_config.yaml
Created August 14, 2021 02:08 — forked from allen0125/base_config.yaml
SurfShark Shadowsocks IP 列表文件转 Clash配置文件脚本
#---------------------------------------------------#
## 配置文件需要放置在 $HOME/.config/clash/config.yml
##
## 如果您不知道如何操作,请参阅 SS-Rule-Snippet 的 Wiki:
## https://github.com/Hackl0us/SS-Rule-Snippet/wiki/clash(X)
#---------------------------------------------------#
# HTTP 代理端口
port: 7890