Skip to content

Instantly share code, notes, and snippets.

View allen0099's full-sized avatar
🐱
meow

秉虎 allen0099

🐱
meow
View GitHub Profile
@allen0099
allen0099 / noProxySites.sorl
Created July 8, 2019 22:16
The sites shouldn't pass through the local proxy, they should go directly without proxy
[SwitchyOmega Conditions]
; Require: SwitchyOmega >= 2.3.2
; Date: 7/9/2019
; Usage: https://github.com/FelisCatus/SwitchyOmega/wiki/RuleListUsage
; Author: allen0099
; SSL
*.pki.goog
*.entrust.net
*.godaddy.com
@allen0099
allen0099 / generate.sh
Created August 12, 2019 18:45
SITCON Camp 2019 產生大量可用 QR Code 點數
#!/bin/bash
# Author: 秉虎
TOKEN=""
COIN=""
DESCRIPTION=""
GENERATE_URL="https://camp-api.sitcon.party/generate"
# Change the number for how many you want to generate
@allen0099
allen0099 / ptt_aid_converter.py
Last active June 23, 2020 12:47
PTT aid 跟 url 互相轉換的工具
import base64
import re
STANDARD_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
CUSTOM_ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_"
ENCODE = str.maketrans(STANDARD_ALPHABET, CUSTOM_ALPHABET)
DECODE = str.maketrans(CUSTOM_ALPHABET, STANDARD_ALPHABET)
@allen0099
allen0099 / color.sh
Created March 3, 2023 02:03
Testing color scripts
#!/usr/bin/env bash
# Source: https://misc.flogisoft.com/bash/tip_colors_and_formatting
set -e
echo "=== 16 colors ==="
# Background
for clbg in {40..47} 49 {100..107}; do
# Foreground