diff --git a/journals/2023_01_06.md b/journals/2023_01_06.md index 27c1426..a2380a9 100644 --- a/journals/2023_01_06.md +++ b/journals/2023_01_06.md @@ -4,6 +4,7 @@ - ### ⚡ Highlights des Tages - Sync Logseq über git eingerichtet - Abends mit Vera zur Blutspende + - Nur Mennen und Hetti sind zur Beerdigung von Onkel Heinz eingeladen - ### 💼 Auf der Arbeit - - ### 🎓 Lessons learned @@ -30,11 +31,15 @@ - jetzt geht doch Privatstraße - Baugenehmigung muss nach Arnsberg - ## Scratchpad + collapsed:: true - a - b - c - Übung mit Relation - dafür lege ich meine Eltern [[Reinhold Kauer]], [[Maria Kauer]] und mich, [[Christian Kauer]] an. - - #+BEGIN_QUERY + - query-table:: true + query-sort-by:: block + query-sort-desc:: true + #+BEGIN_QUERY {:title " Scheduled dates found in any block" :query [:find (pull ?b [*]) :where @@ -75,4 +80,5 @@ - [[testpage]] - **18:30** [[quick capture]]: https://www.kuketz-blog.de/empfehlungsecke/ - [How to Create a Book Tracker in Logseq | appsntips](https://www.appsntips.com/learn/create-book-tracker-logseq-keep-track-books-you-read/) +- - \ No newline at end of file diff --git a/journals/2023_01_08.md b/journals/2023_01_08.md index e9b65d6..b5e69d0 100644 --- a/journals/2023_01_08.md +++ b/journals/2023_01_08.md @@ -1,6 +1,26 @@ +- ## [[Journal]] + type:: [[Journal]] + - ### ⚡ Highlights des Tages + - Mit Hetti und Vera zu Erni nach Bad Sassendorft gefahren + - Vera erbt einen Drilling von Heinz + - Papierkram mit einem Dirk und dem Jagdaufseher Christian erledigt + - Christian war mit seiner Frau Doris da und Astrid kam auch noch + - Erni ist sehr gefasst und erzählt unglaubliche Details von Heinz' Tod - grundsätzlich eine schöne Art zu gehen. + - wen er noch alles gesehen hat + - wie lange er klaren Kopfes zwischen den Welten verbracht hat + - Die Kinder hatte einen schönen Nachmittag bei Mennen + - Nachmittags waren sie in Olpe Eis essen + - Abends hat Frank ihnen Currywurst um Pommes gehlt + - ### 💼 Auf der Arbeit + - Michael ist heute schon nach Thalheim gefahren und gut angekommen + - ### 🎓 Lessons learned + - + - ### 🙏 Ich bin dankbar für + - - mit "td" den Dokument-Mode umschalten. Blocks werden ausgeblendet und Enter erzeugt nur eine neue Zeile, aber keinen neuen Block. Mit Shift+Enter wird dann unsichtbar ein neuer Block angelegt. #logseq - [(1476) How to Write Using Logseq (Long Form Writing Setup) - YouTube](https://www.youtube.com/watch?v=aYSbvGgLo9s) - Dinges ausblenden, Dokument-Mode, Shortcut "T D" - - Plugin-Empfehlung für Schreibmodus + - Plugin-Empfehlung f�r Schreibmodus - Strg c + Strg b -> Klammern um Links ausblenden -- \ No newline at end of file +- +- **06:25** [[quick capture]]: {{video https://youtube.com/watch?v=KN6i6MYBbjI&feature=share}} #TODO \ No newline at end of file diff --git a/logseq/config.edn b/logseq/config.edn index aa68adf..b0753ec 100644 --- a/logseq/config.edn +++ b/logseq/config.edn @@ -317,4 +317,5 @@ :editor/logical-outdenting? false :journal/page-title-format "yyyy-MM-dd" :ui/show-brackets? false + :graph/settings {:builtin-pages? false, :excluded-pages? false, :orphan-pages? true} } diff --git a/pages/Große Dateien finden - Speicher aufräumen (TreeSize, SpaceSniffer).md b/pages/Große Dateien finden - Speicher aufräumen (TreeSize, SpaceSniffer).md new file mode 100644 index 0000000..6b5881c --- /dev/null +++ b/pages/Große Dateien finden - Speicher aufräumen (TreeSize, SpaceSniffer).md @@ -0,0 +1,2 @@ +- Ein Tool wie TreeSize ist kostenpflichtig. +- Ein guter Tipp ist Space-Sniffer: [SpaceSniffer download (uderzo.it)](http://www.uderzo.it/main_products/space_sniffer/download.html) \ No newline at end of file diff --git a/pages/One-Note in Markdown konvertieren.md b/pages/One-Note in Markdown konvertieren.md new file mode 100644 index 0000000..eea2b6d --- /dev/null +++ b/pages/One-Note in Markdown konvertieren.md @@ -0,0 +1,130 @@ +tags:: Wissensmanagement + +- ## Quelle + - [(1458) Easily Convert OneNote to Markdown (and Obsidian.md) - YouTube](https://www.youtube.com/watch?v=C70jUkQyIQM) + + Mit dem im Video verlinkten Skript tritt immer folgender Fehler: + + > onenote Exception calling Publish" with "4" argument(s): The remote procedure call failed. (Exception from HRESULT: 0x800706BE) + + In Kombination mit diesem Skript konnte ich eine lauffähige Version erstellen: + + [theohbrothers/ConvertOneNote2MarkDown: Ready to make the step to Markdown and saying farewell to your OneNote, EverNote or whatever proprietary note taking tool you are using? Nothing beats clear text, right? Read on! (github.com)](https://github.com/theohbrothers/ConvertOneNote2MarkDown) + - ## Tabellen umwandeln + - [markdownTables (jmalarcon.github.io)](https://jmalarcon.github.io/markdowntables/) +- ## meine Lösung + - ```powershell + $OUTPUT_DIR = "C:\exp" + $ASSETS_DIR = "assets" + + $current_notebook = "" # set globally below + + Function Remove-InvalidFileNameChars { + param( + [Parameter(Mandatory = $true, + Position = 0, + ValueFromPipeline = $true, + ValueFromPipelineByPropertyName = $true)] + [String]$Name + ) + $newName = $Name.Split([IO.Path]::GetInvalidFileNameChars()) -join '_' + return ($newName.Replace(" ", "_")) + } + + write-host $OUTPUT_PATH + $OneNote = New-Object -ComObject OneNote.Application + + [xml]$Hierarchy = "" + $OneNote.GetHierarchy("", [Microsoft.Office.InterOp.OneNote.HierarchyScope]::hsPages, [ref]$Hierarchy) + + function handlePage($page, $path, $assets_path, $i) { + # Make the dir if not exists + $abspath = [IO.Path]::Combine($OUTPUT_DIR, $path) + New-Item -ItemType Directory -Force -Path $abspath | Out-Null + #Write-Host PAGE: $page.name at $path + $pagename = $page.name.Split([IO.Path]::GetInvalidFileNameChars()) -join '_' + $pagename = -join(([string]$i).PadLeft(2,'0'), "_", $pagename) + $filename_docx = -join($pagename, ".docx") | Remove-InvalidFileNameChars + $filename_md = -join($pagename, ".md") | Remove-InvalidFileNameChars + $filename_htm = -join($pagename, ".htm") | Remove-InvalidFileNameChars + $filename_assets = -join($pagename, "_files") #| Remove-InvalidFileNameChars + $path_docx = [IO.Path]::Combine($OUTPUT_DIR, $path, $filename_docx) + $path_htm = [IO.Path]::Combine($OUTPUT_DIR, $path, $filename_htm) + $path_md = [IO.Path]::Combine($OUTPUT_DIR, $path, $filename_md) + $path_assets = [IO.Path]::Combine($OUTPUT_DIR, $path, $filename_assets) + Write-Host Creating DOCX: $path_docx + if (-Not(Test-Path $path_md)) { + # $OneNote.Publish($page.ID, $path_docx, 5, "") + $OneNote.Publish($page.ID, $path_docx, "pfWord", "") + $OneNote.Publish($page.ID, $path_htm, 7, "") + pandoc.exe -i $path_docx -o $path_md -t markdown-simple_tables-multiline_tables-grid_tables --wrap=none + rm $path_docx + rm $path_htm + } + if (Test-Path $path_assets) { + $path_assets_wild = Join-Path $path_assets "*" + $section_assets = [IO.Path]::Combine($OUTPUT_DIR, $path, "assets") + New-Item -ItemType Directory -Force -Path $section_assets | Out-Null + $items = Get-ChildItem $path_assets_wild + $items | Rename-Item -NewName { $pagename + "_" + $_.Name }; + Move-Item -Force $path_assets_wild $section_assets + rmdir $path_assets + + # Replace image links with the right path + Write-Host Fixing image links + $LINK_REGEX = '!\[[^\]]*\]\(media\/image((.*?)\.(.*?))?(?=\"|\))(?\".*\")?\)(\{.*\})?' + $path_md2 = -join($path_md, "2") + $prefix = -join($pagename, "_") + $hello = (Get-Content -encoding utf8 $path_md) ` + -replace $LINK_REGEX, ("![[$prefix" + "image" + ('$2'.PadLeft(4, '0')) + '.$3]]') ` + -replace 'jpeg', 'jpg' | + Out-File -Encoding utf8 $path_md2 + Move-Item -Force $path_md2 $path_md + } + } + + function handleSection($section, $path) { + $path = Join-Path $path $section.name + Write-Host Section: $path + $i=0 + foreach($page in $section.Page) { + handlePage $page $path $assets_path $i + $i++ + } + } + + function handleSectionGroup($sg, $path) { + $path = Join-Path $path $sg.name + if ($sg.isRecycleBin -ne 'true') { + Write-Host Section Group: $path + foreach ($section in $sg.Section) { + handleSection $section $path + } + foreach ($sg2 in $sg.SectionGroup) { + handleSectionGroup $sg2 $path + } + } + } + + while ($true) { + try{ + foreach ($notebook in $Hierarchy.Notebooks.Notebook ) { + $current_notebook = $notebook.Name + Write-Host Notebook: $current_notebook + $path = $current_notebook + foreach ($sectiongroup in $notebook.SectionGroup) { + handleSectionGroup $sectiongroup $path + } + foreach ($section in $notebook.Section) { + handleSection $section $path + } + } + break + } catch { + Write-Host ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + Write-Host $_ + sleep 10 + } + } + ``` + - \ No newline at end of file diff --git a/pages/Vorteile von vernetzten Notizen.md b/pages/Vorteile von vernetzten Notizen.md new file mode 100644 index 0000000..06fe90c --- /dev/null +++ b/pages/Vorteile von vernetzten Notizen.md @@ -0,0 +1,11 @@ +tags:: logseq + +- [https://www.youtube.com/watch?v=ZQR26yg1P5k&list=PLR82QOE19MJwBbY4WxnJI23_ZgY72fx2P&index=2](https://www.youtube.com/watch?v=ZQR26yg1P5k&list=PLR82QOE19MJwBbY4WxnJI23_ZgY72fx2P&index=2) +- +- >Einzelne Gedanken als kleinste Einheit +- Aus der deutschen Video-Serien zum Thema LoqSeq +- +- > Kleinvieh-Taktik → jeden Tag ein bisschen +- > starte niemals leer + man hat immer Gedanken aus vorhandenen Notizen + Notizen verknüpfen ist Kreativität \ No newline at end of file diff --git a/pages/Wissensmanagement.md b/pages/Wissensmanagement.md new file mode 100644 index 0000000..08cb8f2 --- /dev/null +++ b/pages/Wissensmanagement.md @@ -0,0 +1,5 @@ +- [[OneNonte]] + - [[One-Note in Markdown konvertieren]] +- Allgemein + - [[Vorteile von vernetzten Notizen]] + - \ No newline at end of file