Skip to content

Instantly share code, notes, and snippets.

View walkeralencar's full-sized avatar

Walker de Alencar walkeralencar

View GitHub Profile
@walkeralencar
walkeralencar / decred-vanity.php
Last active January 14, 2016 20:23
Decred - Vanity Generator
<?php
/**
* Decred vanity generator
* Inspired by RiCK: https://gist.github.com/Retord/4cffeae3516e2c99fa0d
*
* @author Walker de Alencar <@walkeralencar>
*/
$config = [
'type' => 'noseed', // can use: 'seed' or 'noseed' or 'regtest' or 'simnet' or 'testnet'
'prefix' => 'DsVanity', // overwrite Vanity by your name, use less than 5 chars. should take lesser time
@walkeralencar
walkeralencar / gen.py
Last active January 5, 2016 19:31 — forked from Retord/gen.py
Decred Address Generator
import subprocess
import os
import time
FNULL = open(os.devnull, 'w')
out = "out.txt" # The address, seed, private key output in out.txt
store = "store.txt" # the text file that will store all the generated address details
genex = "dcraddrgen.exe" # put the direct path link to the exe if its not in the same directory as the python code
req = "DsRick" # put your own name in place of 'Rick' (Make it less than 5 chars. should take lesser time
size = len(req)
@walkeralencar
walkeralencar / PrivateTrait.php
Last active December 31, 2015 18:23
Trait for PHPUnit private methods tests
<?php
namespace Test;
trait PrivateTrait
{
/**
* @param string|Object $obj Object
* @param string $name Method Name
* @param array $args
* @return mixed its based on method result;
@walkeralencar
walkeralencar / Envoy.blade.php
Last active September 6, 2018 00:49 — forked from boris-glumpler/Envoy.blade.php
Envoy.blade.php
{{-- Define all our servers --}}
@servers(['staging' => '', 'production' => ''])
@setup
{{-- The timezone your servers run in --}}
$timezone = 'Europe/Amsterdam';
{{-- The base path where your deployments are sitting --}}
$path = '/var/www/site.com/htdocs';
@walkeralencar
walkeralencar / nfephp-envio.plantuml
Last active August 29, 2015 14:01
NFePHP - Fluxo de Autorização (Envio)
' Acesse http://www.plantuml.com/plantuml/ cole o conteudo abaixo e envie...
' Documentação do padrão de escrita: http://plantuml.com/activity2.html
' -------------------
@startuml
title NFePHP - Fluxo de Autorização (Envio)
start
:NFe.entrada('file.nfe');
if (NFe.getFormato()) then ([TXT])
:NFe.converteToXML();
else