Skip to content

Instantly share code, notes, and snippets.

View walkeralencar's full-sized avatar

Walker de Alencar walkeralencar

View GitHub Profile
@walkeralencar
walkeralencar / .groovy
Created January 4, 2023 16:40 — forked from eactisgrosso/.groovy
Jenkinsfile for building and running .NET Core images in Amazon ECS
#!/usr/bin/env groovy
pipeline {
agent { label 'master' }
stages {
stage('Checkout') {
steps {
checkout scm
}
}
@walkeralencar
walkeralencar / nms-network-patch.sh
Last active February 15, 2021 16:29
Proton 5.13 NMS Network Patch
#!/bin/bash
# Proton 5.13 NMS Networking Patch by Walkynn,
# Based on @aeikum(https://github.com/ValveSoftware/Proton/issues/438#issuecomment-764835371)
echo "Proton 5.13 NMS Networking Patch"
echo -n "Change to Proton 5.13 folder..."
cd ~/.steam/steam/steamapps/common/Proton\ 5.13
echo "OK"
@walkeralencar
walkeralencar / aodata.js
Created February 5, 2021 06:03
Extract and Transform albiondata-client debug file.
// Extract and Transform data from Albiondata-client debug file.
// HOW TO USE: Load txt debug file, open console(Ctrl+Shift+I), and use the code.
// Author: Walker de Alencar <walkeralencar@gmail.com>
function decodeParams(params) {
var prex = new RegExp(/([0-9]{1,}):(-?\d+|.+?(?=\s[0-9]{1,}:))/,"gi");
var r = [];
Array.from(params.matchAll(prex)).forEach(function(param){
if ( param[1] < 252) {
r[param[1]] = param[2];
@walkeralencar
walkeralencar / git-remove-prune-scripts.md
Last active June 23, 2020 17:43
Git - Pruning untracked files, keeping tracked files history & renames

Base on AD7six, with renamed files history preserved. (you can skip the preliminary optional section) ref.: https://stackoverflow.com/a/33873223

Optional

remove all remotes

git remote | while read -r line; do (git remote rm "$line"); done

remove all tags

@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 <walkeralencar@gmail.com>
/* 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';
}
@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 / 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 <walkeralencar@gmail.com>
title WebDevOPS - Diagram
frame "Docker Hub" {
frame "Oficial Images" {
artifact alpine
artifact busybox
artifact centos
artifact debian
@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 / 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 / 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