Skip to content

Instantly share code, notes, and snippets.

View jonathanpmartins's full-sized avatar
🏠
Working from home

Jonathan Prass Martins jonathanpmartins

🏠
Working from home
View GitHub Profile
@jonathanpmartins
jonathanpmartins / feriados.json
Created October 5, 2023 05:46 — forked from sistematico/feriados.json
Json ccom os feriados nacionais
{
"2001-01-01": "Confraternização Universal",
"2001-02-27": "Carnaval",
"2001-04-13": "Paixão de Cristo",
"2001-04-21": "Tiradentes",
"2001-05-01": "Dia do Trabalho",
"2001-06-14": "Corpus Christi",
"2001-09-07": "Independência do Brasil",
"2001-10-12": "Nossa Sr.a Aparecida - Padroeira do Brasil",
"2001-11-02": "Finados",
@jonathanpmartins
jonathanpmartins / Comparison Espressif ESP MCUs.md
Created January 6, 2023 18:24 — forked from sekcompsci/Comparison Espressif ESP MCUs.md
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
@jonathanpmartins
jonathanpmartins / h264_nvenc.txt
Created July 9, 2022 07:43 — forked from nico-lab/h264_nvenc.txt
ffmpeg -h encoder=h264_nvenc
Encoder h264_nvenc [NVIDIA NVENC H.264 encoder]:
General capabilities: dr1 delay hardware
Threading capabilities: none
Supported hardware devices: cuda cuda d3d11va d3d11va
Supported pixel formats: yuv420p nv12 p010le yuv444p p016le yuv444p16le bgr0 rgb0 gbrp gbrp16le cuda d3d11
h264_nvenc AVOptions:
-preset <int> E..V....... Set the encoding preset (from 0 to 18) (default p4)
default 0 E..V.......
slow 1 E..V....... hq 2 passes
medium 2 E..V....... hq 1 pass
@jonathanpmartins
jonathanpmartins / test-doc-see-as-virus-by-clamav.txt
Created May 7, 2022 04:49 — forked from mikecastrodemaria/test-doc-see-as-virus-by-clamav.txt
A simple text file to be used as positive test for ClamAv virus scanner
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
@jonathanpmartins
jonathanpmartins / subsetSum.js
Created August 13, 2021 02:02 — forked from rbarilani/subsetSum.js
Finding all possible combinations of numbers to reach a given sum ()
function subsetSum(numbers, target, partial) {
var s, n, remaining;
partial = partial || [];
// sum partial
s = partial.reduce(function (a, b) {
return a + b;
}, 0);
@jonathanpmartins
jonathanpmartins / install-libsodium.sh
Last active September 14, 2017 00:29 — forked from sarciszewski/install-libsodium.sh
Install libsodium-1.0.2 and PECL libsodium on Ubuntu 14.04
#!/usr/bin/env bash
PECLVER="0.1.1"
LIBSODIUMVER="1.0.2"
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class ClearBeanstalkdQueueCommand extends Command {
/**