Skip to content

Instantly share code, notes, and snippets.

View alvarovm's full-sized avatar
🏠
Working from home

Alvaro Vazquez-Mayagoitia alvarovm

🏠
Working from home
View GitHub Profile
@alvarovm
alvarovm / MACE_install.md
Last active February 27, 2024 17:35 — forked from jingsk/MACE_install.md
Install MACE with cuda-enabled Pytorch

Mace installation on ANL's Swing as of 1/30/24

Check resources available on Swing: NVIDIA A100 GPUs (8 GPUs per node) - 1/8 node allocated when requesting 1 gpu

MACE requires Pytorch2, which needs CUDA 11.8 or 11.7. Check required CUDA versions here

Install Torch and Cuda

Create a Conda environment with Python 3.10

conda create -n "CUDA-torch-base" python=3.10.0
&CONTROL
prefix = 'C_bulk_pbe'
calculation = 'vc-relax'
verbosity = 'high'
tstress=.true.
pseudo_dir = '/lus/eagle/projects/catalysis_aesp/raymundohe/espresso/pseudo',
forc_conv_thr = 1e-4,
/
&SYSTEM
@Krazybug
Krazybug / calishot-howto.md
Last active May 16, 2025 01:12
Calishot Howto

What is it ?

CALISHOT is a specialised search engine to unearth books on open calibre servers.

It allows you to search ebooks in full text across them or to browse the database by facets: authors, language, year, series, tags ... You can even run your own queries in SQL.

Where is this ?

These servers are often up and down so, for now, the data are regularly updated and new snasphots are posted on ...

@feedsbrain
feedsbrain / ffmpeg-qsv.sh
Last active June 19, 2025 01:07
Compiling FFMpeg with Intel Quick Sync in Ubuntu 20.04
#!/bin/bash
# Taken from: https://red-full-moon.com/make-hevc-qsv-env-first-half/
# 環境の最新化
sudo apt update
sudo apt dist-upgrade
# 必要パッケージのインストール
sudo apt install cmake make autoconf automake libtool g++ bison libpcre3-dev pkg-config libtool libdrm-dev xorg xorg-dev openbox libx11-dev libgl1-mesa-glx libgl1-mesa-dev libpciaccess-dev libfdk-aac-dev libvorbis-dev libvpx-dev libx264-dev libx265-dev ocl-icd-opencl-dev pkg-config yasm libx11-xcb-dev libxcb-dri3-dev libxcb-present-dev libva-dev libmfx-dev intel-media-va-driver-non-free opencl-clhpp-headers
# libvaのインストール
@alibo
alibo / 01-filternet-top200k-26-03-2016.csv
Last active August 30, 2024 20:13
State of Alexa Top 200K global sites in Iran [Censorship] [26-03-2016] #filternet
Rank Site SNI HTTP DNS
1 google.com open open open
2 youtube.com blocked blocked blocked
3 facebook.com blocked blocked blocked
4 baidu.com open open open
5 yahoo.com open open open
6 amazon.com open open open
7 wikipedia.org open open open
8 qq.com open open open
9 google.co.in open open open
@rmcgibbo
rmcgibbo / MPI_ManualReduce.cpp
Last active August 16, 2022 23:15
Efficient MPI Parallel Reduction Without MPI_Reduce or MPI_Scan (only Send/Recv)
/*
* An efficient MPI parallel reduction without MPI_Scan or MPI_Reduce. (i.e.
* only send/recv).
*
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
* 0. You just DO WHAT THE FUCK YOU WANT TO.
*/
#include <mpi.h>
#include <cstdio>
#include <vector>