Skip to content

Instantly share code, notes, and snippets.

@Foadsf
Foadsf / README.md
Last active January 15, 2024 22:15 — forked from nrollr/MySQL_macOS_Sierra.md
Installing MySQL and MySQL Workbench on macOS using Homebrew

Preface

This procedure explains how to install MySQL and MySQL Workbench using Homebrew on macOS. This is a fork of these instructions, to make them more concise and solve the issues reported here.

MySQL

To install MySQL enter :

  • brew install mysql
  • brew services start mysql
  • then run mysql_secure_installation and follow the instructions
@Foadsf
Foadsf / dev.py
Last active March 8, 2020 10:30 — forked from JannieT/dev.py
Environment for scripting LibreOffice with Python
import uno
import sys
def createUnoService(id):
ctx = getContext()
return ctx.ServiceManager.createInstanceWithContext(id, ctx)
def getContext():
# get the uno component context from the PyUNO runtime
localContext = uno.getComponentContext()
from functools import reduce
from operator import mul
import sympy as sp
import numpy as np
# Both of these function will be vectorized via np.vectorize.
# This will not speed up the computation at all (behind np.vectorize, there still are for loops)
# but this avoid nested for loop, making that easier to read (and deal with arbitrary number of dims).
def build_X(a, xs):