Skip to content

Instantly share code, notes, and snippets.

View brunokenj's full-sized avatar

Bruno Kenj brunokenj

  • Owl Docs
  • Brasíllia
View GitHub Profile
@tomysmile
tomysmile / mac-setup-redis.md
Last active July 16, 2024 04:45
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@drochetti
drochetti / Session.js
Last active December 9, 2015 20:28
A Javascript snippet representing a session, but not the web one... =)
(function(global) {
var myself = global.people.findById(global.github.me.dna()); // lol
myself.roll = myself.roll || function(weed, paper) {
weed = this.getGrinder().grind(weed);
return _.extend(weed, paper);
};
var session = new Session({
location : Location.SAME_OLD_SPOT,
people : _.union([myself], myself.getFriends().filter(Person.POT_HEAD))