Skip to content

Instantly share code, notes, and snippets.

View adamkovesdi's full-sized avatar

Adam Kovesdi adamkovesdi

View GitHub Profile
@adamkovesdi
adamkovesdi / esp-arduino-pins.md
Last active December 17, 2018 19:36
NodeMCU 1.0 (ESP 12-E Module) Arduino pin mapping

NodeMCU 1.0 (ESP 12-E Module) Arduino pin mapping

static const uint8_t D0   = 16;
static const uint8_t D1   = 5;
static const uint8_t D2   = 4;
static const uint8_t D3   = 0;
static const uint8_t D4   = 2;
static const uint8_t D5   = 14;
static const uint8_t D6 = 12;
@adamkovesdi
adamkovesdi / docker-untagged-rm.md
Last active February 27, 2018 08:10
Docker delete untagged images

Remove untagged docker images

I often want to clean docker images repository after builds

docker-compose up -d --build

To remove all images with no name

@adamkovesdi
adamkovesdi / tomcat-docker.md
Created February 7, 2018 18:18
Tomcat in docker

Tomcat in docker

This is a cheat sheet for running Tomcat and Java web applications containerized

Docker commands

Run a tomcat container serving this directory

docker run -it --rm --name tomcat -p 8888:8080 -v "$(pwd)":/usr/local/tomcat/webapps tomcat
@adamkovesdi
adamkovesdi / automd.md
Last active November 25, 2017 19:13
Automatic markdown preview using Guard and grip

Automatic markdown preview creation using Guard and grip

This is how to set up a Guard script to automatically render markdown previews github style using grip.

Prerequisites