Skip to content

Instantly share code, notes, and snippets.

View formix's full-sized avatar

Jean-Philippe Gravel formix

  • Formix Consulting
  • Saint-Honoré-De-Chicoutimi, Saguenay, Quebec, Canada
  • LinkedIn in/jpgravel
View GitHub Profile
@formix
formix / .vimrc
Last active May 17, 2018 17:36 — forked from JeffreyWay/.vimrc
My .vimrc file
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@formix
formix / BasicAuthenticationFilter.java
Created March 29, 2016 23:25 — forked from neolitec/BasicAuthenticationFilter.java
HTTP Basic authentication Java filter
package com.neolitec.examples;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;