Skip to content

Instantly share code, notes, and snippets.

View sangshuduo's full-sized avatar
💭
I may be slow to respond.

Shuduo Sang sangshuduo

💭
I may be slow to respond.
View GitHub Profile
@sangshuduo
sangshuduo / SimpleHTTPServerWithUpload.py
Created June 11, 2022 07:22 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@sangshuduo
sangshuduo / git_submodules.md
Created February 15, 2022 02:53 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.
@sangshuduo
sangshuduo / tmux-cheatsheet.markdown
Created November 12, 2021 03:09 — forked from amirrustam/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@sangshuduo
sangshuduo / listchars.vim
Created October 13, 2021 09:17 — forked from ruda/listchars.vim
Vim: listchars samples
set listchars=tab:→\ ,trail:·,precedes:«,extends:»,eol:¶
set listchars=tab:→\ ,trail:␣,extends:…,eol:⏎
set listchars=tab:‣\ ,trail:·,precedes:«,extends:»,eol:¬
set listchars=tab:␋\ ,trail:␠,precedes:«,extends:»,eol:␤
set listchars=tab:>-,trail:.,precedes:<,extends:>,eol:$
@sangshuduo
sangshuduo / .gitignore
Created November 30, 2012 07:13 — forked from adamgit/.gitignore
.gitignore file for Xcode4 / OS X Source projects
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# NB: if you are storing "built" products, this WILL NOT WORK,
# and you should use a different .gitignore (or none at all)
# This file is for SOURCE projects, where there are many extra
# files that we want to exclude
#
# For updates, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#########################