I hereby claim:
- I am moisespsena on github.
- I am moisespsena (https://keybase.io/moisespsena) on keybase.
- I have a public key ASAdvzvnonT0YEhBtxZSk8iHH2UlWPPZT_X0Oqd7Va0MzQo
To claim this, I am signing this object:
| //***************************************************************************************************************** | |
| // Library(ies) | |
| //***************************************************************************************************************** | |
| // To ESP32 | |
| #include <Arduino.h> | |
| // To String | |
| #include <stdio.h> |
| sudo rm /etc/apt/preferences.d/nosnap.pref && \ | |
| sudo apt update && \ | |
| sudo apt install snapd && \ | |
| sudo snap install wps-office-all-lang-no-internet && \ | |
| sudo snap connect wps-office-all-lang-no-internet:cups-control :cups-control && \ | |
| sudo snap connect wps-office-all-lang-no-internet:alsa :alsa && \ | |
| sudo snap connect wps-office-all-lang-no-internet:pulseaudio :pulseaudio && \ | |
| sudo snap connect wps-office-all-lang-no-internet:removable-media :removable-media |
| def calc(valor_pago, qnts_pcts): | |
| qnt_a = qnts_pcts[0][0] | |
| z = qnt_a + sum([v[0] * v[1] for v in qnts_pcts[1:]]) | |
| v_a = valor_pago / z | |
| ret = [v_a] + [v_a * v[1] for v in qnts_pcts[1:]] | |
| return ret | |
| # quantidades e percentuais | |
| qnts_pcts = [ |
| /* | |
| Método para pesquisa de dados em período de DATA com cliente de Time Zone imprevisivel. | |
| Autor: Moisés Paes Sena (https://github.com/moisespsena) | |
| */ | |
| DROP TABLE IF EXISTS logs CASCADE; | |
| /* | |
| COLUNAS: |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Show GIT repositories state recursively | |
| if [ "$1" != '' ]; then | |
| cd "$1" || exit $? | |
| fi | |
| find `pwd` -name .git -type d | while read l; do | |
| p=`dirname "$l"` | |
| cd "$p" | |
| sc=0 |
| #!/bin/bash | |
| if [ "$1" != '' ]; then | |
| cd "$1" || exit $? | |
| fi | |
| find `pwd` -name .git -type d | while read l; do | |
| perl -i -pe 's/https:\/\/github.com\/([^\/]+)\/(.+?)(\.git)?$/git\@github.com:\1\/\2.git/' "$l/config" && dirname "$l" | |
| done |
| #!/bin/bash | |
| # | |
| # For partition only, set PARTITION_ONLY=1 enviroment variable | |
| # | |
| VERSION=1 | |
| PARTITION_ONLY=$PARTITION_ONLY | |
| function _continue_or_cancel() { | |
| echo digite \'YeS\' para CONTINUAR, caso contrario sera cancelado: |
| #!/bin/bash | |
| SD=$(dirname $(realpath "$0")) || exit 1 | |
| [ `arch` = 'x86_64' ] && url='https://julialang.s3.amazonaws.com/bin/linux/x64/0.4/julia-0.4.2-linux-x86_64.tar.gz' \ | |
| || url='https://julialang.s3.amazonaws.com/bin/linux/x86/0.4/julia-0.4.2-linux-i686.tar.gz' | |
| echo $url | |
| tmpd="$SD/tmp" |
| #!/usr/bin/env python | |
| ''' | |
| SimpleHttpClient: Python Simple HTTP Client | |
| Author: Moises P. Sena <moisespsena AT gmail.com> | |
| CONNECT AND CLOSE: | |
| >>> host, port = 'localhost', 80 | |
| >>> c = SimpleHttpClient((host, port), host) |