Skip to content

Instantly share code, notes, and snippets.

Avatar

Dhruv Mehta dhruv

  • San Francisco Bay Area
View GitHub Profile
@dhruv
dhruv / pr.md
Created Sep 10, 2020 — forked from piscisaureus/pr.md
Checkout github pull requests locally
View pr.md

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 = git@github.com:joyent/node.git

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:

@dhruv
dhruv / Protonmail.md
Created Apr 8, 2020 — forked from ibaiul/Protonmail.md
Configure the protonmail bridge linux client on CentOS server and Fedora
View Protonmail.md

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 (https://protonmail.com/bridge/install).

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

Get the protonmail bridge linux installer

@dhruv
dhruv / README-setup-tunnel-as-systemd-service.md
Created Nov 7, 2018 — forked from drmalex07/README-setup-tunnel-as-systemd-service.md
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward
View README-setup-tunnel-as-systemd-service.md

README

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

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
View python_conversion.md

Python Number Conversion Chart

From To Expression
You can’t perform that action at this time.