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 / gist:b7165a9ada1fbee6dae7dd014bda11e1
Created October 24, 2025 21:49
~/.config/fastfetch/config.jsonc
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"source": "~/.config/fastfetch/apple_quote_half_translucent.png",
"type": "kitty",
"height": 30,
"width": 90,
"padding": {
"top": 1,
"left": 1
@sangshuduo
sangshuduo / ghostty-config
Last active February 21, 2025 15:33
ghostty-config
# Library/Application\ Support/com.mitchellh.ghostty/config
keybind = cmd+d=new_split:down
keybind = cmd+r=new_split:right
theme = Ubuntu
background-opacity = 0.9
font-size = 16
font-family = Ubuntu Nerd Font Mono
copy-on-select = true
window-save-state = always
mouse-hide-while-typing = true
@sangshuduo
sangshuduo / .wezterm.lua-mac
Last active January 10, 2024 05:10
.wezterm for mac
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
@sangshuduo
sangshuduo / .wezterm.lua
Created December 14, 2023 04:09
.wezterm.lua on Ubuntu
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
@sangshuduo
sangshuduo / $HOME-slash-.cargo-slash-config
Last active September 10, 2024 16:14
.cargo-slash-config.toml
[net]
git-fetch-with-cli = true
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'rsproxy'
#replace-with = 'tuna'
#replace-with = 'ustc'
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
@sangshuduo
sangshuduo / default.kdl
Last active March 15, 2023 17:19
.config/zellij/layouts/default.kdl
layout {
pane size=1 borderless=true {
plugin location="zellij:tab-bar"
}
pane split_direction="vertical" {
pane size="75%"
pane split_direction="horizontal" {
pane size="40%" command="htop"
pane size="60%" command="btm"
}
@sangshuduo
sangshuduo / alacritty.yml
Created January 16, 2023 01:40
alacritty.yml
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Import additional configuration files
#
# Imports are loaded in order, skipping all missing files, with the importing
# file being loaded last. If a field is already present in a previous import, it
# will be replaced.
#
# All imports must either be absolute paths starting with `/`, or paths relative
# to the user's home directory starting with `~/`.
@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.