Skip to content

Instantly share code, notes, and snippets.

View walkeralencar's full-sized avatar

Walker de Alencar walkeralencar

View GitHub Profile
@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
@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 / 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 / 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 / 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 / Wallet.php
Last active January 16, 2016 19:05
Decred Wallet Class - PHP
<?php
/**
* Decred class to simplify the use of dcraddrgen
* @author Walker de Alencar <@walkeralencar>
* @license LGPL 3
*/
namespace Decred;
class Wallet
{
@walkeralencar
walkeralencar / installLisk.sh
Last active May 25, 2016 14:29
Lisk - Linux script for installation
#!/bin/bash
#############################################################
# Lisk Installation Script #
# by: Isabella Dell #
# Date: 15/05/2016 #
# contribs: Walker de Alencar [4827888033055033464L] #
#############################################################
#Variable Declaration
UNAME=$(uname)-$(uname -m)
@walkeralencar
walkeralencar / webdevops.puml
Last active February 14, 2017 23:17
WebDevOPS - Diagram
@startuml
' Access http://www.plantuml.com/plantuml/ paste this content and send...
' @author Walker de Alencar <[email protected]>
title WebDevOPS - Diagram
frame "Docker Hub" {
frame "Oficial Images" {
artifact alpine
artifact busybox
artifact centos
artifact debian
@walkeralencar
walkeralencar / BNDESToken.puml
Created September 11, 2018 14:22
Informações para utilização do protótipo do BNDESToken
'''
' Acesse http://www.plantuml.com/plantuml/ cole o conteudo abaixo e envie...
' Documentação do padrão de escrita: http://plantuml.com/activity2.html
'
' Para utilizar o protótipo do BNDESToken:
' - os clientes e fornecedores precisam criar contas na rede Ethereum;
' - e associar essas contas ao seu CNPJ utilizando um certificado digital padrão ICP-Brasil.
' - Após a realização dessa associação o BNDES pode liberar recursos para a conta do cliente.
' - O cliente pode usar a solução para pagar fornecedores que estejam prestando serviços para o projeto financiado pelo BNDES.
' - Após o recebimento dos BNDESTokens, os fornecedores devem solicitar seu resgaste ao BNDES, única opção para convertê-los em reais.
@walkeralencar
walkeralencar / albiononline2d-market.js
Created February 16, 2020 05:05
Improve informations from albiononline2d
// Improve informations from albiononline2d
// Load any page, open console, and use the code.
// Author: Walker de Alencar <[email protected]>
/* Works only for journals
config.itemsForMarketData = config.itemsForMarketData.split(',')
config.itemsForMarketData.forEach(function(item,key){
if (!item.includes('_FULL')) {
$("#" + item).prop('id',item + '_FULL');
config.itemsForMarketData[key] = item + '_FULL';
}