Skip to content

Instantly share code, notes, and snippets.

View ventsislaf's full-sized avatar

Ventsislav Nikolov ventsislaf

View GitHub Profile
@ventsislaf
ventsislaf / postgres_error.md
Last active November 25, 2019 10:06
Postgres error after update

After updating postgres brew formula or OS X, afterwards there could be an error similar to:

psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

One possible fix is:

@croaky
croaky / .travis.yml
Created July 31, 2013 18:25
This is our current Travis configuration for our standard Rails 4 + Ruby 2 projects that have Capybara Webkit test suites and Postgres databases. It relies on the bundle_cache.rb and bundle_install.sh files from http://randomerrata.com/post/45827813818/travis-s3 to cache gem bundles for much faster test suite setup time.
---
rvm:
- 2.0.0
before_install:
- "echo 'gem: --no-document' > ~/.gemrc"
- "echo '--colour' > ~/.rspec"
- gem install fog
- "./script/travis/bundle_install.sh"
- export DISPLAY=:99.0

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: