Skip to content

Instantly share code, notes, and snippets.

View gubatron's full-sized avatar

Angel Leon gubatron

View GitHub Profile
@gubatron
gubatron / gist:5fb3ec87fbbb4745a6a6
Created September 24, 2014 05:30
gource invocation example
gource -2048x1152 --start-date 2014-08-17 --stop-date 2014-09-22 --colour-images --user-image-dir .git/avatar/
@gubatron
gubatron / frostwire-5.7.7-macosx-releasecandidate.md
Created October 2, 2014 01:50
FrostWire 5.7.7 release candidate for MacOSX

Download FrostWire 5.7.7 for Mac OSX now, give it a spin, lots of bug fixes and updates. http://dl.frostwire.com/frostwire/5.7.7/frostwire-5.7.7.dmg

frostwire (5.7.7) stable; urgency=high
  * New: VPN connection status indicator.
  * New: Stop media playback by long pressing play/pause button.
  * Fix: Freeze when opening FrostWire from the first time out of
    clicking on a magnet link or .torrent file.
  * Fix: Bug where files couldn't be played with the main player button.
@gubatron
gubatron / running-openbazaar-from-source-in-windows-8.md
Last active August 29, 2015 14:07
Running OpenBazaar from Source in Windows 8

Author: Angel Leon (@gubatron)

For this guide, you will need the Windows Power shell. I've not had the chance to test this on Windows 7, but perhaps these instructions might work there.

  1. Open the Windows Powershell
  2. Enable unrestricted execution policies on your Powershell

set-executionpolicy unrestricted -s cu

  1. Install scoop[1]
@gubatron
gubatron / bitcoin-freeze-attack.md
Last active August 29, 2015 14:07
The Bitcoin Freeze on Transaction Attack (FRONT)

The Bitcoin Freeze on Transaction Attack (FRONT)

  • By Sergio Lerner Sun, Oct 5, 2014 at 7:00 PM

I would like to share with you a vulnerability in the Bitcoin protocol I've been thinking of which might have impact on the future of Bitcoin. Please criticize it!

The Freeze on Transaction Problem

The freeze problem occurs if someone publishes a transaction with fees much higher than the block subsidy. I don’t remember who described the attack first. Suppose that, by mistake, a transaction is published with 50 BTC in fees. The transaction is included in a block at height n. If everyone acts rationally in his own interest, then the best choice for the remaining miners is to try to mine a competing block at the same height n including the high-fee transaction, to collect the fee for themselves. All the miners having solved the block at height n, now move on mining at height (n+1). But they won’t choose each other branches until one branch is sufficiently longer so that it is better to switch to it and aband

@gubatron
gubatron / fwpull.md
Last active August 29, 2015 14:07
fwpull - script to pull the latest changes from all frostwire repositories

add this somewhere on your .bash_profile (or .bashrc if on ubuntu) and make sure to adjust the PARENT_DIR variable to your local environment.

function fwpull {
  PARENT_DIR=~/workspace.frostwire

  for f in $PARENT_DIR/frostwire-common	$PARENT_DIR/frostwire-jlibtorrent $PARENT_DIR/frostwire-desktop	$PARENT_DIR/frostwire-android; do
      if [ -d "$f" ]; then
      	  pushd	$f
 git pull
@gubatron
gubatron / surbitcoin.md
Last active August 29, 2015 14:07
My opinion on SurBitcoin: I hope they stir the shit out of the media in Venezuela to bring Bitcoin awareness.

So, I understand my fellow venezuelans are in NYC, and they're using a new opensource exchange software that seems to be written in Python and still in its infancy called BlinkTrade (just 5 committers, written in Python)

Hopefully with the low transactional volumes they have they won't have to start the rewrite anytime soon. Writing a true exchange requires in my opinion technology that allows for low latency transactions (Java/C++/specialized hardware to process a large amount of orders per second reliably, and that's just the tech side)

So let's suppose they get the capital to have the tech side solved, this part is doable, and I hope they can do it, for Venezuelans actually need this. The huge problem I see, and why I didn't even think of starting an exchange in Venezuela is the part of where you hold the Venezuelan FIAT.

The Venezuelan government is extremely controlling of anything related to money supply. I think in a way they'll both hurt and help Bitcoin in

@gubatron
gubatron / elections_using_bitcoin_backend.md
Last active August 29, 2015 14:07
Elections using Bitcoins
  1. generate N random wallets private keys and deposit 1 colored satoshi into each wallet.

  2. Print the wallets. Put each wallet in a certified and sealed envelopes.

  3. Have voters come to vote registration place, once identity is verified and that the voter hasn't come already to pick his wallet, voter gets to pick wallet out of a huge pile, thus hiding the identity of the voter. Voter ID number is registered into system so that it can't pick another envelope later. Finger gets marked with very hard to delete ink as extra measure of security.

  4. Voter sends colored satoshi to candidate of preference by using voting machine high level interface (you pick candidate, then it asks you to present private key of wallet to send bitcoin), voting machine never asks for identity of voter. Voter never knows address to where colored satoshi was sent. this way the election cannot be monitored in real time by the media, as partial results might affect the election outcome.

  5. on the way out official which does not know

@gubatron
gubatron / howto-build-jlibtorrent.md
Last active August 29, 2015 14:07
How to build jlibtorrent for MacOSX
  1. Make sure g++ points to clang++

  2. Download the latest boost library (this works for Boost 1.56)

  3. If you look at build/build_macosx.sh in frostwire-jlibtorrent, you will see a few lines commented. They are steps that should be taken only once, we're taking those now.

Set the following environment variables.

$BOOST_ROOT <- The source folder from the boost libraries you downloaded.

@gubatron
gubatron / gist:7b901602ba8c704b08de
Created November 8, 2014 18:05
prospector - strictness: high on OpenBazaar as of November 8th 2014
Check Information
=================
Started: 2014-11-08 13:03:50.203292
Finished: 2014-11-08 13:04:05.759145
Time Taken: 15.56 seconds
Formatter: text
Strictness: high
Libraries Used:
Tools Run: dodgy, frosted, mccabe, pep8, pyflakes, pylint
Adaptors: common-plugin, profiles:strictness_high,no_doc_warnings,no_test_warnings
@gubatron
gubatron / gist:a78b52f6a52152b21ed7
Created November 9, 2014 20:16
Angel Leon - openbazaar.org GPG public key fingerprint
pub 2048R/F0AEA2B7 2014-11-09
Key fingerprint = 9D20 B6B3 E01A 3799 BAD0 4FD2 7F10 FA49 F0AE A2B7
uid Angel Leon <gubatron@openbazaar.org>
sub 2048R/6BA4DC61 2014-11-09