Skip to content

Instantly share code, notes, and snippets.

luarocks install penlight
luarocks install dpnn
luarocks install json
luarocks install xlua
luarocks install tds
luarocks install threads
luarocks install httpclient
luarocks install sys
luarocks install luafilesystem
luarocks install lua-cjson
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
#author: rex
#blog: http://iregex.org
#filename tr.py
#created: 2010-08-01 20:24
#source uri: http://iregex.org/blog/trie-in-python.html
# escape bug fix by fcicq @ 2012.8.19
@donglixp
donglixp / build.sh
Created July 24, 2016 17:47
thpp installation: build.sh
#!/bin/bash -e
#
# Copyright (c) 2014, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
#
#
@donglixp
donglixp / fbpython-0.1-1.rockspec
Created July 24, 2016 17:46
fbpython-0.1-1.rockspec
--
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
package = 'fbpython'
@donglixp
donglixp / mosh-server
Created June 19, 2016 13:22
mosh-server for Kerberos/AFS
#!/usr/bin/perl -w
use strict;
use File::Spec::Functions;
use File::Temp;
use FindBin;
my $SERVER = '~/usr/bin/mosh-server.real';
@donglixp
donglixp / install_mosh_locally.sh
Last active June 19, 2016 11:06 — forked from lazywei/install_mosh_locally.sh
Install mosh server without root permission
#!/bin/sh
# this script does absolutely ZERO error checking. however, it worked
# for me on a RHEL 6.3 machine on 2012-08-08. clearly, the version numbers
# and/or URLs should be made variables. cheers, zmil...@cs.wisc.edu
mkdir mosh