code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh # athena starting script by rowla PATH=./:$PATH L_SRV=login-server C_SRV=char-server M_SRV=map-server L_SRV_C=./conf/login_athena.conf C_SRV_C=./conf/char_athena.conf C_SRV_C2=./conf/inter_athena.conf M_SRV_C=./conf/map_athena.conf M_SRV_C2=./conf/battle_athena.conf M_SRV_C3=./conf/atcommand_at...
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/bash ./athena-start start sleep 30 while [ true ] ; do if [ " 0" = "$(ps | grep -e login | wc -l)" ] || [ " 0" = "$(ps | grep -e char | wc -l)" ] || [ " 0" = "$(ps | grep -e map | wc -l)" ]; then printf "Error:" date sleep 10 printf "Checking:" date if [ " 0" = "$(ps | ...
Shell
#!/bin/sh # athena starting script by rowla PATH=./:$PATH L_SRV=login-server C_SRV=char-server M_SRV=map-server L_SRV_C=./conf/login_athena.conf C_SRV_C=./conf/char_athena.conf C_SRV_C2=./conf/inter_athena.conf M_SRV_C=./conf/map_athena.conf M_SRV_C2=./conf/battle_athena.conf M_SRV_C3=./conf/atcommand_at...
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/bash athena_dir="/home/athena/658/" while [ true ] ; do if [ ` ps fauxw | grep map-server | grep -v grep | wc -l ` -eq 0 ];then #echo `date` " -- map-server crashed - restarting" echo `date` " -- map-server crashed - restarting" >> /var/log/athena_status.log killall -9 map-ser...
Shell
#!/bin/sh echo "============================================" echo "= map server status checker... =" echo "============================================" ./map-server.exe & sleep 40 while [ 0 ] do pcpu=` top -n 1| grep map-server | awk '{print $9}' | awk 'BEGIN{FS="."} {print $1}' ` if [ "$pcp...
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/sh echo "============================================" echo "= map server status checker... =" echo "============================================" ./map-server.exe & sleep 40 while [ 0 ] do pcpu=` top -n 1| grep map-server | awk '{print $9}' | awk 'BEGIN{FS="."} {print $1}' ` if [ "$pcp...
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 athena_dir="/home/athena/658/" while [ true ] ; do if [ ` ps fauxw | grep map-server | grep -v grep | wc -l ` -eq 0 ];then #echo `date` " -- map-server crashed - restarting" echo `date` " -- map-server crashed - restarting" >> /var/log/athena_status.log killall -9 map-ser...
Shell
#!/bin/bash # # by Yuval Kuck 04/2008, Core Team # root=https://il-cms1.zend.net/svn/Zend/InternalTools/ZendPortal link=ZendPortal rc=$1 user=svnread pass=3303 svncmd="svn --username ${user} --password ${pass}" if [ "$rc" == "" ] ; then echo "$0 <rc Number> (Example: 01)" exit fi if ! [ -h ./${link} ] ...
Shell
#!/bin/bash php=/usr/local/zend/bin/php if [ ! -f ${php} ] ; then echo "can not find PHP at: ${php}, abort" exit fi if [ -d lucene ] ; then cd lucene fi if [ -f crawler.php ] ; then echo -n "update ..." rm -fr index ${php} crawler.php chmod -R 777 index else echo "can not find crawler.php, abort" exit fi ec...
Shell
#!/bin/bash php=/usr/local/zend/bin/php if [ ! -f ${php} ] ; then echo "can not find PHP at: ${php}, abort" exit fi if [ -d lucene ] ; then cd lucene fi if [ -f crawler.php ] ; then echo -n "update ..." rm -fr index ${php} crawler.php chmod -R 777 index else echo "can not find crawler.php, abort" exit fi ec...
Shell
#!/bin/bash # # by Yuval Kuck 04/2008, Core Team # root=https://il-cms1.zend.net/svn/Zend/InternalTools/ZendPortal link=ZendPortal rc=$1 user=svnread pass=3303 svncmd="svn --username ${user} --password ${pass}" if [ "$rc" == "" ] ; then echo "$0 <rc Number> (Example: 01)" exit fi if ! [ -h ./${link} ] ...
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 cur=`dirname $0`; test $# -eq 1 || { echo "usage: $0 <gwt directory>" exit 1 } test -d $1 -a -f $1/gwt-dev.jar || { echo "$1 doesn't look like a valid GWT installation" exit 1 } gwt_home=$1 shell_cp=${cur}/src:${cur}/bin:${gwt_home}/gwt-user.jar:${gwt_home}/gwt-dev.jar:theme/minig-theme.jar...
Shell
#!/bin/bash build_version=`svnversion` ant clean dist cd dist jar cvf ../minig-frontend-0.${build_version}.war *
Shell
#!/bin/bash source `whoami`.build.properties rm -fr soyc java -cp ${gwt}/gwt-soyc-vis.jar:${gwt}/gwt-dev-linux.jar com.google.gwt.soyc.SoycDashboard -resources ${gwt}/gwt-soyc-vis.jar -out soyc extra/minig/soycReport/stories0.xml.gz
Shell
rm -fr org mkdir -p org/minig/theme/minig cp -r minig/* org/minig/theme/minig find org -name ".svn" -type d |xargs rm -fr jar cf minig-theme.jar org && rm -fr org
Shell
#!/bin/sh APPDIR=`dirname $0`; java -cp "$APPDIR/src:$APPDIR/bin:${HOME}/java/gwt/gwt-user.jar:${HOME}/java/gwt/gwt-dev.jar" com.google.gwt.i18n.tools.I18NSync -out $APPDIR/src fr.aliasource.webmail.client.lang.Strings -createMessages ;
Shell
#!/bin/bash test $# -eq 3 || { echo "usage: $0 login domain password" exit 1 } function post_data() { http_r=`echo "$1" | \ lynx -post_data -dump http://localhost:8081/$2` } post_data "login=$1&domain=$2&password=$3" firstIndexing.do token=`echo ${http_r} | sed -e 's/.*value="\([^"]*\).*/\1/'` echo -e...
Shell
#!/bin/bash test $# -eq 1 || { echo "usage: $0 <server common name>" exit 1 } cat >> $1_ssl.cnf <<EOF [ req ] default_bits = 2048 encrypt_key = yes distinguished_name = req_dn x509_extensions = cert_type prompt = no [ req_dn ] O=zz.com OU=backend CN=$1 [ cert_type ] nsCertType = server EOF openssl req -ne...
Shell
#!/bin/bash test $# -eq 1 || { echo "usage: $0 <server common name>" exit 1 } cat >> $1_ssl.cnf <<EOF [ req ] default_bits = 2048 encrypt_key = yes distinguished_name = req_dn x509_extensions = cert_type prompt = no [ req_dn ] O=minig.org OU=backend CN=$1 [ cert_type ] nsCertType = server EOF openssl req ...
Shell
#!/bin/bash rm -fr built_archive_test && mkdir built_archive_test pushd built_archive_test >/dev/null 2>&1 tar xfj ../minig-backend-svn-linux.tar.bz2 >/dev/null 2>&1 time ./minig-backend/webmail-backend popd >/dev/null 2>&1 rm -fr built_archive_test
Shell
#!/bin/bash # OBM Webmail Proxy App launcher appid=fr.aliasource.webmail.proxy.proxyapp curdir=`dirname $0` echo -n "equinox shell lib loading..." source ${curdir}/equinox.lib echo "[OK]" aliasource_equinox_profile_server_appid ${curdir} ${appid}
Shell
#!/bin/bash # OBM Webmail Proxy App launcher appid=fr.aliasource.webmail.proxy.proxyapp curdir=`dirname $0` echo -n "equinox shell lib loading..." source ${curdir}/equinox.lib echo "[OK]" aliasource_equinox_run_server_appid ${curdir} ${appid}
Shell
#!/bin/bash test $# -eq 1 || { echo "usage: $0 token" exit 1 } token=$1 function post_data() { http_r=`echo "$1" | \ lynx -post_data -dump http://localhost:8081/$2` } post_data "token=${token}" logout.do
Shell
#!/bin/bash test $# -eq 3 || { echo "usage: $0 db user host" exit 1 } psql=$(which psql) test "$psql" != "" || { echo "psql: not found, please install postgresql-client package" exit 1 } db=$1 user=$2 host=$3 $psql -U ${user} ${db} -h ${host} -f \ create_minig.sql > /tmp/minig.log 2>&1 grep -i error...
Shell
#!/bin/bash rm -fr built_archive_test && mkdir built_archive_test pushd built_archive_test >/dev/null 2>&1 tar xfj ../minig-backend-svn-linux.tar.bz2 >/dev/null 2>&1 time ./minig-backend/webmail-backend-profile popd >/dev/null 2>&1 rm -fr built_archive_test
Shell
#!/bin/bash test $# -eq 2 || { echo "usage: $0 login@domain password" exit 1 } function post_data() { http_r=`echo "$1" | \ lynx -post_data -dump http://localhost:8081/$2` } post_data "login=$1&password=$2" regenerateSieve.do echo ${http_r}
Shell
#!/bin/bash # Author: Thomas Cataldo <tcataldo@minig.org> # # Uses an headless eclipse to build ${product_name} # # # user build settings should be put in # `whoami`.product_build.properties set -e set -x pbuild_dir=`dirname $0` pushd $pbuild_dir >/dev/null 2>&1 ## USER VARS: The only user settable variables in this ...
Shell
#!/bin/bash # ### BEGIN INIT INFO # Provides: minig-backend # Required-Start: $syslog $network # Required-Stop: $syslog $network # Default-Start: 2 3 4 5 # Default-Stop: S 0 1 6 # Short-Description: MiniG Backend. # Description: init system for minig-backend. Starts the equinox server # process with minig ...
Shell
#!/bin/bash # This script does a complete reset of minig backend and solr indexes /etc/init.d/minig-backend stop /etc/init.d/obm-tomcat stop rm -fr /var/lib/minig-backend/org.* rm -fr /var/cache/minig/webmail_cache/* rm -fr /var/solr/webmail/data/index /etc/init.d/obm-tomcat start /etc/init.d/minig-backend start
Shell
#!/bin/bash files=`find . -name '*.java'` add_header_to_file() { file_to_process=$1 first_line=`head -n1 ${file_to_process} > ./test_fl.tmp` grep -q "^package" ./test_fl.tmp should_add=$? test 0 -eq $should_add && { echo "headers should be added to $1" cat header.txt > ./f_with_headers.tmp cat...
Shell
#!/bin/bash # Copyright 2012, Google Inc. # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # * Redistributions of source code must retain the above copyright # notice, this list of condition...
Shell
# This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx512M -cp "./OsmAndMapCreator.jar...
Shell
#!/bin/sh # This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx512M -cp "./OsmAndM...
Shell
#!/bin/sh # This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx512M -cp "./OsmAndMapCrea...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) ## VARIABLES ### LOG_DIR="$DIRECTORY"/logs DATE=$(date +%d-%m-%y) LOG_FILE="$LOG_DIR/${DATE}.log" mkdir $LOG_DIR # check build already run today if [ -e "$LOG_FILE" ]; then echo "Build already ran today" exit fi touch $LOG_FILE # 1. Update git directory "${DIRE...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) FTP_SITE=download.osmand.net FTP_FOLDER=night-builds # FTP_USER in local.properties # FTP_PWD= in local.properties BUILD_DIR="$DIRECTORY"/builds . "$DIRECTORY"/local.properties # 3. upload to ftp server lftp -c "set net:timeout 45;open -u $FTP_USER,$FTP_PWD $FTP_SITE;ls $...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) GIT_DIR="$DIRECTORY"/osmand-git GIT_URL=git://github.com/osmandapp/Osmand.git GIT_ORIGIN_NAME=origin HG_DIR="$DIRECTORY"/osmand-hg HG_URL=https://osmand.googlecode.com/hg BUILD_DIR="$DIRECTORY"/builds if [ ! -d "$HG_DIR" ]; then hg clone ${GIT_URL} "${HG_DIR}" fi cd "...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) GIT_DIR="$DIRECTORY"/osmand-git GIT_ORIGIN_NAME=origin BUILD_DIR="$DIRECTORY"/builds VERSION_FILE=./DataExtractionOSM/src/net/osmand/Version.java DATE=$(date +%d-%m-%y) # clean all files in build directory rm -r "$BUILD_DIR" mkdir "$BUILD_DIR" cd "${GIT_DIR}" git branc...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) GIT_DIR="$DIRECTORY"/osmand-git GIT_URL=git://github.com/osmandapp/Osmand.git GIT_ORIGIN_NAME=origin # initialize git if it is not present (clone it) if [ ! -d "$GIT_DIR" ]; then git clone ${GIT_URL} "${GIT_DIR}" fi # update git cd "${GIT_DIR}" git reset --hard git ch...
Shell
#!/bin/sh echo 在 Linux 下面侦听端口必须要有 root 权限。 echo 因此,这个脚本会向您询问 su 权限。 sudo python src/dnsproxy.py
Shell
#!/bin/sh find ./ -iname "*.pyc" -exec rm -rf {} \;
Shell
#!/bin/bash cat \ content/core.css \ content/button.css \ content/calendar.css \ content/datetimepicker.css \ content/dialog.css \ content/dropdown.css \ content/grid.css \ content/itemslist.css \ content/pager.css \ content/tabs.css \ content/validation.css \ content/wa...
Shell
#!/bin/bash cat \ content/core.css \ content/button.css \ content/calendar.css \ content/datetimepicker.css \ content/dialog.css \ content/dropdown.css \ content/grid.css \ content/itemslist.css \ content/pager.css \ content/tabs.css \ content/validation.css \ content/wa...
Shell
#!/bin/bash if [ ! -e eigen-android ]; then hg clone https://bitbucket.org/eigen/eigen eigen-android else cd eigen-android && hg pull && hg update fi
Shell
#!/bin/sh if [ $# -ne 1 ] then echo "Error in $0 - Invalid Argument Count" echo "Syntax: $0 boost_1_45_0" exit fi patch $1/libs/filesystem/v2/src/v2_operations.cpp < android.patch
Shell
#!/bin/sh if [ $# -ne 1 ] then echo "Error in $0 - Invalid Argument Count" echo "Syntax: $0 boost_1_45_0" exit fi patch $1/libs/filesystem/v2/src/v2_operations.cpp < filesystem.patch patch $1/boost/detail/endian.hpp < endian.patch
Shell
#!/bin/sh current_dir=`pwd` mkdir -p download cd download if [ ! -e boost_1_45_0.tar.gz ] then echo "wget'ing boost'" #this url is for convenience, consider it a mirror and you may replace it #with any existing boost_1_45_0.tar.gz url boost_download=http://vault.willowgarage.com/wgdata1/vol1/android_bo...
Shell
if [ -z "$1" ] then echo "Usage: `basename $0` <path> the path will be used to download and untar the android-ndk into." exit $E_NOARGS fi export destination=$1 if [ ! -e $destination ]; then echo "$destination does not exist!" exit 1 fi ball=android-ndk-r5b-linux-x86.tar.bz2 hash=4c0045ddc2bfd657be9d5177d0e0...
Shell
if [ -z "$1" ] then echo "Usage: `basename $0` <path> the path will be used to download and untar the android-ndk to." exit $E_NOARGS fi export destination=$1 if [ ! -e $destination ]; then echo "$destination does not exist!" exit 1 fi ball=android-ndk-r5b-linux-x86.tar.bz2 hash=4c0045ddc2bfd657be9d5177d0e0b7...
Shell
#!/bin/bash LD_LIBRARY_PATH=./lib/pc export LD_LIBRARY_PATH java -jar java/dist/lib/HelloBoost.jar
Shell
#!/bin/bash #javac HelloWorld.java cd java && ant
Shell
javah -jni -classpath build com.theveganrobot.cmake.HelloBoost
Shell
#!/bin/bash LD_LIBRARY_PATH=./lib/pc export LD_LIBRARY_PATH java -jar java/dist/lib/HelloCMake.jar
Shell
#!/bin/bash #javac HelloWorld.java cd java && ant
Shell
javah -jni -classpath build com.theveganrobot.cmake.HelloWorld
Shell
#!/bin/sh #this generates an ant based cli build of the android-jni project android update project --name hello-eigen \ --path .
Shell
#!/bin/bash LD_LIBRARY_PATH=./lib/pc export LD_LIBRARY_PATH java -jar java/dist/lib/HelloEigen.jar
Shell
#!/bin/bash #javac HelloWorld.java cd java && ant
Shell
javah -jni -classpath build com.theveganrobot.cmake.HelloEigen
Shell
#this generates an ant based cli build of the android-jni project android update project --name HelloGL2 \ --path .
Shell
#!/bin/sh #this generates an ant based cli build of the android-jni project android update project --name hello-android-cmake \ --path .
Shell
ab -n 500000 -c 100 -i -k http://localhost:20000/
Shell
#!/bin/bash rm *.pyc
Shell
#!/bin/bash rm *.pyc
Shell
#!/bin/bash # # Copyright 2010 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
zpar=./zpar/dist/english.postagger rm model for i in `seq 1 10`; do $zpar/train train.txt model 1 $zpar/tagger input.txt output.txt model python evaluate.py output.txt reference.txt cp model model.$i gzip model.$i done
Shell
zpar=./zpar/dist/chinese.postagger rm model for i in `seq 1 10`; do $zpar/train train.txt model 1 $zpar/tagger input.txt output.txt model python evaluate.py output.txt reference.txt cp model model.$i gzip model.$i done
Shell
while read line; do echo "$line" | emacs -Q --batch --eval "(progn (insert \"$(cat)\") (goto-char 1) (replace-string \" (\" \"\n(\") (indent-region (point-min) (point-max) nil) (message (buffer-substring (point-min) (point-max))))" 2>&1 | grep -v '^[A-Z]' done <$1
Shell
zpar=./zpar/dist/chinese.depparser rm model for i in `seq 1 30`; do $zpar/train train.txt model 1 $zpar/depparser input.txt output.txt model python evaluate.py output.txt reference.txt cp model model.$i gzip model.$i done
Shell
segmentor=zpar/dist/segmentor rm model for i in `seq 1 30`; do $segmentor/train train.txt model 1 $segmentor/segmentor model input.txt output.txt python evaluate.py output.txt reference.txt cp model model.$i done
Shell
training_file=train.input rm test_db zpar=../zpar candc=../app/candc for i in `seq 1 10`; do $zpar/dist/generic.conparser/train train.txt test_db 1 -c$training_file -brules.binary -urules.unary $zpar/dist/generic.conparser/conparser input.txt output.txt test_db -ic -b # evalb python $zpar/scripts/lang/chine...
Shell
parser=zpar/dist/english.conparser rm model for i in `seq 1 30`; do $parser/train train.txt model 1 $parser/conparser model input.txt output.txt ./evalb -p COLLISN.prm output.txt reference.txt cp model model.$i done
Shell
zpar=./zpar/dist/english.depparser rm model for i in `seq 1 30`; do $zpar/train train.txt model 1 $zpar/depparser input.txt output.txt model python evaluate.py output.txt reference.txt cp model model.$i gzip model.$i done
Shell
echo off echo "Welcome using sydney-scent project ..." wget="wget" uname | grep 'Darwin' if [[ $? -eq 0 ]] ; then wget="curl -O" echo 'Darwin' fi echo "Checking Django Version ..." python djv.py if [ $? -gt 0 ]; then echo "Fail: Django 1.3+ required ..."; exit 1; fi echo "Clean folders ..." rm -rf pybb rm -r...
Shell
#! /bin/bash function zot () { if (( $# != 1 )) then printf "usage: zot <filename>\n" else sbcl --noinform --load $1 --eval "(quit)" fi }
Shell
#! /bin/bash # ls -c "$( ./listprogs | dmenu )" paths=$(echo "$@" | sed 'y/:/ /') sbcl --noinform --load "$( ls $paths/*.lisp \ | sort | uniq | dmenu -p "Zot file>" )" --eval "(quit)"
Shell
#! /bin/bash function zot () { if (( $# != 1 )) then printf "usage: zot <filename>\n" else sbcl --noinform --load $1 --eval "(quit)" fi }
Shell
#! /bin/bash # ls -c "$( ./listprogs | dmenu )" paths=$(echo "$@" | sed 'y/:/ /') sbcl --noinform --load "$( ls $paths/*.lisp \ | sort | uniq | dmenu -p "Zot file>" )" --eval "(quit)"
Shell
#! /bin/bash #ccl --load $1 --eval "(quit)" sbcl --script $1
Shell
more out-*.txt | grep -E "(^\\$)|unhandled|real|SAT---|::|out|Pre-CNF|variable:|clauses:|Memory|Solved by unit propagation|Time bound" > ../result-fischer.txt
Shell
more out-*.txt | grep -E "(^\\$)|unhandled|real|SAT---|::|out|Pre-CNF|variable:|clauses:|Memory|Solved by unit propagation|Time bound" > ../result-shift-async.txt
Shell
more out-* | grep -E "(^\\$)|unhandled|real|SAT---|::|out|Pre-CNF|variable:|clauses:|Memory|Solved by unit propagation|Time bound" > ../result-krca.txt
Shell
#! /bin/bash #ccl --load $1 --eval "(quit)" sbcl --script $1
Shell
#! /bin/bash cd shift-sync ./doit ./res.sh cd ../shift-async ./doit ./res.sh cd ../alloc ./doit ./res.sh cd ../krca ./doit ./res.sh cd ../fischer ./doit ./res.sh cd ../lamp ./doit ./res.sh cd .. ./res ./clean-only-output
Shell
more out-* | grep -E "(^\\$)|real|unhandled|SAT---|::|out|Pre-CNF|variable:|clauses:|Memory|Solved by unit propagation|Time bound" > ../result-lamp.txt
Shell
more out-*.txt | grep -E "(^\\$)|unhandled|real|SAT---|::|out|Pre-CNF|variable:|clauses:|Memory|Solved by unit propagation|Time bound" > ../result-alloc.txt
Shell
#! /bin/bash cd shift-sync ./doit ./res.sh cd ../shift-async ./doit ./res.sh cd ../alloc ./doit ./res.sh cd ../krca ./doit ./res.sh cd ../fischer ./doit ./res.sh cd ../lamp ./doit ./res.sh cd .. ./res ./clean-only-output
Shell