sudo apt install openjdk-8-jdk-headless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Used in https://jina.ai/tokenizer (Aug. 14th version) | |
// Define variables for magic numbers | |
const MAX_HEADING_LENGTH = 6; | |
const MAX_HEADING_CONTENT_LENGTH = 200; | |
const MAX_HEADING_UNDERLINE_LENGTH = 200; | |
const MAX_HTML_HEADING_ATTRIBUTES_LENGTH = 100; | |
const MAX_LIST_ITEM_LENGTH = 200; | |
const MAX_NESTED_LIST_ITEMS = 5; | |
const MAX_LIST_INDENT_SPACES = 7; | |
const MAX_BLOCKQUOTE_LINE_LENGTH = 200; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[config] | |
mode=bypass | |
url=https://gist.githubusercontent.com/rosuH/5cac025b74be99a27ec1afd3b9600ff1/raw/d2b60ed4909961431b4e6f3199f1a869ce0406c9/Sample.conf | |
[rule] | |
REGEX,com.baidu.* | |
REGEX,com.chinamworld.* | |
REGEX,com.ss.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[config] | |
mode=bypass | |
url=https://gist.githubusercontent.com/rosuH/a6a51296c5e24fac25e80e0a3e16cac3/raw/de77c5f739bb6853995f646452028d524aae65ec/sample.conf | |
[rule] | |
# [影音娱乐] | |
EXTRA,com.ss.android.ugc.aweme | |
EXTRA,com.kuaishou.nebula | |
EXTRA,com.kuaishou.abc | |
EXTRA,com.ss.android.ugc.aweme.lite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host * | |
AddKeysToAgent yes | |
UseKeychain yes | |
IdentityFile ~/.ssh/id_ed25519 | |
Host github.com | |
Hostname ssh.github.com | |
AddKeysToAgent yes | |
Port 443 | |
UseKeychain yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EMPTY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in {1..7} | |
do | |
for i in {1..100} | |
do | |
openssl rand -out "$i.random" -base64 2147483647 | |
if [ $? -ne 0 ]; then | |
echo "Disk full, do clean" | |
rm -rf *.random | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
killall Xcode | |
xcrun -k | |
xcodebuild -alltargets clean | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" | |
rm -rf /Applications/Xcode.app | |
rm -rf ~/Library/Caches/com.apple.dt.Xcode | |
rm -rf ~/Library/Developer | |
rm -rf ~/Library/MobileDevice | |
rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $(seq 1 100) | |
do | |
adb shell am force-stop com.exmaple | |
sleep 1 | |
adb shell am start-activity -W -n com.exmaple/.SplashActivity | grep "TotalTime" | cut -d ' ' -f 2 | |
done |
NewerOlder