code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
## run source setenv.bash
export PATH=$PATH:/usr/local/go/bin
export GOPATH=`pwd`
| Shell |
#!/bin/bash
expect -f cmd.exp $1
go run ../tb_minimips.go
| Shell |
#!/bin/bash
expect -f cmd.exp $1
go run ../tb_minimips.go
| Shell |
#!/bin/bash
set ARQUIVO_ASM [lindex $argv 0]
#set ARQUIVO_ASM "teste.s"
spawn spim
expect -ex {(spim)} {send "load \"$ARQUIVO_ASM\"\r"}
expect -ex {(spim)} {send "dump\r"}
expect -ex {(spim)} {send "quit\r"}
| Shell |
#!/bin/bash
set ARQUIVO_ASM [lindex $argv 0]
#set ARQUIVO_ASM "teste.s"
spawn spim
expect -ex {(spim)} {send "load \"$ARQUIVO_ASM\"\r"}
expect -ex {(spim)} {send "dump\r"}
expect -ex {(spim)} {send "quit\r"}
| Shell |
#!/bin/bash
expect -f cmd.exp $1
./minimips-systemc.out
| Shell |
#!/bin/bash
expect -f cmd.exp $1
./minimips-systemc.out
| Shell |
#!/bin/bash
set ARQUIVO_ASM [lindex $argv 0]
#set ARQUIVO_ASM "teste.s"
spawn spim -noexception
expect -ex {(spim)} {send "read \"$ARQUIVO_ASM\"\r"}
expect -ex {(spim)} {send "dumpnative\r"}
expect -ex {(spim)} {send "quit\r"}
| Shell |
#!/bin/bash
set ARQUIVO_ASM [lindex $argv 0]
#set ARQUIVO_ASM "teste.s"
spawn spim -noexception
expect -ex {(spim)} {send "read \"$ARQUIVO_ASM\"\r"}
expect -ex {(spim)} {send "dumpnative\r"}
expect -ex {(spim)} {send "quit\r"}
| Shell |
pushd in
cp 17x17_y.bmp 17x17.bmp
popd
pushd src
cp flags_poiseuille_gravity_y.h flags.h
popd
make
./lb2d_prime ./in/params_poiseuille_gravity_y.in
| Shell |
pushd src
cp flags_poiseuille_pressure_y.h flags.h
popd
make
./lb2d_prime ./in/params_poiseuille_pressure_y.in
| Shell |
pushd in
cp 17x17_x.bmp 17x17.bmp
popd
pushd src
cp flags_poiseuille_gravity_x.h flags.h
popd
make
./lb2d_prime ./in/params_poiseuille_gravity_x.in
| Shell |
pushd src
cp flags_taylor_pressure.h flags.h
popd
make
./lb2d_prime ./in/params_taylor_pressure.in
| Shell |
pushd src
cp flags_taylor_pressure_x_infile.h flags.h
popd
make
./lb2d_prime ./in/params_taylor_pressure_x_infile.in
| Shell |
pushd src
cp flags_taylor_pressure_y_infile.h flags.h
popd
make
./lb2d_prime ./in/params_taylor_pressure_y_infile.in
| Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
./kill_process.sh
$ADB shell rm -r /data/data/com.google.android.apps.iosched/* | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell am force-stop com.google.android.apps.iosched
| Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db" | Shell |
#!/bin/sh
# Sessions list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions
# Vendors list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors
# Session detail
#adb shell am start -a... | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
MAC_UNAME="Darwin"
if [[ "`uname`" == ${MAC_UNAME} ]]; then
DATE_FORMAT="%Y-%m-%dT%H:%M:%S"
else
DATE_FORMAT="%Y-%m-%d %H:%M:%S"
fi
if [ -z "$1" ]; then
NOW_DATE=$(date "+${DATE_FORMAT}")
echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del... | Shell |
#!/bin/sh
adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format - | Shell |
#!/bin/sh
# Remember VERBOSE only works on debug builds of the app
adb shell setprop log.tag.iosched_SyncHelper VERBOSE
adb shell setprop log.tag.iosched_SessionsHandler VERBOSE
adb shell setprop log.tag.iosched_ImageCache VERBOSE
adb shell setprop log.tag.iosched_ImageWorker VERBOSE
adb shell setprop log.tag.iosched_I... | Shell |
#!/bin/sh
adb shell pm clear com.google.android.apps.iosched | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell am start \
-a android.intent.action.MAIN \
-c android.intent.category.LAUNCHER \
-n com.google.android.apps.iosched/.ui.HomeActivity
| Shell |
#!/bin/sh
#
# helper script for capture picture on device
#
# Kyan He <kyan.ql.he@gmail.com> @ Tue Feb 15 12:42:48 CST 2011
#
#
#ADB_OPTIONS=
PNG="/data/local/fbdump.png"
FB2PNG=fb2png
# To run fb2png in the Recovery:
#adb $ADB_OPTIONS shell mount /data
#adb $ADB_OPTIONS shell mkdir -p /data/local
adb $ADB_OPTIONS ... | Shell |
#!/bin/sh
#
# view argb8888
#
# Modified:
# Kyan He <kyan.ql.he@gmail.com> @ Tue Feb 15 01:45:54 CST 2011
#
# Initial version
# Kyan He <kyan.ql.he@gmail.com> @ Mon Sep 20 11:45:54 CST 2010
#
if ! which ffmpeg >/dev/null;
then
echo "no ffmpeg found"
elif [[ ! $# -eq 2 ]];
then
echo "Usage: `basename $0` <data... | Shell |
#!/bin/sh
# jvmtop - java monitoring for the command-line
# launch script
#
# author: Markus Kolb
#
DIR="$(cd "$(dirname "$(readlink -f "$0")")" && pwd)"
if [ -z "$JAVA_HOME" ] ; then
JAVA_HOME=`readlink -f \`which java 2>/dev/null\` 2>/dev/null | \
sed 's/\/bin\/java//'`
fi
TOOLSJAR="$JAVA_HOME/lib... | Shell |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
echo "started robot motion"
rosrun pr2_impeded_joint_detector wiggle &
sleep 0.25
echo "starting recording"
rostopic echo -p --nostr -n 1000 /r_arm_controller/state > controller_data_right.rtp &
rostopic echo -p --nostr -n 1000 /l_arm_controller/state > controller_data_left.rtp
echo "done recording"
echo "auto-gen... | Shell |
#!/bin/bash
# Android Screenshot Library #
##############################
# Startup script #
echo "Android Screenshot Library -- initializing..."
#
if [ -z $ANDROID ]; then
echo "*** Android SDK not found ***"
echo "Make sure the ANDROID variable is pointing to Android SDK root directory"
else
adb="$AN... | Shell |
#!/bin/sh
# clean up build directory, if it exists
if [ -d "build" ]
then
rm -R build
fi
mkdir build
rm /tmp/*.applescript
HOME=`echo $HOME`
SCRIPTSMENU="$HOME/Library/Scripts/iTunes"
# make sure iTunes scripts directory exists
if [ ! -d $SCRIPTSMENU ]
then
mkdir $SCRIPTSMENU
fi
# build everything in the etc d... | Shell |
#!/bin/sh
# clean up build directory, if it exists
if [ -d "build" ]
then
rm -R build
fi
mkdir build
rm /tmp/*.applescript
HOME=`echo $HOME`
SCRIPTSMENU="$HOME/Library/Scripts/iTunes"
# make sure iTunes scripts directory exists
if [ ! -d $SCRIPTSMENU ]
then
mkdir $SCRIPTSMENU
fi
# build everything in the etc d... | Shell |
sed -i "s/define('FILE_PATH', 'C/\/\/define('FILE_PATH', 'C/" includes/Constants.php
sed -i "s/\/\/define('FILE_PATH', '\//define('FILE_PATH', '\//" includes/Constants.php
git add -u .
git add .
git commit -m "New version"
git push origin master
sed -i "s/\/\/define('FILE_PATH', 'C/define('FILE_PATH', 'C/" includes/C... | Shell |
#!/bin/bash
ARCHS="-arch i386 -arch x86_64"
-useDF $ARCHS -o $BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Resources/English.lproj/Localized.rsrc
| Shell |
#!/bin/sh
java -jar compiler.jar --js jso/background.js --js_output_file js/background.js
java -jar compiler.jar --js jso/bsync.scrypt.b64.ls.js --js_output_file js/bsync.scrypt.b64.ls.js
java -jar compiler.jar --js jso/define.js --js_output_file js/define.js
java -jar compiler.jar --js jso/background_pn.js --js_output... | Shell |
#!/bin/bash
# Install ngram-similarity while creating a debian package for uninstallation
sudo checkinstall\
--pkgname=python-ngram-similarity\
--maintainer=Graham Poulter\
--pkglicense=LGPL\
--pkggroup=python\
--pkgsource=http://pypi.python.org/pypi/ngram\
--pkgaltsource=http://packages.python.org/ngram\
--re... | Shell |
#!/bin/sh
#Donne le nombre de commits effectués par chacun
#author : RM+Benji
cd ..
svn info >> /dev/null #pour récupérer les dernières infos
svn up -q
echo -n "Nombre de commits de romain.allain alias RM : "
svn log | grep romain.allain | wc -l
echo -n "Nombre de commits de benjaminherlin alias Benji : "
svn... | Shell |
#!/bin/sh
#Donne le nombre de commits effectués par chacun
#author : RM+Benji
cd ..
svn info >> /dev/null #pour récupérer les dernières infos
svn up -q
echo -n "Nombre de commits de romain.allain alias RM : "
svn log | grep romain.allain | wc -l
echo -n "Nombre de commits de benjaminherlin alias Benji : "
svn... | Shell |
#!/bin/bash
#
##############################################################################
#
# Copyright (c) 2008, League of Crafty Programmers Ltd <info@locp.co.uk>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following... | Shell |
#!/bin/bash
#
##############################################################################
#
# Copyright (c) 2008, League of Crafty Programmers Ltd <info@locp.co.uk>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following... | Shell |
#!/bin/bash
#
##############################################################################
#
# Copyright (c) 2008, League of Crafty Programmers Ltd <info@locp.co.uk>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following... | Shell |
#!/bin/bash
#
##############################################################################
#
# Copyright (c) 2008, League of Crafty Programmers Ltd <info@locp.co.uk>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following... | Shell |
#!/bin/bash
#
##############################################################################
#
# Copyright (c) 2008, League of Crafty Programmers Ltd <info@locp.co.uk>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following... | Shell |
#!/bin/bash
#
##############################################################################
#
# Copyright (c) 2008, League of Crafty Programmers Ltd <info@locp.co.uk>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following... | Shell |
#!/bin/bash
#
##############################################################################
#
# Copyright (c) 2008, League of Crafty Programmers Ltd <info@locp.co.uk>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following... | Shell |
#!/bin/bash
#
##############################################################################
#
# Copyright (c) 2008, League of Crafty Programmers Ltd <info@locp.co.uk>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following... | Shell |
#!/bin/sh
#
# Detects OS we're compiling on and outputs a file specified by the first
# argument, which in turn gets read while processing Makefile.
#
# The output will set the following variables:
# CC C Compiler path
# CXX C++ Compiler path
# PLATFORM_LDFLAGS ... | Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked before a Subversion txn is created
# in the process of doing a commit. Subversion runs this hook
# by invoking a program (script, executable, binary, etc.) named
# 'start-commit' (for which this file is a template)
# with the following ordered... | Shell |
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (t... | Shell |
#!/bin/sh
# PRE-LOCK HOOK
#
# The pre-lock hook is invoked before an exclusive lock is
# created. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-lock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (the pat... | Shell |
#!/bin/sh
# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this rep... | Shell |
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (t... | Shell |
#!/bin/sh
# PRE-REVPROP-CHANGE HOOK
#
# The pre-revprop-change hook is invoked before a revision property
# is added, modified or deleted. Subversion runs this hook by invoking
# a program (script, executable, binary, etc.) named 'pre-revprop-change'
# (for which this file is a template), with the following or... | Shell |
#!/bin/sh
# PRE-LOCK HOOK
#
# The pre-lock hook is invoked before an exclusive lock is
# created. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-lock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (the pat... | Shell |
#!/bin/sh
# POST-REVPROP-CHANGE HOOK
#
# The post-revprop-change hook is invoked after a revision property
# has been added, modified or deleted. Subversion runs this hook by
# invoking a program (script, executable, binary, etc.) named
# 'post-revprop-change' (for which this file is a template), with the
# f... | Shell |
#!/bin/sh
# POST-LOCK HOOK
#
# The post-lock hook is run after a path is locked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-lock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repos... | Shell |
#!/bin/sh
# PRE-UNLOCK HOOK
#
# The pre-unlock hook is invoked before an exclusive lock is
# destroyed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-unlock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH ... | Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked before a Subversion txn is created
# in the process of doing a commit. Subversion runs this hook
# by invoking a program (script, executable, binary, etc.) named
# 'start-commit' (for which this file is a template)
# with the following ordered... | Shell |
#!/bin/sh
# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this rep... | Shell |
#!/bin/sh
# POST-UNLOCK HOOK
#
# The post-unlock hook runs after a path is unlocked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-unlock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this... | Shell |
#!/bin/sh
# POST-UNLOCK HOOK
#
# The post-unlock hook runs after a path is unlocked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-unlock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this... | Shell |
#!/bin/sh
# PRE-REVPROP-CHANGE HOOK
#
# The pre-revprop-change hook is invoked before a revision property
# is added, modified or deleted. Subversion runs this hook by invoking
# a program (script, executable, binary, etc.) named 'pre-revprop-change'
# (for which this file is a template), with the following or... | Shell |
#!/bin/sh
# POST-LOCK HOOK
#
# The post-lock hook is run after a path is locked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-lock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repos... | Shell |
#!/bin/sh
# POST-REVPROP-CHANGE HOOK
#
# The post-revprop-change hook is invoked after a revision property
# has been added, modified or deleted. Subversion runs this hook by
# invoking a program (script, executable, binary, etc.) named
# 'post-revprop-change' (for which this file is a template), with the
# f... | Shell |
#!/bin/sh
# PRE-UNLOCK HOOK
#
# The pre-unlock hook is invoked before an exclusive lock is
# destroyed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-unlock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH ... | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db" | Shell |
#!/bin/sh
# Sessions list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions
# Vendors list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors
# Session detail
#adb shell am start -a... | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
MAC_UNAME="Darwin"
if [[ "`uname`" == ${MAC_UNAME} ]]; then
DATE_FORMAT="%Y-%m-%dT%H:%M:%S"
else
DATE_FORMAT="%Y-%m-%d %H:%M:%S"
fi
if [ -z "$1" ]; then
NOW_DATE=$(date "+${DATE_FORMAT}")
echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del... | Shell |
#!/bin/sh
adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format - | Shell |
#!/bin/sh
#
# Copyright 2013 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | Shell |
#!/bin/sh
# Remember VERBOSE only works on debug builds of the app
adb shell setprop log.tag.iosched_SyncHelper VERBOSE
adb shell setprop log.tag.iosched_SessionsHandler VERBOSE
adb shell setprop log.tag.iosched_BitmapCache VERBOSE
| Shell |
#!/bin/sh
adb shell pm clear com.google.android.apps.iosched | Shell |
#!/usr/bin/env bash
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ... | Shell |
#!/bin/sh
OUTPUT=$1
STATIC_LIB_NAME=$OUTPUT
MOVE_LOCATION=$2
BASEDIR=$3
LINKFILES=$4
LINKER_FLAGS= -shared -Wl,--version-script,/afs/cs.cmu.edu/misc/matlab/amd64_f7/7.9/lib/matlab7/extern/lib/glnxa64/mexFunction.map -Wl,--no-undefined
echo $OUTPUT
echo $STATIC_LIB_NAME
echo 'Running godawful mex linking hack...'
... | Shell |
# pushd .
# cd deps
# if [ ! -d "boost_1_46_1" ] ; then
# echo "The boost installation in deps/ is missing! unable to continue!"
# else
# cd boost_1_46_1
# # install with the new prefix
# echo "Now installing Boost... This could take a little while..."
# ./bjam --threading=multi --link=static --variant=releas... | Shell |
#/bin/sh
cd /tmp/graphlabapi/release/demoapps/pmf
ln -s ~/www-graphl1ab/graphlab/datasets/movielens .
echo "Testing LDA+clusterdump"
./glcluster movielens 3 10 0 --float=true --pmfformat=true --max_iter=10 --clusterdump=true
echo "testing KMEANS"
./glcluster movielens 0 10 0 --float=true --pmfformat=true --max_iter=10 ... | Shell |
#!/bin/bash
pushd .
cd $DEPS_DIR
function download_file {
# detect wget
echo "Downloading $2 from $1 ..."
wgetcmd=`which wget`
if [ -z $wgetcmd ] ; then
curlcmd=`which curl`
if [ -z $curlcmd ] ; then
echo "Unable to find either curl or wget! Cannot proceed with automatic install."
exit 1
... | Shell |
#!/bin/bash
major_version=1
echo "THIS MUST BE RUN IN GRAPHLAB HOME"
## JOEY: WHY ARE WE REMOVING THE FOLDER AND THEN USING RSYNC?
rm -fR dist/graphlabapi
mkdir -p dist/graphlabapi
rsync -vv -al --delete --delete-excluded \
--exclude=/debug --exclude=/release --exclude=/profile --exclude=/apps \
--exclude=.h... | Shell |
#!/bin/sh
cp dist/graphlabapi_v1_$1.tar.gz ~/www-graphlab/graphlab/release/
svn add ~/www-graphlab/graphlab/release/graphlabapi_v1_$1.tar.gz
vim ~/www-graphlab/graphlab/download.html
cd ~/www-graphlab/graphlab/
svn commit -m "new release graphlabapi_v1_$1.tar.gz"
| Shell |
tmpfile=`mktemp`
for f in `find src/graphlab/* \( \( -name "*.cpp" -or -name "*.hpp" \) -not -wholename "src/graphlab/extern/*" \)`
do
if ! grep -q "Lesser General Public License" $f
then
echo $f
cat LGPL_prepend.txt $f > $tmpfile
mv $tmpfile $f
fi
done | Shell |
#!/bin/bash
pushd .
cd $DEPS_DIR
function test_for_boost {
# if force boost install is set, don't probe. assume failure
if [ ! -z $force_boost_install ] ; then
return
fi
# list all the boost files we use
grep -h -r "include <boost/*" ../src | uniq > boost_tester.cpp
# make a main which does nothing
... | Shell |
#!/bin/bash
pushd .
cd $DEPS_DIR
function test_for_avro {
# if force avro install is set, don't probe. assume failure
if [ ! -z $force_avro_install ] ; then
return
fi
# list all the avro files we use
grep -h -r "include <avro/*" ../src | uniq > avro_tester.cpp
# make a main which does nothing
echo -... | Shell |
#!/bin/bash
echo "===== install deps"
echo $1
echo "is apple? $3"
source configure.deps
# see if BOOST_ROOT is the deps folder
# if it is, we may need to install it
if [ ! -z $BOOST_ROOT ] && [ $BOOST_ROOT == $PWD/deps ]; then
echo
echo "================================================================"
echo "T... | Shell |
#!/bin/bash
_Box () {
str="$@"
len=$((${#str}+4))
for (( i=1; i<=$len; i++ )); do echo -n '-'; done;
echo; echo "| "$str" |";
for (( i=1; i<=$len; i++ )); do echo -n '-'; done;
echo
}
function test_for_eigen {
if [ -d $1/deps/eigen-eigen-3.0.2/ ]; then
eigenfound=1;
echo "Eigen w... | Shell |
# pushd .
# cd deps
# if [ ! -d "kyotocabinet-1.2.53" ] ; then
# echo "The Kyoto Cabinet installation in deps/ is missing! unable to continue!"
# else
# cd kyotocabinet-1.2.53
# # install with the new prefix
# echo "Now installing Kyoto Cabinet... "
# ./configure --prefix=$installprefix
# make install
# fi... | Shell |
#!/bin/sh
doxygen
cp doc/images/* doc/doxygen/html/
| Shell |
#!/bin/bash
IN_BOOTSTRAP=1
DEPS_DIR=deps
mkdir -p $DEPS_DIR
source scripts/cmakecheck.sh
echo "CMAKE=$cmakecmd" >> configure.deps
source scripts/boostcheck.sh
# we add a boost root only if it is the deps directory
if [ ! -z $BOOST_ROOT ] && [ $BOOST_ROOT == $PWD/$DEPS_DIR ]; then
echo "BOOST_ROOT=$BOOST_ROOT" >> ... | Shell |
#!/bin/bash
hosts=( $( cat ~/hosts ) )
numhosts=${#hosts[@]}
fileprefix=altavista
dest_path=/mnt/webgraph
echo $hosts
echo $numhosts
echo $files
echo $numfiles
echo $dest_path
for i in $(seq 0 511)
do
let "hostid= $i % $numhosts"
filename=$fileprefix.$i.dump
command="scp /mnt/external/webgraphs/full_gra... | Shell |
#!/bin/bash
hosts=( $( cat $1 ) )
numhosts=${#hosts[@]}
fileprefix=atom
dest_path=/mnt/webgraph
echo $hosts
echo $numhosts
echo $files
echo $numfiles
echo $dest_path
for i in $(seq 0 511)
do
let "hostid= $i % $numhosts"
filename=$fileprefix$i
command="scp $filename ${hosts[$hostid]}:$dest_path/."
ec... | Shell |
#!/bin/bash
# hostfile="~/hosts"
hostfile="~/hosts32"
cd ~/graphlabapi/release/apps/dist2_apps/webgraph_bp
make -j8
cp * ~/bin
for i in `cat ~/hosts32`; do
echo "connecting to $i";
rsync -avz ~/bin $i:~/.;
done
| Shell |
#!/bin/sh
#script for auto test graphlab distribution, written by danny bickson
if [ $# -ne 1 ]; then
echo "Usage: $0 <release number>"
fi
rm -fR /tmp/graphlabapi*
cp dist/graphlabapi_v1_$1.tar.gz /tmp/
cd /tmp/
tar xvzf graphlabapi_v1_$1.tar.gz
cd /tmp/graphlabapi
./configure --bootstrap --yes --eigen
cd release
... | Shell |
#!/bin/bash
for f in `find src \( -name "*.cpp" -or -name "*.hpp" \)`; do
lastline=`tail -n 1 $f`
len=$((${#lastline}))
if [ $len -ne 0 ]; then
echo $f
echo -e "" >> $f
fi
done
| Shell |
#!/bin/bash
pushd .
cd $DEPS_DIR
function test_for_kc {
# if force boost install is set, don't probe. assume failure
if [ ! -z $force_kc_install ] ; then
return
fi
# make a main which does nothing
echo -e "#include <kchashdb.h>\n" > kc_tester.cpp
echo -e "\nint main(int argc, char** argv){ return 0; }... | Shell |
# #!/bin/bash
# echo "This script completely erases the release, debug, and profile folders.";
# echo "Are you sure you want to continue? (yes or no)"
# read yesorno;
# if [ "$yesorno" == "yes" ]; then
# echo "Removing release debug and profile folders";
# rm -rf release debug profile
# else
# echo "Doi... | Shell |
#!/bin/bash
cd /mnt/graphlabapi/release/apps/dist2_apps/webgraph_bp
make -j8 webgraph_bp
cp /mnt/graphlabapi/release/apps/dist2_apps/webgraph_bp/webgraph_bp /mnt/bin
cd /mnt
mpiexec -n 64 -f ~/hosts -wdir /mnt /mnt/bin/dirdist -s bin -f 3
mpiexec -n 64 -f ~/hosts chmod +x /mnt/bin/*
| Shell |
#!/bin/sh
#script for auto test graphlab distribution, written by danny bickson
if [ $# -ne 1 ]; then
echo "Usage: $0 <release number>"
fi
rm -fR /tmp/graphlabapi*
cp dist/graphlabapi_v1_$1.tar.gz /tmp/
cd /tmp/
tar xvzf graphlabapi_v1_$1.tar.gz
cd /tmp/graphlabapi
./configure --bootstrap --yes
cd release
make -j8... | Shell |
#/bin/sh
cd /tmp/graphlabapi/release/demoapps/pmf
ln -s /mnt/bigbrofs/usr5/graphlab/testdata/netflix .
ln -s /mnt/bigbrofs/usr5/graphlab/testdata/netflixe .
echo "TESTING ALTENATING LEAST SQUARES"
./pmf netflix 0 --ncpus=8 --scheduler='round_robin(max_iterations=15,block_size=1)' --float=false --lambda=0.065
./pmf netf... | Shell |
#!/bin/bash
function find_itpp_lib {
# if force itpp install is set, don't probe. assume failure
if [ ! -z $force_itpp_install ] ; then
return
fi
# look for itppconfig
itppconfig_pos=`which itpp-config`
# if not found and itpp root is defined. try the itpp_root/bin
if [ ! -z $ITPP_ROOT ] && [ -z $... | Shell |
#!/bin/bash
function quit_if_bad_retvalue {
if [ $? -eq 0 ]; then
echo "PASS"
else
echo "FAIL. Program returned with failure"
exit 1
fi
}
function test_rpc_prog {
echo "Testing $1 ..."
echo "---------$1-------------" >> $stdoutfname
echo "---------$1-------------" >> $stderrfname
mpiexec -n... | Shell |
#!/bin/bash
#
# This file should not be called from anywhere else but the
# generate_mex_makefile.m matlab function
if [ $# -gt 0 ]
then
Arch=$ARCH
MAPFILE="mexFunction.map"
source $MATLAB/bin/mexopts.sh
extra_includes="-I\"${MATLAB}/extern/include\""
if [ -d $MATLAB/simulink ]; then
extra_includes="${e... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.