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
$>unison /mnt/c/Users/v/docs/ ssh://logos//home/vama/docs/
Unison 2.52.1 (ocaml 4.04.2): Contacting server...
bash: line 1: unison: command not found
Fatal error: Lost connection with the server

https://alliance.seas.upenn.edu/~bcpierce/wiki/index.php?n=Main.UnisonFAQTroubleshooting

The command line "unison work ssh://remote.dcs.ed.ac.uk/work" fails, with "fatal error: could not connect to server." But when I connect directly with ssh remote.dcs.ed.ac.uk/work, I see that my PATH variable is correctly set, and the unison executable is found.

@alvarovm
alvarovm / blur-banner-to-pdf.sh
Created October 31, 2023 06:57
Bash script to blur some pages of PDF files
#!/bin/bash
# Create an empty array to store the random numbers
#Percentage of pages blured
porc=0.50
#npages=$(pdfinfo ${1} | grep Pages | awk '{print $2}')
#echo "total pages ${npages}"
@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