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
| import re | |
| import shutil | |
| import argparse | |
| from os import path | |
| from sys import stderr | |
| # | |
| # Author: Daxda | |
| # Date: 02.04.2014 | |
| # WTF: This is a quick tool I've hacked together to easily remove the meta |
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
| test |
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
| version: '2' | |
| services: | |
| grafana-docker: | |
| image: grafana/grafana:latest | |
| container_name: grafana-docker | |
| restart: always | |
| ports: | |
| - 3000:3000 | |
| volumes: | |
| - ./grafana-storage:/var/lib/grafana |
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
| version: '2' | |
| services: | |
| prometheus-docker: | |
| image: prom/prometheus:latest | |
| container_name: prometheus-docker | |
| restart: always | |
| volumes: | |
| - ./prometheus.yml:/etc/prometheus/prometheus.yml | |
| - ./prometheus-data:/prometheus-data | |
| networks: |
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
| global: | |
| scrape_interval: 15s | |
| scrape_configs: | |
| - job_name: research-pc-monitor | |
| scrape_interval: 5s | |
| static_configs: | |
| - targets: | |
| - <IP:PORT TARGET> |
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
| version: '2.3' | |
| services: | |
| node_exporter: | |
| image: prom/node-exporter | |
| command: --collector.textfile.directory=/run/prometheus | |
| pid: "host" | |
| volumes: | |
| - prometheus_data:/prometheus | |
| - prometheus_textfiles:/run/prometheus:ro |
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
| $ docker pull tensorflow/tensorflow:1.12.0-devel-gpu-py3 | |
| $ docker run --runtime=nvidia -it -w /tensorflow -v $PWD:/mnt -e HOST_PERMS="$(id -u):$(id -g)" \ | |
| tensorflow/tensorflow:1.12.0-devel-gpu-py3 bash |
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
| ./configure # answer prompts or use defaults | |
| bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package | |
| ./bazel-bin/tensorflow/tools/pip_package/build_pip_package /mnt # create package | |
| chown $HOST_PERMS /mnt/tensorflow-version-tags.whl |
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
| # --------------------------------------------- | |
| # Stage 1: Initial State | |
| # --------------------------------------------- | |
| FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04 as essential_stage | |
| # Install Essential Package | |
| RUN apt-get update && apt-get -y install --no-install-recommends \ | |
| build-essential \ | |
| g++ \ | |
| curl \ |
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
| import cv2 | |
| import io | |
| import socket | |
| import struct | |
| import time | |
| import pickle | |
| import zlib | |
| client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| client_socket.connect(('192.168.1.124', 8485)) |
OlderNewer