Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am otokarev on github.
  • I am otokarev (https://keybase.io/otokarev) on keybase.
  • I have a public key ASBxfyCDzFFb_4-cbXC4Q3ka4DFDrWAQEcct7t512uuS2Ao

To claim this, I am signing this object:

@otokarev
otokarev / Dockerfile.alpine
Created November 14, 2017 22:12
docker-stellar-core-alpine: Dockerfile to reproduce an error
FROM alpine:latest as builder
ENV STELLAR_CORE_VERSION=master
RUN mkdir -p /go/src/github.com/stellar/ \
&& apk add --no-cache git make g++ postgresql-dev autoconf automake libtool bison flex musl-dev linux-headers \
&& git clone --branch=$STELLAR_CORE_VERSION https://github.com/stellar/stellar-core.git \
&& cd stellar-core \
&& git submodule update --init --recursive \
&& ./autogen.sh \
HTTP_PORT=11626
PUBLIC_HTTP_PORT=true
LOG_FILE_PATH=""
BUCKET_DIR_PATH="/data/buckets"
NETWORK_PASSPHRASE="Test SDF Network ; September 2015"
KNOWN_PEERS=[
"core-testnet1.stellar.org",
"core-testnet2.stellar.org",
0xa85968c7CA4ac0B0BCd91b6bf4327d3336b1571c
@otokarev
otokarev / trait-methods-autocompletion.php
Created December 8, 2016 02:22
example of how to override return types of traits' methods
<?php
interface RepeatInterface
{
public function repeat(AEntity $entity): AEntity;
}
interface AEntity {}
trait RepeatTrait