Installing mysql2 gem errors on MacOS Catalina with MySQL 5.7.
Make sure openssl is installed on Mac via Homebrew.
brew install openssl
| (function(){ | |
| if("onbeforescriptexecute" in document) return; // Already natively supported | |
| let scriptWatcher = new MutationObserver(mutations => { | |
| for(let mutation of mutations){ | |
| for(let node of mutation.addedNodes){ | |
| if(node.tagName === "SCRIPT"){ | |
| let syntheticEvent = new CustomEvent("beforescriptexecute", { | |
| detail: node, | |
| cancelable: true |
| CRYSTAL = crystal | |
| UNAME = "$(shell uname -ms)" | |
| LIBRARY_PATH = $(shell brew --prefix crystal-lang)/embedded/lib | |
| LIBS = -levent -lpcl -lpcre -lgc -lpthread | |
| LDFLAGS = -Wl,-undefined,dynamic_lookup | |
| TARGET = crystal_example_ext.bundle | |
| $(TARGET): crystal_example_ext.o | |
| $(CC) -bundle -L$(LIBRARY_PATH) -o $@ $^ $(LIBS) $(LDFLAGS) |
I've taken the benchmarks from Matthew Rothenberg's phoenix-showdown, updated Phoenix to 0.13.1 and ran the tests on the most powerful machines available at Rackspace.
| Framework | Throughput (req/s) | Latency (ms) | Consistency (σ ms) |
|---|
| # Simple Phoenix authentication plug | |
| # | |
| # - based on Plug's session store | |
| # - redirects unauthenticated requests to login page "/login/<request url>" | |
| # - /static/... requests are not authenticated | |
| # - authentication is valid as long as session is valid (you can change this behaviour easily) | |
| # Because we need session to be fetched BEFORE this plug, we must put this to router.ex: | |
| #---------------------------- |
| #!/usr/bin/env ruby | |
| require 'faraday' | |
| require 'json' | |
| require 'gitlab' | |
| module Redmine | |
| Host = nil | |
| APIKey = nil |
| Some brief instructions on how to use Sprocket 2 in Rails to get CoffeeScript | |
| powered JS and SASS powered CSS with YUI compression all via the magic of rack. | |
| This stuff will be native in Rails 3.1 and the layout of the files on the | |
| filesystem will be different but this guide will get you working with it | |
| while we wait for all that to finalize. | |
| Ignore the number prefixes on each file. This is just to ensure proper order in the Gist. | |
| It's based on eric1234 gist https://gist.github.com/911003. ijust made it 3.1 compliant in terms of convention |