code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
rm -rf /tmp/PixelToastereDCompile
hg ci -m 'temporary commit'
cd ..
hg clone PixelToastereD /tmp/PixelToastereDCompile
cp -r PixelToastereD/pixeltoaster-read-only-orig/ /tmp/PixelToastereDCompile/pixeltoaster-read-only
cd -
cd /tmp/PixelToastereDCompile
patch -p0 < pixeltoasterInD.patch
./compileExamples2.... | Shell |
#!/bin/bash
#
PIXEL_LOC=pixeltoaster-read-only
PATH=/opt/dmd2/dmd/linux/bin:$PATH
LINK=g++
LINK_OPTS="-lstdc++ -lrt -lX11 -L/opt/dmd2/dmd/linux/lib -lphobos2"
LINK_OUT="-o"
g++ -O3 -DPLATFORM_UNIX -DPIXELTOASTER_TINY -c ${PIXEL_LOC}/PixelToaster.cpp -o PixelToasterCPP.o
g++ -O3 -DPLATFORM_UNIX -I${PIXEL_LOC} -c Pixel... | 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
# Android Screenshot Library #
##############################
# Startup script #
echo "Android Screenshot Library -- initializing..."
#
if [ -z $ANDROID ]; then
echo "*** Android SDK not found ***"
echo "Make sure the ANDROID variable is pointing to Android SDK root directory"
else
adb="$AN... | Shell |
#!/bin/bash
function dumplib()
{
LIB=$1
for arch in armeabi-v7a armeabi; do
VER=$(dump_syms obj/local/$arch/$LIB |grep MODULE | cut -d " " -f 4)
mkdir -p symbols/$LIB/$VER
dump_syms obj/local/armeabi-v7a/$LIB > symbols/$LIB/$VER/$LIB.sym
done
}
dumplib libopenvpn.so
| Shell |
#!/bin/bash
#NDK_DEBUG=1 ndk-build -j8
# Quick and dirty from ndk-gdb
. ${ANDROID_NDK_HOME}/build/tools/ndk-common.sh
ANDROID_NDK_ROOT=${ANDROID_NDK_HOME}
PROJECT=.
APP_ABI=armeabi-v7a
AWK_SCRIPTS=${ANDROID_NDK_ROOT}/build/awk
PACKAGE_NAME=de.blinkt.openvpn
DEBUG_PORT=5039
JDB_PORT=65534
ADB_CMD=adb
AWK_CMD=awk
ge... | 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../../../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
#
# 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/sh
#
set -e
export LANG=C
export LC_ALL=C
PROGDIR=$(dirname "$0")
PROGNAME=$(basename "$0")
panic () {
echo "ERROR: $@"
exit 1
}
VERBOSE=1
# Dump message is $VERBOSE >= $1
# $1+: message.
dump_n () {
local LOG_LEVEL=$1
shift
if [ "$VERBOSE" -ge "$LOG_LEVEL" ]; then
printf "%s\n" "$@"
fi
}
#... | 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 |
#! /bin/sh
if [ "$ICSCROWDAPIKEY" != "" ]
then
echo "Generating new translation archives"
fetch -q -1 -o - http://api.crowdin.net/api/project/ics-openvpn/export?key=$ICSCROWDAPIKEY
fi
echo "Fetch translation archive"
fetch -q http://crowdin.net/download/project/ics-openvpn.zip
langtoinclude="ca cs de es et fr id ... | Shell |
export O3=$PWD/openvpn3
mkdir -p src/ovpn3/java/net/openvpn/ovpn3
swig -outdir src/ovpn3/java/net/openvpn/ovpn3/ -c++ -java -package net.openvpn.ovpn3 -I$O3/client -I$O3 $O3/javacli/ovpncli.i | Shell |
#!/bin/bash
# Exit on errors
set -e
# Generate git config if the openvpn directory is checked out from git
if [ -d openvpn/.git ]; then
GIT=git
cd openvpn
CONFIGURE_GIT_CHFILES=$($GIT diff-files --name-status -r --ignore-submodules --quiet -- || echo "+")
CONFIGURE_GIT_UNCOMMITTED=$($GIT diff-index --cached... | Shell |
#!/bin/bash
SCRIPT_PATH=$0
RESOLVED_PATH=`readlink -f "$SCRIPT_PATH"`
while [ ! "$RESOLVED_PATH" = "$SCRIPT_PATH" ]; do
SCRIPT_PATH=$RESOLVED_PATH
RESOLVED_PATH=`readlink -f "$SCRIPT_PATH"`
done
GP_HOME=`dirname "$SCRIPT_PATH"`
GP_LOG_DIR="$HOME/.ganttproject.d"
# Check if log dir is present (or create it)
if [ ... | Shell |
#!/bin/bash
cat "$1" | grep -v "^[0-9_.a-zA-Z]\+\\\\\s=" | sed s/^\\\([0-9_\\.a-zA-Z]\\+\\\)\\s\*=\\s\*/\\1\ =\ / | sed s/\\\\u\\\([0-9a-f]\\{4\\}\\\)/\\\\u\\U\\1\\E/g > "$2"
| Shell |
#!/bin/bash
SCRIPT_PATH=$0
GP_HOME=`dirname "$SCRIPT_PATH"`
GP_LOG_DIR="$HOME/.ganttproject.d"
# Check if log dir is present (or create it)
if [ ! -d $GP_LOG_DIR ]; then
if [ -e $GP_LOG_DIR ]; then
echo "file $GP_LOG_DIR exists and is not a directory" >&2
exit 1
fi
if ! mkdir $GP_LOG_DIR ; then
ec... | Shell |
#!/bin/sh
set -e
if [ "$1" = "configure" ]; then
if [ -e /usr/bin/ganttproject ]; then rm -f /usr/bin/ganttproject; fi
ln -s /usr/share/ganttproject/ganttproject /usr/bin/ganttproject
if [ -x "$(which update-menus 2>/dev/null)" ]; then update-menus; fi
if [ -x "$(which update-mime 2>/dev/null)" ]; then update... | Shell |
#!/bin/sh
set -e
if [ -e /usr/bin/ganttproject ]; then rm -f /usr/bin/ganttproject; fi
if [ -x "$(which update-mime >/dev/null 2>&1)" ]; then update-mime; fi
if [ -x "$(which update-menus 2>/dev/null)" ]; then update-menus; fi
| Shell |
#!/bin/sh
REV=`hg log -l 1 | grep changeset | cut -d: -f 2 | tr -d ' '`
echo $(($REV+1))
| Shell |
#! /bin/bash
# Location where to install GanttProject
INSTALL_PATH=/usr/local/share/ganttproject/
# Location of executable of GanttProject
GP_EXECUTABLE=/usr/local/bin/ganttproject
# Assuming that writing at INSTALL_PATH and GP_EXECUTABLE needs root rights:
if [ "$(id -u)" != "0" ]; then
echo "This script must be... | Shell |
#!/bin/bash
open ../../../OpenZelda.app --args $1
| Shell |
#!/bin/sh
if test "x$GTK_DEBUG_LAUNCHER" != x; then
set -x
fi
if test "x$GTK_DEBUG_GDB" != x; then
EXEC="gdb --args"
else
EXEC=exec
fi
name=`basename "$0"`
tmp="$0"
tmp=`dirname "$tmp"`
tmp=`dirname "$tmp"`
bundle=`dirname "$tmp"`
bundle_contents="$bundle"/Contents
bundle_res="$bundle_contents"/Resources... | Shell |
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
#!/bin/bash
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| Shell |
#!/usr/bin/sh
# for this to work you need to have the following installed:
# - Xcode: http://developer.apple.com/
# - git: http://help.github.com/mac-git-installation/
# - mercurial / hg: http://mercurial.berkwood.com/
# pull three20
cd ..
git clone git://github.com/facebook/three20.git
# pull mailcore - new URL
git... | 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/sh
if [ -d "$1" ]
then
echo "old directory 1 is " $1
else
echo $1 "does not exist"
exit 1
fi
if [ -d "$2" ]
then
echo "sum directory 2 is " $2
else
echo $2 "does not exist"
exit 2
fi
new_dir=$2+$1
echo "new temp directory (new + old) is" $new_dir
echo $new_dir >> index
mkdir $new_dir
mkdir $new_dir/spr... | Shell |
#! /bin/sh
ulimit -n 32768
lines=`wc -l $1 | cut -f1 -d' '`
echo $lines
count=2
while [ $count -lt $lines ]; do
#! a=`head -n 14 $1 | tail -n 2`
#! echo $a
a=`head -n $count $1 | tail -n 2 | tr '[:space:]' ','`
#! echo $a
#! echo "${a%?}"
b="${a%?}"
echo $b
perf stat -e $b -a -x @ --aggr-socket -- $2 $3 $4 $5 $6 $7... | Shell |
#!/bin/sh
ulimit -n 32768
DIR=GOODA_DIR
perf record $(grep -v '^$' $DIR/scripts/ivb_cyc_account.txt | grep -v ^# | sed -e 's/^/--pfm-events /') -a -R -- $1 $2 $3 $4
| Shell |
#!/bin/sh
ulimit -n 32768
DIR=GOODA_DIR
perf record $(grep -v '^$' $DIR/scripts/hsw_ep_cyc_account.txt | grep -v ^# | sed -e 's/^/--pfm-events /') -a -R -- $1 $2 $3 $4
| Shell |
#!/bin/sh
ulimit -n 32768
DIR=GOODA_DIR
perf record $(grep -v '^$' $DIR/scripts/snb_cyc_account.txt | grep -v ^# | sed -e 's/^/--pfm-events /') -a -R -- $1 $2 $3 $4
| Shell |
#! /bin/sh
perf record -j any_ret --pfm-events br_inst_retired:near_return:period=40009 -a -R -- $1 $2 $3 $4 $5 $6 $7 $8 $9
| Shell |
#!/bin/sh
ulimit -n 32768
DIR=GOODA_DIR
perf record $(grep -v '^$' $DIR/scripts/wsm_ep_cyc_account.txt | grep -v ^# | sed -e 's/^/--pfm-events /') -a -R -- $1 $2 $3 $4
| Shell |
#!/bin/sh
ulimit -n 32768
DIR=GOODA_DIR
perf stat $(grep -v '^$' $DIR/scripts/wsm-event1.txt | grep -v ^# | sed -e 's/^/--pfm-events /') -a -x @ -- $1 $2 $3 $4
perf stat $(grep -v '^$' $DIR/scripts/wsm-event2.txt | grep -v ^# | sed -e 's/^/--pfm-events /') -a -x @ -- $1 $2 $3 $4
perf stat $(grep -v '^$' $DIR/scripts... | Shell |
#!/bin/sh
ulimit -n 32768
DIR=GOODA_DIR
perf record $(grep -v '^$' $DIR/scripts/wsm_ep_cyc_account_only.txt | grep -v ^# | sed -e 's/^/--pfm-events /') -a -R -- $1 $2 $3 $4
| Shell |
#!/bin/sh
ulimit -n 32768
DIR=GOODA_DIR
perf record $(grep -v '^$' $DIR/scripts/snb_cyc_account.txt | grep -v ^# | sed -e 's/^/--pfm-events /') -a -R -- $1 $2 $3 $4
| Shell |
#!/bin/sh
ulimit -n 32768
perf record --pfm-events cycles:period=2000000,instructions:period=2000000 -a -R -- $1 $2 $3 $4
| Shell |
#! /bin/sh
perf record -j any --pfm-events br_inst_retired:near_taken:period=400009 -a -R -- $1 $2 $3 $4 $5 $6 $7 $8 $9
| Shell |
#!/bin/sh
ulimit -n 32768
DIR=GOODA_DIR
perf record $(grep -v '^$' $DIR/scripts/ivb_ep_cyc_account.txt | grep -v ^# | sed -e 's/^/--pfm-events /') -a -R -- $1 $2 $3 $4
| Shell |
#!/bin/sh
perf record -j any_ret --pfm-events=unhalted_core_cycles:period=2000000,br_inst_retired:near_return:period=20000:precise=1 -a -R
| Shell |
#! /bin/sh
ulimit -n 32768
lines=`wc -l $1 | cut -f1 -d' '`
echo $lines
count=4
while [ $count -lt $lines ]; do
#! a=`head -n 14 $1 | tail -n 4`
#! echo $a
a=`head -n $count $1 | tail -n 4 | tr '[:space:]' ','`
#! echo $a
#! echo "${a%?}"
b="${a%?}"
echo $b
perf stat -e $b -a -x @ --aggr-socket -- $2 $3 $4 $5 $6 $7... | Shell |
#! /bin/sh
if [ -d "$1" ]
then
echo "old directory 1 is " $1
else
echo $1 "does not exist"
exit 1
fi
if [ -d "$2" ]
then
echo "new directory 2 is " $2
else
echo $2 "does not exist"
exit 2
fi
new_dir=$2+$1
echo "new directory (new + old) is" $new_dir
mkdir $new_dir
mkdir $new_dir/spreadsheets
gooda_sum.py ./$1/... | Shell |
#! /bin/sh
gcc -c -O0 kernel2.c
gcc -O0 -static snoop_test.c kernel2.o -lpthread -o snoop_test
| Shell |
#! /bin/sh
#echo at $@
#echo pound $#
count=1
for f in $@
do
filename=$f
# echo filename = $filename
arr[${count}]=$filename
# echo "${arr[${count}]}"
let a=$count+7
fd[${count}]=$a
# echo count = $count, fd[count] = ${fd[${count}]}
eval exec "${fd[${count}]}<$filename"
let count=count+1
done
#e... | Shell |
#! /bin/sh
./fourby.sh hsw_snoop.txt 2 ./snoop_test -i0 -r2 -w0 -L32000 -l256 -S64 -m1 >& snoop_32K_256_i0_r2_w0.txt
grep @ snoop_32K_256_i0_r2_w0.txt > snoop_32K_256_i0_r2_w0_data.txt
./fourby.sh hsw_snoop.txt 2 ./snoop_test -i0 -r2 -w0 -L32000 -l2560 -S64 -m1 >& snoop_32K_2560_i0_r2_w0.txt
grep @ snoop_32K_2560_i0_r... | Shell |
#! /bin/sh
echo $1
echo $2
echo $3
lines1=`wc -l $1 | cut -f1 -d' '`
echo $lines1
lines2=`wc -l $2 | cut -f1 -d' '`
echo $lines2
lines3=`wc -l $3 | cut -f1 -d' '`
echo $lines3
count1=1
count2=1
count3=1
let lines1=lines1+1
let lines2=lines2+1
let lines3=lines3+1
while [ $count1 -lt $lines1 ]; do
head -n $count1 $1 |... | Shell |
#! /bin/sh
ulimit -n 32768
lines=`wc -l $1 | cut -f1 -d' '`
echo $lines
count=4
while [ $count -lt $lines ]; do
#! a=`head -n 14 $1 | tail -n 4`
#! echo $a
a=`head -n $count $1 | tail -n 4 | tr '[:space:]' ','`
#! echo $a
#! echo "${a%?}"
b="${a%?}"
echo $b
perf stat -e $b -a -C $2 -x @ -- $3 $4 $5 $6 $7 $8 $9
let... | Shell |
#! /bin/sh
taskset 0x10 ./cjmp64_nt_$1 $2
| Shell |
#! /bin/sh
taskset 0x10 ./cjmp64_$1 $2
| Shell |
#! /bin/sh
taskset 0x10 ./cjmp16_$1 $2
| Shell |
#! /bin/sh
taskset 0x10 ./cjmp_nt_$1 $2
| Shell |
#! /bin/sh
taskset 0x10 ./cjmp_$1 $2
| Shell |
#! /bin/sh
gcc -O0 cond_jmp.c -o generator
gcc -O0 cond_jmp64.c -o generator64
gcc -O0 cond_jmp16.c -o generator16
gcc -O0 cond_jmp_nt.c -o generator_nt
gcc -O0 cond_jmp64_nt.c -o generator64_nt
gcc -O0 cond_jmp16_nt.c -o generator16_nt
for (( i = 2 ; i < 10 ; i++ )) ; do
j=$((i*10))
./generator64 $j
gcc -O0 ... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.