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
[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] | |
REGEX,com.baidu.* | |
REGEX,com.chinamworld.* | |
REGEX,com.ss.* | |
REGEX,com.taobao.* | |
REGEX,com.tencent.* |
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 |
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 | |
cd "/usr/lib/jenkins/" | |
sudo service jenkins stop | |
sudo mv jenkins.war jenkins.war.old | |
sudo wget https://updates.jenkins-ci.org/latest/jenkins.war | |
sudo service jenkins start |
NewerOlder