Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
from sklearn.base import BaseEstimator, TransformerMixin | |
class TypeSelector(BaseEstimator, TransformerMixin): | |
def __init__(self, dtype): | |
self.dtype = dtype | |
def fit(self, X, y=None): | |
return self | |
def transform(self, X): | |
assert isinstance(X, pd.DataFrame) | |
return X.select_dtypes(include=[self.dtype]) |
This file contains hidden or 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
{ | |
"builders": [ | |
{ | |
"type": "amazon-ebs", | |
"iam_instance_profile": "{{user `s3_readonly_instance_role`}}", | |
"region": "{{ user `aws_region` }}", | |
"profile": "{{ user `aws_profile` }}", | |
"instance_type": "g3.4xlarge", | |
"source_ami": "{{ user `windows_base_ami` }}", | |
"ami_name": "vws-win10-{{timestamp}}-{{user `build_id`}}", |
This file contains hidden or 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
apiVersion: v1 | |
data: | |
grafana-net-315-dashboard.json: | | |
{ | |
"__inputs": [ | |
{ | |
"name": "DS_PROMETHEUS", | |
"label": "Prometheus", | |
"description": "", | |
"type": "datasource", |
This file contains hidden or 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
#### Mesos Settings: | |
ubuntu@ip-10-0-0-21:~$ ls -laR /etc/mesos-slave/ | |
/etc/mesos-slave/: | |
total 36 | |
drwxr-xr-x 2 root root 4096 Jun 24 07:50 . | |
drwxr-xr-x 115 root root 4096 Jun 24 07:50 .. | |
-rw-r--r-- 1 root root 6 Jun 24 07:50 executor_registration_timeout | |
-rw-r--r-- 1 root root 47 Jun 24 07:50 hostname | |
-rw-r--r-- 1 root root 7 Jun 24 07:50 image_providers | |
-rw-r--r-- 1 root root 32 Jun 24 07:50 isolation |
This file contains hidden or 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 | |
function mesosContainerList() { | |
count=0 | |
for item in $(docker ps -q) | |
do | |
mesosName=$(docker exec -i $item sh -c 'echo $MESOS_CONTAINER_NAME') | |
echo $mesosName | |
if [ -n "${mesosName//[$'\r\n\t ']}" ]; | |
then |
This file contains hidden or 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
# Required application name for Spring | |
spring.application.name=mesos-monkey-minimesos | |
# Mesos framework name | |
mesos.framework.name=mesos-monkey-minimesos | |
# Mesos settings | |
mesos.master=zk://${mesos.zookeeper.server}/mesos | |
# mesos.zookeeper.server=$ZOOKEEPER:2181 |
This file contains hidden or 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
# Introduction | |
# This example uses minimesos to run a simple hello world webapp. | |
# First, start minimesos with three agents. | |
# Required application name for Spring | |
spring.application.name=hello-world | |
# Mesos framework name | |
mesos.framework.name=hello-world |
This file contains hidden or 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
# Introduction | |
# This is an example properties file to run a jar version of kibana. | |
# All of the properties in the mesos-starter project are overridable. | |
# Required application name for Spring | |
spring.application.name=kibana | |
# Mesos framework name | |
mesos.framework.name=kibana |
NewerOlder