Skip to content

Instantly share code, notes, and snippets.

View thangphuocnguyen's full-sized avatar
💭
“Choose a job you love, and you will never have to work a day in your life.”

Thang Phuoc Nguyen thangphuocnguyen

💭
“Choose a job you love, and you will never have to work a day in your life.”
View GitHub Profile
@thangphuocnguyen
thangphuocnguyen / utils.sh
Created September 13, 2020 08:35 — forked from julienbourdeau/utils.sh
bash helper functions
#!/bin/bash
#
# Set Colors
#
bold=$(tput bold)
underline=$(tput sgr 0 1)
reset=$(tput sgr0)
@thangphuocnguyen
thangphuocnguyen / README.md
Created June 5, 2019 04:45 — forked from ColCh/README.md
Create merge request on Gitlab in command line for current branch

Gitlab merge request script

Creates merge request on Gitlab for you

Installation

Download it, add executable perms and place into PATH:

# Place it into ~/.bin
mkdir ~/.bin
@thangphuocnguyen
thangphuocnguyen / README.MD
Created April 24, 2019 08:11 — forked from samdenty/README.MD
VS Code CSS addition to increase readability on file tree.

How to install

Custom CSS plugin

Install the custom CSS plugin, then make a file on your computer that will hold your custom CSS, I like to make one in my home directory called ~/.vscodestyles.css and then add the CSS into it.

Once done, open your command palette and select enable custom CSS and JS

@thangphuocnguyen
thangphuocnguyen / workbench.tree.css
Created April 24, 2019 08:11 — forked from akmeghdad/workbench.tree.css 1.41.0 (+)
workbench.main.css for VS code 1.31
/* https://gist.github.com/akmeghdad/b1208c2caa601f0ba29f953faabac709 */
/* THANKS OF */
/* https://gist.github.com/samdenty/b96f4df576d05cb123248f8ebfa899b6 */
/* https://gist.github.com/Lightfire228/39dc2cf403237a190e79a000912691b2 */
/* [WINDOWS] add this code in %USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\workbench.main.css */
:root {
/** Width of the lines **/
--tree-width: 14px;
/** Opacity of the lines whilst not hovered **/
--tree-opacity: 0.1;

Portal Network - Integration ENS with IPFS

This tutorial is how to post website/application on IPFS and link with ENS domains(.eth).

If you have any question please contact us for help:

@thangphuocnguyen
thangphuocnguyen / GPG and git on macOS.md
Created April 4, 2019 16:39 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@thangphuocnguyen
thangphuocnguyen / Ethereum_private_network.md
Created December 4, 2018 04:40 — forked from 0mkara/Ethereum_private_network.md
Ethereum private network configuration guide.

Create your own Ethereum private network

Introduction

Used nodes:

Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
Linux localhost.localdomain 4.14.5-200.fc26.x86_64 #1 SMP Mon Dec 11 16:29:08 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
/*
* Scaffolding
* Basic and global styles for generating a grid system, structural layout, and page templates
* ------------------------------------------------------------------------------------------- */
.container
Sets a width of 940px which also centres the content (clears floated elements before/after)
.container-fluid
Sets a minimum width of 940px (clears floated elements before/after)
/*
* Scaffolding
* Basic and global styles for generating a grid system, structural layout, and page templates
* ------------------------------------------------------------------------------------------- */
.container
Sets a width of 940px which also centres the content (clears floated elements before/after)
.container-fluid
Sets a minimum width of 940px (clears floated elements before/after)