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
<snippet> | |
<content><![CDATA[public function get${1/(.*)/\u$1/}() | |
{ | |
return \$this->${1:$SELECTION}; | |
} | |
public function set${1/(.*)/\u$1/}(\$$1) | |
{ | |
return \$this->$1 = \$$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 | |
echo "Script feito por: Matheus Loureiro" | |
echo "http://www.matheusloureiro.com.br" | |
WORKSPACE=~/workspace && | |
TRECOS=$WORKSPACE/trecos | |
## Pasta Trecos | |
mkdir $WORKSPACE && mkdir $TRECOS |
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
{ | |
"ignored_packages": | |
[ | |
"Vintage", | |
"SublimeCodeIntel", | |
], | |
"theme": "Material-Theme.sublime-theme", | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"caret_extra_bottom": 3, | |
"caret_extra_top": 3, |
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
<VirtualHost *:80> | |
DocumentRoot "/home/usuario/vHost/silex-teste" | |
ServerName silex.localhost | |
ServerAlias www.silex.localhost | |
<Directory /home/usuario/vHost/silex-teste> | |
DirectoryIndex index.php | |
AllowOverride All | |
Require all granted | |
</Directory> | |
</VirtualHost> |
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
SET SQL_SAFE_UPDATES=0; |
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 -S localhost:3000 -t public |
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 | |
$ sudo add-apt-repository ppa:fossfreedom/byzanz | |
$ sudo apt-get update | |
$ sudo apt-get install byzanz | |
// Uso | |
byzanz-record -d 10 -c --x=0 --y=85 --width=700 --height=575 terminal.gif |
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
git clone https://github.com/zfcampus/zf-apigility-skeleton.git | |
cd path/to/install | |
composer install | |
# or composer.phar install | |
php public/index.php development enable |
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
# https://hub.docker.com/ | |
docker pull php | |
docker run -d -v "$PWD":/var/www/html -p 8088:80 php:5.4-apache | |
docker images | |
docker images | wc -l #Conta a quantidade de imagens |
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: | |
build: . | |
ports: | |
- "8080:80" | |
- "1443:443" | |
volumes: | |
- ./www:/var/www/html | |
links: | |
- db | |
db: |
OlderNewer