Skip to content

Instantly share code, notes, and snippets.

View cookie-ag's full-sized avatar

Cookie AG cookie-ag

View GitHub Profile
brew install pyenv

pyenv install --list

pyenv install 3.12.6

pyenv versions

pyenv global 3.12.6
@cookie-ag
cookie-ag / eos-dish2018-dev-setup-101
Last active November 23, 2018 20:36
DISH 2018 - Setup and general queries
1. Get yourself a docker
https://www.docker.com/get-started
2. Create a local working directory
mkdir contracts
3. Download eos docker image
@cookie-ag
cookie-ag / docker-node-ubuntu.txt
Last active November 8, 2018 15:42
Run Ubuntu Container - Node
docker network create nodenet
docker run --name ubuntunode8 -d -p 3000:3000 --network nodenet -v C:\ubuntunode\home:/home ubuntu /bin/bash
@cookie-ag
cookie-ag / deferred.txt
Last active July 23, 2018 09:34
Communication Models
-----------------------------
test.hpp
-----------------------------
#ifndef TEST_HPP
#define TEST_HPP
#include <eosiolib/asset.hpp>
#include <eosiolib/eosio.hpp>
#include <eosiolib/transaction.hpp>
@cookie-ag
cookie-ag / 01-docker101.txt
Last active November 8, 2018 15:30
EOSIO Setup for development (OSX)
(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
@cookie-ag
cookie-ag / instructions.txt
Created January 31, 2018 05:59
Install MongoDB on Windows 10
- Download latest community version: https://www.mongodb.com/download-center#community
- 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
@cookie-ag
cookie-ag / operations.txt
Created December 18, 2017 07:16
Common Linux Commands
# 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
@cookie-ag
cookie-ag / Info.txt
Last active December 8, 2017 08:57
Linux System Resources (RedHAT)
# 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
@cookie-ag
cookie-ag / errors.text
Created December 7, 2017 09:06
npm errors (documented)
(a) TypeError: Cannot read property '0' of undefined
Solution:
```
npm install [email protected] -g
npm cache clean --force
npm install
```
@cookie-ag
cookie-ag / app.js
Created November 17, 2017 10:47
Multiple Requests (Promisified)
var __request = require('./logic.js').__request;
var urls = ["http://www.example.com/firts", "http://www.example.com/second", "http://www.example.com/third"];
__request(urls, 'GET', false);