Skip to content

Instantly share code, notes, and snippets.

View raulqf's full-sized avatar

raulqf raulqf

View GitHub Profile
@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:

@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 / Install_OpenCV3_CUDA9.md
Last active September 2, 2023 13:13
Install OpenCV 3.4.1 with CUDA 9.0 support for an Ubuntu 18.04 distro.

How to install OpenCV 3.4.1 with CUDA on Ubuntu distro

First of all install update and upgrade your system:

    $ sudo apt-get update
    $ sudo apt-get upgrade

Then, install required libraries:

@raulqf
raulqf / Install_Qt.md
Last active January 8, 2023 11:12
How to install Qt libraries on Linux from source code

How to install Qt on Linux from source code

One of the best option is to use the run package offered by Qt to install the libraries and its IDE (Qt Creator). Nevertheless However, when you want to compile it for a sever, where no GUI is required, you must be then interested in how to compile from source and discover some of the configuration options you have to disable some GUI modules among others and get lightest weight libraries.

First of all download the tar.xz file from Qt. You can also go to the archive and select the best that fulfill your requirement. Right now I am going on with the newest version up to the moment v5.9.3.

Create a directory and uncompress the downloaded file:

  $ mkdir temp

$ cd temp

@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 / Install_Tensorflow_with_CUDNN.md
Last active November 3, 2022 04:06
How to install Tensorflow with CUDNN support and how to check the correct installation.

How to install Tensorflow with CUDNN on Ubuntu Distro 14.04 or higher with CUDA 8.0 and CUDNN 6.0

This gist shows how to install Tensorflow with CUDNN support and how to check the correct installation. This gist is based on the Tensorflow installation guide and following the LearnOpencv blog entry Installing Deep Learning Frameworks on Ubuntu with CUDA support that is more complete that this gist but there are sometimes misleading/hidden steps that can be covered in this gist.

First prerequisite is the CUDA Toolkit installation. You can check this gist for the CUDA installation. As a difference from the CUDA installation CUDNN is very easy to install. We only have to deploy the downloaded libraries in your system. At the time I am writing this guide current toolkit version is 8.0.

To downl

@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 / nvidia_drivers.md
Last active January 11, 2023 22:38
Install Nvidia Drivers - Ubuntu

How to install NVIDIA Drivers

Disable nouveau (if required) - free and open source graphi device driver for Nvidia video cards.

First disable nouveau free/libre software drivers for NVIDIA using blacklist:

$ sudo vim /etc/modprobe.d/blacklist.conf

And include:

blacklist nouveau

@raulqf
raulqf / git_environment_for_deployment.md
Last active March 11, 2019 00:40
This gist explains how to set an environment to deploy easily your project in your production server.

Configure a working environment to easily Deploy your project using Git

This gist explains how to set a working environment to deploy easily your project in your production server. To this aim a git bare repository is set in the remote server which is used for control versions as well as to upload and deploy your progress to the production server.

The structure of the proposed environment consists of 3 parts:

  1. Working directory (Local)
  2. Deployment directory (Remote Server)
  3. Git bare repository (Remote Server)
@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