Skip to content

Instantly share code, notes, and snippets.

View EdJoPaTo's full-sized avatar
🧀
Yet another cheese on the internet

EdJoPaTo

🧀
Yet another cheese on the internet
View GitHub Profile
@EdJoPaTo
EdJoPaTo / sysctl.conf
Created November 3, 2017 09:34
IPv6 stuff
# do not expose MAC address
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
net.ipv6.conf.eth0.use_tempaddr = 2
# Do not accept Router Advertisements (for static gateways)
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.default.accept_ra = 0
net.ipv6.conf.eth0.accept_ra = 0
@EdJoPaTo
EdJoPaTo / aurstuff.md
Last active May 11, 2023 04:08
useful commands while building an AUR package

Start a new one

git clone ssh://aur@aur.archlinux.org/package_name.git

Prototype files are in /usr/share/pacman

Tools

Generate md5sums

# remove old stuff if installing different version
sudo rm -rf /usr/include/node /usr/lib/node_modules
# https://unofficial-builds.nodejs.org/download/release/
tar xf node-*-linux-armv6l.tar.xz && cd node-*-linux-armv6l/ && sudo cp -r bin include lib share /usr/
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"><title>lol</title>
<script type='text/javascript'>
function update() {
var element = document.getElementsByTagName("H1")[0];
element.innerHTML += " Ente";
@EdJoPaTo
EdJoPaTo / toggle-microphone-mute.sh
Created May 27, 2020 14:30
Quickly toggle the mute of the mic when using PulseAudio (probably on Linux)
# Pulse Audio control
pactl set-source-mute @DEFAULT_SOURCE@ toggle

Reverse SSH Tunnel

When a device is not reachable you can install the reverse-ssh-tunnel.service to it. Activate it and it will connect by itself to an accessible sshd. Then you can connect (directly or via ProxyJump) to the device.

(Generate and) copy the ssh key over to the reversessh server:

ssh-keygen -t ed25519 &amp;&amp; ssh-copy-id reversessh@reversessh.3t0.de