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 | |
| # Run with an n=1 dev/run test cluster | |
| # Needs python 3.7 minimum | |
| # | |
| # $ virtualenv -p python3 venv3 | |
| # $ . venv3/bin/activate | |
| # $ pip install requests | |
| import base64 |
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 argparse | |
| import sys | |
| import couchdb | |
| import random | |
| import string | |
| import uuid | |
| import time | |
| import copy |
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 sys, socket, hashlib, base64, itertools, time, random, string, couchdb | |
| DEBUG = True | |
| PORT = 15984 | |
| DATABASE = 'db' | |
| def lg(*args): | |
| if DEBUG: |
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
| % Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
| % use this file except in compliance with the License. You may obtain a copy of | |
| % the License at | |
| % | |
| % http://www.apache.org/licenses/LICENSE-2.0 | |
| % | |
| % Unless required by applicable law or agreed to in writing, software | |
| % distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
| % WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
| % License for the specific language governing permissions and limitations under |
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/env python | |
| import sys, os | |
| USAGE=""" | |
| ./progbar.py PROCESS_ID [FILE_DESCRIPTOR_NUMBER] | |
| Usage: | |
| ./progbar.py PROCESS_ID | |
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 bash | |
| # Note: erlang depends on ncurses, openssl at a minimum | |
| usage () | |
| { | |
| echo "usage: $0 <release> <type>" | |
| echo " release: R14B01|R14B02|R14B03|R14B04|R15B|R15B01|R15B02|R15B03|R16B|R16B01|R16B02" | |
| echo " type: normal, opt, gcov, gprof, debug, valgrind, or lcnt" |
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
| # Verify | |
| $ gpg --verify apache-couchdb-*.tar.gz.asc | |
| $ sha256sum --check apache-couchdb-*.tar.gz.sha256 | |
| $ sha512sum --check apache-couchdb-*.tar.gz.sha512 | |
| # Set max files limits | |
| $ sudo emacs /etc/security/limits.conf | |
| (add) |
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
| % works with https://gist.github.com/davisp/626acba57bb0f6da84a1d0de4d7237c3 | |
| maybe_trace(MochiReq) -> | |
| case MochiReq:get_header_value("x-couchdb-trace") of | |
| "true" -> | |
| case is_tracer_running() of | |
| true -> | |
| couch_log:info("Tracer updating scope with request pid:~p", [self()]), | |
| % https://github.com/rabbitmq/looking_glass/blob/master/src/lg.erl#L125 |
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 sys | |
| import socket | |
| import itertools | |
| import time | |
| import requests | |
| import couchdb |
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 requests | |
| import sys, socket, hashlib, base64, itertools, time | |
| import couchdb | |
| DEBUG = True | |
| PORT = 15984 | |
| DATABASE = 'db' |