- Delete all images
FOR /f "tokens=*" %i IN ('docker images -q -f "dangling=true"') DO docker rmi %i
- Delete all containers
FOR /f "tokens=*" %i IN ('docker ps -aq') DO docker rm %i
import sys | |
import operator | |
if (len(sys.argv) == 3): | |
inputFileName = sys.argv[1] | |
outputFolder = sys.argv[2] | |
# open symbols file | |
tradelogFile = open(inputFileName,"rU") |
# -*- 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 |
# -*- 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 |
#!/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" | |
logstash-crawler: | |
scale: 12 | |
redis: | |
scale: 1 | |
health_check: | |
port: 6379 | |
interval: 2000 | |
initializing_timeout: 60000 | |
unhealthy_threshold: 3 | |
strategy: recreate |
logstash-crawler: | |
labels: | |
io.rancher.container.pull_image: always | |
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$$$${stack_name}/$$$${service_name} | |
io.rancher.scheduler.affinity:host_label: role=crawler | |
command: | |
- -f | |
- /etc/logstash/conf.d/logstash.conf | |
image: arthurpham/logstash-scrapy-cluster-docker:latest | |
links: |
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' |
FOR /f "tokens=*" %i IN ('docker images -q -f "dangling=true"') DO docker rmi %i
FOR /f "tokens=*" %i IN ('docker ps -aq') DO docker rm %i
#include <iostream> | |
#include <string> | |
#include <ctime> | |
#define N 1000 | |
double array_sum(double a[N][N]) | |
{ | |
int i,j; | |
double s; |