Skip to content

Instantly share code, notes, and snippets.

View raulqf's full-sized avatar

raulqf raulqf

View GitHub Profile
@raulqf
raulqf / readme.md
Created September 30, 2018 15:14 — forked from benstr/readme.md
Gist Markdown Cheatsheet

#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6


Paragraph

@raulqf
raulqf / Install_CUDA.md
Last active April 1, 2018 13:10
Installation guide for CUDA on Ubuntu distro.

How to install NVIDIA CUDA on Ubuntu distro

This is a brief receipt used for NVIDIA CUDA installation on a Ubuntu Linux Distro. All the steps can be found in the guide provided by NVIDIA but this gist contains some glue points to overcome problems during the installation.

The current installation was performed for an Ubuntu version 14.04.5 LTS, Trusty Tahr using a x86_64 architecture. You can get this information by typing in a consonle terminal:

$ uname -m && cat /etc/*release

Once you get that information we can find the NVIDIA Toolkit that supports our Linux Distro. Last version is NVIDIA CUDA Toolkit 8.0 ga2 although version 9 is already published but it does not give support for 14.04. To know what that information you must check Table 1. Native Linux Distribution Support

@raulqf
raulqf / apache_drupal.md
Last active March 29, 2018 13:02
How to Migrate your Drupal site to a new Virtual Machine using Ubuntu

Export the drupal site

  1. Export the database using the export functionality from phpmyadmin. Use the default configuration - Quick, Format SQL. Remember to select the database to export before accessing to this operation. How to install phpmyadmin

  2. Compress the web page code to send to the new virtual machine. You can do it by the following command:

     $ tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
    

Install Apache in the new machine

The following packages must be installed (remove the comments):

$ sudo apt-get install vim //vim editor

@raulqf
raulqf / VirtualEnv.md
Last active January 19, 2018 10:45
Virtual environment in python

Virutal environment is an useful utility for python to install packages locally and not globally so your system remains clean after installing multiples packages. It is recommended to avoid future conflicts between packages.

To install virtual environment you just have to type:

$ pip install virtualenv

To check the installation:

$ virtualenv --version
@raulqf
raulqf / dropbox_git.md
Created December 14, 2015 05:31 — forked from trey/dropbox_git.md
Using Dropbox to Share Git Repositories

Using Dropbox to Share Git Repositories

First, create a Git subfolder inside your Dropbox folder. Then you can share the individual projects inside that folder with whomever you want (or just use it for instant offsite backups).

From inside a Git project:

git clone --bare . ~/Dropbox/Git/gitproject.git
git remote add dropbox ~/Dropbox/Git/gitproject.git

When you're ready to push: