defmodule Oauth do
# 6789973 Acct# for NetSuite Support
@acct_id 6_789_973
@base_uri "https://#{@acct_id}.suitetalk.api.netsuite.com/services/rest/record/v1/"
@oauth_creds [
This file contains hidden or 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
config :revo, | |
:user_agent, | |
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0" | |
config :revo, :wait_intervals, [30_000, 45_000, 60_000, 65_000, 76_000] | |
config :crawly, | |
concurrent_requests_per_domain: 1, | |
closespider_timeout: 1, | |
manager_operations_timeout: 5 * 60_000, |
This file contains hidden or 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
{ | |
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36", | |
"environment": { | |
"networkUserAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4590.2 Mobile Safari/537.36 Chrome-Lighthouse", | |
"hostUserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36", | |
"benchmarkIndex": 2281.5, | |
"credits": { | |
"axe-core": "4.2.3" | |
} | |
}, |
This file contains hidden or 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 nodesource/nsolid:latest | |
LABEL maintainer "Joe McCann <[email protected]>" | |
# Install our dependencies (libfontconfig for phantomjs) | |
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \ | |
bzip2 \ | |
ca-certificates \ | |
curl \ | |
git \ |
This file contains hidden or 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 mapboxgl from 'mapbox-gl/dist/mapbox-gl-csp' | |
import MapboxWorker from 'worker-loader!mapbox-gl/dist/mapbox-gl-csp-worker' // Load worker code separately with worker-loader | |
import 'mapbox-gl/dist/mapbox-gl.css' | |
export const useMapbox = (opts) => { | |
mapboxgl.workerClass = MapboxWorker | |
mapboxgl.accessToken = "public/private access token" | |
const init = (sources) => { |
This file contains hidden or 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
@oauth_creds [ | |
realm: "#{@acct_id}", | |
oauth_consumer_key: "<CONSUMER_KEY>", | |
oauth_consumer_secret: "<CONSUMER_SECRET>", | |
oauth_token: "<TOKEN>", | |
oauth_token_secret: "<TOKEN_SECRET>", | |
oauth_signature_method: "HMAC-SHA256", | |
oauth_version: "1.0" | |
] | |
This file contains hidden or 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
defmodule Hive.Seeker do | |
require IO | |
require Logger | |
@cluster "hive" | |
@label "[Seeker]:" | |
def discover() do | |
Hive.Colony.start_link([name: :settings]) |
This file contains hidden or 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
{ | |
"name" : "trulia-geocode-api", | |
"description": "Simple API written in node, leveraging express", | |
"version": "0.1.0", | |
"author": "Steven K. Snider <[email protected]>", | |
"license": "MIT", | |
"repository": "trulia-main", | |
"main": "server.js", | |
"dependencies": { | |
"express": "^4.13.3" |
This file contains hidden or 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 node:argon | |
RUN useradd -ms /bin/bash exp | |
# Create app directory | |
WORKDIR /usr/src/app | |
# Install app dependencies | |
COPY package.json /usr/src/app/ | |
RUN npm install |
This file contains hidden or 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 node:argon | |
RUN useradd -ms /bin/bash yo | |
# Create app directory | |
WORKDIR /usr/src/app | |
# Install a yeoman and friends | |
RUN npm install -g yo bower babel-cli gulp |