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
@kesar
kesar / jshint-config.json
Created September 1, 2014 13:14
jshint config
{
"forin": true,
"devel": false,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"latedef": true,
"noarg": true,
"undef": true,
"unused": true,
@kesar
kesar / jshint-config.json
Created October 3, 2014 16:48
jshint-config.json
{
"forin": true,
"devel": false,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"latedef": true,
"noarg": true,
"undef": true,
"unused": true,
@kesar
kesar / ruleset.xml
Last active August 29, 2015 14:07
PHPCS Standard Dealdash
<?xml version="1.0"?>
<ruleset name="Dealdash">
<description>Dealdash coding standard.</description>
<!-- 2. General -->
<!-- 2.1 Basic Coding Standard -->
<!-- Include the whole PSR-1 standard -->
<rule ref="PSR1"/>
@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)
#!/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
// 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
{
"4": "Afghanistan",
"8": "Albania",
"10": "Antarctica",
"12": "Algeria",
"16": "American Samoa",
"20": "Andorra",
"24": "Angola",
"28": "Antigua and Barbuda",
"31": "Azerbaijan",
{
"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,
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
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