Skip to content

Instantly share code, notes, and snippets.

View ax3l's full-sized avatar

Axel Huebl ax3l

View GitHub Profile
@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 / bashrc
Last active June 30, 2020 04:25
multiple_pkg_managers
# snippet for file: $HOME/.bashrc
#
# License: CC0
#
# register a bash function that calls the script above
activate-env () {
. $HOME/bin/impl-activate-env $@
}
@ax3l
ax3l / matplotlib.md
Last active October 11, 2019 00:07
Matplotlib: Axes vs Axis vs Figure vs ...
@ax3l
ax3l / PIConGPU_040-dev_PizDaint.sh
Last active May 13, 2019 14:45
Piz Daint: PIConGPU 0.4.0-dev Quick-Start
#!/usr/bin/env bash
#
# Authors: Axel Huebl, Marco Garten, Klaus Steiniger
#
# last updated: 2019-05-13
#
# execute:
# wget -O - https://gist.githubusercontent.com/ax3l/68cb4caa597df3def9b01640959ea56b/raw/PIConGPU_040-dev_PizDaint.sh | bash
PIC_BRANCH="dev"
@ax3l
ax3l / awesome_standalone.md
Last active February 4, 2019 13:57
Awesome, Stand-Alone C++11 Projects

Awesome, Stand-Alone C++11 Projects

Projects with wide adoption, broad compiler support, proper testing and great documentation.

Most of them are header-only (which is not necessarily a good thing for all tasks!), some of them even provide an amalgated (single-file) header.

CLI

(replace Boost.ProgramOptions)

@ax3l
ax3l / xeus_cling_openmp.ipynb
Last active May 15, 2018 11:28
Xeus-Cling with OpenMP
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ax3l
ax3l / cuda.h
Created April 26, 2018 11:26 — forked from eliben/cuda.h
Minimal CUDA support header for parsing with Clang
/* Minimal declarations for CUDA support. Testing purposes only. */
#define __constant__ __attribute__((constant))
#define __device__ __attribute__((device))
#define __global__ extern "C" __attribute__((global))
#define __host__ __attribute__((host))
#define __shared__ __attribute__((shared))
#define __launch_bounds__(...) __attribute__((launch_bounds(__VA_ARGS__)))
#define __forceinline__ __attribute__((always_inline))
@ax3l
ax3l / PIConGPU_040-dev_Octopus.sh
Last active March 5, 2018 07:01
Octopus (Osaka U): PIConGPU 0.4.0-dev Quick-Start
#!/usr/bin/env bash
#
# Author: Axel Huebl
#
# last updated: 2018-03-05
#
# execute:
# curl https://gist.githubusercontent.com/ax3l/080675215fdaf0c8bf0ad054ee8f7bc0/raw/PIConGPU_040-dev_Octopus.sh | bash
PIC_BRANCH="dev"
@ax3l
ax3l / PIConGPU_040-dev_osx.sh
Last active March 5, 2018 03:55
PIConGPU OSX Quick Start
#!/usr/bin/env bash
#
# Author: Axel Huebl
#
# last updated: 2018-03-05
#
# execute:
# curl https://gist.githubusercontent.com/ax3l/9e77c1b688136ea37b05ff00ea0e420f/raw/PIConGPU_040-dev_osx.sh | bash
PIC_BRANCH="dev"
@ax3l
ax3l / BoostLibs.md
Last active August 14, 2017 13:19
Boost Compile Time Libs and Names

Boost 1.62

List of all libs here. Non header-only libraries (via ./bootstrap.sh --show-libraries):

The Boost libraries requiring separate building and installation are:
    - atomic
    - chrono
    - container
 - context