Skip to content

Instantly share code, notes, and snippets.

View ecmendenhall's full-sized avatar

Connor Mendenhall ecmendenhall

View GitHub Profile
@z0r0z
z0r0z / MultiSigNFT.sol
Created December 28, 2021 17:32
EIP-712-signed multi-signature contract with NFT ids for signers.
// SPDX-License-Identifier: GPL-3.0-or-later
import "https://github.com/Rari-Capital/solmate/blob/audit-fixes/src/tokens/ERC721.sol";
error NoGovParity();
error NoExecParity();
error SigBounds();
@anvk
anvk / psql_useful_stat_queries.sql
Last active March 8, 2024 12:05
List of some useful Stat Queries for PSQL
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB.
------------
-- Basics --
------------
-- Get indexes of tables