Compare commits
No commits in common. "f6ce2b60910957514ddf92c9594bd3fa6d2d40b3" and "5f568ee6495934b42de160b9a1d21e5a0c35ba5d" have entirely different histories.
f6ce2b6091
...
5f568ee649
|
@ -10,6 +10,138 @@
|
|||
{
|
||||
"id": "5b6ceb80caee1b9b",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Terminal Tips/CLI Tools/CLI Tool Collection/Vim/Vim.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "1dfe7d9c4e8dd41a",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Project Vault/Current Occupations/Potential and Future/About 60 Careers.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "a10cac5e7de32522",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Terminal Tips/Languages/Fortran 1.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "368b690b57efb87a",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Project Vault/Obsidian/Tips on Obsidian itself.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "e439a4adc42cc6ac",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "1a0bac1b67a9e17d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Terminal Tips/Computers/Linux/KDE/KDE Linux.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "71e364b0e1138307",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Project Vault/Current Occupations/Missions/Organizations.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "0bc03f1628dea8ab",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Terminal Tips/Computers/Linux/KDE/KDE Linux.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "da80847ae66727c1",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Machine Tips (Quantum)/Math/Algorithms/Encryption/Encryption Software.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "0df2d8640273e70d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Project Vault/Current Occupations/Missions/Organizations.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "6d7944057d965aa4",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Project Vault/Current Occupations/Missions/Organizations.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "be831ab9ae3b0b76",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
|
@ -31,6 +163,18 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "71e0f51c211cc694",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Machine Tips (Quantum)/Physics/Hardware/MicroControllers/Arduino.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "3345e0ca2b759e9e",
|
||||
"type": "leaf",
|
||||
|
@ -55,6 +199,18 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "6f2189b218fe34aa",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Terminal Tips/GUIs/Internet/Servers/Cloud Servers/Cloudron.md",
|
||||
"mode": "preview",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "63119b17f9c0e9f0",
|
||||
"type": "leaf",
|
||||
|
@ -114,8 +270,21 @@
|
|||
"source": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "86e5376cc2747c1a",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Machine Tips (Quantum)/Physics/Hardware/Spark Gap Physics.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 4
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
|
@ -244,25 +413,21 @@
|
|||
"omnisearch:Omnisearch": false
|
||||
}
|
||||
},
|
||||
"active": "5b6ceb80caee1b9b",
|
||||
"active": "e439a4adc42cc6ac",
|
||||
"lastOpenFiles": [
|
||||
"Coding Tips (Classical)/Project Vault/Obsidian/Tips on Obsidian itself.md",
|
||||
"Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/CLI Tools/CLI Tool Collection/Vim/Vim.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/Computers/Linux/KDE/KDE Linux.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/Languages/Fortran 1.md",
|
||||
"Coding Tips (Classical)/Project Vault/Current Occupations/Missions/Organizations.md",
|
||||
"Quantum spaces.canvas",
|
||||
"Coding Tips (Classical)/Project Vault/Obsidian/Encrypting Obsidian.md",
|
||||
"Coding Tips (Classical)/Project Vault/Obsidian/Alt. Obsidian.md",
|
||||
"Coding Tips (Classical)/Project Vault/Obsidian/Encrypting Obsidian.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/GUIs/Tools/Extensions.md",
|
||||
"Coding Tips (Classical)/Project Vault/Obsidian/imgFiles/Pasted image 20230815110450.png",
|
||||
"Coding Tips (Classical)/Project Vault/Obsidian/Encrypting Obsidian",
|
||||
"Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md",
|
||||
"Machine Tips (Quantum)/Math/Algorithms/Encryption/Encryption Software.md",
|
||||
"Machine Tips (Quantum)/Math/Algorithms/Encryption/Password Managers.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/GUIs/Internet/Servers/Cloud Servers/Linode.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/Computers/Linux/KDE/Users.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/About terminal.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/CLI Tools/CLI Tool Collection/Vim/Vim.md",
|
||||
"Machine Tips (Quantum)/Physics/Hardware/MicroControllers/Arduino UNO R4 Wifi.md",
|
||||
"Machine Tips (Quantum)/Physics/Hardware/MicroControllers/Arduino r4 Minima.md",
|
||||
"Machine Tips (Quantum)/Physics/Hardware/MicroControllers/Arduino.md",
|
||||
|
@ -279,6 +444,9 @@
|
|||
"Coding Tips (Classical)/Project Vault/Obsidian/imgFiles/Pasted image 20230810204012.png",
|
||||
"Coding Tips (Classical)/Terminal Tips/CLI Tools/Networking/DNS.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/CLI Tools/Networking/Protocols/Uniform Resource Identifier.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/GUIs/Internet/Servers/About Servers.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/GUIs/Internet/Hosting/Browser talk/Uniform Resource Locator.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/GUIs/Internet/Hosting/Browser talk/TLD.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/CLI Tools/Networking/Protocols",
|
||||
"Coding Tips (Classical)/Terminal Tips/GUIs/Internet/Servers/Cloud Servers",
|
||||
"Coding Tips (Classical)/Project Vault/Obsidian/imgFiles/Pasted image 20230810192136.png",
|
||||
|
@ -289,6 +457,7 @@
|
|||
"Machine Tips (Quantum)/Physics/Hardware/MicroControllers",
|
||||
"Coding Tips (Classical)/Project Vault/Current Occupations/Missions",
|
||||
"Coding Tips (Classical)/Terminal Tips/Computers/Linux/KDE",
|
||||
"Quantum spaces.canvas",
|
||||
"Coding Tips (Classical)/Terminal Tips/CLI Tools/CLI Tool Collection",
|
||||
"Classical",
|
||||
"Machine Tips (Quantum)/Math/Algorithms/Encryption",
|
||||
|
|
|
@ -9,6 +9,8 @@ git commit -m "Noted: `date +'%Y-%m-%d %H:%M:%S'`"
|
|||
git push -u origin main
|
||||
```
|
||||
|
||||
But basically this is the self-hosted information flow: A Sketch
|
||||
![[Pasted image 20230716192907.png]]
|
||||
|
||||
|
||||
---
|
||||
|
@ -17,20 +19,14 @@ git push -u origin main
|
|||
|
||||
My Obsidian files are all stored within Google Drive. So in order to maintain sync while still preserving cloud storage space, I used a few different steps than the guides, and well really it was a culmination of it all.
|
||||
|
||||
---
|
||||
|
||||
|
||||
### CURRENT METHOD: Syncing via Gitea Server
|
||||
|
||||
##### CURRENT METHOD: Syncing via Gitea Server
|
||||
|
||||
This can be done locally or via Google Drive. However, I will be using **[Linode](obsidian://open?vault=enter&file=Coding%20Tips%20(Classical)%2FTerminal%20Tips%2FGUIs%2FInternet%2FServers%2FCloud%20Servers%2FLinode)** to host [Gitea](obsidian://open?vault=enter&file=Coding%20Tips%20(Classical)%2FTerminal%20Tips%2FGUIs%2FInternet%2FRepos%2FGitea) to host my obsidian and all my repos locally.
|
||||
|
||||
But basically this is the self-hosted information flow: A Sketch
|
||||
![[Pasted image 20230716192907.png]]
|
||||
This can be done locally or via Google Drive. However, I will be using **[Linode](obsidian://open?vault=enter&file=Coding%20Tips%20(Classical)%2FTerminal%20Tips%2FGUIs%2FInternet%2FServers%2FCloud%20Servers%2FLinode)** to host [Gitea](obsidian://open?vault=enter&file=Coding%20Tips%20(Classical)%2FTerminal%20Tips%2FGUIs%2FInternet%2FRepos%2FGitea) to host my obsidian and all my repos locally. Go to the folder on your laptop that you'd like to start the git syncing your Obsidian Vault at and run:
|
||||
|
||||
|
||||
##### 1. **Setting Up Git repo on your local machine.**
|
||||
Go to the folder on your laptop that you'd like to start the git syncing your Obsidian Vault at and run:
|
||||
```
|
||||
git init
|
||||
```
|
||||
|
@ -75,7 +71,6 @@ So this is all great and all, you can now push and pull to a remote server that
|
|||
|
||||
###### *For Linux:* Sync the Obsidian vault very few minutes with this script via `cron`:
|
||||
|
||||
|
||||
```shell
|
||||
#!/usr/bin/env sh
|
||||
# ^^^^^^^^^^^^^^^ This says find the first instance of a sh (shell)
|
||||
|
@ -176,7 +171,49 @@ chmod +x zk_sync
|
|||
If there are spaces in your working directory just make sure that you put in wrapped double quotation marks.
|
||||
|
||||
3. What are the actual contents of the shell script though that have to be done?? Well, go ahead and `vim` into the `zk_sync` file and paste the following in:
|
||||
```sh
|
||||
#!/usr/bin/env sh
|
||||
|
||||
ZK_PATH=”/Volumes/GoogleDrive-117209510583853875316/My Drive/RESOURCES (Research - my notebook)/collabtestdir/Notepad"
|
||||
cd “$ZK_PATH”
|
||||
|
||||
git pull
|
||||
CHANGES_EXIST=”$(git status — porcelain | wc -l)”
|
||||
current="`date +'%Y-%m-%d %H:%M:%S'`"
|
||||
msg="Updated: $current"
|
||||
|
||||
if [ “$CHANGES_EXIST” -eq 0 ];
|
||||
then
|
||||
exit 0
|
||||
|
||||
fi
|
||||
git add .;
|
||||
git commit -q -m "$msg";
|
||||
# basically this outputs Updated: 2019-08-28 10:22:06
|
||||
git push -q
|
||||
```
|
||||
|
||||
If the above script does not work, attempt this shell as well:
|
||||
```sh
|
||||
#!/bin/bash
|
||||
|
||||
export PATH=$PATH:/usr/local/bin
|
||||
|
||||
gstatus='git status --porcelain'
|
||||
|
||||
if [ ${#gstatus} -ne 0 ]
|
||||
then
|
||||
|
||||
git add --all
|
||||
git commit -m "Automated sync: $gstatus"
|
||||
sleep 10
|
||||
git pull --rebase
|
||||
sleep 10
|
||||
git push
|
||||
|
||||
fi
|
||||
|
||||
```
|
||||
|
||||
Attempt #3 (this one worked!!):
|
||||
```shell
|
||||
|
@ -216,48 +253,23 @@ Updated `zk_sync` file"
|
|||
|
||||
#!/usr/bin/env sh
|
||||
|
||||
|
||||
|
||||
export ZK_PATH=/Volumes/GoogleDrive-117209510583853875316/My\ Drive/Resources/collabtestdir/Notepad
|
||||
|
||||
cd "$ZK_PATH"
|
||||
|
||||
git fetch
|
||||
|
||||
|
||||
|
||||
CHANGES_EXIST=$(git status — porcelain | wc -l)
|
||||
|
||||
formatted_date= $(date +"%A, %B %d, %Y, %H:%M:%S")
|
||||
|
||||
# current="`date + %H:%M:%S'`"
|
||||
|
||||
|
||||
# current="`date +'%Y-%m-%d %H:%M:%S'`"
|
||||
|
||||
msg="Updated: $formatted_date"
|
||||
|
||||
|
||||
|
||||
if [ “$CHANGES_EXIST” -eq 0 ];
|
||||
|
||||
then
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
git add .
|
||||
|
||||
git commit -m "$msg"; # Updated: 2019-08-28 10:22:06
|
||||
|
||||
sleep 10
|
||||
|
||||
#git pull
|
||||
|
||||
git push -u origin main
|
||||
|
||||
```
|
||||
|
||||
Run the script in the `/.local/bin` directory:
|
||||
|
@ -268,9 +280,7 @@ bash zk_sync
|
|||
and your git should be updated with that one command with the updated time and the number of lines that were changed in the git commit.
|
||||
|
||||
|
||||
Now that we have ensured that the script itself the hard part is over.
|
||||
**The next step is to make sure that you are syncing at a consistent time!**
|
||||
|
||||
Now that we have ensured that the script itself the hard part is over. The next step is to make sure that you are syncing at a consistent time!
|
||||
|
||||
4. Now it is time to submit this to the `launchd` scheduler. Navigate to `~/Library/LaunchAgents` as this is where you will be dropping your .plist file.
|
||||
|
||||
|
@ -300,7 +310,7 @@ note: The 180 integer interval is made in *seconds*, thus this script executes
|
|||
launchctl load -w ~/Library/LaunchAgents/us.shwetha.obsidian.plist
|
||||
|
||||
```
|
||||
to load this `launchd` action. This may be in your local user directory as well.
|
||||
to load this `launchd` action.
|
||||
|
||||
6. Now check your gitea repository.
|
||||
![[Pasted image 20230715021300.png]]
|
||||
|
@ -309,9 +319,8 @@ Ta-da!! You did it!!! All your work will now be synced to git every few minutes
|
|||
No need for pesky cloud storage or physical systems anymore. :)
|
||||
Enjoy.
|
||||
|
||||
---
|
||||
|
||||
###### ~~OLD METHOD: Making a Gitlab Repo in GDrive ~~
|
||||
####### ~~OLD METHOD: Making a Gitlab Repo in GDrive ~~
|
||||
DON'T DO THIS I learned the hard way :)
|
||||
1. **Find your Google Drive location and copy the directory path.
|
||||
```
|
||||
|
@ -381,11 +390,22 @@ Voila! You should see the changes now [over here](https://gitlab.com/shwetha729/
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
##### Resources:
|
||||
### Extra Tidbits:
|
||||
---
|
||||
|
||||
|
||||
- Lastly but not leastly, I stumbled upon Perlite in my search for obsidian sync.
|
||||
![[Pasted image 20230206134648.png]]
|
||||
The sample view of Perlite extension.
|
||||
|
||||
Another[ site that you can render ](https://gitlab-org.gitlab.io/frontend/playground/obsidian-and-gitlab-pages-demo/)Obsidian in:
|
||||
![[Pasted image 20230714005144.png]]
|
||||
|
||||
For instructions on setting up the front-end of Gitea to your Obsidian Vault head to Browser Talk.
|
||||
|
||||
---
|
||||
|
||||
##### Resources:
|
||||
- Follow the instructions [here](https://medium.com/analytics-vidhya/how-i-put-my-mind-under-version-control-24caea37b8a5) and document as you go:
|
||||
- on [Cron]( https://osxdaily.com/2020/04/27/fix-cron-permissions-macos-full-disk-access/):
|
||||
- *UPDATE*: crontab is deprecated for MacOS so the sync option given will not work.
|
||||
|
|
|
@ -32,7 +32,7 @@ Place any tips or tricks you find on the web on here.
|
|||
|
||||
## Plugins
|
||||
|
||||
The file too see all installed plugins through terminal is ```/Users/shwethajayaraj/Google\ Drive/My\ Drive/uploads/Obsidian/.obsidian/plugins/obsidian-extract-pdf-annotations```
|
||||
The file to see all installed plugins through terminal is ```/Users/shwethajayaraj/Google\ Drive/My\ Drive/uploads/Obsidian/.obsidian/plugins/obsidian-extract-pdf-annotations```
|
||||
|
||||
##### Extract PDF Annotations
|
||||
![[Pasted image 20221211145937.png]]
|
||||
|
@ -68,26 +68,13 @@ Your Obsidian vault is already quite secure given that it is locally hosted and
|
|||
---
|
||||
|
||||
|
||||
###### Misc. improvements
|
||||
|
||||
Recent Obsidian Updates:
|
||||
|
||||
###### Misc. improvements
|
||||
|
||||
- YouTube and Twitter links can now be embedded within your notes using the markdown image embed syntax (i.e. `![](https://www.youtube.com/...)`).
|
||||
- We've redesigned all the tree components (e.g. File Explorer, Outline view) to make the visual hierarchy more clear. If you are using a custom theme, make sure to update it (Settings → Appearance → Check for updates) in case it was impacted at all.
|
||||
- Bookmarks: Added new "Bookmark this block" menu item when right-clicking on a block ID.
|
||||
|
||||
---
|
||||
### Extra Tidbits:
|
||||
---
|
||||
|
||||
|
||||
- Lastly but not leastly, I stumbled upon Perlite in my search for obsidian sync.
|
||||
![[Pasted image 20230206134648.png]]
|
||||
The sample view of Perlite extension.
|
||||
|
||||
Another[ site that you can render ](https://gitlab-org.gitlab.io/frontend/playground/obsidian-and-gitlab-pages-demo/)Obsidian in:
|
||||
![[Pasted image 20230714005144.png]]
|
||||
|
||||
For instructions on setting up the front-end of Gitea to your Obsidian Vault head to Browser Talk.
|
||||
|
||||
---
|
||||
|
|
Loading…
Reference in New Issue