This is an unofficial manual for the couchdb
Python module I wish I had had.
pip install couchdb
"use strict"; | |
/*use in config.xml <hook type="after_platform_add" src="../path/to/cordova-ios-disable-push.js"/>*/ | |
var fs = require("fs"); | |
var path = require("path"); | |
var COMMENT_KEY = /_comment$/; | |
function nonComments(obj) { | |
var newObj = {}; | |
Object.keys(obj).forEach(function(key) { | |
if (!COMMENT_KEY.test(key)) { |
*.iml | |
.gradle | |
/local.properties | |
/.idea/libraries | |
/.idea/modules.xml | |
/.idea/workspace.xml | |
.DS_Store | |
/build | |
/captures | |
.externalNativeBuild |
*.iml | |
.gradle | |
/local.properties | |
/.idea/workspace.xml | |
/.idea/libraries | |
.DS_Store | |
/build | |
/captures | |
.externalNativeBuild |
*.iml | |
.gradle | |
/local.properties | |
/.idea/workspace.xml | |
/.idea/libraries | |
.DS_Store | |
/build | |
/captures | |
.externalNativeBuild |
*.iml | |
.gradle | |
/local.properties | |
/.idea/libraries | |
/.idea/modules.xml | |
/.idea/workspace.xml | |
.DS_Store | |
/build | |
/captures | |
.externalNativeBuild |
/build |
1. Use openssl | |
openssl smime -in /path/to/your.mobileprovision -inform der -verify | |
2. Use security command | |
security cms -Di /path/to/your.mobileprovision |
This is an unofficial manual for the couchdb
Python module I wish I had had.
pip install couchdb
Sometimes you want to retrieve EC2 insntances' region information.
You can query that information through instance metadata(169.254.169.254).
$ curl --silent http://169.254.169.254/latest/dynamic/instance-identity/document
{
"privateIp" : "172.31.2.15",
"instanceId" : "i-12341ee8",
"billingProducts" : null,
"instanceType" : "t2.small",
# 1. Install nginx | |
brew install nginx | |
# 2. Generate self-signed key/crt | |
openssl req -x509 -nodes -days 365 -newkey rsa:1024 \ | |
-keyout /etc/ssl/private/myssl.key \ | |
-out /etc/ssl/certs/myssl.crt | |
# 3. Edit nginx config located at: /usr/local/etc/nginx/nginx.conf | |
server { |