Skip to content

Instantly share code, notes, and snippets.

View printesoi's full-sized avatar

Victor Dodon printesoi

View GitHub Profile
for (t = 0; t < iteratii; ++t) {
n_res0 = n_res1 = 0;
p_res0 = p_res1 = 0;
// pentru fiecare negustor
#pragma omp parallel for private(i, j, _c, _v, k, l) schedule(dynamic)
for (i = 0; i < n; ++i) {
for (j = 0; j < n; ++j) {
// calculele
_c = pMax;
_v = pMax;
@printesoi
printesoi / sort.cpp
Created November 26, 2012 23:02
Distributed sort in MPI
/*
* ===========================================================================
*
* Filename: sort.cpp
* Author: Dodon Victor, dodonvictor AT gmail DOT com
* Created: 11/22/2012 04:32:15 PM
* Editor: Vim 7.3
* Compiler: clang 3.2
* OS: Archlinux x86_64
*
@printesoi
printesoi / RapidSSL SHA256 CA - G3
Created March 28, 2015 16:00
RapidSSL SHA256 CA - G3 chain
-----BEGIN CERTIFICATE-----
MIIEJTCCAw2gAwIBAgIDAjp3MA0GCSqGSIb3DQEBCwUAMEIxCzAJBgNVBAYTAlVT
MRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMRswGQYDVQQDExJHZW9UcnVzdCBHbG9i
YWwgQ0EwHhcNMTQwODI5MjEzOTMyWhcNMjIwNTIwMjEzOTMyWjBHMQswCQYDVQQG
EwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEgMB4GA1UEAxMXUmFwaWRTU0wg
U0hBMjU2IENBIC0gRzMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCv
VJvZWF0eLFbG1eh/9H0WA//Qi1rkjqfdVC7UBMBdmJyNkA+8EGVf2prWRHzAn7Xp
SowLBkMEu/SW4ib2YQGRZjEiwzQ0Xz8/kS9EX9zHFLYDn4ZLDqP/oIACg8PTH2lS
1p1kD8mD5xvEcKyU58Okaiy9uJ5p2L4KjxZjWmhxgHsw3hUEv8zTvz5IBVV6s9cQ
DAP8m/0Ip4yM26eO8R5j3LMBL3+vV8M8SKeDaCGnL+enP/C1DPz1hNFTvA5yT2AM
@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
#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.
[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
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-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].
> 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
---
- hosts: localhost
vars:
list:
- ala
- bala
- portocala
tasks:
- include: r1-include.yml