Skip to content

Instantly share code, notes, and snippets.

View jyeshe's full-sized avatar

Rogerio Pontual jyeshe

View GitHub Profile
@jyeshe
jyeshe / rocksdb-install.sh
Created January 29, 2023 19:44 — forked from srimaln91/rocksdb-install.sh
Install RocksDB on Ubuntu 20.04 (Focal Fossa)
#!/bin/bash
ROCKSDB_VERSION=5.11.3
#Run as a root user
if [ "$EUID" -ne 0 ]
then echo "Please run as root (with sudo command)"
exit
fi
@jyeshe
jyeshe / gist:d16d4fc3ea0b5e850cb8d5e216772e2f
Created August 3, 2022 08:46 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@jyeshe
jyeshe / cache_txs.ex
Last active December 1, 2021 16:02
cache_txs.ex
defmodule CacheTxs do
alias AeMdw.Db.Model
# import AeMdw.Db.Util, only: [read_block!: 1]
require Model
def read_txs(%Range{first: _from_height, last: _to_height} = range) do
range
|> Enum.map(fn height ->
# IO.inspect Model.block(read_block!({height, -1}), :hash)
{_key_block, micro_blocks} = AeMdw.Node.Db.get_blocks(height)
defmodule FindActiveOracle do
alias AeMdw.Db.Model
import AeMdw.Db.Util, only: [read_block!: 1]
require Model
def list_txs(from_height, pubkey, max_height \\ 206_911) do
IO.inspect(pubkey)
IO.inspect(:aeser_api_encoder.encode(:oracle_pubkey, pubkey))
Enum.each(from_height..max_height, fn height ->
defmodule AeMdwWeb.DryRun.Runner do
@moduledoc """
Simulates transactions with dry run.
"""
alias AeMdw.Node.Db, as: DBN
# alias AeMdw.DryRun.Contract
alias AeMdw.DryRun.Runner.Contract
defmodule Contract do