Skip to content

Instantly share code, notes, and snippets.

View malev's full-sized avatar

Marcos Vanetta malev

View GitHub Profile
@malev
malev / install.sh
Created February 12, 2015 22:05
SugarCRM recipe
apt-get update
apt-get install -y mysql-server
apt-get install -y apache2 libapache2-mod-php5 php-apc php5-mysql php5-imap php5-curl php5-gd php5-memcached curl python cron
curl -SL "http://switch.dl.sourceforge.net/project/sugarcrm/1%20-%20SugarCRM%206.5.X/SugarCommunityEdition-6.5.X/SugarCE-6.5.20.zip"|python -c "import zipfile,sys,StringIO;zipfile.ZipFile(StringIO.StringIO(sys.stdin.read())).extractall('/var/www/')"
rm -rf /var/www/html && mv /var/www/SugarCE-Full-6.5.20 /var/www/html
sed -i 's/^upload_max_filesize = 2M$/upload_max_filesize = 10M/' /etc/php5/apache2/php.ini
chown www-data:www-data -R /var/www/html
chmod -R 0755 /var/www/html/cache
rm /var/www/html/index.html
echo 'date.timezone = UTC' >> /etc/php5/apache2/php.ini
@malev
malev / environment.yaml
Created April 24, 2015 22:10
environment.yaml
name: test
dependencies:
- numpy

Atom settings

Enjoy!

@malev
malev / gulpfile.js
Last active August 29, 2015 14:27 — forked from danharper/gulpfile.js
New ES6 project with Babel, Browserify & Gulp
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));
@malev
malev / Vagrantfile
Last active September 9, 2020 21:37
Vagrantfile: Ubuntu with miniconda 2 installed and working
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provision "shell", inline: <<-SHELL
apt-get update -q
su - vagrant
wget -q https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
chmod +x miniconda.sh
./miniconda.sh -b -p /home/vagrant/miniconda
echo 'export PATH="/home/vagrant/miniconda/bin:$PATH"' >> /home/vagrant/.bashrc
@malev
malev / selection_histogram.py
Created February 11, 2016 23:54
Shows axis histograms for selected and nonselected points in a scatter plot
''' Present a scatter plot with linked histograms on both axes.
Use the ``bokeh serve`` command to run the example by executing:
bokeh serve selection_histogram.py
at your command prompt. Then navigate to the URL
http://localhost:5006/selection_histogram
@malev
malev / build.sh
Last active April 12, 2016 04:12
conda-notebook
#!/bin/bash
$PYTHON setup.py install
@malev
malev / Radios nacionales
Last active March 16, 2022 16:32 — forked from pisculichi/radios_nacionales.txt
URLs de radios nacionales de Argentina, para poder escuchar en la terminal con mplayer o vlc
AMs Nacionales
Radio Madre 530 http://200.68.81.65:8000/am530
Radio Argentina 570 http://am570.prodera.com.ar:8000
Continental 590 http://1351.live.streamtheworld.com:80/CONTINENTAL_SC
Rivadavia 630 http://190.104.220.205:8234
Belgrano-650 650 http://wmserver3.aginet.com.ar:13574
Radio 10 710 rtmp://radio10.stweb.tv:1935/radio10/live
Cooperativa 770 http://rcoop.cnwks.ws:8358
Radio Mitre 790 http://buecrplb01.cienradios.com.ar/Mitre790.aac
@malev
malev / meta.yaml
Created June 20, 2016 04:54
Conda recipe for freeling
package:
name: freeling
version: "4.0.0"
source:
url: https://github.com/TALP-UPC/FreeLing/releases/download/4.0/FreeLing-4.0.tar.gz
md5: hola
requirements:
build:
@malev
malev / corenlp
Created July 5, 2016 21:08
CoreNLP init file for Ubuntu 14.04
#!/bin/bash
#
# A script to start/stop the CoreNLP server on port 80, made
# in particular for the configuration running at corenlp.run.
# This script should be placed into:
#
# /etc/init.d/corenlp
#
# To run it at startup, link to the script using:
#