This file contains hidden or 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
% ./enc | |
=ERROR REPORT==== 22-May-2024::15:14:05.001026 === | |
beam/beam_load.c(607): Error loading function rebar:log/3: op init y: | |
no specific operation found | |
escript: exception error: undefined function rebar:main/1 | |
in function escript:run/2 (escript.erl, line 904) | |
in call from escript:start/1 (escript.erl, line 418) | |
in call from init:start_it/1 |
This file contains hidden or 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
> json:decode(~""" | |
{"a":"b", "c":true, "d":42, "e":1.2, "f":false, "g":null} | |
"""). | |
#{<<"a">> => <<"b">>,<<"c">> => true,<<"d">> => 42, | |
<<"e">> => 1.2,<<"f">> => false,<<"g">> => null} |
This file contains hidden or 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
% Benchmark module for ddoc_cache_lru | |
% | |
% Benchmark opening and closing (evicting) a bunch of random dbs/ddocs. | |
% | |
% Times are measured in microseconds. Best (minimum) results are returned for each | |
% of the N cases. | |
% | |
-module(ddoc_cache_bench). |
This file contains hidden or 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
% Benchmark module for couch_event_server | |
% | |
% Benchmark registering/unregistering N listeners for N dbs. Then benchmark | |
% sending 10 events from concurrent proceses for each of the Db and measure | |
% event latency: how long it took for the event to be delivered to the | |
% listener. | |
% | |
% Times are measured in microseconds. Best (minimum) results are returned for each | |
% of the N cases. | |
% |
This file contains hidden or 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
#!/usr/bin/env python | |
import json | |
import time | |
import requests | |
import string | |
import random | |
S = requests.session() |
This file contains hidden or 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/bash | |
http -q delete $DB/db | |
http -q put $DB/db | |
http post $DB/db/_bulk_docs new_edits:='false' docs:='[{"_id":"d1", "_revisions":{"start":2, "ids":["x", "z"]}, "data":1}, {"_id":"d1", "data":2, "_revisions":{"start":2, "ids":["y", "z"]}}, {"_id":"d1", "data":3, "_deleted":true, "_revisions":{"start":2, "ids":["w", "z"]}}]' | |
http -q put $DB/db/d1/att2y'?rev=2-y' data=2y | |
http -q put $DB/db/d1/att2x'?rev=2-x' data=2x | |
echo "Without a filter with atts" |
This file contains hidden or 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
#!/usr/bin/env python | |
# | |
# make && ./dev/run -n 1 --admin=adm:pass | |
# ./multiuser.py --users-scheme=simple --users-salt="abc" --users-hash-sha1 --tries 100 | |
import copy | |
import sys | |
import time | |
import threading | |
import os |
This file contains hidden or 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
% | |
% $ erl -name [email protected] | |
% > c(distblockleak). | |
% | |
% $ erl -name [email protected] | |
% > c(distblockleak), distblockleak:go('[email protected]', "./junk.bin", 10000, 100, 200). | |
% | |
-module(distblockleak). |
This file contains hidden or 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
%% Reproducer attempt for https://github.com/erlang/otp/issues/7801 | |
%% It's supposed to model the couch_file.erl from Apache CouchDB | |
%% | |
%% Example run: | |
%% c(ioblock), ioblock:go("./junk.bin", 8192, 60, 4000). | |
%% - Create a temporary junk.bin file with 8GB of random data | |
%% - Spawn 60 gen_servers to handle preads from the file | |
%% - Spawn 4000 caller processes to call the servers with pread commands | |
%% | |
%% Note: run the first time without measuring to create the larger file. |
This file contains hidden or 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
global | |
maxconn 10000 | |
spread-checks 5 | |
defaults | |
mode http | |
log global | |
option httplog | |
log stdout format raw local0 | |
balance roundrobin |