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 / 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 / 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 / expose-nebulacluster-for-spark-k8s.md
Last active January 4, 2023 04:02
Expose NebulaGraph Cluster in k8s for Spark outside of K8s

for Docker compose deployment, see https://gist.github.com/wey-gu/950e4f4c673badae375e59007d80d372

a. create services per metad and storaged pod with LoadBalancer type to expose outside the cluster

b. Use TCP Proxy(b.1) or/and DNS(b.2) to resolve endpoint as their : inside the cluster

In this example, in b. I give a demo where both TCP Proxy and DNS are used, actually only DNS is enough if the exposed port remains same of src and target.

@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 / github_action_push_docker_image_with_arm_support.md
Last active December 1, 2022 08:56
github actions to push dual arch docker images

Add gh action:

name: release

on:
  release:
    types:
      - published
@wey-gu
wey-gu / app_dev_env_local.md
Last active November 24, 2022 03:40
Application Dev Env pratice on local macOS/Windows machine

Create a docker-compose.yaml

mkdir nebulagraph_docker
cd nebulagraph_docker
vim docker-compose.yaml

It could be like this:

@wey-gu
wey-gu / osx_keyboardspeed.sh
Created August 15, 2019 15:47 — forked from karolyi/osx_keyboardspeed.sh
Mac OS X super fast keyboard speed
#!/usr/bin/env bash
# http://papers.ch/speeding-up-your-mac-osx-terminal-input/
#echo "Disable press-and-hold for keys in favor of key repeat"
#defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
echo "Set a blazingly fast keyboard repeat rate"
defaults write NSGlobalDomain KeyRepeat -int 2
@wey-gu
wey-gu / expose-nebulagraph-for-spark-docker.md
Last active September 20, 2022 12:55
expose NebulaGraph for Spark

For k8s deployment, see https://gist.github.com/wey-gu/699b9a2ef5dff5f0fb5f288d692ddfd5

Create extral interfaces for host

If not leveraging multiple interfaces, we have to use TLS instead to leverage SNI routing

ip address add 10.1.1.157/24 dev eth0
ip address add 10.1.1.156/24 dev eth0
ip address add 10.1.1.155/24 dev eth0
@wey-gu
wey-gu / first-app-with-NebulaGraph.md
Last active September 1, 2022 08:22
First app with NebulaGraph

前言

像一般的 Web 应用之于数据库一样,一个典型的基于 NebulaGraph 的传统线上应用可以又三部分组成:

  • 前端,作为人机交互界面,调用后端 API
  • 后端,处理基于 Web 的 API,生成 NebulaGraph 图数据库的查询语句,请求 NebulaGraph,处理结果返回 API 调用方
  • 图数据库:NebulaGraph

今天,我们给大家简单演示如何开发一个基于 NebulaGraph 的智能机器人应用。本节课旨在快速将我们在 NebulaGraph 入门课程所学与实践开发落地场景连接起来,不会拘泥所有的开发细节, 然而所有的细节在这个示例项目作者的博客中(地址 https://www.siwei.io/siwi/ )都有更详细介绍,如果同学们感兴趣,欢迎访问博客和它的 Github 代码仓库了解。

@wey-gu
wey-gu / graphxr_and_nebulagraph_0.md
Created August 11, 2022 04:55
graphxr and nebulagraph demo 0: Graph tech based Fraud Detection