Skip to content

Instantly share code, notes, and snippets.

@birarda
birarda / findLongRunningOp.js
Created May 13, 2019 18:14 — forked from kylemclaren/findLongRunningOp.js
Find and (safely) kill long running MongoDB ops
db.currentOp().inprog.forEach(
function(op) {
if(op.secs_running > 5) printjson(op);
}
)
//
// BetterClientSimulationBotFromRecording.js
// examples
//
// Created by Brad Hefta-Gaub on 2/6/17.
// Copyright 2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
@birarda
birarda / default.rb
Last active August 29, 2015 14:09 — forked from a-chernykh/default.rb
default[:tbb][:version] = '4.2-20140122oss'
default[:tbb][:url] = 'https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20140122oss_src.tgz'
default[:tbb][:sha] = 'f1bd8d983f93a10e340ba63f3a479632ddca1562a5242814dd82a378d3233b75'
@birarda
birarda / fee_calc.js
Created May 11, 2012 22:38
Eventify Fee Calculator
<script>
$("input.ticketPrice").keyup(function () {
var cut = 0.0225;
var ticketPrice = $(this).val();
var totalProfit = Number(ticketPrice) + 0;
var ticketTotal = (Number(feeTotal) + Number(ticketPrice));
if ( $('#fees').prop('checked') ) {
var ticketFee = ticketPrice * cut;