Skip to content

Instantly share code, notes, and snippets.

@mdvsh
Created January 10, 2022 23:08
Show Gist options
  • Save mdvsh/4a92276f05631e6d1c42c109fa4301a4 to your computer and use it in GitHub Desktop.
Save mdvsh/4a92276f05631e6d1c42c109fa4301a4 to your computer and use it in GitHub Desktop.
misc files for backing and building notes for eecs 281
for note in ./notes/*.md; do
sed -i -e 's/!\[\[\([^]]*\)\]\]/!\[\[\1\]\]\(https:\/\/github.com\/mdvsh\/eecs281\/blob\/main\/notes\/media\/\1\)/g' $note
done
find . -name '*.md-e' -exec rm -rf {} \;
function syncnotes -d "Copy over EEC281 notes from Obsidian"
cp -a ~/Desktop/vault/281notes/. ~/Desktop/code/eecs281/notes/
echo "synced notes from obsidian..."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment