$ chef-client -version Chef: 12.4.1
$ curl -L https://www.opscode.com/chef/install.sh | sudo bash
$ chef-client -version Chef: 13.2.20
or
$ chef-client -version Chef: 12.4.1
$ curl -L https://www.opscode.com/chef/install.sh | sudo bash
$ chef-client -version Chef: 13.2.20
or
show processlist;
https://dev.mysql.com/doc/refman/5.7/en/show-processlist.html
Install sphinx to use mysql in macOS
brew install sphinx --with-mysqlRe-install sphinx to use mysql in macOS
brew reinstall sphinx --mysql| # Simple approach to sending email from the Rails console | |
| # Implementation idea courtesy of Steve Klabnik | |
| # http://blog.steveklabnik.com/posts/2012-09-09-random-ruby-tricks--class-new | |
| # Create the mailer class with a block and assign to a variable | |
| mailer = Class.new(ActionMailer::Base) do | |
| def example_message | |
| mail(to: "[email protected]", from: "[email protected]", subject: "Example Message") do |format| | |
| format.text { render text: "Example message body" } | |
| end |
| AWS region code | AWS region name | Number of AZs | AZ names |
|---|---|---|---|
| us-east-1 | Virginia | 4 | us-east-1a, us-east-1b, us-east-1c, us-east-1e |
| us-west-1 | N. California | 2 | us-west-1a, us-west-1b |
| us-west-2 | Oregon | 3 | us-west-2a, us-west-2b, us-west-2c |
| eu-west-1 | Ireland | 3 | eu-west-1a, eu-west-1b, eu-west-1c |
| eu-central-1 | Frankfurt | 2 | eu-central-1a, eu-central-1b |
| ap-southeast-1 | Singapore | 2 | ap-southeast-1a, ap-southeast-1b |
| ap-southeast-2 | Sydney | 2 | ap-southeast-2a, ap-southeast-2b, ap-southeast-2c |
| ap-northeast-1 | Tokyo | 2 | ap-northeast-1a, ap-nort |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
$1, $2, $3, ... are the positional parameters.
"$@" is an array-like construct of all positional parameters, {$1, $2, $3 ...}.
"$*" is the IFS expansion of all positional parameters, $1 $2 $3 ....
$# is the number of positional parameters.
$- current options set for the shell.
$$ pid of the current shell (not subshell).
$_ most recent parameter (or the abs path of the command to start the current shell immediately after startup).
$IFS is the (input) field separator.
$? is the most recent foreground pipeline exit status.
ls $rvm_path/archives/
| <?php | |
| $cb = function ($fn) { | |
| return $fn; | |
| }; | |
| echo <<<HEREDOC | |
| Hello, {$cb(ucfirst('world'))} | |
| HEREDOC; |