A guide to setup your WSL with Hyper and zsh
- Follow the very thorough instructions here
- Download Hyper.js here - I went with the 'hyperblue' theme.
| ssh -T [email protected] |
| git config --global credential.helper store |
| pragma solidity >=0.6.0 <0.7.0; | |
| contract YourContract { | |
| event SetPurpose(address sender, string purpose); | |
| event Deployed(address this); | |
| string public purpose = "🛠 Programming Unstoppable Money"; | |
| constructor() public { | |
| emit Deployed(address(this)); |
| pragma solidity >=0.6.0 <0.7.0; | |
| import "./YourContract.sol"; | |
| contract YourFactory { | |
| event ContractDeployed(address sender, string purpose); | |
| function newYourContract() public { | |
| new YourContract(); | |
| } |
| const { | |
| html, | |
| render, | |
| useState, | |
| useEffect, | |
| useLayoutEffect | |
| } = await import('https://unpkg.com/htm/preact/standalone.module.js'); | |
| const { |
| import matplotlib.pyplot as plt | |
| import requests | |
| import base64 | |
| import io | |
| import matplotlib.image as mpimg | |
| from PIL import Image | |
| from io import BytesIO | |
| import numpy as np | |
| def grab_image(number: str): |
| # references | |
| # 1. https://uniswap.org/docs/v2/javascript-SDK/getting-pair-addresses/ | |
| # 2. https://ethereum.stackexchange.com/questions/90539/how-to-get-the-non-packed-soliditykeccak-hash-in-python-web3 | |
| # deps | |
| # Python 3.9.5 | |
| # 1. eth-abi==2.1.1 | |
| # 2. web3==5.18.0 | |
| The tutorials below explain how to start the IPFS node on AWS. Of note are the networking (the ports required to open) as well as | |
| setting up the IPFS env var to persist the data: | |
| https://medium.com/textileio/tutorial-setting-up-an-ipfs-peer-part-i-de48239d82e0 | |
| https://talk.fission.codes/t/a-loosely-written-guide-to-hosting-an-ipfs-node-on-aws/234 |
| # https://crontab.guru/every-5-minutes | |
| crontab -e | |
| sudo service crond restart | |
| sudo cat /var/log/cron | |