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
<?php | |
require dirname(__FILE__).'/logger.php'; | |
class Cielo | |
{ | |
private $logger; | |
public $dadosEcNumero; | |
public $dadosEcChave; | |
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
mkdir repos | |
mkdir repos/project.com.br.git | |
cd repos/project.com.br.git | |
git init --bare | |
touch hooks/post-receive && chmod +x hooks/post-receive | |
chmod +x hooks/post-receive | |
O arquivo post-receive executa um BASH toda vez que recebe um pull/push, ou seja nosso arquivo de configuração fica nele. | |
Exemplo: https://gist.github.com/lucassmacedo/17065b942fb9600d339f24578687f27c | |
Este exemplo faz exclui a pasta public_html e cria um ALIAS da pasta do laravel -> public_html |
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
#### | |
# ATENTION: | |
# Replace all occurences of sandbox with your project's name | |
#### | |
# v2 syntax | |
version: '2' | |
# Named volumes | |
volumes: |
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
`ionic platform add android@6.1.1 --save` |
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
CREATE USER 'cacique'@'localhost' IDENTIFIED BY 'password'; | |
GRANT ALL PRIVILEGES ON `cacique_integracao`.* TO 'cacique'@'localhost'; | |
FLUSH PRIVILEGES; |
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
find . -type d -exec chmod 0755 {} \; (((((( altera permissão dos diretórios))))) | |
find . -type f -exec chmod 0644 {} \; (((((( altera permissões dos arquivos))))) | |
find . -type d -exec chmod 0755 {} \; && find . -type f -exec chmod 0644 {} \; |
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
tar -czvf publict.tar.gz public_html/ | |
tar -xzvf publict.tar.gz |
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
UPDATE tt_news SET | |
title=convert(cast(convert(title using latin1) as binary) using utf8), | |
short=convert(cast(convert(short using latin1) as binary) using utf8), | |
bodytext=convert(cast(convert(bodytext using latin1) as binary) using utf8) | |
WHERE 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
alias art='php artisan' | |
alias ci='composer install' | |
alias cu='composer update' | |
alias cdo='composer dump-autoload -o' | |
alias am='php artisan migrate' | |
alias amr='php artisan migrate:refresh' | |
alias ams='php artisan migrate --seed' | |
alias amrs='php artisan migrate:refresh --seed' | |
alias ads='php artisan db:seed' | |
alias cda='composer dump-autoload -o' |
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
export EDITOR=vim | |
# export EDITOR="$HOME/bin/mate -w" | |
source ~/.bash/aliases | |
source ~/.bash/paths | |
# Bashmarks is a simple set of bash functions that allows you to bookmark | |
# folders in the command-line. | |
source ~/.bash/bookmarks |