code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
GLHOME="$HOME/graphlabapi"
GRAPHHOME="$HOME/acmgraph"
pagerank_only="false" #only run pagerank
lda_only="false" #only run lda
personal_weights="./weights" #input file of the personalized topic weights
cmd="$GLHOME/release/apps/twitterrank/twitterrank --pagerank_edges $GRAPHHOME/articlecitation --lda_edges ... | Shell |
#!/bin/sh
GLHOME="$HOME/graphlabapi"
GRAPHHOME="$HOME/data/acmgraph"
pagerank_only="false" #only run pagerank
lda_only="true" #only run lda
cmd="$GLHOME/release/apps/twitterrank/twitterrank --lda_edges $GRAPHHOME/articlewords --lda_dictionary $GRAPHHOME/words --join_on_id=true --wordid_offset=1 --ncpus=8 --ntopics=2... | 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 |
#!/bin/bash
if [ ! -d release ]; then
echo "Run from the graphlab root folder after ./configure"
else
cd release
make external_dependencies
cd ..
rm -f deps/local/lib/libboost*.so deps/local/lib/libhdfs*.so deps/local/lib/libtcmalloc*.so deps/local/lib/libevent*.so
rm -f deps/local/lib/libboost*.dylib deps/... | Shell |
#!/bin/bash
if [ ! -e ~/machines ]; then
echo "A list of machines must be provided in ~/machines"
echo "Exiting..."
exit 1
fi
#db: clean ssh known_hosts cache in case ip/name changed
mpiexec.openmpi -hostfile ~/machines -pernode \
sudo rm -fR ~/.ssh/known_hosts
namenode=`head -n 1 ~/machines` # first node is t... | Shell |
#!/bin/bash
src_path=$(hostname):$1
dest_path=$2
echo "Copying $src_path to $dest_path"
mpiexec.openmpi -hostfile ~/machines -nolocal -pernode scp -r $src_path $dest_path
| Shell |
#!/bin/bash
if [ ! -e ~/machines ]; then
echo "A list of machines must be provided in ~/machines"
echo "Exiting..."
exit 1
fi
namenode=$(hostname)
echo "Install Torque"
mpiexec.openmpi -hostfile ~/machines -pernode \
sudo apt-get --yes install torque-server torque-scheduler \
torque-client torque-common torq... | Shell |
#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); yo... | Shell |
#!/bin/bash
# This script will run the program in the same location and with the same
# name as this script (without the .sh). Passing it the same set of command
# line options.
# It also parses the following environment variables
# JAVA_HOME
# Either JAVA_HOME or JVM_SO_PATH must be set.
# This must point to th... | Shell |
#!/bin/bash
# This script will run the program in the same location and with the same
# name as this script (without the .sh). Passing it the same set of command
# line options.
# It also parses the following environment variables
# JAVA_HOME
# Either JAVA_HOME or JVM_SO_PATH must be set.
# This must point to th... | 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/bash
hg clone https://code.google.com/p/graphlabapi/
cd graphlabapi
./configure | tee install_configure_log.txt
cd release
make -j2 | tee ../v2_debug_log.txt
| 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
if [ ! -z "$PMI_RANK" ]; then
RANK=$PMI_RANK
elif [ ! -z "$OMPI_COMM_WORLD_RANK" ]; then
RANK=$OMPI_COMM_WORLD_RANK
else
echo "Unable to figure out MPI Rank!"
exit 1
fi
#echo $RANK
$* 2>&1 | tee out.$RANK
| Shell |
#!/bin/bash
major_version=2.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=... | Shell |
if [ ! -d src ]; then
echo "Run from the graphlab root folder"
exit
fi
./configure -D MARCH=x86-64 -D MTUNE=generic --no_jvm
scripts/compile_static_release.sh
# is this a openmpi or a mpich2 build?
ISOPENMPI=0
if grep -q mpi_cxx config.log
then
rootdirname="graphlab_openmpi_no_jvm"
unstrippeddirname="graphlab_... | Shell |
if [ ! -d src ]; then
echo "Run from the graphlab root folder"
exit
fi
./configure -D MARCH=x86-64 -D MTUNE=generic
scripts/compile_static_release.sh
# is this a openmpi or a mpich2 build?
ISOPENMPI=0
if grep -q mpi_cxx config.log
then
rootdirname="graphlab_openmpi"
unstrippeddirname="graphlab_openmpi_unstripp... | Shell |
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if ! grep -q Apache $1
then
echo $1
cat $DIR/../license/LICENSE_prepend.txt $1 > /tmp/out
mv /tmp/out $1
fi
| Shell |
doxygen
doxygen Doxyfile_internal
| Shell |
#!/bin/bash
src_path=$(hostname):$PWD
dest_path=$PWD
mpiexec.openmpi -hostfile ~/machines -nolocal -pernode mkdir -p $dest_path
mpiexec.openmpi -hostfile ~/machines -nolocal -pernode rsync -avz --exclude '*.make' --exclude '*.cmake' $src_path/ $dest_path
| Shell |
if [ ! -d src ]; then
echo "Run from the graphlab root folder"
exit
fi
./configure --no_jvm -D NO_MPI:BOOL=true -D COMPILER_FLAGS="-mmacosx-version-min=10.5" -D MARCH=x86-64 -D MTUNE=generic
scripts/compile_static_release.sh
echo "Packaging binary release..."
# now package a binary release
# for whatever reason... | 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 |
convert arbol.png arbol.pdf
convert completo.png completo.pdf
convert disperso.png disperso.pdf
convert peorcaso.png peorcaso.pdf
convert krusk-y-calc.png krusk-y-calc.pdf
| 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/bash
make
cat testdata | ./QueueTest
| Shell |
#!/bin/bash
make
cat testdata | ./QueueTest
| Shell |
# Copyright 2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: $
gentoo_user_vm="${HOME}/.gentoo/alice/aliroot"
gentoo_system_vm="/etc/alice/aliroot"
gentoo_program_name="aliroot-svn"
# Please make sure that this script is POSIX compliant
# See https://bugs.... | Shell |
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: $
gentoo_user_vm="${HOME}/.gentoo/alice/geant3"
gentoo_system_vm="/etc/alice/geant3"
# Please make sure that this script is POSIX compliant
# See https://bugs.gentoo.org/show_bug.cgi?id=1699... | Shell |
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: $
# If we have a current-user-vm (and aren't alien)... set it to JAVA_HOME
gentoo_user_vm="${HOME}/.gentoo/alice/alien"
gentoo_system_vm="/etc/alice/alien"
unset ALIEN_DIR
unset X509_CERT_DI... | Shell |
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: $
# If we have a current-user-vm (and aren't alien)... set it to JAVA_HOME
gentoo_user_vm="${HOME}/.gentoo/alice/xrootd"
gentoo_system_vm="/etc/alice/xrootd"
# Please make sure that this scr... | Shell |
#!/bin/bash
function help {
echo "Error : "
echo " qspy <id> stdout"
echo " or"
echo " qspy <id> stderr"
echo ""
}
ID=$1
FILE=$2
EXT="OU"
if [ "$FILE" = "stderr" ]; then
EXT="ER"
else
if [ "$FILE" = "stdout" ]; then
EXT="OU"
else
help
exit 0
fi
fi
ID=`qstat -f $ID | grep "Job Id" |... | Shell |
#!/bin/bash
function help {
echo "Error : "
echo " qspy <id> stdout"
echo " or"
echo " qspy <id> stderr"
echo ""
}
ID=$1
FILE=$2
EXT="OU"
if [ "$FILE" = "stderr" ]; then
EXT="ER"
else
if [ "$FILE" = "stdout" ]; then
EXT="OU"
else
help
exit 0
fi
fi
ID=`qstat -f $ID | grep "Job Id" |... | Shell |
#!/bin/bash
cn=`head -n 4 $XRDBASEDIR/admin/server/cmsd.pid | tail -n 1 | awk -F '=' '{ print $2 }'`
export APMON_CONFIG=${MONALISA_HOST}
#unset APMON_CONFIG
o=`$1/bin/xrdcp -np -S 15 -DIConnectTimeout 30 -DIConnectTimeoutWan 30 -DIFirstConnectMaxCnt 3 -DIMaxRedirectcount 10 -OStried=+$cn $2 $3 2>&1`
r=$?
echo $r
ec... | Shell |
#!/bin/bash
source $1/etc/xrootd/system.cnf
if [ `uname -m` = "x86_64" ]; then
bit="64"
else
bit=""
fi
export PERL5LIB=$1/lib$bit
if [ "x${LD_LIBRARY_PATH}" = "x" ]; then
export LD_LIBRARY_PATH=$1/lib$bit
else
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$1/lib$bit
fi
if [ "x${PATH}" = "x" ]; ... | Shell |
#!/bin/bash
source $1/etc/xrootd/system.cnf
if [ `uname -m` = "x86_64" ]; then
bit="64"
else
bit=""
fi
export PERL5LIB=$1/lib$bit
if [ "x${LD_LIBRARY_PATH}" = "x" ]; then
export LD_LIBRARY_PATH=$1/lib$bit
else
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$1/lib$bit
fi
if [ "x${PATH}" = "x" ]; ... | Shell |
#!/bin/bash
cn=`head -n 4 $XRDBASEDIR/admin/server/cmsd.pid | tail -n 1 | awk -F '=' '{ print $2 }'`
export APMON_CONFIG=${MONALISA_HOST}
#unset APMON_CONFIG
o=`$1/bin/xrdcp -np -S 15 -DIConnectTimeout 30 -DIConnectTimeoutWan 30 -DIFirstConnectMaxCnt 3 -DIMaxRedirectcount 10 -OStried=+$cn $2 $3 2>&1`
r=$?
echo $r
ec... | Shell |
#!/bin/bash
BOOTUP=color
RES_COL=60
MOVE_TO_COL="echo -en \\033[${RES_COL}G"
SETCOLOR_SUCCESS="echo -en \\033[1;32m"
SETCOLOR_FAILURE="echo -en \\033[1;31m"
SETCOLOR_WARNING="echo -en \\033[1;33m"
SETCOLOR_NORMAL="echo -en \\033[0;39m"
if [ `uname -m` = "x86_64" ]; then
export MARKLIB64="64"
else
expor... | Shell |
#!/bin/bash
BOOTUP=color
RES_COL=60
MOVE_TO_COL="echo -en \\033[${RES_COL}G"
SETCOLOR_SUCCESS="echo -en \\033[1;32m"
SETCOLOR_FAILURE="echo -en \\033[1;31m"
SETCOLOR_WARNING="echo -en \\033[1;33m"
SETCOLOR_NORMAL="echo -en \\033[0;39m"
if [ `uname -m` = "x86_64" ]; then
export MARKLIB64="64"
else
expor... | Shell |
#!/bin/bash
# Sample shell script that sends the given parameters to the ML service
# running on the same machine using ApMon.
#
# 2007-04-03
# Catalin.Cirstoiu@cern.ch
if [ $# -lt 2 ] ; then
cat <<EOM
usage: send_params.sh cluster node [param1 value1] [param2 value2] .. [paramN valueN]
cluster - cluster name as i... | Shell |
#!/bin/bash
# Sample shell script that provides host (and services) monitoring with ApMon.
#
# 2007-06-07
# Catalin.Cirstoiu@cern.ch
usage(){
cat <<EOM
usage: servMon.sh [[-f|-k] -p pidfile] hostGroup [serv1Name pid1] ...
-p pidfile - put ApMon's PID in this file and run in background. If
... | Shell |
#!/bin/bash
# Sample shell script that sends the given parameters to the ML service
# running on the same machine using ApMon.
#
# 2007-04-03
# Catalin.Cirstoiu@cern.ch
if [ $# -lt 2 ] ; then
cat <<EOM
usage: send_params.sh cluster node [param1 value1] [param2 value2] .. [paramN valueN]
cluster - cluster name as i... | Shell |
#!/bin/bash
# Sample shell script that provides host (and services) monitoring with ApMon.
#
# 2007-06-07
# Catalin.Cirstoiu@cern.ch
usage(){
cat <<EOM
usage: servMon.sh [[-f|-k] -p pidfile] hostGroup [serv1Name pid1] ...
-p pidfile - put ApMon's PID in this file and run in background. If
... | Shell |
#!/bin/bash
cn=`head -n 4 $XRDBASEDIR/admin/server/cmsd.pid | tail -n 1 | awk -F '=' '{ print $2 }'`
export APMON_CONFIG=${MONALISA_HOST}
#unset APMON_CONFIG
#inFile=`echo $2 | awk -F '//' '{ print $3 }'`
#o=`alien_cp "alien:/$inFile" $3`
o=`$1/bin/xrdcp -np -S 15 -DIConnectTimeout 30 -DIConnectTimeoutWan 30 -DIFir... | Shell |
#!/bin/bash
source $1/etc/xrootd/system.cnf
if [ `uname -m` = "x86_64" ]; then
bit="64"
else
bit=""
fi
export PERL5LIB=$1/lib$bit
if [ "x${LD_LIBRARY_PATH}" = "x" ]; then
export LD_LIBRARY_PATH=$1/lib$bit
else
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$1/lib$bit
fi
if [ "x${PATH}" = "x" ]; ... | Shell |
#!/bin/bash
source $1/etc/xrootd/system.cnf
if [ `uname -m` = "x86_64" ]; then
bit="64"
else
bit=""
fi
export PERL5LIB=$1/lib$bit
if [ "x${LD_LIBRARY_PATH}" = "x" ]; then
export LD_LIBRARY_PATH=$1/lib$bit
else
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$1/lib$bit
fi
if [ "x${PATH}" = "x" ]; ... | Shell |
#!/bin/bash
cn=`head -n 4 $XRDBASEDIR/admin/server/cmsd.pid | tail -n 1 | awk -F '=' '{ print $2 }'`
export APMON_CONFIG=${MONALISA_HOST}
#unset APMON_CONFIG
#inFile=`echo $2 | awk -F '//' '{ print $3 }'`
#o=`alien_cp "alien:/$inFile" $3`
o=`$1/bin/xrdcp -np -S 15 -DIConnectTimeout 30 -DIConnectTimeoutWan 30 -DIFir... | Shell |
#!/bin/bash
BOOTUP=color
RES_COL=60
MOVE_TO_COL="echo -en \\033[${RES_COL}G"
SETCOLOR_SUCCESS="echo -en \\033[1;32m"
SETCOLOR_FAILURE="echo -en \\033[1;31m"
SETCOLOR_WARNING="echo -en \\033[1;33m"
SETCOLOR_NORMAL="echo -en \\033[0;39m"
if [ `uname -m` = "x86_64" ]; then
export MARKLIB64="64"
else
expor... | Shell |
#!/bin/bash
BOOTUP=color
RES_COL=60
MOVE_TO_COL="echo -en \\033[${RES_COL}G"
SETCOLOR_SUCCESS="echo -en \\033[1;32m"
SETCOLOR_FAILURE="echo -en \\033[1;31m"
SETCOLOR_WARNING="echo -en \\033[1;33m"
SETCOLOR_NORMAL="echo -en \\033[0;39m"
if [ `uname -m` = "x86_64" ]; then
export MARKLIB64="64"
else
expor... | Shell |
#!/bin/bash
# Sample shell script that sends the given parameters to the ML service
# running on the same machine using ApMon.
#
# 2007-04-03
# Catalin.Cirstoiu@cern.ch
if [ $# -lt 2 ] ; then
cat <<EOM
usage: send_params.sh cluster node [param1 value1] [param2 value2] .. [paramN valueN]
cluster - cluster name as i... | Shell |
#!/bin/bash
# Sample shell script that provides host (and services) monitoring with ApMon.
#
# 2007-06-07
# Catalin.Cirstoiu@cern.ch
usage(){
cat <<EOM
usage: servMon.sh [[-f|-k] -p pidfile] hostGroup [serv1Name pid1] ...
-p pidfile - put ApMon's PID in this file and run in background. If
... | Shell |
#!/bin/bash
# Sample shell script that sends the given parameters to the ML service
# running on the same machine using ApMon.
#
# 2007-04-03
# Catalin.Cirstoiu@cern.ch
if [ $# -lt 2 ] ; then
cat <<EOM
usage: send_params.sh cluster node [param1 value1] [param2 value2] .. [paramN valueN]
cluster - cluster name as i... | Shell |
#!/bin/bash
# Sample shell script that provides host (and services) monitoring with ApMon.
#
# 2007-06-07
# Catalin.Cirstoiu@cern.ch
usage(){
cat <<EOM
usage: servMon.sh [[-f|-k] -p pidfile] hostGroup [serv1Name pid1] ...
-p pidfile - put ApMon's PID in this file and run in background. If
... | Shell |
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: $
# If we have a current-user-vm (and aren't root)... set it to JAVA_HOME
gentoo_user_vm="${HOME}/.gentoo/alice/root"
gentoo_system_vm="/etc/alice/root"
gentoo_program_name="root-svn"
# Plea... | Shell |
#!/bin/bash
set -e
if [ $# -eq 0 -o x$1 = "x-h" -o x$1 = "x-help" -o x$1 = "x--help" ]; then
echo "Usage:"
echo " $0 source-file(s)"
exit
fi
for i in $@
do
echo Update $i...
TMP=`mktemp`
sed -e "s/\<undirected graph\>/_gr_aph_label_/g"\
-e "s/\<undirected graphs\>/_gr_aph_label_s/g"\... | Shell |
#!/bin/bash
set -e
if [ $# -eq 0 -o x$1 = "x-h" -o x$1 = "x-help" -o x$1 = "x--help" ]; then
echo "Usage:"
echo " $0 source-file(s)"
exit
fi
for i in $@
do
echo Update $i...
TMP=`mktemp`
sed -e "s/\<undirected graph\>/_gr_aph_label_/g"\
-e "s/\<undirected graphs\>/_gr_aph_label_s/g"\... | Shell |
#csh
#---------------------------------------------------------------------
# N-way cross-validation script
#---------------------------------------------------------------------
#
# invocation:
# csh xval.sh filestem N [options for c4.5 and c4.5rules] [suffix]
#
# individual results from each block are left in
# ... | Shell |
#!/bin/bash
#TESTED
#references:
#http://www.boost.org/doc/libs/1_54_0/more/getting_started/unix-variants.html
#installa boost una libreria comprendente tante cose interessanti
echo "******************* BOOST INSTALLER ***************************"
echo "PURPOSE"
echo "boost è utile per usare CUTE in Eclipse per imp... | Shell |
#!/bin/bash
#TESTED
#references:
#http://www.boost.org/doc/libs/1_54_0/more/getting_started/unix-variants.html
#installa boost una libreria comprendente tante cose interessanti
echo "******************* BOOST INSTALLER ***************************"
echo "PURPOSE"
echo "boost è utile per usare CUTE in Eclipse per imp... | Shell |
#!/bin/sh
cpt=no # enforces competition settings if set to yes
memdbg=no
picosat=no
rm -f makefile
if [ ! x"$cpt" = xyes ]
then
cov=no;dbg=no;log=no;chk=no;stc=no;sts=no;m32=no
while [ $# -gt 0 ]
do
case $1 in
-h)
echo "usage: configure [-h|-g|-O|-l|-c|-m32|-static|--check|--stats]"
echo "-h ... | Shell |
#!/bin/sh
mkdir -p $1
rm level.h
#echo -n "//" >> level.h
#date >> level.h
echo "//" >> level.h
cat Temple >> level.h
cp -rf level.h $1/$1\DIV1_$2\.h
cp -rf level.h $1/$1\DIV1_$3\.h
cp -rf level.h $1/$1\DIV1_$4\.h
cp -rf level.h $1/$1\DIV2_$5\.h
cp -rf level.h $1/$1\DIV2_$6\.h
cp -rf level.h $1/$1\DIV2_$7\.h
| Shell |
#!/bin/sh
rm $0
"./a.out"
echo "
------------------
(program exited with code: $?)"
echo "Press return to continue"
#to be more compatible with shells like dash
dummy_var=""
read dummy_var
| Shell |
#!/bin/bash
rm -rf hello
for folder in Volumn_*
do
echo $folder:
ls $folder/ | wc -w
done
| Shell |
#!/bin/bash
for i in {040..060}
do
mkdir -p Volumn_$i
done
| Shell |
#!/bin/sh
if [ $# -lt 2 ]
then
echo "There should be more than two arguments needed."
exit 0
fi
for i in "$@"
do
STR=$STR\_$i
done
echo -n "//" >> poj$STR\.cpp
date >> poj$STR\.cpp
cat Temple >> poj$STR\.cpp
#mv poj$STR\.cpp POJ_Judge/
| Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
# Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | Shell |
# Generated from ltmain.m4sh.
# ltmain.sh (GNU libtool) 2.2.6b
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# ... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is ... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
# Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008, 2009 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free softw... | Shell |
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
# Free Software Foundation, Inc.
timestamp='2010-01-22'
# This file is (in principle) common to ALL GNU software.
# The pres... | Shell |
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
# Free Software Foundation, Inc.
timestamp='2009-12-30'
# This file is free software; you can redistribute it and/or modify it... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is ... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008, 2009 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free softw... | 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 |
#!/bin/bash
python2 manage.py runserver
exit | Shell |
#!/bin/bash
python2 manage.py syncdb
exit | Shell |
#!/bin/bash
python2 manage.py runserver
exit | Shell |
#!/bin/bash
python2 manage.py syncdb
exit | Shell |
#!/bin/sh
# Make sure only root can run this script
if [ `id | cut -d= -f3 | cut -d\( -f1` = 0 ]
then
echo "installing ..."
else
echo "This script must be run as root" 1>&2
exit 0;
fi
chmod a+x aliaser.py
cp -f aliaser.py /usr/bin/aliaser
echo "basic installation done."
echo "Please follow these... | Shell |
#!/bin/sh
# Make sure only root can run this script
if [ `id | cut -d= -f3 | cut -d\( -f1` = 0 ]
then
echo "installing ..."
else
echo "This script must be run as root" 1>&2
exit 0;
fi
chmod a+x aliaser.py
cp -f aliaser.py /usr/bin/aliaser
echo "basic installation done."
echo "Please follow these... | Shell |
rm myVector.o,myTools.o,main
gcc -c myVector.c -o myVector.o
gcc -c myTools.c -o myTools.o
gcc main.c myVector.o myTools.o -o main
./main
| 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.