Wednesday, October 25, 2017

find (Unix): Finding Directory Name

Command:

# find / -name "libexec" -type d


Result:

/usr/libexec
/usr/local/libexec

Tuesday, October 17, 2017

Monday, October 16, 2017

Friday, October 6, 2017

Wednesday, October 4, 2017

Ethereum Ropsten Faucet

Command:

$ wget http://faucet.ropsten.be:3001/donate/YOUR_ROPSTEN_ETHEREUM_ADDRESS


Result:

--2017-10-04 22:59:30--  http://faucet.ropsten.be:3001/donate/YOUR_ROPSTEN_ETHEREUM_ADDRESS
Resolving faucet.ropsten.be... 109.123.70.141
Connecting to faucet.ropsten.be|109.123.70.141|:3001... connected.
HTTP request sent, awaiting response... 200 OK
Length: 106 [application/json]
Saving to: ‘YOUR_ROPSTEN_ETHEREUM_ADDRESS’

YOUR_ROPSTEN_ETHEREUM_ADDRESS 100%[===============================================================================>]     106  --.-KB/s    in 0s    

2017-10-04 22:59:31 (9.19 MB/s) - ‘YOUR_ROPSTEN_ETHEREUM_ADDRESS’ saved [106/106]

Monday, October 2, 2017

Solidity: Installation

Command:

$ npm install -g solc


Result:

/usr/local/bin/solcjs -> /usr/local/lib/node_modules/solc/solcjs
solc@0.4.17 /usr/local/lib/node_modules/solc
├── memorystream@0.3.1
├── require-from-string@1.2.1
├── semver@5.4.1
├── fs-extra@0.30.0 (path-is-absolute@1.0.1, jsonfile@2.4.0, klaw@1.3.1, graceful-fs@4.1.11, rimraf@2.6.2)
└── yargs@4.8.1 (get-caller-file@1.0.2, decamelize@1.2.0, y18n@3.2.1, which-module@1.0.0, set-blocking@2.0.0, lodash.assign@4.2.0, window-size@0.2.0, require-main-filename@1.0.1, require-directory@2.1.1, yargs-parser@2.4.1, os-locale@1.4.0, string-width@1.0.2, cliui@3.2.0, read-pkg-up@1.0.1)

Sunday, October 1, 2017

Ethereum DApp (Distributed Application) Meteor Boilerplate

Command:

$ git clone https://github.com/SilentCicero/meteor-dapp-boilerplate.git


Result:

Cloning into 'meteor-dapp-boilerplate'...
remote: Counting objects: 735, done.
remote: Total 735 (delta 0), reused 0 (delta 0), pack-reused 735
Receiving objects: 100% (735/735), 2.84 MiB | 1.45 MiB/s, done.
Resolving deltas: 100% (260/260), done.


Command:

$ cd meteor-dapp-boilerplate/app/
$ meteor


Result:

[[[[[ ~/meteor-dapp-boilerplate/app ]]]]]                                          

=> Started proxy.                             
                                              
=> Meteor 1.3: ES2015 modules, npm integration, app testing, mobile
improvements, and more.

This release is being downloaded in the background. Update your app to
Meteor 1.3 by running 'meteor update'.
                                              
=> Started MongoDB.                           
=> Started your app.                          

=> App running at: http://localhost:3000/
I20171001-01:34:11.597(9)? [velocity] mocha is starting a mirror at http://localhost:61074/.
I20171001-01:34:11.598(9)? [velocity] *** Meteor Tools is installing *** 
I20171001-01:34:11.598(9)? This takes a few minutes the first time.
I20171001-01:34:11.598(9)? [velocity] You can see the mirror logs at: tail -f /Users/USERNAME/meteor-dapp-boilerplate/app/.meteor/local/log/mocha.log


Reference:

https://qiita.com/mukoya/items/5d751dc01ea4a45dc850

Meteor (web framework): Installation

Command:

$ curl https://install.meteor.com/ | sh


Result:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7786    0  7786    0     0   8708      0 --:--:-- --:--:-- --:--:--  8699
Downloading Meteor distribution
######################################################################## 100.0%

Meteor 1.5.2.1 has been installed in your home directory (~/.meteor).
Writing a launcher script to /usr/local/bin/meteor for your convenience.

To get started fast:

  $ meteor create ~/my_cool_app
  $ cd ~/my_cool_app
  $ meteor

Or see the docs at:

  docs.meteor.com