Skip to content

Instantly share code, notes, and snippets.

@wilxsv
wilxsv / JasperServer.sh
Created December 13, 2016 04:26
Script para iniciar jasper server como demonio de debian - http://community.jaspersoft.com/questions/541044/auto-start-boot
#!/bin/sh
# Tomado del sitio http://community.jaspersoft.com/questions/541044/auto-start-boot
### BEGIN INIT INFO
# Provides: jasperserver
# Required-Start: $local_fs $remote_fs $network $time $syslog
# Required-Stop: $local_fs $remote_fs $network $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start JasperServer at boot time
# Description: Enable service provided by JasperServer.
@wilxsv
wilxsv / installRuby_and_Rails5.0.sh
Created March 14, 2017 15:14
Script del bash para instalar ruby (estable) y rails 5.0 via RVM (rvm significa Ruby Version Manager y no remover como e escuchado).
#!/bin/sh
### BEGIN INIT INFO
# Provides: ruby and rails
# Required-Start: Se requiere que el usuario posea los permisos de sudo
# X-Interactive: true
# Short-Description: "Instalador" basico de ruby on rails en el espacio persinal del desarrollador ($HOME = /home/USUARIOPERSONAL)
# Description:
### END INIT INFO
# Secuencia de comandos desde root
#Todo ejecutarlo desde root
#Instalacion de composer
apt-get install curl php5-cli git
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
#instalacion de symfony
mkdir -p /usr/local/bin
curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony
chmod a+x /usr/local/bin/symfony
git clone -b establecimiento https://github.com/wilxsv/coreMaestros.git establecimiento
cd establecimiento/
composer install --optimize-autoloader
#!/bin/sh
### BEGIN INIT INFO
# Provides: micrositioserver
# Required-Start: $local_fs $remote_fs $network $time $syslog
# Required-Stop: $local_fs $remote_fs $network $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start MicroSitioServer at boot time
# Description: Enable service provided by MicroSitioServer.
### END INIT INFO
server {
listen 80;
listen [::]:80;
client_max_body_size 20m;
server_name DOMINIO.ORG;
root /var/www/..../;
index index.php index.html;
location / {
try_files $uri $uri/ =404;
client_max_body_size 20m;
server {
listen 80;
server_name DOMINIO.ORG ;
root /opt/pentaho-server/tomcat/webapps/pentaho;
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
# !/bin/sh
# todos los comandos son ejecutados desde root, no se hace uso de sudo.
apt-get update
apt-get upgrade
apt-get install nginx mysql-server php-fpm php-mysql
systemctl enable php7.0-fpm
apt-get install libfcgi0ldbl unzip php7.0-xml
# Configurar el
[gammu]
#connection = at115200
#port = /dev/ttyUSB0
connection = at19200
port = /dev/ttyACM0
logformat = textall
logfile = /var/log/gammu-smsd.log
DebugLevel = 255
DeliveryReport = log
ReceiveFrequency = 5
@wilxsv
wilxsv / ssl-params.conf
Created December 1, 2017 00:36
Archivo de configuracion para habilitar https con nginx
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_ecdh_curve secp384r1;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;