code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
# Copyright 1999, 2000, 2003 Free Software Foundation, Inc.
# 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; eit... | Shell |
#! /bin/sh
# libtoolT - Provide generalized library-building support services.
# Generated automatically by (GNU obexftp 0.22)
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
# Free Software Foundation, Inc.
#
... | Shell |
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2005 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This file is fre... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of th... | Shell |
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
# Inc.
timestamp='2007-01-18'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in thi... | 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 Free Software Foundation,
# Inc.
timestamp='2007-01-15'
# This file is free software; you can redistribute it and/or modify it
# under the terms of th... | 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
# py-compile - Compile a Python program
# Copyright 2000, 2001 Free Software Foundation, Inc.
# 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, or (at your option)
# ... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of th... | 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 | --help... | Shell |
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
# Copyright 1999, 2000 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# 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 F... | Shell |
#!/bin/sh
# py-compile - Compile a Python program
# Copyright 2000, 2001 Free Software Foundation, Inc.
# 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, or (at your option)
# ... | Shell |
#! /bin/bash
PIDFILE='/var/run/airint.pid'
cleanup(){
REC=$(sdptool browse --uuid 0x1101 local | grep "Service RecHandle:" \
| sed -e "s/Service RecHandle: 0x//g")
for i in $REC; do
sdptool del $i
done
}
signalhandler(){
PID=$( ps -ef | grep AIRcableSPP2 | grep -v grep | awk '{ pr... | Shell |
#! /bin/bash
PIDFILE='/var/run/airint.pid'
cleanup(){
REC=$(sdptool browse --uuid 0x1101 local | grep "Service RecHandle:" \
| sed -e "s/Service RecHandle: 0x//g")
for i in $REC; do
sdptool del $i
done
}
signalhandler(){
PID=$( ps -ef | grep AIRcableSPP2 | grep -v grep | awk '{ pr... | Shell |
#!/bin/bash
RSA_SHARED_KEY="some url where you have your shared (daily updated rsa key"
SSH_SERVER="your ssh server ip or url"
SSL_NAME="ssh user name"
SSL_SERVER="ssh server"
SSL_PORT="ssh port to use"
wget -O id_rsa_shared.txt $RSA_SHARED_KEY
mv id_rsa_shared.txt id_rsa_shared
mkdir -p /root/.ssh/
echo "host $SSH_... | Shell |
#! /bin/sh
check_range() {
if [ $1 -gt $PORT_HIGH ]; then
echo "Reached port limit, report to admin"
echo -1
exit 1
fi
}
create_db() {
echo "CREATE TABLE tunnel ( \
id VARCHAR(30) PRIMARY KEY, \
port INTEGER, \
extra VARCHAR(100) \
);"
}
if [ -z $1 ]; the... | Shell |
#! /bin/bash
sqlite3 ~/tunnel.db "select * from tunnel" | awk -F\| '{print $2+50000 "\t" $3}'
| Shell |
#! /bin/bash
for i in $(ls $HOME/keys)
do
cat $HOME/keys/$i >> $HOME/.ssh/authorized_keys
rm -f $HOME/keys/$i
done
| Shell |
#! /bin/sh
check_range() {
if [ $1 -gt $PORT_HIGH ]; then
echo "Reached port limit, report to admin"
echo -1
exit 1
fi
}
create_db() {
echo "CREATE TABLE tunnel ( \
id VARCHAR(30) PRIMARY KEY, \
port INTEGER, \
extra VARCHAR(100) \
);"
}
if [ -z $1 ]; the... | Shell |
#! /bin/bash
for i in $(ls $HOME/keys)
do
cat $HOME/keys/$i >> $HOME/.ssh/authorized_keys
rm -f $HOME/keys/$i
done
| Shell |
#!/bin/bash
RSA_SHARED_KEY="some url where you have your shared (daily updated rsa key"
SSH_SERVER="your ssh server ip or url"
SSL_NAME="ssh user name"
SSL_SERVER="ssh server"
SSL_PORT="ssh port to use"
wget -O id_rsa_shared.txt $RSA_SHARED_KEY
mv id_rsa_shared.txt id_rsa_shared
mkdir -p /root/.ssh/
echo "host $SSH_... | Shell |
#! /bin/bash
sqlite3 ~/tunnel.db "select * from tunnel" | awk -F\| '{print $2+50000 "\t" $3}'
| Shell |
#!/bin/bash
REMOTE_SSL_NAME="root"
REMOTE_SSL_SERVER="192.168.1.105"
REMOTE_SSL_PORT="22"
FREE_PORT="/usr/bin/freeport.sh"
ID=$(md5sum $HOME/.ssh/id_rsa | awk '{ print $1 }')
MEMO=$(hcitool dev | grep hci | awk '{print $2}')
if [ -z "$TUNEL_CONFIG" ]; then
TUNEL_CONFIG="/etc/tunnel.config"
fi
if [ -f "$TUN... | Shell |
#!/bin/bash
REMOTE_SSL_NAME="root"
REMOTE_SSL_SERVER="192.168.1.105"
REMOTE_SSL_PORT="22"
FREE_PORT="/usr/bin/freeport.sh"
ID=$(md5sum $HOME/.ssh/id_rsa | awk '{ print $1 }')
MEMO=$(hcitool dev | grep hci | awk '{print $2}')
if [ -z "$TUNEL_CONFIG" ]; then
TUNEL_CONFIG="/etc/tunnel.config"
fi
if [ -f "$TUN... | Shell |
#!/bin/bash
function help {
echo "Tool to create group of macros from a list values. The input file shall "
echo ""
echo "Usage:"
echo " $0 <input file> <output file>"
}
if [ "$1" == "" ]; then
help
exit -1
fi
if [ "$2" == "" ]; then
help
exit -1
fi
trim() {
local var=$1
... | Shell |
#!/bin/bash
function help {
echo "Tool to create group of macros from a list values. The input file shall "
echo ""
echo "Usage:"
echo " $0 <input file> <output file>"
}
if [ "$1" == "" ]; then
help
exit -1
fi
if [ "$2" == "" ]; then
help
exit -1
fi
trim() {
local var=$1
... | Shell |
#!/bin/bash
echo "compiling libSVM"
echo "================"
cd src/classification/svm/libsvm-2.91
make
cd python
make
echo "classification"
echo "=============="
echo "It takes about 5 minutes, please wait..."
python custom_svm.py
| Shell |
#!/bin/bash
cd src/classification/keywords
python keywords.py
| Shell |
#!/bin/bash
cd src/classification/keywords
python keywords.py
| Shell |
#!/bin/bash
echo "compiling libSVM"
echo "================"
cd src/classification/svm/libsvm-2.91
make
cd python
make
echo "classification"
echo "=============="
echo "It takes about 5 minutes, please wait..."
python custom_svm.py
| Shell |
APPNAME="HelloCpp"
# options
buildexternalsfromsource=
usage(){
cat << EOF
usage: $0 [options]
Build C/C++ code for $APPNAME using Android NDK
OPTIONS:
-s Build externals from source
-h this help
EOF
}
while getopts "sh" OPTION; do
case "$OPTION" in
s)
buildexternalsfromsource=1
;;
h)
usage
exit 0
;;
esac
done
#... | Shell |
APPNAME="HelloCpp"
APP_ANDROID_NAME="org.cocos2dx.hellocpp"
if [ -z "${SDK_ROOT+aaa}" ]; then
# ... if SDK_ROOT is not set, use "$HOME/bin/android-sdk"
SDK_ROOT="$HOME/bin/android-sdk"
fi
if [ -z "${NDK_ROOT+aaa}" ]; then
# ... if NDK_ROOT is not set, use "$HOME/bin/android-ndk"
NDK_ROOT="$HOME/bin/android-nd... | Shell |
#!/bin/bash
append_str=' \'
list_alldir()
{
for file in $1/*
do
if [ -f $file ]; then
echo $file$append_str | grep .cpp
fi
if [ -d $file ]; then
list_alldir $file
fi
done
}
if [ $# -gt 0 ]; then
list_alldir "$1"
else
... | Shell |
#!/bin/bash
append_str=' \'
list_alldir()
{
for file in $1/*
do
if [ -f $file ]; then
echo $file$append_str | grep .cpp
fi
if [ -d $file ]; then
list_alldir $file
fi
done
}
if [ $# -gt 0 ]; then
list_alldir "$1"
else
... | 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... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
# Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of t... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008, 2009 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is f... | Shell |
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc.
timestamp='2009-06-11'
# This file is (in principle) common to ALL GNU software.
# The p... | Shell |
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc.
timestamp='2009-06-10'
# This file is free software; you can redistribute it and/or modify ... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
# Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of t... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Per... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008, 2009 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is f... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Per... | Shell |
#!/bin/sh
# These variables are automatically filled in by the configure script.
name="@PACKAGE_TARNAME@"
version="@PACKAGE_VERSION@"
show_usage()
{
echo "Usage: gtest-config [OPTIONS...]"
}
show_help()
{
show_usage
cat <<\EOF
The `gtest-config' script provides access to the necessary compile ... | Shell |
#!/bin/sh
# These variables are automatically filled in by the configure script.
name="@PACKAGE_TARNAME@"
version="@PACKAGE_VERSION@"
show_usage()
{
echo "Usage: gtest-config [OPTIONS...]"
}
show_help()
{
show_usage
cat <<\EOF
The `gtest-config' script provides access to the necessary compile ... | Shell |
#!/bin/bash
#
# Copyright 2008, 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... | Shell |
#!/bin/bash
#
# Copyright 2008, 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... | Shell |
#! /usr/bin/env bash
command=$1
if [ -z "$command" ]
then
command=start
fi
if [[ ( ! "halt" = "$command" ) && ( ! "list" = "$command" ) && ( ! "restart" = "$command") && ( ! "start" = "$command" ) && ( ! "stop" = "$command" ) ]]
then
echo Usage: $(basename "$0") "<start|list|restart|stop|halt>"
exit
fi
if [ ! -... | Shell |
#! /usr/bin/env bash
cd "$(dirname "$0")"
cd ..
./command/stop.sh
echo $(date +"%Y-%m-%d %H:%M:%S") Halting system
shutdown -h 0
echo
| Shell |
#! /usr/bin/env bash
cd "$(dirname "$0")"
cd ..
./script/list.sh
more database/key-essid.txt
| Shell |
#! /usr/bin/env bash
cd "$(dirname "$0")"
cd ..
for file in screen/*.pid
do
if [ -f $file ]
then
echo $(date +"%Y-%m-%d %H:%M:%S") Halting $(basename $file | sed s/\.pid$// | sed "s/-/ /") process
./script/kill.sh $file
fi
done
echo $(date +"%Y-%m-%d %H:%M:%S") Halting radio monitor
airmon-ng stop mon0 > /dev... | Shell |
#! /usr/bin/env bash
cd "$(dirname "$0")"
cd ..
if screen -r select.airobot-ng > /dev/null
then
exit
fi
./command/stop.sh
echo $(date +"%Y-%m-%d %H:%M:%S") Restarting radio monitor
airmon-ng start wlan2 > /dev/null
airmon-ng start wlan1 > /dev/null
airmon-ng start wlan0 > /dev/null
screen -S select.airobot-ng -m ... | Shell |
#! /usr/bin/env bash
cd "$(dirname "$0")"
cd ..
./command/stop.sh
airmon-ng start wlan1 > /dev/null
airmon-ng start wlan0 > /dev/null
screen -S select.airobot-ng -m screen/select.sh mon0
| Shell |
#! /usr/bin/env bash
interface=$1
bssid=$2
if [[ ( -z "$interface" ) || ( -z "$bssid" ) ]]
then
echo Usage: $(basename $0) interface bssid
exit
fi
echo $$ >> "$(echo $0 | sed s/\.sh$//).pid"
identifier=$(echo $bssid | tr '[A-Z]' '[a-z]' | tr --delete ':')
cd "$(dirname "$0")"
cd ..
cd capture
mkdir -p $identifi... | Shell |
#! /usr/bin/env bash
interface=$1
channel=$2
bssid=$3
essid=$4
if [[ ( -z "$interface" ) || ( -z "$channel" ) || ( -z "$bssid" ) ]]
then
echo Usage: $(basename $0) interface channel bssid [essid]
exit
fi
echo $$ >> "$(echo $0 | sed s/\.sh$//).pid"
cd "$(dirname "$0")"
cd ..
identifier=$(echo $bssid | tr '[A-Z]' ... | Shell |
#! /usr/bin/env bash
interface=$1
if [ -z "$interface" ]
then
echo Usage: $(basename $0) interface
exit
fi
echo $$ >> "$(echo $0 | sed s/\.sh$//).pid"
cd "$(dirname "$0")"
cd ..
crack=
focus=30
timeout=20
while true
do
echo $(date +"%Y-%m-%d %H:%M:%S") Scanning interface $interface
screen -S scan.airobot-ng -... | Shell |
#! /usr/bin/env bash
bssid=$1
essid=$2
delay=$3
pause=$4
if [ -z "$bssid" ]
then
echo Usage: $(basename $0) bssid [essid] [delay] [pause]
exit
fi
if [ -z "$delay" ]
then
delay=0
fi
if [ -z "$pause" ]
then
pause=5
fi
echo $$ >> "$(echo $0 | sed s/\.sh$//).pid"
cd "$(dirname "$0")"
cd ..
identifier=$(echo $bss... | Shell |
#! /usr/bin/env bash
interface=$1
bssid=$2
essid=$3
if [[ ( -z "$interface" ) || ( -z "$bssid" ) || ( -z "$essid" ) ]]
then
echo Usage: $(basename $0) interface bssid essid
exit
fi
echo $$ >> "$(echo $0 | sed s/\.sh$//).pid"
cd "$(dirname "$0")"
cd ..
echo $(date +"%Y-%m-%d %H:%M:%S") Replay BSSID $bssid ESSID \... | Shell |
#! /usr/bin/env bash
interface=$1
if [ "" = "$interface" ]
then
echo Usage: $(basename $0) interface
exit
fi
echo $$ >> "$(echo $0 | sed s/\.sh$//).pid"
cd "$(dirname "$0")"
cd ..
file=scan/$(date +"%Y/%m/%d/%H/%M/%S")
mkdir -p ${file:0:21}
airodump-ng --write $file $interface
| Shell |
#! /usr/bin/env bash
bssid=$1
essid=$2
delay=$3
pause=$4
if [ -z "$bssid" ]
then
echo Usage: $(basename $0) bssid [essid] [delay] [pause]
exit
fi
if [ -z "$delay" ]
then
delay=0
fi
if [ -z "$pause" ]
then
pause=5
fi
echo $$ >> "$(echo $0 | sed s/\.sh$//).pid"
cd "$(dirname "$0")"
cd ..
identifier=$(echo $bss... | Shell |
#! /usr/bin/env bash
bssid=$1
essid=$2
delay=$3
pause=$4
if [ -z "$bssid" ]
then
echo Usage: $(basename $0) bssid [essid] [delay] [pause]
exit
fi
if [ -z "$delay" ]
then
delay=0
fi
if [ -z "$pause" ]
then
pause=20
fi
echo $$ >> "$(echo $0 | sed s/\.sh$//).pid"
cd "$(dirname "$0")"
cd ..
./script/dictionary.s... | Shell |
#! /usr/bin/env bash
file=$1
if [ -z "$file" ]
then
echo Usage: $(basename $0) file
exit
fi
if [ -f "$file" ]
then
while read process
do
children=$(ps -o pid --no-headers --ppid=$process)
kill -9 $process 2> /dev/null
for child in $children
do
kill -9 $child 2> /dev/null
done
done < "$file"
rm "$... | Shell |
#! /usr/bin/env bash
cd "$(dirname "$0")"
cd ..
echo $(date +"%Y-%m-%d %H:%M:%S") Generating authentication list
network=$(ls -1 capture/????????????-*/key.txt 2> /dev/null)
while read key
do
if [ -n "$key" ]
then
identifier=${key:8:-8}
bssid=$(echo ${identifier:0:12} | tr '[a-z]' '[A-Z]' | sed 's/\(..\)/&:/g;s... | Shell |
#! /usr/bin/env bash
cd "$(dirname "$0")"
cd ..
cp /dev/null database/dictionary-64.txt
cp /dev/null database/dictionary-128.txt
cp /dev/null database/dictionary-152.txt
cp /dev/null database/dictionary-256.txt
if ls capture/*/key.txt &> /dev/null
then
for file in capture/*/key.txt
do
key=$(cat $file | sed 's/\(... | Shell |
#! /usr/bin/env bash
interface=$1
channel=$2
bssid=$3
essid=$4
ratio=$5
quota=$6
timeout=$7
if [[ ( -z "$interface" ) || ( -z "$channel" ) || ( -z "$bssid" ) ]]
then
echo Usage: $(basename $0) interface channel bssid [essid] [ratio] [quota] [timeout]
exit
fi
if [ -z "$ratio" ]
then
ratio=0
fi
if [ -z "$quota" ]
... | Shell |
#! /usr/bin/env bash
interface=$1
channel=$2
bssid=$3
timeout=$4
if [[ ( -z "$interface" ) || ( -z "$channel" ) || ( -z "$bssid" ) ]]
then
echo Usage: $(basename $0) interface channel bssid [timeout]
exit
fi
if [ -z "$timeout" ]
then
timeout=604800
fi
cd "$(dirname "$0")"
cd ..
echo $(date +"%Y-%m-%d %H:%M:%S")... | Shell |
#! /usr/bin/env bash
cd "$(dirname "$0")"
cd ..
log=$(echo $0 | sed s/\.sh$//).log
if [ -f "$log" ]
then
rm "$log"
fi
scan=$(ls -1 -v --reverse scan/????/??/??/??/??/??-??.csv | head --lines 1)
selection=$(echo $scan | sed s/\.csv$/-wep.csv/)
reverse=$(echo $scan | sed s/\.csv$/-wep-reverse.csv/)
if [ ! -f "$selec... | Shell |
#! /usr/bin/env bash
bssid=$1
essid=$2
delay=$3
pause=$4
if [ -z "$bssid" ]
then
echo Usage: $(basename $0) bssid [essid] [delay] [pause]
exit
fi
if [ -z "$delay" ]
then
delay=0
fi
if [ -z "$pause" ]
then
pause=20
fi
cd "$(dirname "$0")"
cd ..
./script/kill.sh screen/crack-dictionary.pid
./script/kill.sh scre... | Shell |
#! /usr/bin/env bash
bssid=$1
essid=$2
if [ -z "$bssid" ]
then
echo Usage: $(basename $0) bssid [essid]
exit
fi
cd "$(dirname "$0")"
cd ..
identifier=$(echo $bssid | tr '[A-Z]' '[a-z]' | tr --delete ':')
if [ ! -z "$essid" ]
then
identifier=$identifier-$(echo $essid | tr '[A-Z]' '[a-z]' | tr --complement --delet... | 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 |
/usr/bin/python /home/scm-studs/f6100782/python/airportnew-uni.py >> cronlog.log
echo "Success!"
date
| Shell |
rmic rmi.agente.Agente
rmic rmi.nameserver.NameService
| Shell |
# Find files with trailing whitespace
for FILE in `exec git diff-index --check --cached HEAD -- | sed '/^[+-]/d' | sed -r 's/:[0-9]+:.*//' | uniq` ; do
# Fix them!
sed -i 's/[[:space:]]*$//' "$FILE"
git add "$FILE"
done
exit
| Shell |
# -*- mode: sh -*- ################################################
# Qwt Widget Library
# Copyright (C) 1997 Josef Wilgen
# Copyright (C) 2002 Uwe Rathmann
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the Qwt License, Version 1.0
#################################... | Shell |
#!/bin/sh
#
# Quickie script to centralise the mysql password setting
#
#all=`grep -l MYSQLPASSWORD *.pm *.pl *.php *.sql`
# Check we have the macro (at least)
macro=$1
if [ z$macro = z ];
then
echo "$0 <macro> <string>";
exit 1
fi
# Restore originals
all=`ls *.b4sub`
for i in $all
do
orig=`echo $i | cu... | Shell |
#!/bin/sh
# Data Backup Script
# Get timestamp
DM=$(date +%d)
# Dump database
/usr/bin/mysqldump -u airtap_crm -pItgoesto11! airtap_crm >/var/www/airtap.lairdscomputer.com/backup/airtap_crm-$DM.sql
/usr/bin/gzip /var/www/airtap.lairdscomputer.com/backup/airtap_crm-$DM.sql
# Dump files
/bin/tar cvzf /var/www/airtap.l... | Shell |
#!/bin/sh
# Data Backup Script
# Get timestamp
DM=$(date +%d)
# Dump database
/usr/bin/mysqldump -u airtap_crm -pItgoesto11! airtap_crm >/var/www/airtap.lairdscomputer.com/backup/airtap_crm-$DM.sql
/usr/bin/gzip /var/www/airtap.lairdscomputer.com/backup/airtap_crm-$DM.sql
# Dump files
/bin/tar cvzf /var/www/airtap.l... | Shell |
#!/bin/sh
APPDIR=`dirname $0`;
CLASSPATH="$APPDIR/src:$APPDIR/bin.src";
CLASSPATH="$CLASSPATH:../Utils/src:../Utils/bin.src";
for u in `ls ../Utils/lib/*.jar`; do
CLASSPATH="$CLASSPATH:$u";
done;
echo $CLASSPATH;
java -Xmx256M -cp $CLASSPATH org.nicocube.airain.re.RuleEngine;
| Shell |
#!/bin/sh
APPDIR=`dirname $0`;
CLASSPATH="$APPDIR/src:$APPDIR/bin.src";
CLASSPATH="$CLASSPATH:../Utils/src:../Utils/bin.src";
for u in `ls ../Utils/lib/*.jar`; do
CLASSPATH="$CLASSPATH:$u";
done;
echo $CLASSPATH;
java -Xmx256M -cp $CLASSPATH org.nicocube.airain.re.RuleEngine;
| Shell |
#!/bin/sh
export GWT_EXTERNAL_BROWSER=firefox;
SCRIPTDIR=`dirname $0`;
APPDIR=$SCRIPTDIR;
GWTDIR=/usr/local/gwt-linux-1.5.2
CLASSPATH="$SCRIPTDIR";
CLASSPATH="$CLASSPATH:$APPDIR/src:$APPDIR/bin.src";
CLASSPATH="$CLASSPATH:$APPDIR/../Domain/src:$APPDIR/../Domain/bin.src";
CLASSPATH="$CLASSPATH:$APPDIR/../DataServer/s... | Shell |
#!/bin/sh
APPDIR=`dirname $0`;
GWTDIR=/usr/local/gwt-linux-1.5.2
CLASSPATH="$APPDIR/src:$APPDIR/bin.src";
CLASSPATH="$CLASSPATH:../Domain/src:../Domain/bin.src";
CLASSPATH="$CLASSPATH:../DataServer/src:../DataServer/bin.src";
CLASSPATH="$CLASSPATH:../Utils/src:../Utils/bin.src";
CLASSPATH="$CLASSPATH:$GWTDIR/gwt-use... | Shell |
#!/bin/sh
export GWT_EXTERNAL_BROWSER=firefox;
SCRIPTDIR=`dirname $0`;
APPDIR=$SCRIPTDIR;
GWTDIR=/usr/local/gwt-linux-1.5.2
CLASSPATH="$SCRIPTDIR";
CLASSPATH="$CLASSPATH:$APPDIR/src:$APPDIR/bin.src";
CLASSPATH="$CLASSPATH:$APPDIR/../Domain/src:$APPDIR/../Domain/bin.src";
CLASSPATH="$CLASSPATH:$APPDIR/../DataServer/s... | Shell |
#!/bin/sh
APPDIR=`dirname $0`;
GWTDIR=/usr/local/gwt-linux-1.5.2
CLASSPATH="$APPDIR/src:$APPDIR/bin.src";
CLASSPATH="$CLASSPATH:../Domain/src:../Domain/bin.src";
CLASSPATH="$CLASSPATH:../DataServer/src:../DataServer/bin.src";
CLASSPATH="$CLASSPATH:../Utils/src:../Utils/bin.src";
CLASSPATH="$CLASSPATH:$GWTDIR/gwt-use... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.