Skip to content

Instantly share code, notes, and snippets.

View luismayta's full-sized avatar
馃槑
life is fun, so is coding

Lucho luismayta

馃槑
life is fun, so is coding
View GitHub Profile
#Developer By @slovacus
#files de mac
*.DS_Store
#files zip
*.rar
*.zip
*.tar.gz
*.bin
#configurar el proxy
export http_proxy="http://172.21.0.12:3128"
export https_proxy="https://172.21.0.12:3128"
export ftp_proxy="ftp://172.21.0.12:3128"
#configurar variable "HTTP_PROXY_REQUEST_FULLURI"
export HTTP_PROXY_REQUEST_FULLURI="false"
#nota agregar para que no lo agregen constantemente lo pueden agregar al achivo .bashrc de su usuario
## CRUNCHBANG
## Compatible with Debian Wheezy, but use at your own risk.
deb http://packages.crunchbang.org/waldorf waldorf main
# deb-src http://packages.crunchbang.org/waldorf waldorf main
## DEBIAN
deb http://http.debian.net/debian wheezy main contrib non-free
# deb-src http://http.debian.net/debian wheezy main contrib non-free
## DEBIAN SECURITY
h3. Necesidad
Se requiere la modificaci贸n del modal para que pueda soportar el ingreso de 5 referidos (esto depende)
Se adjunta imagen de Referencia.
h3. Consideraciones
# El Modal debe ser flexible al cambio.
h3. Comportamiento
@luismayta
luismayta / conf_virtualhost
Created March 5, 2013 16:07
configuraci贸n de Virtual Hosts
#sudo gedit /etc/hosts
;agregar el nombre de la url
127.0.0.1 local.tcn.ec.pe
#cd /etc/apache2/sites-available/
; crear un archivo con el nombre local.tcn.ec.pe
; agregar el contenido con https://gist.github.com/luismayta/4674310
; cambiar las rutas por defecto
#sudo a2ensite local.tcn.ec.pe
#sudo /etc/init.d/apache2 restart
# agregar la url al proxy con dconf-editor
public class DateTools {
private final static TimeZone GMT = TimeZone.getTimeZone("GMT");
private static final SimpleDateFormat YEAR_FORMAT = new SimpleDateFormat("yyyy", Locale.US);
private static final SimpleDateFormat MONTH_FORMAT = new SimpleDateFormat("yyyyMM", Locale.US);
private static final SimpleDateFormat DAY_FORMAT = new SimpleDateFormat("yyyyMMdd", Locale.US);
private static final SimpleDateFormat HOUR_FORMAT = new SimpleDateFormat("yyyyMMddHH", Locale.US);
private static final SimpleDateFormat MINUTE_FORMAT = new SimpleDateFormat("yyyyMMddHHmm", Locale.US);
private static final SimpleDateFormat SECOND_FORMAT = new SimpleDateFormat("yyyyMMddHHmmss", Locale.US);
@luismayta
luismayta / update_php5.3 _to _5.4.txt
Created February 9, 2013 01:24
instalacion de php 5.4 in ubuntu 12.04
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get install php5
@luismayta
luismayta / nodejs
Last active December 12, 2015 08:09
iniciando con nodeJS
Instalacion:
sudo apt-get update
sudo apt-get install build-essential -y
sudo apt-get install python libssl-dev -y
cd /usr/local/src
sudo git clone git://github.com/joyent/node.git
* Descripci贸n del pase, se debe indicar el motivo del pase e indicar a nivel macro
los cambios enviados. En este secci贸n no se considera un t铆tulo ya que Redmine coloca por default "Descripci贸n".
h3. Plataforma
* [Aplicaci贸n]
# Desplegar los archivo del adjunto neovinetas-v.2.3.rc9.tar.gz
# Quitar del application.ini:
<pre>
resources.export.format.csv.path = APPLICATION_PATH "/../data/csv/"
@luismayta
luismayta / virtualhost.conf
Created January 30, 2013 16:11
ejemplo de creaci贸n de virtual hosts
<VirtualHost *:80>
ServerAdmin slovacus@gmail.com
ServerName local.neoauto.com.pe
DocumentRoot /home/slovacus/Projects/PHP/Zend/neoauto/public
<Directory /home/slovacus/Projects/PHP/Zend/neoauto/public>
SetEnv APPLICATION_ENV local
Options Indexes FollowSymLinks MultiViews
AllowOverride all