Skip to content

Instantly share code, notes, and snippets.

View jstine35's full-sized avatar

Jake Stine jstine35

View GitHub Profile
@arteymix
arteymix / git-archive-all
Last active March 15, 2024 10:55
Archive HEAD and its submodules recursively
#!/usr/bin/env sh
if [ -z $1 ]; then
echo "You must specify a super-archive name."
exit 1
fi
git archive --prefix "$1/" -o "$1.tar" HEAD
git submodule foreach --recursive "git archive --prefix=$1/\$path/ --output=\$sha1.tar HEAD && tar --concatenate --file=$(pwd)/$1.tar \$sha1.tar && rm \$sha1.tar"
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 29, 2024 08:12
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname