Skip to content

Instantly share code, notes, and snippets.

@vasanthk
vasanthk / System Design.md
Last active July 24, 2024 23:02
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@danielpcox
danielpcox / pidgin_manipulator.rb
Created October 22, 2011 19:10
Set Your Pidgin Status With Ruby and DBus
#!/usr/bin/env ruby
#
require "dbus"
session_bus = DBus::SessionBus.instance
# Get the Pidgin Service
pidgin_dbus = session_bus.service("im.pidgin.purple.PurpleService")
# Get the object from this service
@bmarini
bmarini / redis_store.rb
Created July 21, 2010 15:11
ActiveSupport::Cache::RedisStore, a drop in replacement for MemCacheStore
require 'redis'
# This is a direct port of ActiveSupport::Cache::MemCacheStore
# Drop this file in lib/active_support/cache/redis_store and in your env files
# add:
#
# config.cache_store = :redis_store
module ActiveSupport
module Cache