Skip to content

Instantly share code, notes, and snippets.

View gopalkildoliya's full-sized avatar
🎯
Focusing

Gopal gopalkildoliya

🎯
Focusing
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

@harlow
harlow / golang_job_queue.md
Last active July 12, 2024 03:19
Job queues in Golang
@gopalkildoliya
gopalkildoliya / shrink_sd_image.md
Created March 7, 2019 12:44
Shrink SD card image

Copy SD Card image

First we will create a .img file of your SD card image.

Linux users can just use dd (the same command you probably used to get the image onto the SD card in the first place) or the dcfldd command (which shows the progress of the operation unlike dd). For example, to copy all contents off the device that represents your SD card into an .img file in your home directory:

You should find out the block size of your sd card first (using an improper block size can lead to issues later on... TRUST)

$ sudo fdisk -l /dev/mmcblk0