Estando en la espera de varios envíos de aliexpress y viendo que correos de chile no indicaba absolutamente nada de los envíos hace casi 40 días me hice un pequeño script que tengo conectado a una planilla de GoogleSheet donde hago el tracking de mis compras para automatizar la paja que es entrar a la … Sigue leyendo Automatizar tracking de envíos en correos de chile
vsftpd config Centos 7
Instalar vsftpd yum install vsftpd Editar configuración sudo nano /etc/vsftpd/vsftpd.conf write_enable=YES chroot_local_user=YES Agregar shell "/bin/ftp" a archivo nano /etc/shells Crear usuario y grupo para usuarios del ftp #> groupdadd ftp #> sudo useradd -m -g ftp - s /bin/ftp usuarioFTP #> passwd [usuarioFTP] copiar usuario de /etc/passwd a /etc/vsftpd/chroot_list #> cat /etc/passwd | grep usuarioFTP … Sigue leyendo vsftpd config Centos 7
sqlserver, linux, php, mssql_connect
Al instalar extension mssql en linux con freetds para conexion a SQLServer se debe ademas de configurar freetds las directivas de seguridad de SELinux para conceder acceso al proceso httpd # getsebool -a | grep httpd_can_network_connect httpd_can_network_connect --> on httpd_can_network_connect_db --> on # setsebool -P httpd_can_network_connect 1 # setsebool -P httpd_can_network_connect_db 1
Cambiar password a usuario MySQL
SET PASSWORD FOR 'tom'@'localhost' = PASSWORD('foobar'); OR UPDATE mysql.user SET Password=PASSWORD('new-password-here') WHERE USER='user-name-here' AND Host='host-name-here';
Instalar composer CentOS, Fedora, RHEL
$ curl -sS https://getcomposer.org/installer | php $ mv composer.phar /usr/local/bin/composer $ chmod +x /usr/local/bin/composer $ composer -V Composer version 1.2.1 2016-09-12 11:27:19
MySQL: Listar tablas y sus propiedades
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='tickets' ORDER BY TABLE_NAME,ORDINAL_POSITION ASC
Bootstrap y jqGrid: Ajustar grilla a contenedor
Función que permite ajustar una grilla jqGrid (Gurido JqGrid) a su contenedor aplicando las clases de bootstrap para definir anchos con lo que se logra ajustar la grilla en los eventos resize. misc = { jqgrid2bootstrap : function (id){ id = id.replace('#', ''); var jqGridBootstrapWorkaround = setInterval(function(){ if(!$('#gbox_'+id).hasClass('col-md-12')){ $('#gbox_'+id+',#gview_'+id+',.ui-jqgrid-hdiv,.ui-jqgrid-bdiv,.ui-jqgrid-sdiv').css('width','').addClass('col-md-12 col-lg-12') }else{ clearInterval(jqGridBootstrapWorkaround) } }) } … Sigue leyendo Bootstrap y jqGrid: Ajustar grilla a contenedor
Instalar Nodejs y Npm
En la terminal ssh del servidor tipear (probado en ubuntu 16.04) >sudo apt-get upgrade >sudo apt-get install nodejs >sudo apt-get install npm >npm install npm -g Ready!
AWS EC2 Ubuntu Apache-Mysql-Php5
Step 1: Install Apache Apache is a free open source software which runs over 50% of the world’s web servers. To install apache, open terminal and type in these commands: sudo apt-get update sudo apt-get install apache2 That’s it. To check if Apache is installed, direct your browser to your server’s IP address (eg. http://12.34.56.789). … Sigue leyendo AWS EC2 Ubuntu Apache-Mysql-Php5
Crear CSR – Certificado SSL
Creating a Server Certificate This section describes how to manually create a X.509 public key certificate for use with AWS, which this guide refers to as a server certificates. You'll also learn how to prepare a certificate for use with AWS services through IAM. If you prefer, you can instead use one of the several … Sigue leyendo Crear CSR – Certificado SSL
