This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# There are some issues with installing mysql2 with osx 10.14. | |
# The issues are because apple replaced openssl with libressl as a default | |
# encryption library. | |
# | |
# This makes some versions of the `mysql2` ruby gem very hard to install if you don't | |
# know how to circumvent it. | |
# My way of doing it was to install the latest version of mysql and install the gem | |
# manually with flags telling it to use openssl over libressl: | |
gem install mysql2 -v '0.5.2' -- --with-cflags=\"-Iusr/local/opt/openssl/include\" --with-ldflags=\"-L/usr/local/opt/openssl/lib\" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
root=$(cd "$(dirname "$0")/.." && pwd)/ | |
cat "$root/mix.exs" | grep version | sed -e 's/.*version: "\(.*\)",/\1/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const electron = require('electron') | |
const { BrowserWindow, app } = electron | |
app.on('ready', () => { | |
let win = new BrowserWindow() | |
win.on('unresponsive', function(event){ | |
console.log('unresponsive') | |
win.destroy() | |
app.exit(9) |