Skip to content

Instantly share code, notes, and snippets.

@bgvo
bgvo / gist:8a190a5c77aad1d6a64b
Created July 8, 2015 16:14
Find (never-ending) syntax errors (Ruby).

Sometimes a linter is not enough. Trying its best, it will point out to the end of file. That's ok if the file is short enough to go through it and spot it. Hoewever, sometimes that's not the case and the error is not so obvious. It's in these cases where one has to apply other techniques.

Instead of going through all the code line by line, what about using your Text Editor Fold/Unfold? For Sublime Text you have the option of folding different lvels of code.

Consider the following code:

module A
  method one
 end
@bgvo
bgvo / enable-ssl-with-puma-rails.md
Last active August 4, 2021 06:15
Enable local SSL connections using Puma with Rails
@bgvo
bgvo / neo4j_on_mac.txt
Created November 29, 2021 11:44
Installing and connecting to Neo4j on Mac
### Install neo4j
brew install neo4j
### Disable auth
code /usr/local/Cellar/neo4j/4.3.7/libexec/conf/neo4j.conf
# uncomment this line:
dbms.security.auth_enabled=false