Skip to content

Instantly share code, notes, and snippets.

View acidtib's full-sized avatar

Dainel Vera acidtib

View GitHub Profile
@denguir
denguir / cuda_install.md
Last active November 15, 2024 20:13
Installation procedure for CUDA / cuDNN / TensorRT

How to install CUDA / cuDNN / TensorRT on Ubuntu

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

@thomasv314
thomasv314 / check.js
Created October 8, 2012 14:09 — forked from acidtib/check.js
// JSON Array of Towns.. In Rails: <%= @towns = Town.all.to_json %>
var TOWNS = [
{ town: "Abbeville city", id: 1 },
{ town: "Adamsville city", id: 2 },
{ town: "Addison Town", id: 3 }
];
$(document).ready(function() {
$('#postcard_city').bind('change', updateStateValue);
anonymous
anonymous / gist:2886040
Created June 7, 2012 01:47
Servidores de youtube
r1.ams03s07.c.youtube.com 74.125.15.6
r2.ams03s07.c.youtube.com 74.125.15.7
r3.ams03s07.c.youtube.com 74.125.15.8
r4.ams03s07.c.youtube.com 74.125.15.9
r5.ams03s07.c.youtube.com 74.125.15.10
r6.ams03s07.c.youtube.com 74.125.15.11
r7.ams03s07.c.youtube.com 74.125.15.12
r8.ams03s07.c.youtube.com 74.125.15.13
r9.ams03s07.c.youtube.com 74.125.15.14
r10.ams03s07.c.youtube.com 74.125.15.15
@mikz
mikz / gist:2813751
Created May 27, 2012 12:27
Make Rails 2.3.x play nice with Ruby 1.9.x. Forces encoding to UTF8 for every string in parameters.
module UTF8
module Params
private
def normalize_parameters_with_encoding(value)
normalize_parameters_without_encoding(value).tap do |value|
value.force_encoding(Encoding.default_external) if value.respond_to?(:force_encoding)
end
end
end
end