Skip to content

Instantly share code, notes, and snippets.

View gangtao's full-sized avatar
🏠
Working from home

Gang Tao gangtao

🏠
Working from home
View GitHub Profile
@gangtao
gangtao / vector.toml
Created May 8, 2025 18:45
gpu-mointor-vector-config
# Vector configuration for collecting NVIDIA GPU metrics
[api]
enabled = true
address = "0.0.0.0:8686"
# Source configuration for scraping Prometheus metrics from DCGM exporter
[sources.dcgm_metrics]
type = "prometheus_scrape"
endpoints = ["http://dcgm-exporter:9400/metrics"]
@gangtao
gangtao / docker-compose.yaml
Last active May 8, 2025 18:44
timeplus-gpu-mointoring-stack
services:
# Ollama service with GPU support
ollama:
container_name: ollama
image: ollama/ollama:latest
ports:
- "11434:11434"
volumes:
- ollama-data:/root/.ollama
environment:
@gangtao
gangtao / cic_ids2017.sql
Last active November 27, 2024 18:53
Import CIC-IDS2017 dataset into Timeplus/Proton
-- create stream
CREATE STREAM network_traffic
(
`id` int,
`destination_port` int64,
`flow_duration` int64,
`total_fwd_packets` int64,
`total_backward_packets` int64,
`total_length_of_fwd_packets` int64,
`total_length_of_bwd_packets` int64,
@gangtao
gangtao / index.html
Created May 20, 2019 05:44
TensorflowJS Time serials Forcast
<div class="container-fluid" id="main">
<div class="row">
<div class="col-6">
<div id="dataView"></div>
</div>
</div>
<div class="row">
<div id="modelView"></div>
</div>
<div class="row">
@gangtao
gangtao / NeuralLanguageModel.ipynb
Created March 14, 2019 16:51
A Simple Neural Language Model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gangtao
gangtao / Word embedding sample.ipynb
Last active March 15, 2019 18:50
Sample code to train a embedding layer using tensorflow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gangtao
gangtao / Word2Vec Gensim.ipynb
Created March 11, 2019 18:23
Gensim embedding sample
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gangtao
gangtao / One Hot Encoding.ipynb
Created March 5, 2019 23:24
One Hot Encoding
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gangtao
gangtao / facets.ipynb
Last active October 5, 2018 00:04
Facet Jupyter Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.