code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# IPs
IP="10.74.57.4"
BROADCAST="10.74.57.255"
# DIRECCIONES DE RED
acaraguay="10.31.17.0"
chirimay="10.31.17.128"
uruguari="10.31.17.64"
iguazu="10.97.5.0"
nogoya="10.74.63.244"
# DIRECCIONES DE GATEWAYS
H116="10.74.57.1"
H124="10.74.57.3"
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# IPs
IP="10.31.17.134"
BROADCAST="10.31.17.255"
# DIRECCIONES DE RED
acaraguay="10.31.17.0"
uruguari="10.31.17.64"
iguazu="10.97.5.0"
# DIRECCIONES DE GATEWAYS
H105="10.31.17.132"
H108="10.31.17.133"
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Ne... | Shell |
#!/bin/bash
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask29="255.255.255.248"
Netmask30="255.255.255.252"
# IPs
IP1="10.74.57.130"
IP2="10.74.63.129"
BROADCAST1="10.74.57.255"
BROADCAST2="10.74.63.191... | Shell |
#!/bin/bash
# configure interface
interfaz1=`ifconfig | egrep "eth." -o | head -1`
echo "auto lo" > "/etc/network/interfaces"
echo "iface lo inet loopback" >> "/etc/network/interfaces"
echo "auto $interfaz1" >> "/etc/network/interfaces"
echo "iface $interfaz1 inet static" >> "/etc/network/interfaces"
echo " address 19... | Shell |
#!/bin/bash
# IPS SERVERS
IP="10.31.17.1"
BROADCAST="10.31.17.63"
# DIRECCIONES DE GATEWAYS
H104="10.31.17.2"
# MASCARAS DE RED
Netmask26="255.255.255.192"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
#Desactivo el ruteo del sistema operativo
echo "0" >> /proc/sys/net/ipv4/ip_forward
i... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
function configureDNSResto {
cd DNS/hosts/resto
./configurar.sh
cd ../../..
}
function configureDNSSaladas {
cd DNS/hosts/saladas
./configurar.sh
cd ../../..
}
function configureServers {
while :
do
echo "Elige una opccion:"
echo "1. WEB SERVER"
echo "2. FTP SERVER"
echo "3.... | Shell |
#!/bin/bash
# Main
clear
# Setting all files as executable
chmod +wrx * -R
while :
do
echo "Elige una opccion:"
echo "1. Ping all routers"
echo "2. Ping all servers"
echo "3. Ping all hosts"
echo "4. Ping all router by DN"
echo "5. Configure REAL LAN ACCESS"
echo "6. Salir"
read -n1 opc... | Shell |
#!/bin/bash
# configure interface
interfaz1=`ifconfig | egrep "eth." -o | head -1`
echo "auto lo" > "/etc/network/interfaces"
echo "iface lo inet loopback" >> "/etc/network/interfaces"
echo "auto $interfaz1" >> "/etc/network/interfaces"
echo "iface $interfaz1 inet dhcp" >> "/etc/network/interfaces"
# Restarting netwo... | Shell |
#!/bin/bash
chmod 777 *
/etc/init.d/bind9 stop
rm -r /etc/bind
#Borrado de todas las rutas
`ip route flush all`
#Borrado de interfaces eth y ppp
interfaces=`ifconfig | egrep "eth|ppp" | sed 's/^\([A-Za-z0-9:]*\).*/\1/'`
for i in $interfaces
do
`ip addr flush $i`
done
| Shell |
#!/bin/bash
# IPS SERVERS
IP="192.168.53.1"
BROADCAST="192.168.53.255"
# DIRECCIONES DE GATEWAYS
H132="192.168.53.3"
# MASCARAS DE RED
Netmask24="255.255.255.0"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
#Desactivo el ruteo del sistema operativo
echo "0" >> /proc/sys/net/ipv4/ip_forwar... | Shell |
#!/bin/bash
# IPs
IP="10.74.63.226"
BROADCAST="10.74.63.231"
# DIRECCIONES DE GATEWAYS
H132="10.74.63.225"
# MASCARA DE RED
Netmask29="255.255.255.248"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
ifconfig $interfaz $IP broadcast $BROADCAST netmask $Netmask29
route add -net 0.0.0.0 net... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# IPS SERVERS
IP="192.168.53.1"
BROADCAST="192.168.53.255"
# DIRECCIONES DE GATEWAYS
H132="192.168.53.3"
# MASCARAS DE RED
Netmask24="255.255.255.0"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
#Desactivo el ruteo del sistema operativo
echo "0" >> /proc/sys/net/ipv4/ip_forwar... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
chmod 777 *
/etc/init.d/bind9 stop
rm -r /etc/bind
#Borrado de todas las rutas
`ip route flush all`
#Borrado de interfaces eth y ppp
interfaces=`ifconfig | egrep "eth|ppp" | sed 's/^\([A-Za-z0-9:]*\).*/\1/'`
for i in $interfaces
do
`ip addr flush $i`
done
| Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
function configureDNSResto {
cd DNS/hosts/resto
./configurar.sh
cd ../../..
}
function configureDNSSaladas {
cd DNS/hosts/saladas
./configurar.sh
cd ../../..
}
function configureServers {
while :
do
echo "Elige una opccion:"
echo "1. WEB SERVER"
echo "2. FTP SERVER"
echo "3.... | Shell |
#!/bin/bash
# IPs
IP="10.74.57.4"
BROADCAST="10.74.57.255"
# DIRECCIONES DE RED
acaraguay="10.31.17.0"
chirimay="10.31.17.128"
uruguari="10.31.17.64"
iguazu="10.97.5.0"
nogoya="10.74.63.244"
# DIRECCIONES DE GATEWAYS
H116="10.74.57.1"
H124="10.74.57.3"
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.... | Shell |
# INTERFACES
echo "Write desired ip address (four octets separated by ENTER)"
read octet1;
read octet2;
read octet3;
read octet4;
interfaz1=`ifconfig | egrep "eth." -o | head -1`":5"
ifconfig $interfaz1 $1"."$2"."$3"."$4 broadcast $1"."$2"."$3".255" netmask 255.255.255.0
| Shell |
echo "------------------------------------------"
echo "H104"
echo "------------------------------------------"
ping -c 2 -q 10.97.5.2 | grep 'packet loss'
ping -c 2 -q 10.31.17.65 | grep 'packet loss'
ping -c 2 -q 10.31.17.2 | grep 'packet loss'
echo "------------------------------------------"
echo "H105"
echo "----... | Shell |
echo "------------------------------------------"
echo "H104"
echo "------------------------------------------"
ping -c 2 -q iguazu2.saladas.litoral.dc.fi.uba.ar | grep 'packet loss'
ping -c 2 -q uruguari1.saladas.litoral.dc.fi.uba.ar | grep 'packet loss'
ping -c 2 -q acaraguay2.saladas.litoral.dc.fi.uba.ar | grep 'pac... | Shell |
echo "------------------------------------------"
echo "HOST A"
echo "------------------------------------------"
ping -c 2 -q 10.74.57.4 | grep 'packet loss'
echo "------------------------------------------"
echo "HOST B"
echo "------------------------------------------"
ping -c 2 -q 10.31.17.134 | grep 'packet los... | Shell |
echo "------------------------------------------"
echo "WEB SERVER"
echo "------------------------------------------"
ping -c 2 -q 192.168.53.1 | grep 'packet loss'
echo "------------------------------------------"
echo "FTP SERVER"
echo "------------------------------------------"
ping -c 2 -q 10.31.17.1 | grep 'pa... | Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/system/bin/sh
DIR=/data/data/org.proxydroid
type=$2
host=$3
port=$4
auth=$5
user=$6
pass=$7
PATH=$DIR:$PATH
case $1 in
start)
echo "
base {
log_debug = off;
log_info = off;
log = stderr;
daemon = on;
redirector = iptables;
}
" >$DIR/redsocks.conf
case $type in
http)
case $auth in... | Shell |
#!/bin/sh
# Detects OS we're compiling on and generates build_config.mk,
# which in turn gets read while processing Makefile.
# build_config.mk will set the following variables:
# - PORT_CFLAGS will either set:
# -DLEVELDB_PLATFORM_POSIX if cstatomic is present
# -DLEVELDB_PLATFORM_NOATOMI... | Shell |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
#!/bin/sh
if [ ! -d gtkmvc ]; then
cd ..
echo "Descomprimiendo pygtkmvc..."
tar xvf python-gtkmvc-1.99.1.tar.gz
cd src
echo "Configurando pygtkmvc."
ln -s ../python-gtkmvc-1.99.1/gtkmvc gtkmvc
else
echo "El directorio gtkmvc ya existe."
fi
| Shell |
#!/bin/sh
if [ ! -d gtkmvc ]; then
cd ..
echo "Descomprimiendo pygtkmvc..."
tar xvf python-gtkmvc-1.99.1.tar.gz
cd src
echo "Configurando pygtkmvc."
ln -s ../python-gtkmvc-1.99.1/gtkmvc gtkmvc
else
echo "El directorio gtkmvc ya existe."
fi
| Shell |
#!/bin/bash
# Colors
Color_Off='\e[0m' # Text Reset
Red='\e[0;31m' # Red
Green='\e[0;32m' # Green
while true
do
time strings /dev/urandom | tr -dc "\n0-9" | ./main
#time strings /dev/urandom | ./main
#gdb main -ex run -tty=/dev/urandom
if [ $? == 0 ]
then
echo
echo -e "${Green}Il prog... | 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-version3 \
--enable-w32threads \
--enable-runtime-cpudetect \
--enable-demuxers \
--disable-demuxer=matroska ... | 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-version3 \
--enable-w32threads \
--enable-runtime-cpudetect \
--enable-demuxers \
--disable-demuxer=matroska \
--disa... | Shell |
#!/bin/bash
IPCS_M=`ipcs -m | egrep "0x[0-9a-f]+ [0-9]+ " | grep " 644" | grep -v "dest" | cut -f2 -d" "`
IPCS_S=`ipcs -s | egrep "0x[0-9a-f]+ [0-9]+" | grep " 666" | grep -v "dest" | cut -f2 -d" "`
for id in $IPCS_M; do
ipcrm -m $id;
echo $id;
done
for id in $IPCS_S; do
ipcrm -s $id;
echo $id;
done
rm log.j... | Shell |
#!/bin/bash
IPCS_M=`ipcs -m | egrep "0x[0-9a-f]+ [0-9]+ " | grep " 644" | grep -v "dest" | cut -f2 -d" "`
IPCS_S=`ipcs -s | egrep "0x[0-9a-f]+ [0-9]+" | grep " 666" | grep -v "dest" | cut -f2 -d" "`
for id in $IPCS_M; do
ipcrm -m $id;
echo $id;
done
for id in $IPCS_S; do
ipcrm -s $id;
echo $id;
done
rm log.j... | Shell |
#!/bin/bash
#
# Patch osgt produced with osgexporter to remove unused bits.
# The result is sent to stdout.
#
FILE=$1
if [ -z $FILE ]; then
echo "$0 OSGT_FILE"
exit
fi
#sed -n '1h;1!H;${;g;s/StateSet TRUE.*Children 3/StateSet TRUE {\n osg::StateSet {\n UniqueID 367\n AttributeList 1 {\n osg:... | Shell |
#!/bin/bash
MEMORY=512m
java -Xmx$MEMORY -cp "../lib/*" -javaagent:../lib/sizeofag-1.0.0.jar moa.gui.GUI
| Shell |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| Shell |
#!/bin/bash
echo "## Step 00: initialize"
(
if ! [ -d build ]; then
mkdir build
mkdir build/src
mkdir build/src/trunk
fi
)
fetch() {
(
cd src
if ! [ -f "${2}/.svn/entries" ]; then
mkdir "${2}"
cd "${2}"
svn co --non-interactive --trust-server-cert "${1}" "."
else
cd "${2}"
sv... | Shell |
#!/bin/bash
find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';'
find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
| Shell |
#!/bin/bash
rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
| Shell |
#!/bin/bash
rm -rf org/ietf/
rm -rf org/apache/harmony/auth
rm -rf org/apache/harmony/javax/security/auth/kerberos/
rm -rf org/apache/harmony/javax/security/auth/x500/
rm org/apache/harmony/javax/security/auth/Policy.java
| Shell |
#!/bin/bash
find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
| Shell |
#!/bin/bash
find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';'
find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
| Shell |
#!/bin/bash
rm org/jivesoftware/smack/debugger/LiteDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
| Shell |
#!/bin/bash
mkdir -p org/apache/harmony/
mv javax org/apache/harmony/
find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';'
find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';'
find -name '*... | Shell |
#!/bin/sh
# Copyright (C) Igor Sysoev
. auto/options
. auto/init
. auto/sources
test -d $NGX_OBJS || mkdir $NGX_OBJS
echo > $NGX_AUTO_HEADERS_H
echo > $NGX_AUTOCONF_ERR
echo "#define NGX_CONFIGURE \"$NGX_CONFIGURE\"" > $NGX_AUTO_CONFIG_H
if [ $NGX_DEBUG = YES ]; then
have=NGX_DEBUG . auto/have
fi
if test ... | Shell |
#!/usr/bin/bash
#This batch file changes CR/LF line endings to pure LF line endings to be Unix-compliant.
#It relies on crlf.py, taken from the Windows Python 2.5 distribution.
python crlf.py *.c *.h *.py Makefile README common/*.c
python crlf.py include/*.h include/devices/*.h include/devices/*.pl
python crlf.py unit... | Shell |
#!/bin/sh
# TODO: FIXME: Get rid of this and hook it into Dojo's general build script
# You must have mtasc to run this
mtasc -trace DojoExternalInterface.trace -main -cp ../flash -swf Storage.swf -version 8 -header 215:138:10 Storage.as
| 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 the GNU Ge... | Shell |
#! /bin/bash
# libtool - Provide generalized library-building support services.
# Generated automatically by config.status (gr-uofu-80211-ofdm) 3.2.2
# Libtool was configured on host hyrum:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, ... | Shell |
# Generated from ltmain.m4sh.
# ltmain.sh (GNU libtool) 2.2.6
# 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
# w... | 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
#
# Permission 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 the GNU Ge... | Shell |
#! /bin/bash
# libtool - Provide generalized library-building support services.
# Generated automatically by config.status (gr-uofu-80211-ofdm) 3.2.2
# Libtool was configured on host hyrum:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, ... | 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 free softw... | 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='2009-04-17'
# This file is (in principle) common to ALL GNU software.
# The presence of a ma... | Shell |
#!/bin/sh
# Copyright 2001,2005,2008 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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 3, or (at your option)
# a... | 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='2009-04-27'
# 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=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
#
# Permission is ... | Shell |
#!/bin/sh
# py-compile - Compile a Python program
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 2000, 2001, 2003, 2004, 2005, 2008, 2009 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
... | 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 free softw... | Shell |
#!/bin/sh
# py-compile - Compile a Python program
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 2000, 2001, 2003, 2004, 2005, 2008, 2009 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
... | Shell |
#!/bin/sh
# Copyright 2001,2005,2008 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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 3, or (at your option)
# a... | Shell |
#!/usr/bin/env bash
# Check for an argument
if [ ${1:-""} = "" ]; then
echo "Sapphire Sake
Usage: $0 (command-url) (params)
Executes a Sapphire command"
exit 1
fi
# Set $sapphire and $base
sakedir=`dirname $0`
if [ -f $sakedir/cli-script.php ]; then
sapphire=$sakedir
base=`dirname $sakedir`
elif [ -d ./sapphire ... | Shell |
#!/usr/bin/env bash
# Check for an argument
if [ ${1:-""} = "" ]; then
echo "Sapphire Sake
Usage: $0 (command-url) (params)
Executes a Sapphire command"
exit 1
fi
# Set $sapphire and $base
sakedir=`dirname $0`
if [ -f $sakedir/cli-script.php ]; then
sapphire=$sakedir
base=`dirname $sakedir`
elif [ -d ./sapphire ... | Shell |
#!/bin/bash
time ./analysis.mk pmetis N=1000 M=5 S=115 K=20 PREFIX=pmetis
time ./analysis.mk pmetis N=1000 M=5 S=215 K=20 PREFIX=pmetis
time ./analysis.mk pmetis N=1000 M=5 S=315 K=20 PREFIX=pmetis
time ./analysis.mk pmetis N=1000 M=5 S=415 K=20 PREFIX=pmetis
time ./analysis.mk pmetis N=1000 M=5 S=515 K=20 PREFIX=pmeti... | Shell |
#!/bin/bash
time ./analysis.mk random N=1000 M=5 S=115 K=20 PREFIX=random
time ./analysis.mk random N=1000 M=5 S=215 K=20 PREFIX=random
time ./analysis.mk random N=1000 M=5 S=315 K=20 PREFIX=random
time ./analysis.mk random N=1000 M=5 S=415 K=20 PREFIX=random
time ./analysis.mk random N=1000 M=5 S=515 K=20 PREFIX=rando... | Shell |
#!/bin/bash
time ./analysis.mk gen N=1000 M=5 S=115
time ./analysis.mk gen N=1000 M=5 S=215
time ./analysis.mk gen N=1000 M=5 S=315
time ./analysis.mk gen N=1000 M=5 S=415
time ./analysis.mk gen N=1000 M=5 S=515
time ./analysis.mk gen N=1000 M=5 S=615
time ./analysis.mk gen N=1000 M=5 S=715
time ./analysis.mk gen N=100... | Shell |
#!/bin/bash
time ./analysis.mk kmetis N=1000 M=5 S=115 K=20 PREFIX=kmetis
time ./analysis.mk kmetis N=1000 M=5 S=215 K=20 PREFIX=kmetis
time ./analysis.mk kmetis N=1000 M=5 S=315 K=20 PREFIX=kmetis
time ./analysis.mk kmetis N=1000 M=5 S=415 K=20 PREFIX=kmetis
time ./analysis.mk kmetis N=1000 M=5 S=515 K=20 PREFIX=kmeti... | Shell |
#!/bin/bash
time ./analysis.mk kmetis N=1000 M=5 S=115 K=20 PREFIX=kmetis
time ./analysis.mk kmetis N=1000 M=5 S=215 K=20 PREFIX=kmetis
time ./analysis.mk kmetis N=1000 M=5 S=315 K=20 PREFIX=kmetis
time ./analysis.mk kmetis N=1000 M=5 S=415 K=20 PREFIX=kmetis
time ./analysis.mk kmetis N=1000 M=5 S=515 K=20 PREFIX=kmeti... | Shell |
#!/bin/bash
time ./analysis.mk pmetis N=1000 M=5 S=115 K=20 PREFIX=pmetis
time ./analysis.mk pmetis N=1000 M=5 S=215 K=20 PREFIX=pmetis
time ./analysis.mk pmetis N=1000 M=5 S=315 K=20 PREFIX=pmetis
time ./analysis.mk pmetis N=1000 M=5 S=415 K=20 PREFIX=pmetis
time ./analysis.mk pmetis N=1000 M=5 S=515 K=20 PREFIX=pmeti... | Shell |
#!/bin/bash
time ./analysis.mk random N=1000 M=5 S=115 K=20 PREFIX=random
time ./analysis.mk random N=1000 M=5 S=215 K=20 PREFIX=random
time ./analysis.mk random N=1000 M=5 S=315 K=20 PREFIX=random
time ./analysis.mk random N=1000 M=5 S=415 K=20 PREFIX=random
time ./analysis.mk random N=1000 M=5 S=515 K=20 PREFIX=rando... | Shell |
#!/bin/bash
time ./analysis.mk gen N=1000 M=5 S=115
time ./analysis.mk gen N=1000 M=5 S=215
time ./analysis.mk gen N=1000 M=5 S=315
time ./analysis.mk gen N=1000 M=5 S=415
time ./analysis.mk gen N=1000 M=5 S=515
time ./analysis.mk gen N=1000 M=5 S=615
time ./analysis.mk gen N=1000 M=5 S=715
time ./analysis.mk gen N=100... | 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 |
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# 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 ap... | Shell |
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# 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 ap... | Shell |
spawn-fcgi -u www-data -g www-data -d /var/www/simplecd/ -f /var/www/simplecd/code.py -a 127.0.0.1 -p 9001 -F 2
| Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
<?php
/**
* @file
* This script runs Drupal tests from command line.
*/
define('SIMPLETEST_SCRIPT_COLOR_PASS', 32); // Green.
define('SIMPLETEST_SCRIPT_COLOR_FAIL', 31); // Red.
define('SIMPLETEST_SCRIPT_COLOR_EXCEPTION', 33); // Brown.
// Set defaults and get overrides.
list($args, $count) = simpletest_script_par... | Shell |
#!/bin/sh
/usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
| Shell |
#!/bin/sh
curl --silent --compressed http://example.com/cron.php
| Shell |
#!/bin/sh
find . -name "*~" -type f | xargs rm -f
find . -name ".#*" -type f | xargs rm -f
find . -name "*.rej" -type f | xargs rm -f
find . -name "*.orig" -type f | xargs rm -f
find . -name "DEADJOE" -type f | xargs rm -f
find . -type f | grep -v ".psp" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".t... | Shell |
#!/bin/sh
/usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
| Shell |
#!/bin/sh
find . -name "*~" -type f | xargs rm -f
find . -name ".#*" -type f | xargs rm -f
find . -name "*.rej" -type f | xargs rm -f
find . -name "*.orig" -type f | xargs rm -f
find . -name "DEADJOE" -type f | xargs rm -f
find . -type f | grep -v ".psp" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".t... | Shell |
#!/bin/sh
curl --silent --compressed http://example.com/cron.php
| Shell |
#!/bin/bash
# need bridge-utils and macchanger
SWINT=eth0
SWMAC=`ifconfig $SWINT | grep -i hwaddr | awk '{ print $5 }'`
BRINT=br0
COMPINT=eth3
BRIP=169.254.66.66
RANGE=61000-62000
brctl addbr $BRINT
brctl addif $BRINT $COMPINT
brctl addif $BRINT $SWINT
ifconfig $COMPINT 0.0.0.0 up
ifconfig $SWINT 0.0.0.0 up
ifcon... | Shell |
#!/bin/bash
# need bridge-utils and macchanger
SWMAC=f0:ad:4e:00:0d:79
COMPMAC=b8:ac:6f:5a:96:dd
COMIP=192.168.15.105
GWNET=192.168.15.0/24
DEFGW=192.168.15.1
BRINT=br0
SWINT=eth0
COMPINT=eth3
BRIP=169.254.66.66
RANGE=61000-62000
brctl addbr $BRINT
brctl addif $BRINT $COMPINT
brctl addif $BRINT $SWINT
ifconfig $COM... | Shell |
#!/bin/bash
#pre-populated variables
SWMAC=f0:ad:4e:00:35:82
COMPMAC=c0:c1:c0:76:35:7c
COMIP=192.168.0.10
GWNET=192.168.0.0/24
DEFGW=192.168.0.15
BRINT=br0
SWINT=eth0
COMPINT=eth1
BRIP=169.254.66.66
DPORT=9876
RANGE=61000-62000
#build the bridge
brctl addbr $BRINT
brctl addif $BRINT $COMPINT
brctl addif $BRINT $SWINT... | Shell |
#!/bin/bash
#pre-populated variables
SWMAC=f0:ad:4e:00:35:82
COMPMAC=c0:c1:c0:76:35:7c
COMIP=192.168.0.10
GWNET=192.168.0.0/24
DEFGW=192.168.0.15
BRINT=br0
SWINT=eth0
COMPINT=eth1
BRIP=169.254.66.66
DPORT=9876
RANGE=61000-62000
#build the bridge
brctl addbr $BRINT
brctl addif $BRINT $COMPINT
brctl addif $BRINT $SWINT... | Shell |
#!/bin/bash
BRINT=br0
SWINT=eth0
COMPINT=eth1
echo 1 > /proc/sys/net/ipv4/ip_forward
brctl addbr $BRINT
brctl addif $BRINT $COMPINT
brctl addif $BRINT $SWINT
ifconfig $COMPINT 0.0.0.0 up promisc
ifconfig $SWINT 0.0.0.0 up promisc
ifconfig $BRINT 0.0.0.0 up promisc
mii-tool -r $SWINT
mii-tool -r $COMPINT
| Shell |
#!/bin/bash
BRINT=br0
SWINT=eth0
COMPINT=eth1
echo 1 > /proc/sys/net/ipv4/ip_forward
brctl addbr $BRINT
brctl addif $BRINT $COMPINT
brctl addif $BRINT $SWINT
ifconfig $COMPINT 0.0.0.0 up promisc
ifconfig $SWINT 0.0.0.0 up promisc
ifconfig $BRINT 0.0.0.0 up promisc
mii-tool -r $SWINT
mii-tool -r $COMPINT
| Shell |
#!/bin/bash
# need bridge-utils and macchanger
SWMAC=f0:ad:4e:00:0d:79
COMPMAC=b8:ac:6f:5a:96:dd
COMIP=192.168.15.105
GWNET=192.168.15.0/24
DEFGW=192.168.15.1
BRINT=br0
SWINT=eth0
COMPINT=eth3
BRIP=169.254.66.66
RANGE=61000-62000
brctl addbr $BRINT
brctl addif $BRINT $COMPINT
brctl addif $BRINT $SWINT
ifconfig $COM... | Shell |
#!/bin/bash
# need bridge-utils and macchanger
SWINT=eth0
SWMAC=`ifconfig $SWINT | grep -i hwaddr | awk '{ print $5 }'`
BRINT=br0
COMPINT=eth3
BRIP=169.254.66.66
RANGE=61000-62000
brctl addbr $BRINT
brctl addif $BRINT $COMPINT
brctl addif $BRINT $SWINT
ifconfig $COMPINT 0.0.0.0 up
ifconfig $SWINT 0.0.0.0 up
ifcon... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.