Skip to content

Instantly share code, notes, and snippets.

View malev's full-sized avatar

Marcos Vanetta malev

View GitHub Profile
@malev
malev / configuration.nix
Last active October 10, 2024 21:29
Nix flakes
{ pkgs, ... }: {
imports = [ ./hardware-configuration.nix ];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "eva04"; # Define your hostname.
networking.networkmanager.enable = true;

Interface

/**
 * Adds a segment named `name`
 *
 * @param name {string}
 * @param options {object}
 * @param options.expiration {integer} timestamp
 * @param options.maxAge {integer} number of seconds before it expires
@malev
malev / AMP_ERRORS.md
Last active April 21, 2017 21:39
Test amp errors
@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:
#
@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 / 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 / build.sh
Last active April 12, 2016 04:12
conda-notebook
#!/bin/bash
$PYTHON setup.py install
@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 / 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 / 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));