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
#!/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
#!/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
#======================================================================= | |
# | |
# FILE: Make.mach.scicluster | |
# | |
# DESCRIPTION: Makefile settings for scicluster at FUM | |
# | |
# AUTHOR: S. Mohammad Hosseinirad (smhr313@gmail.com) | |
# | |
# 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
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
#----------------------------------------------------------------------- | |
# | |
# 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
======== 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 |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
import csv | |
def user_name(s): | |
'''Read the complete name and return the username''' | |
# split the string into a list | |
l = s.split() |
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
#============= some useful links: | |
# From official site: | |
https://learn.hashicorp.com/tutorials/vagrant/getting-started-boxes?in=vagrant/getting-started | |
# Oracle guide | |
https://oracle-base.com/articles/vm/vagrant-a-beginners-guide | |
# Download vbox file: | |
wget -c https://app.vagrantup.com/ska-training/boxes/containers/versions/1.0.0/providers/virtualbox.box | |
# Download and add the box: |