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 is my first, very own configuration file for yamllint! | |
# It extends the default conf by adjusting some options. | |
extends: default | |
rules: | |
comments-indentation: disable # don't bother me with this rule | |
indentation: disable # don't bother me with this rule | |
line-length: | |
max: 120 |
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 snap_*.hdf5 -type f -exec sha256sum {} > ~/checksums_TNG50-2_snaps.txt \; |
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
jupytext --set-formats ipynb,md --sync ./first_test.ipynb ## sync a notebook with md | |
jupytext --to ipynb first_test.md ## make notebook from md | |
find . -type f -name "*.md" | xargs jupytext --to ipynb ## find all md files in the current dir and make their notebooks |
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
# python ~/codes/SinkVis/SinkVis.py ./output/snapshot*.hdf5 --np=7 --keep_only_movie --movie_name=test --plot_B_map --plot_fresco_stars --outputfolder=movie --draw_axes | |
python ~/codes/SinkVis/SinkVis.py ./output/snapshot*.hdf5 --np=6 --movie_name=test --outputfolder=movie --draw_axes |
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: |
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
sha256sum -c checksums.txt &> check.log & | |
## then to find bad files: | |
cat check.log | grep FA | awk -F. '{print $2}' > FAILED_CHECKSUM | |
# inpot: snap_099.92.hdf5: FAILED | |
# output: 92 | |
# then run (for TNG100-1) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder