This file contains hidden or 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 | |
git branch --merge | grep -v develop| grep -v master | awk '{ print $1 }'| while read branch; do git branch -D $branch; done |
This file contains hidden or 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
# Install | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum install docker-engine docker-compose | |
# Start and Auto Start | |
sudo systemctl start docker | |
sudo systemctl enable docker | |
# Use without sudo. need reboot | |
sudo usermod -aG docker $USER |
This file contains hidden or 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 | |
API_NAME=usuario | |
# | |
# verifica se tem algum container deste serviço | |
hasAny() { | |
return $(docker ps | grep ${API_NAME} | wc -l) | |
} | |
# |
This file contains hidden or 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 | |
## Uma maneira de encontrar os componentes criados manualmente dentro de uma aplicação vuejs. Retorna somentes os que possuem props. | |
## A way to find manually created components within a vuejs application. Returns only those who have props. | |
grep -R "props\:" src/*| awk '{print $1}' |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
[{"gdriveId":"1EQfn47qvK9OEQ1DCoc0dmQiCUbAXR0Sm","nome":"De pernas pro ar_ a escola do mundo ao ave - Eduardo Galeano.mobi"},{"gdriveId":"1yJZxDvsyqhzrrhBYWjESIFyZAzOQldOG","nome":"Vencer o Dragao - Barbara Hambly.mobi"},{"gdriveId":"1reaAC6C50J8iWa-kpFl3tdvPwmNgbUV4","nome":"Veleiros ao Mar - Sarah Mason.mobi"},{"gdriveId":"1EfRPQdbbCKZ2Xb7JQkxQ6ViS4SmvnNs_","nome":"Van Gogh - David Haziot.mobi"},{"gdriveId":"1_13GaMd9HvokHH0vVLzBjNCUnyFJBrlc","nome":"Vazios e Plenitudes - Odete Lara.mobi"},{"gdriveId":"1FlYkEwSzlkl1BERoyxtvjFYa3MnJklQo","nome":"Velocidade - Dean R. Koontz.mobi"},{"gdriveId":"1HMyJFMfo-AHPhXK3DOTP6KgCx1di3uo0","nome":"Vencendo o desafio de escrever um romance - Ryoki Inoue.mobi"},{"gdriveId":"1j-8n6wM8M88zSjTicjcDC3R9dysDzz2M","nome":"Veia Bailarina - Ignacio de Loyola Brandao.mobi"},{"gdriveId":"1rsZGSAGx-6eNxBzGBd8GDaER_Fv0LhCc","nome":"Vastas Emocoes e Pensamentos Imperfeitos - Rubem Fonseca.mobi"},{"gdriveId":"1V2ykZ33lsCPtLF2quCgVgzTUyDQFgrH0","nome":"Varias Historias - Machado de Assis |
This file contains hidden or 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
const rp = require('request-promise'); | |
const $ = require('cheerio'); | |
const baseLink = `https://pt.aliexpress.com/category/` | |
const categoryPath = `201000005/home-appliances/` | |
const ApiGet = { | |
getMultiplePages(totalPages) { | |
for (let page = 1; page <= totalPages; page++) { |
This file contains hidden or 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
<?php | |
namespace \Commands\MercadoLivre; | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputOption; | |
/** | |
* MLBlackListCommand | |
* @author David Silva <https://github.com/sr2ds> |
This file contains hidden or 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
{ | |
"blog": { | |
"title": "My Vue Blog" | |
}, | |
"posts": [] | |
} |
This file contains hidden or 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
max="$1" | |
date | |
echo "url: $2 | |
rate: $max calls / second" | |
START=$(date +%s); | |
get () { | |
curl -s -v "$1" 2>&1 | tr '\r\n' '\\n' | awk -v date="$(date +'%r')" '{print $0"\n-----", date}' >> /tmp/perf-test.log | |
} |
This file contains hidden or 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
image: lorisleiva/laravel-docker:latest | |
phpunit: | |
stage: test | |
script: | |
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts | |
- cp .env.example .env | |
- php artisan key:generate | |
- phpunit --colors=never |