Skip to content

Instantly share code, notes, and snippets.

benli.shi beilly

Block or report user

Report or block beilly

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@beilly
beilly / AndroidPath.MD
Last active Aug 21, 2019
记录Android系统文件访问权限
View AndroidPath.MD
Log.i(TAG,context.getCacheDir().getPath());
///data/user/0/{packageName}/cache
Log.i(TAG,context.getFilesDir().getPath());
///data/user/0/{packageName}/files
Log.i(TAG,Environment.getExternalStorageDirectory().getPath());
///storage/emulated/0   需要权限
Log.i(TAG,context.getObbDir().getPath());
///storage/emulated/0/Android/obb/{packageName}  不需要权限,获取其他应用路径的需要权限
Log.i(TAG,context.getExternalCacheDir().getPath());
@beilly
beilly / AndroidManifest.xml
Last active Aug 20, 2019
Android Security Config
View AndroidManifest.xml
android:networkSecurityConfig="@xml/security_config"
@beilly
beilly / jenkin.sh
Created Aug 14, 2019
mac jenkins 安装和启动
View jenkin.sh
brew install jenkins
brew services start jenkins
@beilly
beilly / filelist.txt
Created Jul 7, 2019
一个基于ffmpeg的视频截取合并的过程记录
View filelist.txt
file 'cut111.mp4'
file 'cut333.mp4'
file 'cut222.mp4'
@beilly
beilly / email-sonar.html
Created May 14, 2019
Jenkins邮件模板
View email-sonar.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>${ENV, var="JOB_NAME"}-第${BUILD_NUMBER}次构建日志</title>
</head>
<style>
.build_info_table,
View 开发通用工具.MD
@beilly
beilly / init.gradle
Created Sep 17, 2018
gradle使用阿里云的镜像服务器,包含jitpack、私服配置
View init.gradle
allprojects{
repositories {
maven{ url 'https://maven.aliyun.com/repository/jcenter'}
maven{ url 'https://maven.aliyun.com/repository/google'}
maven { url "https://jitpack.io" }
maven { url 'http://172.17.16.112:8081/nexus/content/repositories/releases/' }
}
buildscript {
repositories {
maven{ url 'https://maven.aliyun.com/repository/jcenter'}
@beilly
beilly / trial.key
Last active Jun 7, 2018 — forked from huqi/trial.key
Beyond Compare 4 license for Mac and Windows
View trial.key
Beyond Compare 4
Licensed to: ASIO Allsoftinone
Quantity: 1 user
Serial number: 1822-9597
License type: Pro Edition for Windows
--- BEGIN LICENSE KEY ---
H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t
@beilly
beilly / edit_cursor_color.xml
Created May 9, 2018
Android TextView修改光标
View edit_cursor_color.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<size android:width="2dp" />
<solid android:color="#ff6a45" />
</shape>
@beilly
beilly / EmptyCheckTypeAdapterFactory.java
Last active Aug 21, 2018
处理 Empty Json Object to null,no Property Jsonobject to null
View EmptyCheckTypeAdapterFactory.java
package com.ibeilly.utils.gson;
import android.os.Parcelable;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.TypeAdapter;
import com.google.gson.TypeAdapterFactory;
You can’t perform that action at this time.