- Documentation site: https://cloud.ibm.com/docs/blockchain-sw-252
- Check How to / Install on the OpenShift Container Platform / Deployment options / Deploy IBM Blockchain Platform 2.5.2 manually
- Check Tutorials / Getting Started / Build a network
 
  
    
      This file contains hidden or 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
    
  
  
    
  | local function copy_table(obj, seen) | |
| if type(obj) ~= 'table' then | |
| return obj | |
| end | |
| if seen and seen[obj] then | |
| return seen[obj] | |
| end | 
How to access IBM Cloud Object Storage, COS, using s3fs.
- CentOS:
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/bin/sh | |
| pacman -S snapd docker git code | |
| # enable docker as a service | |
| sudo systemctl enable docker | |
| sudo systemctl status docker | |
| # add me to the docker group | |
| sudo usermod -aG docker $USER | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # String to number testing | |
| # Converting a string to a int64 number | |
| # This method converts a string's first 10 characters to int64 number. It is a base27 number that | |
| # 1. Convert the string to lowercase | |
| # 2. map a=>1, b=>2, ..., z=>26, and anything else to 0 | |
| # 3. if it is not the 10's character, the method multiple its result by 27 and read the next character | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/usr/bin/python | |
| import sys, os | |
| # from sets import Set | |
| import hashlib | |
| HASH_TBD = "?" | |
| def hashfile( filepath ): | |
| BLOCKSIZE = 65536 | 
Use LxRunOffline to install multiple Linux instances on Windows.
I used Chocolatey to install LxRunOffline
  
    
      This file contains hidden or 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
    
  
  
    
  | // Put this file as /etc/docker/daemon.json | |
| // data-root to change where docker store data. Default /var/lib/docker | |
| // storage-opt dm.basesize to change the container size. Default 10G | |
| { | |
| "debug": false, | |
| "data-root": "/datahome/docker", | |
| "storage-opt": [ | |
| {"dm.basesize": "20G"} | |
| ] | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // --host=0.0.0.0 to bind to all interfaces | |
| // --disable-host-check to avoid container refusing connection through host (url is for the host) | |
| ng serve --host=0.0.0.0 --disable-host-check --proxy-config proxy.config.json | 
NewerOlder