Skip to content

Instantly share code, notes, and snippets.


Dhruv Mehta dhruv

  • San Francisco Bay Area
View GitHub Profile

Python Number Conversion Chart

From To Expression
dhruv /
Created Nov 7, 2018 — forked from drmalex07/
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward


Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

Description=Setup a secure tunnel to %I
dhruv /
Created Apr 8, 2020 — forked from ibaiul/
Configure the protonmail bridge linux client on CentOS server and Fedora

Protonmail on CentOS server

#protonmail #centos #fedora #linux

Before you start

Currently protonmail bridge for linux is distributed as part of an open beta program, but soon it will be made public (

Consider that the bridge linux client requires a paid protonmail account to work.

Get the protonmail bridge linux installer

dhruv /
Created Sep 10, 2020 — forked from piscisaureus/
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: