sudo vim /etc/mysql/my.cnf
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
| mixin table() | |
| table | |
| if block | |
| block | |
| mixin thead() | |
| thead | |
| tr | |
| if block | |
| block |
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
| SERVER=root@107.170.85.219 | |
| BARE=/home/jhonnatan/bare/dmv.git | |
| git clone $SERVER:$BARE | |
| git remote add origin $SERVER:$BARE | |
| ssh-copy-id -i ~/.ssh/id_rsa.pub $SERVER |
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
| vim /etc/apache2/apache2.conf | |
| <Directory /home/jhonnatan/htdocs/> | |
| Options Indexes FollowSymLinks | |
| AllowOverride None | |
| Require all granted | |
| </Directory> | |
| vim /etc/apache2/sites-available/000-default.conf |
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
| En el ejemplo colocaremos dev2d | |
| primero entrar a dev2d | |
| ojo, si en el intento de ir a dev2d te aparacen "unable to link" u otro mensaje de estaticos, no problem ir a la raiz del proyecto y commitear esos cambios | |
| git add --all | |
| git commit -am "fix(files): update estaticos" | |
| estando en dev2d entrar a la carpeta |
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
| //- Is only jade with var text type | |
| - var list = [] | |
| - list.push({status: "active", text: "option 1"}) | |
| - list.push({status: "", text: "option 2"}) | |
| - list.push({status: "", text: "option 3"}) | |
| each(item, index in list) | |
| li(class="#{item.status}") | |
| a= item.text |
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 | |
| define('OFFSET', 268435456); | |
| define('RADIUS', 85445659.4471); /* $offset / pi() */ | |
| function lonToX($lon) { | |
| return round(OFFSET + RADIUS * $lon * pi() / 180); | |
| } | |
| function latToY($lat) { |
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
| /* Some HTML5 Tags | |
| */ | |
| aside, footer, header, nav, section { | |
| display: block; | |
| } | |
| /* Examples | |
| */ |