gtd
This hosts the application for personal efficiency.
Baikal¶
Prepare¶
Baikal docker image won't create all directories it needs. You have to do that upfront. Reference: https://github.com/ckulka/baikal-docker/issues/29
- SSH to NFS server
- Create the directories:
mkdir -p {/mnt/tank/pv/baikal/data/db,/mnt/tank/pv/baikal/config}
- Change the access rights:
chmod -R 775 /mnt/tank/pv/baikal
- Change the ownership:
chown -R 101:101 /mnt/tank/pv/baikal/*
Client setup¶
iPhone¶
- Settings - Calendar - Accounts - Add Account
- Server =
https://cal.buvis.net/cal.php/principals/<USER>
- Enter credentials for the
- Rename the account to
baikal
BusyCal¶
- Preferences - Accounts -
- Server address =
https://cal.buvis.net/dav.php/
- Enter credentials the
and it will fetch its calendars
Outlook¶
- Click Calendar icon at the bottome
- Right click a calendar group - Add Calendar - From Internet
- Location =
https://cal.buvis.net/cal.php/calendars/<USER>/<CALENDAR>?export
- When asked for credentials, enter the username as
\<USER>
to avoid login with default domain
Linkace¶
Setup¶
- Comment out volumeMounts in deployment.yaml (otherwise /app/.env will be readonly and step 5 will fail)
- Deploy by pushing to repository
- Exec into pod:
kubectl exec -it deployment/linkace -n gtd -- sh
- Fix /app/.env permissions:
chmod 666 /app/.env
- Navigate to Linkace on buvis to start the setup
- Database address and password can be found in
linkace-env
ConfigMap - Create the user account
- Get app key from pod's
/app/.env
and copy it tocluster-secrets
SECRET_LINKACE_APP_KEY
- Uncomment volumeMounts in deployment.yaml
- Push back to repo
Reference: - https://www.linkace.org/docs/v1/setup/setup-with-docker/simple/
Import bookmarks¶
- Exec into pod with UTF-8 support:
LANG=en_US.UTF-8 kubectl exec -it deployment/linkace -n gtd -- sh
- Start creating
storage/bookmarks.html
from heredoc:cat << EOF > storage/bookmarks.html
- Paste content from a backup
linkace-export.html
file - End heredoc by typing
EOF
on its own line - Import to linkace:
./artisan links:import bookmarks.html --skip-check --skip-meta-generation
- Lists are not captured in html export. You'll need to recreate them from csv backup.
Reference: - https://github.com/Kovah/LinkAce/issues/287#issuecomment-860229837 - https://www.linkace.org/docs/v1/cli/#import-links-from-a-html-bookmarks-file
Monica¶
Backup to sql¶
- When you use Settings - Export data - Export to SQL it will probably fail
- Copy exports directory from Monica:
POD_NAME=$(kubectl get pods -l=app.kubernetes.io/name=monica -n gtd -o=jsonpath='{range .items..metadata}{.name}{"\n"}{end}'); kubectl cp gtd/$POD_NAME:/var/www/html/storage/app/public/exports ~/Downloads/monica
Reference: - Monica issue 5937
Restore from sql¶
- Run Sequel Pro
- Connect to
monica-mariadb
service using its Cluster IP andmonica-mariadb
secret - Force delete all tables
- Create the tables by running
php artisan migrate
in monica pod File - Import
sql backup
Reference: - https://github.com/monicahq/monica/issues/5937#issuecomment-1084913591
Client setup¶
iPhone¶
- Settings - Contacts - Accounts - Add Account
- Server =
crm.buvis.net
- Username =
tomas@buvis.net
- Password =
<generate token in https://crm.buvis.net/settings/api>
- Rename the account to
baikal
- Advanced settings - Account URL = https://crm.buvis.net/dav/principals/tomas@buvis.net/
macOS¶
- System Settings - Internet Accounts - Add Account
- Username =
tomas@buvis.net
- Server address =
crm.buvis.net
- Description =
buvis
- Password =
<generate token in https://crm.buvis.net/settings/api>
/cal.php/principals/`