- Use Bullet
- ActiveRecord breaks SRP
- Quick Start
- Long README
- Never do breaking changes if possible and use semantic versioning
- Support as many versions as possible
ifconfig wlan0 down | |
macchanger -r wlan0 | |
ifconfig wlan0 up | |
service network-manager restart |
class MyNum < Struct.new(:n) | |
NUMBERS = { | |
zero: 0, | |
one: 1, | |
two: 2, | |
three: 3, | |
four: 4, | |
five: 5, | |
six: 6, | |
seven: 7, |
class VerboseCalculator < Struct.new(:stack) | |
NUMBERS = { | |
zero: 0, | |
one: 1, | |
two: 2, | |
three: 3, | |
four: 4, | |
five: 5, | |
six: 6, | |
seven: 7, |
# A simpler and faster alternative to FactoryGirl for testing scopes. | |
# Because the Sputnik was fast, but Spuni is even faster to pronounce. | |
# | |
# FactoryGirl is awesome on a greenfield application. It allows you to shove | |
# objects into the database very quickly and save a ton of code on your tests. | |
# The problem starts when your application grows and your god factories start | |
# having a lot of traits and callbacks. Then FactoryGirl's factories start | |
# becoming slow and hard to maintain. | |
# | |
# Not only that, your very own models might have callbacks that can make it |
I hereby claim:
To claim this, I am signing this object:
class Decorator | |
attr_reader :klass, :config, :decorator | |
def initialize(klass, config, decorator) | |
@klass = klass | |
@config = config | |
@decorator = decorator | |
end | |
def >(method_name) |
In theory, enabling SSH support on the gpg-agent
is as simple as passing the --enable-ssh-support
option to the gpg-agent
when initialized. However, this is tricky in Ubuntu (and probably many other Linux systems) because the gpg-agent
is
constantly relaunched. If we're on a machine we don't want to modify too much (as in disabling the classic ssh-agent
), this
is even trickier.
Here's how I solved it:
First, ensure the SmartCard Daemon is installed in the system (scdaemon
)
Enable SSH support for the gpg-agent
every time. While this is a system modification, it's a mild one and easy to revert.