Skip to content

Instantly share code, notes, and snippets.

Avatar

Axel Huebl ax3l

View GitHub Profile
@ax3l
ax3l / CodingGuideLines_PIConGPU.md
Last active Dec 20, 2015
New PIConGPU Coding Guide Lines - Draft
View CodingGuideLines_PIConGPU.md
  • TypeNames and objects, e.g. const Event event;
  • close namespaces with a comment: } // namespace itsName
  • Makros with newlines: align \ symbol to column 80
  • Describe how PreProcessor Macros are unrolled (excellent example)
/*      < typename T0, ... , typename TN    > */
template<BOOST_PP_ENUM_PARAMS(N, typename T)>
/*                      ( const T0, ... , const TN        ) */
HDINLINE void operator()( BOOST_PP_ENUM_PARAMS(N, const T)) const
@ax3l
ax3l / BoostLibs.md
Last active Aug 14, 2017
Boost Compile Time Libs and Names
View BoostLibs.md

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
@ax3l
ax3l / latexGitHub
Last active Dec 12, 2020
Latex in GitHub Markdown
View latexGitHub
**URLEncode** Latex Formula -> [http://meyerweb.com/eric/tools/dencoder/]
Create Link:
```markdown
![My Formula](http://latex.codecogs.com/gif.latex?<URLEncodedLaTeX>)
or
![My Formula](https://chart.googleapis.com/chart?cht=tx&chl=<URLEncodedLaTeX>)
```
@ax3l
ax3l / DebCuda.md
Last active Aug 29, 2015
(deb) Cuda Compile without Card
View DebCuda.md

Seen here

language: cpp

compiler:
  - gcc

script:
  - mkdir build_tmp && cd build_tmp
View CUDA_Compilers.md
@ax3l
ax3l / adiosCompile.sh
Last active Dec 7, 2016
adios_quickcompile
View adiosCompile.sh
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 / clustersoftware
Last active Aug 29, 2015
Cluster-Dependencies
View clustersoftware
/* 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
*/
@ax3l
ax3l / KomoP.md
Last active Oct 5, 2016
King of my own Python
View KomoP.md

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 / gcc_defaults
Created Sep 16, 2015
Compiler lookup Defaults GCC
View gcc_defaults
echo "int main() {}"|/opt/XXX/bin/g++ -xc++ - -v
ref: https://www.mail-archive.com/cmake@cmake.org/msg50008.html
@ax3l
ax3l / streaming.md
Last active Sep 1, 2020
Streaming Magic
View streaming.md

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