Skip to content

Instantly share code, notes, and snippets.

View brianmcmichael's full-sized avatar

Brian L. McMichael brianmcmichael

View GitHub Profile
@brianmcmichael
brianmcmichael / labels.txt
Created September 30, 2021 22:18 — forked from kmbarry1/labels.txt
Automatically Create GitHub Repo Labels
paste in to console at at https://github.com/<org>/<repo_name>/labels:
[
{
"name": "Priority: Critical",
"description": null,
"color": "b60205"
},
{
pragma solidity ^0.6.12;
interface VatAbstract {
function wards(address) external view returns (uint256);
function rely(address) external;
function deny(address) external;
function can(address, address) external view returns (uint256);
function hope(address) external;
function nope(address) external;
function ilks(bytes32) external view returns (uint256, uint256, uint256, uint256, uint256);
@brianmcmichael
brianmcmichael / wards.txt
Created February 18, 2021 22:15
2021 02 18 Wards check against MCD changelog
CHANGELOG: 0x92723e0bF280942B98bf2d1e832Bde9A3Bd2F2c2
WARD: 0
MULTICALL: 0xdDb108893104dE4E1C6d0E47c42237dB4E617ACc
WARD: N/A
MCD_DEPLOY: 0xdDb108893104dE4E1C6d0E47c42237dB4E617ACc
WARD: N/A
FLIP_FAB: 0xdDb108893104dE4E1C6d0E47c42237dB4E617ACc
WARD: N/A
LERP_FAB: 0xd200790f62c8da69973e61d4936cfE4f356ccD07
WARD: N/A
@brianmcmichael
brianmcmichael / hexspeak
Created November 25, 2020 18:14 — forked from gabrielfalcao/hexspeak
Hexspeak word list
00D1E5
0111E
0115
011ED
011F1E1D
011F1E1D5
015E
01AF
01D1E
pragma solidity 0.5.12;
contract Price {
uint256 _startPrice;
uint256 _endPrice;
uint256 _start;
uint256 _duration;
function start(uint256 startPrice, uint256 endPrice, uint256 duration) public {
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""This module's docstring summary line.
This is a multi-line docstring. Paragraphs are separated with blank lines.
Lines conform to 79-column limit.
Module and packages names should be short, lower_case_with_underscores.
Notice that this in not PEP8-cheatsheet.py
@brianmcmichael
brianmcmichael / KovanVerificationNotes.md
Last active November 11, 2019 23:05
11/11/19 Notes for Etherscan Verification of DSS contracts on Kovan

0.2.16 Manual verification notes

Unless otherwise noted, compiler optimizations are disabled.

Build Notes

Using a draft version of Multicall at https://github.com/icetan/multicall-flat

  • Enter nix shell nix-shell
  • Add repo dapp2nix add https://github.com/dapptools/ds-pause
@brianmcmichael
brianmcmichael / .vimrc
Created October 9, 2019 19:09 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on

Keybase proof

I hereby claim:

  • I am brianmcmichael on github.
  • I am advanceduser (https://keybase.io/advanceduser) on keybase.
  • I have a public key ASCDlyAvkSs-_3w_xG7E7udy2P5Ih5ku8PTyJtRG7QWFIwo

To claim this, I am signing this object:

import ecdsa
import ecdsa.ellipticcurve as EC
curve = ecdsa.SECP256k1
x = int('11db93e1dcdb8a016b49840f8c53bc1eb68a382e97b1482ecad7b148a6909a5c', 16)
y = int('b2e0eaddfb84ccf9744464f82e160bfa9b8b64f9d4c03f999b8643f656b412a3', 16)
point = EC.Point(curve.curve, x, y)
pubkey = ecdsa.VerifyingKey.from_public_point(point, curve)
hash1 = 90774958364900180671716888080665726921328827653065727390791155349203800699667