Skip to content

Instantly share code, notes, and snippets.

{
"netId1": {
"rpcCallRetryAttempt": 15,
"gasPrices": {
"instant": 80,
"fast": 50,
"standard": 25,
"low": 8
},
"nativeCurrency": "eth",
@TheFrozenFire
TheFrozenFire / calldata.json
Last active December 21, 2021 22:21
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=false&runs=200&gist=
["0x15825752204352339070773660561747744995368910166642058733447226553576048127620", "0x4104073791256506431339753363656965180476192406012222430072084853152771163259"],[["0x21758194330135378390286863182353012230019765724948538517270853787447154453578", "0x6589571048392691992622687789625744184701877001877815910946598678294191240038"],["0x8099406352661216300844452568837983225780892635497226701932517913844126351983", "0x13595637471498738026581934883195242444947549867736100368238369840892205648453"]],["0x15500068298729142697789248320911849575676594421665209012717427742635899083716", "0x19121931617960734456193555334840090322868904994996777191719354922390069145480"],["0x26474397424444624264459129239518201235937769586102783315330882518088509671","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000000","
@TheFrozenFire
TheFrozenFire / contracts...jwt_proof.auth0.sol
Created December 15, 2021 21:40
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=false&runs=200&gist=
//
// Copyright 2017 Christian Reitwiessner
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTW
const temp = require("temp"); // https://github.com/bruce/node-temp
const fs = require("fs");
const circom_wasm = require("circom_tester").wasm;
async function test() {
temp.track();
const temp_circuit = await temp.open('test');
fs.writeSync(temp_circuit.fd, `
function parse_str(str, array) {
// eslint-disable-line camelcase
// discuss at: http://locutus.io/php/parse_str/
// original by: Cagri Ekin
// improved by: Michael White (http://getsprink.com)
// improved by: Jack
// improved by: Brett Zamir (http://brett-zamir.me)
// bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
// bugfixed by: Brett Zamir (http://brett-zamir.me)
// bugfixed by: stag019
FROM docker.elastic.co/logstash/logstash-oss:7.3.1
ADD --chown=logstash:root https://jdbc.postgresql.org/download/postgresql-42.2.6.jar /usr/share/logstash/logstash-core/lib/jars/
RUN bin/logstash-plugin install logstash-input-google_pubsub
RUN bin/logstash-plugin install logstash-output-google_pubsub
RUN bin/logstash-plugin install logstash-input-jdbc
RUN bin/logstash-plugin install logstash-input-elasticsearch
RUN bin/logstash-plugin install logstash-output-elasticsearch
RUN bin/logstash-plugin install logstash-filter-memcached
{
"kind": "discovery#restDescription",
"description": "Business logic for the Meetings app.",
"servicePath": "",
"rootUrl": "https://meetings.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "meetings",
"batchPath": "batch",
"revision": "20181113",
@TheFrozenFire
TheFrozenFire / ansible
Created November 15, 2017 18:21
Ansible from virtualenv
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ ! -d ${DIR}/ansible-install/ENV ]; then ( ${DIR}/ansible-install/setup.sh ); fi
if [ -z ${ANSIBLE_CONFIG+x} ]; then export ANSIBLE_CONFIG="${DIR}/ansible-install/ansible.cfg"; fi
if [ -z ${ANSIBLE_NO_GCLOUD+x} ]; then ${DIR}/ansible-install/setup-gcloud.sh; fi
source ${DIR}/ansible-install/ENV/bin/activate
(cd ${DIR} && exec ansible "$@")
"by_month": {
"buckets": [
{
"key_as_string": "2015-04-01T00:00:00.000Z",
"key": 1427846400000,
"doc_count": 49249,
"delivery_state": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
<?php
namespace bar;
class dependency
{
}