Skip to content

Instantly share code, notes, and snippets.

View fjakobs's full-sized avatar

Fabian Jakobs fjakobs

View GitHub Profile
@fjakobs
fjakobs / mysql-ctl
Last active December 4, 2018 10:27
#!/bin/bash
if ! [ $# -eq 1 ]
then
echo "Usage: $0 [start|restart|stop|status|cli|install]"
exit 1
fi
export STOPTIMEOUT=10
MYSQL_DIR="$HOME/lib/mysql"
@fjakobs
fjakobs / fifo_bug.js
Created March 6, 2014 14:52
node.js when opening multiple fifos
// Opening fifos, which nobody is reading from causes strange behaviour and has
// side effects on opening network connections to localhost
// Bug #1
// ------
// run with "node fifo_bug.js 1"
// The client will connect but process.exit(0) has will not terminate the process
// then do "cat fifos/fifo0"
// this will cause the process to exit
// Note: this does not happen with 0.6 or 0.8
{"name":"Databricks","extensions":"[{\"identifier\":{\"id\":\"databricks.databricks\",\"uuid\":\"4e20f34d-db3e-411d-9294-6aca28da3d4f\"},\"displayName\":\"Databricks\"},{\"identifier\":{\"id\":\"databricks.sqltools-databricks-driver\",\"uuid\":\"b730b4e8-cc8a-4fdc-9087-1898579562be\"},\"displayName\":\"Databricks Driver for SQLTools\"},{\"identifier\":{\"id\":\"ms-python.python\",\"uuid\":\"f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5\"},\"displayName\":\"Python\"},{\"identifier\":{\"id\":\"ms-python.vscode-pylance\",\"uuid\":\"364d2426-116a-433a-a5d8-a5098dc3afbd\"},\"displayName\":\"Pylance\"},{\"identifier\":{\"id\":\"ms-toolsai.jupyter\",\"uuid\":\"6c2f1801-1e7f-45b2-9b5c-7782f1e076e8\"},\"displayName\":\"Jupyter\"},{\"identifier\":{\"id\":\"ms-toolsai.jupyter-keymap\",\"uuid\":\"9f6dc8db-620c-4844-b8c5-e74914f1be27\"},\"displayName\":\"Jupyter Keymap\"},{\"identifier\":{\"id\":\"ms-toolsai.jupyter-renderers\",\"uuid\":\"b15c72f8-d5fe-421a-a4f7-27ed9f6addbf\"},\"displayName\":\"Jupyter Notebook Renderers\"},{\"id