Skip to content

Instantly share code, notes, and snippets.

View egoens's full-sized avatar

Erik Goens egoens

View GitHub Profile
@pksunkara
pksunkara / config
Last active April 17, 2025 05:11
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
@etagwerker
etagwerker / ruby_count_indexer.rb
Created December 3, 2010 13:58
Ruby script to count words in a file and order them by occurrences
# Script to index words inside a text file.
# Words separated by spaces.
# Usage: ruby indexer.rb /path/to/file.txt
file_path = ARGV[0] || "votacion.txt"
WORDS_COUNT = {}
file = File.open(file_path, "r")
puts "Indexing #{file_path}"
@laserlemon
laserlemon / Rails 3 Environment
Created October 1, 2010 12:17
Snow Leopard, Homebrew, Git, RVM, Ruby, Rails, Passenger, Apache, MySQL, Memcached and ImageMagick
# 2010-10-01
#
# Mac OS X 10.6.3
# Homebrew 0.7
# Xcode 3.2.4
# Git 1.7.3.1
# RVM 1.0.12
# Ruby 1.9.2, 1.8.7
# Rails 3.0.0
# Passenger 3.0.0.pre4