This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CHECK="do while" | |
while [[ ! -z $CHECK ]]; do | |
PORT=$(( ( RANDOM % 30000 ) + 1025 )) | |
CHECK=$(sudo netstat -ap | grep $PORT) | |
done | |
echo $PORT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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*')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
NewerOlder