sudo apt-get install git-core gitk git-gui gcc-arm-linux-gnueabihf device-tree-compiler gcc-aarch64-linux-gnu mtools parted libssl-dev
| package com.test.android.helpers; | |
| import android.os.Build; | |
| import android.webkit.WebResourceResponse; | |
| import com.google.gson.Gson; | |
| import com.google.gson.reflect.TypeToken; | |
| import com.test.android.Application; | |
| import org.apache.commons.collections.CollectionUtils; |
| // Require the core node modules. | |
| var chalk = require( "chalk" ); | |
| var fileSystem = require( "fs" ); | |
| var JSONStream = require( "JSONStream" ); | |
| // ----------------------------------------------------------------------------------- // | |
| // ----------------------------------------------------------------------------------- // | |
| @Override | |
| public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request) { | |
| String resourceUrl = request.getUrl().toString(); | |
| String fileExtension = WebviewResourceMappingHelper.getInstance().getFileExt(resourceUrl); | |
| if(WebviewResourceMappingHelper.getInstance().getOverridableExtensions().contains(fileExtension)){ | |
| String encoding = "UTF-8"; | |
| String assetName = WebviewResourceMappingHelper.getInstance().getLocalAssetPath(resourceUrl); | |
| if (StringUtils.isNotEmpty(assetName)) { | |
| String mimeType = WebviewResourceMappingHelper.getInstance().getMimeType(fileExtension); | |
| if (StringUtils.isNotEmpty(mimeType)) { |
| package jp.kogane.dev.prv.keystoretester; | |
| import android.content.Context; | |
| import android.security.KeyPairGeneratorSpec; | |
| import android.support.annotation.NonNull; | |
| import java.io.IOException; | |
| import java.math.BigInteger; | |
| import java.security.GeneralSecurityException; | |
| import java.security.InvalidAlgorithmParameterException; |
※161102 以下記事に最新の方法が記載されてます。
http://blog.cntlog.net/?p=1494
core@wocker ~ $ wocker run --name CONTAINERcore@wocker ~ $ wocker exec -it CONTAINER bashroot@*****:/var/www/wordpress# wp db import --allow-root| package ch.cern.test.mdm.utils; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.security.MessageDigest; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.security.NoSuchProviderException; | |
| import java.security.PrivateKey; | |
| import java.security.Security; |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.security.KeyStore; | |
| import java.security.PrivateKey; | |
| import java.security.Security; | |
| import java.security.cert.Certificate; | |
| import java.security.cert.X509Certificate; | |
| import java.util.Arrays; | |
| import java.util.List; |
| /* | |
| * Copyright (C) 2013 Onavo Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| *.d | |
| *.pre | |
| *.p1 | |
| *.lst | |
| *.sym | |
| *.obj | |
| *.o | |
| *.sdb | |
| *.obj.dmp | |
| html/ |