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

Saturday, September 30, 2017

Safari 11.0: Software Update (Patch)


  • 多くのウェブサイトの音声の自動再生をさせない。
  • リーダーの詳細設定を追加する。
  • コンテンツブロッカーの詳細設定を追加する。
  • ページズームの詳細設定を追加する。
  • オートプレイの詳細設定を追加する。各ウェブサイトごと又は全ウェブサイトに対して設定可能にする。
  • コンタクトカードのオートフィルの精度を向上する。
  • HTMLビデオとオーディオのメディアコントロールをアップデートする。
  • パフォーマンスの向上と効率化をする。

Ivan on Tech: Hacking Bitcoin - Programmer explains

William Patrick Corgan: The Spaniards

Thursday, September 28, 2017

SCP: Sending Image Using Secure Copy

Command:

$ scp ~/Desktop/Pepe.png USERNAME@SERVERNAME:/home/USERNAME
USERNAME@SERVERNAME's password:

Result:

Pepe.png  

Coinhive: Capcha Example: Using PHP

<html>
<head></head>
<body>
<div>
<?php
if(isset($_POST["coinhive-captcha-token"])){
        $token = $_POST["coinhive-captcha-token"];
        $secret = 'bAbbbb5A9AbA0bbbA3bAAbAb8bAbAAAb';
        $url = 'https://api.coinhive.com/token/verify';

        $data = array('token'=> $token,
                      'hashes' => 1024,
                      'secret' => $secret);

        $options = array(
                'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
                'method'  => 'POST',
                'content' => http_build_query($data)
        );
     
        $context  = stream_context_create(array('http' => $options));

        $response = json_decode(file_get_contents($url, false, $context));

        if ($result === FALSE) {
                echo "Error";
                exit;
        }
     
        $responseSuccess = $response->success;
}
?>
<?php if ($responseSuccess){ ?>
Verified<br/>
<?php } else { ?>
You must verify
<form action="?" method="post">
        <!-- other form fields -->

        <script src="https://coinhive.com/lib/captcha.min.js" async></script>
        <div class="coinhive-captcha" data-hashes="1024" data-key="AAAbAA33bAAbAbbAbAA4bA7dA4AAbA7b"></div>

        <input type="submit" value="Submit"/>
</form>
<?php } ?>
</div>
</body>
</html>

Billy Corgan - VANILLA - live from Madame ZuZu's - Sep 16, 2017