Skip to content

Instantly share code, notes, and snippets.

View Chever-John's full-sized avatar
👋
Coding

Chever John Chever-John

👋
Coding
View GitHub Profile
@MicahParks
MicahParks / go get private GitLab with group and subgroup (Golang modules).md
Last active October 28, 2025 12:42
go get private GitLab with group and subgroup (Golang modules)

Problem

The go command line tool needs to be able to fetch dependencies from your private GitLab, but authenticaiton is required.

This assumes your private GitLab is hosted at privategitlab.company.com.

Environment variables

The following environment variables are recommended:

export GO111MODULE=on
export GOPRIVATE=privategitlab.company.com

Parse the kubernetes manifest in yaml or json, don't care a manifest type.

Examples:

package main

import (
	"bytes"
	"context"
@zoilomora
zoilomora / README.md
Last active April 20, 2025 20:46
How to disable systemd-resolved in Ubuntu

How to disable systemd-resolved in Ubuntu

Stages

  • Disable and stop the systemd-resolved service:

      sudo systemctl disable systemd-resolved.service
      sudo systemctl stop systemd-resolved
    
  • Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf:

@islishude
islishude / k8s-install.md
Last active October 16, 2025 07:07
k8s-国内源安装

MOVE TO HERE

注意以下命令,需要切换到 root 后运行

安装 docker

首先确定已经安装完成 docker,如果没有安装可以使用以下脚本快速安装并配置:

@shanzi
shanzi / .tmux.conf
Last active March 11, 2023 15:57
My tmux configuration
run-shell "powerline-daemon -q"
source "$HOME/.local/lib/python3.8/site-packages/powerline/bindings/tmux/powerline.conf"
set -g default-terminal "xterm-256color"
# set-option -g default-command "/usr/local/bin/reattach-to-user-namespace -l /bin/zsh"
# install reattach-to-user-namespace first
# --> brew install reattach-to-user-namespace
new-session