Skip to content

Instantly share code, notes, and snippets.

# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip
# Unzip
unzip protoc-3.2.0-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/

When you begin working on a feature

Step 1: Update the main branch

   git checkout master
   git pull origin master

Step 2: Create a feature branch off of the main branch

(ns sawtooth-signing
(:import org.bitcoinj.core.ECKey
org.bitcoinj.core.DumpedPrivateKey
org.bitcoinj.core.Sha256Hash
org.bitcoinj.core.Utils
org.bitcoinj.params.MainNetParams))
(def ^{:doc "generates an in-memory priv key representation from the .wif"}
wif->key
(let [MAINNET (MainNetParams/get)]
cloud-user@hyperledger5:~/go/src/github.com/hyperledger/fabric$ make peer
Building docker base-image
Error: No such image or container: hyperledger/fabric-baseimage:x86_64-0.0.10
BUILD-CACHE: Pulling "hyperledger/fabric-baseimage:x86_64-0.0.10" from dockerhub..
x86_64-0.0.10: Pulling from hyperledger/fabric-baseimage
cea86fd90f0b: Already exists
b122d4ef87dc: Already exists
3fef90246eb1: Already exists
0e23078ccd33: Already exists
5513002504a5: Already exists
@nikileshsa
nikileshsa / Slack Notes discoveries.txt
Created August 22, 2016 20:11
Hyperledger 22- august 2016
Fabric Documentation
http://cbf-fabric-docs.readthedocs.io/en/latest/search.html?q=vagrant
Python virtual environment setup
http://stackoverflow.com/questions/5506110/is-it-possible-to-install-another-version-of-python-to-virtualenv
Chaincode checklist
@nikileshsa
nikileshsa / gist:357249ffb128d981b9f2
Created March 20, 2015 19:32
Rerun failed cucumber scenarios
<%
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
%>
<% standart_opts = "--format html --out report.html --format rerun --out rerun.txt --no-source --format pretty --require features --tags ~@wip" %>
default: <%= standart_opts %> --no-source --format pretty --require features
rerun: <%= rerun_opts %> --format junit --out junit_format_rerun --format html --out rerun.html --format rerun --out rerun.txt --no-source --require features
@nikileshsa
nikileshsa / gist:4e48990522cbf7e305fc
Created November 7, 2014 18:04
Ruby Practice sites
http://www.codewars.com/
@nikileshsa
nikileshsa / gist:33a13f9023378b82e5b0
Created September 9, 2014 13:15
Remote desktop full screen mode not going full screen
http://social.technet.microsoft.com/Forums/windows/en-US/04717e71-b365-4ffb-9155-ee2670831175/remote-desktop-full-screen-mode-not-going-full-screen?forum=w7itproinstall
@nikileshsa
nikileshsa / gist:6468802
Created September 6, 2013 19:33
Selenium::WebDriver::Error::UnhandledAlertError: Modal dialog present
C:\jruby-1.6.8\bin\jruby.exe --1.8 -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:\jruby-1.6.8\bin/cucumber "C:/Documents and Settings/troxelj/ClearCaseViews/KN_Dec2013_Devl_3/ppa_test_scripts/acceptance/features/ik/ik_ISB model.feature" --format Teamcity::Cucumber::Formatter --expand --name "Case has a model changed for notification" --color -r features
Testing started at 3:29 PM ...
Connected to test1
C:/Documents and Settings/troxelj/ClearCaseViews/KN_Dec2013_Devl_3/ppa_test_scripts/acceptance/features/support/screen_classes/ik_screen_classes/ik_automated_case_conversion.rb:272 warning: don't put space before argument parentheses
C:/Documents and Settings/troxelj/ClearCaseViews/KN_Dec2013_Devl_3/ppa_test_scripts/acceptance/features/support/screen_classes/ik_screen_classes/ik_automated_case_conversion.rb:280 warning: don't put space before argument parentheses
[info] Windows utilities loaded.
Tag: @@ISB
And I check the models under a certain case <case> # f