Skip to content

Instantly share code, notes, and snippets.

Ilya Stepanov istepanov

Block or report user

Report or block istepanov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo env EDITOR="tee -a" visudo
istepanov /
Last active Sep 24, 2019
Install docker on Ubuntu 18.04
curl -sSL | sh && sudo usermod "$(whoami)" -aG docker && newgrp docker
istepanov / Makefile
Created Nov 11, 2017
Makefile for deploying Python 3 AWS Lambda
View Makefile
PROJECT = myProject
REGION = us-west-1
ENVCHAIN = my-aws-env
all: build
.PHONY: clean build deploy
istepanov / Configuration.h
Last active Jan 18, 2020
Marlin Anet A8 config
View Configuration.h
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware []
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
# make sure you have Ubuntu 18.04 and Docker >= 1.12 installed
# nvidia drivers (Ubuntu-based distros)
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install ubuntu-drivers-common
# show list of drivers to install
sudo ubuntu-drivers devices
istepanov /
Created May 24, 2017
Install Docker, Docker Compose and NTP
# stop execution if error
set -e
export DEBIAN_FRONTEND=noninteractive
# pre-requirements
apt-get update
apt-get upgrade -y
istepanov /
Last active Aug 24, 2017
Reset 2FA on Docker GitLab image
docker exec -ti gitlab bash
cd /home/git/gitlab
sudo -u git -H bundle exec rails console production
istepanov /
Created Jan 2, 2017
Convert Canon RAW files to JPEGs (MacOS)
for D in `find . -type d`
pushd "$D"
for i in *.CR2; do sips -s format jpeg $i --out "${i%.*}.jpg"; done
istepanov /
Created Dec 12, 2016
Simple ping watchdog
#!/usr/bin/env python
import os
import datetime
address = ''
ping_timeout = 5
attempts = 4
log_file = '/var/log/ping_test.log'
istepanov / nginx.tmpl
Created Oct 30, 2016 — forked from SnowMB/nginx.tmpl
View nginx.tmpl
{{ define "upstream" }}
{{ if .Address }}
{{/* If we got the containers from swarm and this container's port is published to host, use host IP:PORT */}}
{{ if and .Container.Node.ID .Address.HostPort }}
# {{ .Container.Node.Name }}/{{ .Container.Name }}
server {{ .Container.Node.Address.IP }}:{{ .Address.HostPort }};
{{/* If there is no swarm node or the port is not published on host, use container's IP:PORT */}}
{{ else if .Address.IP }}
# {{ .Container.Name }}
server {{ .Address.IP }}:{{ .Address.Port }};
You can’t perform that action at this time.