Skip to content

Instantly share code, notes, and snippets.

View jesusangelm's full-sized avatar

Jesus Marin jesusangelm

View GitHub Profile
### Keybase proof
I hereby claim:
* I am jesusangelm on github.
* I am jesusangelm (https://keybase.io/jesusangelm) on keybase.
* I have a public key whose fingerprint is 341C 146D 5965 1672 DBB6 7679 85FC 75D5 E8AD 3A96
To claim this, I am signing this object:
@jesusangelm
jesusangelm / parser_clasificados.rb
Created May 27, 2015 14:40
Parseador que extrae los clasificados de alquiler de apartamento y casa de la web del periodico El Sol de Margarita.
require 'nokogiri'
require 'open-uri'
class ParserClasificados
def urls(type)
case type
when :apartment_rent
return "http://www.elsoldemargarita.com.ve/clasificados/index/fsection:1"
when :house_rent
@jesusangelm
jesusangelm / skype.desktop
Created April 24, 2015 18:55
archivo skype.desktop modificado para cargar libreria v4l y hacer funcionar la camara en Kubuntu 14.04 LTS
[Desktop Entry]
Name=Skype
Comment=Skype Internet Telephony
Exec=env PULSE_LATENCY_MSEC=60 LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype %U
Icon=skype.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Network;Application;
MimeType=x-scheme-handler/skype;
@jesusangelm
jesusangelm / breadcrumb.rb
Created March 2, 2015 13:49
breadcrumb adaptado para TwitterBootstrap. le falta optimizacion.
def breadcrumbs(include_home = true)
levels = request.path.split('?')[0].split('/')
levels.delete_at(0)
links = content_tag("li") { content_tag('a', "Inicio", :href => root_path ) if include_home }
nocrumb = []
levels.each_with_index do |level, index|
level = level.gsub(/^[0-9]+\-/,"") #if levels[index-1] == "photos"
level = level.gsub("-", " ")
if index+1 == levels.length
elsif !nocrumb.include?(level)

Keybase proof

I hereby claim:

  • I am jesusangelm on github.
  • I am jesusangelm (https://keybase.io/jesusangelm) on keybase.
  • I have a public key whose fingerprint is 7867 1133 740C 53E5 7AD3 481E 73EF F2EC 327A 7FB0

To claim this, I am signing this object:

@jesusangelm
jesusangelm / nvidia.conf
Last active January 2, 2016 16:09
nvidia.conf con los valores de resolucion 1920x1080 - para usar en distros problematicas
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 331.20 (buildmeister@swio-display-x86-rhel47-05) Wed Oct 30 18:20:53 PDT 2013
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
@jesusangelm
jesusangelm / gist:8175442
Created December 29, 2013 22:12
Script para usar 256color en la terminal cuando se obtiene el error: *** VTE ***: Failed to load terminal capabilities from '/etc/termcap' reconocido como bug de VTE
# Enable 256 color capabilities for appropriate terminals
# Set this variable in your local shell config if you want remote
# xterms connecting to this system, to be sent 256 colors.
# This can be done in /etc/csh.cshrc, or in an earlier profile.d script.
# SEND_256_COLORS_TO_REMOTE=1
# Terminals with any of the following set, support 256 colors (and are local)
local256="$COLORTERM$XTERM_VERSION$ROXTERM_ID$KONSOLE_DBUS_SESSION"
@jesusangelm
jesusangelm / gist:8173269
Created December 29, 2013 18:31
Comandos para configurar la resolución de pantalla usando cvt y xrandx. Util si la resolución deseada no aparece listada. Probado en ArchLinux y Manjaro.
#Comandos para configurar la resolución de pantalla usando cvt y xrandx.
#Util si la resolución deseada no aparece listada. Probado en ArchLinux y Manjaro.
$ cvt 1920 1080
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
$ xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
@jesusangelm
jesusangelm / .tmux.conf
Last active September 24, 2017 18:31
Mi configuracion de Tmux. Necesita algo de limpieza.
#configs para Tmux
#shell por defecto
#set -g default-command /bin/zsh
#set -g default-shell /bin/zsh
#tecla de prefijo de Tmux cambiada similar a Screen: Ctrl-a
#de Ctrl-b a Ctrl-a
set -g prefix C-a
@jesusangelm
jesusangelm / gist:7379607
Created November 9, 2013 00:03
DNSCrypt + DNSMasq
### Usar DNSCrypt + DnsMasq
#### Para encriptado de peticiones DNS y cacheo de dichas peticiones.
Primero debemos configurar DNSmasq con las siguientes opciones:
################################################################
# Configuration file for dnsmasq.
#
# Format is one option per line, legal options are the same as the
# long options legal on the command line. See