Skip to content

Instantly share code, notes, and snippets.

@zinwalin
zinwalin / default nginx configuration file
Created June 12, 2022 04:34 — forked from meetkabeershah/default nginx configuration file
The default nginx configuration file inside /etc/nginx/sites-available/default
## Personal note: Muslims are not terrorists and I humbly request my engineering community to help end racism.
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@zinwalin
zinwalin / SystemPropertiesProxy
Created June 30, 2022 02:22 — forked from crossle/SystemPropertiesProxy
Use the reflection invoke SystemProperites
import java.lang.reflect.Method;
public class SystemPropertiesProxy {
/**
* This class cannot be instantiated
*/
private SystemPropertiesProxy() {
}
@zinwalin
zinwalin / 跨程序数据共享_ContentProvider.md
Created July 13, 2022 15:08 — forked from dearsq/跨程序数据共享_ContentProvider.md
[组件_ContentProvider] 跨程序数据共享 #Android

基本概念

用法两种:

  1. 使用现有的ContentProvider来读取和操作相应程序中的数据
  2. 创建自己的内容提供器给我们的程序的数据提供外部访问接口

ContentResolver 使用方法

ContentResolver resolver = Context.getContentResolver(); resolver.insert //增 resolver.delete //删

@zinwalin
zinwalin / brightness-utils.java
Created July 14, 2022 02:33 — forked from rakkang/brightness-utils.java
【Android】修改系统亮度
/**
* 获取当前系统亮度
**/
public int getGlobalScrennBrightness(Context context) {
int nowBrightnessValue = -1;
ContentResolver resolver = context.getContentResolver();
try {
nowBrightnessValue = android.provider.Settings.System.getInt(resolver,
Settings.System.SCREEN_BRIGHTNESS);
} catch (Exception e) {
@zinwalin
zinwalin / AndroidManifest.xml
Created January 27, 2023 00:47 — forked from bjoernQ/AndroidManifest.xml
Creating a System Overlay (Always on Top over all Apps) in Android
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.mobilej.overlay"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="14" />
<application android:label="SystemOverlay" >
<activity
VMware Workstation Pro 16.x Serials
YA7RA-F6Y46-H889Z-LZMXZ-WF8UA
ZV7HR-4YX17-M80EP-JDMQG-PF0RF
UC3XK-8DD1J-089NP-MYPXT-QGU80
GV100-84W16-M85JP-WXZ7E-ZP2R6
YF5X2-8MW91-4888Y-DNWGC-W68TF
AY1XK-0NG5P-0855Y-K6ZXG-YK0T4
VMware Workstation Player 16.x Serials