Skip to content

Instantly share code, notes, and snippets.

View ederrafo's full-sized avatar

Eder Rafo Jose Pariwana Espinhal ederrafo

View GitHub Profile
@ederrafo
ederrafo / ST3-key-bindings-user.json
Last active August 14, 2016 19:37
ST 3, Sublime Text 3, Key Bindings User, Código a copiar en Preferences / Key Bindings - User
[
{
"command": "toggle_side_bar",
"keys": [ "f1" ]
},
{
"command": "toggle_minimap",
"keys": [ "f8" ]
},
{
@ederrafo
ederrafo / ST3-settings-user.json
Last active August 7, 2016 00:33
ST 3, Sublime Text 3, Code copied in Preferences / Settings - User | Código a copiar en Peferences / Settings - User
{
"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"
@ederrafo
ederrafo / Sublime Text 3
Last active February 25, 2020 21:58
Sublime Text 3, install package control, install packages ST3
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
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/*
<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
@ederrafo
ederrafo / composer.txt
Last active February 26, 2020 20:49
Depedencias en php con Composer, Composer basado en nodejs,
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:
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
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"