Skip to content

Instantly share code, notes, and snippets.

@arreusch
Last active March 17, 2021 04:45
Show Gist options
  • Select an option

  • Save arreusch/85d25478839d0964aa2e4e44fb8be273 to your computer and use it in GitHub Desktop.

Select an option

Save arreusch/85d25478839d0964aa2e4e44fb8be273 to your computer and use it in GitHub Desktop.

Revisions

  1. @RABBOT RABBOT renamed this gist Jan 8, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @RABBOT RABBOT renamed this gist Jan 7, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @RABBOT RABBOT renamed this gist Jan 7, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @RABBOT RABBOT renamed this gist Jan 7, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. @RABBOT RABBOT created this gist Jan 7, 2021.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/bin/bash
    TTY_TMP=$(mktemp)
    $(socat -d -d ~/Library/Containers/com.docker.docker/Data/debug-shell.sock pty,rawer 2>&1 | grep -Eo --line-buffered "/dev/tty\w+" > ${TTY_TMP} ) &
    sleep 2
    TTY=$(tail -n 1 "${TTY_TMP}")
    picocom $TTY 2>/dev/null