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
removecontainers() { | |
docker stop $(docker ps -aq) | |
docker rm $(docker ps -aq) | |
} | |
armageddon() { | |
removecontainers | |
docker network prune -f | |
docker rmi -f $(docker images --filter dangling=true -qa) | |
docker volume rm $(docker volume ls --filter dangling=true -q) |
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 Umpirsky\Doctrine\Common\Persistance; | |
use Doctrine\Common\Persistence\AbstractManagerRegistry; | |
use Silex\Application; | |
/** | |
* References Doctrine connections and entity/document managers. | |
* |
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
########################################## | |
# To run: | |
# curl -sSL https://gist.githubusercontent.com/sirkkalap/e87cd580a47b180a7d32/raw/d9c9ebae4f5cf64eed4676e8aedac265b5a51bfa/Install-Docker-on-Linux-Mint.sh | bash -x | |
########################################## | |
# Check that HTTPS transport is available to APT | |
if [ ! -e /usr/lib/apt/methods/https ]; then | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https | |
fi |
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
# Não esqueça de alterar o caminho para seu mautic e seu PHP. | |
# O primeiro atualiza as listas de leads | |
# SE VOCÊ USA SERVIDOR DEDICADO OU VPS | |
php /path/to/mautic/app/console mautic:leadlists:update --env=prod | |
php /path/to/mautic/app/console mautic:campaigns:update -f --env=prod | |
php /path/to/mautic/app/console mautic:campaigns:trigger -f --env=prod | |
php /path/to/mautic/app/console mautic:email:process --env=prod |
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
Finalmente, agora eu tenho tudo quase perfeito com o Sublime, só me falta mesmo é um Outline para fechar de vez. | |
Segue relação dos plugins que estou utilizando com o Sublime, bem como minhas configurações: | |
O primeiro package a instalar é o Package Control. A partir dele é possível intalar todos os outros pacotes executando Cmd+Shift+P (ou Ctrl para quem usa Linux/Windows), e buscando por "Package Control:Install Package". | |
Para instalar o Package Control, execute as instruções contidas nesta página: | |
https://packagecontrol.io/installation | |
Agora, chame o comando de instalação de pacotes e instale os seguintes pacotes. |
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 | |
// Script para demonstrar o loop infinito em PHP sem travar | |
while (true) { | |
puts "Ola, eu estou em loop!<br />"; // troque essa linha pelo seu loop real | |
flush(); | |
sleep(1); | |
} |
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
function git_branch_name() { | |
git branch 2>/dev/null | grep -e '^*' | sed -E 's/^\* (.+)$/(\1) /' | |
} | |
function show_colored_git_branch_in_prompt() { | |
PS1="\[\033[38m\]\h:\[\033[032m\]\W\[\033[31m\]\$(git_branch_name)\[\033[m\]$ " | |
} | |
show_colored_git_branch_in_prompt |