Skip to content

Instantly share code, notes, and snippets.

View dhruv's full-sized avatar

dhruv

View GitHub Profile

Python Number Conversion Chart

From To Expression
@dhruv
dhruv / README-setup-tunnel-as-systemd-service.md
Created November 7, 2018 00:07 — 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

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
@dhruv
dhruv / Protonmail.md
Created April 8, 2020 03:50 — forked from ibaiul/Protonmail.md
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 (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 / pr.md
Created September 10, 2020 15:15 — forked from piscisaureus/pr.md
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 = 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 / authenticated_seeds.md
Last active July 30, 2021 00:40
authenticated_seeds.md

Authenticated seeds

Objectives

This document proposes two paths to Bitcoin seed node authentication to facilitate conversation about the pros and cons of each.

Background and motivation

Reading:

@dhruv
dhruv / vim.sh
Created August 4, 2021 19:45 — forked from leolord/vim.sh
Compiling vim on Ubuntu 18 with LUA-support
# Remove previous installations
sudo apt-get remove vim vim-runtime vim-tiny vim-common
# Install dependencies
sudo apt-get install libncurses5-dev python-dev liblua5.3-dev lua5.3 python3-dev
# Fix liblua paths
# You have to compile luajit for yourself.
sudo ln -s /usr/include/lua5.3 /usr/include/lua
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.3.so /usr/local/lib/liblua.so
@dhruv
dhruv / bip324notes.md
Created October 14, 2021 09:59
bip324 notes

Background and goals:

  • Privacy (main goal)
  • Make it so censorship resistance is not precluded by our design
  • Increase the cost for ISPs to identify (and maybe supress) Bitcoin P2P traffic
  • Upgrade path that allows for authentication, PQC upgrades without needed a major overhaul

BIP324 history

  • 2016:
    • BIP150: Authentication (currently stalled)
    • BIP151: Encryption
@dhruv
dhruv / Protonmail.md
Created April 19, 2022 17:04 — forked from githubcom13/Protonmail.md
Configure the protonmail bridge linux client on Ubuntu 20.04 and Debian 10 server

Protonmail on Ubuntu 20.04 and Debian 10 server

#protonmail #debian #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