Skip to content

Instantly share code, notes, and snippets.

View drmarjanovic's full-sized avatar

Dragutin Marjanović drmarjanovic

View GitHub Profile
@drmarjanovic
drmarjanovic / semaphore-es-7.sh
Last active September 13, 2022 14:16
A script for installing ES7 on SemaphoreCI
#!/bin/bash
# Install a custom Elasticsearch version - https://www.elastic.co/products/elasticsearch
ELASTICSEARCH_VERSION="7.17.6"
ELASTICSEARCH_PORT="9200"
ELASTICSEARCH_DIR="~/elasticsearch"
ELASTICSEARCH_WAIT_TIME="30"
echo "ELASTICSEARCH_VERSION = $ELASTICSEARCH_VERSION"
echo "ELASTICSEARCH_PORT = $ELASTICSEARCH_PORT"
@drmarjanovic
drmarjanovic / semaphore-es-6.sh
Last active August 14, 2018 14:55 — forked from BlackFoks/semaphore-es.sh
A script for installing ES6 on SemaphoreCI
#!/bin/bash
# Install a custom Elasticsearch version - https://www.elastic.co/products/elasticsearch
ELASTICSEARCH_VERSION="6.3.2"
ELASTICSEARCH_PORT="9200"
ELASTICSEARCH_DIR="$SEMAPHORE_PROJECT_DIR/elasticsearch"
ELASTICSEARCH_WAIT_TIME="30"
echo "ELASTICSEARCH_VERSION = $ELASTICSEARCH_VERSION"
echo "ELASTICSEARCH_PORT = $ELASTICSEARCH_PORT"
@drmarjanovic
drmarjanovic / triangle_sum.cpp
Last active August 29, 2015 14:17
Euler's Triangle Sum
#include <iostream>
#include <vector>
using namespace std;
#define NUM_OF_NODES 120
#define NUM_OF_LEAVES 15
#define NULL 0
typedef class Node ChildNode;