Skip to content

Instantly share code, notes, and snippets.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
LISTENER
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
curl -X POST -H "Content-Type: application/json" http://188.166.42.116:8182/v2/listeners\
-d '{"Listener":{"Id": "ls1", "Protocol":"http", "Address":{"Network":"tcp", "Address":"0.0.0.0:80"}}}'
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ADMIN BOX
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#!/bin/sh
if [ "$(id -u)" != 0 ] ; then
echo This must be run as root!
exit 1
fi
#
# Look for the most comment cases
#
FROM frolvlad/alpine-oraclejdk8:full
# Set environment variables
ENV PKG_NAME orientdb
ENV ORIENT_VERSION 2.2.0-rc1
ENV ORIENTDB_HOME /orientdb
ENV ORIENTDB_URL http://orientdb.com/[email protected]&file=orientdb-community-$ORIENT_VERSION.tar.gz&os=linux
RUN apk add --update bash openssl wget \
&& mkdir -p $ORIENTDB_HOME \
{
"result": [
{
"@type": "d",
"@rid": "#12:925",
"@version": 3,
"@class": "Applications",
"created_date_time": "2016-06-13 09:55:56",
"vsq_data": [
core@core-01 ~/holy-grail-environment/docker/2.2.2 $ docker run --name orientdb -v /opt/orientdb:/orientdb/databases -p ${COREOS_PRIVATE_IPV4}:2424:2424 -p ${COREOS_PRIVATE_IPV4}:2480:2480 -e "COREOS_PRIVATE_IPV4=${COREOS_PRIVATE_IPV4}" -p ${COREOS_PRIVATE_IPV4}:5701:5701 -e "ORIENTDB_NODE_NAME=core-01" localhost:5000/orientdb:cluster dserver.sh -Dhazelcast.ip=${COREOS_PRIVATE_IPV4}
.
.` `
, `:.
`,` ,:`
.,. :,,
.,, ,,,
. .,.::::: ```` ::::::::: :::::::::
,` .::,,,,::.,,,,,,`;; .: :::::::::: ::: :::
`,. ::,,,,,,,:.,,.` ` .: ::: ::: ::: :::
.
.` `
, `:.
`,` ,:`
.,. :,,
.,, ,,,
. .,.::::: ```` ::::::::: :::::::::
,` .::,,,,::.,,,,,,`;; .: :::::::::: ::: :::
`,. ::,,,,,,,:.,,.` ` .: ::: ::: ::: :::
,,:,:,,,,,,,,::. ` ` `` .: ::: ::: ::: :::
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
~ /*
~ * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.com)
~ *
~ * Licensed under the Apache License, Version 2.0 (the "License");
~ * you may not use this file except in compliance with the License.
~ * You may obtain a copy of the License at
~ *
~ * http://www.apache.org/licenses/LICENSE-2.0
@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/bash
# Alpine linux 3.4/edge Script For pdf2htmlEx
# Inspired from
# Rajeev Kannav Sharma
# http://rajeevkannav.github.io/
# AND
# https://github.com/BWITS
#
#
# Downloads and configures the following:
@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