Skip to content

Instantly share code, notes, and snippets.

View alchem0x2A's full-sized avatar
👨‍🍼

T.Tian alchem0x2A

👨‍🍼
View GitHub Profile
@alchem0x2A
alchem0x2A / oal_exp_gpu.py
Last active April 18, 2022 15:39
Finetuna w/ GPU training
from finetuna.atomistic_methods import Relaxation
from finetuna.online_learner.online_learner import OnlineLearner
from vasp_interactive import VaspInteractive
from ase.optimize import BFGS
from finetuna.ml_potentials.finetuner_ensemble_calc import FinetunerEnsembleCalc
from ase.io import Trajectory
from finetuna.utils import calculate_surface_k_points
if __name__ == "__main__":
@alchem0x2A
alchem0x2A / cori_hsw.txt
Last active April 3, 2023 14:58
vasp-interactive related gists
vasp/5.4.4-hsw, all pass
vasp/6.2.1-hsw, all pass
vasp/6.3.2-hsw, all pass
vasp-tpc/5.4.4-hsw, all pass
vasp-tpc/6.2.1-hsw, all pass
vasp-tpc/6.3.2-hsw, all pass
#Last updated: 2022-10-28T19:33:13-0700
@alchem0x2A
alchem0x2A / gh_colab_init.sh
Last active January 21, 2023 07:32
Initialize google colab with ocpmodels dependencies
#!/bin/bash
# This script runs a bootstrap process to setup gh in google colab and setup the authentication
# It requires GITHUB_TOKEN to be set (e.g. use a cell with `getpass`)
if [ -z "$GITHUB_TOKEN" ] && [ -z "$GH_TOKEN" ]
then
echo "Neither GITHUB_TOKEN nor GH_TOKEN not set! Exit"
exit 1
fi
# Download the gh cli for debian
@alchem0x2A
alchem0x2A / Boot Into LiveCD from Grub.md
Last active July 6, 2023 20:26 — forked from carlitoplatanito/Boot Into LiveCD from Grub
Boot into a LiveCD from Grub when bootable CD or USB is broken on old PC

Useful command when Alt+power fails in macbook installation

  1. Determine the disk number
# Enter grub cmdline by pressing Right-Shift and c
grub> ls
(proc) (hd0) ...