Skip to content

Instantly share code, notes, and snippets.

View araa47's full-sized avatar
🛠️
Building 24*7

Akshay araa47

🛠️
Building 24*7
  • Hong Kong
View GitHub Profile
@araa47
araa47 / README.md
Created August 1, 2022 11:40
helm2 and helm3 on MacOS

brew install helm@2

brew install helm

cd /usr/local/bin

sudo ln -s /opt/homebrew/opt/helm@2/bin/tiller tiller

sudo ln -s /opt/homebrew/opt/helm@2/bin/helm helm2

@araa47
araa47 / BancorBq.md
Last active February 8, 2021 07:19
Bancor Data

Get All Other Contract Registry's

SELECT 
    *
FROM 
    `blockchain-etl.ethereum_bancor.ContractRegistry_event_AddressUpdate` 
WHERE 
    _contractName = '0x436f6e7472616374526567697374727900000000000000000000000000000000'
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreiayvhy4ap5khhjmijl2opphknfkoecy54tkkeuyxyqktgqyg3tcoq ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
export ADDRESS_FILE=/root/.ocean/ocean-contracts/artifacts/address.json
aquarius exists

Welcome to
,-._
_.-' '--.
.' _ -`\_
/ .----.`_.'----'
@araa47
araa47 / Publish.ipynb
Last active October 9, 2020 12:48
Ocean Rinkeby Publish Test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@araa47
araa47 / Ocean.ipynb
Last active October 9, 2020 08:06
MarketPlace Flow OceanPy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Code

from ocean_utils.agreements.service_factory import ServiceDescriptor

from ocean_lib.ocean.ocean import Ocean
from ocean_lib.web3_internal.wallet import Wallet
from ocean_lib.ocean.util import to_base_18
from ocean_lib.data_provider.data_service_provider import DataServiceProvider
from dotenv import load_dotenv

Code

ARCHIVE_NODE = "https://..."
INFURA_WS_URL = "wss://"


from web3 import Web3

def init_web3_archive():
@araa47
araa47 / Error.md
Last active September 16, 2020 12:43

Web3 py request

# savings = web3 contract 
filter = savings.events.Deposit.createFilter(fromBlock=10871949)
deposit_events = filter.get_all_entries()

or

Volume Control for Mx Master 3s linux

  1. sudo apt install cmake libevdev-dev libudev-dev libconfig++-dev xbindkeys xautomation
  2. Install https://github.com/PixlOne/logiops
  3. Copy config file into /etc.logid.cfg
  4. Change name in file to "Mx Master 3"
  5. Make custom configs
  6. Create a file called .xbindkeysrc in /home/user/ dir
  7. Paste contents