Skip to content

Instantly share code, notes, and snippets.

View n01r's full-sized avatar

Marco Garten n01r

View GitHub Profile
@steindev
steindev / data-transfer_judac.sh
Last active September 30, 2022 21:14
Script to transfer data from Juelich Supercomputing Center to HZDR.
#!/bin/bash
#
# Script to transfer data from Juelich Supercomputing Center to HZDR.
# Call with
# > screen # open a screen session first to be able to logout from the
# # data mover system
# > exec ssh-agent bash # prepare shell to add ssh key passphrase to ssh-agent
# # in order to not type it all the time
# > ssh-add ~/.ssh/id_ed25519 # add ssh key passphrase to ssh-agent
# > xargs -a dirs.list -n 1 -P 5 ~/bin/data-transfer_judac.sh | tee transfer.out
@steindev
steindev / PIConGPU_0.7.0-dev_juwels-jsc.sh
Last active July 12, 2022 13:46
JUWELS@JSC: Install PIConGPU dependencies to run on the BOOSTER module
#!/usr/bin/env bash
#
# Authors: Axel Huebl, Marco Garten, Klaus Steiniger, Anton Lebedev
#
# last updated: 2022-06-13
PIC_BRANCH="dev"
# get PIConGPU profile
if [ ! -f "$PIC_PROFILE" ]; then
@HighIander
HighIander / ..myNiceSmileiSetup
Last active September 11, 2020 13:01
Sample smilei files
use at your own risk!
@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"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@paulochf
paulochf / ipython_notebook_large_width.py
Last active November 14, 2024 11:23
IPython/Jupyter Notebook enlarge/change cell width
from IPython.display import display, HTML
display(HTML(data="""
<style>
div#notebook-container { width: 95%; }
div#menubar-container { width: 65%; }
div#maintoolbar-container { width: 99%; }
</style>
"""))
@rossant
rossant / raytracing.py
Last active December 7, 2025 02:07
Very simple ray tracing engine in (almost) pure Python. Depends on NumPy and Matplotlib. Diffuse and specular lighting, simple shadows, reflections, no refraction. Purely sequential algorithm, slow execution.
"""
MIT License
Copyright (c) 2017 Cyrille Rossant
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