Skip to content

Instantly share code, notes, and snippets.

View sadovyiov's full-sized avatar

Oleksandr Sadovyi sadovyiov

View GitHub Profile
@sadovyiov
sadovyiov / deploy.sh
Created August 29, 2023 18:59 — forked from stancl/deploy.sh
Deploy using GitHub actions and SSH to a VPS
#!/bin/sh
set -e
vendor/bin/phpunit
npm run prod
git add .
(git commit -m "Build frontend assets for deployment to production") || true
(git push) || true
@sadovyiov
sadovyiov / parseTransaction.go
Created August 21, 2023 20:40 — forked from crazygit/parseTransaction.go
Parse Ethereum Transaction, Decode input data, Decode output data
package main
import (
"context"
"encoding/hex"
"fmt"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient"