Skip to content

Instantly share code, notes, and snippets.

View wey-gu's full-sized avatar
🥑
Believe in OpenSource and build in public w/ magic to help others do the same.

Wey Gu wey-gu

🥑
Believe in OpenSource and build in public w/ magic to help others do the same.
View GitHub Profile
@wey-gu
wey-gu / node_exporter_nebulagraph_dashboard.md
Last active December 1, 2022 10:31
how to setup node_exporter for NebulaGraph Dashboard on macOS
  1. install things needed
brew install node_exporter

deploy dashboard in docker-compose ...

  1. configuration on dashboard:
@wey-gu
wey-gu / world_cup_2022_dataset_extract_OpenAI_ChatGPT.md
Last active April 4, 2023 06:54
Extract Data from wikipedia for World Cup 2022 Dataset
@wey-gu
wey-gu / temp_dd_ext_nebulagraph.md
Created January 18, 2023 11:29
temp for Ajeet
services:
  NebulaGraphDD:
    image: ${DESKTOP_PLUGIN_IMAGE}
  metad0:
    profiles: ["core"]
    labels:
      - "com.vesoft.scope=core"
    image: vesoft/nebula-metad:v3.3.0
    environment:
@wey-gu
wey-gu / run_control_net_video_on_colab.md
Last active February 22, 2023 07:39
Run ControlNet Video on colab notebook
@wey-gu
wey-gu / controlnet_video.ipynb
Created February 22, 2023 07:38
controlNet_video.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wey-gu
wey-gu / .py
Created March 23, 2023 06:32
NebulaGraph_to_NetworkX
# nebulagraph --> networkX
## 从 NebulaGraph 中获得一张图,存储为 pd dataframe
from nebula3.gclient.net import ConnectionPool
from nebula3.Config import Config
import pandas as pd
from typing import Dict
from nebula3.data.ResultSet import ResultSet
@wey-gu
wey-gu / KnowledgeGraphIndex_vs_VectorStoreIndex_vs_CustomIndex_combined.ipynb
Last active March 10, 2024 17:37
Example to load docs from a new page in Wikipedia: https://en.wikipedia.org/wiki/2023_in_science created after the 2021 Sept, where 1. how to best leverage kg + vector store backed custom index was demonstrated, 2. the extra cost, performance was evaluated. For review of https://github.com/jerryjliu/llama_index/pull/6497
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wey-gu
wey-gu / reproduce_v1.md
Last active November 13, 2023 11:14
NebulaGraph v1 scan data after schema alter

Quickly setup env

git clone --branch v1.0 https://github.com/vesoft-inc/nebula-docker-compose.git
cd nebula-docker-compose
docker-compose up -d


docker run --rm -ti --network=host vesoft/nebula-console:v1.2.1 -u root -p nebula --addr=127.0.0.1 --port=3699
@wey-gu
wey-gu / clipboard_nvim_chromebook.md
Created December 26, 2023 12:59
NeoVim Clipboard configuration for ChromeOS terminal
wget https://raw.githubusercontent.com/lotabout/dotfiles/master/bin/clipboard-provider
sudo mv clipboard-provider /usr/bin/
sudo chmod +x /usr/bin/clipboard-provider
vim.opt.clipboard:append("unnamedplus")
-- Check if clipboard-provider is executable
if vim.fn.executable('clipboard-provider') then