Skip to content

Instantly share code, notes, and snippets.

@Sheeri
Sheeri / loadTest.js
Last active May 18, 2020
mdb wa load test
View loadTest.js
'use strict';
function getRandomString(length) {
let s = '';
while (s.length < length && length > 0) {
const r = Math.random();
if (r < 0.1) {
s += Math.floor(r * 100);
} else if (r > 0.5) {
s += String.fromCharCode(Math.floor(r * 26) + 97);
@Sheeri
Sheeri / php-cli.spec
Last active Feb 6, 2018
recompile php_cli using libmysqlclient, for use with LDAP authentication via pam.so
View php-cli.spec
# IUS spec file for php70u, forked from
#
# Fedora spec file for php
#
# License: MIT
# http://opensource.org/licenses/MIT
#
# Please preserve changelog entries
#
# API/ABI check