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
service do | |
run [opt_bin/"elasticsearch"] | |
working_dir var | |
log_path var/"log/elasticsearch.log" | |
error_log_path var/"log/elasticsearch.log" | |
end |
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
see https://github.com/brianmario/mysql2/issues/1250#issuecomment-1075672620 | |
brew update --preinstall | |
brew install openssl@1.1 | |
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib" | |
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include" | |
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig" |
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
gem install mysql2 -v '0.5.2' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include |
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
import { Controller } from "stimulus"; | |
export default class extends Controller { | |
static targets = ["notes", "unreadCount"]; | |
connect() { | |
this.getNewNotes(); | |
if (this.data.has("refreshInterval")) { | |
this.startRefreshing(); | |
} |