Joined August 2012
·

Tadas Tamošauskas

Web Developer and Problem Solver at AlphaSights
·
London, UK
·
·
·

I recommend trying out pry, it has edit, ? and $ commands for this and more. Of course, this one is still useful to know where pry is not available :)

Posted to Pretty JSON for humans over 1 year ago

Didn't know about python -mjson.tool. Very cool, already created a function to combo with with curl :)

Posted to Some cool aliases for your computer over 1 year ago

What you need is z. https://github.com/rupa/z it remembers your most visited dirs and has a fuzzy matcher. Works very well

You can also copy anything using pipes:

$ cat file | grep something | pbcopy
$ echo $ENV_VAR | pbcopy

Hey, we also had an unused TV and wrote open_nut
. It's Client Side only, dead simple and customizable. Give it a try and let us know what you think ;)

cmd + shift + c for those who don't like right-clicking

I've noticed a problem with SnipCheat, it doesn't seem to escape HTML in descriptions. Here's an issue on GitHub if anyone wants to contribute https://github.com/tadast/snipcheat/issues/1

Posted to Restart Heroku after a migration over 1 year ago

I had this problem many times, so I just added an alias for that:

git push production master && heroku run rake db:migrate && heroku restart

Also, if ruby-debug is in the Gemfile already, you can add
require debugger in the specfile and debugger where you want the code execution to beak. I find it faster when already running without a -dflag. Works for everything, not just RSpec.

Posted to [Postgres] Kill connections over 1 year ago

How do you run the tests? They shouldn't be modifying the db scheme, just the records. If they are, for any reason, maybe several processes are using the same database i.e. dev and test environments use the same db, cucumber and rspec use the same db etc.

Posted to [Postgres] Kill connections over 1 year ago

This is also useful for rake/thor tasks that are changing the database e.g. loading a dump

Achievements
1,142 Karma
60,586 Total ProTip Views