Skip to content

Instantly share code, notes, and snippets.

View loong's full-sized avatar

Long Hoang loong

View GitHub Profile
View rental.sol
pragma solidity ^0.4.0;
contract Rental {
uint deposit;
uint rent;
uint balance;
address tenant;
address landlord;
View Install iperf on AWS Linux AMI
git clone https://github.com/esnet/iperf
cd iperf
./configure
sudo make
sudo make install
sudo ldconfig
View Install ffmpeg on AWS Linux AMI
# Taken from https://forums.aws.amazon.com/thread.jspa?messageID=332091
sudo su -
cd /usr/local/bin
mkdir ffmpeg
cd ffmpeg
wget http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.latest.tar.gz
tar -xzf ffmpeg.static.64bit.latest.tar.gz
View Install pocketsphinx-python on AWS ami
source ~/.bashrc
sudo yum -y install make automake gcc gcc-c++ tmux emacs python-pip
sudo yum -y install git cmake libmad-devel libsndfile-devel gd-devel boost-devel intltool libtool-ltdl-devel swig
wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz
wget http://freedesktop.org/software/pulseaudio/releases/pulseaudio-10.0.tar.xz
wget https://s3.amazonaws.com/json-c_releases/releases/json-c-0.12.1.tar.gz
tar xvf libsndfile-1.0.28.tar.gz
View keybase.md

Keybase proof

I hereby claim:

  • I am mindworker on github.
  • I am longh (https://keybase.io/longh) on keybase.
  • I have a public key whose fingerprint is 3F99 B5F3 2999 7718 4211 D3D7 42C8 7F49 140C 0355

To claim this, I am signing this object: