Skip to content

Instantly share code, notes, and snippets.

View marcelocmenezes's full-sized avatar

Marcelo Menezes marcelocmenezes

View GitHub Profile
@marcelocmenezes
marcelocmenezes / cmd
Created February 23, 2024 12:53
Configuração SSL WebSocket JPTecno
openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout c:\certificates\nginx-selfsigned.key -out c:\certificates\nginx-selfsigned.crt
openssl dhparam -out c:\nginx\dhparam.pem 4096
@marcelocmenezes
marcelocmenezes / ajustes-aciona-one.md
Last active September 28, 2023 19:19
Ajustes da API Aciona ONE

API aciona one

API do aplicativo Aciona ONE.

Filas

Conteúdo relacionado a filas e tipos.

Obter todas as filas de vendas

Alterações

  • Criar tarefa para criar endpoint para listar as filas de atendimento de vendas.
@marcelocmenezes
marcelocmenezes / setup.sh
Last active May 9, 2022 13:57
Pré-setup Whatsapp não oficial
#!/bin/bash
print_status() {
echo
echo "## $1"
echo
}
bail() {
echo 'Error executing command, exiting'
@marcelocmenezes
marcelocmenezes / autoexec.cfg
Created December 23, 2021 18:50
CSGO Server Config
log on
hostname "Sessao de Risos: Bracinho's Server"
rcon_password "cartman2020"
sv_password "cs2020"
sv_cheats 0
sv_lan 0
sv_maxrate 0
sv_minrate 196608
sm_cvar sv_maxcmdrate 128
This file has been truncated, but you can view the full file.
[
{
"chatId": "604953adf0224c16749854ad",
"foneNumberResponse": "+5511967674080",
"foneNumber": "21964185480",
"codCredor": "222",
"messageId": "604953aef0224c16749854ae",
"msgFrom": "Human",
"text": "Ol",
"msgDate": "2021-03-10T23:18:02.000Z"
@marcelocmenezes
marcelocmenezes / app.js
Created August 31, 2020 18:50
Aula React
import React, { useEffect } from "react";
import { useState } from "react";
function App() {
const [repositories, setRepositories] = useState([]);
useEffect(() => {
handleAddRepository();
}, []);
import * as Yup from 'yup';
import { validateCpf } from '../../utils/validateCpf';
import { validatePhone } from '../../utils/validatePhone';
function isValidCPF(this: Yup.StringSchema) {
return this.test({ name: 'cpf', message: 'CPF Inválido', test: value => validateCpf(value) });
}
function isValidPhoneNumber(this: Yup.StringSchema) {
return this.test({ name: 'sms', message: 'Número inválido', test: value => validatePhone(value) });
version: '3.1'
services:
wordpress:
image: wordpress
volumes:
- ./wp-content:/var/www/html/wp-content
restart: always
ports:
#!/bin/sh
# inpath - verify that a specified program is either valid as-is,
# or can be found in the PATH directory list.
if [ -d '~/www' ]; then
echo -e "Excluindo arquivos antigos."
rm -R ~/www
fi
echo -e "Clonando projeto do repositorio remoto"
git clone git@bitbucket.org:jurosbaixo/api-juros-baixos.git ~/www
# apt-get update
# apt-get install libcurl4-openssl-dev git build-essential autotools-dev autoconf
# apt-get install libcurl3 libcurl4-gnutls-dev
# mkdir /Downloads
# cd /Downloads
# git clone https://github.com/wolf9466/cpuminer-multi
# cd cpuminer-multi
# ./autogen.sh