The goal is to install a Python friendly environment on your computer. It works on Linux, Windows and OSX. The base
environment will provide you the minimum to be able to start Jupyter and then we will use different Conda environments with all the necessary packages to do analysis. Those environments will then be available as kernels in Jupyter.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Cuda and friends installation done right. | |
# Switch default Cuda version using symbolic link: cuda.switch 9.2 | |
# Install Cuda: cuda.install.cuda 10.0 | |
# Install cuDNN to CUDA_HOME: cuda.install.cudnn 7.5 | |
# Install NCCL to CUDA_HOME: cuda.install.nccl 2.4 | |
# Install Cuda, cuDNN and NCCL: cuda.install 10.0 7.5 2.4 | |
# Author: Hadrien Mary <[email protected]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Modified from https://gist.github.com/Stono/7e6fed13cfd79598eb15 | |
# | |
# MIT License applies to this script. I don't accept any responsibility for | |
# damage you may cause using it. | |
set -ex | |
if [[ $EUID -ne 0 ]]; then | |
echo "* This script needs to be run as root" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install the joblib library if needed. | |
# conda install joblib | |
import joblib as jb | |
import numpy as np | |
def my_function_that_take_time(arg1, arg2): | |
# Simulate a long computation. |
Instructions to compile ctffind4 on CentOS 8.
# Enable PowerTools
sudo dnf config-manager --set-enabled PowerTools
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A minimal configuration to host a RustDesk server with Traefik v3. | |
# | |
# This configuration is based on a single Rustdesk container hosting the two hbbr and hbbs services | |
# instead of running two separate containers as in the official documentation. | |
# See https://rustdesk.com/docs/en/self-host/rustdesk-server-oss/docker/ for more information. | |
# | |
# Pay attention to the comments in the file and adapt the configuration to your needs. | |
# Once deployed you must configure the Rustdesk client in the Network tab to use the domain | |
# name of the relay server and the port 21117. | |
# ID server: DOMAIN_NAME:21116 |