Skip to content

Instantly share code, notes, and snippets.

@bmurzeau
bmurzeau / gist:bf9c968a5802d8cf1c44
Created January 29, 2015 11:28
Google Prediction Script for KDD Cup 2008 Breast Cancer (PredicSis API vs Google Prediction)
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@bmurzeau
bmurzeau / gist:04a057647330aba14224
Last active August 29, 2015 14:14
PredicSis API Script for both Kaggle Give Me Some Credit challenge and KDD Cup 2008 Breast Cancer (PredicSis API vs Google Prediction)
require 'rubygems'
require 'bundler/setup'
require 'benchmark'
require 'predicsis_ml_sdk'
PredicsisMlSdk.configure do |config|
config.logger = Logger.new(STDOUT)
config.logger.level = Logger::WARN
end
@bmurzeau
bmurzeau / gist:d178d60b9f962d090350
Created January 21, 2015 08:25
Google Prediction Script for Kaggle Give Me Some Credit challenge (PredicSis API vs Google Prediction)
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@bmurzeau
bmurzeau / docker-api-port.sh
Created July 23, 2014 15:33
Open Docker API port so the host listen to remote API requests
$ sudo vim /etc/default/docker
# Line to modify
DOCKER_OPTS="-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock"
$ sudo service docker restart
@bmurzeau
bmurzeau / docker-upgrade.sh
Last active August 29, 2015 14:04
Upgrade to specific version of Docker on Ubuntu
# Add Docker repository
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
$ sudo sh -c "echo deb https://get.docker.io/ubuntu docker main\
> /etc/apt/sources.list.d/docker.list"
$ sudo apt-get update
# List all versions
$ sudo apt-cache showpkg docker.io
Package: docker.io
Versions: