start new:
tmux
start new with session name:
tmux new -s myname
require 'minitest/autorun' | |
require 'rack/test' | |
require 'active_record' | |
require 'logger' | |
# ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: '25595') | |
# ActiveRecord::Base.establish_connection(adapter: 'postgresql', database: '25595') | |
# ActiveRecord::Base.establish_connection(adapter: 'mysql2', database: 'test', user: 'root', password: '') | |
ActiveRecord::Base.logger = Logger.new(STDOUT) |
Convert a DER file (.crt .cer .der) to PEM | |
openssl x509 -inform der -in certificate.cer -out certificate.pem | |
Convert a PEM file to DER | |
openssl x509 -outform der -in certificate.pem -out certificate.der | |
Convert a PKCS#12 file (.pfx .p12) containing a private key and certificates to PEM | |
openssl pkcs12 -in keyStore.pfx -out keyStore.pem -nodes | |
You can add -nocerts to only output the private key or add -nokeys to only output the certificates. |
{ | |
"name": "propertyguru", | |
"count": 1510, | |
"frequency": "daily", | |
"version": 15, | |
"newdata": true, | |
"results": { | |
"listings": [ | |
{ | |
"title": { |
{ "meta" : { "code" : 200 }, | |
"response" : { "category_list" : [ { "category_id" : "21", | |
"category_name" : "Wellness/Sports", | |
"count" : 147, | |
"score" : 90, | |
"sentiment" : "pos", | |
"sub_category_list" : [ { "category_id" : "21b", | |
"category_name" : "Fitness Area", | |
"count" : 94, | |
"score" : 95, |
---- Hotel List in Location ---- | |
[ | |
{ | |
"id": 29292, | |
"name":"Hotel Royal", | |
"stars":4, | |
"image":"http://cdn.wego.com/gazo/43/274b48b1f505e856e94fbcc0dbdc5c2cf03b5c6c/3464648_B.jpg", | |
"rank":1, | |
"brand_id":255, | |
"latitude":34.67454, |