Skip to content

Instantly share code, notes, and snippets.

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

Esteban Feldman eka

🏠
Working from home
View GitHub Profile
@eka
eka / .screenrc
Created March 16, 2011 00:06
my .screenrc
#
# Example of a user's .screenrc file
#
# This is how one can set a reattach password:
# password ODSJQf.4IJN7E # "1234"
# no annoying audible bell, please
vbell on
@eka
eka / .hgrc
Created November 30, 2011 10:05
My .hgrc
[ui]
username = firstname lastname <[email protected]>
verbose = True
[pager]
pager = LESS='FSRX' less
[extensions]
color =
hgext.fetch=
@eka
eka / log.py
Created February 15, 2012 20:10
phenny module - log channels conversations
"""
log.py - Phenny Log Module
Copyright (c) Esteban Feldman
BSD License
http://github.com/eka/
"""
from datetime import datetime
@eka
eka / logger.py
Created February 16, 2012 18:50
phenny module - log channels conversations using a TimedRotatingFileHandler
#!/usr/bin/env python
"""
logger.py - Esteban Feldman
based on logger.py - Phenny Room Logging Module
Author: Peter Higgins ([email protected])
About: http://higginsforpresident.net
License: AFL | New BSD
"""
from datetime import datetime
import logging
[~]$ brew doctor
Your system is raring to brew.
[~]$ brew --config
HOMEBREW_VERSION: 0.9
HEAD: (none)
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit sandybridge
OS X: 10.7.4
Kernel Architecture: x86_64
@eka
eka / gist:5170447
Created March 15, 2013 14:59
refactor models.py into a module
# registration/models <- en vez de models.py
# dentro models/__init__.py
# /user.py
# /foo.py
# user.py
class User(models.Model):
pass
# foo.py
@eka
eka / redis.conf
Created June 6, 2013 11:51
redis supervisord config file
[program:redis]
command=/usr/local/bin/redis-server /etc/redis.conf
autorestart=true
stdout_logfile=/var/log/redis.log
@eka
eka / redis.conf
Created June 6, 2013 11:56
basic redis config file
# Redis configuration file example
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
dirs = Dir['./*']
original_dir = __dir__
dirs.each do |dir|
begin
Dir.chdir(dir)
rescue
puts "couldn't change to #{dir}"
end
`git pull`
{
name:"1391639613822",
powers: ["multiball", "multiball", "multiball", "multiball"],
map:
[[X, X, X, X, X, X, X, X, X],
[X, X, X, X, X, X, X, X, X],
[X, O, O, X, X, X, O, O, X],
[X, X, X, O, X, O, X, X, X],
[X, X, X, B, B, B, X, X, X],
[X, X, X, B, B, B, X, X, X],