- Go to a space that has boost enabled (still in beta)
- Go to any open proposal and click on "Boost"
- Which will take us to a page like https://snapshot.org/#/thanku.eth/boost/0x25487e3e1ea520e40114a245cf59583a8e05389e5ae48a8746deab29b000af73
- We have different configurations as seen in this page
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
// usuage: ts-node quick/collate-tables-issue/change-table-collate.ts <table-name> | |
import db from '../../utils/prodMysql'; | |
const tableName = process.argv[2]; | |
if (!tableName) { | |
console.error('Please provide a table name'); | |
process.exit(1); | |
} |
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 { Wallet } from "@ethersproject/wallet"; | |
import { JsonRpcProvider } from "@ethersproject/providers"; | |
import snapshot from "@snapshot-labs/snapshot.js"; | |
const mnemonic = "announce room limb pattern dry unit scale effort smooth jazz weasel alcohol" | |
let wallet = Wallet.fromMnemonic(mnemonic) | |
const provider = new JsonRpcProvider("https://rpc.ankr.com/eth"); | |
wallet = wallet.connect(provider) | |
console.log(wallet.address) |
curl 'https://apis.ankr.com/e9536947ec5942a9930f724f42226975/6106d4a3ec1d1bcc87ec72158f8fd089/arbitrum/full/main' \
-H 'Connection: keep-alive' \
-H 'Cache-Control: max-age=0' \
-H 'sec-ch-ua: "Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36' \
-H 'content-type: application/json' \
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
REMIX EXAMPLE PROJECT | |
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer. | |
It contains 3 directories: | |
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. | |
2. 'scripts': Holds two scripts to deploy a contract. It is explained below. | |
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity. | |
SCRIPTS |
This file has been truncated, but you can view the full file.
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 'https://api-geth-archive.ankr.com/' \ | |
-H 'Connection: keep-alive' \ | |
-H 'Cache-Control: max-age=0' \ | |
-H 'sec-ch-ua: "Google Chrome";v="93", " Not;A Brand";v="99", "Chromium";v="93"' \ | |
-H 'Authorization: Basic YmFsYW5jZXJfdXNlcjpiYWxhbmNlckFua3IyMDIwMTAxNQ==' \ | |
-H 'content-type: application/json' \ | |
-H 'sec-ch-ua-mobile: ?0' \ | |
-H 'Origin: http://localhost:3000' \ | |
-H 'Sec-Fetch-Site: cross-site' \ | |
-H 'Sec-Fetch-Mode: cors' \ |
- Login to AWS Console and go to https://console.aws.amazon.com/lambda/home
- Select Region and click "Create Function" button
- Select "Auther from Scratch" and Give your function a name (ex: convert-chartjs-to-image)
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
## Update to PHP-7 | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install php7.2 php7.2-common php7.2-simplexml php7.2-mbstring php-bcmath | |
sudo a2dismod php5 | |
sudo a2enmod php7.2 | |
sudo service apache2 restart | |
php -v | |
## Install Bcmath extension |
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
1) Open this file: app/design/frontend/rwd/default/template/configurableswatches/catalog/product/view/type/configurable/swatch-js.phtml | |
2) Change this: | |
<script type="text/javascript"> | |
document.observe('dom:loaded', function() { | |
var swatchesConfig = new Product.ConfigurableSwatches(spConfig); | |
}); | |
</script> | |
To this: |
NewerOlder