Igor Dvorkin
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # iOS Software engineer nomad howto _Please add comments [here](https://hackmd.io/Z_2EucqOQnaoHq2KxRwlEw)_ So you want to be an iPad Developer Nomad. A person who can do all their development on the iPad. I'm not sure why you'd want to be such a character, in fact, I'm not sure why I want to be such a character, but I do, and here's how I do it. To be a developer nomad, you better already be a command line wiz. If you're not at an expert at the terminal, vim or Emacs and TMUX - don't even try. There are three paths - remote development, local development, and hybrid. For all of these you'll need an external keyboard, which I'll also discuss. <!-- prettier-ignore-start --> <!-- vim-markdown-toc GFM --> - [Remote Development - Blink](#remote-development---blink) - [ssh super powers - port forwarding and TMUX auto-attach.](#ssh-super-powers---port-forwarding-and-tmux-auto-attach) - [Local Development - iSh, iVIM, Working Copy, etc](#local-development---ish-ivim-working-copy-etc) - [Run Linux - iSH](#run-linux---ish) - [Run git - Working copy](#run-git---working-copy) - [Run Vim - iVIM](#run-vim---ivim) - [Run python - Pythonista](#run-python---pythonista) - [Run Jupyter - Carnets](#run-jupyter---carnets) - [Edit markdown](#edit-markdown) - [Hybrid development - Consistency](#hybrid-development---consistency) - [The external keyboard.](#the-external-keyboard) - [The keyboard I use](#the-keyboard-i-use) - [The iPad stand I use](#the-ipad-stand-i-use) - [Caps to Control](#caps-to-control) - [Back tick to escape.](#back-tick-to-escape) - [Carrying bags](#carrying-bags) - [Related links](#related-links) <!-- vim-markdown-toc --> <!-- prettier-ignore-end --> ### Remote Development - Blink This is the easy way, but you're going to need a good low latency network. First you need a remote box, I use lightsail. For 10\$ a month I've never run out of CPU or disk. Next you need to be able to connect to the box using SSH, and that requires an ssh client. I use [blink](https://blink.sh/) and couldn't be happier. Great product, great support. #### ssh super powers - port forwarding and TMUX auto-attach. Because ssh doesn't keep persistent sessions, I use TMUX with an auto reattach script. If you're not doing this, go learn how it's awesome. You should also know about ssh [port forwarding](https://github.com/idvorkin/techdiary#ssh) My [dot files](https://github.com/idvorkin/settings) should provide some insights on powerful command line tricks. For inspiration, here's what my TMUX sessions look like (press [C-B w](https://github.com/idvorkin/Settings/blob/master/shared/.tmux.conf) to get this view) ``` (0) - main: 6 windows (attached) (1) ├> 0: vim* (1 panes) "ip-172-26-8-55" (2) ├> 1: zsh- (1 panes) "ip-172-26-8-55" (3) ├> 2: glances (1 panes) "ip-172-26-8-55" (4) ├> + 3: ntop (2 panes) (5) ├> 7: zsh (1 panes) "ip-172-26-8-55" (6) - servers: 3 windows (7) ├> 0: jekyll blog* (1 panes) "ip-172-26-8-55" (8) ├> 1: techdiary grip- (1 panes) "ip-172-26-8-55" (9) └> 2: jupyter serve (1 panes) "ip-172-26-8-55" ``` (For folks that are considering [MOSH](https://mosh.org/), MOSH has great promise, but the project hasn't been updated in years, and still doesn't support true color. For my needs ssh+TMUX+auto-reconnect is perfect.) ### Local Development - iSh, iVIM, Working Copy, etc Remote development is perfect, except of course when you have no and or slow network. At this point you need to get creative. Luckily, there has been lots of improvement in this space. #### Run Linux - iSH The holy grail. [iSH](https://iSH.app) takes a very impressive approach. And [tbodt](https://github.com/tbodt/) the author of iSH is incredibly cool, I have the utmost respect for his project and his style, and I even have his user name memorized. iSH Creates an x86 emulated machine (e.g. simulate execution), and run alpine Linux in it. I love this but it has two big gaps. A) Compatibility B) Speed. There are still CPU instructions and system calls that aren't supported so large swaths of applications don't work - E.g. NPM, Rust. B) Because it's emulated it's slow, so I need to use trimmed down versions of all my configurations. When your software can run iSH, and is fast enough, you're done. However because of the compatibility and speed concerns, you'll often need other solutions to augment iSH. Here are the ones I use #### Run git - Working copy Working Copy - the best git client for iOS, it's truly fantastic. So many features you should read the documentation as carefully as you would for TMUX. Even though it's graphical it can be automated because it exposes iOS APIs via URL that other tools (like VIM) can execute. Super cool. Example callbacks I use are: Pull All Repos: working-copy://x-callback-url/pull?key=secret&repo=%2A A cousin to Working Copy is Git Hawk this tool allows you to monitor your GitHub messages. #### Run Vim - iVIM [iVIM](https://github.com/terrychou/iVim) does a great job being VIM, but you tend not to use VIM in isolation, you need Git and Plugins and often some command line integration. There are workarounds, some of which painful, but I'll describe them here. - git integration This is a bizarre, but surprisingly effective technique. While iVIM can't run git, Working Copy can create a directory it has access to in another app (like iVIM), and execute git commands on it. The approach here is you setup git repositories into iVIM (working copy calls these TK), then you set the remote of the synced directory to be the git target you want (e.g. github.com/idvorkin/settings). Then every time you want to use git commands, you flip to working copy, and it just works. Given how hacky this sound it works amazingly well. - bundle/plugin integration This is painful as most plugin managers execute git behind the covers. To get this to work you need to copy your bundle directory into iVIM using the iOS Files app. For some reason, when I try this it fails. An alternative I'm planning on trying is git TK Now because iVIM doesn't support git you need to use Working Copy, and so far that has worked well. - opening files from other apps This works decently, you the :idocu command to get the iOS File Picker and then choose files from other apps. - sharing files to other apps This works very well, use the share to and you're done. - font management While not apple UI friendly it's supported use the :ifont command, e.g.: :ifont 0 4 #### Run python - Pythonista #### Run Jupyter - Carnets #### Edit markdown - Editorial - Markdown editor that can interact with Working Copy (seems nicer then Byword) - Byword - Markdown editor that can interact with Working Copy - MWeb - Markdown editor that can interact with Working Copy ### Hybrid development - Consistency What is hybrid development? It's remote development when you've got the network and local development when you don't. This model is similar to having to work on multiple machines at the same time. The main complexity with hybrid development is keeping everything in sync. To do this I keep everything in git, and then run a cron job that's pushing and pulling continuously. My cron job approach is: https://github.com/idvorkin/Settings/blob/master/shared/cron_git_sync.sh The two gaps here are merge conflicts (which I handle manually), and not syncing on my iPad, which is tricky because I haven't found a way to do a periodic timer to arbitray command execution yet (TK: Holler if you have a good way to do this) ### The external keyboard. #### The keyboard I use I'm a huge fan of ergo keyboards. iClever makes a [cheap folding ergo Bluetooth keyboard](https://www.amazon.com/dp/B01JA6HG88/) that support up to 3 devices. I prefer this to all my laptop keyboards. #### The iPad stand I use Getting a good stand is hard and I'm constantly iterating. For places I use my iPad a lot at home I use this [ergo monitor arm equivalent](https://www.amazon.com/gp/product/B074PFVVBH/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1). It lets you position your relatively heavy iPad into any position or orientation. For remote use, I want something that is light and fits in my bag. I've tried slews of stands and I dislike all of them. I'm currently using the [moko folding](https://www.amazon.com/gp/product/B017TU2WGS/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1) , which I'm not thrilled with, but best I've found. #### Caps to Control Finally, built into iOS 13.4 #### Back tick to escape. The keyboard I use has backtick where escape should be. In VIM this is super painful iSH and blink have options to flip this. In iVIM you can do a key remap - e.g. ``` :imap ` <C-[> :cmap ` <C-[> ``` #### Carrying bags Slightly off topic, but if you made it this far, you probably care about small bags as well. It's taken me several tries, but [I've concluded](/notes/irl.md#work-bag) I like the smallest bag possible. I use a 13" macbook pro laptop and an iPad Pro 10" and this is the perfect bag for me: https://www.amazon.com/gp/product/B07WNPPF72 There's also the horizontal version - which is slightly bigger but also nice: https://www.amazon.com/gp/product/B07H4QYC2D/ ### Related links - My general [iOS tips](notes/ios.md). - [Automating iOS](https://www.macstories.net/stories/automating-ios-how-pythonista-changed-my-workflow/) - [x-callback-urls for OmniFocus](https://inside.omnifocus.com/url-schemes)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully