Skip to content

Instantly share code, notes, and snippets.

# Como Usar
# ios_criar_flavor.rb flex2 "Flex 2" br.com.flex2
# ios_criar_flavor.rb flex3 "Flex 3" br.com.flex3
# editar essa lib
# sudo subl ~/Downloads/ios_criar_flavor.rb
# ou
# sudo code ~/Downloads/ios_criar_flavor.rb
# Salvar em
# https://gist.github.com/denoww/ae54235bb132c105aff5b8b47bd30ebe/edit
# 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
-------- Intelbras -------------------------------------------------------
rtsp://usuário:senha@ip:porta/cam/realmonitor?channel=1&subtype=0
-------- Luxvision -------------------------------------------------------
rtsp://ip:porta/user=[usuário]&password=[senha]&channel=1&stream=0.sdp
-------- Hikvision -------------------------------------------------------
rtsp://usuário:senha@ip:porta/Streaming/Channels/101
@denoww
denoww / sc
Last active June 14, 2024 14:32
# How to install
# wget -O - https://gist.githubusercontent.com/denoww/a1acfd75198e743e31e1f6a127244ced/raw | bash -s install
# Para ver exemplos de como usar faça
# $ sc
LIB_DIR="/usr/local/bin"
LIB_PATH="$LIB_DIR/sc"
REGION='us-east-1'
#!/bin/bash
# cx stacks list
# cx servers list -s stacks.name
has_cx_command="$(command -v cx)"
if [ $has_cx_command ]; then
stacks_list="$(cx stacks list | grep -P '^(?!NAME)' | grep -Eo '^\S*')"
for stack in $stacks_list; do
echo "=========== stack '$stack' ==========="
name_serv=$(echo "$stack" | sed 's/seucondominio_//' | sed 's/_.*$//')
servers_list="$(cx servers list -s $stack | grep -Eo '^\S*')"
_work=~/workspace
_sc=$_work/seucondominio/
# Criando atalhos
wget https://gist.githubusercontent.com/denoww/4a53c2fe43e67979a433f6ef446d11a2/raw -O ~/.bash_aliases && source ~/.bash_aliases
# Clone o repo
mkdir -p $_work
git -C $_work clone [email protected]:denoww/seucondominio.git
git -C $_sc checkout tools
folder=~/.config/sublime-text
# folder=~/.config/sublime-text-3
# limpa configuração anterior caso tiver sido feita
rm -rf $folder/.git
rm -rf $folder/Installed\ PackagesOLD
rm -rf $folder/PackagesOLD
rm -rf $folder/.gitignore
rm -rf $folder/README.md
# How to use
# $ cliente_id=521
# $ file="/tmp/teste.sql"
# $ wget -O - https://gist.githubusercontent.com/denoww/0ca4e98fa053a50ebd5ebfa26b7d4cea/raw | bash -s $cliente_id $file
# args
cliente_id=$1 # 521
file=$2 # "/tmp/teste.sql"
#!/bin/bash
# instala o curl
sudo apt-get install -y curl
# carregando configurações via params
# for i in $*
# do
# if [[ "$i" == '-y' || "$i" == '-Y' ]] ; then
# all_alowed=true