This file contains hidden or 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
OPENFST_VERSION=1.3.4 | |
PYFST_VERSION=0.2.3 | |
export CXX="clang++ -std=c++11 -stdlib=libstdc++" | |
cd ~/Downloads | |
curl -O http://openfst.org/twiki/pub/FST/FstDownload/openfst-$OPENFST_VERSION.tar.gz | |
tar zxf openfst-$OPENFST_VERSION.tar.gz | |
pushd openfst-$OPENFST_VERSION |
This file contains hidden or 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
# set up flags for Numpy C extentions compiling | |
export CFLAGS="-arch i386 -arch x86_64" | |
export FFLAGS="-m32 -m64" | |
export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64" | |
export CC=gcc | |
export CXX="g++ -arch i386 -arch x86_64" | |
sudo pip install numpy | |
# success! |
This file contains hidden or 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
$ cvs -z3 -d:pserver:[email protected]:/sources/screen co screen | |
$ curl http://old.evanmeagher.net/files/gnu-screen-vertsplit.patch > gnu-screen-vertsplit.patch | |
$ cd screen/src | |
$ patch < ../../gnu-screen-vertsplit.patch | |
$ ./configure --enable-locale --enable-telnet --enable-colors256 --enable-rxct_osc | |
$ make | |
$ sudo make install |
This file contains hidden or 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
wget http://serv.menzns.de/blog/downloads/screen.osx.latest | |
sudo cp screen.osx.latest /usr/bin/screen |
This file contains hidden or 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
curl -o install_superpack.sh https://raw.githubusercontent.com/fonnesbeck/ScipySuperpack/master/install_superpack.sh | |
sh install_superpack.sh | |
#see here for more details http://fonnesbeck.github.io/ScipySuperpack/ |
This file contains hidden or 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
curl http://giza-pp.googlecode.com/files/giza-pp-v1.0.7.tar.gz -o giza-pp-v1.0.7.tar.gz | |
tar -xzvf giza-pp-v1.0.7.tar.gz | |
cd giza-pp | |
perl -pi -w -e 's/<tr1\//</g;' GIZA++-v2/* mkcls-v2/* | |
perl -pi -w -e 's/using namespace std::tr1;//g;' GIZA++-v2/* mkcls-v2/* | |
perl -pi -w -e 's/std::tr1:://g;' GIZA++-v2/* mkcls-v2/* | |
sed '36d' mkcls-v2/mystl.h > mkcls-v2/mystl.h.tmp | |
sed '50d' mkcls-v2/mystl.h.tmp > mkcls-v2/mystl.h | |
rm mkcls-v2/mystl.h.tmp | |
make |
This file contains hidden or 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
wget -O - http://kheafield.com/code/kenlm.tar.gz |tar xz | |
pushd kenlm | |
./bjam -j4 | |
popd kenlm |
This file contains hidden or 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
sudo apt-get update | |
sudo apt-get install default-jre | |
sudo apt-get install default-jdk |
This file contains hidden or 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
# 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 file contains hidden or 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
__author__ = 'arenduchintala' | |
import json | |
class MyNode(dict): | |
def __init__(self, d1, d2, children=None): | |
dict.__init__(self) | |
self.__dict__ = self | |
self.a1 = d1 | |
self.a2 = d2 |
OlderNewer