Skip to content

Instantly share code, notes, and snippets.

View tannermares's full-sized avatar

Tanner Mares tannermares

View GitHub Profile
@badosu
badosu / batch_invalidation.js
Last active February 16, 2020 02:41
Sidekiq Batch Invalidation UI
const appendInvalidationRow = row => {
$('tbody')
.first()
.append(`<tr><th>Validation</th><td>${row}</td></tr>`);
};
const setupBatchInvalidation = (rootUrl, bid) => {
$.getJSON(`${rootUrl}api/batches/${bid}/invalidated`, data => {
if (data.invalidated) {
appendInvalidationRow('Invalid');
@joyrexus
joyrexus / README.md
Last active March 18, 2024 11:03
local webhook testing

We can test webhook callbacks with a little http server and a localtunnel.

Run server.js to spin up a local http server on port 8080. It just exposes a top-level route and will print the received header and payload of any request. Then create a localtunnel to have a non-local url that proxies all requests to localhost:8080.


First, install dependencies with npm install.

Then start the express server with npm start.

@kevinthompson
kevinthompson / 2013-06-06-sdruby-heroku-fu.md
Last active December 18, 2015 04:39
Notes from @gkparishphilp's Heroku-Fu talk at SD Ruby; June 6, 2013

Heroku-Fu

By: Gk Parish-Philp
Date: June 6th, 2013

Tips and tricksto get the most out of Heroku

  1. Beginnings
  2. Why Heroku