Skip to content

Instantly share code, notes, and snippets.

View cao7113's full-sized avatar
🏠
Working from home

草色青青 cao7113

🏠
Working from home
View GitHub Profile
@schacon
schacon / git-http-proto.txt
Created July 26, 2013 22:16
Git HTTP transport protocol documentation
HTTP transfer protocols
=======================
Git supports two HTTP based transfer protocols. A "dumb" protocol
which requires only a standard HTTP server on the server end of the
connection, and a "smart" protocol which requires a Git aware CGI
(or server module). This document describes both protocols.
As a design feature smart clients can automatically upgrade "dumb"
protocol URLs to smart URLs. This permits all users to have the
@Jell
Jell / thor_autocomplete.rb
Last active April 12, 2020 23:39
Thor autocomplete
#!/usr/bin/env ruby
# Complete thor tasks script for bash
# Save it somewhere and then add
# complete -C path/to/script -o default thor
# to your ~/.bashrc
require 'fileutils'
THORFILES = ['thorfile', 'Thorfile', 'thorfile.rb', 'Thorfile.rb', '*.thor']
@jackhickey
jackhickey / vsCodeGitMac.txt
Last active June 19, 2024 10:11
Enabled vscode as your git editor on mac
# Inside of vscode open the command pallete and run '>shell command install code in path' or something along those lines...
git config --global core.editor "code --wait"
git config --global -e
(add the lines below inside in the git config...)
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active July 5, 2024 10:27
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized