This file contains hidden or 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 | |
## Ivan E. Cao-Berg ([email protected]) | |
## Copyright (C) 2016 | |
## | |
## This program is free software; you can redistribute it and/or modify | |
## it under the terms of the GNU General Public License as published | |
## by the Free Software Foundation; either version 2 of the License, | |
## or (at your option) any later version. | |
## |
This file contains hidden or 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 | |
## the next line selects the partition/queue | |
#SBATCH -p short1 | |
## the next line selects the number of nodes | |
#SBATCH -N 1 | |
## the next line selects the number of CPUs | |
#SBATCH -n 1 |
This file contains hidden or 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 | |
## the next line selects the partition/queue | |
#SBATCH -p pool1 | |
## the next line selects the number of nodes | |
#SBATCH -N 1 | |
## the next line selects the number of CPUs | |
#SBATCH -n 1 |
This file contains hidden or 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 | |
## the next line selects the partition/queue | |
#SBATCH -p pool1 | |
## the next line selects the number of nodes | |
#SBATCH -N 1 | |
## the next line selects the number of CPUs | |
#SBATCH -n 1 |
This file contains hidden or 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 | |
## the next line selects the partition/queue | |
#SBATCH -p pool1 | |
## the next line selects the number of nodes | |
#SBATCH -N 1 | |
## the next line selects the number of CPUs | |
#SBATCH -n 1 |
This file contains hidden or 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
# example_interactive-session0001.sh | |
# | |
# These are some of the options you can use when requesting an interactive session | |
# -p, --partition=partition --> partition requested (the current public partitions include short1 and interactive) | |
# -N, --nodes=N --> number of nodes on which to run (N = min[-max]) | |
# --ntasks-per-node --> number of tasks per node | |
# --mem=MB --> minimum amount of real memory | |
# -c, --cpus-per-task=ncpus --> number of cpus required per task | |
# --pty --> run task zero in pseudo terminal |
This file contains hidden or 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 script extracts frames for all movies (.mov) in the current folder. | |
# one image per frame per second saved to disk | |
for MOVIE in *.mov | |
do | |
if [ -f "$MOVIE" ]; then | |
FILENAME="${MOVIE%.*}" | |
echo $FILENAME | |
if [ ! -d "$FILENAME" ]; then | |
mkdir "$FILENAME" |
This file contains hidden or 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
# These are some of the options you can use when requesting an interactive session | |
# -p, --partition=partition --> partition requested (the current public partitions include short1 and interactive) | |
# -N, --nodes=N --> number of nodes on which to run (N = min[-max]) | |
# --ntasks-per-node --> number of tasks per node | |
# -c, --cpus-per-task=ncpus --> number of cpus required per task | |
# --pty --> run task zero in pseudo terminal | |
#request a session on short1 | |
srun --partition=short1 --nodes=1 --cpus-per-task=1 --ntasks-per-node=1 --pty bash |
This file contains hidden or 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
for MOVIE in *.mov | |
do | |
if [ -f "$MOVIE" ]; then | |
FILENAME="${MOVIE%.*}" | |
echo $FILENAME | |
if [ ! -d "$FILENAME" ]; then | |
mkdir "$FILENAME" | |
fi | |
#extracts one frame per second. modify fps as needed |
This file contains hidden or 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 | |
# Generates a word cloud from Little Women by Louisa May Alcott | |
if [ ! -d little_women ]; then | |
mkdir little_women | |
fi | |
cd little_women | |
virtualenv --system-site-packages . |