Skip to content

Instantly share code, notes, and snippets.

@poliha
poliha / git_submodules.md
Created June 27, 2023 19:00 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@poliha
poliha / build_stellar_core.md
Created October 16, 2018 21:11
build stellar core from source on CentOS 7.5

Install dependencies

$ sudo yum groupinstall 'Development Tools'

$ sudo yum install postgresql-devel pandoc

Install the latest gcc from source

this can take a quite a while

@poliha
poliha / gap_detected_guide.md
Created September 15, 2018 16:48 — forked from MonsieurNicolas/gap_detected_guide.md
recovery from "gap detected" in Horizon

Symptoms

Horizon will give an error similar to

Gap detected in stellar-core database. Please recreate Horizon DB.

Reasons for this error

mismatched core/Horizon configurations

Keybase proof

I hereby claim:

  • I am poliha on github.
  • I am poliha (https://keybase.io/poliha) on keybase.
  • I have a public key whose fingerprint is 6096 810D 2960 2BDD FD6D CC7F DFDF 082A 1E6D 7B32

To claim this, I am signing this object:

@poliha
poliha / custom-error.js
Created August 10, 2017 22:33 — forked from justmoon/custom-error.js
Creating custom Error classes in Node.js
'use strict';
module.exports = function CustomError(message, extra) {
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message;
this.extra = extra;
};
require('util').inherits(module.exports, Error);
@poliha
poliha / gist:87fa0377b4365c0361597a8c40dbcc01
Created July 16, 2017 22:47 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>