Skip to content

Instantly share code, notes, and snippets.

@deep75
deep75 / parallel-scikit-learn.ipynb
Last active July 24, 2019 20:45
ParallelPostFit pour paralléliser et distribuer les étapes de notation ou de prédiction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deep75
deep75 / portuguese-bank-tpot.ipynb
Last active July 24, 2019 20:31
La stratégie de marketing des banques portugaises - Tutoriel TPOT : Les données sont liées aux campagnes de marketing direct d'une institution bancaire portugaise. Les campagnes de marketing étaient basées sur des appels téléphoniques. Souvent, plus d'un contact avec le même client était nécessaire, afin de savoir si le produit (dépôt à terme ba…
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deep75
deep75 / local.conf
Last active June 18, 2019 15:49
My DevStack local.conf with Senlin
[[local|localrc]]
HOST_IP=10.6.43.245
SERVICE_HOST=10.6.43.245
MYSQL_HOST=10.6.43.245
RABBIT_HOST=10.6.43.245
GLANCE_HOSTPORT=10.6.43.245:9292
ADMIN_PASSWORD=password
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
@deep75
deep75 / install.sh
Created April 24, 2019 13:29
Docker+ZeroTier
#!/bin/sh
curl -s https://install.zerotier.com/ | sudo bash
sudo zerotier-cli join <network ID>
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
sudo usermod -aG docker ubuntu
@deep75
deep75 / cluster-pharos.yml
Created March 8, 2019 15:26
Example for Pharos Cluster.yml
hosts:
- address: ""
private_address: ""
user: root
ssh_key_path: ~/.ssh/id_rsa
role: master
- address: ""
private_address: ""
user: root
ssh_key_path: ~/.ssh/id_rsa
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmName": {
"type": "String",
"metadata": {
"description": "name of the vm, will be used as DNS Name for the Public IP used to access the Virtual Machine"
}
},
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmName": {
"value": "cfdirector"
},
"ubuntuOSVersion": {
"value": "16.04.0-LTS"
},
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# -e: immediately exit if any command has a non-zero exit status
# -o: prevents errors in a pipeline from being masked
# IFS new value is less likely to cause confusing bugs when looping arrays or arguments (e.g. $@)
usage() { echo "Usage: $0 -i <subscriptionId> -g <resourceGroupName> -n <deploymentName> -l <resourceGroupLocation>" 1>&2; exit 1; }
@deep75
deep75 / linux.json
Last active October 30, 2018 15:30
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"metadata": {
"description": "Location of the resources."
}
}
@deep75
deep75 / codefresh.yml
Last active October 21, 2018 18:48
codefresh pipeline
version: '1.0'
steps:
BuildingDockerImage:
title: Building Docker Image
type: build
image_name: mcas/franceconnect-agent-demo
working_directory: ./
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
dockerfile: Dockerfile
RunningUnitTests: