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 | |
| ### spglib Ubuntu install | |
| # Assign user name | |
| read -p "Enter your user name: " UserName | |
| ### MAIN ### | |
| # Install required packages | |
| apt-get update |
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 | |
| ### LAPACK Ubuntu install | |
| # Assign user name | |
| read -p "Enter your user name: " UserName | |
| ### MAIN ### | |
| # Install required packages | |
| apt-get update | |
| apt-get -y upgrade |
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 | |
| # rsync backup, see www.linux.com/learn/tutorials/284789-writing-a-simple-bash-script- | |
| SOURCEDIR1=/home/user | |
| DESTDIR1=user@hostname:/path/to/folder | |
| rsync -az --progress --exclude='*.bak' --rsh 'ssh ' $SOURCEDIR1 $DESTDIR1 |
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
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1='\[\033[01;34m\]\u@\h\[\033[01;32m\] \w\[\033[01;31m\]$(parse_git_branch) \[\033[01;32m\]\$\[\033[00m\] ' |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <mpi.h> | |
| int main(int argc, char** argv){ | |
| // MPI | |
| int PE, nPE; | |
| MPI_Init(&argc, &argv); | |
| MPI_Comm_size(MPI_COMM_WORLD, &nPE); | |
| MPI_Comm_rank(MPI_COMM_WORLD, &PE); |
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
| set t_Co=256 | |
| colorscheme pychimp | |
| " autocmd BufRead,BufNewFile *.py let python_highlight_all=1 | |
| set number | |
| set autoindent | |
| set mouse=a | |
| " filetype on | |
| " filetype plugin on |
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
| ### MATPLOTLIBRC FORMAT | |
| # This is a sample matplotlib configuration file - you can find a copy | |
| # of it on your system in | |
| # site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
| # there, please note that it will be overwritten in your next install. | |
| # If you want to keep a permanent local copy that will not be | |
| # overwritten, place it in HOME/.matplotlib/matplotlibrc (unix/linux | |
| # like systems) and C:\Documents and Settings\yourname\.matplotlib | |
| # (win32 systems). |
OlderNewer