This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$master_script = <<SCRIPT | |
#!/bin/bash | |
cat > /etc/hosts <<EOF | |
127.0.0.1 localhost | |
# The following lines are desirable for IPv6 capable hosts | |
::1 ip6-localhost ip6-loopback |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// requires | |
var utils = require('utils'); | |
var casper = require('casper').create() | |
var casper = require('casper').create({ | |
verbose: true, | |
logLevel: "debug" | |
}); | |
// setup globals | |
var email = casper.cli.options['email'] || 'REPLACE THIS EMAIL'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <ctime> | |
#define N 1000 | |
double array_sum(double a[N][N]) | |
{ | |
int i,j; | |
double s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crawler: | |
environment: | |
- REDIS_PORT=6379 | |
image: 'istresearch/scrapy-cluster:crawler-dev-alpine' | |
links: | |
- kafka | |
- redis | |
- zookeeper | |
restart: always | |
target_num_containers: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logstash-crawler: | |
scale: 12 | |
redis: | |
scale: 1 | |
health_check: | |
port: 6379 | |
interval: 2000 | |
initializing_timeout: 60000 | |
unhealthy_threshold: 3 | |
strategy: recreate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nginx-proxy: | |
image: jwilder/nginx-proxy:latest | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- '/home/docker/nginx-proxy/ssl:/etc/nginx/certs:ro' | |
- '/etc/nginx/vhost.d' | |
- '/usr/share/nginx/html' | |
- '/var/run/docker.sock:/tmp/docker.sock:ro' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
login="user" | |
pass="pass" | |
host="foo.bar.com" | |
remote_dir="/path/on/foo/bar/" | |
local_dir="/home/you/foobar-mirror/" | |
log_file="/tmp/lftp-mirror.log" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Sep 2 13:26:48 2016 | |
@author: Brian Christopher, CFA [Blackarbs LLC] | |
""" | |
import time | |
import pandas as pd | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Sep 2 13:23:34 2016 | |
@author: Brian Christopher, CFA [Blackarbs LLC] | |
""" | |
import pandas as pd | |
from more_itertools import unique_everseen | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import operator | |
if (len(sys.argv) == 3): | |
inputFileName = sys.argv[1] | |
outputFolder = sys.argv[2] | |
# open symbols file | |
tradelogFile = open(inputFileName,"rU") |
OlderNewer