Skip to content

Instantly share code, notes, and snippets.

View andrew-medvedev's full-sized avatar
🎯
Focusing

Andrew Medvedev andrew-medvedev

🎯
Focusing
View GitHub Profile

Background

I believe Ubuntu 16.04 comes with PostgreSQL 9.5. Thats good for a start, but it is a matter of time before you have the need of a PostgreSQL 9.6 cluster. For me it was to import a PG backup from Heroku.

The procedure couldn't have been any easier and is described below. If you are interested in upgrading your old cluster to 9.6 afterwards, you may be interested in this.

Instructions

@andrew-medvedev
andrew-medvedev / abco_interview_problem.py
Created June 23, 2017 22:03
ABCO interview solution
### Problem solution: http://www.geeksforgeeks.org/abco-interview-experience-set-4/
### (Second round)
N = 3
print('Solving problem for ABCO interview with N=%d' % N)
split_digits = lambda x: [int(_x) for _x in str(x)]
@andrew-medvedev
andrew-medvedev / underscoreUtils.js
Created June 19, 2017 13:30
Some usefull utils. All are tested and production-ready
/**
* Created by ihatemicro$oft on 02.08.2016.
*/
'use strict';
var _ = require('underscore'),
assert = require('assert'),
stableSort = require('stable'),
deepClone = require('clone');