code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
./kernel -boxsize 8 -nsteps 1
./kernel -boxsize 16 -nsteps 1
./kernel -boxsize 32 -nsteps 1
./kernel -boxsize 64 -nsteps 1
./kernel -boxsize 128 -nsteps 1
| Shell |
#!/bin/sh
HOME_DIR='/home/igor/freelance/8minutes'
PPATH='/home/igor/freelance/8minutes/minutes'
exec /usr/bin/uwsgi \
--master \
--home ${HOME_DIR} \
--socket /tmp/prr.sock \
--chmod-socket \
--module wsgi \
--pythonpath ${PPATH}
| 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 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
javac com/darshancomputing/BatteryIndicatorPro/Test.java && java com.darshancomputing.BatteryIndicatorPro.Test
| Shell |
#!/bin/sh
# After initial checkout from svn, you'll want to run this as your first step.
android update project --path . --name "BatteryBot" --target "android-19"
| Shell |
#!/bin/sh
scp -q res/values/strings.xml linode:ath/incoming/en.xml
wget --quiet -O /dev/null --ignore-length --post-data="" http://ath.darshancomputing.com/bi/load_new_en
if [ "$?" -ne "0" ]; then
echo "Sorry, something didn't work!"
exit 1
fi
| Shell |
#!/bin/bash
#ruby generate_images.rb
#for i in res/drawable/b[0-9]*.png; do mogrify -resize 25x25 $i; done
#gimp res/drawable/b100.png
#for i in res/drawable/*.png; do mogrify -sharpen 25x25 $i; done
# shift ("roll") images 1px to the right
# for i in numbers/*.png; do convert $i -roll +1+0 $i; done
d=`dirname $(rea... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
RED="0.5 0.5 0.5 0 0 0 0 0 0"
GREEN="0 0 0 0.5 0.5 0.5 0 0 0"
for x in btn_zoom_down_disabled.9 btn_zoom_down_disabled_focused.9 btn_zoom_down_normal.9 btn_zoom_up_disabled.9 btn_zoom_up_disabled_focused.9 btn_zoom_up_normal.9 btn_zoom_width_normal ; do
conv... | Shell |
#!/bin/sh
# make sure ndk-build is in path
SCRIPTDIR=`dirname $0`
MUPDF_FILE=mupdf-snapshot-20111207.tar.gz
MUPDF=mupdf
#MUPDF_FILE=mupdf-0.9-source.tar.gz
#MUPDF=mupdf-0.9
FREETYPE=freetype-2.4.6
OPENJPEG=openjpeg_v1_4_sources_r697
JBIG2DEC=jbig2dec-0.11
JPEGSRC=jpegsrc.v8a.tar.gz
JPEGDIR=jpeg-8a
cd $SCRIPTDIR/../de... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
for x in upfolder folder home recent1 recent2 recent3 recent4 recent5 ; do
convert res/drawable-hdpi/$x.png -resize 66.7% res/drawable-mdpi/$x.png
convert res/drawable-hdpi/$x.png -resize 50% res/drawable-ldpi/$x.png
done
| Shell |
# A script for linking using gcc 3.0+
cd debug
rm -rf *.so *.a 2> /dev/null
CC=g++
# Flags needed for linking
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mt = Support multi-threaded code
# -shared = Create a shared l... | Shell |
# Compilation script for gcc 3.0+
mkdir debug 2> /dev/null
cd debug
rm -rf *.o 2> /dev/null
CC=g++
# Flags needed for compilation
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mthread = Support multi-threaded code
# -c ... | Shell |
# Compilation script for gcc 3.0+
mkdir debug 2> /dev/null
cd debug
rm -rf *.o 2> /dev/null
CC=g++
# Flags needed for compilation
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mthread = Support multi-threaded code
# -c ... | Shell |
# A script for linking using gcc 3.0+
cd debug
rm -rf *.so *.a 2> /dev/null
CC=g++
# Flags needed for linking
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mt = Support multi-threaded code
# -shared = Create a shared l... | Shell |
# A script for linking using gcc 3.0+
cd debug
rm -rf *.so *.a 2> /dev/null
CC=g++
# Flags needed for linking
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mt = Support multi-threaded code
# -shared = Create a shared l... | Shell |
# Compilation script for gcc 3.0+
mkdir debug 2> /dev/null
cd debug
rm -rf *.o 2> /dev/null
CC=g++
# Flags needed for compilation
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mthread = Support multi-threaded code
# -c ... | Shell |
# A script for linking using gcc 3.0+
cd debug
rm -rf *.so *.a 2> /dev/null
CC=g++
# Flags needed for linking
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mt = Support multi-threaded code
# -shared = Create a shared l... | Shell |
# Compilation script for gcc 3.0+
mkdir debug 2> /dev/null
cd debug
rm -rf *.o 2> /dev/null
CC=g++
# Flags needed for compilation
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mthread = Support multi-threaded code
# -c ... | Shell |
# A script for linking using gcc 3.0+
cd debug
rm -rf *.so *.a 2> /dev/null
CC=g++
# Flags needed for linking
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mt = Support multi-threaded code
# -shared = Create a shared l... | Shell |
# Compilation script for gcc 3.0+
mkdir debug 2> /dev/null
cd debug
rm -rf *.o 2> /dev/null
CC=g++
# Flags needed for compilation
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mthread = Support multi-threaded code
# -c ... | Shell |
# A script for linking using gcc 3.0+
cd debug
rm -rf *.so *.a 2> /dev/null
CC=g++
# Flags needed for linking
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mt = Support multi-threaded code
# -shared = Create a shared l... | Shell |
# Compilation script for gcc 3.0+
mkdir debug 2> /dev/null
cd debug
rm -rf *.o 2> /dev/null
CC=g++
# Flags needed for compilation
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mthread = Support multi-threaded code
# -c ... | Shell |
# A script for linking using gcc 3.0+
cd debug
rm -rf *.so *.a 2> /dev/null
CC=g++
# Flags needed for linking
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mt = Support multi-threaded code
# -shared = Create a shared l... | Shell |
# Compilation script for gcc 3.0+
mkdir debug 2> /dev/null
cd debug
rm -rf *.o 2> /dev/null
CC=g++
# Flags needed for compilation
#
# NOTE - These flags are provided in a particular order. This order must be
# maintained for the code to be correctly built.
#
# -mthread = Support multi-threaded code
# -c ... | Shell |
#!/bin/sh
source /home/mysql/.bash_profile
DBHOST=`hostname`
port=""
[ ! -e /u01/mysql/bin/mysql ] && echo "no mysql" && exit 0
[ ! -e /opt/MegaRAID/MegaCli/MegaCli64 ] && yum install -y MegaCli
MYSQL="/u01/mysql/bin/mysql -umonitor -ptb4monitor -h172.23.110.33 -P3306 tianji -e "
#instance_info
#instance_name ,ip ... | Shell |
#!/bin/sh
#Create By Xuezhang@2012-07-05
#For Server OPS Check
warnum=0
rm -rf /tmp/ops_check_record.log
touch /tmp/ops_check_record.log
host=`hostname`
MYSQL="/tmp/mysql -h172.19.70.68 --default-character-set=gbk -umonitor -ptb4monitor"
#All warning write into tmp.log
set_env1(){
kers=`uname -r`
rm -rf /usr/bin/perf... | Shell |
#!/bin/sh
#Create By Xuezhang@2012-07-05
#For Server OPS Check
warnum=0
rm -rf /tmp/ops_check_record.log
touch /tmp/ops_check_record.log
host=`hostname`
[ ! -e /tmp/mysql ] && echo "there have no mysql cleint" && exit 99;
MYSQL="/tmp/mysql -h172.19.70.68 --default-character-set=gbk -umonitor -ptb4monitor"
#All warning ... | Shell |
#!/bin/sh
CONFIG_BLK_CGROUP=y
CONFIG_BLK_DEV_THROTTLING=y
[ ! -d /cgroup ] && mkdir /cgroup/
[ ! -d /cgroup/mygroup ] && mkdir /cgroup/mygroup
mount -t tmpfs cgroup_root /cgroup/
mount -t cgroup -o blkio,cpu mygroup /cgroup/
cd /cgroup/
mkdir my001
mkdir my002
pid=`ps -ef|grep mysqld|grep 3306|awk '{print $2}'` && ec... | Shell |
#!/bin/sh
DBHOST=`hostname`
port=""
source /home/mysql/.bash_profile
#in git
get_base() {
if [ $1 -eq 3306 ]; then
basedir="/u01/mysql"
elif [ $1 -eq 3307 ]; then
basedir="/u01/mysql2"
elif [ $1 -eq 3406 ]; then
basedir="/u01/mysql2"
elif [ $1 -eq 3506 ]; then
basedir="/u01/mysql3"
elif [ $1 -eq 3606 ... | Shell |
#!/bin/sh
num=`cat /etc/issue|grep 6|wc -l`
[ $num -eq 0 ] && echo "not rh6" && exit 9
fnum=`lspci |grep -i 'fusion-io'|wc -l`
if [ $fnum -gt 0 ];then
yum install -b test -y fio-common-3.1.5.126-1.0.el6.x86_64 fio-sysvinit-3.1.5.126-1.0.el6.x86_64 fio-util-3.1.5.126-1.0.el6.x86_64
yum install -b test -y iomemory-vs... | Shell |
#!/bin/sh
#****************************************************************#
# ScriptName: shellScript/mysql_cgroup_2to1.sh
# Author:
# Create Date: 2012-07-31
# Modify Author:
# Modify Date: 2012-07-31
# Function:
#***************************************************************#
#set -x
# echo red text of $1
echo_... | Shell |
#!/bin/bash
#
# update_locales.sh
#
# Created on: 29.07.2010
# Author: Mike Shatohin (brunql)
# Description: Updating translation files for Lightpack project
#
# Lightpack is very simple implementation of the backlight for a laptop
#
# Copyright (c) 2010 Mike Shatohin, mikeshatohin [at] gmail.com
#
# Ligh... | Shell |
#
# lightpack/Software/build-deb.sh
#
# Author: brunql
# Created on: 25.12.11
#
if [ -e "deb/usr/bin/Lightpack" ];
then
echo "Renaming 'deb/usr/bin/Lightpack' to 'deb/usr/bin/lightpack'."
mv deb/usr/bin/Lightpack deb/usr/bin/lightpack
fi
if [ ! -e "deb/usr/bin/lightpack" ];
then
echo "File 'deb/usr/bin/lightpa... | Shell |
#!/bin/bash
mv LightpackDrivePB LightpackDrivePB.app &&
cp LightpackDrivePB.app '/media/68FF-68CE/applications/LightpackDrivePB.app'
| Shell |
#!/bin/sh
cmake -DCMAKE_BUILD_TYPE=Release -DTARGET_TYPE=ARM
make
| Shell |
#!/bin/sh
cmake -DCMAKE_BUILD_TYPE=Debug -DTARGET_TYPE=Linux
make
| Shell |
#!/bin/bash
set -e # fail on any error
set -u # treat unset variables as errors
# ======[ Trap Errors ]======#
set -E # let shell functions inherit ERR trap
# Trap non-normal exit signals:
# 1/HUP, 2/INT, 3/QUIT, 15/TERM, ERR
trap err_handler 1 2 3 15 ERR
function err_handler {
local exit_status=${1:-$?}
lo... | 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/sh
#http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/03-JavaDeployment/JavaDeployment.html
#http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools
set -o verbose #echo onset +o verbose #echo off
# Note: this must ... | Shell |
#!/bin/sh
#http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/03-JavaDeployment/JavaDeployment.html
set -o verbose #echo onset +o verbose #echo off
# Note: this must run on a Mac
myDir="`dirname "$0"`"
cd $myDir
APP_NAME="Android Design Preview"
OUT_PATH=../out/mac
OUT_ZIP="${AP... | 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/rc
nostromoname=your@email.com /usr/you/9bbs/bin/9bbs -f lobby -m /usr/you/9bbs -p 9000 >>[2]/sys/log/9bbs
| Shell |
#!/bin/sh
set -e
fromrepo=
if [ "$1" = -r ]; then shift; fromrepo=1; fi
top=$(pwd)
jar=$1
bases=$2
dirs=$3
text=$4
bin=$5
shift 5;
files="$@"
HG=${HG:-hg}
stage="$top/${jar%.*}"
mkdir -p "$stage"
sed=$(which sed)
if [ "xoo" = x$(echo foo | sed -E 's/f(o)/\1/' 2>/dev/null) ]
then sed() { $sed -E "$@"; }
else sed() {... | Shell |
OPENVPN_PACKAGE_NAME="@PACKAGE_NAME@"
OPENVPN_PACKAGE_TARNAME="@PACKAGE_TARNAME@"
OPENVPN_PACKAGE_VERSION="@PACKAGE_VERSION@"
OPENVPN_PACKAGE_HOST="@host@"
| Shell |
#!@SHELL@
#
# run OpenVPN client against ``test reference'' server
# - check that ping, http, ... via tunnel works
# - check that interface config / routes are properly cleaned after test end
#
# prerequisites:
# - openvpn binary in current directory
# - writable current directory to create subdir for logs
# - t_client... | Shell |
#! /bin/sh
#
# t_lpback.sh - script to test OpenVPN's crypto loopback
# Copyright (C) 2005 Matthias Andree
#
# 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
# of the License, o... | Shell |
#! /bin/sh
#
# t_cltsrv.sh - script to test OpenVPN's crypto loopback
# Copyright (C) 2005, 2006, 2008 Matthias Andree
#
# 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
# of th... | Shell |
#! /bin/sh
echo "${role}:${signal}" >&3
| Shell |
#!/bin/sh
#
# Bring up vpn routing.
# calculate the network address
remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"`
remote_network="${remote_network#*=}"
# add the stuff that doesn't change if it's not already there
grep -q '^202 ' /etc/iproute2/rt_tables
if [ "$?" -ne 0 ]
then
echo 202 vpn.out >> /e... | Shell |
#!/bin/sh
#
# Bring down vpn routing.
# calculate the network address
remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"`
remote_network="${remote_network#*=}"
# clear routing via VPN
ip route del "$remote_network"/"$remote_netmask_bits" via "$5" table vpn.out
ip route del table vpnonly.out via "$5"
iptabl... | Shell |
#!/bin/sh
# Sample script to perform OCSP queries with OpenSSL
# given a certificate serial number.
# If you run your own CA, you can set up a very simple
# OCSP server using the -port option to "openssl ocsp".
# Full documentation and examples:
# http://www.openssl.org/docs/apps/ocsp.html
# Edit the following val... | Shell |
#!/bin/sh
# Copyright (c) 2005-2010 OpenVPN Technologies, Inc.
# Licensed under the GPL version 2
# First version by Jesse Adelman
# someone at boldandbusted dink com
# http://www.boldandbusted.com/
# PURPOSE: This script automatically sets the proper /etc/resolv.conf entries
# as pulled down from an OpenVPN server.... | Shell |
#!/bin/sh
# Copyright (c) 2005-2010 OpenVPN Technologies, Inc.
# Licensed under the GPL version 2
# First version by Jesse Adelman
# someone at boldandbusted dink com
# http://www.boldandbusted.com/
# PURPOSE: This script automatically removes the /etc/resolv.conf entries previously
# set by the companion script "cl... | Shell |
#!/bin/sh
####################################
# Tear Down Ethernet bridge on Linux
####################################
# Define Bridge Interface
br="br0"
# Define list of TAP interfaces to be bridged together
tap="tap0"
ifconfig $br down
brctl delbr $br
for t in $tap; do
openvpn --rmtun --dev $t
done
| Shell |
#!/bin/sh
#################################
# Set up Ethernet bridge on Linux
# Requires: bridge-utils
#################################
# Define Bridge Interface
br="br0"
# Define list of TAP interfaces to be bridged,
# for example tap="tap0 tap1 tap2".
tap="tap0"
# Define physical ethernet interface to be bridged... | Shell |
#!/bin/sh
route add -net 10.0.0.0 netmask 255.255.255.0 gw $5
| Shell |
#!/bin/sh
# stop all openvpn processes
killall -TERM openvpn
| Shell |
#!/bin/sh
# A Sample OpenVPN-aware firewall.
# eth0 is connected to the internet.
# eth1 is connected to a private subnet.
# Change this subnet to correspond to your private
# ethernet subnet. Home will use HOME_NET/24 and
# Office will use OFFICE_NET/24.
PRIVATE=10.0.0.0/24
# Loopback address
LOOP=127.0.0.1
# De... | Shell |
#!/bin/sh
# A sample OpenVPN startup script
# for Linux.
# openvpn config file directory
dir=/etc/openvpn
# load the firewall
$dir/firewall.sh
# load TUN/TAP kernel module
modprobe tun
# enable IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
# Invoke openvpn for each VPN tunnel
# in daemon mode. Alternative... | Shell |
#!/bin/sh
route add -net 10.0.1.0 netmask 255.255.255.0 gw $5
| Shell |
#!/bin/sh
#
# Build an OpenVPN plugin module on *nix. The argument should
# be the base name of the C source file (without the .c).
#
# This directory is where we will look for openvpn-plugin.h
CPPFLAGS="${CPPFLAGS:--I../../../include}"
CC="${CC:-gcc}"
CFLAGS="${CFLAGS:--O2 -Wall -g}"
$CC $CPPFLAGS $CFLAGS -fPIC -... | Shell |
#!/bin/sh
#
# Build an OpenVPN plugin module on *nix. The argument should
# be the base name of the C source file (without the .c).
#
# This directory is where we will look for openvpn-plugin.h
CPPFLAGS="${CPPFLAGS:--I../../..}"
CC="${CC:-gcc}"
CFLAGS="${CFLAGS:--O2 -Wall -g}"
$CC $CPPFLAGS $CFLAGS -fPIC -c $1.c &... | Shell |
#!/bin/sh
#
# Build an OpenVPN plugin module on *nix. The argument should
# be the base name of the C source file (without the .c).
#
# This directory is where we will look for openvpn-plugin.h
CPPFLAGS="${CPPFLAGS:--I../../..}"
CC="${CC:-gcc}"
CFLAGS="${CFLAGS:--O2 -Wall -g}"
$CC $CPPFLAGS $CFLAGS -fPIC -c $1.c &... | Shell |
#!/bin/sh
#
# openvpn This shell script takes care of starting and stopping
# openvpn on RedHat or other chkconfig-based system.
#
# chkconfig: 345 24 76
#
# description: OpenVPN is a robust and highly flexible tunneling application \
# that uses all of the encryption, authentication, a... | Shell |
#!/bin/sh
### BEGIN INIT INFO
# Provides: openvpn
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: This shell script takes care of starting and stopping OpenVP... | Shell |
#!/bin/sh
#
# CA - wrapper around ca to make it easier to use ... basically ca requires
# some setup stuff to be done before you can use it and this makes
# things easier between now and when Eric is convinced to fix it :-)
#
# CA -newca ... will setup the right stuff
# CA -newreq ... will generate a certific... | Shell |
#!/bin/bash
#
# Copyright (C) 2010 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 a... | Shell |
#!/bin/sh
if [ "$1" = "" ]; then
key=../apps/server.pem
else
key="$1"
fi
if [ "$2" = "" ]; then
cert=../apps/server.pem
else
cert="$2"
fi
ssltest="adb shell /system/bin/ssltest -key $key -cert $cert -c_key $key -c_cert $cert"
if adb shell /system/bin/openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key... | Shell |
#!/bin/bash
#
# Copyright (C) 2010 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 a... | Shell |
#!/bin/sh
/bin/rm -f mttest
purify cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/sh
/bin/rm -f mttest
cc -p -DSOLARIS -I../../include -g mttest.c -o mttest -L/usr/lib/libc -ldl -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/sh
#
# build using pthreads where it's already built into the system
#
/bin/rm -f mttest
gcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto -lpthread
| Shell |
#!/bin/sh
#
# build using pthreads
#
# http://www.mit.edu:8001/people/proven/pthreads.html
#
/bin/rm -f mttest
pgcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto
| Shell |
#!/bin/sh
/bin/rm -f mttest
cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/bash
#
# Copyright (C) 2009 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 a... | Shell |
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
scriptversion=2010-11-15.09; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010 Free Software
# Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it un... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
scriptversion=2009-04-28.21; # UTC
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain.
#
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@g... | Shell |
# Generated from ltmain.m4sh.
# libtool (GNU libtool) 2.2.10
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. T... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2011-04-16.09; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
# 2011 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms o... | Shell |
#!/bin/sh
# Get modification time of a file or directory and pretty-print it.
scriptversion=2010-08-21.06; # UTC
# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007, 2009, 2010
# Free Software Foundation, Inc.
# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
#
# This program is free software; you ... | 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
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2011 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
# ylwrap - wrapper for lex/yacc invocations.
scriptversion=2010-02-06.18; # UTC
# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005,
# 2007, 2009, 2010 Free Software Foundation, Inc.
#
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it a... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2011-01-19.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
set -e
#
# usage: util/overlap.sh [directory]
#
# This script runs the overlap example program on a complete directory tree.
#
# Copyright (C) 1996-2011 Markus Franz Xaver Johannes Oberhumer
#
OVERLAP="overlap"
test -x ./examples/overlap && OVERLAP="./examples/overlap"
test -x ./overlap.exe && OVERLAP="./o... | Shell |
#! /bin/sh
set -e
#
# usage: util/checkasm.sh [directory]
#
# This script runs lzotest with all assembler decompressors
# on a complete directory tree.
# It is not suitable for accurate timings.
#
# Copyright (C) 1996-2011 Markus Franz Xaver Johannes Oberhumer
#
LZOTEST="lzotest"
test -x ./lzotest/lzotest && LZOTEST=... | Shell |
#! /bin/sh
set -e
#
# usage: util/check.sh [directory]
#
# This script runs lzotest with all algorithms on a complete directory tree.
# It is not suitable for accurate timings.
#
# Copyright (C) 1996-2011 Markus Franz Xaver Johannes Oberhumer
#
LZOTEST="lzotest"
test -x ./lzotest/lzotest && LZOTEST="./lzotest/lzotest... | Shell |
#! /bin/bash
# libtoolT - Provide generalized library-building support services.
# Generated automatically by (GNU lzo 2.03)
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
#
# This file is part of GNU Libtool:
# ... | Shell |
#! /bin/sh
# vi:ts=4:et
# Copyright (C) 1996-2011 Markus F.X.J. Oberhumer
rm -f *.o liblzo2.a dict.out lzopack.out precomp.out precomp2.out simple.out lzotest.out testmini.out
true
| Shell |
#! /bin/sh
# vi:ts=4:et
set -e
echo "// Using GNU C compiler."
echo "//"
test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../..
UNAME_MACHINE=unknown
CC="gcc -fPIC"
CC="gcc -static"
CC="gcc"
CFLAGS="-Wall -O2 -fomit-frame-pointer"
# delete the next line to disable assembler support
UNAME_MACHINE... | Shell |
#! /bin/sh
# vi:ts=4:et
set -e
echo "// Copyright (C) 1996-2011 Markus F.X.J. Oberhumer"
echo "//"
echo "// Generic Posix/Unix system"
echo "// Generic C compiler"
test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../..
test "X${AR}" = X && AR="ar"
test "X${CC}" = X && CC="cc"
test "X${CFLAGS+... | Shell |
#! /bin/sh
# vi:ts=4:et
test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../..
LZO_CFG_FREESTANDING=1
. $top_srcdir/B/generic/build.sh
| Shell |
ndk-build APP_API=all -j 8
if [ $? = 0 ]; then
cd libs
mkdir -p ../assets
for i in *
do
cp -v $i/minivpn ../assets/minivpn.$i
done
# Removed compiled openssl libs, will use platform so libs
# Reduces size of apk
rm -v */libcrypto.so */libssl.so
fi | 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 |
svn checkout -r 50 http://dsmcbe.googlecode.com/svn/trunk/ bin/Debug/DSMCBE/r50
svn checkout -r 100 http://dsmcbe.googlecode.com/svn/trunk/ bin/Debug/DSMCBE/r100
svn checkout -r 150 http://dsmcbe.googlecode.com/svn/trunk/ bin/Debug/DSMCBE/r150
svn checkout -r 200 http://dsmcbe.googlecode.com/svn/trunk/ bin/Debug/DSMCBE... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.