Skip to content

Instantly share code, notes, and snippets.

θ68° [jadams:/home/jadams/software/wrk] master 21s ± wrk -c 1000 -d 20 -t4 http://links.elixirsips.com
Running 20s test @ http://links.elixirsips.com
4 threads and 1000 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 3.65s 1.17s 5.92s 66.08%
Req/Sec 65.88 32.65 169.00 75.00%
4822 requests in 20.00s, 61.13MB read
Socket errors: connect 0, read 3, write 0, timeout 4366
Requests/sec: 241.04
Transfer/sec: 3.06MB
defmodule LolWut do
@crazy """
i neirtr otre: r"mEirnraotri nign ipnr odcoe_sbso o<t0".,2{.b0a>d awrigt,h[ {eexrilt_ pvrail
mu_el:o a{dbeard,acrhge,c[k{_efrill_ep_rriems_ullota,d3e,r[,{cfhielcek,_"feirlle__prreismu_llto,a3d,e[r{.feirlle",}\,"{e
lriln_ep,r29i3m}_]l}o,a{dienri.te,rgle\t"_}b,o{olti,n1e,,[2{9f3i}l]e},,"{iinniitt.,egrelt"_}b,o{olti,n1e,,[78{9f}i]l}e,,
{\i"niinti,tg.eetr_lb\o"o}t,,{2l,i[n{ef,i7l8e9,}"]i}n,i{ti.neirtl,"g}e,t{_lbionoet,,7726,}[]{}f,i{lien,i\t",idnoi_tb.oeo
rtl,\3",}[,{{fliilnee,,"7i7n6i}t].}e,r{li"n}i,t{,ldion_eb,o74o3t},]3},][}{}f
ile,\"init.erl\"},{line,743}]}]}\n"
"""
defmodule ReversingPlug do
use Plug.Builder
import Plug.Conn
plug :hello
plug :reverse
plug :sender
def hello(conn, _opts) do
%Plug.Conn{conn | resp_body: "Hello world"}
JSON.stringify(require.rawConfig)
"{"packages":[{"name":"est_tests","location":"./tests"},{"name":"prepTemplate","location":"./templates"},{"name":"dojo","location":"./bower_components/dojo"},{"name":"dijit","location":"./bower_components/dijit"},{"name":"dojox","location":"./bower_components/dojox"},{"name":"EST","location":"./javascript"},{"name":"PTO","location":"./pe2e/javascript"},{"name":"amd-plugins","location":"./non_bower_components/amd-plugins"}],"trace":{"loader-inject":0,"loader-define":0,"loader-exec-module":0,"loader-run-factory":0,"loader-finish-exec":0,"loader-define-module":0,"loader-circular-dependency":0,"loader-define-nonmodule":0},"async":true,"waitSeconds":15,"baseUrl":"/","map":{"intern":{"dojo":"intern/node_modules/dojo","chai":"intern/node_modules/chai/chai"},"*":{"intern/dojo":"intern/node_modules/dojo"}}}"
require.rawConfig
Object {packages: Array[8], trace: Object, async: true, waitSeconds: 15, baseUrl: "/"…}
async: true
baseUrl: "/"
config: undefined
map: Object
packages: Array[8]
trace: Object
waitSeconds: 15
__proto__: Object
var multiCase = false;
define({
// The port on which the instrumenting proxy will listen
proxyPort: 9000,
// A fully qualified URL to the Intern proxy
proxyUrl: 'http://localhost:9000/',
// Default desired capabilities for all environments. Individual capabilities can be overridden by any of the
// specified browser environments in the `environments` array below as well. See
GATHERING FACTS ***************************************************************
<admin.shipt.dev> ESTABLISH CONNECTION FOR USER: vagrant
<admin.shipt.dev> REMOTE_MODULE setup
<admin.shipt.dev> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/jadams/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'StrictHostKeyChecking=no', '-o', 'Port=22', '-o', 'IdentityFile="./files/sshkeys/shipt_sshkey"', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=vagrant', '-o', 'ConnectTimeout=10', 'admin.shipt.dev', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1405093933.8-208554006335490 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1405093933.8-208554006335490 && echo $HOME/.ansible/tmp/ansible-tmp-1405093933.8-208554006335490'"]
fatal: [admin.shipt.dev] => SSH encountered an unknown error. The output was:
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2
[jadams:/home/jadams/elixir/link_extractor_web] 8m31s $ mix test
Running Elixir.LinkExtractorWeb.Router with Cowboy on port 4000
DEBUG[0d7ce5bf]
DEBUG[0d7ce5bf] Installing treetop 1.4.15
DEBUG[0d7ce5bf]
DEBUG[0d7ce5bf] 0: treetop (1.4.15) from /home/shipt/applications/admin.shipt.dev/shared/bundle/ruby/2.1.0/specifications/treetop-1.4.15.gemspec
DEBUG[0d7ce5bf]
DEBUG[0d7ce5bf] Installing mail 2.5.4
DEBUG[0d7ce5bf]
DEBUG[0d7ce5bf] 0: mail (2.5.4) from /home/shipt/applications/admin.shipt.dev/shared/bundle/ruby/2.1.0/specifications/mail-2.5.4.gemspec
DEBUG[0d7ce5bf]
DEBUG[0d7ce5bf] Installing actionmailer 4.1.1
@knewter
knewter / error
Last active August 29, 2015 14:03
1) test sorts by the number of fields present in the doc (FindGoodSolrDocTest)
test/find_good_solr_doc_test.exs:24
** (FunctionClauseError) no function clause matching in Enumerable.Function.reduce/3
stacktrace:
(elixir) lib/enum.ex:2198: Enumerable.Function.reduce(#Function<0.18085451/1 in FindGoodSolrDocTest.test sorts by the number of fields present in the doc/1>, {:cont, []}, #Function<32.13715154/2 in Enum.reduce/3>)
(elixir) lib/enum.ex:1256: Enum.reduce/3
(elixir) lib/enum.ex:1545: Enum.sort/2
test/find_good_solr_doc_test.exs:27