This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import amqp from "amqplib"; | |
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
const connection = await amqp.connect("amqp://localhost"); | |
const channel = await connection.createChannel(); | |
var queue = "task_queue"; | |
var msg = "Hello World!"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const JSEncrypt = require('node-jsencrypt'); | |
const crypto = require('crypto'); | |
const text = ' Some text ÜÄ'; | |
const privateKey = ` | |
-----BEGIN RSA PRIVATE KEY----- | |
MIICXQIBAAKBgQDlOJu6TyygqxfWT7eLtGDwajtNFOb9I5XRb6khyfD1Yt3YiCgQ | |
WMNW649887VGJiGr/L5i2osbl8C9+WJTeucF+S76xFxdU6jE0NQ+Z+zEdhUTooNR | |
aY5nZiu5PgDB0ED/ZKBUSLKL7eibMxZtMlUDHjm4gwQco1KRMDSmXSMkDwIDAQAB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const pRetry = require("p-retry"); | |
const _logger = require("ingo-app-log").get("fetch"); | |
const fetch = require("node-fetch"); | |
const uuid = require("uuid").v4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"id":"main-network.js","root":{"start":"src/script-network.js","links":[{"source":"src/script-network.js","target":"node_modules/d3-selection/src/index.js"},{"source":"src/script-network.js","target":"node_modules/d3-array/src/index.js"},{"source":"src/script-network.js","target":"node_modules/d3-scale/src/index.js"},{"source":"src/script-network.js","target":"node_modules/d3-force/src/index.js"},{"source":"src/script-network.js","target":"node_modules/bytes/index.js"},{"source":"src/script-network.js","target":"src/tooltip.js"},{"source":"src/script-network.js","target":"src/style/style-network.scss"},{"source":"node_modules/d3-selection/src/index.js","target":"node_modules/d3-selection/src/create.js"},{"source":"node_modules/d3-selection/src/index.js","target":"node_modules/d3-selection/src/creator.js"},{"source":"node_modules/d3-selection/src/index.js","target":"node_modules/d3-selection/src/local.js"},{"source":"node_modules/d3-selection/src/index.js","target":"node_modules/d3-selection/src/matcher.js"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ingo.commons.util | |
import com.amazonaws.services.cloudwatch.{AmazonCloudWatch, AmazonCloudWatchClientBuilder} | |
import com.amazonaws.services.cloudwatch.model.{Dimension, MetricDatum, PutMetricDataRequest, StandardUnit} | |
import ingo.commons.props.DefaultProperties | |
object CloudWatch { | |
var client: AmazonCloudWatch = _ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# build_module.sh (c) NGINX, Inc. [v0.12 30-Aug-2017] Liam Crilly <[email protected]> | |
# | |
# This script supports apt(8) and yum(8) package managers. Installs the minimum | |
# necessary prerequisite packages to build 3rd party modules for NGINX Plus. | |
# Obtains source for module and NGINX OSS, prepares for pkg-oss tool. Inspects | |
# module configuration and attempts to rewrite for dynamic build if necessary. | |
# Obtains pkg-oss tool, creates packaging files and copies in module source. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.7 | |
LABEL maintainer="Denis Bardadym <[email protected]>" | |
ENV NGINX_VERSION 1.13.8 | |
ENV BROTLI_COMMIT 5b4769990dc14a2bd466d2599c946c5652cba4b2 | |
ENV NGX_BROTLI_COMMIT 14dede1d3b2827d5135231f101b0af2e287a82d7 | |
RUN CONFIG="\ | |
--prefix=/etc/nginx \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class RGB { | |
constructor(r, g, b, a) { | |
this.r = r; | |
this.g = g; | |
this.b = b; | |
this.a = a; | |
} | |
} | |
function pivotRgb(n) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const express = require('express'); | |
const crypto = require('crypto'); | |
const got = require('got'); | |
const signingKey = 'some sort of key here'; | |
const proxyHeaders = [ | |
'content-length', |
NewerOlder