# tailscale

Scripts specific to my work at Tailscale.

## The individual scripts

<!-- [[[cog

# This adds the root of the repo to the PATH, which has cog_helpers.py
from os.path import abspath, dirname
import sys

sys.path.append(abspath(dirname(dirname("."))))

import cog_helpers

folder_name = "tailscale"

scripts = [
    {
        "usage": "ensure_on_tailnet.sh TAILNET_NAME",
        "description": "ensure I'm connected to a particular tailnet on my work computer"
    },
    {
        "usage": "gostress PACKAGE TEST_NAME",
        "description": "run a test with Go’s stress utility",
    },
    {
        "usage": "start_local_tailscaled.sh NAME",
        "description": "start a local instance of tailscaled",
    },
    {
        "usage": "login_local_tailscale.sh NAME",
        "description": "log a local instance of tailscaled into a running version of devcontrol"
    },
    {
        "usage": "lts NAME",
        "description": "run a CLi command on a local instance of tailscaled"
    },
]

cog_helpers.create_description_table(folder_name=folder_name, scripts=scripts)

]]]-->
<dl>
  <dt>
    <a href="https://github.com/alexwlchan/scripts/blob/main/tailscale/ensure_on_tailnet.sh">
      <code>ensure_on_tailnet.sh TAILNET_NAME</code>
    </a>
  </dt>
  <dd>
    ensure I'm connected to a particular tailnet on my work computer
  </dd>

  <dt>
    <a href="https://github.com/alexwlchan/scripts/blob/main/tailscale/gostress">
      <code>gostress PACKAGE TEST_NAME</code>
    </a>
  </dt>
  <dd>
    run a test with Go’s stress utility
  </dd>

  <dt>
    <a href="https://github.com/alexwlchan/scripts/blob/main/tailscale/start_local_tailscaled.sh">
      <code>start_local_tailscaled.sh NAME</code>
    </a>
  </dt>
  <dd>
    start a local instance of tailscaled
  </dd>

  <dt>
    <a href="https://github.com/alexwlchan/scripts/blob/main/tailscale/login_local_tailscale.sh">
      <code>login_local_tailscale.sh NAME</code>
    </a>
  </dt>
  <dd>
    log a local instance of tailscaled into a running version of devcontrol
  </dd>

  <dt>
    <a href="https://github.com/alexwlchan/scripts/blob/main/tailscale/lts">
      <code>lts NAME</code>
    </a>
  </dt>
  <dd>
    run a CLi command on a local instance of tailscaled
  </dd>
</dl>
<!-- [[[end]]] (sum: 4hnXIiewO2) -->