Skip to content

Instantly share code, notes, and snippets.

View Mister-Meeseeks's full-sized avatar

Doug Colkitt Mister-Meeseeks

View GitHub Profile
// 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.
// 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
@Mister-Meeseeks
Mister-Meeseeks / spark-build.docker
Created December 9, 2019 17:08
Build Spark from source and install in system paths
# 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 \
@Mister-Meeseeks
Mister-Meeseeks / reverseSocksTunnel.sh
Last active October 27, 2019 05:02
Use SSH socks tunnels to bypass firewall that blocks outbound Internet
#!/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).
@Mister-Meeseeks
Mister-Meeseeks / aptRecurse.sh
Last active August 2, 2024 07:06
Download apt-get packages and recursive dependencies
#!/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)
@Mister-Meeseeks
Mister-Meeseeks / pullYahoo.sh
Created May 17, 2017 21:45
Bash script for Yahoo Finance historical data. Works with new cookie-based authentication
#!/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