Este instalador coloca ip público em equipamentos faciais, antenas, entre outros.
Dentro do sistema edite o equipamento -> marque "sim" em "sc tunnel"
#!/usr/bin/env bash | |
# criar_maquina_ec2.sh | |
###################################### | |
# portaria + sc_linker + scsip | |
###################################### | |
# curl -fsSL https://gist.githubusercontent.com/denoww/4d75e0f73d877b932c9c32e3766bef7f/raw | bash -s -- --instance_type t3.small --subnet-id subnet-04173f5d --get_ssh_key_par_name portaria_staging_ssh_pem_key --get_security_groups_by_tag_projetos "portaria" --save_tag_projetos_on_ec2 "portaria,sc_linker,scsip" --storage_gb 100 --memoria_swap_gb 20 --region us-east-1 --get_iam_role_by_name AdminAccess | |
###################################### | |
#!/usr/bin/env bash | |
# ec2_to_loadbalancers.sh | |
set -euo pipefail | |
################################## | |
# portaria | |
################################## | |
# curl -fsSL https://gist.githubusercontent.com/denoww/5044b8da36f85afabb920263925684e9/raw | bash -s -- --tags "projetos=portaria" --instance-id i-0cf13c52cbcf250f8 --alb-name portaria-production-mtls --nlb-name portaria-network --ports "tcp:443:tcp:4443,tcp:80:tcp:3001,tcp:3001:tcp:3001,tcp:9000:tcp:9000,tcp:9001:tcp:9001,tcp:9005:tcp:9005,http:80:http:3001,https:443:https:4443" --tcp-healthy-threshold 3 --tcp-unhealthy-threshold 3 --region us-east-1 --vpc-id vpc-0232f866 --certificado-https-arn arn:aws:acm:us-east-1:516862767124:certificate/99570c7a-1fb8-4e70-b340-637f7bcaa535 | |
################################## |
#!/usr/bin/env bash | |
# docker_ecr_portaria.sh | |
set -euo pipefail | |
###################################### | |
# Uso (exemplos): | |
# curl -fsSL https://gist.githubusercontent.com/denoww/4ed3acb2d942da7fc9c70adb5406c44d/raw \ | |
# | sudo -E env HOME="$HOME" bash -s -- portaria "3001,9000,9001,9005" "npm run run_docker_image" production | |
# |
Para o funcionamento correto, o Tunnel deve estar conectado no mesmo roteador ou no mesmo grupo de IPs dos equipamentos faciais.
Na tela de equipamentos do sistema:
192.168.0.20
).Para começar a usar a API oficial do WhatsApp Business com um número homologado, siga os passos abaixo:
# Como Usar | |
# ruby ios_criar_flavor.rb flex2 "Flex 2" br.com.flex2 | |
# ruby ios_criar_flavor.rb flex3 "Flex 3" br.com.flex3 | |
# Como Usar | |
# ruby ios_criar_flavor.rb flex2 "Flex 2" br.com.flex2 | |
# ruby ios_criar_flavor.rb flex3 "Flex 3" br.com.flex3 | |
require 'xcodeproj' | |
require 'fileutils' |
# Instalação | |
# curl -s https://gist.githubusercontent.com/denoww/983566e9653cbef4b5e40ffce029582b/raw | bash -s install_lib | |
# ou | |
# wget -O - https://gist.githubusercontent.com/denoww/983566e9653cbef4b5e40ffce029582b/raw | bash -s install_lib | |
# $ scflutter | |
# IOS Manuais api | |
# https://developer.apple.com/documentation/appstoreconnectapi | |
# ANDROID Manuais api |
CHECK="do while" | |
while [[ ! -z $CHECK ]]; do | |
PORT=$(( ( RANDOM % 30000 ) + 1025 )) | |
CHECK=$(sudo netstat -ap | grep $PORT) | |
done | |
echo $PORT |