Skip to content

Instantly share code, notes, and snippets.

View LisonLiou's full-sized avatar

Lison Liou LisonLiou

View GitHub Profile
@mokoshalb
mokoshalb / Office_kms
Created July 4, 2019 05:36 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
cd\Program Files\Microsoft Office\Office16
cd\Program Files (x86)\Microsoft Office\Office16
cscript OSPP.VBS /sethst:kms.digiboy.ir
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus
slmgr.vbs /ckms
@chenenyu
chenenyu / RealPathUtils.java
Created January 7, 2019 06:42
get real path from uri.
/**
* 从Uri中获取真实路径
* Created by chenenyu on 2018/12/24.
*/
public class RealPathUtils {
public static String getRealPath(Context context, Uri fileUri) {
String realPath;
// SDK >= 11 && SDK < 19
if (Build.VERSION.SDK_INT < 19) {