Skip to content

Instantly share code, notes, and snippets.

View fredguth's full-sized avatar

Fred Guth fredguth

  • Brasília, DF, Brazil
View GitHub Profile
@fredguth
fredguth / cuda_install.md
Last active December 18, 2023 21:05 — forked from denguir/cuda_install.md
Installation procedure for CUDA & cuDNN

How to install CUDA & cuDNN on Ubuntu 22.04

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

@fredguth
fredguth / knapsack_breadth_first_search
Created July 13, 2023 20:33 — forked from pedrohbtp/knapsack_breadth_first_search
implementation of knapsack problem exploring the state space in a breadth first search manner and using memoization to reduce the exploration space
@fredguth
fredguth / cuda_installation_on_ubuntu_18.04
Created September 26, 2018 13:09 — forked from Brainiarc7/cuda_installation_on_ubuntu_18.04
cuda 9.0 installation guidline for ubuntu 18.04 LTS
# first get the PPA repository driver
sudo add-apt-repository ppa:graphics-drivers/ppa
# install nvidai driver
sudo apt install nvidia-384 nvidia-384-dev
# install other import packages
sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev
# CUDA 9 requires gcc 6
@fredguth
fredguth / Install NVIDIA Driver and CUDA.md
Created May 23, 2018 20:12 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@fredguth
fredguth / components.my-component.js
Last active April 8, 2018 14:09 — forked from sglanzer-deprecated/components.my-component.js
Arbitrary properties set via an object hash
import Ember from 'ember';
export default Ember.Component.extend({
notMyInput: Ember.computed('myInput', function() {
return !this.get('myInput')
})
});
function init(m, email, password) {
// generate the database encryption key
vendor.nCrypto
.pbkdf2(
Buffer.from(m.mnemonic, "utf8"),
Buffer.from(databaseKeySeed, "utf8"),
2048,
64,
"sha512"
)
@fredguth
fredguth / gist:4059877
Created November 12, 2012 15:07 — forked from frederico/gist:4059512
Vaga para Programador Ruby
Requisitos da vaga:
- Experiência em ruby (2 anos);
- Rails 3 >=
- HTML/CSS/JS;
- Postgresql;
- Unix/Linux;
- posição full-time (40 horas/semana);
- remoto, com reuniões diárias via Skype e presenciais de 1 a 2 vezes por mês;
- horário flexível;
@fredguth
fredguth / gist:4059875
Created November 12, 2012 15:07 — forked from frederico/gist:4059512
Vaga para Programador Ruby
Requisitos da vaga:
- OO
- HTML/CSS/JS
- Experiência comprovada em desenvolvimento web (2 anos) em qualquer linguagem de preferência ruby
- Rails 3 >=
- Postgresql ou Mysql
- Unix/Linux
- posição full-time (40 horas/semana);
- remoto, com reuniões diárias via Skype e presenciais de 1 a 2 vezes por mês;
- horário flexível;