<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName backoffice.sstamericanairlines.pe
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
[ | |
{ | |
"command": "toggle_side_bar", | |
"keys": [ "f1" ] | |
}, | |
{ | |
"command": "toggle_minimap", | |
"keys": [ "f8" ] | |
}, | |
{ |
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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme", | |
"dictionary": "Packages/Dictionaries/Spanish.dic", | |
"draw_minimap_border": true, | |
"font": "Ubuntu Mono", | |
"font_size": 9, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": [ | |
"Vintage" |
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 mv ~/Downloads/sublime_text_3_build_3207_x64.tar.bz2 /opt/ | |
$ tar -xvjf sublime_text_3_build_3211_x64.tar.bz2 | |
$ sudo ln -s /opt/sublime_text_3/sublime_text /usr/bin/sublime3 | |
command + shift + D = duplique ligne | |
command + L = extend selection by line | |
command + D = extend selection variable by line | |
command + control + up = move line up |
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
error: la suma hash difiere | |
Ejecutar uno de estos: | |
1- sudo apt-get clean | |
2- sudo apt-get autoclean | |
3- sudo rm -Rf /var/lib/apt/lists/* |
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 | |
$host = "10.0.2.2"; | |
$user = "root"; | |
$pwd = "root"; | |
if (!$link = mysql_connect( $host, $user, $pwd )) { | |
echo 'Could not connect to mysql'; | |
exit; | |
} |
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 | |
$database = "wp_costamarweb"; | |
try { | |
$pdo = new PDO("mysql:host=10.0.2.2;port=3306;dbname=$database", 'root', 'root'); | |
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
$pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); | |
$stmt = $pdo->prepare("SELECT * FROM "); | |
$stmt->execute(); |
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
Instalacion de forma global de composer en Linux | |
$ curl -sS https://getcomposer.org/installer | php | |
$ sudo mv composer.phar /usr/bin/composer | |
$ composer -V | |
Instalacion del proyecto de forma local, via composer | |
$ curl -sS https://getcomposer.org/installer | php | |
$ php composer.phar create-project laravel/laravel my-project.com --prefer-dist | |
Empezamos un proyecto con composer: |
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
Balsamiq Mockups | |
Balsamiq en un sistema operativo Ubuntu 14.04 de 64 bits. | |
Balsamiq necesita Adobe Air y gnome-keyring es una dependencia de Adobe Air AIR. | |
Adobe Air no soporta Linux a partir de la versión 2.6. | |
En Ubuntu 14 las librerías de 32-bits (para este tipo de prgramas) paquete ia32libs es obsoleto. | |
Instalar todas estas librerías para conseguir ejecutarlo: | |
# apt-get install gtk2-engines:i386 libart-2.0-2:i386 libcairo2:i386 libcanberra-gtk0:i386 libdatrie1:i386 libgail-common:i386 libgconf2-4:i386 libgtk2.0-0:i386 liblua5.1-0:i386 libpango1.0-0:i386 libpixman-1-0:i386 libqt4-network:i386 libqt4-test:i386 libqtcore4:i386 libthai0:i386 libbonobo2-0:i386 libglade2-0:i386 libgnomecanvas2-0:i386 libidl0:i386 liborbit2:i386 libwmf0.2-7:i386 gtk2-engines-murrine:i386 libxml2:i386 libxslt1.1:i386 libxt6:i386 lib32nss-mdns libnspr4-0d:i386 libnss3-1d:i386 | |
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
Script para hacer diff solo a los archivos modificados | |
#!/bin/bash | |
FILES=`git ls-files -m` | |
for f in $FILES; do | |
#echo ${#f} | |
str=$(git diff $f) | |
printf "\n $str" |