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
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.forward_port 80, 8080
config.vm.forward_port 8000, 8000
config.vm.forward_port 5432, 5432
config.vm.customize ["modifyvm", :id, "--memory", 256]
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.forward_port 80, 8080
config.vm.forward_port 8000, 8000
config.vm.forward_port 5432, 5432
config.vm.customize ["modifyvm", :id, "--memory", 256]
@avances123
avances123 / README.md
Created November 28, 2012 18:39 — forked from dergachev/README.md
Vagrant tutorial

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM

@avances123
avances123 / gist:4130168
Created November 22, 2012 09:25
coredump postgresql
VMCOREINFO
OSRELEASE=2.6.32-45-server
PAGESIZE=4096
SYMBOL(init_uts_ns)=ffffffff817e2360
SYMBOL(node_online_map)=ffffffff818736e8
SYMBOL(swapper_pg_dir)=ffffffff81001000
SYMBOL(_stext)=ffffffff81009000
SYMBOL(vmlist)=ffffffff81a516d0
SYMBOL(mem_section)=ffffffff81a53380
LENGTH(mem_section)=4096
@avances123
avances123 / smb.conf
Created September 26, 2012 14:35
edu gayer
#======================= Share Definitions =======================
# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home director as \\server\username
;[homes]
; comment = Home Directories
; browseable = no
# By default, the home directories are exported read-only. Change the
# Information Model configuration file
version 4
N ImSwitchEther ImSwitchEther
A switch_ether1 auto
A switch_ether2 auto
A switch_ether3 auto
A switch_ether4 auto
N ImClassifierProfiles ImClassifierProfiles
N ImClassifierProfile ImClassifierProfiles.voip
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-25-generic (buildd@crested) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012 (Ubuntu 3.2.0-25.40-generic 3.2.18)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-25-generic root=UUID=a2fe33f8-fced-402a-9ab1-be27ec23ec9e ro quiet splash vt.handoff=7
[ 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 - 000000000009c000 (usable)
@avances123
avances123 / baja_feed.py
Created June 25, 2012 10:15
Baja los podcast de rtve, en este caso el del programa musica antigua
#!/bin/python
import feedparser
import urllib2
#a = feedparser.parse("http://www.rtve.es/podcast/radio-clasica/grandes-ciclos/SGRACI.xml")
a = feedparser.parse("http://www.rtve.es/podcast/radio-clasica/musica-antigua/SMUANTI.xml")
for e in a.entries:
filename = e.subtitle_detail.value
Copyright (c) 2008 Chris Wanstrath
json-pure Copyright Genki Takiuchi
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions: