diff --git a/.foam/templates/bullet-daily.md b/.foam/templates/bullet-daily.md new file mode 100644 index 0000000..c950203 --- /dev/null +++ b/.foam/templates/bullet-daily.md @@ -0,0 +1,17 @@ +--- +# This will create the note in the "journal" subdirectory of the current workspace, +# regardless of which file is the active file. +type: daily-note +foam_template: + name: Daily Log + description: BuJo Daily Log + filepath: 'bullet/daily/$FOAM_DATE_YEAR-$FOAM_DATE_MONTH-$FOAM_DATE_DATE-$FOAM_TITLE.md' +--- + +# $FOAM_TITLE + +* [ ] Migrate from \-1d + +## Documentation + +See [[BuJo Format]] diff --git a/.foam/templates/daily-note.md b/.foam/templates/daily-note.md new file mode 100644 index 0000000..d61f3a9 --- /dev/null +++ b/.foam/templates/daily-note.md @@ -0,0 +1,10 @@ +--- +type: daily-note +# This will create the note in the "journal" subdirectory of the current workspace, +# regardless of which file is the active file. +foam_template: + filepath: 'journal/$FOAM_TITLE.md' +--- + +* [ ] Create Daily Log +* [ ] Migrate Daily Log diff --git a/.foam/templates/docs.md b/.foam/templates/docs.md new file mode 100644 index 0000000..b5d2bf6 --- /dev/null +++ b/.foam/templates/docs.md @@ -0,0 +1,11 @@ +--- +# This will create the note in the "journal" subdirectory of the current workspace, +# regardless of which file is the active file. +type: documentation +foam_template: + name: Documentation + description: Create New Documentation + filepath: 'docs/my-docs/$FOAM_TITLE.md' +--- + +# $FOAM_TITLE diff --git a/.foam/templates/journal.md b/.foam/templates/journal.md new file mode 100644 index 0000000..4f9a4fb --- /dev/null +++ b/.foam/templates/journal.md @@ -0,0 +1,6 @@ +--- +# This will create the note in the "journal" subdirectory of the current workspace, +# regardless of which file is the active file. +foam_template: + filepath: 'journal/$FOAM_TITLE.md' +--- diff --git a/.foam/templates/new-note.md b/.foam/templates/new-note.md new file mode 100644 index 0000000..7a6b307 --- /dev/null +++ b/.foam/templates/new-note.md @@ -0,0 +1,9 @@ +--- +# This will create the note in the "journal" subdirectory of the current workspace, +# regardless of which file is the active file. +type: basic-note +foam_template: + name: Basic Note + description: Default Note Template + filepath: 'foam-notes/$FOAM_TITLE' +--- \ No newline at end of file diff --git a/.foam/templates/your-first-template.md b/.foam/templates/your-first-template.md new file mode 100644 index 0000000..5f85612 --- /dev/null +++ b/.foam/templates/your-first-template.md @@ -0,0 +1,25 @@ +# Foam Note Templates + +Foam includes note templates! +This allows you to easily create notes that have similar structure without having to use copy/paste :) + +Templates support the [VS Code's Snippet Syntax](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax), which means you can: +- add variables to the newly created note +- add tabstop to automatically navigate to the key parts of the note, just like a form +Below you can see an example showing a todo list and a timestamp. + +## Todo List + +1. ${1:First tabstop} +2. ${2:A second tabstop} +3. ${3:A third tabstop} + +Note Created: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} + +--- + +Try out the above example by running the `Foam: Create New Note From Template` command and selecting the `your-first-template` template. Notice what happens when your new note is created! + +To remove this template, simply delete the `.foam/templates/your-first-template.md` file. + +Enjoy! diff --git a/bullet/daily/2024-01-19-Starting Tech Guides.md b/bullet/daily/2024-01-19-Starting Tech Guides.md new file mode 100644 index 0000000..0a2f56f --- /dev/null +++ b/bullet/daily/2024-01-19-Starting Tech Guides.md @@ -0,0 +1,13 @@ +--- +# This will create the note in the "journal" subdirectory of the current workspace, +# regardless of which file is the active file. +type: daily-note +--- + +# Starting Tech Guides + +* [ ] Migrate from \-1d + +## Documentation + +See [[BuJo Format]] diff --git a/docs/my-docs/BuJo Format.md b/docs/my-docs/BuJo Format.md new file mode 100644 index 0000000..770eacf --- /dev/null +++ b/docs/my-docs/BuJo Format.md @@ -0,0 +1,27 @@ +--- +# This will create the note in the "journal" subdirectory of the current workspace, +# regardless of which file is the active file. +type: documentation +--- + +# BuJo Format + +This is sort of very losely based on Bullet Journals: + +## Tasks + +* [ ] To Do. +* [x] Done. +* [ ] ~~Irrelevant~~ (Abandoned) +* [ ] {Indicators} For indicators, See below. + +## Indicators + +* {>} Migrate next +* {<} Migrate "Up" + +## Notes + +* This is a short note. +* { } This note has an empty indicator. +* I have no idea what indicators I might use. diff --git a/foam-notes/gdb b/foam-notes/gdb new file mode 100644 index 0000000..12cbb3c --- /dev/null +++ b/foam-notes/gdb @@ -0,0 +1,10 @@ +--- +# This will create the note in the "journal" subdirectory of the current workspace, +# regardless of which file is the active file. +type: basic-note +--- + +# gdb + +Just a debuging utility see [gdb](../gdb/index.md) + diff --git a/inbox.md b/inbox.md new file mode 100644 index 0000000..58cd1f5 --- /dev/null +++ b/inbox.md @@ -0,0 +1,5 @@ +# Inbox + +This is intended for brief notes that will need to go elsewhere... + +[[gdb]] - need it (possibly) to sort out ffmpeg not playing mp4 files. \ No newline at end of file diff --git a/index.md b/index.md new file mode 100644 index 0000000..a7e1c13 --- /dev/null +++ b/index.md @@ -0,0 +1,12 @@ +# Tech Guides + +I think I'm going to go with mostly [Markdown](markdown), though may +convert some to [LaTeX](latex). I am currnetly workiong on guides for: + +* [tmux](tmux/) +* [git](git/) +* [ssh](ssh/) +* [Foam Notes](foam/) +* [Markown](markdown/) +* [LaTeX](latex/) + diff --git a/journal/2024-01-18.md b/journal/2024-01-18.md new file mode 100644 index 0000000..3bf2c8d --- /dev/null +++ b/journal/2024-01-18.md @@ -0,0 +1,8 @@ +--- +type: daily-note +# This will create the note in the "journal" subdirectory of the current workspace, +# regardless of which file is the active file. +--- + +* [ ] Create Daily Log +* [ ] Migrate Daily Log diff --git a/journal/2024-01-19.md b/journal/2024-01-19.md new file mode 100644 index 0000000..3bf2c8d --- /dev/null +++ b/journal/2024-01-19.md @@ -0,0 +1,8 @@ +--- +type: daily-note +# This will create the note in the "journal" subdirectory of the current workspace, +# regardless of which file is the active file. +--- + +* [ ] Create Daily Log +* [ ] Migrate Daily Log diff --git a/tmux/index.md b/tmux/index.md new file mode 100644 index 0000000..5a4a34e --- /dev/null +++ b/tmux/index.md @@ -0,0 +1,208 @@ +# Tmux Guide + +I think I want to have this more or less as I am starting to use tmux. + +## Sections + +* Starting +* Notes +* History + +## Starting + +### Start a new session + +``` +$ tmux +``` + +``` +$ tmux new +``` + +``` +$ tmux new-session +``` + +``` +Ctrl-b :new +``` + +### Start new named session + +``` +$ tmux -s session-name +``` + +``` +ctrl-b :new -s session-name +``` + +## Session Control + +Stuff related to controlling sessions. + +### List Sessions + +``` +$ tmux ls +``` + +``` +$ tmux list-sessions +``` + +``` +ctrl-b s +``` + +### Detach from Session + +``` +ctrl-b d +``` + +### Attach to Session + +#### Attach to last session + +``` +$ tmux a +``` + +``` +$ tmux at +``` + +``` +$ tmux attach +``` + +``` +$ tmux attach-session +``` + +#### Attach to Named Session + +``` +$ tmux a -t [session-name] +``` + +``` +$ tmux at -t [session-name] +``` + +``` +$ tmux attach -t [session-name] +``` + +``` +$ tmux attach-session -t [session-name] +``` + +#### Rename Session + +``` +ctrl-b : rename-session [-t current-name] [new-name] +``` + +``` +ctrl-b $ +``` + +## Panes + +Panes are how I've worked, apparently windows are another thing + +### Switch Panes + +#### Switch in arrow direction + +``` +ctrl-b up-arrow +``` + +``` +ctrl-b down-arrow +``` + +``` +ctrl-b right-arrow +``` + +``` +ctrl-b left-arrow +``` + +#### Toggle Active Pane + +``` +ctrl-b ; +``` + +#### Split Window Horizontal + +``` +ctrl-b : split-window -h +``` + +``` +ctrl-b % +``` + +#### Split Window Vertical + +``` +ctrl-b : split-window -v +``` + +``` +ctrl-b " +``` + +#### Show Pane Numbers + +``` +ctrl-b q +``` + +#### Switch Pane by Number + +``` +ctrl-b q [pane number] +``` + +## Help + + +### List Keys + +``` +$ tmux list-keys +``` + +``` +ctrl-b : list-keys +``` + +``` +ctrl-b ? +``` + +## Info + +### Show every session, window, pane et cetera + +``` +$ tmux info +``` + +## Notes + +This currently is the stuff that I am most likely to need most often. + +## History + +* 2023-01-19 - Create File + * Create file with most of the basic functions... +