Skip to content

Instantly share code, notes, and snippets.

View ErikGartner's full-sized avatar

Erik Gärtner ErikGartner

View GitHub Profile
@ErikGartner
ErikGartner / CUDA guide.md
Last active October 7, 2024 09:02
A CUDA installations guide

A Magical Guide to Installing CUDA

This guide tries to make sense of installing NVIDIA CUDA on Ubuntu.

Disclaimer: Installing CUDA is a somewhat tedious and can be a problematic process. This guide worked for me, though if you have an unusual configuration you might need additional preparations to make this work. My machines are mostly blank Ubuntu machines.

For reference NVIDIA's official guides are here for CUDA and cuDNN.

Last updated: 2019-07-27

Versions

@Coderx7
Coderx7 / CaffePlot.py
Created June 6, 2016 04:10
a plot script for caffe to show loss/training curves
# In the name of GOD the most compassionate the most merciful
# Originally developed by Yasse Souri
# Just added the search for current directory so that users dont have to use command prompts anymore!
# and also shows the top 4 accuracies achieved so far, and displaying the highest in the plot title
# Coded By: Seyyed Hossein Hasan Pour ([email protected])
# -------How to Use ---------------
# 1.Just place your caffe's traning/test log file (with .log extension) next to this script
# and then run the script.If you have multiple logs placed next to the script, it will plot all of them
# you may also copy this script to your working directory, where you generate/keep your train/test logs
# and easily execute the script and see the curve plotted.
@EderSantana
EderSantana / CATCH_Keras_RL.md
Last active June 22, 2024 17:07
Keras plays catch - a single file Reinforcement Learning example
@ErikGartner
ErikGartner / .treehouse
Last active October 9, 2024 13:22
dTree Demo
1.3.1
@ndarville
ndarville / secret-key-gen.py
Created August 24, 2012 17:01
Generating a properly secure SECRET_KEY in Django
"""
Two things are wrong with Django's default `SECRET_KEY` system:
1. It is not random but pseudo-random
2. It saves and displays the SECRET_KEY in `settings.py`
This snippet
1. uses `SystemRandom()` instead to generate a random key
2. saves a local `secret.txt`