Skip to content

Instantly share code, notes, and snippets.

View taylorpaul's full-sized avatar

Taylor Paul taylorpaul

View GitHub Profile
@KnorpelSenf
KnorpelSenf / code-c.sh
Last active December 10, 2025 12:12
Open VS Code Devcontainer From Command Line
code() {
# Detect WSL
__code_is_wsl=0
if [ -n "$WSL_DISTRO_NAME" ] || grep -qi microsoft /proc/version 2>/dev/null; then
__code_is_wsl=1
fi
# Check for required external commands
for __code_dep in code realpath xxd; do
if ! command -v "$__code_dep" >/dev/null 2>&1; then
@dansuh17
dansuh17 / unsubmodule.md
Created May 29, 2018 06:10 — forked from ryaninvents/unsubmodule.md
Convert git submodule to regular directory

From Stack Overflow.

# Fetch the submodule commits into the main repository
git remote add submodule_origin git://url/to/submodule/origin
git fetch submodule_origin

# Start a fake merge (won't change any files, won't commit anything)
git merge -s ours --no-commit submodule_origin/master