自定义镜像
如何自定义一个镜像,并上传到Docker Hub 。
假设需要为php-fpm-alpine增加mysqli扩展并增加 usermod 命令。
编写Dockerfile
FROM php:7.4.3-fpm-alpine
LABEL maintainer="liujun<liujun@forkliu.com>"
RUN docker-php-ext-install mysqli
RUN echo http://dl-2 …
如何自定义一个镜像,并上传到Docker Hub 。
假设需要为php-fpm-alpine增加mysqli扩展并增加 usermod 命令。
编写Dockerfile
FROM php:7.4.3-fpm-alpine
LABEL maintainer="liujun<liujun@forkliu.com>"
RUN docker-php-ext-install mysqli
RUN echo http://dl-2 …
// http://androidxref.com/6.0.1_r10/xref/libcore/libart/src/main/java/java/lang/Class.java
public final class Class<T> implements Serializable, AnnotatedElement, GenericDeclaration, Type {
static native Class<?> classForName(String className, boolean shouldInitialize,
ClassLoader classLoader) throws ClassNotFoundException;
}
// http://androidxref.com/6.0.1_r10/xref/libcore/libart/src …
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape=["rectangle" | "oval" | "line" | "ring"]
android:innerRadius="integer"
android:innerRadiusRatio="integer"
android:thickness="integer"
android:thicknessRatio="integer"
android:useLevel="boolean"
>
<corners
android:radius="integer"
android:topLeftRadius="integer"
android:topRightRadius="integer"
android:bottomLeftRadius …
Title: Java 知识点 Date: 2019-05-13 11:06:28 Modified: 2019-05-13 11:06:28 Category: Android Tags: Java Slug: java-tips
变长参数是 Java 的一个语法糖,本质上还是基于数组的实现:
void …
cd ~/.ssh
ssh-keygen -t rsa -C "example@example.com"
ssh-keygen -t ed25519 -C "your_email@example.com"
on Windows:
eval `ssh-agent -s`
ssh-add example
vim config
Host example
Hostname github.com …
在Windows 7中文版系统上使用7z压缩一些文件后,然后在Windows 10 Pro英文版系统上解压,发现凡是文件名中包含中文,最后都是乱码。
使用7z压缩文件时,对文件名的编码是采用Windows 系统默 …
read morepip3 install frida
pip3 install frida-tools
frida-ps -U
frida-trace -U -i "recvfrom" com.android.chrome
Java.enumerateLoadedClasses(
{
"onMatch": function(className){
console.log(className)
},
"onComplete":function(){}
}
)
Java.perform(function () {
var Activity = Java.use …
目标进程需要打开调试开关,android:debuggable=true
adb shell am profile start com.tencent.mm /data/local/tmp/1.trace
adb shell am profile stop com.tencent.mm
adb pull /data/local/tmp/1.trace
~/adt-2014/sdk/tools …