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
export http_proxy="127.0.0.1:8001" | |
export https_proxy="127.0.0.1:8001" | |
export ALL_PROXY="127.0.0.1:8001" | |
export PUB_HOSTED_URL=https://pub.flutter-io.cn | |
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn | |
export ANDROID_SDK=/Users/pcqpcq/Documents/android_sdk | |
export FLUTTER_SDK=/Users/pcqpcq/Documents/flutter_sdk |
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
@echo off | |
set PING_COUNT=10 | |
set SKIP_LINE=13 | |
set DNS_ADDRESS_ARRAY=168.126.63.1 ^ | |
168.126.63.2 ^ | |
223.5.5.5 ^ | |
223.6.6.6 ^ | |
168.95.1.1 ^ | |
168.95.192.1 ^ |
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 | |
# right_file_size = 47899100 | |
FILE_SIZE_AT_LEAST=47800000 | |
FINISH_SIGNAL=0 | |
TARGET_FILE=/Users/pcqpcq/Documents/android_publish_packages/bbtime/app/build/outputs/apk/official/release/bbtime_base_1.9.4_20190311.apk | |
while [[ "$FINISH_SIGNAL" -ne 1 ]] | |
do |
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 file in ./* | |
do | |
fname=$(basename $file .mp4) #获取文件名 | |
expr $fname "+" 10 &> /dev/null # 判断是否数字 | |
if [ $? -eq 0 ];then # 判断是否数字 | |
name=$(($fname+98)) # 数字运算 | |
echo "$name is number" # log | |
mv $fname.mp4 $name.mp4 # 重命名 | |
fi |
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
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
sundayFirstCalendar = 'cal && date' | |
mondayFirstCalendar = 'cal | awk \'{ print " "$0; getline; print "Mo Tu We Th Fr Sa Su"; \ | |
getline; if (substr($0,1,2) == " 1") print " 1 "; \ | |
do { prevline=$0; if (getline == 0) exit; print " " \ | |
substr(prevline,4,17) " " substr($0,1,2) " "; } while (1) }\' && date' | |
command: sundayFirstCalendar | |
refreshFrequency: 3600000 |
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
// #region from [here](https://github.com/nisrulz/easydeviceinfo/blob/develop/easydeviceinfo-base/src/main/java/github/nisrulz/easydeviceinfo/base/EasyIdMod.java) | |
/** | |
* Gets android id. | |
* | |
* @return the android id | |
*/ | |
@SuppressLint("HardwareIds") | |
public final String getAndroidID() { | |
return CheckValidityUtil.checkValidData( | |
Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID)); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > | |
<!-- Drop Shadow Stack --> | |
<item> | |
<shape> | |
<padding | |
android:bottom="1dp" | |
android:left="1dp" | |
android:right="1dp" |
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
# default.custom.yaml | |
# save it to: | |
# ~/.config/ibus/rime (linux) | |
# ~/Library/Rime (macos) | |
# %APPDATA%\Rime (windows) | |
patch: | |
schema_list: | |
- schema: luna_pinyin # 朙月拼音 | |
- schema: luna_pinyin_simp # 朙月拼音 简化字模式 |
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
package com.oasisfeng.greenify.utils; | |
import android.app.AlarmManager; | |
import android.app.PendingIntent; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.os.Handler; | |
import android.os.Looper; |
NewerOlder