Skip to content

Instantly share code, notes, and snippets.

@jcgillespie
jcgillespie / running-tailscale-on-ubiquiti-usg.md
Last active March 10, 2025 20:47
Running Tailscale on Ubiquiti USG

You will need ssh access to your USG. I suggest running sudo su so you're the root user throughout

Installation

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your USG's processor.
curl https://pkgs.tailscale.com/stable/tailscale_1.36.1_mips64.tgz | tar xvz -C /tmp
mv /tmp/tailscale_1.36.1_mips64 /config/tailscale
@zxchris
zxchris / debian-zoom-remove-ibus.md
Last active April 9, 2025 16:25
Zoom for Debian - Removing ibus dependency

Patching zoom_amd64.deb to remove ibus dependency

Installing ibus on Debian has a tendency to stop the keyboard working, particularly in KDE system dialogue boxes and search feilds. ibus is not really required, so patching the deb to prevent the install from also installing ibus as a required dependecy solves the problem:

S=$(mktemp -d)
dpkg -x zoom_amd64.deb $S
dpkg -e zoom_amd64.deb $S/DEBIAN
sed -i -E 's/(ibus, |, ibus)//' $S/DEBIAN/control 
dpkg -b $S zoom_amd64-no-ibus.deb 
use strict;
use warnings;
use PIR;
use POSIX qw( O_RDONLY );
# The following values should be extracted from a .ph file, but my personal
# experience has shown me that gives the wrong results and yeilds lots of INVALID IOCTL garbage
# This can't be gotten from a .ph file, for some reason I can't work out yet
use constant _ULONG_MAX => 2147483647;
#!/usr/bin/bash
# Copyright (c) Joakim Reinert. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
API_URL='https://api.domrobot.com/xmlrpc/'
TMPDIR='/tmp/inwx-acme'