Skip to content

Instantly share code, notes, and snippets.

View trysten's full-sized avatar
💭
hacking - ☕

Trysten trysten

💭
hacking - ☕
  • 10:02 (UTC -06:00)
View GitHub Profile
@trysten
trysten / serial_over_socat.bash
Created August 6, 2025 23:13
Forward a Serial Device over IP using socat
# the 'server' side, needs to be running before connection is made
socat pipe:/dev/ttyUSB0 tcp-listen:454545
# the 'client' side, creates virtual tty as user (i did not use sudo)
socat pty,rawer,link=/home/user/dev/vtty tcp:localhost:454545
/* ==UserStyle==
@name Tube Lengthener
@version 20250721.18.27
@namespace https://userstyles.world/user/trysten
@description Remove most mentions of youtube shorts from youtube.com
@author trysten
@license LGPL3
==/UserStyle== */
@-moz-document domain("www.youtube.com") {
@trysten
trysten / youtube.list
Created February 11, 2025 19:33
block youtube shorts with uBlock origin
www.youtube.com##ytd-reel-shelf-renderer
www.youtube.com##.ytd-rich-section-renderer.style-scope
www.youtube.com##ytd-guide-entry-renderer:has(a[title="Shorts"])
www.youtube.com##yt-chip-cloud-chip-renderer:has(yt-formatted-string[title="Shorts"])
@trysten
trysten / [email protected]
Created August 7, 2023 20:47
rclone mount systemd template
[Install]
# not sure what to put here
WantedBy=default.target
[Unit]
Description=mount rclone remote %i in home/mnt
Documentation=https://rclone.org/docs/
[Service]
Type=simple

Keybase proof

I hereby claim:

  • I am trysten on github.
  • I am trysten (https://keybase.io/trysten) on keybase.
  • I have a public key ASBNmHwzyauxbgd4F77Hzt12bZDZT_xae6TKHt0Ck8rddAo

To claim this, I am signing this object:

@trysten
trysten / autossh.service
Last active October 14, 2018 20:53
autossh v0.3
# This unit file is meant to be run on a user service.
# Put it in ~/.config/systemd/user/ and enable it with `systemctl --user enable autossh`
# Use `loginctl enable-linger username` to start systemd user service at boot
# help here: https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files
[Unit]
Description=Maintain an ssh tunnel with systemd. What could go wrong?
After=network.target
[Service]
#user should set automatically