View gist:0de78735fee88b2d57795c0743f1d119
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | |
<meta | |
name="description" | |
content="The Future of Grenfell Tower - A vote by the community, for the community" | |
/> | |
<meta name="author" content="LWRA" /> | |
<title>The Future of Grenfell Tower</title> | |
<!-- Open Graph tags for Facebook --> | |
<meta |
View hardhat.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// hardhat.config.js | |
require("dotenv/config") | |
require("@nomiclabs/hardhat-etherscan") | |
require("@nomiclabs/hardhat-solhint") | |
// require("@nomiclabs/hardhat-solpp") | |
require("@tenderly/hardhat-tenderly") | |
require("@nomiclabs/hardhat-waffle") | |
require("hardhat-abi-exporter") | |
require("hardhat-deploy") | |
require("hardhat-deploy-ethers") |
View stablecoin_abi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
}, |
View bep20onefile.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.5.16; | |
interface IBEP20 { | |
function totalSupply() external view returns (uint256); | |
function decimals() external view returns (uint8); | |
function symbol() external view returns (string memory); | |
function name() external view returns (string memory); | |
function getOwner() external view returns (address); | |
function balanceOf(address account) external view returns (uint256); | |
function transfer(address recipient, uint256 amount) external returns (bool); | |
function allowance(address _owner, address spender) external view returns (uint256); |
View erc20_mintable_pausable.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//AND Token Binance Smart Chain: 0x19F4e6D283F91BD2C6209F6E54bDC22B0897b5fd | |
//USDA Token Binance Smart Chain: 0x0BCb308E5D5340aFf8f5A06436377159022244aA | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
/* | |
* @dev Provides information about the current execution context, including the | |
* sender of the transaction and its data. While these are generally available | |
* via msg.sender and msg.data, they should not be accessed in such a direct | |
* manner, since when dealing with meta-transactions the account sending and |
View kafka_min.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update; sudo apt-get -y upgrade | |
sudo apt install -y software-properties-common | |
sudo apt install -y curl net-tools nethogs htop unzip tree | |
sudo apt-get install -y default-jre | |
sudo apt-get install -y zookeeperd | |
sudo systemctl enable zookeeper | |
cd /tmp | |
wget https://www-eu.apache.org/dist/kafka/2.4.0/kafka_2.13-2.4.0.tgz |
View hashicorp_vault_tutorial1.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --header "X-Vault-Token: $VAULT_ROOT_TOKEN" \ | |
--request POST \ | |
--data '{"plaintext": "Sm9uLFNub3csNDExMSAxMTExIDExMTEgMTExMSxyZXN0YXVyYW50LCwxODkyMDMwOTAzCg=="}' \ | |
http://127.0.0.1:8200/v1/transit/encrypt/transactions | jq |
View pub_sub_python.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import logging | |
import os | |
import apache_beam as beam | |
from apache_beam.options.pipeline_options import PipelineOptions, StandardOptions | |
from google.cloud import pubsub_v1 | |
# imports the credential file | |
path_service_account = "read_stream_key.json" |
View inactive-users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I propose to kick users out from the DAO that didn't wrote at least 1 word on the chat channels until now |
View mediumx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
state: () => ({ | |
loading: false | |
}), | |
mutations: { | |
SET_DATA(state, { id, data }) { | |
state[id] = data; | |
} | |
} | |
}; |
NewerOlder