For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
| #!/bin/sh | |
| # Implementation of http://tantek.pbworks.com/NewBase60 | |
| # License: http://creativecommons.org/licenses/by-sa/3.0/ | |
| n="$1" | |
| s='' | |
| m='0123456789ABCDEFGHJKLMNPQRSTUVWXYZ_abcdefghijkmnopqrstuvwxyz' | |
| if [ -z "$n" ] || [ "$n" -eq "0" ]; then | |
| echo 0 | 
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Update 7 Oct 2010: | |
| # - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
| # the WebSocket protocol implementation in the cramp gem does not work | |
| # well with Chrome's (newer) WebSocket implementation. | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby | 
| # compl1.rb - Redis autocomplete example | |
| # download female-names.txt from http://antirez.com/misc/female-names.txt | |
| require 'rubygems' | |
| require 'redis' | |
| r = Redis.new | |
| # Create the completion sorted set | |
| if !r.exists(:compl) | 
| """ | |
| A redis autocomplete example for multi-word phrases. | |
| Based on: | |
| Ruby original: http://gist.github.com/574044 | |
| Python original: https://gist.github.com/577852 | |
| See options below for usage | |
| Requires http://github.com/andymccurdy/redis-py/ | 
| /** | |
| * First, better, "set exports/return" option | |
| */ | |
| (function (define) { | |
| //The 'id' is optional, but recommended if this is | |
| //a popular web library that is used mostly in | |
| //non-AMD/Node environments. However, if want | |
| //to make an anonymous module, remove the 'id' | |
| //below, and remove the id use in the define shim. | |
| define('id', function (require) { | 
| #! /usr/bin/env python | |
| import redis | |
| import random | |
| import pylibmc | |
| import sys | |
| r = redis.Redis(host = 'localhost', port = 6389) | |
| mc = pylibmc.Client(['localhost:11222']) | 
| # the following two lines give a two-line status, with the current window highlighted | |
| hardstatus alwayslastline | |
| hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
| # huge scrollback buffer | |
| defscrollback 5000 | |
| # no welcome message | |
| startup_message off | 
This benchmark has been misleading for a while. It was originally made to demonstrate how JIT compilers can do all sorts of crazy stuff to your code - especially LuaJIT - and was meant to be a starting point of discussion about what exactly LuaJIT does and how.
As a result, its not indicative of what its performance may be on more realistic data. Differences can be expected because
| diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt | |
| index 2e58c854e..2220cfb2c 100644 | |
| --- a/runtime/doc/eval.txt | |
| +++ b/runtime/doc/eval.txt | |
| @@ -9485,6 +9485,7 @@ multi_byte Compiled with support for 'encoding' | |
| multi_byte_encoding 'encoding' is set to a multi-byte encoding. | |
| multi_byte_ime Compiled with support for IME input method. | |
| multi_lang Compiled with support for multiple languages. | |
| +multi_statusline Compiled with 'statuslineheight' support. | |
| mzscheme Compiled with MzScheme interface |mzscheme|. |