Skip to content

Instantly share code, notes, and snippets.

View ax3l's full-sized avatar

Axel Huebl ax3l

View GitHub Profile
@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
@ax3l
ax3l / warp.hypnos.profile
Created April 14, 2016 22:22
Warp on Hypnos (HZDR)
# Modules #####################################################################
#
if [ -f /etc/profile.modules ]
then
. /etc/profile.modules
module purge
# export MODULES_NO_OUTPUT=1
# Core Dependencies
@ax3l
ax3l / ADIOS_Python.md
Last active February 19, 2016 10:05
ADIOS Python Quick Install

Set environment vars

# MXML env
export MXML_ROOT=$HOME/lib/mxml
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MXML_ROOT/lib

# ADIOS env
export ADIOS_ROOT=$HOME/lib/adios-master
export PATH=$PATH:$ADIOS_ROOT/bin
@ax3l
ax3l / matplotlib.md
Last active October 11, 2019 00:07
Matplotlib: Axes vs Axis vs Figure vs ...
@ax3l
ax3l / PythonTiff.md
Last active January 10, 2024 16:49
Python: Write tif
@ax3l
ax3l / streaming.md
Last active September 1, 2020 23:02
Streaming Magic

Streaming Magic

This gist contains cmd line streaming magic.

Create a virtual cam with the desktop as the input

For a 1280x1024 desktop:

sudo modprobe v4l2loopback devices=1
@ax3l
ax3l / gcc_defaults
Created September 16, 2015 13:40
Compiler lookup Defaults GCC
echo "int main() {}"|/opt/XXX/bin/g++ -xc++ - -v
ref: https://www.mail-archive.com/cmake@cmake.org/msg50008.html
@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 / clustersoftware
Last active August 29, 2015 14:14
Cluster-Dependencies
/* Generate the output
*
* Debian: apt-get install libgraph-easy-perl
* Command:
* graph-easy --input=libraryDependencies.dot --boxart > libraryDependencies.md
* graph-easy --input=libraryDependencies.dot --as_ascii > libraryDependencies.txt
* graph-easy --input=libraryDependencies.dot --svg > libraryDependencies.svg
* graph-easy --input=libraryDependencies.dot --png
*/