Skip to content

Instantly share code, notes, and snippets.

@mdvsh
Created January 10, 2022 23:08
Show Gist options
  • Select an option

  • Save mdvsh/4a92276f05631e6d1c42c109fa4301a4 to your computer and use it in GitHub Desktop.

Select an option

Save mdvsh/4a92276f05631e6d1c42c109fa4301a4 to your computer and use it in GitHub Desktop.

Revisions

  1. mdvsh created this gist Jan 10, 2022.
    4 changes: 4 additions & 0 deletions build_notes.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    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 {} \;
    5 changes: 5 additions & 0 deletions cp_notes.fish
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    function syncnotes -d "Copy over EEC281 notes from Obsidian"
    cp -a ~/Desktop/vault/281notes/. ~/Desktop/code/eecs281/notes/
    echo "synced notes from obsidian..."
    end