code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
SALIDATP0="pruebaRandomTp0"
SALIDABASE64="pruebaRandomBase64"
RANDOMDUMP="randomBin"
RANDOMSIZE="98"
if [ "$?" = "0" ]; then
head -c $RANDOMSIZE /dev/urandom > $RANDOMDUMP
#Codifica en base 64 sin ningun salto de linea
base64... | Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
ARCHIVOENTRADA="archivoBase64.txt"
SALIDATP0="salidaTp0"
SALIDABASE64="salidaBase64"
#Mostrar archivos de prueba
echo "Archivo de prueba:"
cat $ARCHIVOENTRADA
if [ "$?" = "0" ]; then
#Se ingresa el archivo a tp0, se decodifica y se dirige stdou... | Shell |
#!/bin/bash
directorio_default="../src/"
nombre_ejecutable="tp0"
#Se puede especificar un subdirectorio opcionalmente
gcc -Wall -lm -o $nombre_ejecutable ${1:-$directorio_default}*.c
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
./tp0 -e -i "archivoInexistente"
| Shell |
#!/bin/bash
bash pruebaStdinYSalidaArchivo.sh
bash pruebaStdinYStdout.sh
bash pruebaStdoutYEntradaArchivo.sh
bash pruebaArchivoInexistente.sh
bash pruebaArchivoSoloLectura.sh
bash pruebaRandom.sh
#bash pruebaBase64Incorrecto.sh
#bash pruebaIdaYvuelta.sh
#bash pruebaInfinita.sh
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
ARCHIVOENTRADA="archivoBase64.txt"
SALIDATP0="salidaTp0"
SALIDABASE64="salidaBase64"
#Mostrar archivos de prueba
echo "Archivo de prueba:"
cat $ARCHIVOENTRADA
if [ "$?" = "0" ]; then
#Se ingresa por stdin el archivo y se utiliza tp0 para guarda... | Shell |
#!/bin/bash
directorio="../src/"
nombre_ejecutable="tp0"
nombre_entrada1="prueba.txt"
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
valgrind --leak-check=full -v ./$nombre_ejecutable -d -i $archivoBase64.txt
| Shell |
#!/bin/bash
#Pararlo con Ctrl+C
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
cat -v /dev/urandom | base64 -w0 | ./tp0 -d
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
ARCHIVOENTRADA="prueba.txt"
SALIDATP0="pruebaStdoutConTp0"
SALIDABASE64="pruebaStdoutConBase64"
#Mostrar archivos de prueba
echo "Archivo de prueba:"
cat $ARCHIVOENTRADA
if [ "$?" = "0" ]; then
#Se ingresa el archivo a tp0 y se dirige stdout a ... | Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
SALIDATP0="pruebaRandomTp0"
SALIDABASE64="pruebaRandomBase64"
RANDOMDUMP="randomBin"
RANDOMSIZE="98"
if [ "$?" = "0" ]; then
head -c $RANDOMSIZE /dev/urandom > $RANDOMDUMP
#Codifica en base 64 sin ningun salto de linea
base64... | Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
SALIDATP0="BinTp0"
SALIDABASE64="BinBase64"
ENTRADA="archivoBase64.txt"
echo "Archivo de prueba:"
cat $ENTRADA
if [ "$?" = "0" ]; then
#Decodifica el archivo codificado usando tp0
cat $ENTRADA | ./tp0 -d > $SALIDATP0
echo -e "\nSalida... | Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
echo -n 'foo' | ./tp0 -e
echo ""
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
#El archivo tiene caracteres que no son parte del alfabeto
cat base64Incorrecto.txt
./tp0 -d -i base64Incorrecto.txt -o archivoBasura
rm archivoBasura
| Shell |
#!/bin/bash
directorio_default="../src/"
nombre_ejecutable="tp0"
#Se puede especificar un subdirectorio opcionalmente
gcc -Wall -lm -o $nombre_ejecutable ${1:-$directorio_default}*.c
| Shell |
#!/bin/bash
bash pruebaStdinYSalidaArchivo.sh
bash pruebaStdinYStdout.sh
bash pruebaStdoutYEntradaArchivo.sh
bash pruebaArchivoInexistente.sh
bash pruebaArchivoSoloLectura.sh
bash pruebaRandom.sh
#bash pruebaBase64Incorrecto.sh
#bash pruebaIdaYvuelta.sh
#bash pruebaInfinita.sh
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
SALIDATP0="pruebaRandomTp0"
SALIDABASE64="pruebaRandomBase64"
RANDOMDUMP="randomBin.txt"
RANDOMSIZE="100"
if [ "$?" = "0" ]; then
head -c $RANDOMSIZE /dev/urandom > $RANDOMDUMP
./tp0 -e -i $RANDOMDUMP -o $SALIDATP0
#Codifica e... | Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
chmod 100 archivoSoloLectura #Setea los permisos del archivo en solo lectura
./tp0 -e -i prueba.txt -o archivoSoloLectura
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
ARCHIVOENTRADA="prueba.txt"
SALIDATP0="pruebaStdinConTp0"
SALIDABASE64="pruebaStdinConBase64"
#Mostrar archivos de prueba
echo "Archivo de prueba:"
cat $ARCHIVOENTRADA
if [ "$?" = "0" ]; then
#Se ingresa por stdin el archivo prueba.txt y se gua... | Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
./tp0 -e -i "archivoInexistente"
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
ARCHIVOENTRADA="prueba.txt"
SALIDATP0="pruebaStdinConTp0"
SALIDABASE64="pruebaStdinConBase64"
#Mostrar archivos de prueba
echo "Archivo de prueba:"
cat $ARCHIVOENTRADA
if [ "$?" = "0" ]; then
#Se ingresa por stdin el archivo prueba.txt y se uti... | Shell |
#!/bin/bash
#Pararlo con Ctrl+C
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
cat -v /dev/urandom | ./tp0 -e
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
ARCHIVOENTRADA="archivoBase64.txt"
SALIDATP0="salidaTp0"
SALIDABASE64="salidaBase64"
#Mostrar archivos de prueba
echo "Archivo de prueba:"
cat $ARCHIVOENTRADA
if [ "$?" = "0" ]; then
#Se ingresa el archivo a tp0, se decodifica y se dirige stdou... | Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
echo -n 'foo' | ./tp0 -e | ./tp0 -d
echo ""
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
ENTRADA="archivoBinario"
TMP="binarioBase64"
SALIDA="binarioNuevo"
if [ "$?" = "0" ]; then
./tp0 -e -i $ENTRADA -o $TMP
./tp0 -d -i $TMP -o $SALIDA
diff $ENTRADA $SALIDA
if [ "$?" = "0" ]; then
echo "Los archivos son iguales"
else
... | Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
#El archivo tiene caracteres que no son parte del alfabeto
cat base64Incorrecto.txt
./tp0 -d -i base64Incorrecto.txt -o archivoBasura
rm archivoBasura
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
ARCHIVOENTRADA="prueba.txt"
SALIDATP0="pruebaStdoutConTp0"
SALIDABASE64="pruebaStdoutConBase64"
#Mostrar archivos de prueba
echo "Archivo de prueba:"
cat $ARCHIVOENTRADA
if [ "$?" = "0" ]; then
#Se ingresa el archivo a tp0 y se dirige stdout a ... | Shell |
#!/bin/bash
#Pararlo con Ctrl+C
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
cat -v /dev/urandom | base64 -w0 | ./tp0 -d
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
ENTRADA="archivoBinario"
TMP="binarioBase64"
SALIDA="binarioNuevo"
if [ "$?" = "0" ]; then
./tp0 -e -i $ENTRADA -o $TMP
./tp0 -d -i $TMP -o $SALIDA
diff $ENTRADA $SALIDA
if [ "$?" = "0" ]; then
echo "Los archivos son iguales"
else
... | Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
echo -n 'foo' | ./tp0 -e | ./tp0 -d
echo ""
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
ARCHIVOENTRADA="prueba.txt"
SALIDATP0="pruebaStdinConTp0"
SALIDABASE64="pruebaStdinConBase64"
#Mostrar archivos de prueba
echo "Archivo de prueba:"
cat $ARCHIVOENTRADA
if [ "$?" = "0" ]; then
#Se ingresa por stdin el archivo prueba.txt y se gua... | Shell |
#!/bin/bash
#Pararlo con Ctrl+C
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
cat -v /dev/urandom | ./tp0 -e
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
chmod 100 archivoSoloLectura #Setea los permisos del archivo en solo lectura
./tp0 -e -i prueba.txt -o archivoSoloLectura
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
SALIDATP0="BinTp0"
SALIDABASE64="BinBase64"
ENTRADA="archivoBase64.txt"
echo "Archivo de prueba:"
cat $ENTRADA
if [ "$?" = "0" ]; then
#Decodifica el archivo codificado usando tp0
cat $ENTRADA | ./tp0 -d > $SALIDATP0
echo -e "\nSalida... | Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
echo -n 'foo' | ./tp0 -e
echo ""
| Shell |
#!/bin/bash
directorio="../src/"
nombre_ejecutable="tp0"
nombre_entrada1="prueba.txt"
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
valgrind --leak-check=full -v ./$nombre_ejecutable -d -i $archivoBase64.txt
| Shell |
#!/bin/bash
cd ../src
make > /dev/null
cp -a ./tp0 ../tests
cd ../tests/
ARCHIVOENTRADA="prueba.txt"
SALIDATP0="pruebaStdinConTp0"
SALIDABASE64="pruebaStdinConBase64"
#Mostrar archivos de prueba
echo "Archivo de prueba:"
cat $ARCHIVOENTRADA
if [ "$?" = "0" ]; then
#Se ingresa por stdin el archivo prueba.txt y se uti... | Shell |
#!/bin/bash
TEXTO_PRUEBA="Don’t panic"
echo "> Texto de prueba:"
echo $TEXTO_PRUEBA
SALIDA_TP=`echo "$TEXTO_PRUEBA" | ./tp1`
echo "> Salida de TP1:"
echo "$SALIDA_TP"
SALIDA_WC=`echo "$TEXTO_PRUEBA" | wc`
echo "> Salida de WC de UNIX:"
echo "$SALIDA_WC"
echo "> Comparación de las salidas con diff:"
diff --ignore-a... | Shell |
#!/bin/bash
directorio="../src/"
nombre_ejecutable="tp1C"
nombre_entrada1="arch1.in"
sh compilarLINUX.sh
valgrind --leak-check=full -v ./$nombre_ejecutable -w -l -c $nombre_entrada1
| Shell |
#!/bin/bash
ARCHIVO_PRUEBA="arch1.in"
ARGUMENTOS=("-l" "-w" "-c" "-l -w" "-w -c" "-l -c" "-l -w -c")
echo "> Contenido del archivo de prueba $ARCHIVO_PRUEBA:"
cat $ARCHIVO_PRUEBA
for i in "${ARGUMENTOS[@]}"
do
echo ""
echo "> Argumentos configurados: $i"
SALIDA_TP=`./tp1 $i $ARCHIVO_PRUEBA`
echo "> Salida de TP... | Shell |
#!/bin/bash
TEXTO_PRUEBA="Don’t panic"
echo "> Texto de prueba:"
echo $TEXTO_PRUEBA
SALIDA_TP=`echo "$TEXTO_PRUEBA" | ./tp1`
echo "> Salida de TP1:"
echo "$SALIDA_TP"
SALIDA_WC=`echo "$TEXTO_PRUEBA" | wc`
echo "> Salida de WC de UNIX:"
echo "$SALIDA_WC"
echo "> Comparación de las salidas con diff:"
diff --ignore-a... | Shell |
#!/bin/bash
directorio="../src"
nombre_ejecutable="tp1C"
gcc -Wall -lm -o $nombre_ejecutable ${directorio}/*.c
| Shell |
#!/bin/bash
directorio="/root/orgaTP1"
nombre_ejecutable="tp1C"
gcc -Wall -lm -o ${directorio}/tests/${nombre_ejecutable} -g ${directorio}/src/*.c
| Shell |
#!/bin/bash
sudo ifconfig lo:0 172.20.0.1
EJECUTABLE="tp1A"
DIRECTORIO_PROYECTO="/home/dario/workspace/orgaTP1"
DIRECTORIO_GUEST="/root/orgaTP1"
#Eliminar la version vieja
ssh -p 2222 root@127.0.0.1 rm -rf orgaTP1
#Copiar la version nueva
scp -q -P 2222 -r $DIRECTORIO_PROYECTO root@127.0.0.1:/root
#Compilar
echo "--... | Shell |
#!/bin/bash
directorio="/root/orgaTP1/src"
nombre_ejecutable="/root/orgaTP1/tests/tp1A"
gcc -Wall -lm -o $nombre_ejecutable -g $directorio/Count.S $directorio/Errors.c $directorio/Help.c $directorio/GlobalVariables.c $directorio/Main.c $directorio/Info.c $directorio/Wc.S $directorio/IsSpace.S
| Shell |
#!/bin/bash
ARCHIVOS_PRUEBA=("1.in" "2.in")
for i in "${ARCHIVOS_PRUEBA[@]}"
do
echo "> Contenido del archivo de prueba $i:"
cat $i
done
SALIDA_TP=`./tp1 "${ARCHIVOS_PRUEBA[@]}"`
echo "> Salida de TP1:"
echo "$SALIDA_TP"
SALIDA_WC=`wc "${ARCHIVOS_PRUEBA[@]}"`
echo "> Salida de WC de UNIX:"
echo "$SALIDA_WC"
echo... | Shell |
#!/bin/bash
ARCHIVO_PRUEBA="arch2.in"
LINEAS_IMPRIMIR="600"
echo "> Primeras $LINEAS_IMPRIMIR lineas del archivo de prueba $ARCHIVO_PRUEBA:"
head -c$LINEAS_IMPRIMIR $ARCHIVO_PRUEBA
echo ""
SALIDA_TP=`./tp1 $ARCHIVO_PRUEBA`
echo "> Salida de TP1:"
echo $SALIDA_TP
SALIDA_WC=`wc $ARCHIVO_PRUEBA`
echo "> Salida de WC d... | Shell |
#!/bin/bash
./tp1 "archivo.inexistente"
| Shell |
#!/bin/bash
ARCHIVO_PRUEBA="arch1.in"
echo "> Contenido del archivo de prueba $ARCHIVO_PRUEBA:"
cat $ARCHIVO_PRUEBA
SALIDA_TP=`./tp1 $ARCHIVO_PRUEBA`
echo "> Salida de TP1:"
echo $SALIDA_TP
SALIDA_WC=`wc $ARCHIVO_PRUEBA`
echo "> Salida de WC de UNIX:"
echo $SALIDA_WC
echo "> Comparación de las salidas con diff:"
d... | Shell |
#!/bin/bash
directorio="../src/"
nombre_ejecutable="tp1C"
gcc -Wall -lm -o $nombre_ejecutable -g $directorio/*.c
| Shell |
#!/bin/bash
ARCHIVO_PRUEBA="arch1.in"
ARGUMENTOS=("-l" "-w" "-c" "-l -w" "-w -c" "-l -c" "-l -w -c")
echo "> Contenido del archivo de prueba $ARCHIVO_PRUEBA:"
cat $ARCHIVO_PRUEBA
for i in "${ARGUMENTOS[@]}"
do
echo ""
echo "> Argumentos configurados: $i"
SALIDA_TP=`./tp1 $i $ARCHIVO_PRUEBA`
echo "> Salida de TP... | Shell |
#!/bin/bash
directorio="/root/orgaTP1"
nombre_ejecutable="tp1C"
gcc -Wall -lm -o ${directorio}/tests/${nombre_ejecutable} -g ${directorio}/src/*.c
| Shell |
#!/bin/bash
directorio="../src"
nombre_ejecutable="tp1C"
gcc -Wall -lm -o $nombre_ejecutable ${directorio}/*.c
| Shell |
#!/bin/bash
directorio="/root/orgaTP1/src"
nombre_ejecutable="/root/orgaTP1/tests/tp1A"
gcc -Wall -lm -o $nombre_ejecutable -g $directorio/Count.S $directorio/Errors.c $directorio/Help.c $directorio/GlobalVariables.c $directorio/Main.c $directorio/Info.c $directorio/Wc.S $directorio/IsSpace.S
| Shell |
#!/bin/bash
ARCHIVOS_PRUEBA=("1.in" "2.in")
for i in "${ARCHIVOS_PRUEBA[@]}"
do
echo "> Contenido del archivo de prueba $i:"
cat $i
done
SALIDA_TP=`./tp1 "${ARCHIVOS_PRUEBA[@]}"`
echo "> Salida de TP1:"
echo "$SALIDA_TP"
SALIDA_WC=`wc "${ARCHIVOS_PRUEBA[@]}"`
echo "> Salida de WC de UNIX:"
echo "$SALIDA_WC"
echo... | Shell |
#!/bin/bash
directorio="../src/"
nombre_ejecutable="tp1C"
gcc -Wall -lm -o $nombre_ejecutable -g $directorio/*.c
| Shell |
#!/bin/bash
directorio="../src/"
nombre_ejecutable="tp1C"
nombre_entrada1="arch1.in"
sh compilarLINUX.sh
valgrind --leak-check=full -v ./$nombre_ejecutable -w -l -c $nombre_entrada1
| Shell |
#!/bin/bash
ARCHIVO_PRUEBA="arch2.in"
LINEAS_IMPRIMIR="600"
echo "> Primeras $LINEAS_IMPRIMIR lineas del archivo de prueba $ARCHIVO_PRUEBA:"
head -c$LINEAS_IMPRIMIR $ARCHIVO_PRUEBA
echo ""
SALIDA_TP=`./tp1 $ARCHIVO_PRUEBA`
echo "> Salida de TP1:"
echo $SALIDA_TP
SALIDA_WC=`wc $ARCHIVO_PRUEBA`
echo "> Salida de WC d... | Shell |
#!/bin/bash
ARCHIVO_PRUEBA="arch1.in"
echo "> Contenido del archivo de prueba $ARCHIVO_PRUEBA:"
cat $ARCHIVO_PRUEBA
SALIDA_TP=`./tp1 $ARCHIVO_PRUEBA`
echo "> Salida de TP1:"
echo $SALIDA_TP
SALIDA_WC=`wc $ARCHIVO_PRUEBA`
echo "> Salida de WC de UNIX:"
echo $SALIDA_WC
echo "> Comparación de las salidas con diff:"
d... | Shell |
#!/bin/bash
sudo ifconfig lo:0 172.20.0.1
EJECUTABLE="tp1A"
DIRECTORIO_PROYECTO="/home/dario/workspace/orgaTP1"
DIRECTORIO_GUEST="/root/orgaTP1"
#Eliminar la version vieja
ssh -p 2222 root@127.0.0.1 rm -rf orgaTP1
#Copiar la version nueva
scp -q -P 2222 -r $DIRECTORIO_PROYECTO root@127.0.0.1:/root
#Compilar
echo "--... | Shell |
#!/bin/bash
./tp1 "archivo.inexistente"
| Shell |
#!/bin/bash
sh compilar.sh
./tp2 -s -l 3 passwd_4 | tee clavesDesencriptadasPasswd_4
| Shell |
#!/bin/bash
directorio_default="../src(optimizado)/" # cambiar por "../src/" opcionalmente
nombre_ejecutable="tp2"
# Se puede especificar un subdirectorio opcionalmente
# Se usa -pg para compilarlo para profiling
gcc -Wall -pg -lm -o $nombre_ejecutable ${1:-$directorio_default}*.c
| Shell |
#!/bin/bash
sh compilar.sh
./tp2 -l 2 passwd_2 | tee clavesDesencriptadasPasswd_2
| Shell |
#!/bin/bash
sh desencriptarPwd1.sh
sh desencriptarPwd2.sh
sh desencriptarPwd3.sh
sh desencriptarPwd4.sh
| Shell |
#!/bin/bash
sh compilar.sh
./tp2 -l 1 passwd_1 | tee clavesDesencriptadasPasswd_1
| Shell |
#!/bin/bash
EJECUTABLE=tp2
PROGRAMA=$1
if [ "$2" = "" ]; then
RECOMBINACIONES=0
else
RECOMBINACIONES=$2
fi
# ejecuto el programa para generar el gmon.out
sh $PROGRAMA
# renombro el output para recombinarlo luego
mv gmon.out gmon.sum
# recombino los outputs para mejorar los resultados
for (( i=1; i <= "$RECOMBINA... | Shell |
#!/bin/bash
directorio_default="../src(optimizado)/" # cambiar por "../src/" opcionalmente
nombre_ejecutable="tp2"
# Se puede especificar un subdirectorio opcionalmente
# Se usa -pg para compilarlo para profiling
gcc -Wall -pg -lm -o $nombre_ejecutable ${1:-$directorio_default}*.c
| Shell |
#!/bin/bash
sh compilar.sh
./tp2 -s -l 3 passwd_4 | tee clavesDesencriptadasPasswd_4
| Shell |
#!/bin/bash
sh compilar.sh
./tp2 -l 3 passwd_3 | tee clavesDesencriptadasPasswd_3
| Shell |
#!/bin/bash
sh compilar.sh
./tp2 -l 1 passwd_1 | tee clavesDesencriptadasPasswd_1
| Shell |
#!/bin/bash
sh desencriptarPwd1.sh
sh desencriptarPwd2.sh
sh desencriptarPwd3.sh
sh desencriptarPwd4.sh
| Shell |
#!/bin/bash
sh compilar.sh
./tp2 -l 3 passwd_3 | tee clavesDesencriptadasPasswd_3
| Shell |
#!/bin/bash
sh compilar.sh
./tp2 -l 2 passwd_2 | tee clavesDesencriptadasPasswd_2
| Shell |
#!/bin/bash
EJECUTABLE=tp2
PROGRAMA=$1
if [ "$2" = "" ]; then
RECOMBINACIONES=0
else
RECOMBINACIONES=$2
fi
# ejecuto el programa para generar el gmon.out
sh $PROGRAMA
# renombro el output para recombinarlo luego
mv gmon.out gmon.sum
# recombino los outputs para mejorar los resultados
for (( i=1; i <= "$RECOMBINA... | Shell |
#!/bin/bash
#Declare some variables:
adt_directory="/Applications/Adobe Flash Builder 4.6/sdks/4.6.0/bin"
pushd $1
native_library=$2
library_name=$3
native_directory=$4
build_type=$5
library_directory="../../""${library_name}"
dest_ANE="${library_name}".ane
extension_XML="${library_name}"-extension.xml
platform_o... | Shell |
#!/bin/bash
./package_ane.sh ../binaries/ane libNativeDropboxLoginExtensioniOS.a NativeDropboxLoginExtensionLib ../../NativeDropboxLoginExtensioniOS Debug
| 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
# 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
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
adb shell pm clear com.google.android.apps.iosched | 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
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
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell am force-stop com.google.android.apps.iosched
| 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
$ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db" | 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
# Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Generates various components of GLSL ES preprocessor.
run_flex()
{
input_file=$script_dir/$1
output_source=$script_dir/$2
flex --noli... | Shell |
#!/bin/bash
# Copyright (c) 2010 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Generates GLSL ES parser - glslang_lex.cpp, glslang_tab.h, and glslang_tab.cpp
run_flex()
{
input_file=$script_dir/$1.l
output_source... | Shell |
#!/bin/sh
#
# Script for starting @doc.name@ version @doc.version@ under Unix
# Set either JAVA_HOME to point at your Java Development Kit installation.
# or PATH to point at the java command
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\... | Shell |
#!/bin/sh
#
# Script for starting @doc.name@ version @doc.version@ with jetty webserver under Unix
# Set either JAVA_HOME to point at your Java Development Kit installation.
# or PATH to point at the java command
usage()
{
echo "Usage: $0 {run|start|stop|restart|supervise} "
echo "run : starts rapla-serve... | Shell |
#!/bin/sh
#
# Usage:
#
# for a list of all available build-targets type
# ./build.sh -projecthelp
#
chmod u+x ./bin/antRun
chmod u+x ./bin/ant
export ANT_HOME=.
$PWD/bin/ant -logger org.apache.tools.ant.NoBannerLogger -emacs $@
| Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/bash
mkdir -p Library/SDKs/CorePlotSDK
mkdir -p Library/Frameworks
mkdir -p Library/Developer/Shared/Documentation/DocSets
mkdir -p CorePlot/Binaries/iOS/CorePlot
unzip CorePlot/Binaries/iOS/CorePlot.zip -d CorePlot/Binaries/iOS/CorePlot
cp -r CorePlot/Binaries/iOS/CorePlot/CorePlotSDK/* Library/SDKs/CorePlotS... | Shell |
#!/bin/bash
#
# RunMacOSUnitTests.sh
# Copyright 2008 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 require... | Shell |
#!/bin/bash
# RunIPhoneUnitTest.sh
# Copyright 2008 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 ... | Shell |
#!/bin/sh
# BuildAllSDKs.sh
#
# This script builds both the Tiger and Leopard versions of the requested
# target in the current basic config (debug, release, debug-gcov). This script
# should be run from the same directory as the GTM Xcode project file.
#
# Copyright 2006-2008 Google Inc.
#
# Licensed under the Apache ... | Shell |
JMP=4466 #0x1172
RUTINE=5234 #0x130
cp tareas.bkp tareas.tsk
nasm jmp.asm
nasm hack.asm
JMP_SIZE=`ls -l jmp | cut -d\ -f 5`
HACK_SIZE=`ls -l hack | cut -d\ -f 5`
dd if=jmp bs=1 count=$JMP_SIZE seek=$JMP conv=notrunc of=tareas.tsk status=noxfer
dd if=hack bs=1 count=$HACK_SIZE seek=$RUTINE conv=notrunc of=tare... | Shell |
#!/bin/sh
#
# run unit tests under nose if available,
# optionally with coverage
#
# test.sh [cover [gluon.rewrite]]
#
# easy_install nose
# easy_install coverage
#
NOSETESTS=nosetests
COVER=gluon # change to (eg) gluon.rewrite to collect coverage stats on a single module
PROCESSES=4
WHICH=`which $NOSETESTS`
if ... | Shell |
echo "This script will:
1) Install modules needed to run web2py on Fedora and CentOS/RHEL
2) Install Python 2.6 to /opt and recompile wsgi if not provided
2) Install web2py in /opt/web-apps/
3) Configure SELinux and iptables
5) Create a self signed ssl certificate
6) Setup web2py with mod_wsgi
7) Create virtualhost ent... | Shell |
# install virtualenv
easy_install virtualenv
python virtualenv.py w2env
# install missing modules
w2env/bin/easy_install -U pysqlite hashlib
# donwload web2py and unpack
wget http://web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip
cd web2py
# start web2py using command-line script
w2env/bin/python web2py.... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.