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
def swap(array, index1, index2): | |
t = np.copy(array[index1]) | |
array[index1] = array[index2] | |
array[index2] = t | |
return array |
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 | |
### Lammps parallel install | |
# Assign user name | |
read -p "Enter your user name: " UserName | |
# Install required packages | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential openmpi-bin openmpi-doc libopenmpi-dev fftw2 fftw-dev |
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
# Display system information using archey | |
/usr/bin/archey | |
# Installed Packages | |
export PATH=${PATH}:/opt/lammps/src | |
export PATH=${PATH}:/opt/gulp/Src | |
export PATH=${PATH}:/opt/zotero | |
export PATH=${PATH}:/opt/LD_300 | |
export PATH=${PATH}:/usr/local/matlab/R2012a/bin |
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 | |
### Fresh install for a new Ubuntu derivative | |
# Assign user name | |
read -p "Enter your user name: " UserName | |
read -p "Enter your full name: " MyName | |
read -p "Enter your email address: " MyEmail | |
# update all | |
apt-get update |
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 | |
### Fresh install for a new Ubuntu derivative | |
# Assign user name | |
read -p "Enter your user name: " UserName | |
read -p "Enter your full name: " MyName | |
read -p "Enter your email address: " MyEmail | |
# update all | |
apt-get update |
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
## ## ## matplotlib_example.py ## ## ## | |
## ## ## Created by: KDP ## ## ## | |
import numpy as np | |
import matplotlib.pyplot as plt | |
## Create data | |
x = np.linspace(0, 4 * np.pi, num=100) | |
y = np.sin(x) |
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
### Install pypar | |
# Assign user name | |
read -p "Enter your user name: " UserName | |
# update all | |
apt-get update | |
apt-get -y upgrade | |
# Pypar |
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
find ~/Dropbox/ntpl-paper/disorder/used/ -name '*.pdf' -exec pdftotext {} - \; | grep "Boson peak" |
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/sh | |
# | |
# This shell script adapts the Makefile in dependence | |
# of the machine and the operating system you use. | |
# It is called from 'make' before the compiler | |
# is invoked. | |
# | |
# 7/97 IRIX64 directory name modified to handle IRIX7 | |
# 2/99 Cray options added (IW) | |
# |
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 | |
### ATLAS Ubuntu install | |
# Assign user name | |
read -p "Enter your user name: " UserName | |
### MAIN ### | |
# Number of CPUs | |
CPUNum=$(nproc) |
OlderNewer