Skip to content

Instantly share code, notes, and snippets.

View avances123's full-sized avatar
🏠
Working from home

Fabio Rueda avances123

🏠
Working from home
View GitHub Profile
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups
Django==1.4
argparse==1.2.1
distribute==0.6.24
django-debug-toolbar==0.9.4
django-social-auth==0.6.9
ipython==0.12.1
oauth2==1.5.211
psycopg2==2.4.5
python-openid==2.2.5
wsgiref==0.1.2
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
id | name | acronym | country_id
----+---------------------------------------------------------+-------------------+------------
1 | PARTIDO POPULAR | PP | 1
2 | PARTIDO SOCIALISTA OBRERO ESPAÑOL | PSOE | 1
3 | IZQUIERDA UNIDA-LOS VERDES: LA IZQUIERDA PLURAL | IU-LV | 1
4 | UNIÓN PROGRESO Y DEMOCRACIA | UPyD | 1
5 | CONVERGÈNCIA I UNIÓ | CiU | 1
6 | AMAIUR | AMAIUR | 1
7 | EUZKO ALDERDI JELTZALEA-PARTIDO NACIONALISTA VASCO | EAJ-PNV | 1
8 | ESQUERRA REPUBLICANA | ESQUERRA | 1
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-24-generic (buildd@crested) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 (Ubuntu 3.2.0-24.39-generic 3.2.16)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-24-generic root=UUID=12c026e1-93ea-4b4b-a126-80798fc9e3ca ro vga=normal
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009ec00 (usable)
# -*- encoding: utf-8 -*-
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'gist'
Gem::Specification.new do |s|
s.name = "gist"
s.version = Gist::Version.to_s
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = "Creates Gists from STDIN or files."
# -*- encoding: utf-8 -*-
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'gist'
Gem::Specification.new do |s|
s.name = "gist"
s.version = Gist::Version.to_s
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = "Creates Gists from STDIN or files."
@avances123
avances123 / trans
Created May 24, 2012 13:59
transacciones
demoleaks=# BEGIN ;
BEGIN
demoleaks=# INSERT INTO data_election (name) VALUES ('kk');
ERROR: null value in column "date" violates not-null constraint
demoleaks=# COMM
COMMENT COMMIT
demoleaks=# COMM
COMMENT COMMIT
demoleaks=# COMMIT ;
ROLLBACK
@avances123
avances123 / cacota.txt
Created May 17, 2012 16:57
prueba sublime
osm=# select distinct(name),admin_level from planet_osm_polygon where admin_level = '4';
name | admin_level
--------------------------+-------------
Amuitz | 4
Comunitat Valenciana | 4
Andalucía | 4
Estación Invernal Lunada | 4
Extremadura | 4
Murcia | 4
Galicia | 4
@avances123
avances123 / fallo_autonomias
Created April 30, 2012 22:11
osm=# select distinct(name),admin_level from planet_osm_polygon where admin_level = '4';
osm=# select distinct(name),admin_level from planet_osm_polygon where admin_level = '4';
name | admin_level
--------------------------+-------------
Amuitz | 4
Comunitat Valenciana | 4
Andalucía | 4
Estación Invernal Lunada | 4
Extremadura | 4
Murcia | 4
Galicia | 4