Skip to content

Instantly share code, notes, and snippets.

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
# 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!
$ 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
@arendu-zz
arendu-zz / Vertical Splittling GNU Screen
Last active August 29, 2015 14:03
Vertical Splittling GNU screen mac 0sx 10.9
wget http://serv.menzns.de/blog/downloads/screen.osx.latest
sudo cp screen.osx.latest /usr/bin/screen
@arendu-zz
arendu-zz / numpy-scipy-superpack.sh
Created August 13, 2014 15:22
Numpy & Scipy from superpack
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/
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
wget -O - http://kheafield.com/code/kenlm.tar.gz |tar xz
pushd kenlm
./bjam -j4
popd kenlm
@arendu-zz
arendu-zz / install_stuff.sh
Last active July 27, 2016 18:59
install stuff on aws
sudo apt-get update
sudo apt-get install default-jre
sudo apt-get install default-jdk
@arendu-zz
arendu-zz / .screenrc
Last active August 29, 2015 14:19 — forked from joaopizani/.screenrc
# 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
__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