Skip to content

Instantly share code, notes, and snippets.

View VGonPa's full-sized avatar

Victor González-Pacheco VGonPa

View GitHub Profile
@VGonPa
VGonPa / .zshrc
Last active August 29, 2015 14:18
My Zsh config file
# Path to your oh-my-zsh installation.
export ZSH=/home/monarch/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# ZSH_THEME="robbyrussell"
# ZSH_THEME="alanpeabody"
ZSH_THEME="clean"
# IPython magic to check for PEP8 compliance.
# Author: Juan Luis Cano <juanlu001@gmail.com>
"""IPython magic to check for PEP8 compliance.
To use it, type
```%load_ext pep8magic```
and then
@VGonPa
VGonPa / autoinstall.sh
Created February 4, 2015 10:38
Install automatically several programs that I use in my programming environments
#!/bin/sh
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo add-apt-repository ppa:unit193/sourcecodepro
sudo add-apt-repository ppa:alexey-ivanov/qtcreator
sudo aptitude update
sudo aptitude install fonts-source-code-pro-ttf sublime-text qtcreator vim htop
@VGonPa
VGonPa / Dockerfile
Last active August 29, 2015 14:14 — forked from jonbinney/Dockerfile
Dockerfile for ROS Hydro
FROM ubuntu:precise
# ubuntu precise image doesn't have universe repo
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
run apt-get update
RUN apt-get install -y wget
# install ROS
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'
RUN wget http://packages.ros.org/ros.key -O - | apt-key add -
@VGonPa
VGonPa / Unittest Module with one Class
Last active August 29, 2015 14:13
Sublime snippets
<snippet>
<content><![CDATA[
PKG = '${1:package_name}'
${2:import unittest}
class Test${3:ClassName}(unittest.TestCase):
def __init__(self, *args):
super(Test${3:ClassName}, self).__init__(*args)
@VGonPa
VGonPa / lasr-uc3m_snippet
Created January 11, 2015 14:31
LASR-UC3M license Sublime 3 Snippet
<snippet>
<content><![CDATA[
# :version: ${1:0}.${2:0}.${3:0}
# :copyright: Copyright (C) 2014 Universidad Carlos III de Madrid.
# Todos los derechos reservados.
# :license LASR_UC3M v1.0, ver LICENCIA.txt
# Este programa es software libre: puede redistribuirlo y/o modificarlo
# bajo los términos de la Licencia Académica Social Robotics Lab - UC3M
@VGonPa
VGonPa / qtcreator.desktop
Last active August 29, 2015 14:07
QTCreator Desktop File that loads ROS environment automatically
[Desktop Entry]
Exec=bash -i -c qtcreator %F
Icon=QtProject-qtcreator
Type=Application
Terminal=false
Name=Qt Creator ROS
GenericName=Integrated Development Environment
MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.nokia.qt.qmakeprofile;application/vnd.nokia.xml.qt.resource;
Categories=Qt;Development;IDE;
InitialPreference=9
@VGonPa
VGonPa / pretty_PS1
Last active August 29, 2015 14:07
A pretty format for your bash prompt
# Prompt Colors
BGREEN='\[\033[1;32m\]'
GREEN='\[\033[0;32m\]'
BRED='\[\033[1;31m\]'
RED='\[\033[0;31m\]'
BYELLOW='\[\033[1;33m\]'
YELLOW='\[\033[0;33m\]'
BBLUE='\[\033[1;34m\]'
BLUE='\[\033[0;34m\]'
BBLACK='\[\033[1;30m\]'
@VGonPa
VGonPa / dark_theme.txsprofile
Created October 10, 2014 12:52
TexStudio Dark theme settings
[General]
IniMode=true
[formats]
data\align-ampersand\bold=true
data\align-ampersand\fontFamily=<default>
data\align-ampersand\foreground=#dc322f
data\align-ampersand\italic=false
data\align-ampersand\overline=false
data\align-ampersand\pointSize=0
@VGonPa
VGonPa / ipython-qtconsole.desktop
Created October 10, 2014 12:51
Ubuntu desktop file launcher to launch IPython QTconsole
# Downloaded From: https://github.com/ipython/ipython/blob/master/examples/IPython%20Kernel/ipython-qtconsole.desktop
# With modifications to use dark background theme
# If you want ipython to appear in a linux app launcher ("start menu"), install this by doing:
# sudo desktop-file-install ipython-qtconsole.desktop
[Desktop Entry]
Comment=Enhanced interactive Python qtconsole
Exec=ipython qtconsole --ConsoleWidget.font_family="Source Code Pro"
GenericName[en_US]=Python shell