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 / paul_graham_essay.txt
Created March 12, 2024 09:06
Paul Graham Essay
What I Worked On
February 2021
Before college the two main things I worked on, outside of school, were writing and programming. I didn't write essays. I wrote what beginning writers were supposed to write then, and probably still are: short stories. My stories were awful. They had hardly any plot, just characters with strong feelings, which I imagined made them deep.
The first programs I tried writing were on the IBM 1401 that our school district used for what was then called "data processing." This was in 9th grade, so I was 13 or 14. The school district's 1401 happened to be in the basement of our junior high school, and my friend Rich Draves and I got permission to use it. It was like a mini Bond villain's lair down there, with all these alien-looking machines — CPU, disk drives, printer, card reader — sitting up on a raised floor under bright fluorescent lights.
The language we used was an early version of Fortran. You had to type programs on punch cards, then stack them in the card reader and press a
@wey-gu
wey-gu / cs1.6_on_chromeos.md
Last active December 31, 2023 08:41
Counter-Strike 1.6 with Bots on ChromeOS

Steam

For newer devices, install the ChromeOS Steam (Beta), for Intel gen-7 i5 like me, install the steam for Linux version directly, and it worked like a charm!

CS 1.6

Just go to lib of Steam and Install

Bot

@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
@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 / 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 / .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 / 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 / run_control_net_video_on_colab.md
Last active February 22, 2023 07:39
Run ControlNet Video on colab notebook
@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: