Skip to content

Instantly share code, notes, and snippets.

View adierebel's full-sized avatar
🏠
Working from home

adierebel adierebel

🏠
Working from home
View GitHub Profile
@adierebel
adierebel / readme.md
Last active August 14, 2020 17:50
Install Mariadb / MySQL on Alpine Linux 3.8

Install

apk add mysql mysql-client

Setup

  • Add user group for /var/lib/mysql: chown -R mysql:root /var/lib/mysql
  • Edit config, add datadir=/var/lib/mysql to /etc/mysql/my.cnf
  • Uncomment innodb_buffer_pool_size=16M, Save
  • Setup database: service mariadb setup
@adierebel
adierebel / ru&n.py
Last active September 28, 2017 16:00
Flask Runner
from sys import argv
from app import app
try:
Port = 8080
if len(argv) > 1:
Port = int(argv[1])
app.run(host='0.0.0.0', port=Port, debug=True)
@adierebel
adierebel / test.md
Last active September 28, 2017 16:10
test new gist
`xxxx`