Skip to content

Instantly share code, notes, and snippets.

View troggy's full-sized avatar

Kosta Korenkov troggy

View GitHub Profile
0xb938282d54Aa89Fceb0BAfA59E122fbc9ad82385
0x6Cb117a635dc7633B42089C607FDFc5c60b7d679
0x6Cb117a635dc7633B42089C607FDFc5c60b7d679

Keybase proof

I hereby claim:

  • I am troggy on github.
  • I am troggy (https://keybase.io/troggy) on keybase.
  • I have a public key whose fingerprint is 31B2 28A8 5FE3 066B 8A4E 2EF3 C0D0 C3FE 893E ACCF

To claim this, I am signing this object:

@troggy
troggy / gist:472f6a3e7da88a97de94
Last active January 8, 2016 18:36
Cryptoreal copay
# Install BWS and dependecies
git clone https://github.com/troggy/bitcore-wallet-service -b colu cryptoreal-bws && cd cryptoreal-bws/ && npm i && cd -
# Run BWS
cd cryptoreal-bws && npm start && cd -
# Install Copay and dependencies
git clone https://github.com/troggy/copay -b cryptoreal cryptoreal-copay && cd cryptoreal-copay/ && npm i && bower install && cd -
@troggy
troggy / gist:6d70f5f6fc02e53b9447
Created December 9, 2014 12:56
Dump AWS configuration to Java-compatible properties string. Execute in your browser's developer console on the EBS configuration page
jQuery.map(jQuery.find("input[ng-model='property.value'].ng-pristine").filter(function(e) { return jQuery(e).val() != ''; }), function(e) { return "-D" + jQuery(e).parents("td:first").prev().text().trim() + '="' + jQuery(e).val() + '"'; }).join(" ");
@troggy
troggy / tn-scroll-top.js
Created October 27, 2014 05:41
Angular scrollTop directive
angular.module('webApp')
.directive('tnScrollTop', ['$window', function($window){
return {
restrict: 'A',
link: function(scope, elem, attr, ctrl) {
var windowEl = angular.element($window);
var handler = function() {
scope.scrollTop = windowEl.scrollTop();
};
windowEl.on('scroll', scope.$apply.bind(scope, handler));
@troggy
troggy / gist:eb5f80e84ac3f8a2c85d
Created June 24, 2014 21:39
Testing bitcoinj P2SH support with WalletTool
# Create first wallet
$ wallet-tool --wallet=first --net=REGTEST create --seed="7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f"
# Create second wallet
$ wallet-tool --wallet=second --net=REGTEST create --seed="7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f00"
# Get xpub of the second wallet
$ wallet-tool --wallet=second --net=REGTEST dump
...omitted...