Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
======== Load modules | |
ml HDF5/1.10.2-foss-2018b-serial gompi/2018b CUDA/10.1.243-GCC-7.3.0-2.30 | |
======== | |
cd enzo-dev | |
./configure | |
cd src/enzo/ | |
make machine-scicluster | |
make use-mpi-yes | |
make show-config | |
make clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------------------------------------------- | |
# | |
# This make include file is used for assigning appropriate values to | |
# the following variables given CONFIG_* and MACH_* variables: | |
# | |
# Compilers | |
# | |
# CPP C preprocessor | |
# CC C compiler | |
# CXX C++ compiler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mogrify -resize 25% -path ./small_images *.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#======================================================================= | |
# | |
# FILE: Make.mach.scicluster | |
# | |
# DESCRIPTION: Makefile settings for scicluster at FUM | |
# | |
# AUTHOR: S. Mohammad Hosseinirad ([email protected]) | |
# | |
# DATE: 2020-11-30 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LOGFILE="has_ssh.txt" | |
for i in {0..225} | |
do | |
IP_ADDRESS="172.21.99."$i | |
echo $IP_ADDRESS | |
ssh-keyscan $IP_ADDRESS | grep -v "^$" &> /dev/null > /dev/null | |
[ $? == 0 ] && echo $IP_ADDRESS "has ssh" >> $LOGFILE | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -l | |
############################# | |
# example for an OpenMP job # | |
############################# | |
#SBATCH --job-name=N50R0.5d20S0 | |
# we ask for 1 task with 20 cores | |
#SBATCH --nodes=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deb http://packages.linuxmint.com tina main upstream import backport | |
deb http://mirror.armaghan.net/ubuntu bionic main restricted universe multiverse | |
deb http://mirror.armaghan.net/ubuntu bionic-updates main restricted universe multiverse | |
deb http://mirror.armaghan.net/ubuntu bionic-backports main restricted universe multiverse | |
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse | |
deb http://archive.canonical.com/ubuntu/ bionic partner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## sync a remote directory on a server S1 to a local directory L2 (i.e. copy S1 into L2) | |
rsync -avh [email protected]:/S1 /L2 | |
## sync files from a remote directory on a server S1 to a local directory L2 (i.e. copy S1 contents into local L2) | |
rsync -avh [email protected]:/S1/ /L2 | |
## sync a local directory L1 to a remote directory /S2 (i.e. copy L1 into remote S2) | |
rsync -avh ./L1 [email protected]:/S2 | |
## sync files from a local directory L1 to a remote directory /S2 (i.e. copy L1 and its contents into remote S2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -rlnI "MAX_CPU 8" . | xargs -l sed -i -e 's/MAX_CPU 8/MAX_CPU 16/g' |