Skip to content

Instantly share code, notes, and snippets.

View ax3l's full-sized avatar

Axel Huebl ax3l

View GitHub Profile
@ax3l
ax3l / Dockerfile
Created June 24, 2017 10:47
Z-Checker Dockerfile
FROM ubuntu:16.04
# general environment for docker
ENV HOME /home
ENV DEBIAN_FRONTEND noninteractive
# spack environment
ENV PATH "$HOME/src/spack/bin:$PATH"
ENV LD_LIBRARY_PATH "/home/src/z-checker-install/Z-checker/zc-install/lib:$LD_LIBRARY_PATH"
@ax3l
ax3l / mpirun_ubuntu1604_desktop.tpl
Created May 11, 2017 13:51
An mpirun template for PIConGPU and TBG on 1 GPU Ubuntu 16.04
#!/usr/bin/env bash
# Copyright 2017 Axel Huebl
#
# This file is part of PIConGPU 0.2.4
#
# PIConGPU 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 3 of the License, or
# (at your option) any later version.
#
@ax3l
ax3l / cppParamSameInt.cpp
Created February 15, 2017 19:21
Same Int Param
#include <iostream>
#include <type_traits>
template<
int A,
int B,
bool isSame = ( A == B ),
typename TSfinae = void>
struct S;
@ax3l
ax3l / yt_plot_problem.ipynb
Created January 5, 2017 13:51
Plot Single Particle
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ax3l
ax3l / DEAL2016_12_05.md
Last active December 7, 2016 15:22
Ad-Hoc Translation of OpenAccess Publ DEAL
@ax3l
ax3l / adiosCompile.sh
Last active December 7, 2016 14:42
adios_quickcompile
export ZLIB_ROOT=/usr
wget http://users.nccs.gov/~pnorbert/adios-1.10.0.tar.gz
tar -xvzf adios-1.10.0.tar.gz
cd adios-1.10.0
LDFLAGS="-fPIC -pthread" CFLAGS="-fPIC -g -O2" CXXFLAGS="-fPIC -g -O2" \
./configure --prefix=$HOME/lib/adios-1.10.0 \
--with-zlib=$ZLIB_ROOT --with-mpi=$MPI_ROOT \
--enable-static --enable-shared \
--without-dataspaces --disable-fortran
@ax3l
ax3l / KomoP.md
Last active October 5, 2016 14:53
King of my own Python

How to be a King of your own Python

Besides best intentions, pre-installed and not correctly (cross-)compiled modules are painful when living on the cutting-dev-edge. Let's start from scratch! :)

The following intro is necessary for a cluster environment where every binary needs to be cross-compiled and $HOME is not mounted on the compute nodes. Furthermore, cross-dependencies and ABI incompatibilities force you to build the full software stack with the same compiler.

Environment Vars

@ax3l
ax3l / keybase.md
Created September 3, 2016 22:34
My keybase.io Proof

Keybase proof

I hereby claim:

  • I am ax3l on github.
  • I am ax3l (https://keybase.io/ax3l) on keybase.
  • I have a public key ASDN9N4Cy9pAVQpsuyn4UjWiY6plTT1o01Q-0z26s2tJdwo

To claim this, I am signing this object:

@ax3l
ax3l / picongpu-users.geojson
Last active July 25, 2016 08:04
PIConGPU User Map (unofficial)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ax3l
ax3l / nbconvert.sh
Created April 14, 2016 23:10
Jupyther Notebook Conversion
jupyter nbconvert "somenotebook.ipynb" --to="notebook" --nbformat=3