Skip to content

Instantly share code, notes, and snippets.

View thomasm0's full-sized avatar

Thomas Mills thomasm0

View GitHub Profile
@thomasm0
thomasm0 / elasticsearch-simple-parent-child-query.json
Last active September 19, 2016 19:22
A simple Elasticsearch query to return a parent document with a children for a specific user id
{
"index": "INDEX_NAME",
"type": "PARENT_TYPE_NAME",
"body": {
"query": {
"bool": {
"must": [
{
"query_string": {
"default_field": "title",
@thomasm0
thomasm0 / countries.json
Last active March 25, 2021 14:27
ISO 3166-1 Country List in Dutch / ISO 3166-1 Landen lijst in Nederlands JSON
[
{
"name": "Afghanistan",
"short_name": "AF",
"calling_code": "93"
},
{
"name": "Åland",
"short_name": "AX",
"calling_code": "358"
@thomasm0
thomasm0 / nginx-site-conf
Last active March 18, 2016 09:42
Local WordPress Multisite (Sub-Directories) for Nginx Conf
server {
listen 80;
root /var/www/site-directory.dev/app/www;
index index.html index.htm index.php;
# Make site accessible from http://localhost/
server_name sitedomain.dev;
location / {