Skip to content

Instantly share code, notes, and snippets.

View bnhf's full-sized avatar

Scott Ueland bnhf

View GitHub Profile
@bnhf
bnhf / adb_shell_inputs.sh
Last active August 11, 2023 21:55 — forked from kibotu/adb_shell_inputs.sh
amazon-fire-tv-remote-input using adb
#!/usr/bin/env bash
# * https://developer.android.com/reference/android/view/KeyEvent#constants
# * https://developer.amazon.com/appsandservices/solutions/devices/fire-tv/docs/amazon-fire-tv-remote-input
# * ----------------------------------------------------------------------------------------------------
# * | | (KEYCODE_MEDIA_RECORD) | |
# * ----------------------------------------------------------------------------------------------------
# * | |
# * ----------------------------------------------------------------------------------------------------
# * | | KEYCODE_DPAD_UP | |
@bnhf
bnhf / README.md
Last active October 8, 2024 23:18
Tailscale - Deploying with Docker and Portainer

Just thought I'd put together some detail on deploying Tailscale using Docker and Portainer. These bits-and-pieces are available elsewhere, but not together, so hopefully this will save someone a bit of time if you'd like to add Tailscale to an existing Docker install:

Here's my annotated recommended docker-compose, to use with Portainer-Stacks. Note that I'm not using a pre-made Auth Key. I started that way, but realized it was very easy to simply check the Portainer log for the tailscaled container once the stack is running. In that log you'll see the standard Auth link that you can use to authorize the container. This way you don't need to create a key in advance, or create a reusable key that introduces a security risk:

version: '3.9'
services:
  tailscale:
    image: tailscale/tailscale
    container_name: tailscaled
@bnhf
bnhf / README.md
Last active November 6, 2023 23:38 — forked from djfdyuruiry/README.md
WSL 2 - Enabling systemd in Debian 11

Enable systemd in WSL2 Debian 11

This guide will help you install systemd to run as normal under WSL2 Debian. This will allow services like microk8s, docker, cockpit and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 21H2, running Debian 11 in WSL2.

  • To enable systemd under WSL we require a tool called systemd-genie

  • Download install-sg.sh to a temporary location /tmp:

cd /tmp