brew install pyenv
pyenv install --list
pyenv install 3.12.6
pyenv versions
pyenv global 3.12.6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Get yourself a docker | |
https://www.docker.com/get-started | |
2. Create a local working directory | |
mkdir contracts | |
3. Download eos docker image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker network create nodenet | |
docker run --name ubuntunode8 -d -p 3000:3000 --network nodenet -v C:\ubuntunode\home:/home ubuntu /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------------- | |
test.hpp | |
----------------------------- | |
#ifndef TEST_HPP | |
#define TEST_HPP | |
#include <eosiolib/asset.hpp> | |
#include <eosiolib/eosio.hpp> | |
#include <eosiolib/transaction.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(a) TypeError: Cannot read property '0' of undefined | |
Solution: | |
``` | |
npm install [email protected] -g | |
npm cache clean --force | |
npm install | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
NewerOlder