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
<?xml version="1.0" ?> | |
<project default="build"> | |
<property file="default.properties" /> | |
<property name="src" location="src" /> | |
<property name="root" location="WebContent" /> | |
<property name="lib" location="lib" /> | |
<property name="build" location="webapp" /> | |
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
#!/bin/sh | |
sudo apt-get install pcaputils libpcap-dev libncurses5-dev | |
wget 'http://sourceforge.net/projects/sipp/files/sipp/3.2/sipp.svn.tar.gz/download' | |
tar zxvf sipp.svn.tar.gz | |
# compile sipp | |
make | |
# compile sipp with pcapplay support | |
make pcapplay |
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 install gcc g++ build-essential | |
sudo apt-get install libtool automake make yasm | |
sudo apt-get install subversion git | |
# powerful tool for system monitoring | |
sudo apt-get install nmon | |
# add to .bash_profile | |
export NMON=cmndkt |
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
# install rvm using ruby | |
curl -L https://get.rvm.io | bash -s stable --ruby | |
# add rvm function to user's profile | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bash_profile | |
# reload profile | |
source ~/.bash_profile | |
# install ruby and set as default | |
rvm install 1.9.3 | |
rvm --default 1.9.3 |
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
#!/bin/sh | |
PKG_CONFIG_VERSION=0.25 | |
YASM_VERSION=1.2.0 | |
PARALLEL_JOBS=3 | |
### pkg-config ######################################## | |
echo "installing pkg-config ${PKG_CONFIG_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
#!/bin/sh | |
PARALLEL_JOBS=3 | |
### x264 ############################################## | |
echo "installing x264..." | |
if [ ! -d x264 ]; then | |
git clone git://git.videolan.org/x264.git x264 |
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
// | |
// UIDevice+DeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
#import <Foundation/Foundation.h> | |
#include <sys/types.h> | |
#include <sys/sysctl.h> | |
typedef enum { |
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
ssh-keygen -lf $1 # ex: ~/.ssh/id_rsa.pub |
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
# Environment | |
# | |
# OS: Mac OS X 10.9 | |
# Vagrant: 1.5.1 | |
# Box: precise64 | |
# Error | |
# | |
# Failed to mount folders in Linux guest. This is usually because |
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
- (NSProgress *)overallProgress { | |
return objc_getAssociatedObject(self, @selector(overallProgress)) | |
?: (NSProgress *){self.overallProgress = [NSProgress progressWithTotalUnitCount:0]}; | |
} |
OlderNewer