Skip to content

Instantly share code, notes, and snippets.

View artem-sidorenko's full-sized avatar

Artem Sidorenko artem-sidorenko

View GitHub Profile
FROM XXX/docker/centos-ci
MAINTAINER Artem Sidorenko <XXX>
# nodejs is required by minimart
RUN yum -y install nodejs && yum clean all
ENV RUBY_VERSION 2.6.0
ENV PATH /usr/local/rvm/gems/ruby-$RUBY_VERSION/bin:/usr/local/rvm/gems/ruby-$RUBY_VERSION@global/bin:/usr/local/rvm/rubies/ruby-$RUBY_VERSION/bin:/usr/local/rvm/bin:$PATH
ENV GEM_HOME /usr/local/rvm/gems/ruby-$RUBY_VERSION
ENV GEM_PATH /usr/local/rvm/gems/ruby-$RUBY_VERSION:/usr/local/rvm/gems/ruby-$RUBY_VERSION@global
@artem-sidorenko
artem-sidorenko / gitlab-git-fsck.sh
Created April 25, 2017 08:45
Check all gitlab repositories
#!/bin/sh
# Run git fsck on all GitLab repositories
#
# Set the datadir below to the location of GitLab repos
datadir='data'
for groupdir in `ls $datadir`; do
grouppath="$datadir/$groupdir"
for repodir in `ls $grouppath`; do
@artem-sidorenko
artem-sidorenko / gist:d69021c66958ba75df23304909493de3
Created July 21, 2016 14:08
redhat-release on centos on raspberry pi
# real centos installation on x86
$ ls -l /etc/redhat-release
lrwxrwxrwx. 1 root root 14 Jan 14 2016 /etc/redhat-release -> centos-release
$ cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
# mounted raspberry pi image
$ ls -l mnt/etc/redhat-release
-rw-r--r--. 1 root root 51 Dec 2 2015 mnt/etc/redhat-release
$ cat mnt/etc/redhat-release

Keybase proof

I hereby claim:

  • I am artem-sidorenko on github.
  • I am artem_sidorenko (https://keybase.io/artem_sidorenko) on keybase.
  • I have a public key whose fingerprint is 4987 9ED6 76E4 2205 980D 6AF5 F29A A8AD 8B4B 87B9

To claim this, I am signing this object:

@artem-sidorenko
artem-sidorenko / batch-sign-keys
Created February 1, 2015 21:32
Batsh sign GPG keys
#!/bin/sh
#
# Sign the GPG keys
#
# Usage:
#
# ./sign-keys [file with id list]
#
# file with ids should contain 1 id per line
@artem-sidorenko
artem-sidorenko / beaglebone hardened kernel
Last active August 29, 2015 13:59
beaglebone hardened on gentoo for beaglebonehardened-sources kernel
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.13.6-beaglebonehardened Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y