Skip to content

Instantly share code, notes, and snippets.

View huberflores's full-sized avatar

Huber Flores (El Magico) huberflores

View GitHub Profile
@huberflores
huberflores / HigherMonteCarlo.py
Last active October 5, 2015 14:48
Higher-dimensional Monte Carlo Integration
#
# author Huber Flores
#
import numpy as np
from scipy import *
import random
box = ([-1.0,1.0],[-1.0,1.0],[-1.0,1.0])
@huberflores
huberflores / amazonbundle.as
Last active October 5, 2015 14:57
Bundle an Amazon Instance
/*
* author Huber Flores
*/
# Upload your keys to your instance (*.pem files)
$ scp -i your_PrivateKeyFile.pem -r /PrivateKeysPath/huberfloresPrivateCertKeys.zip ubuntu@ec2-x-x-x-x.compute-1.amazonaws.com:/home/ubuntu/
# Connect to your instance (local keys)
$ ssh -i your_PrivateKeyFile.pem ubuntu@ec2-x-x-x-x.compute-1.amazonaws.com
@huberflores
huberflores / tsungconf.as
Last active August 26, 2018 11:51
Tsung installation and Cluster Configuration
/*
* author Huber Flores
*/
# Install on each Node
$ su
# Perl Templating-Toolkit and the Gnu plotting utility to create HTML and graphical reports with the result data set.
$ apt-get install gnuplot-nox libtemplate-perl libhtml-template-perl libhtml-template-expr-perl
@huberflores
huberflores / huberflores_example.xml
Last active November 18, 2016 09:13
Tsung Configuration File
<!--
author Huber Flores
-->
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" version="1.0">
<!-- Client side setup -->
<clients>
@huberflores
huberflores / cyanogenMod7-2.as
Last active October 12, 2016 03:53
CyanogenMod7-2GUIDE
/*
* author Huber Flores
*/
### CyanogendMod7.2
### Builded in 64 bits Machine with Ubuntu quantal quetzal 12.10
# Install android SDK
# Download version x86_64
# Tutorial http://developer.android.com/sdk/index.html
@huberflores
huberflores / dalvik.as
Last active December 14, 2019 17:06
Re-compiling dalvik machine
/*
* author Huber Flores
*/
#We also can provide you with Amazon image (AMI) public with Android x86
#Please contact to huber AT UT DOT ee for granting access
# CyanogendMod/Android environment must be set up first
# refer to CM7Guide (https://gist.github.com/huberflores/4687766)
@huberflores
huberflores / haproxy.as
Last active December 12, 2015 07:18
Installation and Configuration of HAProxy
/*
* author Huber Flores
*/
# Download latest version of HAProxy from http://haproxy.1wt.eu/#down
# version downloaded for this tutorial
# haproxy-1.4.15.tar.gz (wget http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.15.tar.gz)
$ tar -xvf haproxy-1.4.15.tar.gz
@huberflores
huberflores / openfire.as
Last active May 22, 2016 05:35
Installation and Configuration of Openfire 3.7.1
/*
* author Huber Flores
*/
# Openfire guide for Ubuntu 12.04 - 64 bits
# Dowload Openfire tar.gz version (openfire_3_7_1.tar.gz) (http://www.igniterealtime.org/downloads/index.jsp)
# Dowload Oracle JDK 6 SE and install
$ sudo aptitude update
@huberflores
huberflores / arduino.as
Last active December 12, 2015 12:39
Connecting Wifi module (Arduino Mega ADK) with Android
/*
* author Huber Flores
*/
### Getting Arduino ready for HTerm
# 1- Set your Wifi Shield to USB (It’s a small switch on you WiFi Shield).
# 2- Upload BareMinimum sketch to your Arduino ((File->Examples->Basic->BareMinimum).
# 3- Open HTerm.
### Connect with following settings
@huberflores
huberflores / ngnix.as
Last active December 13, 2015 17:59
Ngnix configuration
/*
* author Huber Flores
*/
### Ngnix configuration - Debian/Ubuntu 32 bits
# Notes:
# Ngnix cannot be used at the same time as Apache Web Server at port 80