Skip to content

Instantly share code, notes, and snippets.

View rdelcueto's full-sized avatar

Rodrigo Gonzalez del Cueto rdelcueto

View GitHub Profile
@rdelcueto
rdelcueto / docker_ffmpeg_script.py
Last active August 24, 2020 05:49
ffmpeg encoding & processing script through docker image
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
ffmpeg encoding & processing script through docker image: see https://github.com/jrottenberg/ffmpeg
"""
__author__ = 'Rodrigo Gonzalez del Cueto'
__copyright__ = 'Copyright 2020, ffmpeg processor'
__credits__ = ['Rodrigo Gonzalez del Cueto']
__license__ = '{GNU Lesser General Public License version 3}'
@rdelcueto
rdelcueto / torquebox_run.sh
Last active August 29, 2015 14:01
Torquebox runner with JVM settings
#!/bin/bash
export JAVA_OPTS="-Xmx2048m -XX:ReservedCodeCacheSize=256m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -XX:NewRatio=3 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -Dfile.encoding=UTF-8 -XX:+TieredCompilation -XX:TieredStopAtLevel=1"
export JRUBY_OPTS="--1.9 -J-noverify -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1"
torquebox run -b 0.0.0.0
@rdelcueto
rdelcueto / example-site
Last active August 29, 2015 13:56
Nginx Jboss Proxy Configuration, serving static assets.
server {
listen 80 default;
server_name example.com;
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
listen 443 default ssl;
server_name example.com;
@rdelcueto
rdelcueto / torquebox.sh
Last active August 29, 2015 13:56
Torquebox Profile.d Env
export TORQUEBOX_HOME=/opt/torquebox
export JBOSS_HOME=$TORQUEBOX_HOME/jboss
export JRUBY_HOME=$TORQUEBOX_HOME/jruby
export PATH=$JRUBY_HOME/bin:$PATH
export JAVA_OPTS="-Xmx1280m -Xms256m -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:ReservedCodeCacheSize=128m -Dfile.encoding=UTF-8"
@rdelcueto
rdelcueto / example_site
Created January 23, 2014 07:33
Apache Proxy Site Template for Torquebox Rails Application Redirects all traffic to https. Proxies traffic to JBossAS7 Server
<VirtualHost *:80>
ServerName example.com
Redirect / https://example.com/
</VirtualHost>
<VirtualHost *:443>
RequestHeader set X-Forwarded-Proto "https"
SSLEngine on
SSLProxyEngine On