Browse Source

lisa šŸ“±

David Windham 4 months ago
parent
commit
4571b576fd
5 changed files with 160 additions and 19 deletions
  1. 37 13
      docs/computers/lisa.md
  2. 1 0
      docs/index.md
  3. 60 5
      docs/saas/github.md
  4. 1 1
      posts/2024/2024-11-27-posts.md
  5. 61 0
      posts/2024/2024-12-01-posts.md

+ 37 - 13
docs/computers/lisa.md

@@ -1,35 +1,59 @@
 # Lisa šŸ“±
 # Lisa šŸ“±
 
 
-M1 iPad Pro - on the road or couch. It's a reference to the 1983 Apple model and Lisa Simpson (e.g. - https://davidawindham.com/lisa/ ) which is appropriate given the amount of time spent on [_The Simpsons - Tapped Out_](https://davidawindham.com/the-simpsons/). Although it's mostly remote configuration and third party apps here, I need a place to keep some references.
+M1 iPad Pro - on the road or couch. The name is a reference to the [1983 Apple model and Lisa Simpson](https://davidawindham.com/lisa/) which is appropriate given the amount of time spent on [_The Simpsons - Tapped Out_](https://davidawindham.com/the-simpsons/). Although it's mostly remote configuration and third party apps here, I need a place to keep some references.
 
 
 
 
 ## Log
 ## Log
 
 
+- 24/12/01 - [_Working on an iPad_](/posts/working-ipad)
+  - codespaces + terminus - no more vi emulators or text editor
+- 22/12/20 - [_Working with Visual Studio Code and Github on my iPad_](/posts/vscode-ipad)
 
 
 
 
+## Notes 
+
+```sh
+esc key = āŒ˜ + . 
+```
+
 ## References
 ## References
 
 
 ### Switch Control
 ### Switch Control
 
 
 - https://support.apple.com/en-us/118667
 - https://support.apple.com/en-us/118667
 
 
-### SSH
-
-### Github Codespaces
-
-- Personalizing GitHub Codespaces for your account - https://docs.github.com/en/codespaces/setting-your-user-preferences/personalizing-github-codespaces-for-your-account#dotfiles
-- Introduction to dev containers - https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers#creating-a-custom-dev-container-configuration
-- 
+### Sidebar 
 
 
+- https://support.apple.com/en-us/102597
 
 
 ## Apps
 ## Apps
 
 
-- forScore - https://forscore.co/
-- ProCreate - https://procreate.com
-- Terminus - https://termius.com
-- Prompt 3 - https://panic.com/prompt/
+In order of most used
+
+- Safari
+- Mail
+- Messages
+- Calendar
+- Weather
+- Reminders
 - Obsidian - https://obsidian.md/mobile
 - Obsidian - https://obsidian.md/mobile
+- Terminus - https://termius.com
+- ~Prompt 3 - https://panic.com/prompt/~
+- Reddit - 
 - Github - 
 - Github - 
-- Adobe - 
+- ProCreate - https://procreate.com
+- Adobe - Illustrator, Fresco, Photoshop, Acrobat
+- Discord
+- Wake me Up
+- Slack
+- Teams
+- Meet
+- ChatGPT
 - Stripe - 
 - Stripe - 
+- forScore - https://forscore.co/
+- Jeopardy
+- pinout
+
+Retired 
 
 
+- The Simpsons Tapped Out

+ 1 - 0
docs/index.md

@@ -15,6 +15,7 @@ I use this library of documents as a quick reference to find technical answers,
 
 
 ## Log
 ## Log
 
 
+- 24/12/01 - [docs/saas/github](/docs/saas/github.md)
 - 24/11/23 - [Lisa](/docs/computers/lisa.md)
 - 24/11/23 - [Lisa](/docs/computers/lisa.md)
 - 24/11/18 - [PostgreSQL](/docs/db/PostgreSQL.md) v.17
 - 24/11/18 - [PostgreSQL](/docs/db/PostgreSQL.md) v.17
 - 24/11/17 - added [Deno](/docs/waf/deno)
 - 24/11/17 - added [Deno](/docs/waf/deno)

+ 60 - 5
docs/saas/github.md

@@ -1,13 +1,68 @@
 # Github
 # Github
 
 
+## Log
+
+- 24/12/01 - spent a good chunk of time in Github customizing workflows and devcontainers recently so that I can work from [my iPad](/docs/computers/lisa.md) and have a better co-authoring workflow.
+
+### Docs
+
+https://docs.github.com/  
+https://formulae.brew.sh/formula/gh
+```sh
+brew install gh
+```
+### Pages
+
+https://docs.github.com/en/pages
+
+- always use a specific branch
+- Repo Settings -> Evironments -> Deployment Branches
+
+### CLI
+
+https://cli.github.com  
+https://docs.github.com/en/github-cli/github-cli
+
+### Codespaces
+
+https://github.com/features/codespaces  
+https://docs.github.com/en/codespaces
+
 ### Actions
 ### Actions
 
 
-Creating custom actions - https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#creating-a-custom-github-actions-workflow-to-publish-your-site
+https://docs.github.com/en/actions
 
 
-Docusaurus - Triggering deployment with Github actions - https://docusaurus.io/docs/deployment
+#### Using Rsync with Keys
 
 
-Obsidian - easiest way to sync with git - https://forum.obsidian.md/t/the-easiest-way-to-setup-obsidian-git-to-backup-notes/51429
+https://github.com/shimataro/ssh-key-action
 
 
-### Pages
+```sh
+cd ~/.ssh
+ssh-keygen -t rsa -f git-zeke-action -b 4096 -C "david@ovid.local"
+Generating public/private sa key pair.
+Enter passphrase (empty for no passphrase): # leave it empty
+You indetification has been saved in git-zeke-action.
+```
+
+```sh
+# login to server and copy over git-zeke-action
+cat git-zeke-action.pub >> ~/.ssh/authorized_keys
+```
+
+Github Repo > Settings > Secrets
+
+```yml title="deploy-prod.yml"
+- name: gwsc-deploy-key
+  uses: shimataro/ssh-key-action@v2
+  with:
+    key: ${{ secrets.GIT_ZEKE_KEY }}
+    known_hosts: unnecessary
+    if_key_exists: fail
+
+- name: gwsc-known_hosts
+  run: ssh-keyscan -p ${{ secrets.GIT_ZEKE_PORT }} -H ${{ secrets.GIT_ZEKE_HOST }} >> ~/.ssh/known_hosts
+
+- name: gwsc-rsync
+  run: rsync -aPvz -e "ssh -p ${{ secrets.GIT_ZEKE_PORT }}" --exclude=img/.DS_Store --exclude=robots.txt --delete build/ ${{ secrets.GIT_ZEKE_USER }}@${{ secrets.GIT_ZEKE_HOST }}:/var/www/domain.com/html/
+```
 
 
-Custom Domains - https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site

+ 1 - 1
posts/2024/2024-11-27-posts.md

@@ -1,7 +1,7 @@
 ---
 ---
 title: Thanksgiving
 title: Thanksgiving
 slug: thanksgiving
 slug: thanksgiving
-description: Today I learned that you can sync dotfiles to Github Codespaces.
+description: Today I learned what I'm thankful for.
 <!--- authors:
 <!--- authors:
   - name: David Windham
   - name: David Windham
     title: Something Else
     title: Something Else

+ 61 - 0
posts/2024/2024-12-01-posts.md

@@ -0,0 +1,61 @@
+---
+title: Working on an iPad
+slug: working-ipad
+description: Today I learned to sync remote servers using github codespaces.
+<!--- authors:
+  - name: David Windham
+    title: Something Else
+    url: https://davidawindham.com
+    image_url: https://davidawindham.com/til/img/thankgiving.jpg -->
+tags: [code, dev]
+image: https://davidawindham.com/til/img/thankgiving.jpg
+hide_table_of_contents: true
+---
+
+Today I learned to sync remote servers using github codespaces.
+
+<!--truncate-->
+
+Weā€™ve moved into our guest bedroom downstairs because weā€™re renovating upstairs. Iā€™m now starting my mornings in the den instead of my office where it's warmer next to the fireplace and my [iPad](/docs/computers/lisa) is my go to lap device. Since Iā€™ve noticed that I get a good bit of traffic to the first post I ever made about working with [VSCode on my iPad](/posts/vscode-ipad/) , I figured I should follow up with a bit more detailed information for any of you out there looking to do the same. Although Iā€™ve got a laptop, my iPad pro, magic keyboard, & pencil is just more comfortable in bed, on the couch, or on the road.  My laptop is kinda my reserve development machine, so I really donā€™t like the odds of spilling coffee on it or dropping it somewhere. Up until recently, I mostly used my iPad as an input deviceā€¦ you know watching movies in hotels, reading emails, and surfing Reddit. Now that Iā€™ve got it out all the time, Iā€™ve discovered some really nice ways of using it more for the 'O' in I/O[^1].
+
+## File System
+
+One of the biggest issues is not having an easy to access to the file system thatā€™s relatively secured and not obscured by iOS. Youā€™re not going to be able to easily mount a directory using a terminal emulator. And although you can drag files on and off with a nearby Apple machine, Iā€™ve found the easiest way to get around this is to use cloud storage. I use the default Apple Notes, Reminders, Calendar, etc so I configure these to use iCloud. Iā€™ve also added iCloud storage to a couple of other apps. I use apps for the suite of Google and Microsoft cloud products as well because most folks I work with use one of their ecosystems and itā€™s easier to work with the files using the native cloud sharing features.
+
+## Assets
+
+On of the original reasons I got the iPad was to have a touch sensitive drawing device, but Iā€™ve found that the other Adobe iOS apps are perfectly capable for quick editing. Some of them are even easier to use in some respects. I regularly use Illustrator, Photoshop, & Acrobat but I usually open ProCreate over Fresco for creative drawing. Iā€™ve found that Appleā€™s native Notes, Screenshots, and Photos apps are better for quick drawn notations and photo edits. Otherwise, Iā€™ll only occasionally open Premier Rush, Capture, or Express if Iā€™m on the go and need to try and impress someone quickly.
+
+## Writing
+
+I write all formal, as in soon to be a pdf, letters in Apple Pages since I have some fancy letter templates stored there. I also use the Apple native email client. Itā€™s so good even though I canā€™t convince my wife otherwise. Iā€™m also now fond of the new native AI features even though I also have a web based and native OpenAI app. Iā€™m looking forward to Apple integrating other APIs into Apple Intelligence. For web publishing, I create the majority of my writing in Markdown because I can more easily integrates in a standard open source format. I use Obsidian[^2] as my editor because I also use it on my desktops. Itā€™s performant and lightweight on iOS. I like to keep it split screen with a browser when I making notes and I even use it with syntax highlighting for round trips to Stack Overflow.
+
+## Code
+
+Automated testing, suggestions, and copilot have forever changed my coding brain. Perhaps itā€™s not for the best, but it certainly makes me much more efficient and productive.  This means I really need a full on integrated development environment. Iā€™m sure there are an assortment of text editors available for iOS. I remember loading up one of the first on the iPhone version one and thinking to myself ā€œyeah, this will never workā€.  Sans keyboard and IDE[^3], it wouldnā€™t have but Iā€™m now making this work with using cloud environments. Iā€™m primarily using VSCode and CodeSpaces[^4] to accomplish this and I can sync various configurations using Github. 
+
+## Network
+
+Iā€™m using the terminal emulator Terminus[^5] to make network connections from iOS. Iā€™ve configured key based SSH connections between my servers, computers, and codespaces so that I can easily sync files and run commands from each of them. Iā€™ve started automating the connections for build and file sync steps. Iā€™m also using Wake Me Up, an app that uses a magic packet to wake from LAN, to connect to my local computers. This allows me to tap into their linux underpinnings from my terminal giving me all the tools I would have on my desktop or laptop. 
+
+## Monitor
+
+The one thing I really donā€™t use it much for is a sidecar monitor. Iā€™ve gone through various monitor configurations over the years, and Iā€™ve found that I prefer a single monitor as it tends to keep my attention more organized. Having my iPad, or any other device for that matter, open alongside of my desktop is usually just a distraction. Itā€™s not enough screen real estate to really matter. The only decent use case is testing iOS apps through Xcode instead of using the simulator.  
+
+## A/V
+
+There are a couple other things Iā€™ve found convenient. For virtual meetings, I set up Zoom, MS Teams, or whatnot. I like the face tracking with center stage and I can more easily adjust the camera for when I want to duck offscreen. And for boring meetings it keeps my main machine free to double my billable hours. For in person meetings, you can use the audio/video recording and transcribe features of iOS.  I use airplay and screen mirroring regularly to connect with my other a/v devices. I regularly stream music in the house and I even found that itā€™s much easier to use the keyboard and trackpad on the iPad to search and control the AppleTV or Music.
+
+<div>&nbsp;</div>
+
+So yes, you can definitely sub in your iPad for development, sysadmin, and other things. Itā€™s more comfortable in the air, on the road, or on the couch. I read somewhere that Apple is working on a new monitor/tablet of sorts thatā€™s tailored towards home automation. Iā€™m inā€¦ take my money. I'm a shareholder. The better half is getting an
+
+<div>&nbsp;</div>
+
+---
+
+[^1]: I/O https://en.wikipedia.org/wiki/Input/output
+[^2]: Obsidian - https://obsidian.md
+[^3]: IDE -  https://en.wikipedia.org/wiki/Integrated_development_environment
+[^4]: Github Codespaces - https://github.com/features/codespaces
+[^5]: Terminus - https://termius.com