Skip to content

Instantly share code, notes, and snippets.

View teufelweich's full-sized avatar
👻

Marius Teufelweich teufelweich

👻
View GitHub Profile
@teufelweich
teufelweich / readme.md
Created September 7, 2023 14:00
Sharing the WWW with a remote host that has no internet connection

Sharing the WWW with a remote host that has no internet connection

Recently I had the following issue with my Turtlebots: They are only connected to a local network without a route to an uplink with internet connection. This is okay as I just want them to communicate with other ROS2 devices inside the local network. But sometimes I want to update or install a new package with apt or pip. Usually the Turtlebot/Pi would need a internet connection for this. But inside this local network only my notebook has internet access through a different network interface. I could use the notebook as a router but I don't want to get into the hassle of doing this, as network stuff with ROS2 is already complex enough.

But there is another way to achieve this communication from the Turtlebot to the WWW via my notebook: the SOCKS5 proxy.

SSH SOCKS5 proxy

When I ssh onto the Turtlebot (remotehost) I can use the -R option to open a SOCKS5 proxy port on the remotehost whi

@teufelweich
teufelweich / calipo.py
Created February 10, 2023 15:16
ugly script to calculate body fat percentage with uncertainties
#MIT License
# Copyright (c) 2020 Marius Engelhardt
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@teufelweich
teufelweich / .screenrc
Last active June 24, 2019 13:49
Screen config
# derived from https://gist.github.com/joaopizani/2718397
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}%{g}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%d.%m. %{W}%c%{g}]'
defutf8 on
# huge scrollback buffer
defscrollback 5000
# no welcome message