create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| # config.vm.box = "Ubuntu-16LTS" | |
| config.vm.box = "ubuntu/xenial64" | |
| config.vbguest.auto_update = false | |
| config.vm.network "forwarded_port", guest: 8080, host: 8090 |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| -='cd -' | |
| ...=../.. | |
| ....=../../.. | |
| .....=../../../.. | |
| ......=../../../../.. | |
| 1='cd -' | |
| 2='cd -2' | |
| 3='cd -3' | |
| 4='cd -4' | |
| 5='cd -5' |
This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.
This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.
If you experience any difficulties or have any feedback, leave a comment. 🐬
Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.
Version Number might change!! The versions of all softwares mentioned here, including Cassandra will change as newer versions are launched.
Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:
| "use strict"; | |
| // Uses jQuery and Q. | |
| var API_KEY = "whatever"; | |
| function getFlickrResponseAsync(method, responseProperty, params) { | |
| var deferred = Q.defer(); | |
| $.ajax("http://www.flickr.com/services/rest/", { |
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
| WITH RECURSIVE | |
| x(i) AS ( VALUES (0) | |
| UNION ALL SELECT i + 1 | |
| FROM x | |
| WHERE i < 101), | |
| Z(Ix, Iy, Cx, Cy, X, Y, I) AS ( | |
| SELECT | |
| Ix, | |
| Iy, | |
| X :: FLOAT, |
| This removes, forcefully, everything in the old npm folders. | |
| sudo rm -rf /usr/local/lib/node_modules | |
| sudo rm -rf ~/.npm | |
| This removes node and puts it back without npm | |
| brew uninstall node | |
| For advanced users, the rest of these can be run via copy and paste into terminal. | |
| brew install node --without-npm |