Skip to content

Instantly share code, notes, and snippets.

View KefDS's full-sized avatar

Kevin Delgado Sandí KefDS

View GitHub Profile
@KefDS
KefDS / referencia_git.md
Last active August 25, 2022 20:49
Referencia acerca de comandos y configuración git

Pequeña referencia acerca de Git y GitHub

Configurar Git

Configuración básica

	git config --global user.name "Usuario"				# Nombre de usuario
	git config --global user.email ejemplo@ejemplo.com 		# e-mail
@KefDS
KefDS / postgres_ruby_connection.rb
Last active January 26, 2016 04:28
Ruby class that wraps pg library calls
require 'pg' # gem install pg
# Wraps pg library calls
# Version: 1.2
# Use:
# 1) Methods of the class
# Example: postgres_connection.execute_query(sql_statement)
#
# 2) Use a pg library call with `interact` method and `connection` instance variable
# Example: postgres_connection.interact { postgres_connection.connection.pg_method }