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
// SPDX-License-Identifier: Unlicensed | |
pragma solidity >=0.8.4; | |
/* @notice Standard interface for a permit oracle to be used by a permissioned pool. */ | |
interface ICrocPermitOracle { | |
/* @notice Verifies whether a given user is permissioned to perform a swap on the pool | |
* | |
* @param user The address of the caller to the contract. |
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
// SPDX-License-Identifier: Unlicensed | |
pragma solidity >=0.8.4; | |
import '../libraries/Directives.sol'; | |
/* @notice Standard interface for a permit oracle to be used by a permissioned pool. */ | |
interface ICrocPermitOracle { | |
/* @notice Verifies whether a given user is permissioned to perform an arbitrary |
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
# This Dockerfile will download Spark from the latest Github source, build | |
# at /usr/local/src/spark/ and install Spark commands and libraries to | |
# system paths under the /usr/local/src/ directory. | |
FROM debian:stable-slim | |
RUN mkdir -p /usr/share/man/man1 && \ | |
apt-get update && \ | |
apt-get install -y \ | |
man \ |
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
#!/bin/bash -eu | |
# Script is designed to build an SSH proxy for external Internet access on a | |
# host, which sits behind a NAT/firewall that doesn't allow outbound traffic. | |
# (Common in exchange data centers). | |
# | |
# Call this from a bridge with access to the Intrent and inbound access to the | |
# host. On success it will make available on host both a Socks5 proxy deamon | |
# (at localhost:8080) and a tunnel to the bridge machine's http proxy (at | |
# Elocalhost:8118). |
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
#!/bin/bash -eu | |
# Uses apt-get to download packages and all recursive dependencies to an apt | |
# repository compatible directory. | |
# | |
# Usage: | |
# aptRecurse [-o OUT_DIRECTORY] PACKAGE_NAME [PACKAGE_NAME]... | |
# | |
# (Credit to this StackOverflow comment | |
# https://stackoverflow.com/a/45489718/868777) |
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
#!/bin/bash -eu | |
# Client script to pull Yahoo Finance historical data, off of its new cookie | |
# authenticated site. Start/End Date args can be any GNU readable dates. | |
# Script requires: GNU date, curl and bash shell | |
symbol=$1 | |
startDate=$2 | |
endDate=$3 |