code
stringlengths
1
1.96M
language
stringclasses
1 value
find . -iname '*.pyc' -delete
Shell
#!/bin/bash check() { [ -x /sbin/cryptsetup-reencrypt ] || return 1 return 255 } depends() { echo dm rootfs-block return 0 } installkernel() { instmods dm_crypt =crypto } install() { dracut_install cryptsetup-reencrypt inst_hook cmdline 30 "$moddir/parse-reencrypt.sh" inst_simple "$...
Shell
#!/bin/sh # # $1=$device [$2=keyfile|none [$3=size]] # [ -d /sys/module/dm_crypt ] || modprobe dm_crypt [ -f /tmp/reencrypted ] && exit 0 . /lib/dracut-lib.sh # if device name is /dev/dm-X, convert to /dev/mapper/name if [ "${1##/dev/dm-}" != "$1" ]; then device="/dev/mapper/$(dmsetup info -c --noheadings -o na...
Shell
#!/bin/bash which cryptsetup-reencrypt >/dev/null 2>&1 || exit 1 exit 0
Shell
#!/bin/bash inst cryptsetup-reencrypt inst_hook cmdline 30 "$moddir/parse-reencrypt.sh" inst "$moddir"/reencrypt.sh /sbin/reencrypt
Shell
#!/bin/sh REENC=$(getargs rd_REENCRYPT=) REENC_DEV=$(echo $REENC | sed 's/:.*//') REENC_SIZE=$(echo $REENC | sed -n 's/.*://p') REENC_KEY=$(getargs rd_REENCRYPT_KEY=) if [ -z "$REENC_KEY" ] ; then REENC_KEY=none fi if [ -n "$REENC_DEV" ] ; then { printf 'SUBSYSTEM!="block", GOTO="reenc_end"\n' printf 'ACTI...
Shell
#!/bin/bash # Try to get LUKS info and master key from active mapping and prepare parameters for cryptsetup. # # Copyright (C) 2010,2011,2012 Milan Broz <gmazyland@gmail.com> # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions...
Shell
#!/bin/bash CRYPTSETUP=../src/cryptsetup REENC=../src/cryptsetup-reencrypt DEV_NAME=reenc9768 DEV_NAME2=reenc1273 IMG=reenc-data KEY1=key1 PWD1="93R4P4pIqAH8" function remove_mapping() { [ -b /dev/mapper/$DEV_NAME2 ] && dmsetup remove $DEV_NAME2 [ -b /dev/mapper/$DEV_NAME ] && dmsetup remove $DEV_NAME [ ! -z "$LO...
Shell
#!/bin/bash VERITYSETUP=../src/veritysetup DEV_NAME=verity3273 DEV_OUT="$DEV_NAME.out" IMG=verity-data IMG_HASH=verity-hash function remove_mapping() { [ -b /dev/mapper/$DEV_NAME ] && dmsetup remove $DEV_NAME [ ! -z "$LOOPDEV1" ] && losetup -d $LOOPDEV1 >/dev/null 2>&1 rm -f $IMG $IMG_HASH $DEV_OUT >/dev/null 2>&...
Shell
#!/bin/bash # check hash processing in create command CRYPTSETUP=../src/cryptsetup DEV_NAME=dmc_test KEY_FILE=keyfile DEV2=$DEV_NAME"_x" dmremove() { # device udevadm settle >/dev/null 2>&1 dmsetup remove $1 >/dev/null 2>&1 } cleanup() { [ -b /dev/mapper/$DEV2 ] && dmremove $DEV2 [ -b /dev/mapper/$DEV_NAME ] &...
Shell
#!/bin/bash PS4='$LINENO:' CRYPTSETUP=../src/cryptsetup CRYPTSETUP_VALGRIND=../src/.libs/cryptsetup CRYPTSETUP_LIB_VALGRIND=../lib/.libs DEV_NAME=dummy DEV_NAME2=dummy2 DEV_NAME3=dummy3 ORIG_IMG=luks-test-orig IMG=luks-test IMG10=luks-test-v10 HEADER_IMG=luks-header KEY1=key1 KEY2=key2 KEY5=key5 KEYE=keye PWD0="comp...
Shell
#!/bin/bash CRYPTSETUP="../src/cryptsetup" DEV_NAME="discard-t3st" DEV="" PWD1="93R4P4pIqAH8" cleanup() { [ -b /dev/mapper/$DEV_NAME ] && dmsetup remove $DEV_NAME udevadm settle >/dev/null 2>&1 rmmod scsi_debug 2>/dev/null sleep 2 } fail() { echo "FAILED" cleanup exit 100 } add_device() { modprobe scsi_debu...
Shell
#!/bin/bash # # Test mode compatibility, check input + kernel and cryptsetup cipher status # CRYPTSETUP=../src/cryptsetup DEV_NAME=dmc_test HEADER_IMG=mode-test.img PASSWORD=3xrododenron # cipher-chainmode-ivopts:ivmode CIPHERS="aes twofish serpent" MODES="cbc lrw xts" IVMODES="null benbi plain plain64 essiv:sha256" ...
Shell
#!/bin/sh SUP="--suppressions=./cryptsetup-valg-supps" CHILD="--trace-children=yes --child-silent-after-fork=yes" MALLOC="--malloc-fill=aa" FREE="--free-fill=21" STACK="--max-stackframe=300000" EXTRAS="--read-var-info=yes --show-reachable=yes" LOGFILE="--log-file=./valglog.$(date +%s)_${INFOSTRING}" LEAKCHECK="--leak-c...
Shell
#!/bin/sh SUP="--suppressions=./cryptsetup-valg-supps" CHILD="--trace-children=no --child-silent-after-fork=yes" MALLOC="--malloc-fill=aa" FREE="--free-fill=21" STACK="--max-stackframe=300000" EXTRAS="--read-var-info=yes --show-reachable=yes" LOGFILE="--log-file=./valglog.$(date +%s)_${INFOSTRING}" LEAKCHECK="--leak-ch...
Shell
#!/bin/bash CRYPTSETUP="../src/cryptsetup" DEV="" DEV_STACKED="luks0xbabe" PWD1="93R4P4pIqAH8" PWD2="mymJeD8ivEhE" cleanup() { udevadm settle >/dev/null 2>&1 [ -b /dev/mapper/$DEV_STACKED ] && dmsetup remove $DEV_STACKED >/dev/null 2>&1 rmmod scsi_debug 2>/dev/null sleep 2 } fail() { echo "FAIL" [ -n "$1" ] &&...
Shell
#!/bin/bash # check tcrypt images parsing CRYPTSETUP=../src/cryptsetup TST_DIR=tcrypt-images MAP=tctst PASSWORD="aaaaaaaaaaaa" PASSWORD_HIDDEN="bbbbbbbbbbbb" function remove_mapping() { [ -b /dev/mapper/$MAP ] && dmsetup remove $MAP [ -b /dev/mapper/"$MAP"_1 ] && dmsetup remove "$MAP"_1 [ -b /dev/mapper/"$MAP"_2 ...
Shell
#!/bin/bash CRYPTSETUP=../src/cryptsetup # try to validate using loop-AES losetup/kernel if available LOSETUP_AES=/losetup-aes.old LOOP_DD_PARAM="bs=1k count=10000" DEV_NAME=dummy IMG=loopaes.img KEYv1=key_v1 KEYv2=key_v2 KEYv3=key_v3 LOOPDEV=$(losetup -f 2>/dev/null) function dmremove() { # device udevadm settle ...
Shell
#!/bin/sh # Run this to generate all the initial makefiles, etc. srcdir=`dirname $0` PKG_NAME="cryptsetup" DIE=0 (autopoint --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have autopoint installed." echo "Download the appropriate package for your distribution," echo "or see http:/...
Shell
#!/system/bin/sh DIR=/data/data/org.gaeproxy PATH=$DIR:$PATH case $1 in start) echo " base { log_debug = off; log_info = off; log = stderr; daemon = on; redirector = iptables; } redsocks { local_ip = 127.0.0.1; local_port = 8123; ip = 127.0.0.1; port = $2; type = http-relay; } redsocks { local_ip = 12...
Shell
#!/system/bin/sh DIR=/data/data/org.gaeproxy PYTHONPATH=${1}/python-extras PYTHONPATH=${PYTHONPATH}:${DIR}/python/lib/python2.6/lib-dynload export PYTHONPATH export TEMP=${1}/python-extras export PYTHONHOME=${DIR}/python export LD_LIBRARY_PATH=${DIR}/python/lib case $2 in goagent) echo " [listen] ip = 127.0.0...
Shell
#!/system/bin/sh DIR=/data/data/org.gaeproxy PYTHONPATH=${1}/python-extras PYTHONPATH=${PYTHONPATH}:${DIR}/python/lib/python2.6/lib-dynload export PYTHONPATH export TEMP=${1}/python-extras export PYTHONHOME=${DIR}/python export LD_LIBRARY_PATH=${DIR}/python/lib case $2 in goagent) echo " [listen] ip = 127.0.0...
Shell
#! /bin/bash # Binary of the Texturepacker: TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker # Shared Spritesheet-Output-Definitions: SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/" SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets" SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src...
Shell
#!/bin/sh # Copyright 2014 Google Inc. All rights reserved. # # 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 applica...
Shell
find . -iname '*.pyc' -delete
Shell
#! /bin/bash # Binary of the Texturepacker: TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker # Shared Spritesheet-Output-Definitions: SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/" SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets" SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src...
Shell
#!/bin/sh git submodule update --init --recursive
Shell
#!/bin/bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP versions 4 and 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2010, Cake Software Foundation, Inc. # # Licensed under The ...
Shell
#!/bin/bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP versions 4 and 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2010, Cake Software Foundation, Inc. # # Licensed under The ...
Shell
#!/bin/bash rm includes/* find -name '*.php' -exec grep -l 'include' {} \; > includes/includes.log cd includes cp includes.log others.tmp.0 grep '[^\.]session.php' others.tmp.0 > session.log grep -v '[^\.]session.php' others.tmp.0 > others.tmp.session grep '[^\.]connect.php' others.tmp.session > co...
Shell
#!/bin/bash rm includes/* find -name '*.php' -exec grep -l 'include' {} \; > includes/includes.log cd includes cp includes.log others.tmp.0 grep '[^\.]session.php' others.tmp.0 > session.log grep -v '[^\.]session.php' others.tmp.0 > others.tmp.session grep '[^\.]connect.php' others.tmp.session > co...
Shell
#!/bin/bash # this script download all music found in # ftp://ftp.untergrund.net/users/buzz/exotica/media/audio/UnExoticA/Game/ wget -rc ftp://ftp.untergrund.net/users/buzz/exotica/media/audio/UnExoticA/Game/ # construct the list of Game per each Author find . -name "*.lha" -print | tr -s [./] ' ' | awk '{print $11 ...
Shell
#!/bin/bash # this script download all music found in # ftp://ftp.untergrund.net/users/buzz/exotica/media/audio/UnExoticA/Game/ wget -rc ftp://ftp.untergrund.net/users/buzz/exotica/media/audio/UnExoticA/Game/ # construct the list of Game per each Author find . -name "*.lha" -print | tr -s [./] ' ' | awk '{print $11 ...
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 t...
Shell
#!/bin/bash # # Copyright 2010 Google Inc. All Rights Reserved. # Author: jcgregorio@google.com (Joe Gregorio) # # Creates the documentation set for the library by # running pydoc on all the files in apiclient. # # Notes: You may have to update the location of the # App Engine library for your local system. exp...
Shell
echo "The following files are missing or are not checked in:" hg st echo "Enter to continue" read -e YES echo "The following files are missing from the MANIFEST file:" cat MANIFEST | sort > sorted-manifest.txt hg st --clean| sed "s/^C //" | grep -v "^v3" > sorted-allfiles.txt diff sorted-allfiles.txt sorted-manifest.tx...
Shell
#!/bin/sh # $Id: code-clean.sh,v 1.8 2005/08/11 13:02:08 dries Exp $ find . -name "*~" -type f | xargs rm -f find . -name ".#*" -type f | xargs rm -f find . -name "*.rej" -type f | xargs rm -f find . -name "*.orig" -type f | xargs rm -f find . -name "DEADJOE" -type f | xargs rm -f find . -type f | grep -v ".psp" | gre...
Shell
#!/bin/sh # $Id: code-clean.sh,v 1.8 2005/08/11 13:02:08 dries Exp $ find . -name "*~" -type f | xargs rm -f find . -name ".#*" -type f | xargs rm -f find . -name "*.rej" -type f | xargs rm -f find . -name "*.orig" -type f | xargs rm -f find . -name "DEADJOE" -type f | xargs rm -f find . -type f | grep -v ".psp" | gre...
Shell
#!/bin/sh # $Id: cron-lynx.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
Shell
#!/bin/sh # $Id: cron-curl.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ curl --silent --compressed http://example.com/cron.php
Shell
#!/bin/sh # $Id: cron-curl.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ curl --silent --compressed http://example.com/cron.php
Shell
#!/bin/sh # $Id: cron-lynx.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
Shell
#!/bin/bash # Massive Network Game Object Server # Monitoring Script pid=`ps ax | awk '($5 ~ /mangos-worldd/) { print $1 }'` cpu=`top -b -n 1 -p $pid | awk '($12 ~ /mangos-worldd/) { print $9 }'` #echo $pid #echo $cpu intcpu=${cpu%.*} #echo $intcpu if [ "$intcpu" -gt "95" ] then kill -9 $pid echo "Killed MaNGOS for ...
Shell
#!/bin/bash # Trinity Server # autorestart Script while : do echo "TrinityCore daemon restarted" echo `date` >> crash.log & ./mangosd | tail -n 20 >> crash.log echo " " >> crash.log & pid=`ps ax | awk '($5 ~ /trinitycore/) { print $1 }'` wait $pid echo `date` ", TrinityCore daemon crashed and restarted....
Shell
# Be sure to specify files instead of * when running the script. perl -p -i -e "s/ +$//g" *
Shell
# Be sure to specify files instead of * when running the script. perl -p -i -e "s/\t/ /g" *
Shell
#!/bin/bash # see the README in this directory for usage etc. usage() { echo ''; echo 'Usage: xmlproc.sh -[option] <filename.xml>'; echo 'Specify a target from:'; echo '-v verify xml file conforms to dtd'; echo '-html output in html format (single file)'; echo '-ps output in postscript format'; ...
Shell
#!/bin/sh # Bzgrep wrapped for bzip2, # adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux. ## zgrep notice: ## zgrep -- a wrapper around a grep program that decompresses files as needed ## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca> PATH="/usr/bin:$PATH"; export PA...
Shell
#!/bin/sh # sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh # Bzcmp/diff wrapped for bzip2, # adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux. # Bzcmp and bzdiff are used to invoke the cmp or the diff pro- # gram on compressed files. All options specified are passed #...
Shell
#!/bin/sh # Bzmore wrapped for bzip2, # adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux. PATH="/usr/bin:$PATH"; export PATH prog=`echo $0 | sed 's|.*/||'` case "$prog" in *less) more=less ;; *) more=more ;; esac if test "`echo -n a`" = "-n a"; then # looks like a SysV system: ...
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/bash # 3 Dec 2014 Mohammad Rahimi # automaticly continue the NAMD run until finish # program sumbit the new job before be killed # # job format # ./NAMD.sh start # for start simulation # ./NAMD.sh restart step # for continue if [ $1 == "start" ]; then echo "Start" timeout 85500s mpirun -n 16 /project/de...
Shell
#!/bin/bash # 3 Dec 2014 Mohammad Rahimi # automaticly continue the NAMD run until finish # program sumbit the new job before be killed # # job format # ./NAMD.sh start # for start simulation # ./NAMD.sh restart step # for continue if [ $1 == "start" ]; then echo "Start" timeout 85500s mpirun -n 16 /project/de...
Shell
#!/bin/bash dir=$(dirname "$0") exec "${dir}"/neoemu "$@"
Shell
#!/bin/bash dir=$(dirname "$0") exec "${dir}"/nesemu "$@"
Shell
#!/bin/bash dir=$(dirname "$0") exec "${dir}"/mdemu "$@"
Shell
#!/bin/bash dir=$(dirname "$0") exec "${dir}"/2600emu "$@"
Shell
#!/bin/bash dir=$(dirname "$0") exec "${dir}"/msxemu "$@"
Shell
#!/bin/bash dir=$(dirname "$0") exec "${dir}"/ngpemu "$@"
Shell
#!/bin/bash dir=$(dirname "$0") exec "${dir}"/gbaemu "$@"
Shell
for arg in "$@" do case $arg in *=*) optarg=`expr "X$arg" : '[^=]*=\(.*\)'` ;; esac case "$arg" in --name=*) name=$optarg ;; --id=*) id=$optarg ;; --version=*) version=$optarg ;; --version-code=*) versionCode=$optarg ;; --vendor=*) vendor=$optarg ;; --min-sdk=*) minSDK=$op...
Shell
for arg in "$@" do case $arg in *=*) optarg=`expr "X$arg" : '[^=]*=\(.*\)'` ;; esac #echo $arg case "$arg" in --name=*) name=$optarg ;; --id=*) id=$optarg ;; --version=*) version=$optarg ;; --vendor=*) vendor=$optarg ;; --exec=*) exec=$optarg ;; --required-memory=*) req...
Shell
for arg in "$@" do case $arg in *=*) optarg=`expr "X$arg" : '[^=]*=\(.*\)'` ;; esac case "$arg" in --name=*) name=$optarg ;; --id=*) id=$optarg ;; --version=*) version=$optarg ;; --bundle-name=*) bundleName=$optarg ;; --exec=*) exec=$optarg ;; --vendor=*) vendor=$optarg ...
Shell
# libtool (GNU libtool) 2.4.2 # 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, 2011 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; no...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Ge...
Shell
#! /bin/sh # libpng-config # provides configuration info for libpng. # Copyright (C) 2002, 2004, 2006, 2007 Glenn Randers-Pehrson # This code is released under the libpng license. # For conditions of distribution and use, see the disclaimer # and license in png.h # Modeled after libxml-config. version="@PNGLIB_VER...
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 # # Check the format of the source files in the current directory - checks for a # line length of 80 characters max and no tab characters. # # Optionally arguments are files or directories to check. # # -v: output the long lines (makes fixing them easier) # -e: spawn an editor for each file that needs a chang...
Shell
#! /bin/sh # libpng-config # provides configuration info for libpng. # Copyright (C) 2002 Glenn Randers-Pehrson # This code is released under the libpng license. # For conditions of distribution and use, see the disclaimer # and license in png.h # Modeled after libxml-config. version=1.5.8 prefix="" libdir="" libs...
Shell
#!/bin/sh echo "Running tests. For details see pngtest-log.txt" echo "============ pngtest pngtest.png ==============" > pngtest-log.txt echo "Running test-pngtest.sh" if ./pngtest --strict ${srcdir}/pngtest.png >> pngtest-log.txt 2>&1 then echo " PASS: pngtest --strict pngtest.png" err=0 else echo " FAIL: ...
Shell
#!/bin/sh # install - install a program, script, or datafile scriptversion=2009-04-28.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is ...
Shell
#!/bin/sh # -- grayscale ./png2pnm -noraw ../pngsuite/basn0g01.png basn0g01.pgm ./png2pnm -noraw ../pngsuite/basn0g02.png basn0g02.pgm ./png2pnm -noraw ../pngsuite/basn0g04.png basn0g04.pgm ./png2pnm -noraw ../pngsuite/basn0g08.png basn0g08.pgm ./png2pnm -noraw ../pngsuite/basn0g16.png basn0g16.pgm # -- full-color ./pn...
Shell
#!/bin/sh make -f makefile.std sh png2pnm.sh sh pnm2png.sh
Shell
#!/bin/sh # -- grayscale ./pnm2png basn0g01.pgm basn0g01.png ./pnm2png basn0g02.pgm basn0g02.png ./pnm2png basn0g04.pgm basn0g04.png ./pnm2png basn0g08.pgm basn0g08.png ./pnm2png basn0g16.pgm basn0g16.png # -- full-color ./pnm2png basn2c08.ppm basn2c08.png ./pnm2png basn2c16.ppm basn2c16.png # -- palletted ./pnm2png ba...
Shell
#!/bin/sh # # Run a sequence of tests quietly, without the slow # gamma tests err=0 echo >> pngtest-log.txt echo "============ pngvalid-simple.sh ==============" >> pngtest-log.txt echo "Running test-pngvalid-simple.sh" # The options to test are: # # standard tests with and without progressive reading and interlace # ...
Shell
#!/bin/sh # # Run a sequence of gamma tests quietly err=0 echo >> pngtest-log.txt echo "============ pngvalid-full.sh ==============" >> pngtest-log.txt echo "Running test-pngvalid-full.sh" for gamma in threshold transform sbit 16-to-8 background alpha-mode "transform --expand16" "background --expand16" "alpha-mode -...
Shell
#! /bin/sh # a quick hack script to generate necessary files from # auto* tools. # # WARNING: if you run this you will change the versions # of the tools which are used and, maybe, required! # You can define your own replacements in your environment. # $AUTOCONF, $AUTOMAKE, $AUTOHEADER, $AUTOPOINT, $ACLOCAL and $LIB...
Shell
#! /bin/sh # mkinstalldirs --- make directory hierarchy scriptversion=2006-05-11.19 # 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@gnu.org>...
Shell
# libtool (GNU libtool) 2.4 # 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. There is NO # warranty; not even f...
Shell
#! /bin/sh # # Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009 by # David Turner, Robert Wilhelm, and Werner Lemberg. # # This file is part of the FreeType project, and may only be used, modified, # and distributed under the terms of the FreeType project license, # LICENSE.TXT. By continuing to use, modify, o...
Shell
#!/bin/sh # install - install a program, script, or datafile scriptversion=2010-02-06.18; # 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 TOP_DIR=. OBJ_DIR=. for x in "$@" do case x"$x" in x--srcdir=* | x--topdir=* ) TOP_DIR=`echo $x | sed 's/^--[a-z]*dir=//'` ;; x--builddir=* | x--objdir=* ) OBJ_DIR=`echo $x | sed 's/^--[a-z]*dir=//'` ;; esac done mkdir -p ${OBJ_DIR}/builds/atari/tmp/orig ( cd ${TOP_DIR} && find . -...
Shell
#!/bin/sh # Copyright 2005, 2006, 2007, 2008, 2009, 2010 by # David Turner, Robert Wilhelm, and Werner Lemberg. # # This file is part of the FreeType project, and may only be used, modified, # and distributed under the terms of the FreeType project license, # LICENSE.TXT. By continuing to use, modify, or distribute t...
Shell
NEW= for def in $2; do NEW="${NEW}#define $def " done for inc in $3; do NEW="${NEW}#include $inc " done if [ -f $1 ]; then OLD=`cat $1`" " #echo -n "$NEW" #echo -n "$OLD" if [[ "$NEW" == "$OLD" ]]; then exit 0 fi fi #echo "writing config to $1" echo -n "$NEW" > $1
Shell
#!/bin/bash dir=$(dirname "$0") exec "${dir}"/pceemu "$@"
Shell
#!/bin/bash dir=$(dirname "$0") exec "${dir}"/gbcemu "$@"
Shell
#!/bin/bash dir=$(dirname "$0") exec "${dir}"/s9x "$@"
Shell
cp display.png ../../../wiki/descpic/. cp pixel.png ../../../wiki/descpic/. cp bitmap.png ../../../wiki/descpic/. cp box.png ../../../wiki/descpic/. cp frame.png ../../../wiki/descpic/. cp clear_pixel.png ../../../wiki/descpic/. cp text_abc.png ../../../wiki/descpic/. cp rot0.png ../../../wiki/descpic/. cp rot90.png .....
Shell
#!/bin/bash for i in $( ls *.png); do echo png: ${i%.png} convert $i ../xbm/${i%.png}.xbm sed -i "y/-/_/" ../xbm/${i%.png}.xbm sed -i "s/] = {/] U8G_PROGMEM = {/" ../xbm/${i%.png}.xbm done
Shell
#!/bin/bash rm *-44.png *-28.png *-28.png for i in $( ls *.png); do echo convert: ${i%.png} # convert $i -gravity center -extent 48x48 -filter Hermite -resize 44x44 -threshold 50% ${i%.png}-44.png convert $i -gravity center -extent 48x48 -filter Triangle -resize 28x28 -threshold 50% ${i%.png}-28.xbm conv...
Shell
gcc -g -fprofile-arcs -ftest-coverage polygon.c pgtest.c && ./a.out && gcov -b polygon.c #rm *.gcno *.gcda && gcc -g -fprofile-arcs -ftest-coverage polygon.c && ./a.out && gcov -b polygon.c
Shell
cat ../../../fntsrc/*.c > ../../../sfntsrc/u8g_font_data.c
Shell
#!/bin/sh # VER=1.16 curl -v -# -T /home/kraus/src/u8g/u8glib/tools/release/arm/u8glib_arm_v${VER}.zip -uolikraus:xyz -H "X-Bintray-Package:ARM" -H "X-Bintray-Version:${VER}" https://api.bintray.com/content/olikraus/u8glib/ curl -v -# -T /home/kraus/src/u8g/u8glib/tools/release/arduino/u8glib_arduino_v${VER}.zip -uoli...
Shell
cat device.pre > device.wiki ../tools/table2html/table2html device.table >> device.wiki cat device.post >> device.wiki cp device.wiki ../../wiki/. pushd . cd ../../wiki hg pull hg update hg commit -m "device table update" hg push popd
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 # # Copyright 2013 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 adb shell pm clear com.google.android.apps.iosched
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 # 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_BitmapCache VERBOSE
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