Skip to content

Instantly share code, notes, and snippets.

View jjromannet's full-sized avatar

Jan Roman jjromannet

View GitHub Profile
@jjromannet
jjromannet / gist:9a5ee7e480801576b68af1ed5fd8e979
Created November 10, 2021 07:44
Dockercompose config tu run MySQL 5.7 that works
version: "3.9"
services:
db:
image: mysql/mysql-server:5.7
environment:
MYSQL_DATABASE: 'db'
MYSQL_ROOT_PASSWORD: 'secret-pw'
MYSQL_ROOT_HOST: '%'
ports:
- '3306:3306'
@jjromannet
jjromannet / docker-install.yaml
Last active February 5, 2022 14:40
Ansible playbook to install docker with apt, and docker compose
# based on:
#. doceker install: https://docs.docker.com/engine/install/debian/#install-using-the-repository
#. compose install: https://github.com/docker/compose#where-to-get-docker-compose
#
# usage: ansible-playbook -i hosts-file docker/docker-install.yaml
#
# contents of hosts-file:
# [docker]
# 192.168.0.101
---
/*
This work is derived from:
https://github.com/I-Connect/nuki_ble
Therefore licence is: GPL v3.0
requirements:
GCC, libsodium
compile:
/**
* @class DecimalFormat
* @constructor
* @param {String} formatStr
* @author Oskan Savli
*/
function DecimalFormat(formatStr)
{
/**
* @fieldOf DecimalFormat