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.
$ python -m SimpleHTTPServer 8000
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" |
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.
$ python -m SimpleHTTPServer 8000
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
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 | |
# |