Skip to content

Instantly share code, notes, and snippets.

@nqnwebs
nqnwebs / plusone2rss.py
Created June 7, 2012 04:35
Google +1 feed generator
# -*- coding: utf-8 -*-
"""
Google Plus has no feeds for my +1 and I want to share them in my blog.
This is an incredible simple scrapper to hack that stupidly wrong policy.
My contents are mine!
author: Martín Gaitán <gaitan@gmail.com>
How to use?
@nqnwebs
nqnwebs / pre-commit.py
Created June 4, 2012 13:03
pep8 and pyflake as git hook
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
An script to run pep8 and pyflakes via git's pre-commit hook
based on https://github.com/lbolla/dotfiles/blob/master/githooks/pre-commit
modified by Martin Gaitán <mgaitan@machinalis.com>
Install:
@nqnwebs
nqnwebs / elnumero.py
Created December 26, 2011 02:30
My very first python app
#!/usr/bin/env python
#coding=utf-8
#el juego del numero version python
#4 y 5 de enero de 2007 - Martin Gaitan
#bajo licencia GPL v2 o superior
#gaitan@gmail.com
"""El Numero es un juego de logica y habilidad mental.
@nqnwebs
nqnwebs / tdt.sh
Created October 2, 2011 21:18
play video from TV card external input
#!/bin/bash
mplayer tv:// -tv driver=v4l2:device=/dev/video0:input=1:norm=ntsc:alsa:adevice=hw.0:amode=1