Github will be the main account and bitbucket the secondary.
ssh-keygen -t rsa -C "github email"
Enter passphrase when prompted. If you see an option to save the passphrase in your keychain, do it for an easier life.
This is an example how to perform multi-select faceting in ElasticSearch. | |
Selecting multiple values from the same facet will result in an OR filter between each of the values: | |
(facet1.value1 OR facet1.value2) | |
Faceting on more than one facet will result in an AND filter between each facet: | |
(facet1.value1 OR facet1.value2) AND (facet2.value1) | |
I have chosen to update the counts for each facet the selected value DOES NOT belong to since we are performing an AND between each facet. I have included an example that shows how to keep the counts if you don't want to do this (filter0.sh). |
#!/bin/sh | |
curl -XDELETE localhost:9200/foo >/dev/null | |
curl -XPOST localhost:9200/foo/t -d' | |
{ | |
"clicks": 10, | |
"impressions": 1000, | |
"when": "2013-10-01" | |
} |
Install Supervisor with sudo apt-get install supervisor
. Ensure it's started with sudo service supervisor restart
.
In /etc/supervisord/conf.d/
create a .conf
file. In this example, laravel_queue.conf
(contents below). Give it execute permissions: chmod +x laravel_queue.conf
.
This file points at /usr/local/bin/run_queue.sh
, so create that file there. Give this execute permissions, too: chmod +x run_queue.sh
.
Now update Supervisor with: sudo supervisorctl reread
. And start using those changes with: sudo supervisorctl update
.
#!/usr/bin/env bash | |
echo "Written By Ankur Mishra" | |
echo "Starting Server Setup....." | |
echo "Be Sure you are are a super user..." | |
# To become a super user | |
sudo su | |
# to update the packages from repositories | |
apt-get update |
#!/bin/bash | |
###################################################### | |
### README ########################################### | |
###################################################### | |
### | |
### One-line server install script for Ubuntu. | |
### Installs Nginx + PHP5.6 + MongoDB for PHP driver. | |
### | |
### Removes previous Apache, PHP, nginx installations. |