Skip to content

Instantly share code, notes, and snippets.

View hosseinnedaee's full-sized avatar
🏠
Working from home

Hossein Nedaee hosseinnedaee

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am hosseinnedaee on github.
  • I am hosseinnedaee (https://keybase.io/hosseinnedaee) on keybase.
  • I have a public key ASDEYm7lDIK-am2taPKLtOZTSi0DPRRWi-4Q-NlU0oDaigo

To claim this, I am signing this object:

@hosseinnedaee
hosseinnedaee / createLowLevelCalldata.md
Last active January 24, 2023 13:09
5 different ways to create calldata for low-level calls

5 different ways to create calldata for low-level calls

inspired by jeancvllr article

// SPDX-LICENSE: UNLICENSED
pragma solidity ^0.8.0;

contract DeployedContract {
    uint public result = 0;
@hosseinnedaee
hosseinnedaee / theGraphNode.md
Last active August 6, 2022 07:26
A step by step guide to run a graph node

Run Graph Node :)

An step by step guide.

1. First clone graph-node from this [repo][graphnoderepo].

go to the docker directory and run setup.sh. it will replace host.docker.internal in the docker-compose.yaml with the docker host ip address.

here also you need to change ethereum in graph-node environment based on node you are going to connect:

@hosseinnedaee
hosseinnedaee / glob-sub-directories.php
Last active July 6, 2021 06:09
PHP Glob sub-folders with pattern
<?php
/*
* reference: https://stackoverflow.com/a/54324543/5077529
*/
// This example allows 0-3 arbitrary subfolders:
glob("$root/{,*/,*/*/,*/*/*/}test_*.zip", GLOB_BRACE);
// Or for multiple file types(for example .pdf,.mp4 and .mp3):