Skip to content

Instantly share code, notes, and snippets.

@chauvansang
chauvansang / gist:fd59998e6600f4d419286ddcb57c004a
Created June 26, 2021 10:44 — forked from kaievns/gist:acb23149b66418ba340c
How to populate PostgreSQL with dummy data
CREATE TABLE t_random AS SELECT s, md5(random()::text) FROM generate_Series(1,5) s;
INSERT INTO t_random VALUES (generate_series(1,1000000000), md5(random()::text));
SELECT pg_size_pretty(pg_relation_size('t_random'));
@chauvansang
chauvansang / iterm2-oh-my-fish.md
Created May 18, 2021 08:43 — forked from normanlolx/iterm2-oh-my-fish.md
iTerm2 Solarized Dark theme + Fish shell + oh-my-fish /// macOS High Sierra
@chauvansang
chauvansang / 1-setup.md
Created May 17, 2021 04:37 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

Last updated March 28, 2021

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

@chauvansang
chauvansang / Install NVIDIA Driver and CUDA.md
Created May 8, 2021 03:51 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@chauvansang
chauvansang / Headless_Ethereum_Ubuntu_16.04.md
Created May 8, 2021 03:50 — forked from streslab/Headless_Ethereum_Ubuntu_16.04.md
Headless NVIDIA overclock setup under Ubuntu Server 16.04 for ethereum mining

Headless Ethereum Miner Setup - NVIDIA

Reed Slaby, March 2018

Having grown tired of wasting a perfectly good monitor on my ethereum mining rig, I finally decided to replace the Ubuntu Desktop 16.04 installation with Ubuntu Server 16.04. Many of the gtutorials available at the time of this writing range from unecessarily complicated to flat-out wrong. This guide is intended to address many of those shortfalls.

Prerequisites

To complete this guide, you should already have:

  • Basic knowledge of Linux
  • An Ethereum wallet