code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash echo "Running file READ test on FAT 16 : " cp regtest.orig.16 regtest.16 rm -f REG_FILE_16_OUT time ./regtest 0 echo "a0d4606add9362f5bc550b6f22fb2626 Reference md5sum" md5sum REG_FILE_16_OUT echo "" echo "Running file READ test on FAT 32 : " cp regtest.orig.32 regtest.32 rm -f REG_FILE_32_OUT...
Shell
#!/bin/bash echo "Running file READ test on FAT 16 : " cp regtest.orig.16 regtest.16 rm -f REG_FILE_16_OUT time ./regtest 0 echo "a0d4606add9362f5bc550b6f22fb2626 Reference md5sum" md5sum REG_FILE_16_OUT echo "" echo "Running file READ test on FAT 32 : " cp regtest.orig.32 regtest.32 rm -f REG_FILE_32_OUT...
Shell
if [ -f vn ]; then expr `cat vn` + 1 > vn else echo 0 > vn fi HOST=`hostname` HOST=`basename $HOST .purdue.edu` echo "7."`cat rn`"."`cat vn`" i386 GATEWAY ("$USER"@"$HOST") "`date` > version
Shell
#!/bin/bash #$ -V #$ -cwd #$ -N parallel_sort #Replace with your job name #$ -j y #$ -o output.$JOB_NAME.$JOB_ID #$ -pe 1way 12 #read explanation below #$ -q development #queue name - do not change this #$ -l h_rt=00:03:00 #specifies resource limits - in this case, the maximum amount of time for which your job ...
Shell
#!/bin/bash #$ -V #$ -cwd #$ -N parallel_sort #Replace with your job name #$ -j y #$ -o output.$JOB_NAME.$JOB_ID #$ -pe 1way 12 #read explanation below #$ -q development #queue name - do not change this #$ -l h_rt=00:03:00 #specifies resource limits - in this case, the maximum amount of time for which your job ...
Shell
#!/usr/bin/sh # for this to work you need to have the following installed: # - Xcode: http://developer.apple.com/ # - git: http://help.github.com/mac-git-installation/ # - mercurial / hg: http://mercurial.berkwood.com/ # pull three20 cd .. git clone git://github.com/facebook/three20.git # pull mailcore hg clone http:...
Shell
#!/usr/bin/env bash # A script that invokes your compiler.
Shell
#!/usr/bin/env bash make # A script that builds your compiler.
Shell
#!/usr/bin/env bash # A script that invokes your compiler.
Shell
#!/usr/bin/env bash [ $# -ne 1 ] && { echo "Usage $0 PROGRAM" >&2; exit 1; } # set -v PROGRAM=$1 BASENAME=`basename $PROGRAM .c` echo $PROGRAM ../dce -opt=none -backend=3addr < ${BASENAME}.3addr > ${BASENAME}.none.3addr diff ${BASENAME}.none.3addr ${BASENAME}.3addr
Shell
#!/usr/bin/env bash for PROGRAM in collatz.c gcd.c hanoifibfac.c loop.c mmm.c prime.c \ regslarge.c struct.c sort.c sieve.c do BASENAME=`basename $PROGRAM .c` rm -rf ${BASENAME} *.txt *.3addr ${BASENAME}.cfg ${BASENAME}.dce.cfg *.dce *.dce.c done
Shell
#!/usr/bin/env bash [ $# -ne 1 ] && { echo "Usage $0 PROGRAM" >&2; exit 1; } # set -v PROGRAM=$1 BASENAME=`basename $PROGRAM .c` echo $PROGRAM ../dce -opt=none -backend=cfg < ${BASENAME}.3addr > ${BASENAME}.cfg diff ${BASENAME}.cfg ${BASENAME}.ta.cfg
Shell
#!/usr/bin/env bash for PROGRAM in collatz.c gcd.c hanoifibfac.c loop.c mmm.c prime.c \ regslarge.c struct.c sort.c sieve.c do BASENAME=`basename $PROGRAM .c` rm -rf ${BASENAME} *.txt *.3addr ${BASENAME}.cfg ${BASENAME}.dce.cfg *.dce *.dce.c done
Shell
#!/usr/bin/env bash [ $# -ne 1 ] && { echo "Usage $0 PROGRAM" >&2; exit 1; } # set -v PROGRAM=$1 BASENAME=`basename $PROGRAM .c` echo $PROGRAM ../dce -opt=none -backend=cfg < ${BASENAME}.3addr > ${BASENAME}.cfg diff ${BASENAME}.cfg ${BASENAME}.ta.cfg
Shell
#!/usr/bin/env bash C_SUBSET_COMPILER=../../csc/csc THREE_ADDR_TO_C_TRANSLATOR=../../3addr-converter/convert.py for PROGRAM in collatz.c gcd.c hanoifibfac.c loop.c mmm.c prime.c \ regslarge.c struct.c sort.c sieve.c do BASENAME=`basename $PROGRAM .c` ${C_SUBSET_COMPILER} $PROGRAM > ${BASENAME}.3addr ./che...
Shell
#!/usr/bin/env bash [ $# -ne 1 ] && { echo "Usage $0 PROGRAM" >&2; exit 1; } # set -v PROGRAM=$1 BASENAME=`basename $PROGRAM .c` echo $PROGRAM ../dce -opt=none -backend=3addr < ${BASENAME}.3addr > ${BASENAME}.none.3addr diff ${BASENAME}.none.3addr ${BASENAME}.3addr
Shell
#!/usr/bin/env bash C_SUBSET_COMPILER=../../csc/csc THREE_ADDR_TO_C_TRANSLATOR=../../3addr-converter/convert.py for PROGRAM in collatz.c gcd.c hanoifibfac.c loop.c mmm.c prime.c \ regslarge.c struct.c sort.c sieve.c do BASENAME=`basename $PROGRAM .c` ${C_SUBSET_COMPILER} $PROGRAM > ${BASENAME}.3addr ./che...
Shell
#!/usr/bin/env bash make # A script that builds your compiler.
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-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 # 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-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-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-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-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 # 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-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 # 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-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 # 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 # 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 # 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
a2ps $1 -o $2 -T 4 --line-numbers=1
Shell
#!/bin/sh # for this to work you need to have the following installed: # - Xcode 3.1.3 or higher: http://developer.apple.com/ # - git: http://help.github.com/mac-git-installation/ # - mercurial / hg: http://mercurial.berkwood.com/ # pull three20 cd .. git clone git://github.com/facebook/three20.git # pull mailcore hg...
Shell
#!/bin/sh # Copyright 2011 Cooliris, 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 t...
Shell
#!/bin/sh # Copyright 2011 Cooliris, 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 t...
Shell
#!/bin/sh # Copyright 2011 Cooliris, 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 t...
Shell
#!/bin/sh # Copyright 2011 Cooliris, 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 t...
Shell
#!/bin/sh # Copyright 2011 Cooliris, 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 t...
Shell
#!/bin/sh # Copyright 2011 Cooliris, 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 t...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output classes.txt -cbow 0 -size 200 -window 5 -negative 0 -hs 1 -sample 1e-3 -threads 12 -classes 500 sort classes.txt -k 2 -n > classes.sorted.txt echo The word classes were saved...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output vectors.bin -cbow 0 -size 200 -window 5 -negative 0 -hs 1 -sample 1e-3 -threads 12 -binary 1 ./compute-accuracy vectors.bin 30000 < questions-words.txt # to compute accuracy ...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi echo ---------------------------------------------------------------------------------------------------------------- echo Note that the accuracy and coverage of the test set questions is going to be low with th...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output vectors.bin -cbow 0 -size 200 -window 5 -negative 0 -hs 1 -sample 1e-3 -threads 12 -binary 1 ./distance vectors.bin
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi echo ----------------------------------------------------------------------------------------------------- echo Note that for the word analogy to perform well, the models should be trained on much larger data se...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2phrase -train text8 -output text8-phrase -threshold 500 -debug 2 time ./word2vec -train text8-phrase -output vectors-phrase.bin -cbow 0 -size 300 -window 10 -negative 0 -hs 1 -sample 1e-3 -threads 12...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output classes.txt -cbow 0 -size 200 -window 5 -negative 0 -hs 1 -sample 1e-3 -threads 12 -classes 500 sort classes.txt -k 2 -n > classes.sorted.txt echo The word classes were saved...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output vectors.bin -cbow 0 -size 200 -window 5 -negative 0 -hs 1 -sample 1e-3 -threads 12 -binary 1 ./compute-accuracy vectors.bin 30000 < questions-words.txt # to compute accuracy ...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi echo ---------------------------------------------------------------------------------------------------------------- echo Note that the accuracy and coverage of the test set questions is going to be low with th...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output vectors.bin -cbow 0 -size 200 -window 5 -negative 0 -hs 1 -sample 1e-3 -threads 12 -binary 1 ./distance vectors.bin
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi echo ----------------------------------------------------------------------------------------------------- echo Note that for the word analogy to perform well, the models should be trained on much larger data se...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2phrase -train text8 -output text8-phrase -threshold 500 -debug 2 time ./word2vec -train text8-phrase -output vectors-phrase.bin -cbow 0 -size 300 -window 10 -negative 0 -hs 1 -sample 1e-3 -threads 12...
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 #Hi my naem is Kirt and I liek anime ulimit -Sc unlimited while [ 1 ] ; do if [ -f .stopserver ] ; then echo server marked down >> servlog.txt else echo restarting server at time at `date +"%m-%d-%H:%M-%S"`>> startlog.txt ./map-server fi sleep 5 done
Shell
#!/bin/sh # athena starting script by rowla # modified by shazeya@syafi.com (NL101541) PATH=./:$PATH L_SRV=login-server_sql C_SRV=char-server_sql M_SRV=map-server_sql print_start() { # more << EOF echo "Athena Starting..." echo " (c) 2003 Athena Project" echo " modified by sh...
Shell
#!/bin/bash # modified by shazeya@syafi.com (NL130240) ./athena-start start sleep 30 while [ true ]; do if [ " 0" = "$(ps | grep -e log | wc -l)" ] || # if [ " 0" = "$(ps | grep -e login | wc -l)" ] || [ " 0" = "$(ps | grep -e char | wc -l)" ] || [ " 0" = "$(ps | gr...
Shell
#!/bin/bash case "$1" in map|char|login) # Check for SQL postfix if [ "$2" = "sql" ]; then SERVER="$1-server_sql" else SERVER="$1-server" fi ;; *|""|help) echo "Usage 1: ${0##*/} [server-type] [txt/sql]" echo Server type can be map, login, or char. Examples: echo "$ ./${0##*/} m...
Shell
#!/bin/bash case "$1" in map|char|login) # Check for SQL postfix if [ "$2" = "sql" ]; then SERVER="$1-server_sql" else SERVER="$1-server" fi ;; *|""|help) echo "Usage 1: ${0##*/} [server-type] [txt/sql]" echo Server type can be map, login, or char. Examples: echo "$ ./${0##*/} m...
Shell
#!/bin/bash # modified by shazeya@syafi.com (NL130240) ./athena-start start sleep 30 while [ true ]; do if [ " 0" = "$(ps | grep -e log | wc -l)" ] || # if [ " 0" = "$(ps | grep -e login | wc -l)" ] || [ " 0" = "$(ps | grep -e char | wc -l)" ] || [ " 0" = "$(ps | gr...
Shell
#/bin/sh #Hi my naem is Kirt and I liek anime ulimit -Sc unlimited while [ 3 ] ; do if [ -f .stopserver3 ] ; then echo server marked down >> servlog.txt else echo restarting server at time at `date +"%m-%d-%H:%M-%S"`>> startlog.txt ./char-server fi sleep 5 done
Shell
#/bin/sh #Hi my naem is Kirt and I liek anime ulimit -Sc unlimited while [ 2 ] ; do if [ -f .stopserver2 ] ; then echo server marked down >> servlog.txt else echo restarting server at time at `date +"%m-%d-%H:%M-%S"`>> startlog.txt ./login-server fi sleep 5 done
Shell
#!/bin/sh # athena starting script by rowla # modified by shazeya@syafi.com (NL101541) PATH=./:$PATH L_SRV=login-server_sql C_SRV=char-server_sql M_SRV=map-server_sql print_start() { # more << EOF echo "Athena Starting..." echo " (c) 2003 Athena Project" echo " modified by sh...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2phrase -train text8 -output text8-phrase -threshold 500 -debug 2 time ./word2vec -train text8-phrase -output vectors-phrase.bin -cbow 0 -size 300 -window 10 -negative 0 -hs 1 -sample 1e-3 -threads 12...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2phrase -train text8 -output text8-phrase -threshold 500 -debug 2 time ./word2vec -train text8-phrase -output vectors-phrase.bin -cbow 0 -size 300 -window 10 -negative 0 -hs 1 -sample 1e-3 -threads 12...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output vectors.bin -cbow 0 -size 200 -window 5 -negative 0 -hs 1 -sample 1e-3 -threads 12 -binary 1 ./distance vectors.bin
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output vectors.bin -cbow 0 -size 200 -window 5 -negative 0 -hs 1 -sample 1e-3 -threads 12 -binary 1 ./compute-accuracy vectors.bin 30000 < questions-words.txt # to compute accuracy ...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output classes.txt -cbow 0 -size 200 -window 5 -negative 0 -hs 1 -sample 1e-3 -threads 12 -classes 500 sort classes.txt -k 2 -n > classes.sorted.txt echo The word classes were saved...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi echo ----------------------------------------------------------------------------------------------------- echo Note that for the word analogy to perform well, the models should be trained on much larger data se...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi echo ---------------------------------------------------------------------------------------------------------------- echo Note that the accuracy and coverage of the test set questions is going to be low with th...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output vectors.bin -cbow 0 -size 200 -window 5 -negative 0 -hs 1 -sample 1e-3 -threads 12 -binary 1 ./distance vectors.bin
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output vectors.bin -cbow 0 -size 200 -window 5 -negative 0 -hs 1 -sample 1e-3 -threads 12 -binary 1 ./compute-accuracy vectors.bin 30000 < questions-words.txt # to compute accuracy ...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output classes.txt -cbow 0 -size 200 -window 5 -negative 0 -hs 1 -sample 1e-3 -threads 12 -classes 500 sort classes.txt -k 2 -n > classes.sorted.txt echo The word classes were saved...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi echo ----------------------------------------------------------------------------------------------------- echo Note that for the word analogy to perform well, the models should be trained on much larger data se...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi echo ---------------------------------------------------------------------------------------------------------------- echo Note that the accuracy and coverage of the test set questions is going to be low with th...
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 # 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-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 # 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