Skip to content

Instantly share code, notes, and snippets.

View godsflaw's full-sized avatar

Christopher Mooney godsflaw

View GitHub Profile
@godsflaw
godsflaw / labels.txt
Created September 30, 2021 22:34 — 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"
},
{
#!/usr/bin/env python3
import json
import click
import appdirs
import requests
from pathlib import Path
from graphqlclient import GraphQLClient
from web3.auto import w3
This file has been truncated, but you can view the full file.
0: 0x0000000000000000000000000000000000000000
1: 0xCd5f8fa45E0cA0937F86006B9eE8fE1eEdEe5FC4
2: 0x000dCF36D188714Ec52fE527D437c486D4Fb24D8
3: 0xAfa43f2B1a86f74e813ce1af161b50Db3E2236Fc
4: 0x6F2A8Ee9452ba7d336b3fba03caC27f7818AeAD6
5: 0xc031D5e3822bE0335027ecf88aFdfd3433A97fe1
6: 0x1A40CA0774518D8F7f41df7dA070a4AaE08184F1
7: 0x7C5F6fFaD368dBf1a83E6D66b5aCE792fac2E7C0
9: 0x1db7332D24EBbdC5F49c34AA6830Cb7f46A3647C
12: 0x9cefde113e96aDbe99B8975BBB25825d4C4d0e77
#!/usr/bin/env python3
import json
import click
import appdirs
import requests
from pathlib import Path
from graphqlclient import GraphQLClient
from web3.auto import w3
#!/usr/bin/env bash
QUERY='{ allCups(condition: {deleted: false}, filter: {tab: {greaterThan: "0.0"}}, orderBy: ID_ASC) { nodes { id tab } } }'
curl -s \
-XPOST \
-H 'Content-Type:application/graphql' \
-d "${QUERY}" \
https://sai-mainnet.makerfoundation.com/v1 \
| python -m json.tool \
Continuous Voting and the peculiarities of the 7/26 Executive Stability Fee Vote
(Note, the Maker system uses 'fanciful' names for its internal system objects and functions, which tends to put off readers initially, but the author believes they are absolutely fundamental to quickly grasping the system's complex concepts)
*IMPORTANT INITIAL NOTE*: This issue does not ultimately put the platform at any real risk, but will require more MKR to be put into changing the rate than one might have guessed initially.
*Explanation of the voting system overall*
When the MakerDAO governance polling system signals for a Stability Fee change, it does not automatically change the official rate in the system. Instead, the rate outcome from the poll is crafted into a proposal with a `spell`, which is a contract deployed to the blockchain that, when `cast`, will do the magic necessary to update the system to the new rate. Once a `spell` is `cast`, it cannot be cast again.
#!/bin/bash
echo ECS_CLUSTER=lomc > /etc/ecs/ecs.config
INSTANCE=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
hostname $INSTANCE
sed -i.bak "s/\\(HOSTNAME=\\).*/\\1$INSTANCE/" /etc/sysconfig/network
# https://aws.amazon.com/blogs/compute/using-amazon-efs-to-persist-data-from-amazon-ecs-containers/
yum -y install jq
0xb8bbf36ba36fc78f3f137c514af33709fffba604

Keybase proof

I hereby claim:

  • I am godsflaw on github.
  • I am godsflaw (https://keybase.io/godsflaw) on keybase.
  • I have a public key whose fingerprint is 5C43 518F 7673 EE07 534A 06F4 4F0F F984 7ABF A390

To claim this, I am signing this object: