Skip to content

Instantly share code, notes, and snippets.


Gautam Anand serganus

View GitHub Profile
serganus / eos-dish2018-dev-setup-101
Last active Nov 23, 2018
DISH 2018 - Setup and general queries
View eos-dish2018-dev-setup-101
1. Get yourself a docker
2. Create a local working directory
mkdir contracts
3. Download eos docker image
serganus / docker-node-ubuntu.txt
Last active Nov 8, 2018
Run Ubuntu Container - Node
View docker-node-ubuntu.txt
docker network create nodenet
docker run --name ubuntunode8 -d -p 3000:3000 --network nodenet -v C:\ubuntunode\home:/home ubuntu /bin/bash
serganus / deferred.txt
Last active Jul 23, 2018
Communication Models
View deferred.txt
#ifndef TEST_HPP
#define TEST_HPP
#include <eosiolib/asset.hpp>
#include <eosiolib/eosio.hpp>
#include <eosiolib/transaction.hpp>
serganus / 01-docker101.txt
Last active Nov 8, 2018
EOSIO Setup for development (OSX)
View 01-docker101.txt
(a) Show images
docker image ls
(b) Show containers
docker container ls
(c) Access docker bash for a container
docker exec -it $CONTAINERID /bin/bash
(c) More
serganus / instructions.txt
Created Jan 31, 2018
Install MongoDB on Windows 10
View instructions.txt
- Download latest community version:
- create two folders: D:\data\db and D:\data\log
- create a configuration file: attached below
- Install windows service: /path/to/mongod.exe --config "D:\data\mongod.cfg" --install
- Start service: net start MongoDB
- Stop service: net stop MongoDB
- Remove windows service: /path/to/mongod.exe --remove
serganus / operations.txt
Created Dec 18, 2017
Common Linux Commands
View operations.txt
# Copy using progress bar
sudo apt-get install pv
pv my_big_file > backup/my_big_file
#Copy using file status
rsync -ah --progress source-file destination
serganus / Info.txt
Last active Dec 8, 2017
Linux System Resources (RedHAT)
View Info.txt
# Processor Model name
cat /proc/cpuinfo | grep 'model name' | uniq
# Total physical processor sockets in your machine
grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l
# Total RAM
cat /proc/meminfo | grep MemTotal
# Total Disk space
serganus / errors.text
Created Dec 7, 2017
npm errors (documented)
View errors.text
(a) TypeError: Cannot read property '0' of undefined
npm install npm@5.2.0 -g
npm cache clean --force
npm install
serganus / app.js
Created Nov 17, 2017
Multiple Requests (Promisified)
View app.js
var __request = require('./logic.js').__request;
var urls = ["", "", ""];
__request(urls, 'GET', false);
serganus / Install node using nvm
Created Nov 16, 2017
Install / Uninstall Node on OSX
View Install node using nvm
curl -o- | sudo bash
nvm install node
nvm run node --version