code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
xsltproc --stringparam source $PWD/typesystem_core-qtscript.xml merge.xsl typesystem_core-common.xml > typesystem_core.xml
xsltproc --stringparam source $PWD/typesystem_gui-qtscript.xml merge.xsl typesystem_gui-common.xml > typesystem_gui.xml
xsltproc --stringparam source $PWD/typesystem_svg-qtscript.xml merge.xsl ty... | 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 |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/bash
if [ ! -d bin_Win32/lib ]
then
mkdir -p bin_Win32/lib
fi
if [ ! -d bin_Win32d/lib ]
then
mkdir -p bin_Win32d/lib
fi
cd ffmpeg
make distclean
OPTIONS="
--enable-shared \
--enable-gpl \
--enable-w32threads \
--enable-runtime-cpudetect \
--enable-asm \
--enable-zlib \
--enable-swscale \
--enable-avfilter... | Shell |
#!/bin/bash
if [ ! -d bin_x64/lib ]
then
mkdir -p bin_x64/lib
fi
if [ ! -d bin_x64d/lib ]
then
mkdir -p bin_x64d/lib
fi
cd ffmpeg
make distclean
OPTIONS="
--enable-shared \
--enable-gpl \
--enable-w32threads \
--enable-runtime-cpudetect \
--enable-asm \
--enable-zlib \
--enable-swscale \
--enable-avfilter \
--ena... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
RED="0.5 0.5 0.5 0 0 0 0 0 0"
GREEN="0 0 0 0.5 0.5 0.5 0 0 0"
for x in btn_zoom_down_disabled.9 btn_zoom_down_disabled_focused.9 btn_zoom_down_normal.9 btn_zoom_up_disabled.9 btn_zoom_up_disabled_focused.9 btn_zoom_up_normal.9 btn_zoom_width_normal ; do
conv... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
for x in upfolder folder home recent1 recent2 recent3 recent4 recent5 ; do
convert res/drawable-hdpi/$x.png -resize 66.7% res/drawable-mdpi/$x.png
convert res/drawable-hdpi/$x.png -resize 50% res/drawable-ldpi/$x.png
done
| Shell |
#!/bin/sh
# make sure ndk-build is in path
SCRIPTDIR=`dirname $0`
MUPDF_FILE=mupdf-1.1-source.tar.gz
MUPDF=mupdf-1.1-source
FREETYPE=freetype-2.4.10
OPENJPEG=openjpeg-1.5.1
JBIG2DEC=jbig2dec-0.11
JPEGSRC=jpegsrc.v8d.tar.gz
JPEGDIR=jpeg-8d
cd $SCRIPTDIR/../deps
tar xvf $FREETYPE.tar.bz2
tar xvf $JPEGSRC
tar xvf $MUPDF... | Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/sh
kill `pgrep -f "python /home/wyatt/wlife/mywww/index.py"`
| Shell |
#!/bin/sh
spawn-fcgi -d /home/wyatt/wlife/mywww -f /home/wyatt/wlife/mywww/index.py -a 127.0.0.1 -p 9002
| Shell |
#!/bin/sh
spawn-fcgi -d /home/wyatt/wlife/mywww -f /home/wyatt/wlife/mywww/index.py -a 127.0.0.1 -p 9002
| Shell |
#!/bin/sh
kill `pgrep -f "python /home/wyatt/wlife/mywww/index.py"`
| Shell |
#!/bin/sh
#
# Christian Reis <kiko@async.com.br>
#
# Moves
#
# Example:
#
# blackjesus:~> ./move-faqwiz.sh 2\.1 3\.2
# Moving FAQ question 02.001 to 03.002
if [ x$2 = x ]; then
echo "Need 2 args: original_version final_version."
exit 2
fi
if [ ! -d data -o ! -d data/RCS ]; then
echo "Run this inside... | Shell |
#!/bin/sh
#
# Christian Reis <kiko@async.com.br>
#
# Moves
#
# Example:
#
# blackjesus:~> ./move-faqwiz.sh 2\.1 3\.2
# Moving FAQ question 02.001 to 03.002
if [ x$2 = x ]; then
echo "Need 2 args: original_version final_version."
exit 2
fi
if [ ! -d data -o ! -d data/RCS ]; then
echo "Run this inside... | Shell |
#! /bin/sh
# If you can't get this to work, your web server isn't set up right
echo Content-type: text/plain
echo
echo Hello world
echo This is cgi0.sh
| Shell |
#! /bin/sh
# If you can't get this to work, your web server isn't set up right
echo Content-type: text/plain
echo
echo Hello world
echo This is cgi0.sh
| 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:./l... | 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
# 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
touch $LOG_FILE
# 1. Update git directory
"${DIRECTORY}/update_git.sh" 2>&1 >>$LOG_FILE
# 2. Go through branches and generates builds
"${DIRECTORY}/build_b... | Shell |
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
FTP_SITE=download.osmand.net
FTP_FOLDER=night-builds
FTP_LATEST=latest-night-build
# FTP_USER in local.properties
# FTP_PWD= in local.properties
BUILD_DIR="$DIRECTORY"/builds
LATEST_DIR="$DIRECTORY"/latests
. "$DIRECTORY"/local.properties
# 3. upload to ftp server
lftp -c... | 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
LATESTS_DIR="$DIRECTORY"/latests
VERSION_FILE=./DataExtractionOSM/src/net/osmand/Version.java
DATE=$(date +%d-%m-%y)
SHORT_DATE=$(date +%d-%m)
# clean all files in build directory
rm -r ... | 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
#rm -rf "${GIT_DIR}"
# 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}"
gi... | 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=2006-12-25.00
# 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 ... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2006-05-10.23
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redi... | 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
# Free Software Foundation, Inc.
timestamp='2008-01-16'
# This file is (in principle) common to ALL GNU software.
# The presence of a ma... | 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
# Free Software Foundation, Inc.
timestamp='2008-01-23'
# This file is free software; you can redistribute it and/or modify it
# under the... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2006-12-25.00
# 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 ... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2006-05-10.23
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redi... | 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/rc
wm=''
if(~ $1 -d) {
wm = '&wm/wm wm/logon</dev/null'
shift
}
inferno '{$home/wmii/test/event.dis $*'$wm'}' $* &
inf = $apid
. 9.rc
fn sigint sigterm {exit}
fn sigexit {/bin/kill $apid}
while(! ~ `{read </dev/tty} q)
true
| Shell |
#!@BINSH@ -f
# Configure wmii
wmiiscript=wmiirc # For wmii.sh
. wmii.sh
# Configuration Variables
MODKEY=Mod4
UP=k
DOWN=j
LEFT=h
RIGHT=l
# Bars
noticetimeout=5
noticebar=/rbar/!notice
# Colors tuples: "<text> <background> <border>"
export WMII_NORMCOLORS='#000000 #c1c48b #81654f'
export WMII_FOCUSCOLORS='#000000 #8... | Shell |
#!sh
# WMII Configuration
load std string regex expr echo
argv0 = $0
#mount -Aa {os dial unix!/tmp/ns.kris.:1/wmii >[1=0]} / || raise mount
#mount -Aa {styxmon {os rc -c 'dial $WMII_ADDRESS' >[1=0]}} / || raise mount
mount -Aa {os rc -c 'dial $WMII_ADDRESS' >[1=0]} / || raise mount
{`{read} && echo halt>/dev/sysctl}... | Shell |
#!/bin/sh
# display a welcome message that contains the wmii tutorial
xmessage -file - <<'EOF'
Welcome to wmii, the non-wimp environment of the Suckless Project.
This is a small step by step tutorial, intended to make you a
little bit familiar with wmii. For a more detailed walkthrough,
see @DOCDIR@/wmii.pdf.
From h... | Shell |
#!/bin/sh
# This script will launch wimenu and provide command
# completion for the first argument and filename completion
# for each following argument, and execute the result.
# Program name completion requires that a program list already
# exist in $(wmiir namespace)/.proglist
fifo="$HOME/.wmii/menu_fifo"
mkfifo $f... | Shell |
#!/bin/sh -f
echo "$@" |
awk -F'/+' '{
delete a
n = 0
for(i = 1; i <= NF; i++) {
if($i == ".." && n > 0 && a[n] != "..")
n--
else if($i != "" && $i != ".")
a[++n] = $i
}
s = ""
for(i = 1; i <= n; i++)
s = s "/" a[i]
print substr(s, 2)
}'
| Shell |
#!/bin/sh
set -ef
ifs="$(echo)"
name=$1
vers=$2
dist=$3
desc="Upstream build"
auth="Kris Maglione <kris@suckless.org>"
date=$(date +'%a, %d %b %Y %T %z')
if hg root >/dev/null 2>&1; then
t() { hg log -r . --template "{$@}"; }
vers=$(t rev)
desc=$(t desc)
auth=$(t author)
date=$(t 'date|rfc822date')
fi
cat >debia... | Shell |
#!/bin/sh -f
CC=$1
PACKAGES=$2
CFLAGS=$3; shift 3
[ -n "$PACKAGES" ] && CFLAGS="$CFLAGS $(pkg-config --cflags $PACKAGES)"
outfile="$1"; shift
bin="$(echo $0 | sed 's,/[^/]*$,,')"
xtmp=/tmp/cc.$$.$USER.out
# Derived from Russ Cox's 9c in plan9port.
echo CC $($bin/cleanname ${BASE}$outfile)
[ -n "$noisycc" ] && echo... | Shell |
#!/bin/sh -f
LD=$1
PACKAGES=$2
LDFLAGS=$3; shift 3
[ -n "$PACKAGES" ] && LDFLAGS="$LDFLAGS $(pkg-config --libs $PACKAGES)"
outfile="$1"; shift
bin="$(echo $0 | sed 's,/[^/]*$,,')"
# Derived from Russ Cox's 9l in plan9port.
ofiles=""
args=""
for i
do
case "$i" in
*.[ao]|*.o_pic)
ofiles="$ofiles $i"
;;
*)
ar... | Shell |
#!/bin/sh -f
unset WMII_HACK_TRANSIENT WMII_HACK_TYPE WMII_HACK_TAGS
usage() {
echo 1>&2 Usage: \
"$0 [-transient <window>] [-type <window_type>[,...]] [-tags <tags>] <command> [<arg> ...]"
exit 1
}
checkarg='[ ${#@} -gt 0 ] || usage'
export WMII_HACK_TIME=$(date +%s)
while [ ${#@} -gt 0 ]
do
case $1 in
-transi... | Shell |
[ -z "$scriptname" ] && scriptname="$wmiiscript"
echo Start $wmiiscript | wmiir write /event 2>/dev/null ||
exit 1
wi_newline='
'
_wi_script() {
# Awk script to mangle key/event/action definition spec
# into switch-case functions and lists of the cases. Also
# generates a simple key binding help text based on Ke... | Shell |
#!/bin/sh -f
test $#* '=' 0 || {
p="$PATH"
which rc >/dev/null || PATH="$PLAN9:$p"
which rc >/dev/null || PATH="/usr/local/plan9/bin:$p"
which rc >/dev/null || PATH="/usr/local/9/bin:$p"
which rc >/dev/null || PATH="/opt/plan9/bin:$p"
which rc >/dev/null || PATH="/opt/9/bin:$p"
which rc >/dev/null || PATH="/usr/... | Shell |
pkgname=(wmii-hg python-pyxp-hg python-pygmi-hg)
pkgver=2755
pkgrel=1
pkgdesc="The latest hg pull of wmii, a lightweight, dynamic window manager for X11"
url="http://wmii.suckless.org"
license=(MIT)
arch=(i686 x86_64)
makedepends=(mercurial python "libixp-hg>="$(sed -rn <mk/wmii.mk 's/.*IXP_NEEDAPI=([0-9]+).*/\1/p'))
... | Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
grep -e "r -t " wired-cum-wireless-sim-hwmp.tr > temp1.tr
grep -e "tcp -Il 1040" temp1.tr >temp2.tr
grep -e "tcp -Il 1040" temp1.tr >temp2.tr
grep -e "-Nl AGT " temp2.tr > datarecv.tr
rm -f temp1.tr
rm -f temp2.tr | Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
rm -rf *.nam *.tr
| Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
grep -e "r -t " wired-cum-wireless-sim-hwmp.tr > temp1.tr
grep -e "tcp -Il 1040" temp1.tr >temp2.tr
grep -e "tcp -Il 1040" temp1.tr >temp2.tr
grep -e "-Nl AGT " temp2.tr > datarecv.tr
rm -f temp1.tr
rm -f temp2.tr | Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
rm -rf *.tr *.nam *.log *.thr *.per *.ftt
| Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
rm -rf *.tr *.thr *.per *.ftt
| Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
grep -e "r -t " wired-cum-wireless-sim-hwmp.tr > temp1.tr
grep -e "tcp -Il 1040" temp1.tr >temp2.tr
grep -e "tcp -Il 1040" temp1.tr >temp2.tr
grep -e "-Nl AGT " temp2.tr > datarecv.tr
rm -f temp1.tr
rm -f temp2.tr | Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
rm -rf *.tr *.thr *.per *.ftt
| Shell |
grep -e "r -t " smart_antenna_sample.tr > temp1.tr
grep -e "tcp -Il 960" temp1.tr > temp2.tr
grep -e "-Nl AGT " temp2.tr > smart_antenna_sample.received
rm -rf temp1.tr temp2.tr
| Shell |
grep -e "s -t " smart_antenna_sample.tr > temp1.tr
grep -e "tcp -Il 960" temp1.tr > temp2.tr
grep -e "-N0 AGT " temp2.tr > smart_antenna_sample.sent
rm -rf temp1.tr temp2.tr
| Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
#!/bin/sh
aclocal -I m4 --force && libtoolize --force && automake --foreign --add-missing && autoconf
| Shell |
grep -e "r -t " wired-cum-wireless-sim-hwmp.tr > temp1.tr
grep -e "tcp -Il 1040" temp1.tr >temp2.tr
grep -e "tcp -Il 1040" temp1.tr >temp2.tr
grep -e "-Nl AGT " temp2.tr > datarecv.tr
rm -f temp1.tr
rm -f temp2.tr | Shell |
#!/bin/bash
# $0 <reqs> <concur>
LOOP=5000
LOGDIR=$HOME/tmp/sysmon_log
[ -d $LOGDIR ] || mkdir -p $LOGDIR
datetime=`date +%Y%m%d-%H%M%S`
LOGFILE=$LOGDIR/sysmon_${datetime}_n$1c$2.log
PREV_TOTAL=0
PREV_IDLE=0
echo "#time,cpu usage(%),mem free(m)" >> $LOGFILE
for i in $(seq $LOOP)
do
CPU=(`cat /proc/stat | grep '^cp... | Shell |
#!/bin/bash
VENV_HOME=/opt/wpp
WPP_HOME=$VENV_HOME/src/wpp
LOGDIR=$WPP_HOME/log
. $VENV_HOME/bin/activate
datetime=`date +%Y-%m%d`
timestamp=`date +%Y-%m%d-%H%M%S`
thisfilename=`basename $0 |awk -F. '{print $1}'`
task_banner="\n========= TASK:$thisfilename WAKEUP@$timestamp ========"
[ -d $LOGDIR ] || mkdir -p $LOG... | Shell |
#!/bin/bash
VENV_HOME=/opt/wpp
WPP_HOME=$VENV_HOME/src/wpp
LOGDIR=$WPP_HOME/log/area
. $VENV_HOME/bin/activate
datetime=`date +%Y-%m%d`
timestamp=`date +%Y-%m%d-%H%M%S`
thisfilename=`basename $0 |awk -F. '{print $1}'`
task_banner="\n========= TASK:$thisfilename WAKEUP@$timestamp ========"
[ -d $LOGDIR ] || mkdir -p... | Shell |
#!/bin/bash
# $0 <total reqs> <concurrent reqs> <target id>
Usage()
{
thisfile=`basename $0`
cat <<HELP
$thisfile -- Apache Benchmark wrapper for FPP/WPP performance testing.
USAGE: $thisfile <total reqs> <concurrent reqs> <target server id>
<target server id>:
1 - WPP Python
2 - FPP neusoft
3 - WPP Vance
4 - FPP... | Shell |
#!/bin/bash
# MUST be executed at the wpp ROOT dir.
# e.g. $cd /path/to/wpp; ./wpp/util/src_lines
sum_py=0
pyfiles=`find . -name '*.py'`
echo '----------python------------'
for pyfile in $pyfiles
do
l=`wc -l $pyfile| awk '{print $1}'`
printf "%-40s%5d\n" $pyfile $l
sum_py=$(($sum_py+$l))
done
sum_bash=0... | Shell |
#!/bin/bash
# Convert old rmp csv format to fpp-compatible 14 or 16-field format.
# rmp format: spid 0,lat 1,lon 2,macs 3,rsss 4
# $0 <rmp csv with old format>
# # FIELD 14col,16col
# IMEI 0, 3
# IMSI 1, 4
# UA 2, 5
# MCC 3, 6
# MNC 4, 7
# LAC 5, 8
# CI ... | Shell |
#!/bin/bash
logs=$*
if [ "$logs" == "" ]; then
logdir=~/tmp/log
logfiles=wpp.log*
logs=$logdir/$logfiles
fi
hits_tot=`grep 'PosReq' $logs |wc -l`
hits_fail=`grep 'ErrCode="102"' $logs |wc -l`
rate_ok=`echo "scale=4;($hits_tot-$hits_fail)/$hits_tot*100" |bc`
echo "positioning success rate: ${rate_ok}%, tota... | Shell |
#!/bin/bash
# 1)filtering out NaN cols.
# 2)del cols /wo lat/lon, assign h to 0 when it's null when lat/lon are available.
# 3)del cols /wo wlan macs or rsss.
#awk -F'\",\"' '
awk -F, '
BEGIN {
OFS=","
}
{
if (NF == 16){
ilat=12; ilon=13; ih=14; imac=15; irss=16
}else if (NF == 14){
ilat=9... | Shell |
#!/bin/bash
sqlterm=psql
SHP2SQL=shp2pgsql # shape file to sql converter
opt_srs="-s 4326" # spatial reference system, default: EPSG 4326(i.e. WGS84)
SCHEMA=gis_schema # gis schema for gistemplate in postgis
dbhost=localhost
dbname=gisdb
dbuser=gis
pathout=log/out
patherr=log/err
#flow control args
fc_shp2sql=0
f... | Shell |
#!/bin/bash
#usage: basename [OPTION], use '-h/--help' for more info.
VER=0.1
# Default init
aio=0
start_spid=1
stop_spid=1
runtimes=60
fakegps=0
makepyc=0
nstop=0
stabtest=0
stabtest_times=50
log_analysis=0
pathout=log/out
patherr=log/err
online="python online.py"
offline="python offline.py"
Version ()
{
cat <... | Shell |
#!/bin/bash
# split input data to be two parts: more & less.
loop=$1
datin=$2
picktool=/home/alexy/wlan-pos/tool/datpick_req-db
datmore=incr.csv
datless=db.csv
#datmore=db.csv
#datless=incr.csv
req=req.csv
datall=$datin.tmp
rm -f $datmore $datless
cp -f $datin $datall
for i in $(seq $loop)
do
$picktool $datall
if... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.