Skip to content

Instantly share code, notes, and snippets.

View fastjack's full-sized avatar

Martin Maciaszek fastjack

View GitHub Profile
@fastjack
fastjack / README.md
Created January 29, 2024 18:53
Install Tailscale on Unify Dream Router (not really working)

I tried setting up Tailscale on my UDR. I found https://gist.github.com/lg/6f80593bd55ca9c9cf886da169a972c3 was a good starting point with some adjustments. Unlike the EdgeRouter the UDR is apparently an arm64 device so I downloaded static binaries for arm64 and extracted them to a temporary directory. I copied the files to their proper locations like this:

cp tailscale /usr/bin/tailscale
cp tailscaled /usr/sbin/tailscaled
cp systemd/tailscaled.defaults /etc/default/tailscaled
cp systemd/tailscaled.service /lib/systemd/system/tailscaled.service
mkdir -p /var/lib/tailscale
touch /var/lib/tailscale/tailscaled.state
chmod 0400 /var/lib/tailscale/tailscaled.state
@fastjack
fastjack / application:__init__.py
Created May 22, 2024 17:19
Init of flask app (replace : with / in filename)
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
database = SQLAlchemy()
class Application:
def __init__(self, port: int = 5000, debug: bool = True):
self.port: int = port
@fastjack
fastjack / .gitconfig
Created August 26, 2024 19:21
Useful git aliases
[alias]
discard = reset HEAD --hard
rmuntracked = clean -df
unstage = reset HEAD --
uncommit = reset --soft HEAD^
@fastjack
fastjack / config
Created April 11, 2025 09:32
Ghostty config
# Config generated by Ghostty Config
auto-update-channel = tip
confirm-close-surface = false
window-colorspace = display-p3
alpha-blending = native
window-padding-x = 8
window-padding-y = 8
background-opacity = 0.96