Skip to content

Instantly share code, notes, and snippets.

@istepanov
istepanov / nvidia-docker.sh
Last active November 3, 2018 19:28
Nvidia Docker
# 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
istepanov / Configuration.h
Last active July 26, 2023 16:45
Marlin Anet A8 config
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* 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
@istepanov
istepanov / Makefile
Created November 11, 2017 00:44
Makefile for deploying Python 3 AWS Lambda
PROJECT = myProject
FUNCTION = $(PROJECT)
REGION = us-west-1
ENVCHAIN = my-aws-env
all: build
.PHONY: clean build deploy
clean:
@istepanov
istepanov / install_docker.sh
Last active September 24, 2019 05:37
Install docker on Ubuntu 18.04
curl -sSL https://get.docker.com | sh && sudo usermod "$(whoami)" -aG docker && newgrp docker
@istepanov
istepanov / sudo_no_password.sh
Created November 3, 2018 19:51
Sudo without password
#!/bin/sh
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo env EDITOR="tee -a" visudo