Processing JSON using jq
jq is useful to slice, filter, map and transform structured json data.
Installing jq
On Mac OS
brew install jq
jq is useful to slice, filter, map and transform structured json data.
brew install jq
This document describes how to use curl with both custom and official CA SSL certificates.
You would need first to install curl , see http://curl.haxx.se/docs/install.html. Using a package manager such as yum, brew, ... for your platform should be the easiest though.
Example for Mac OS:
alias enc='openssl enc -e -aes128 -base64 -pass "env:PASS"'
alias dec='openssl enc -d -aes128 -base64 -pass "env:PASS"'
Redis Commands:
val map = seq.map(a => a.key -> a).toMap
sudo yum install -y epel-release
sudo yum install R
between() { sed -n "/^$1/,/^$2/p" | sed '1d;$d'; }
Also:
awk '/^START=A$/,/^END$/ { print }’ data
method | path | header | query,entity | status | description |
---|---|---|---|---|---|
- | - | - | Any | 400 Bad Request | The request could not be understood by the server due to malformed syntax |
- | - | Any | Any | 403 Forbidden | The server understood the request, but is refusing to fulfill it |
- | Any | - | - | 404 Not Found | The server has not found anything matching the Request-URI |
Any | - | - | - | 405 Method Not Allowed | The method specified (GET, PUT...) in the Request-Line is not allowed for the resource |
- | - | Any | - | 412 Precondition Failed | The precondition given in one or more of the request-header fields evaluated to false |
- | - | Any | - | 431 Request Header Fields Too Large (RFC 6585) | The server is unwilling to process the the header fields are too large. |
- | - | - | Any | 413 Request Entity Too Large | The server is refusing to process a request because the request entity is too large |
- | - | - | Any | 414 Reques |
# | |
#Creator: 2013, Olivier Huin (https://github.com/olih) | |
#License: Eclipse Public License - v 1.0 | |
#Contributors: | |
# | |
# Generates a random password | |
#This code is a quick hack and should not be used for production | |
#as it is not optimized and the random numbers could be predicted. | |
G=10000000000 |