Skip to content

Instantly share code, notes, and snippets.

@dengliu
dengliu / job.yml
Created February 7, 2023 20:33
not share starrocks storage data dir with
---
apiVersion: "batch/v1"
kind: "Job"
metadata:
labels:
executionId: "placeholder"
teamDomain: "placeholder"
teamId: "placeholder"
jobId: "placeholder"
name: "placeholder"
@dengliu
dengliu / SSHwithgit2go.go
Created March 6, 2016 07:58 — forked from xorpaul/SSHwithgit2go.go
Working example with SSH and libgit2/git2go
package main
import (
git "github.com/libgit2/git2go"
"log"
)
func credentialsCallback(url string, username string, allowedTypes git.CredType) (git.ErrorCode, *git.Cred) {
ret, cred := git.NewCredSshKey("git", "/home/vagrant/.ssh/id_rsa.pub", "/home/vagrant/.ssh/id_rsa", "")
return git.ErrorCode(ret), &cred
@dengliu
dengliu / encrypted-git-repo.md
Created March 4, 2016 07:10
Transparent Git Encryption

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].

Description

When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes