Skip to content

Instantly share code, notes, and snippets.

View esanai's full-sized avatar

Sungmyung Lee esanai

View GitHub Profile
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
# GUI-related packages
pkgs="
xserver-xorg-video-fbdev
xserver-xorg xinit
epiphany-browser
lxde lxtask menu-xdg gksu
xserver-xorg-video-fbturbo
xpdf gtk2-engines
netsurf-gtk zenity
desktop-base lxpolkit
@esanai
esanai / socket.io-express-session-sharing.js
Last active December 15, 2015 18:19
Make socket.io sharing session with express automatically
//------------------------------------------------------------------------------
// WebSocket and Express session sharing through handshake
// via: https://github.com/LearnBoost/socket.io/issues/908
//------------------------------------------------------------------------------
var cookieParser = connect.utils.cookieParser;
io.set('authorization', function (data, accept) {
if (data.headers.cookie) {
// Whatever you put in the data object will be available in socket.handshake later on in connection event handler
data.cookie = cookieParser(data.headers.cookie);
@esanai
esanai / pwd_meter.js
Created October 19, 2011 17:26
Check Password Complexity
/*
** Original File: pwd_meter.js
** Created by: Jeff Todnem (http://www.todnem.com/)
** Created on: 2007-08-14
** Last modified: 2007-08-30
**
** License Information:
** -------------------------------------------------------------------------
** Copyright (C) 2007 Jeff Todnem
**