This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#A tool for displaying memcached key value pairs | |
#Inspired by: http://code.sixapart.com/svn/memcached/trunk/server/scripts/memcached-tool | |
#See also: http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt | |
require 'socket' | |
require 'getoptlong' | |
@host = "localhost" | |
@sock = TCPSocket.open(@host, 11211) | |
@buckets = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Math.floor(moment.duration(expectedLogoutTime - +(new Date())).asSeconds()) <= 0) { | |
logger.info('timeout service - openDialog called but past logout time'); | |
sessionStoreService.ensureSessionIsValid(); | |
return $q.reject(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (dateHasPassed(expectedLogoutDate)) { | |
logger.info('timeout service - openDialog called but past logout time'); | |
sessionStoreService.ensureSessionIsValid(); | |
return $q.reject(); | |
} | |
function dateHasPassed(date) { | |
return moment().isAfter(moment(date)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Suppress persistent highlighting of searched terms" | |
set nohlsearch | |
set nocompatible | |
set backspace=indent,eol,start | |
set ruler | |
let mapleader = "," | |
set tabstop=2 shiftwidth=2 expandtab |
NewerOlder