create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
from __future__ import print_function | |
__all__ = ('read_pgpass',) | |
import os | |
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
def read_pgpass(dbname): | |
""" |
__all__ = ( | |
'ALL_CURRENCIES', 'ALL_CURRENCIES_LIST', 'ALLOWED_CURRENCIES', | |
'CURRENCIES', 'CURRENCIES_LIST', | |
) | |
from pycountry import currencies | |
# Getting a list of all currencies to be used in Django | |
ALL_CURRENCIES = {c.letter: c.name for c in list(currencies)} | |
ALL_CURRENCIES_LIST = sorted(list(ALL_CURRENCIES.items()), key=lambda i: i[0]) |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
https://cloud.genymotion.com/page/launchpad/download/ | |
Download one | |
Move the downloaded file to ~/ | |
mv genymotion-2.5.2_x64_debian.bin ~/ | |
chmod +x ./genymotion-2.5.2_x64_debian.bin |
| 😄 | 😆 | 😊 | 😃 |
😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 | | 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷
😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨
# ***************************************************** | |
# ***************** Install xapian Core *************** | |
# ***************************************************** | |
sudo apt-get install zlib1g-dev | |
sudo apt-get install g++ | |
sudo apt-get install uuid-dev | |
curl -O http://oligarchy.co.uk/xapian/1.2.18/xapian-core-1.2.18.tar.xz | |
curl -O http://oligarchy.co.uk/xapian/1.2.18/xapian-bindings-1.2.18.tar.xz |
# -*- coding: utf-8 -*- | |
""" | |
Search features for : | |
* :mod:`elasticsearch.elasticsearch` | |
* :mod:`haystack:haystack` | |
* :mod:`elasticstack:elasticstack` | |
:creationdate: 05/11/15 15:05 | |
:moduleauthor: François GUÉRIN <fguerin@ville-tourcoing.fr> |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
from six.moves import input | |
from django.conf import settings | |
from django.core.management.base import BaseCommand, CommandError | |
from django.apps import apps |
apt-get update && apt-get install -y curl && curl --silent https://bootstrap.pypa.io/get-pip.py |python3 && pip install --upgrade httpie |
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). |