Skip to content

Instantly share code, notes, and snippets.

View pablox-cl's full-sized avatar

Pablo Olmos de Aguilera Corradini pablox-cl

View GitHub Profile
@pablox-cl
pablox-cl / csv2yaml.rb
Created November 7, 2010 17:14 — forked from reservationlive/Ruby script to convert CSV to YAML
Simple Ruby CSV to YAML converter
#!/usr/bin/env ruby
#
# Originally written by http://redartisan.com/tags/csv
# Added and minor changes by Gavin Laking
#
# "id","name","mime_type","extensions","icon_url"
# "1","unknown","unknown/unknown","||","/images/icon/file_unknown.gif"
# "2","image/tiff","image/tiff","|tiff|tif|","/images/icon/blank.png"
#
# if you want to remove the id: "number" line from the resulting YAML file
@pablox-cl
pablox-cl / instants_cl_mp3_downloader.sh
Created November 8, 2010 00:57
Bash script to download sounds from instants.cl
#!/usr/bin/env bash
#
###############################################################################
# #
# (c) 2010, Pablo Olmos de Aguilera <pablo[at}glatelier.org>; #
# Based on work from Gonzalo Diaz <me{at)gon.cl>; #
# http://gon.pastebin.com/zanh8uAq #
# #
# Based on InstantsFunGet from Felipe Astroza <felipe(at]astroza.cl> #
# http://felipe.astroza.cl/news/2010/05/08/audios-de-instantsfun-es-en-mp3/ #
@pablox-cl
pablox-cl / html2text.sh
Created November 9, 2010 00:59
Bash script to convert all the html files in a directory to text files
#!/usr/bin/env bash
# (C) 2010 - Pablo Olmos de Aguilera Corradini <pablo{at)glatelier.org>
# Under GPL v3. See http://www.gnu.org/licenses/gpl-3.0.html
# requires html2text.py
wget -q http://www.aaronsw.com/2002/html2text/html2text.py
for file in *.html; do
name=$(basename $file)
name=${file%.*}
@pablox-cl
pablox-cl / gist:1020197
Created June 11, 2011 02:54
rails 3.1.0.rc4 file 'lib' not found
$ gem install rails --pre --debug
Exception `NameError' at /home/arch/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:177 - uninitialized constant Gem::Commands::InstallCommand
Exception `Errno::EAGAIN' at /home/arch/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block
Exception `Errno::EAGAIN' at /home/arch/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block
Exception `Errno::EAGAIN' at /home/arch/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block
Exception `Errno::EAGAIN' at /home/arch/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block
Exception `Errno::EAGAIN' at /home/arch/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block
Exception `Errno::EAGAIN' at
@pablox-cl
pablox-cl / remaining_battery.sh
Created August 1, 2011 23:26
Bash script that throws a message when battery is low
#!/bin/bash
# Written by Pablo Olmos de Aguilera C. <pablo at glatelier dot org>
LIMIT=1000
MESSAGE='¡Queda poca batería! ¡Corre a buscar el cargador!'
BAT_DIR='/proc/acpi/battery/BAT0'
echo 'running...'
initial=$(cat ${BAT_DIR}/* | grep 'remaining' | awk '{ print $3 }')
#rate=$(cat /proc/acpi/battery/BAT0/* | grep 'rate' | awk '{ print $3 }')
@pablox-cl
pablox-cl / PKGBUILD
Created August 26, 2011 18:40
PKGBUILD for Illumination Software Creator
# Maintainer: Jason Pollitt snostormjp gmail
# Contributor: Pablo Olmos de Aguilera Corradini <pablo at glatelier dot org>
# Contributor: http://www.radicalbreeze.com
pkgname=illumination-software-creator
pkgver=3.2
pkgrel=2
pkgdesc="Illumination Software Creator Graphical programing that Produces source code"
url="http://radicalbreeze.com/"
arch=('i686' 'x86_64')
license=('shareware')
@pablox-cl
pablox-cl / tint2rc.light
Created May 1, 2012 23:13
Tint2 configuration file for black backgrounds
# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure
# To use this as default tint2 config: save as $HOME/.config/tint2/tint2rc
# Background definitions
# ID 1 - Systray
rounded = 7
border_width = 2
@pablox-cl
pablox-cl / beta.txt
Created June 7, 2012 21:10
TTYtter 2.0.00b9
#!/usr/bin/perl -s
#########################################################################
#
# TTYtter v2.0 (c)2007-2012 cameron kaiser (and contributors).
# all rights reserved.
# http://www.floodgap.com/software/ttytter/
#
# distributed under the floodgap free software license
# http://www.floodgap.com/software/ffsl/
#
@pablox-cl
pablox-cl / TTYtter 2.0.00 PKGBUILD
Created June 7, 2012 21:15
TTYtter 1.2.5.00 -> 2.0.00 PKGBUILD Upgrade
# Maintainer: Peter Richard Lewis <[email protected]>
# Contributor: TDY <[email protected]>
# Contributor: Roberto Viola <[email protected]>
pkgname=ttytter
pkgver=2.0.00
pkgrel=1
pkgdesc="A multi-functional, command-line twitter client"
arch=('any')
url="http://www.floodgap.com/software/ttytter/"
@pablox-cl
pablox-cl / PKGBUILD
Created July 25, 2012 15:35
lib32-flashplugin10 10.3.183.20
# Maintainer: jtts
# Contributor: Pablo Olmos de Aguilera C. <pablo at glatelier dot org>
pkgname=lib32-flashplugin10
_filename="fp_10.3.183.20_archive"
_licensefile='Reader_Player_AIR_WWEULA-Combined-20080204_1313.pdf'
pkgver=10.3.183.20
pkgrel=1
pkgdesc='Adobe Flash Player v10 (32-bit) - multilib version for x86_64 with working HW accelerated scaling'
url='http://kb2.adobe.com/cps/142/tn_14266.html'