Skip to content

Instantly share code, notes, and snippets.

View guillefix's full-sized avatar

Guillermo Valle guillefix

View GitHub Profile
@serihiro
serihiro / executable.sh
Last active June 3, 2022 09:38
Get MPI rank in the executing shell script
#!/bin/bash
rank=`python get_mpi_rank.py`
if [ ${rank} -eq 0 ]; then
echo 'I am rank 0'
elif [ ${rank} -eq 1 ]; then
echo 'I am rank 1'
elif [ ${rank} -eq 2 ]; then
echo 'I am rank 2'
elif [ ${rank} -eq 3 ]; then
@borgfriend
borgfriend / maya2017install.sh
Last active April 13, 2024 13:34
Maya 2017 Installation on Ubuntu 16.04
#!/bin/bash
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then
echo Please run this script using sudo
echo Just type “sudo !!”
exit
fi
#Check for 64-bit arch
if [uname -m != x86_64]; then
@sifbuilder
sifbuilder / LICENSE
Last active February 6, 2018 23:46
d3animas
MIT License
Copyright (c) 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@bishboria
bishboria / springer-free-maths-books.md
Last active April 25, 2024 06:27
Springer made a bunch of books available for free, these were the direct links
@fperez
fperez / ipython-0.0.1.py
Created January 8, 2012 21:05
IPython 0.0.1, a simple script to be loaded as $PYTHONSTARTUP: of historical interest only...
#!/usr/bin/env python
"""
Interactive execution with automatic history, tries to mimic Mathematica's
prompt system. This environment's main features are:
- Numbered prompts (In/Out) similar to Mathematica. Only actions that produce
output (NOT assingments, for example) affect the counter and cache.
- The following GLOBAL variables always exist (so don't overwrite them!):
_p: stores previous result which generated printable output.