Skip to content

Instantly share code, notes, and snippets.

View szthanatos's full-sized avatar
🤣
funny

机智的苏先锋 szthanatos

🤣
funny
View GitHub Profile
@joshwolff1
joshwolff1 / gremlin-python_abstractions.py
Last active March 15, 2022 11:50
Some abstractions for the gremlin-python module.
from gremlin_python.structure.graph import Graph
from gremlin_python.process.graph_traversal import __
# I use a property instead of directly setting the ID because I could not get it to work, and this works
# just as well for now. I'd imagine setting the id directly is better for runtime.
# If you figure out how to set the id directly with gremlin-python, feel free to make a pull request and I'll merge it.
IDENTIFICATION_PROPERTY = 'identification'
WEIGHT_PROPERTY = 'weight'
"""
@ibuildthecloud
ibuildthecloud / README.md
Last active May 14, 2024 21:29
k3s on WSL2

Instructions to hack up WSL2 on Windows 10 Build 18917 to run k3s (Kubernetes) and rio

Install WSL2

https://docs.microsoft.com/en-us/windows/wsl/wsl2-install

I already had Ubuntu-18.04 installed in wsl 1. So I just did wsl --set-version Ubuntu-18.04 2

Compile Kernel

Using Ubuntu 18.04 (I'm sure any distro will work), inside WSL2 download https://thirdpartysource.microsoft.com/download/Windows%20Subsystem%20for%20Linux%20v2/May%202019/WSLv2-Linux-Kernel-master.zip and extract to a folder. The latest version of the kernel source is available at (https://github.com/microsoft/WSL2-Linux-Kernel)

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 22, 2024 01:21
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+