val map = seq.map(a => a.key -> a).toMap
Redis Commands:
- APPEND key value Append a value to a key
- AUTH password Authenticate to the server
- BGREWRITEAOF Asynchronously rewrite the append-only file
- BGSAVE Asynchronously save the dataset to disk
- BITCOUNT key start end Count set bits in a string
- BITFIELD key GET type offset SET type offset value INCRBY type offset increment OVERFLOW WRAP|SAT|FAIL Perform arbitrary bitfield integer operations on strings
- BITOP operation destkey key key ... Perform bitwise operations between strings
- BITPOS key bit start end Find first bit set or clear in a string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#AWS | |
# . install-aws.sh | |
instance_profile=`curl http://169.254.169.254/latest/meta-data/iam/security-credentials/` | |
aws_access_key_id=`curl http://169.254.169.254/latest/meta-data/iam/security-credentials/${instance_profile} | grep AccessKeyId | cut -d':' -f2 | sed 's/[^0-9A-Z]*//g'` | |
aws_secret_access_key=`curl http://169.254.169.254/latest/meta-data/iam/security-credentials/${instance_profile} | grep SecretAccessKey | cut -d':' -f2 | sed 's/[^0-9A-Za-z/+=]*//g'` | |
aws_secret_access_key=`curl http://169.254.169.254/latest/meta-data/iam/security-credentials/${instance_profile} | grep SecretAccessKey | cut -d':' -f2 | sed 's/[^0-9A-Za-z/+=]*//g'` | |
aws_session_token=`curl http://169.254.169.254/latest/meta-data/iam/security-credentials/${instance_profile} | grep Token | cut -d':' -f2 | sed 's/[^0-9A-Za-z/+=]*//g'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo yum install -y epel-release | |
sudo yum install -y nano | |
sudo yum install -y git | |
#Install Amazon Client | |
curl -O http://peak.telecommunity.com/dist/ez_setup.py | |
sudo python ez_setup.py | |
#Install pip | |
sudo easy_install pip |
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:
NewerOlder