Skip to content

Instantly share code, notes, and snippets.

@ventz
ventz / gist:bf613a8b5f51244252f7d5c77f4ba7dd
Created October 26, 2018 18:34 — forked from yoitsro/gist:8693021
Node + Restify + Passport + Sessions + WebSockets
var restify = require('restify');
// Authentication
var passport = require('passport');
var LocalStrategy = require('passport-local').Strategy;
var sessions = require("client-sessions");
var server = restify.createServer();
server.use(restify.queryParser());
server.use(restify.bodyParser());
@ventz
ventz / vim_syntaxchecker.md
Created February 27, 2023 04:47 — forked from thikade/vim_syntaxchecker.md
vim syntax checker / syntastic yamllint

Getting vim yaml linter to work:

  1. Install syntastic vim plugin (as of vim 7.4.x no plugin manager is required anymore!)
    mkdir -p ~/.vim/pack/$USER/start/
    cd ~/.vim/pack/$USER/start/
    git clone https://github.com/vim-syntastic/syntastic.git
    
  2. Install yamllint: pip3 install yamllint
  3. Configure yamllint: