Skip to content

Instantly share code, notes, and snippets.

@xav-b
xav-b / with-attic
Last active August 29, 2015 14:09
Backup scripting
#! /usr/bin/env bash
set -e -o pipefail
# NOTE Use notify send, pushbullet or other stuff ?
# NOTE NFS, ssh, ...
# TODO Encryption
source optparse.bash
optparse.define short=t long=tag desc="Archive tag" variable=tag default="home"
@xav-b
xav-b / genetic_function.py
Last active September 16, 2024 20:26
Genetic optimization of a trading strategy for zipline backtester
import time
import random
import math
import numpy as np
import logbook
log = logbook.Logger('Optimization')
from neuronquant.network.transport import ZMQ_Dealer