Skip to content

Instantly share code, notes, and snippets.

View Fede-26's full-sized avatar
Currently drinking coffee and learning what is a monad

Federico Zotti Fede-26

Currently drinking coffee and learning what is a monad
View GitHub Profile
@mnml
mnml / build-m8c-rg35xx-splush.sh
Last active September 21, 2024 15:38
Building m8c for RG35XX Plus/H/SP on KNULLI (Scroll down for zip)
#!/bin/bash
#
# build kernel modules
#
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.170.tar.gz
tar xzf linux-4.9.170.tar.gz
cd linux-4.9.170
wget -O .config https://raw.githubusercontent.com/knulli-cfw/distribution/refs/heads/knulli-main/board/batocera/allwinner/h700/linux-sunxi64-legacy.config
@rfairley
rfairley / reverse-ssh-tunnel-vps-to-pi.md
Last active May 21, 2024 08:57
Connecting to a Raspberry Pi through a VPS using a reverse SSH tunnel

Connecting to a Raspberry Pi through a VPS using a reverse SSH tunnel

SSH (Secure Shell) to a host existing in an internal network through a reverse-tunneled SSH connection to an externally accessible VPS (Virtual Private Server). This setup is described where the internal host is a Raspberry Pi, but can be generalized for any host on the internal network that runs an OpenSSH server.

  internal network                                                   Internet                                       home network
                                              ||                                                         ||
 ------------------                           ||                          ------------------             ||             ------------------
|                  | reverse SSH tunnel (VPS $tunnel_port to Pi port 22) |                  |            ||            |                  |
|   Raspberry Pi     ==================================================>         VPS          ===================
@bembu
bembu / telegram_irc_bridge.py
Last active September 20, 2020 20:29
A script that acts as a bridge between IRC and Telegram.
"""
A script that acts as a messaging bridge between Telegram and IRC.
Works in Python 3.x
Installation:
1. pip install pydle
2. go create a Telegram bot by talking to BotFather (https://telegram.me/botfather)
3. create a telegram group, and send a curl to:
curl -s -X POST "https://api.telegram.org/bot<BOT_TOKEN>w/getUpdates"
4. get the group_id from the response