Skip to content

Instantly share code, notes, and snippets.

View dongchirua's full-sized avatar
🌏
Working from everywhere

Hong Quy Nguyen dongchirua

🌏
Working from everywhere
View GitHub Profile
@dongchirua
dongchirua / github_gpg_key.md
Last active June 18, 2023 06:04 — forked from ankurk91/github_gpg_key.md
Signing git commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@dongchirua
dongchirua / How to setup GPG for git.md
Created June 15, 2023 17:23 — forked from johnwgillis/How to setup GPG for git.md
How to setup GPG for signing commits with Git, SourceTree, and GitHub on Mac

How to setup GPG for signing commits with Git, SourceTree, and GitHub on Mac

  1. Install GPG tools
    1. Install GPG tools and setup pin entry by running:
    brew install gnupg pinentry-mac
    mkdir -m 700 -p ~/.gnupg
    echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
    killall gpg-agent
    
@dongchirua
dongchirua / MUTAG_lightning_classification.py
Created February 15, 2022 18:23
MUTAG classification with Lightning
from abc import ABC
import torch
import torch.nn.functional as F
from torch_geometric.loader import DataLoader
from pytorch_lightning import Trainer
from typing import Optional
from torch_geometric import seed_everything
from torch_geometric.nn import global_mean_pool, SAGEConv, Linear
from torch_geometric.datasets import TUDataset