code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/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/bash getLangsForFiles () { echo "en" # default language for F in "$@" do find res/ -name "$F" done \ | sed -n ' s/.*res.[a-z]*-\(..\)-r\(..\).*/\1_\2/p; # yy-rXX => yy_XX s/.*res.[a-z]*-\(..\)\/.*/\1/p; # yy => yy ' } getLangsForDicts () { ls ../Dicts \ | sed 's/.*-//;...
Shell
#!/bin/bash Res=res/ Alt=donottranslate-altchars.xml Map=donottranslate-keymap.xml Out=assets/kbd/ mkdir -p "$Out" for Dir in res/values res/values-* do [ -f $Dir/$Map ] || continue # -o -f $Dir/$Alt ] || continue Args="$Res/values/$Alt" [ -f $Dir/$Alt ] && Args="$Args $Dir/$Alt" Args="$Args $Res/values/$Map...
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 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 echo "Generate Windows-specific files (src/jvm-w32) ..." make -C src/jvm-w32 if [ $? != 0 ]; then exit 1 fi echo "Find Java..." # findjava honors JAVA_HOME environment variable, so we can safely overwite it if [ -e src/jvm-w32/findjava.exe ]; then JAVA_HOME=`src/jvm-w32/findjava -s -f` fi if [ x$JAV...
Shell
#!/bin/sh # # install - install a program, script, or datafile # # 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 hereby granted, free of charge, t...
Shell
#!/bin/sh echo "Generate Windows-specific files (src/jvm-w32) ..." make -C src/jvm-w32 if [ $? != 0 ]; then exit 1 fi echo "Find Java..." # findjava honors JAVA_HOME environment variable, so we can safely overwite it if [ -e src/jvm-w32/findjava.exe ]; then JAVA_HOME=`src/jvm-w32/findjava -s -f` fi if [ x$JAV...
Shell
#!/bin/sh VER=`awk -v ORS= '/rJava v/ { print substr($6,2) }' src/rJava.h` if test "$1" == "-f"; then echo "rJava_${VER}.tar.gz" else echo "${VER}" fi
Shell
#!/bin/sh # # install - install a program, script, or datafile # # 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 hereby granted, free of charge, t...
Shell
#!/bin/sh # if CONFIGURED is set, then we don't attempt to run findjava # (useful when building inside rJava) if [ -z "$CONFIGURED" ]; then echo "Generate Windows-specific files (src/jvm-w32) ..." make -C src/win32 if [ $? != 0 ]; then exit 1 fi echo "Find Java..." # findjava honors JAVA_HOME en...
Shell
#!/bin/sh # if CONFIGURED is set, then we don't attempt to run findjava # (useful when building inside rJava) if [ -z "$CONFIGURED" ]; then echo "Generate Windows-specific files (src/jvm-w32) ..." make -C src/win32 if [ $? != 0 ]; then exit 1 fi echo "Find Java..." # findjava honors JAVA_HOME en...
Shell
#!/bin/sh VER=`awk -v ORS= '/JRI v/ { print substr($6,2) }' src/jri.h` if test "$1" == "-f"; then echo "JRI_${VER}.tar.gz" else echo "${VER}" fi
Shell
#!/bin/sh R_HOME=@R_HOME@ R_SHARE_DIR=@R_SHARE_DIR@ export R_SHARE_DIR R_INCLUDE_DIR=@R_INCLUDE_DIR@ export R_INCLUDE_DIR R_DOC_DIR=@R_DOC_DIR@ export R_DOC_DIR JRI_LD_PATH=${R_HOME}/lib:${R_HOME}/bin:@JAVA_LD_PATH@ if test -z "$LD_LIBRARY_PATH"; then LD_LIBRARY_PATH=$JRI_LD_PATH else LD_LIBRARY_PATH=$LD_LIBRARY...
Shell
#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without ...
Shell
#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case "${1}" in -h | ...
Shell
#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002 Free Software Foundation, Inc. timestamp='2002-07-03' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GN...
Shell
#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002 Free Software Foundation, Inc. timestamp='2002-07-23' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License...
Shell
#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without ...
Shell
#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case "${1}" in -h | ...
Shell
#!/bin/sh R_HOME=@R_HOME@ R_SHARE_DIR=@R_SHARE_DIR@ export R_SHARE_DIR R_INCLUDE_DIR=@R_INCLUDE_DIR@ export R_INCLUDE_DIR R_DOC_DIR=@R_DOC_DIR@ export R_DOC_DIR JRI_LD_PATH=${R_HOME}/lib:${R_HOME}/bin:@JAVA_LD_PATH@ if test -z "$LD_LIBRARY_PATH"; then LD_LIBRARY_PATH=$JRI_LD_PATH else LD_LIBRARY_PATH=$LD_LIBRARY...
Shell
#!/bin/sh VER=`awk -v ORS= '/JRI v/ { print substr($6,2) }' src/jri.h` if test "$1" == "-f"; then echo "JRI_${VER}.tar.gz" else echo "${VER}" fi
Shell
#!/bin/sh VER=`awk -v ORS= '/rJava v/ { print substr($6,2) }' src/rJava.h` if test "$1" == "-f"; then echo "rJava_${VER}.tar.gz" else echo "${VER}" fi
Shell
#!/bin/bash # # This script checks the java version and bails if it's less # than Java6 (because we use @Override annotations on interface # overriding methods. It then proceeds to do a maven build that # first cleans, then builds the normal lifecycle through compilation # unit testing (if available) up to packaging. ...
Shell
for arg in "$@" do case $arg in *=*) optarg=`expr "X$arg" : '[^=]*=\(.*\)'` ;; esac case "$arg" in --name=*) name=$optarg ;; --id=*) id=$optarg ;; --version=*) version=$optarg ;; --exec=*) exec=$optarg ;; --vendor=*) vendor=$optarg ;; --website=*) website=$optarg ;; --...
Shell
for arg in "$@" do case $arg in *=*) optarg=`expr "X$arg" : '[^=]*=\(.*\)'` ;; esac case "$arg" in --name=*) name=$optarg ;; --id=*) id=$optarg ;; --version=*) version=$optarg ;; --bundle-name=*) bundleName=$optarg ;; --exec=*) exec=$optarg ;; --vendor=*) vendor=$optarg ...
Shell
for arg in "$@" do case $arg in *=*) optarg=`expr "X$arg" : '[^=]*=\(.*\)'` ;; esac case "$arg" in --name=*) name=$optarg ;; --id=*) id=$optarg ;; --version=*) version=$optarg ;; --version-code=*) versionCode=$optarg ;; --vendor=*) vendor=$optarg ;; --min-sdk=*) minSDK=$op...
Shell
for arg in "$@" do case $arg in *=*) optarg=`expr "X$arg" : '[^=]*=\(.*\)'` ;; esac #echo $arg case "$arg" in --name=*) name=$optarg ;; --id=*) id=$optarg ;; --version=*) version=$optarg ;; --vendor=*) vendor=$optarg ;; --exec=*) exec=$optarg ;; --required-memory=*) req...
Shell
for arg in "$@" do case $arg in *=*) optarg=`expr "X$arg" : '[^=]*=\(.*\)'` ;; esac case "$arg" in --name=*) name=$optarg ;; --id=*) id=$optarg ;; --version=*) version=$optarg ;; --bundle-name=*) bundleName=$optarg ;; --exec=*) exec=$optarg ;; --vendor=*) vendor=$optarg ...
Shell
#!/bin/sh # Run this to set up the build system: configure, makefiles, etc. # (based on the version in enlightenment's cvs) package="vorbisdec" olddir=`pwd` srcdir=`dirname $0` test -z "$srcdir" && srcdir=. cd "$srcdir" DIE=0 echo "checking for autoconf... " (autoconf --version) < /dev/null > /dev/null 2>&1 || { ...
Shell
NEW= for def in $2; do NEW="${NEW}#define ${def/=/ } " done for inc in $3; do NEW="${NEW}#include $inc " done for inc in $4; do NEW="${NEW}#include_next $inc " done if [ -f $1 ]; then OLD=`cat $1`" " #echo -n "$NEW" #echo -n "$OLD" if [[ "$NEW" == "$OLD" ]]; then exit 0 fi fi #echo "writing config to $1" ...
Shell
g++-4.5 -std=gnu++0x -I../../../.. -o generate generate.cpp
Shell
#!/bin/bash if [ $# != 1 ] then echo "Usage: $0 emailAddress" exit 1 fi read -s -p "Password: " mypassword echo "" curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
Shell
#!/bin/sh # Create a backup tar gzip file of the cwd with the date appended # located in the parent directory. FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz echo Will create $FILENAME tar cfz $FILENAME . echo Done.
Shell
#!/bin/bash # 打开apache.http调试信息 adb shell setprop log.tag.org.apache.http VERBOSE adb shell setprop log.tag.org.apache.http.wire VERBOSE adb shell setprop log.tag.org.apache.http.headers VERBOSE echo "Enable Debug"
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/bash # 打开apache.http调试信息 adb shell setprop log.tag.org.apache.http VERBOSE adb shell setprop log.tag.org.apache.http.wire VERBOSE adb shell setprop log.tag.org.apache.http.headers VERBOSE echo "Enable Debug"
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 # # Android Weather Notification. # Copyright (C) 2012 gelin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) an...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2012 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 Denis Nelubin aka Gelin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # ...
Shell
#!/bin/sh TARGETS=$* buildin() { BASE_DIR=$(pwd) cd $1 ant $TARGETS cd $BASE_DIR } buildin core buildin skins/black-text buildin skins/white-text buildin skins/black-text-plus buildin skins/white-text-plus buildin skins/bigger-text
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 GLHOME="$HOME/graphlabapi" GRAPHHOME="$HOME/data/nips" pagerank_only="false" #only run pagerank lda_only="true" #only run lda cmd="$GLHOME/release/apps/twitterrank/twitterrank --execution synchronous --lda_edges $GRAPHHOME/nipstext.txt --lda_dictionary $GRAPHHOME/nipswordlist.txt --wordid_offset=0 --ntopic...
Shell
#!/bin/sh GLHOME="/home/haijieg/graphlabapi" GRAPHHOME="/home/haijieg/test_graph" pagerank_only="false" lda_only="false" cmd="$GLHOME/debug/apps/twitterrank/twitterrank --pagerank_edges $GRAPHHOME/pagerank/edges --pagerank_vertices $GRAPHHOME/pagerank/vertices --lda_edges $GRAPHHOME/lda/edges --lda_vertices $GRAPHHOME/...
Shell
#!/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