Skip to content

Instantly share code, notes, and snippets.

View troelsfr's full-sized avatar

Troels F. Rønnow troelsfr

View GitHub Profile
@gdamjan
gdamjan / README.md
Last active July 9, 2024 22:54
Setup for an easy to use, simple reverse http tunnels with nginx and ssh. It's that simple there's no authentication at all. The end result, a single ssh command invocation gives you a public url for your web app hosted on your laptop.

What

A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.

Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).

Requirements

@fairlight1337
fairlight1337 / catch_segv.cpp
Last active January 22, 2024 17:29
Catching SIGSEGV (Segmentation Faults) in C
// This code installs a custom signal handler for the SIGSEGV signal
// (segmentation fault) and then purposefully creates a segmentation
// fault. The custom handler `handler` is then entered, which now
// increases the instruction pointer by 1, skipping the current byte
// of the faulty instruction. This is done for as long as the faulty
// instruction is still active; in the below case, that's 2 bytes.
// Note: This is for 64 bit systems. If you prefer 32 bit, change
// `REG_RIP` to `REG_EIP`. I didn't bother putting an appropriate
// `#ifdef` here.
@xjocrypto
xjocrypto / How to Install GUNBOT V5 Linux
Last active December 25, 2022 06:09
Step by step install of GUNBOT on a Linux server
I have recently been through the process of installing GUNBOT on Ubuntu from scratch. As a newbie I had to re-install
a few times until I got it right as I realise my server was clearly not up-to-date. Hence let me share with you what worked for
me within a matter of minutes.
I would like to share a big thank you to Dante, James Tandy, PPEe to have answered so many of my questions at the install phase.
I hope this tutorial will make it faster than it was for me ;-).
*** If you found the below helpful, you can buy me a Mojito or Amarula drink here :
BTC: L5BkDnM2fZhvzcg7HPjcnetRAvv8G9SM6Lyr1iBY2koVSCwGqxSU
ETH: 0x356A3a7C540B65BEF918e99D76c98731D57cc2a1
@stek29
stek29 / extract_telegram_macos.ipynb
Last active July 7, 2024 11:43
Extract Telegram messages from db_sqlite PostBox – made for Telegram for macOS, but should work with Telegram for iOS
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.