Skip to content

Instantly share code, notes, and snippets.

View printesoi's full-sized avatar

Victor Dodon printesoi

View GitHub Profile
---
- hosts: target
tasks:
- name: download the file on the local machine
get_url:
url: http://code.jquery.com/jquery-3.2.1.js
dest: /tmp/jquery.js
delegate_to: localhost
---
- hosts: localhost
vars:
list:
- ala
- bala
- portocala
tasks:
- include: r1-include.yml
---
- name: Task 1 {{ var }}
debug:
var: var
- name: Task 2
command: date
register: date
changed_when: false
---
- hosts: localhost
vars:
list:
- ala
- bala
- portocala
tasks:
- include: r1-include.yml
> node-postal@0.3.0 install /opt/pelias/api/node_modules/node-postal
> (node-gyp rebuild) || (exit 0)
make: Entering directory '/opt/pelias/api/node_modules/node-postal/build'
CXX(target) Release/obj.target/expand/src/expand.o
../src/expand.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ExpandAddress(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/expand.cc:26:5: error: ‘normalize_options_t’ was not declared in this scope
normalize_options_t options = get_libpostal_default_options();
^
../src/expand.cc:55:64: error: ‘MAX_LANGUAGE_LEN’ was not declared in this scope
2017-03-31T15:51:56.251Z - verbose: [dbclient] paused=false, transient=0, current_length=232, indexed=11053000, batch_ok=22106, batch_retries=0, failed_records=0, venue=6200122, locality=4492270, localadmin=63135, region=3788, country=189, neighbourhood=250737, county=42578, persec=300, batch_error=89, macroregion=176, borough=5
<--- Last few GCs --->
11702999 ms: Mark-sweep 1359.2 (1410.9) -> 1356.9 (1410.9) MB, 1096.9 / 0.0 ms [allocation failure] [GC in old space requested].
11704085 ms: Mark-sweep 1356.9 (1410.9) -> 1356.9 (1418.9) MB, 1086.4 / 0.0 ms [allocation failure] [GC in old space requested].
11705172 ms: Mark-sweep 1356.9 (1418.9) -> 1356.9 (1403.9) MB, 1086.4 / 0.0 ms [last resort gc].
11706257 ms: Mark-sweep 1356.9 (1403.9) -> 1356.9 (1403.9) MB, 1085.0 / 0.0 ms [last resort gc].
2017-03-31T14:01:42.856Z - error: [dbclient] [429] type=es_rejected_execution_exception, reason=rejected execution of org.elasticsearch.transport.TransportService$4@1e6545a9 on EsThreadPoolExecutor[bulk, queue capacity = 50, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@44a9626e[Running, pool size = 4, active threads = 4, queued tasks = 50, completed tasks = 476531]]
2017-03-31T14:01:42.856Z - info: [dbclient] retrying batch [429]
2017-03-31T14:01:42.865Z - info: [dbclient] retrying batch [429]
2017-03-31T14:01:42.943Z - info: [dbclient] retrying batch [429]
2017-03-31T14:01:42.945Z - info: [dbclient] retrying batch [429]
2017-03-31T14:01:42.999Z - info: [dbclient] retrying batch [429]
2017-03-31T14:01:43.025Z - info: [dbclient] retrying batch [429]
2017-03-31T14:01:43.057Z - info: [dbclient] retrying batch [429]
2017-03-31T14:01:43.060Z - info: [dbclient] retrying batch [429]
2017-03-31T14:01:43.060Z - error: [dbclient] transaction error reached max retries
[2017-03-28 17:02:23,329][INFO ][cluster.metadata ] [Alyosha Kravinoff] [pelias] creating index, cause [api], templates [], shards [24]/[0], mappings [_default_, country, macrocounty, dependency, county, locality, borough, macroregion, region, localadmin]
[2017-03-28 17:02:23,821][INFO ][cluster.routing.allocation] [Alyosha Kravinoff] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[pelias][21], [pelias][23]] ...]).
[2017-03-28 17:03:19,730][INFO ][cluster.metadata ] [Alyosha Kravinoff] [pelias] create_mapping [continent]
[2017-03-28 17:03:19,753][INFO ][cluster.metadata ] [Alyosha Kravinoff] [pelias] update_mapping [country]
[2017-03-28 17:03:19,847][INFO ][cluster.metadata ] [Alyosha Kravinoff] [pelias] create_mapping [disputed]
[2017-03-28 17:03:19,855][INFO ][cluster.metadata ] [Alyosha Kravinoff] [pelias] update_mapping [dependency]
[2017-03-28 17:03:19,907][INFO ][cluster.metadata ] [Alyosha Kravinoff] [pelias] update_mapping
#include <algorithm>
#include <iostream>
#include <numeric>
#include <vector>
#include <iterator>
// There are 12 coins. One of them is fake and has a slightly different weight
// (either lighter or heavier) than the real coins. You have a balance. Using
// only 3 measurements you must find the fake coin and tell wether is heavier
// or ligher.
@printesoi
printesoi / dnsmasq.conf
Created June 23, 2015 11:54
DHCP relay dnsmasq
domain-needed
bogus-priv
resolv-file=/etc/resolv.dnsmasq.conf
interface=br0
dhcp-relay=192.168.0.140,192.168.0.1