Posts

Showing posts from June, 2017

psql: could not connect to server

If you come across an error like this in POSTGRESQL: psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? Then, use the following command to solve the issue: sudo chmod a+w /var/run/postgresql

GIT : Praise or Blame

Git has a very useful blame feature which allows you to check which developer was responsible for changing a particular piece of code: $ git blame -L5,10 app.css

GIT : Show Changed Words Instead of Whole Lines

This works with git diff and git show git diff --word-diff Or git diff --color --word-diff myFile.js

Copy object to clipboard from javascript console

Use copy() in your chrome or firefox browser to copy the entire object onto your clipboard. For example: copy(myObject);