Skip to content

Instantly share code, notes, and snippets.

@fllaca
fllaca / .ycm_extra_conf.py
Created December 31, 2018 00:34 — forked from lucabuka/.ycm_extra_conf.py
YouCompleteMe "ycm_extra_conf.py" for Platformio based projects - Platformio Core / VIM / Linux
"""
YouCompleteMe "ycm_extra_conf.py" for Platformio based projects.
The script calls [platformio -v run -t idedata] and process the output
to fill list with the SAME SET OF FLAGS used by platformio for the
project (compiler flags, Include dirs, compiler DEFINES, etc)
Tested on the following development environment:
- Linux (LMDE 2)
- PlatformIO, version 3.3.0a1
/*
* IRremoteESP8266: IRServer - demonstrates sending IR codes controlled from a webserver
* Version 0.2 June, 2017
* Copyright 2015 Mark Szabo
*
* An IR LED circuit *MUST* be connected to ESP8266 pin 4 (D2).
*
* TL;DR: The IR LED needs to be driven by a transistor for a good result.
*
* Suggested circuit:
@fllaca
fllaca / gen-cert.sh
Last active May 14, 2017 22:07
SSL certificate generations
# Usage
#
# $ ./gen-cert.sh myweb
# Will generate "myweb.crt" and "myweb.key"
CERT_NAME=$1
# Generate a Private Key
openssl genrsa -des3 -out $CERT_NAME.key 1024
@fllaca
fllaca / jira-confluence-compose.yml
Last active December 28, 2016 14:34
Docker Compose Templates
# Maybe you will need to add "jira" and "confluence" pointing to localhost in your /etc/hosts file.
# Don't forget also to create the folders "./jira/jira-home" and "./confluence/confluence-home" in the
# same directory where this file is.
#
# start with: docker-compose up -d
#
version: '2'
services:
jira:
image: cptactionhank/atlassian-jira-software:7.2.4

Run Confluence

docker run --detach -p 8090:8090 -p 8091:8091 -v $(pwd)/confluence-home:/var/atlassian/confluence cptactionhank/atlassian-confluence:latest