Skip to content

Instantly share code, notes, and snippets.

View medvednikov's full-sized avatar

Alexander Medvednikov medvednikov

View GitHub Profile
@medvednikov
medvednikov / gitlab.md
Created July 4, 2020 20:31
GitLab disk usage

GitLab is pretty hard to install, that's why prebuilt packages and Docker modules are widely used.

I couldn't install the Ubuntu package, so I went for the official Docker image:

https://hub.docker.com/r/gitlab/gitlab-ce

docker pull gitlab/gitlab-ce
@medvednikov
medvednikov / test
Created October 3, 2019 00:10
test gist
**hello world**
nice
def solution(S):
lines = S.split('\n')
dict = {}
for i in xrange(len(lines)):
line = lines[i]
if len(line) == 0:
continue
# Parse values
vals = line.split(',')
EDGE = 0
ABOVE = 1
BELOW = 2
def solution(A):
res = 0
prev = EDGE
for i in xrange(0, len(A)):
val = A[i]
if i == len(A) - 1: