Skip to content

Instantly share code, notes, and snippets.

@rromanchuk
rromanchuk / bitcoin.conf
Last active November 12, 2015 00:55
BIP101 Testnet
maxconnections=120
minrelaytxfee=0
testnet=1
dbcache=200 #for a 2 GB server
# dbcache=1000 #for a 4 GB server
# Only relevant for those running jtoomim's eviction branch
# maxmempoolbytes=400000000
var async = require('async')
var bitcoind = require("bitcoin")
var batch = [];
var addresses = []
var client = new bitcoind.Client({
host: 'localhost',
port: 9999,
@rromanchuk
rromanchuk / bitwalletrecover.py
Created December 19, 2017 21:16 — forked from msm595/bitwalletrecover.py
bitwalletrecover.py - recover compressed private keys from your bitcoin wallet. Requires python3, pycoin (https://pypi.python.org/pypi/pycoin), and base58 (https://pypi.python.org/pypi/base58).
import re
import hashlib
import base58
from pycoin.ecdsa import generator_secp256k1, public_pair_for_secret_exponent
def bytetohex(byteStr):
return ''.join( [ "%02X" % x for x in byteStr ] ).strip()
litecoin = [b"\x30", b"\xb0"]
bitcoin = [b"\x00", b"\x80"]
// https://stackoverflow.com/questions/49771555/firebase-auth-error-data-parameter-is-nil-calling-getidtokenforcingrefresh
// https://github.com/firebase/firebase-ios-sdk/issues/1072
// https://github.com/firebase/firebase-ios-sdk/issues/1140
func applicationDidBecomeActive(_ application: UIApplication) {
if let currentUser = Auth.auth().currentUser {
currentUser.getIDToken { (token, error) in
}
}
@rromanchuk
rromanchuk / after-cleanup-tasks.yml
Created July 22, 2018 01:06
Rollbar deployment with ansistrano and rollbar_deployment ansible module
- name: "Rollbar deployment notification"
rollbar_deployment:
token: "{{rollbar_token}}"
environment: production
revision: "{{ ansistrano_git_result.after }}"
user: "" # Somehow pull this from ansible awx/tower that launched the job?
rollbar_user: ""
comment: "" # hmmm maybe save result of the git log command?
@rromanchuk
rromanchuk / protocol.rb
Last active January 29, 2019 17:19
Ruby 2.6.0 monkey patch for regression in Net::HTTP::Post.new
# frozen_string_literal: true
#
# = net/protocol.rb
#
#--
# Copyright (c) 1999-2004 Yukihiro Matsumoto
# Copyright (c) 1999-2004 Minero Aoki
#
# written and maintained by Minero Aoki <[email protected]>
#
@rromanchuk
rromanchuk / after-cleanup-tasks.yml
Created February 8, 2019 00:20
Example ansible deploy with webpacker
- name: Bundle install with --deploy
bundler:
state: present
deployment_mode: yes
chdir: "{{ ansistrano_release_path.stdout }}"
executable: /home/ubuntu/.rbenv/shims/bundle
- name: Running pending migrations
shell: $HOME/.rbenv/bin/rbenv exec bundle exec rake db:migrate
run_once: true
@rromanchuk
rromanchuk / .ruby-version
Created February 18, 2019 06:12
chruby: unknown Ruby: ruby-2.6.1
2.6.1
fdfs
@rromanchuk
rromanchuk / gist:7bfa5b9446467db3b933347a685db9ee
Last active November 10, 2019 06:00
X-Plane 11 mac.xpl catalina fix
xattr -d com.apple.quarantine [install dir]/X-Plane\ 11/Resources/plugins/PilotEdge/