Skip to content

Instantly share code, notes, and snippets.

1. https://frontend.task-manager-ewr.com/delay/getrecord/2
GET
Response:
[
{
"deliver_after": "1235549874",
"id": "3",
"payload": "{}",
"request_code": "SEND_MAIL",
"task_id": "None"
@mindnuts
mindnuts / web-servers.md
Created June 19, 2017 09:39 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@mindnuts
mindnuts / gist:205e8dd4338b407022e9011da3292cdc
Last active April 28, 2017 12:09 — forked from Pradnya-Paranjape/gist:147caeebe24fe2f8e05dced841b1908b
docker command to run activity migration

SQL command to create admin_settings table

CREATE TABLE `admin_settings` (
 `id` bigint(20) UNSIGNED NOT NULL,
 `record_id` varchar(255) NOT NULL,
 `name` varchar(255) DEFAULT NULL,
 `resource_id` varchar(255) NOT NULL,
 `black_box` blob,
 `created_date_time` datetime DEFAULT NULL,
 `modified_date_time` datetime DEFAULT NULL
@mindnuts
mindnuts / reconnect.js
Created October 7, 2016 08:54 — forked from carlhoerberg/reconnect.js
How to build reconnect logic for amqplib
var amqp = require('amqplib/callback_api');
// if the connection is closed or fails to be established at all, we will reconnect
var amqpConn = null;
function start() {
amqp.connect(process.env.CLOUDAMQP_URL + "?heartbeat=60", function(err, conn) {
if (err) {
console.error("[AMQP]", err.message);
return setTimeout(start, 1000);
}
#!/bin/sh
if [ "$(id -u)" != 0 ] ; then
echo This must be run as root!
exit 1
fi
#
# Look for the most comment cases
#