Skip to content

Instantly share code, notes, and snippets.

Lucas Ontivero lontivero

Block or report user

Report or block lontivero

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
@lontivero
lontivero / Program.cs
Last active Apr 19, 2019
Get Bitcoin nodes on onion domains
View Program.cs
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace seeds
{
@lontivero
lontivero / onion_bitcoin
Created Apr 17, 2019 — forked from hungryduck/onion_bitcoin
List active .onion bitcoin nodes (Bash)
View onion_bitcoin
#!/bin/bash
# Command to get a list of active bitcoin .onion addresses from bitnodes.21.co
curl -s https://bitnodes.21.co/api/v1/snapshots/latest/ | egrep -o '[a-z0-9]{16}\.onion:?[0-9]*' | sort -ru
@lontivero
lontivero / bitdump.sh
Created Mar 26, 2019 — forked from altamic/bitdump.sh
dumps Bitcoin network traffic
View bitdump.sh
#!/usr/bin/env sh
# bitdump.sh
#
# captures Bitcoin network traffic
SELF=`basename $0`
if [[ $1 = "" ]]; then
DEFAULT="en1"
View FilterCoinjoinCSV.csv
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 3.
cat WasabiCoinjoins.csv | grep bc1qs604c7jv6amk4cxqlnvuxv26hv3e48cds4m0ew > payments.csv
cat payments.csv | sort -u > uniq-payments.csv
cat uniq-payments.csv | grep -E "4\/[0-9]{1,2}\/19" | cut -f1,2,4,8,9 > april2019.csv
# cat uniq-payments.csv | cut -d"," -f8 | paste -sd+ | bc
@lontivero
lontivero / Mejoras.md
Last active Apr 18, 2019
Acciones de mejora
View Mejoras.md

Acciones de mejora

  • Metodología de desarrollo,
  • Prácticas de ingeniería.

Comenzamos con las prácticas de ingeniería para luego avanzar en lo metodológico ya que las primeras puede implementarse en un plazo más corto y tienen por objetivo mejorar la calidad de los entregables. Comenzamos con la implementación de quality gates poco intrusivos (revisión de código, análisis estático de código y testing funcional)

Metodología de desarrollo

  • Daily meetings.
@lontivero
lontivero / userstory.md
Last active Mar 13, 2019
Historias de usuario.
View userstory.md

Nombre de la historia de usuario

Como un <user, tipo de usuario or stakeholder> Quiero <poder hacer/obtener (una feature)> Tal que <cumplir objetivo (valor de negocio)>

[Cada historia de usuario tiene una razón de ser, un valor que justifica su existencia y, si bien eso puede deducirse de la parte "Tal que", muchas veces se requiere contexto extra y eso debe agregarse aquí.]

@lontivero
lontivero / CountCoinJoins.sh
Created Jan 5, 2019
Count Wasabi wallet coinjoins per day
View CountCoinJoins.sh
cat wasabi.json | jq '[.address.transactions[] | {"txid":.txid, time:(.time | strftime("%Y-%m-%d"))}] | group_by(.time) | map({"date": .[0].time, "count": length})'
cat wasabi.json | jq -r '[.address.transactions[] | {"txid":.txid, time:(.time | strftime("%Y-%m-%d")) } ] | group_by(.time) | map([.[0].time, length])[] | @csv'
@lontivero
lontivero / ConvertFilters.csproj
Last active Jan 29, 2019
Convert Wasabi client-side filters to binary
View ConvertFilters.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NBitcoin" Version="4.1.1.73" />
</ItemGroup>
@lontivero
lontivero / gist:f1884d4df2fbf1ad06d8cf17cae0bd5d
Last active Dec 11, 2018
testmempoolaccept RPC method call
View gist:f1884d4df2fbf1ad06d8cf17cae0bd5d
bbcli="bitcoin-cli -regtest -datadir=/home/lontivero/tmp/bitcoind"
miner_address=$($bbcli getnewaddress)
address=$($bbcli getnewaddress)
generated_blocks=$($bbcli generatetoaddress 101 $miner_address)
txid=$($bbcli listunspent | jq '.[].txid')
unsigned_raw_tx=$($bbcli createrawtransaction "[{\"txid\":\"$txid\", \"vout\":0}]" "[{\"$address\":30}]")
$bbcli testmempoolaccept "[\"$unsigned_raw_tx\"]"
@lontivero
lontivero / wasabi-perf.sh
Created Nov 26, 2018
Runs and measure performace
View wasabi-perf.sh
#!/bin/bash
COMPlus_PerfMapEnabled=1 dotnet ~/GitHub/WalletWasabi/WalletWasabi.Gui/bin/Debug/netcoreapp2.1/WalletWasabi.Gui.dll &
sudo perf record -p $! -g
sudo perf script -f | ~/GitHub/FlameGraph/stackcollapse-perf.pl | ~/GitHub/FlameGraph/flamegraph.pl > flame.svg
sudo python -m SimpleHTTPServer 80
You can’t perform that action at this time.