Skip to content

Instantly share code, notes, and snippets.

View kesar's full-sized avatar
🎩
Fixing the world

César Rodríguez kesar

🎩
Fixing the world
View GitHub Profile
FROM ubuntu:18.04
ARG release=latest
ARG eosbranch=v1.6.4
ARG eoscdtbranch=v1.6.1
ARG token=EOS
ENV OPENSSL_ROOT_DIR /usr/include/openssl
RUN apt-get update -y \
#pragma once
#include <eosiolib/eosio.hpp>
#include <eosiolib/transaction.hpp>
namespace nebula
{
using eosio::name;
using std::string;
/**
* @file
* @copyright defined in eos/LICENSE.txt
*/
#include <nebula.stress/nebula.stress.hpp>
namespace nebula {
void stress::defer(uint32_t amount) {
git clone https://github.com/NebulaProtocol/eos.git --recursive
cd eos
git checkout sql_plugin
git submodule update --init --recursive
apt-get update
apt-get install mysql-server libsoci-dev
./eosio_build.sh -s EOS
cd build
make install
producer version cant
eosio 0 12149
genesisblock 1 727301
eosliquideos 2 2184
eoscanadacom 2 2564
eosdacserver 2 2569
eoshuobipool 2 2604
eosriobrazil 2 2604
eosiomeetone 2 2604
eosstorebest 2 2604
{
"initial_timestamp": "2018-06-08T08:08:08.888",
"initial_key": "EOS7EarnUhcyYqmdnPon8rm7mBCTnBoot6o7fE2WzjvEX2TdggbL3",
"initial_configuration": {
"max_block_net_usage": 1048576,
"target_block_net_usage_pct": 1000,
"max_transaction_net_usage": 524288,
"base_per_transaction_net_usage": 12,
"net_usage_leeway": 500,
"context_free_discount_net_usage_num": 20,
{
"4": "Afghanistan",
"8": "Albania",
"10": "Antarctica",
"12": "Algeria",
"16": "American Samoa",
"20": "Andorra",
"24": "Angola",
"28": "Antigua and Barbuda",
"31": "Azerbaijan",
// data-dir/config.ini
get-transactions-time-limit = 3
block-log-dir = "blocks"
max-reversible-block-time = -1
max-pending-transaction-time = -1
faucet-create-interval-ms = 1000
faucet-name = faucet
faucet-private-key = ["EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]
http-server-address = 127.0.0.1:8888
#!/bin/bash
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo sysctl vm.swappiness=10
sudo sysctl vm.vfs_cache_pressure=50
git clone https://github.com/eosio/eos --recursive
cd eos
# git checkout dawn-2.x
@kesar
kesar / builder.swift
Created July 23, 2015 11:46
builder swift
// Api.swift
Api().getFeedItems { (FeedItems) -> () in
// do something with [FeedItem]
}
// inside of getFeedItems
FeedItem = FeedItemFactory.FeedItemFromJSON(feedItemJSON)