code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
# run this first: /home/martin/bin/redis-server ./conf/redis.conf
REDIS_HOST=`hostname`
REDIS_PORT=63793
NAME=full-superset
JSON_DIR=./json-$NAME
LOGS_DIR=./logs/to_json-$NAME
NUM_WORKERS=100
mkdir -p $JSON_DIR
mkdir -p $LOGS_DIR
# populate Redis with the google data.
mvn scala:run -Dlauncher="write-... | Shell |
#!/bin/sh
dir="Data/album/*"
for folder in $dir;do
echo $folder
for file in $folder/*;do
base=${file%%.*}
ext=${file##*.}
# echo $base
# echo $ext
thumb="${base}.thumb.${ext}"
if [ ! -f $thumb ]; then
convert -resize x160 $file $thumb
echo "convert -resize x160 $file $thumb"
fi
done
done
#... | Shell |
#!/bin/sh
# definitions
mysql="mysql -uroot -pijiapu.sql.admin -h127.0.0.1 qin"
#mysql="mysql -uqin -p123456 -h127.0.0.1 qin"
head='<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.si... | Shell |
#!/bin/sh
# definitions
mysql="mysql -uroot -pijiapu.sql.admin -h127.0.0.1 qin"
#mysql="mysql -uqin -p123456 -h127.0.0.1 qin"
head='<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.si... | Shell |
chmod 777 Log/ Data/* Data/*/* template_c V/include Public/html
| Shell |
#!/bin/sh
dir="Data/album/*"
for folder in $dir;do
echo $folder
for file in $folder/*;do
base=${file%%.*}
ext=${file##*.}
# echo $base
# echo $ext
thumb="${base}.thumb.${ext}"
if [ ! -f $thumb ]; then
convert -resize x160 $file $thumb
echo "convert -resize x160 $file $thumb"
fi
done
done
#... | Shell |
chmod 777 Log/ Data/album/ Data/figure/ Data/tmp/ V/include template_c/
| Shell |
mvn install:install-file -Dfile=jta/jta.jar -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar
| Shell |
#!/bin/sh
#
# This script loads the latest jQuery and jQuery-UI 1.* versions from Google's CDN
#
# It also loads the 'smoothness' jQuery-UI theme and all referenced images.
#
# @author Andreas Gohr <andi@splitbrain.org>
# @link https://code.google.com/apis/libraries/devguide.html#jquery
# load jQuery
wget -nv https:... | Shell |
#!/bin/bash
objects=( bacteria cell drug desease enzime fungi human_part measure operation science virus )
for obj in ${objects[@]}
do
echo "python index_maker.py $obj > wiki_indexes/wiki_index_$obj.py"
python index_maker.py $obj > wiki_indexes/wiki_index_$obj.py
done
| Shell |
#!/bin/bash
objects=( bacteria cell drug desease enzime fungi human_part measure operation science virus )
for obj in ${objects[@]}
do
echo "python index_maker.py $obj > wiki_indexes/wiki_index_$obj.py"
python index_maker.py $obj > wiki_indexes/wiki_index_$obj.py
done
| Shell |
#
# Take a file of format
# movie:
# user,rating,date
# user,rating,date
# ...
# movie:
# user,rating,date
# ...
#
# and produce an equivalent file of format
# user:
# movie,rating,date
# ...
# user:
# movie,rating,date
#
# NOTE: if sort dies because of lack of temporary space, try setting the TMPDIR
# env var to anoth... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/bin/sh
# 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/sh
# 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/sh
# 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/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
if [ X$2 == X ];then
echo 'Usage: make-blobs <server> <db>'
exit 1
fi
echo "CREATE DATABASE $2" | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 && \
mysql -u wikiadmin -p`wikiadmin_pass` -h $1 $2 < blobs.sql
| Shell |
#!/bin/bash
if [ X$2 == X ];then
echo 'Usage: make-blobs <server> <db>'
exit 1
fi
echo "CREATE DATABASE $2" | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 && \
mysql -u wikiadmin -p`wikiadmin_pass` -h $1 $2 < blobs.sql
| Shell |
#!/bin/bash
chmod 755 /commun/info/L3/Reseau/TpNote/A
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
rm /commun/tpnot/l3info/reseau/*/*
| Shell |
#!/bin/bash
chmod 755 /commun/info/L3/Reseau/TpNote/D
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2008/A4.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/*
| Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/A3.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/D1.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/D5.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 755 /commun/info/L3/Reseau/TpNote/B
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2008/A4.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/*
| Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/C4.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/C3.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 755 /commun/info/L3/Reseau/TpNote/B
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/B3.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/D3.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/A2.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/*
| Shell |
#!/bin/bash
rm /commun/tpnot/l3info/reseau/*/*
| Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/D5.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/D4.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/D1.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/B5.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 755 /commun/info/L3/Reseau/TpNote/D
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/D2.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/B1.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/C2.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/C5.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/A5.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 755 /commun/info/L3/Reseau/TpNote/A
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/A3.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/C1.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/A1.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/B2.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/B4.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 755 /commun/info/L3/Reseau/TpNote/C
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/B2.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/A2.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/*
| Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/A5.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/A1.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/D3.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/C1.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 755 /commun/info/L3/Reseau/TpNote/C
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/C2.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/B5.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/B1.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/B3.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/C4.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/B4.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/D2.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/C3.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/C5.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
#!/bin/bash
chmod 750 /commun/tpnot/l3info/reseau/*
tar zcf $HOME/Rezo/L3Res2007/D4.tgz /commun/tpnot/l3info/reseau/
chmod 770 /commun/tpnot/l3info/reseau/* | Shell |
export DEVKITPRO=/home/user/devkitPro/
export DEVKITPPC=$DEVKITPRO/devkitPPC/
export WIILOAD=tcp:192.168.178.28
#export WIILOAD=tcp:192.168.43.197
/home/user/devkitPro/devkitPPC/bin/wiiload /home/user/WIIHERETIC/boot.dol
| 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 |
#!/bin/bash
hg commit && hg push && cp -r *.html *.xml *.css *.js plugins xhtmlplugins ../wikignpi-wiki/gadgets/ && \
(
a=`hg log -r -1 | grep -e "summary" -e "changeset"`
cd ../wikignpi-wiki
hg commit -m "`echo $a | sed 's=summary=\nsummary='`" && hg push
)
| Shell |
#!/bin/bash
hg commit && hg push && cp -r *.html *.xml *.css *.js plugins xhtmlplugins ../wikignpi-wiki/gadgets/
#this spoof is for the outdated wikigateway xml+html.
#cp sandbox/wikigateway_xmlspoof.html ../wikignpi-wiki/gadgets/
| Shell |
#!/bin/bash
set -e
REVISIONNUMBER=`hg log --template '{rev}\n' -r -1`
HGGCPASSWORD=`grep wikignpi.password ~/.hgrc | sed 's/wikignpi.password = //'`
function packem()
{
for a in ${THEFILES}; do cp -r $a gadgets/; done
zip -r -9 releases/${THEZIPFILE} gadgets
./googlecode_upload.py -s "${1}" -p wikignpi -u wyldc... | Shell |
#!/bin/bash
# This script is a HACK. See source/wpad_leds.c for more information.
# Hide from recursive make
[ "$MAKELEVEL" == "1" ] && unset MAKELEVEL
TMPH=`mktemp`
trap "rm -f $TMPH" EXIT
BASE=wiituka #"`basename $PWD`"
ELF="$BASE.elf"
DOL="$BASE.dol"
# If there are no symbols on the ELF file, delete it
if [ -f ... | Shell |
#!/bin/bash
# This script is a HACK. See source/wpad_leds.c for more information.
# Hide from recursive make
[ "$MAKELEVEL" == "1" ] && unset MAKELEVEL
TMPH=`mktemp`
trap "rm -f $TMPH" EXIT
BASE=wiituka #"`basename $PWD`"
ELF="$BASE.elf"
DOL="$BASE.dol"
# If there are no symbols on the ELF file, delete it
if [ -f ... | Shell |
#!/bin/sh
#Simple script to start wifiplotter
/usr/share/wifiplotter/wifiplotter.py | Shell |
#!/bin/bash
if [ X$2 == X ];then
echo 'Usage: make-blobs <server> <db>'
exit 1
fi
echo "CREATE DATABASE $2" | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 && \
mysql -u wikiadmin -p`wikiadmin_pass` -h $1 $2 < blobs.sql
| Shell |
#!/bin/bash
if [ X$2 == X ];then
echo 'Usage: make-blobs <server> <db>'
exit 1
fi
echo "CREATE DATABASE $2" | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 && \
mysql -u wikiadmin -p`wikiadmin_pass` -h $1 $2 < blobs.sql
| Shell |
d=$0
d1=${d#./}
build_dir=${d1%/*}
if [ -d $build_dir ]
then
echo "cd $build_dir"
cd $build_dir
fi
if [ $# -ne 4 ]
then
echo " Usage:"
echo " $0 <reduction permil> '<dbUri>' <sampling method> <time stamp>"
else
ant run -Dreduction=$1 -DdbUri=$2 -Dsampling=$3 -Dtime=$4
fi | Shell |
result_file=~/traces.txt
if [ $# -lt 1 ]
then
echo " Usage: "
echo " $0 <path_to_traces_folder> <path_to_result_file> <date>"
echo " $0 <path_to_traces_folder> <date>"
echo " $0 <path_to_traces_folder>"
exit 1
fi
if [ -d $1 ]
then
if [ $# -gt 2 ]
then
result_file=$2
fi
for file in $1/*.gz;
... | Shell |
print_usage()
{
echo " Usage:"
echo " $0 <vcontroller|controller> <path to httpcomponents-core/lib> <path to httpcomponents-client/lib> <controller hostname> <number of workers>"
echo " $0 <worker> <path to httpcomponents-core/lib> <path to httpcomponents-client/lib> <controller hostname or IP address> <number_of_th... | Shell |
#!/bin/bash
#
# This script checks the java version and bails if it's less
# than Java6 (because we use @Override annotations on interface
# overriding methods. It then proceeds to do a maven build that
# first cleans, then builds the normal lifecycle through compilation
# unit testing (if available) up to packaging. ... | Shell |
#!/bin/sh
# First you will need to install jslint
# Enable this pre-commit hook by executing the following from the project root directory
# $ ln -s $PWD/scripts/pre-commit .git/hooks/pre-commit
git diff --cached --name-only --diff-filter=ACM | grep -P '\.js$' | xargs jslint --sloppy --plusplus --white --regex
| Shell |
#!/bin/sh
# First you will need to install jslint
# Enable this pre-commit hook by executing the following from the project root directory
# $ ln -s $PWD/scripts/pre-commit .git/hooks/pre-commit
git diff --cached --name-only --diff-filter=ACM | grep -P '\.js$' | xargs jslint --sloppy --plusplus --white --regex
| Shell |
cd orig
for fname in option*.png
do
convert -resize 96x96 $fname ../xhdpi/$fname
convert -resize 72x72 $fname ../hdpi/$fname
convert -resize 48x48 $fname ../mdpi/$fname
convert -resize 32x32 $fname ../ldpi/$fname
done
| Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/bash
if [[ x = "x$WH" ]]; then
cat <<EOF
$0:
The WH environment variable must be set to the USERNAME@HOST of the
remote account where the demo code should be uploaded. Login must be
possible via ssh. (WH is an env var i've had since 10 years, named
after the hoster, which is why it has that weird name.)
E... | Shell |
#!/bin/bash
if [[ x = "x$WH" ]]; then
cat <<EOF
$0:
The WH environment variable must be set to the USERNAME@HOST of the
remote account where the demo code should be uploaded. Login must be
possible via ssh. (WH is an env var i've had since 10 years, named
after the hoster, which is why it has that weird name.)
E... | Shell |
#!/bin/bash
if [[ x = "x$WH" ]]; then
cat <<EOF
$0:
The WH environment variable must be set to the USERNAME@HOST of the
remote account where the demo code should be uploaded. Login must be
possible via ssh. (WH is an env var i've had since 10 years, named
after the hoster, which is why it has that weird name.)
E... | Shell |
#!/bin/bash
if [[ x = "x$WH" ]]; then
cat <<EOF
$0:
The WH environment variable must be set to the USERNAME@HOST of the
remote account where the demo code should be uploaded. Login must be
possible via ssh. (WH is an env var i've had since 10 years, named
after the hoster, which is why it has that weird name.)
E... | Shell |
#!/bin/bash
############################################################################
# Wikiquote-Twitt
# Ver 0.0.2
# (C) Copyleft 2011 Carlos Amorim / porele.blog<anfora>gmail.com
# http://porele.wordpress.com/
# Usage: ./wikiquotetw
############################################################################
TMP=... | Shell |
#!/bin/bash
############################################################################
# Wikiquote-Twitt
# Ver 0.0.2
# (C) Copyleft 2011 Carlos Amorim / porele.blog<anfora>gmail.com
# http://porele.wordpress.com/
# Usage: ./wikiquotetw
############################################################################
TMP=... | Shell |
#!/bin/sh
# Used to update http://openlayers.org/dev/
svn up /www/openlayers/docs/dev;
# Get current 'Last Changed Rev'
REV=`svn info /www/openlayers/docs/dev/ | grep 'Last Changed Rev' | awk '{print $4}'`
# Get the last svn rev
touch /tmp/ol_svn_rev
OLD_REV="o`cat /tmp/ol_svn_rev`"
# If they're not equal, do so... | Shell |
#!/bin/sh
VERSION=$1
svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers-$VERSION
cd OpenLayers-$VERSION/build
./build.py full
cp OpenLayers.js ..
cd ..
mkdir doc/devdocs
mkdir doc/apidocs
rm tools/*.pyc
mkdir /www/openlayers/htdocs/api/$VERSION
cp OpenLayers.js /www/openlayers/htdocs/... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.