This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # recovery-ssh.sh (v6) — start an SSH server inside macOS Recovery / the | |
| # installer environment on Apple Silicon so a remote operator can get a shell. | |
| # | |
| # Run it in Recovery: Utilities -> Terminal, then | |
| # | |
| # curl -fsSL <url> | sh | |
| # | |
| # It authorises exactly one public key, obtains a host key, and runs sshd in | |
| # the foreground so authentication attempts are visible in the Terminal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # recovery-ssh.sh — start an SSH server inside macOS Recovery / the installer | |
| # environment on Apple Silicon so a remote operator can get a shell. | |
| # | |
| # Run it in Recovery: Utilities -> Terminal, then | |
| # | |
| # curl -fsSL <url> | sh | |
| # | |
| # It authorises exactly one public key, generates host keys, and runs sshd in | |
| # the foreground so authentication attempts are visible in the Terminal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # recovery-ssh.sh — start an SSH server inside macOS Recovery / the installer | |
| # environment on Apple Silicon so a remote operator can get a shell. | |
| # | |
| # Run it in Recovery: Utilities -> Terminal, then | |
| # | |
| # curl -fsSL <url> | sh | |
| # | |
| # It authorises exactly one public key, generates host keys, and runs sshd in | |
| # the foreground so authentication attempts are visible in the Terminal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # recovery-ssh.sh — start an SSH server inside macOS Recovery / the installer | |
| # environment on Apple Silicon so a remote operator can get a shell. | |
| # | |
| # Run it in Recovery: Utilities -> Terminal, then | |
| # | |
| # curl -fsSL <url> | sh | |
| # | |
| # It authorises exactly one public key, generates host keys, and runs sshd in | |
| # the foreground so authentication attempts are visible in the Terminal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # recovery-ssh.sh — start an SSH server inside macOS Recovery / the installer | |
| # environment on Apple Silicon so a remote operator can get a shell. | |
| # | |
| # Run it in Recovery: Utilities -> Terminal, then | |
| # | |
| # curl -fsSL <url> | sh | |
| # | |
| # It authorises exactly one public key, generates host keys, and runs sshd in | |
| # the foreground so authentication attempts are visible in the Terminal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import Tuple | |
| import torch | |
| from torch import nn, Tensor | |
| import torch.nn.functional as F | |
| from einops import rearrange | |
| from .modules import HiFiGANEncoder, HiFiGANDecoder, GroupFiniteScalarQuantizer | |
| class AudioCodecModel(nn.Module): |