Skip to content

Instantly share code, notes, and snippets.

Bakh Domalak domalak

Block or report user

Report or block domalak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View brute2.js
const util = require('ethereumjs-util')
const Wallet = require('ethereumjs-wallet')
const basePrivateKey = '1cd3b30424316919712c483929787eefa0d724a78274a506530dbb26916b1'
const charsMissing = 64 - basePrivateKey.length
const targetPublicAddress = '0xe8Ca70C909905Eccce6a49c34797beF31d895241'
console.log(" \n" +
"searching for address : " + targetPublicAddress + " \n" +
"base private key : " + basePrivateKey + " \n" +
View brute.js
const util = require('ethereumjs-util')
const Wallet = require('ethereumjs-wallet')
var possible = 'abcdef1234567890'
var basePrivateKey = '1cd3b30424316919712c48359829787eefa0d724a78274a506530dbb72'
var charsMissing = 64 - basePrivateKey.length
var targetPublicAddress = '0xe8Ca70C909905Ebbbe6a49c34797beF31d895241'
var missingPart = '';
for (var i = 0; i < charsMissing; i++) {
missingPart = missingPart.concat('f');
View gist:e5c15d6b401450e3ca08
Started PUT "/v1.0/account/tours/20/publish" for 127.0.0.1 at 2015-09-09 20:59:44 +0600
Account Load (1.2ms) SELECT "accounts".* FROM "accounts" INNER JOIN "access_tokens" ON "access_tokens"."account_id" = "accounts"."id" WHERE "accounts"."deleted_at" IS NULL AND "access_tokens"."token" = $1 ORDER BY "accounts"."id" ASC LIMIT 1 [["token", "c6cce271b8c85075d479283a6f74c54911d3861ea5bb19b9bf5988db308d6938"]]
Tour Load (0.6ms) SELECT "tours".* FROM "tours" WHERE "tours"."deleted_at" IS NULL AND "tours"."id" = $1 LIMIT 1 [["id", 20]]
Processing by Accounts::Tours::PublishController#update as HTML
Parameters: {"id"=>"20"}
(0.9ms) BEGIN
SQL (4.1ms) UPDATE "tours" SET "published_at" = $1, "updated_at" = $2 WHERE "tours"."id" = $3 [["published_at", "2015-09-09 14:59:44.537540"], ["updated_at", "2015-09-09 14:59:44.588358"], ["id", 20]]
(0.5ms) COMMIT
SQL (0.6ms) UPDATE "tours" SET "workflow_state" = 'published' WHERE "tours"."id" = $1 [["id", 20]]
Completed 406 Not Acceptable in 72ms
View gist:9ac46ce971ca80c3f62c
irb(main):002:0> User.all.each do |user|
irb(main):003:1* Account.create(name: "user-#{user.email} 1", account_type: "Expense", user: user)
irb(main):004:1> Account.create(name: "user-#{user.email} 2", account_type: "Expense", user: user)
irb(main):005:1> Account.create(name: "user-#{user.email} 3", account_type: "Expense", user: user)
irb(main):006:1> Account.create(name: "user-#{user.email} 4", account_type: "Expense", user: user)
irb(main):007:1> end
User Load (2.3ms) SELECT "users".* FROM "users"
(0.9ms) BEGIN
Invoice Load (1.9ms) SELECT DISTINCT "invoices".* FROM "invoices" INNER JOIN "line_items" ON "line_items"."invoice_id" = "invoices"."id" INNER JOIN "vendors" ON "vendors"."id" = "invoices"."vendor_id" WHERE "invoices"."user_id" = $1 AND (line_items.expense_account_id = NULL OR vendors.expense_account_id = NULL) [["user_id", 2]]
SQL (3.8ms) INSERT INTO "accounts" ("account_type", "created_at", "name", "search_on_qb", "sync_qb", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5
View gist:658ccfe7a8f555a6d234
>> Creating Invoices
...................rake aborted!
TypeError: nil can't be coerced into BigDecimal
/Users/domalak/BillSyncV7/app/models/alerts/calculator.rb:13:in `+'
/Users/domalak/BillSyncV7/app/models/alerts/calculator.rb:13:in `block in sum'
/Users/domalak/BillSyncV7/app/models/alerts/calculator.rb:13:in `each'
/Users/domalak/BillSyncV7/app/models/alerts/calculator.rb:13:in `inject'
/Users/domalak/BillSyncV7/app/models/alerts/calculator.rb:13:in `sum'
/Users/domalak/BillSyncV7/app/models/alerts/calculator.rb:17:in `mean'
/Users/domalak/BillSyncV7/app/models/alerts/calculator.rb:21:in `block in sample_variance'
View gist:dedbfb3e66a598956dd7
>> Creating Invoices
............rake aborted!
NoMethodError: undefined method `vendor' for #<LineItem:0x007f8e7bc59c28>
/usr/local/lib/ruby/gems/2.1.0/gems/activemodel-4.1.1/lib/active_model/attribute_methods.rb:435:in `method_missing'
/usr/local/lib/ruby/gems/2.1.0/gems/activerecord-4.1.1/lib/active_record/attribute_methods.rb:206:in `method_missing'
/Users/domalak/BillSyncV7/app/models/alerts/alert_creator.rb:43:in `new_line_item_text'
/Users/domalak/BillSyncV7/app/models/alerts/alert_creator.rb:15:in `set_texts'
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:424:in `block in make_lambda'
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:160:in `call'
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:160:in `block in halting'
View gist:b2155efc2f34f75b94b4
>> Creating Invoices
............rake aborted!
ActiveRecord::StatementInvalid: PG::DatatypeMismatch: ERROR: argument of AND must be type boolean, not type record
LINE 1: ...'Un accounted for line items' or code = NULL) AND (invoices....
^
: SELECT COUNT(*) FROM "line_items" INNER JOIN "invoices" ON "invoices"."id" = "line_items"."invoice_id" WHERE "line_items"."id" = 12 AND (description = 'Un accounted for line items' or code = NULL) AND (invoices.vendor_id = 1, invoices.status != 11)
/usr/local/lib/ruby/gems/2.1.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/postgresql_adapter.rb:815:in `async_exec'
/usr/local/lib/ruby/gems/2.1.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/postgresql_adapter.rb:815:in `block in exec_no_cache'
/usr/local/lib/ruby/gems/2.1.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract_adapter.rb:373:in `block in log'
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.1
You can’t perform that action at this time.