code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash cat $1 | 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 # 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 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 -e echo $PYLIBRARY #Archive history RY023="cc56d65fbff4" RZ023="539" RY024="d3995087deb0" RZ024="580" #Last archive #The release number of python-openzwave RY025="d3995087deb0" #The release number of openzwave RZ025="580" #Current archive RY=$(echo $RY025) RZ=$(echo $RZ025) #Define variables PYLIBRARY=$...
Shell
#!/bin/bash -e echo "-----------------------------------------------------------------" echo "| Update sources of python-openzwave |" echo "-----------------------------------------------------------------" hg pull https://code.google.com/p/python-openzwave/ hg update echo "----------------...
Shell
#!/bin/bash -e echo "------------------------------------------------------------" echo "| Install openzwave in tmp |" echo "------------------------------------------------------------" python setup-lib.py install --root=build/tmp python setup-api.py install --root=build/tmp echo "---...
Shell
#!/bin/bash -e echo "------------------------------------------------------------" echo "| Install openzwave in tmp |" echo "------------------------------------------------------------" cd .. python setup-lib.py install --root=build/tmp python setup-api.py install --root=build/tmp cd e...
Shell
#!/bin/bash -e echo "------------------------------------------------------------" echo "| Install openzwave in tmp |" echo "------------------------------------------------------------" python setup-lib.py install --root=build/tmp python setup-api.py install --root=build/tmp cd docs r...
Shell
#!/bin/bash -e echo "-----------------------------------------------------------------" echo "| Uninstall python-openzwave |" echo "-----------------------------------------------------------------" set +e ./uninstall.sh set -e echo "-------------------------------------------------...
Shell
#!/bin/bash -e echo "------------------------------------------------------------" echo "| Install openzwave in tmp |" echo "------------------------------------------------------------" set +e rm zwcfg_*.xml rm zwscene.xml set -e cd .. python setup-lib.py install --root=build/tmp pytho...
Shell
#!/bin/bash -e echo "------------------------------------------------------------" echo "| Build openzwave in build/tmp |" echo "------------------------------------------------------------" python setup-lib.py install --root=build/tmp python setup-api.py install --root=build/tmp echo "-------...
Shell
#!/bin/bash -e CLEAN=0 [ 'u'$1 == 'uclean' ] && CLEAN=1 echo "-----------------------------------------------------------------" echo "| Build openzwave |" echo "-----------------------------------------------------------------" cd openzwave/cpp/build/linux [ $CLEAN -eq 1...
Shell
#!/bin/bash -e echo "-----------------------------------------------------------------" echo "| Uninstall python-openzwave |" echo "-----------------------------------------------------------------" [ ! -f install.files ] && echo "Can't find install.files. Abort !!" && exit 1 rm -Rf ...
Shell
#!/bin/sh mvn grails:exec -Dcommand=app-engine -Dargs=package && $APPENGINE_HOME/bin/appcfg.sh update target/war
Shell
#!/bin/sh -e ./test_bitstream ./test_estimatebit ./test_qrencode ./test_qrinput ./test_qrspec ./test_rs ./test_split ./test_mask ./test_mqrspec ./test_mmask ./test_monkey
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 # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2007 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # This file is fre...
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 # 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 # 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 # Wrapper for compilers which do not understand `-c -o'. scriptversion=2009-10-06.20; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software # Foundation, Inc. # Written by Tom Tromey <tromey@cygnus.com>. # # This program is free software; you can redistribute it and/or modify # it under t...
Shell
#!/bin/sh set -e if [ `uname -s` = Darwin ]; then LIBTOOLIZE=glibtoolize else LIBTOOLIZE=libtoolize fi if [ -d /usr/local/share/aclocal ]; then ACLOCAL_DIR=/usr/local/share/aclocal elif [ -d /opt/local/share/aclocal ]; then ACLOCAL_DIR=/opt/local/share/aclocal elif [ -d /usr/share/aclocal ]; then ...
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 # # Starts a basic web server on the port specified. # # ./serve.sh 3000 -> http://localhost:3000 # # Copyright 2012 Eric Bidelman <ebidel@gmail.com> port=$1 if [ $# -ne 1 ] then port=8000 fi if [ $(uname -s) == "Darwin" ] then open=open else open=xdg-open fi $open http://localhost:$port/templat...
Shell
#!/bin/bash cd empty/ ./generate.sh cd ../file_header/ ./generate.sh cd ../single_delta_encoding/ ./generate.sh cd ../double_delta_encoding/ ./generate.sh cd ../with_data/ ./generate.sh
Shell
#!/bin/bash osmosis --rx file=input.xml --mw file=output.map bbox=0,0,0.08,0.08 debug-file=true
Shell
#!/bin/bash osmosis --rx file=input.xml --mw file=output.map bbox=0.1,0.2,0.3,0.4 map-start-position=0.15,0.25 map-start-zoom=16 preferred-language=en comment=testcomment
Shell
#!/bin/bash osmosis --rx file=input.xml --mw file=output.map bbox=-1,0,0,1 encoding=single
Shell
#!/bin/bash osmosis --rx file=input.xml --mw file=output.map bbox=-1,0,0,1 encoding=double
Shell
#!/bin/bash osmosis --rx file=input.xml --mw file=output.map bbox=0.99,0.99,1.01,1.01
Shell
#!/usr/bin/env sh # Run this script in order to rebuild all the modified Cython code of # psage in place. # NOTES: Currently, there is no dependency checking. The main issue # could be if you change stuff in the Sage library which psage code # depends on. In that case, you should force a rebuild of everything. # D...
Shell
cd _build rm html.zip cd html zip -r ../html.zip * cd ../.. echo -n "username:password=" read credentials curl -X POST http://pypi.python.org/pypi \ -F :action=doc_upload -F name=django-jython -F content=@_build/html.zip \ --user $credentials
Shell
#!/usr/bin/env bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ...
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 to in...
Shell
#!/usr/bin/env bash echo $1 [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" case $1 in start) JRUBY_OPTS='' jruby --ng-server & ;; stop) ps axww | grep '[c]om.martiansoftware.nailgun.NGServer' | grep -Po '^\s*(\d+)' | xargs kill ;; esac
Shell
#!/usr/bin/env bash [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" RAKE_SCRIPT=$(which rake) ruby --debug -S rdebug $RAKE_SCRIPT $@
Shell
#!/usr/bin/env bash [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" jruby --debug -S rdebug $@
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 to in...
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 # # 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 # # 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/bash # # Copyright (c) 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 . package_defines.sh rm -r $DISTRIBUTABLE_NAME* #rm -r $RELEASE_NAME*
Shell
#!/bin/bash sudo apt-get install subversion gdebi python-support cdbs devscripts
Shell
#!/bin/bash . package_defines.sh rm -r $DISTRIBUTABLE_NAME* #rm -r $RELEASE_NAME*
Shell
#!/bin/bash . package_defines.sh svn export $PROGNAME $RELEASE_NAME.orig cd $RELEASE_NAME.orig rm -r debian cd .. svn export $PROGNAME $RELEASE_NAME cd $RELEASE_NAME debuild cd .. rm -r $RELEASE_NAME echo -n "Do you want to install the new .deb? [Y/n]: " read character case $character in [Yy] | "" ) echo "You re...
Shell
#!/bin/bash . package_defines.sh cd $PROGNAME dch -m cd .. svn export $PROGNAME $RELEASE_NAME.orig cd $RELEASE_NAME.orig rm -r debian cd .. svn export $PROGNAME $RELEASE_NAME cd $RELEASE_NAME debuild -S -sa cd .. rm -r $RELEASE_NAME echo -n "Do you want to upload the orig.tar.gz to kostmo.ath.cx? [Y/n] " read chara...
Shell
#!/bin/bash PROGNAME=ubudroid-server VERSION=0.1.0 RELEASE_NAME=$PROGNAME-$VERSION DISTRIBUTABLE_NAME=${PROGNAME}_$VERSION PROJECT_ID=androbuntu
Shell
#!/bin/bash sudo apt-get install subversion gdebi python-support cdbs devscripts
Shell
#!/bin/bash PROGNAME=ubudroid-server VERSION=0.1.0 RELEASE_NAME=$PROGNAME-$VERSION DISTRIBUTABLE_NAME=${PROGNAME}_$VERSION PROJECT_ID=androbuntu
Shell
#!/bin/bash . package_defines.sh cd $PROGNAME dch -m cd .. svn export $PROGNAME $RELEASE_NAME.orig cd $RELEASE_NAME.orig rm -r debian cd .. svn export $PROGNAME $RELEASE_NAME cd $RELEASE_NAME debuild -S -sa cd .. rm -r $RELEASE_NAME echo -n "Do you want to upload the orig.tar.gz to kostmo.ath.cx? [Y/n] " read chara...
Shell
#!/bin/bash . package_defines.sh svn export $PROGNAME $RELEASE_NAME.orig cd $RELEASE_NAME.orig rm -r debian cd .. svn export $PROGNAME $RELEASE_NAME cd $RELEASE_NAME debuild cd .. rm -r $RELEASE_NAME echo -n "Do you want to install the new .deb? [Y/n]: " read character case $character in [Yy] | "" ) echo "You re...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi ./kill_process.sh $ADB shell rm -r /data/data/com.google.android.apps.iosched/*
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am force-stop com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db"
Shell
#!/bin/sh # Sessions list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions # Vendors list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors # Session detail #adb shell am start -a...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi 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 adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format -
Shell
#!/bin/sh # Remember VERBOSE only works on debug builds of the app adb shell setprop log.tag.iosched_SyncHelper VERBOSE adb shell setprop log.tag.iosched_SessionsHandler VERBOSE adb shell setprop log.tag.iosched_ImageCache VERBOSE adb shell setprop log.tag.iosched_ImageWorker VERBOSE adb shell setprop log.tag.iosched_I...
Shell
#!/bin/sh adb shell pm clear com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am start \ -a android.intent.action.MAIN \ -c android.intent.category.LAUNCHER \ -n com.google.android.apps.iosched/.ui.HomeActivity
Shell
#!/bin/bash # # Copyright (C) 2008, 2009 Mihai Şucan # # This file is part of PaintWeb. # # PaintWeb 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 3 of the License, or # (at your option) any...
Shell
#!/bin/bash # # Copyright (C) 2008, 2009 Mihai Şucan # # This file is part of PaintWeb. # # PaintWeb 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 3 of the License, or # (at your option) any...
Shell
#!/bin/bash getLangsForFiles () { echo "en" # default language for F in "$@" do find res/ -name "$F" done \ | sed -n ' s/.*res.[a-z]*-\(..\)-r\(..\).*/\1_\2/p; # yy-rXX => yy_XX s/.*res.[a-z]*-\(..\)\/.*/\1/p; # yy => yy ' } getLangsForDicts () { ls ../Dicts \ | sed 's/.*-//;...
Shell
#!/bin/bash Res=res/ Alt=donottranslate-altchars.xml Map=donottranslate-keymap.xml Out=assets/kbd/ mkdir -p "$Out" for Dir in res/values res/values-* do [ -f $Dir/$Map ] || continue # -o -f $Dir/$Alt ] || continue Args="$Res/values/$Alt" [ -f $Dir/$Alt ] && Args="$Args $Dir/$Alt" Args="$Args $Res/values/$Map...
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/bash pdftops -paper A4 $1 - | psbook | impose -v -scale $2 | tee temp.ps | psselect -o | ps2pdf - `echo $1 | sed -e "s/\.\(\w*\)/_odd_book.\1/g"` psselect -e temp.ps | ps2pdf - `echo $1 | sed -e "s/\.\(\w*\)/_even_book.\1/g"` rm temp.ps
Shell
#!/bin/bash pdftops -paper A4 $1 - | psbook -s 64 | impose -v -scale $2 | tee temp.ps | psselect -o | ps2pdf - `echo $1 | sed -e "s/\.\(\w*\)/_odd_book.\1/g"` psselect -e temp.ps | ps2pdf - `echo $1 | sed -e "s/\.\(\w*\)/_even_book.\1/g"` rm temp.ps
Shell
#!/bin/bash pdftoppm -gray $1 "" for i in *.pgm do ppmnorm -wpercent $2 ./$i | sam2p -e:scale - PDF: ./`echo $i | tr -d "-" | tr -d ".pgm"`_.pdf rm ./$i done pdftk *_.pdf output `echo $1 | tr -d '-' | tr -d ".pdf"`_contrast.pdf rm *_.pdf
Shell
#!/bin/bash pdftoppm -gray $1 "" for i in *.pgm do ppmnorm -wpercent $2 ./$i | sam2p -e:scale - PDF: ./`echo $i | tr -d "-" | tr -d ".pgm"`_.pdf rm ./$i done pdftk *_.pdf output `echo $1 | tr -d '-' | tr -d ".pdf"`_contrast.pdf rm *_.pdf
Shell
#!/bin/bash pdftops -paper A4 $1 - | psbook -s 64 | impose -v -scale $2 | tee temp.ps | psselect -o | ps2pdf - `echo $1 | sed -e "s/\.\(\w*\)/_odd_book.\1/g"` psselect -e temp.ps | ps2pdf - `echo $1 | sed -e "s/\.\(\w*\)/_even_book.\1/g"` rm temp.ps
Shell
#!/bin/bash pdftops -paper A4 $1 - | psbook | impose -v -scale $2 | tee temp.ps | psselect -o | ps2pdf - `echo $1 | sed -e "s/\.\(\w*\)/_odd_book.\1/g"` psselect -e temp.ps | ps2pdf - `echo $1 | sed -e "s/\.\(\w*\)/_even_book.\1/g"` rm temp.ps
Shell
#!/bin/sh # Quick and dirty script to download and install various # redistributable runtime libraries # # Copyright 2007, 2008, 2009 Google (Dan Kegel, dank@kegel.com) # Thanks to Detlef Riekenberg for lots of updates # Thanks to Saulius Krasuckas for corrections and suggestions # Please report problems at http://cod...
Shell
#!/bin/bash echo "" > ip_list.txt echo "" > port_img_list.txt loop=0 while [ "115" -ne "$loop" ] do loop=`expr $loop + 1` echo $loop links2 -dump http://www.hidemyass.com/proxy-list/All-Countries/fast/show-planetlab/$loop/ | grep "port" | sed -e 's/[ ]*PlanetLab Proxy//g' -e 's/^[ ]*//g' -e 's/[0-9]\{4\}-[0-9]\{2\}-...
Shell
#!/bin/bash echo "" > ip_list.txt echo "" > port_img_list.txt loop=0 while [ "115" -ne "$loop" ] do loop=`expr $loop + 1` echo $loop links2 -dump http://www.hidemyass.com/proxy-list/All-Countries/fast/show-planetlab/$loop/ | grep "port" | sed -e 's/[ ]*PlanetLab Proxy//g' -e 's/^[ ]*//g' -e 's/[0-9]\{4\}-[0-9]\{2\}-...
Shell
#!/bin/bash file="gg" size=2 min_size=1 #mencoder &> /dev/null & ls -l / -R &> $file & while (( $min_size < $size )) do size=`ls -l $file | awk '{print($5)}'` echo $size sleep 1s size2=`ls -l $file | awk '{print($5)}'` echo $size2 echo size=`expr $size2 - $size` done kill `jobs -l | awk '{print($2)}'`
Shell
#!/bin/bash file="gg" size=2 min_size=1 #mencoder &> /dev/null & ls -l / -R &> $file & while (( $min_size < $size )) do size=`ls -l $file | awk '{print($5)}'` echo $size sleep 1s size2=`ls -l $file | awk '{print($5)}'` echo $size2 echo size=`expr $size2 - $size` done kill `jobs -l | awk '{print($2)}'`
Shell
#/bin/bash DVDWRITER="/dev/hda" NOW=`date +%s` TMP_DIR="/tmp/vf2dvd${NOW}" function usage() { echo "$0 <src_video_file>" exit 1 } function check_last_retcode() { if [ $1 -ne 0 ] then echo "$2" exit 1 fi } # Заданы ли все параметры if [ $# -ne 1 ] then usage fi # Проверяем доступность необходимых програм...
Shell
#!/bin/sh DIALOG=${DIALOG=dialog} tempfile=`mktemp 2>/dev/null` || tempfile=/tmp/test$$ trap "rm -f $tempfile" 0 1 2 5 15 $DIALOG --title "выбор диска" --radiolist "Выберете диск для разбиения" 20 61 5 \ "`fdisk -l | grep '/dev/.d.:' | sed -n '1p'`" "" on \ "`fdisk -l | grep '/dev/.d.:' | sed -n '2p'`" "" off \ "`...
Shell
#!/bin/sh DIALOG=${DIALOG=dialog} tempfile=`mktemp 2>/dev/null` || tempfile=/tmp/test$$ trap "rm -f $tempfile" 0 1 2 5 15 $DIALOG --title "выбор диска" --radiolist "Выберете диск для разбиения" 20 61 5 \ "`fdisk -l | grep '/dev/.d.:' | sed -n '1p'`" "" on \ "`fdisk -l | grep '/dev/.d.:' | sed -n '2p'`" "" off \ "`...
Shell
#!/bin/bash current_directory=$( pwd ) echo $current_directory #remove spaces #for i in *.wma; do mv "$i" `echo $i | tr ' ' '_'`; done #remove uppercase #for i in *.[Ww][Mm][Aa]; do cp "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done #Rip with Mplayer / encode with LAME #for i in *.wma ; do mplayer -vo null -vc dummy -af r...
Shell
#!/bin/bash
Shell
#!/bin/sh # Quick and dirty script to download and install various # redistributable runtime libraries # # Copyright 2007, 2008, 2009 Google (Dan Kegel, dank@kegel.com) # Thanks to Detlef Riekenberg for lots of updates # Thanks to Saulius Krasuckas for corrections and suggestions # Please report problems at http://cod...
Shell
#!/bin/bash current_directory=$( pwd ) echo $current_directory #remove spaces #for i in *.wma; do mv "$i" `echo $i | tr ' ' '_'`; done #remove uppercase #for i in *.[Ww][Mm][Aa]; do cp "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done #Rip with Mplayer / encode with LAME #for i in *.wma ; do mplayer -vo null -vc dummy -af r...
Shell
#!/bin/bash
Shell
#!/bin/bash #Installer for DFSL,Gentoo base dialog --title "Installer" --menu 1. "komar" 20 60
Shell
#!/bin/bash #Installer for DFSL,Gentoo base dialog --title "Installer" --menu 1. "komar" 20 60
Shell
#!/bin/rc wm='' if(~ $1 -d) { wm = '&wm/wm wm/logon</dev/null' shift } inferno '{$home/wmii/test/event.dis $*'$wm'}' $* & inf = $apid . 9.rc fn sigint sigterm {exit} fn sigexit {/bin/kill $apid} while(! ~ `{read </dev/tty} q) true
Shell
#!@BINSH@ -f # Configure wmii wmiiscript=wmiirc # For wmii.sh . wmii.sh # Configuration Variables MODKEY=Mod4 UP=k DOWN=j LEFT=h RIGHT=l # Bars noticetimeout=5 noticebar=/rbar/!notice # Colors tuples: "<text> <background> <border>" export WMII_NORMCOLORS='#000000 #c1c48b #81654f' export WMII_FOCUSCOLORS='#000000 #8...
Shell
#!sh # WMII Configuration load std string regex expr echo argv0 = $0 #mount -Aa {os dial unix!/tmp/ns.kris.:1/wmii >[1=0]} / || raise mount #mount -Aa {styxmon {os rc -c 'dial $WMII_ADDRESS' >[1=0]}} / || raise mount mount -Aa {os rc -c 'dial $WMII_ADDRESS' >[1=0]} / || raise mount {`{read} && echo halt>/dev/sysctl}...
Shell
#!/bin/sh # display a welcome message that contains the wmii tutorial xmessage -file - <<'EOF' Welcome to wmii, the non-wimp environment of the Suckless Project. This is a small step by step tutorial, intended to make you a little bit familiar with wmii. For a more detailed walkthrough, see @DOCDIR@/wmii.pdf. From h...
Shell
#!/bin/sh # This script will launch wimenu and provide command # completion for the first argument and filename completion # for each following argument, and execute the result. # Program name completion requires that a program list already # exist in $(wmiir namespace)/.proglist fifo="$HOME/.wmii/menu_fifo" mkfifo $f...
Shell
#!/bin/sh -f echo "$@" | awk -F'/+' '{ delete a n = 0 for(i = 1; i <= NF; i++) { if($i == ".." && n > 0 && a[n] != "..") n-- else if($i != "" && $i != ".") a[++n] = $i } s = "" for(i = 1; i <= n; i++) s = s "/" a[i] print substr(s, 2) }'
Shell
#!/bin/sh set -ef ifs="$(echo)" name=$1 vers=$2 dist=$3 desc="Upstream build" auth="Kris Maglione <kris@suckless.org>" date=$(date +'%a, %d %b %Y %T %z') if hg root >/dev/null 2>&1; then t() { hg log -r . --template "{$@}"; } vers=$(t rev) desc=$(t desc) auth=$(t author) date=$(t 'date|rfc822date') fi cat >debia...
Shell
#!/bin/sh -f CC=$1 PACKAGES=$2 CFLAGS=$3; shift 3 [ -n "$PACKAGES" ] && CFLAGS="$CFLAGS $(pkg-config --cflags $PACKAGES)" outfile="$1"; shift bin="$(echo $0 | sed 's,/[^/]*$,,')" xtmp=/tmp/cc.$$.$USER.out # Derived from Russ Cox's 9c in plan9port. echo CC $($bin/cleanname ${BASE}$outfile) [ -n "$noisycc" ] && echo...
Shell
#!/bin/sh -f LD=$1 PACKAGES=$2 LDFLAGS=$3; shift 3 [ -n "$PACKAGES" ] && LDFLAGS="$LDFLAGS $(pkg-config --libs $PACKAGES)" outfile="$1"; shift bin="$(echo $0 | sed 's,/[^/]*$,,')" # Derived from Russ Cox's 9l in plan9port. ofiles="" args="" for i do case "$i" in *.[ao]|*.o_pic) ofiles="$ofiles $i" ;; *) ar...
Shell
#!/bin/sh -f unset WMII_HACK_TRANSIENT WMII_HACK_TYPE WMII_HACK_TAGS usage() { echo 1>&2 Usage: \ "$0 [-transient <window>] [-type <window_type>[,...]] [-tags <tags>] <command> [<arg> ...]" exit 1 } checkarg='[ ${#@} -gt 0 ] || usage' export WMII_HACK_TIME=$(date +%s) while [ ${#@} -gt 0 ] do case $1 in -transi...
Shell
[ -z "$scriptname" ] && scriptname="$wmiiscript" echo Start $wmiiscript | wmiir write /event 2>/dev/null || exit 1 wi_newline=' ' _wi_script() { # Awk script to mangle key/event/action definition spec # into switch-case functions and lists of the cases. Also # generates a simple key binding help text based on Ke...
Shell
#!/bin/sh -f test $#* '=' 0 || { p="$PATH" which rc >/dev/null || PATH="$PLAN9:$p" which rc >/dev/null || PATH="/usr/local/plan9/bin:$p" which rc >/dev/null || PATH="/usr/local/9/bin:$p" which rc >/dev/null || PATH="/opt/plan9/bin:$p" which rc >/dev/null || PATH="/opt/9/bin:$p" which rc >/dev/null || PATH="/usr/...
Shell
pkgname=(wmii-hg python-pyxp-hg python-pygmi-hg) pkgver=2755 pkgrel=1 pkgdesc="The latest hg pull of wmii, a lightweight, dynamic window manager for X11" url="http://wmii.suckless.org" license=(MIT) arch=(i686 x86_64) makedepends=(mercurial python "libixp-hg>="$(sed -rn <mk/wmii.mk 's/.*IXP_NEEDAPI=([0-9]+).*/\1/p')) ...
Shell