pyenv support

pyenv support

if [ -d "$HOME/.pyenv" ]; then
    export PATH="$HOME/.pyenv/bin:$PATH";
    eval "$(pyenv init -)";
    eval "$(pyenv virtualenv-init -)";
fi

pyenv_init ()
{
    local PY27=2.7.9
    local PY34=3.4.2
    curl -L \
         https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer \
        | bash
    source /etc/profile.d/pyenv.sh

    sudo apt-get install -y \
         libbz2-dev \
         libreadline-dev \
         libsqlite3-dev \
         libssl-dev \
         zlib1g-dev \
         `#end`

    pyenv install $PY27 &
    pyenv install $PY34 &
    wait

    pyenv virtualenv $PY27 venv27
    pyenv virtualenv $PY34 venv34

    pyenv global $PY34              #I prefer python 3
    pip install --user \
        bpython \
        cdiff \
        pip-tools \
        `#end`

    pyenv versions
}

error: pathspec 'provision/public/root/etc/profile.d/pyenv.sh' did not match any file(s) known to git


adding bumpver_isis.sh script

adding bumpver_isis.sh script

VERSION=$1

if [ ! "$VERSION" ]; then
    echo "usage: $(basename $0) [version]"
    exit 1
fi

# edit parent pom.xml
echo "editing parent pom.xml"
cat pom.xml | sed "s/<isis.version>.*</<isis.version>$VERSION</" > pom.xml.$$.sed
mv pom.xml.$$.sed pom.xml

# edit dom's pom.xml
echo "editing dom's pom.xml"
pushd dom >/dev/null
cat pom.xml | sed "s/<isis.version>.*</<isis.version>$VERSION</" > pom.xml.$$.sed
mv pom.xml.$$.sed pom.xml
popd >/dev/null

echo "Committing changes"
git commit -am "bumping isis.version to $VERSION"

error: pathspec 'bumpver_isis.sh' did not match any file(s) known to git


ignore forks, all of them, for now

ignore forks, all of them, for now

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/enckse/core-scripts.git/'


restore previous power-button behavior to Mavericks

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/erikj/dotfiles.git/'


Update prefix on functions to jsonlite

Update prefix on functions to jsonlite

The `json` prefix was a bit too generic

#!/usr/bin/env bash
set -eo pipefail; [[ $TRACE ]] && set -x

VERSION="0.4.2"
CWD=$(pwd);

jsonlite_is_valid_uuid() {
  if [[ "$1" =~ ^[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}$ ]]; then
    echo true
  fi

  echo false
}

jsonlite_set() {
  local value="$1"
  if [[ -z "$value" ]]; then
    echo "Missing required argument json document" 1>&2
    exit 1;
  fi

  if [[ ! -d "$CWD/jsonlite.data" ]]; then
    mkdir "$CWD/jsonlite.data"
  fi

  # Is this portable across distros?
  UUID=$(uuidgen | awk '{print toupper($0)}')

  # Piping to python -m json.tool to pretty print json is super expensive.
  # What would be a good alternative?
  echo "$value" | python -m json.tool > "$CWD/jsonlite.data/$UUID"
  echo "$UUID";
}

jsonlite_get() {
  local document_id="$1"
  if [[ -z "$document_id" ]]; then
    echo "Missing required argument document id" 1>&2
    exit 2;
  fi

  VALID=$(jsonlite_is_valid_uuid "$document_id")
  if [[ "$VALID" = false ]]; then
    echo "Invalid argument document id" 1>&2
    exit 3;
  fi

  if [[ -f "$CWD/jsonlite.data/$document_id" ]]; then
    cat "$CWD/jsonlite.data/$document_id"
  fi
}

jsonlite_delete() {
  local document_id="$1"
  if [[ -z "$document_id" ]]; then
    echo "Missing required argument document id" 1>&2
    exit 2;
  fi

  VALID=$(jsonlite_is_valid_uuid "$document_id")
  if [[ "$VALID" = false ]]; then
    echo "Invalid argument document id" 1>&2
    exit 3;
  fi

  if [[ -f "$CWD/jsonlite.data/$document_id" ]]; then
    rm -f "$CWD/jsonlite.data/$document_id"
  fi
}

jsonlite_drop() {
  if [[ -d "$CWD/jsonlite.data" ]]; then
    read -p "Are you sure you want to drop '$CWD/jsonlite.data' (y/n)? " confirm
    case "$confirm" in
      # Do we need to guard against potentially naughty things here?
      y|Y|yes|YES ) rm -rf "$CWD/jsonlite.data";;
      * ) exit 4;;
    esac
  fi
}

main() {
  COMMAND=$1
  case "$COMMAND" in
    "set")
      jsonlite_set "$2"
      ;;

    "get")
      jsonlite_get "$2"
      ;;

    "delete")
      jsonlite_delete "$2"
      ;;

    "drop")
      jsonlite_drop
      ;;

    "version")
      printf "%s" "$VERSION"
  esac
}

[[ "$0" == "$BASH_SOURCE" ]] && main "$@"

#!/usr/bin/env bash
set -eo pipefail; [[ $TRACE ]] && set -x

VERSION="0.4.2"
CWD=$(pwd);

json_is_valid_uuid() {
  if [[ "$1" =~ ^[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}$ ]]; then
    echo true
  fi

  echo false
}

json_set() {
  local value="$1"
  if [[ -z "$value" ]]; then
    echo "Missing required argument json document" 1>&2
    exit 1;
  fi

  if [[ ! -d "$CWD/jsonlite.data" ]]; then
    mkdir "$CWD/jsonlite.data"
  fi

  # Is this portable across distros?
  UUID=$(uuidgen | awk '{print toupper($0)}')

  # Piping to python -m json.tool to pretty print json is super expensive.
  # What would be a good alternative?
  echo "$value" | python -m json.tool > "$CWD/jsonlite.data/$UUID"
  echo "$UUID";
}

json_get() {
  local document_id="$1"
  if [[ -z "$document_id" ]]; then
    echo "Missing required argument document id" 1>&2
    exit 2;
  fi

  VALID=$(json_is_valid_uuid "$document_id")
  if [[ "$VALID" = false ]]; then
    echo "Invalid argument document id" 1>&2
    exit 3;
  fi

  if [[ -f "$CWD/jsonlite.data/$document_id" ]]; then
    cat "$CWD/jsonlite.data/$document_id"
  fi
}

json_delete() {
  local document_id="$1"
  if [[ -z "$document_id" ]]; then
    echo "Missing required argument document id" 1>&2
    exit 2;
  fi

  VALID=$(json_is_valid_uuid "$document_id")
  if [[ "$VALID" = false ]]; then
    echo "Invalid argument document id" 1>&2
    exit 3;
  fi

  if [[ -f "$CWD/jsonlite.data/$document_id" ]]; then
    rm -f "$CWD/jsonlite.data/$document_id"
  fi
}

json_drop() {
  if [[ -d "$CWD/jsonlite.data" ]]; then
    read -p "Are you sure you want to drop '$CWD/jsonlite.data' (y/n)? " confirm
    case "$confirm" in
      # Do we need to guard against potentially naughty things here?
      y|Y|yes|YES ) rm -rf "$CWD/jsonlite.data";;
      * ) exit 4;;
    esac
  fi
}

main() {
  COMMAND=$1
  case "$COMMAND" in
    "set")
      json_set "$2"
      ;;

    "get")
      json_get "$2"
      ;;

    "delete")
      json_delete "$2"
      ;;

    "drop")
      json_drop
      ;;

    "version")
      printf "%s" "$VERSION"
  esac
}

[[ "$0" == "$BASH_SOURCE" ]] && main "$@"


testing CI

testing CI

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/starschema/virtdb-proto.git/'


Start pull script

Start pull script

#!/bin/bash

echo "Pulling from repo..."

error: pathspec 'pull.sh' did not match any file(s) known to git


Added push script.

Added push script.

sh dev_compile.sh
sh compile.sh
git push

error: pathspec 'push.sh' did not match any file(s) known to git


Added hyperthreading if virtual machine uses all cores, otherwise leave physical cores to the host

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Ofenhed/virt-start.git/'


Initial post-deploy script.

Initial post-deploy script.

mkdir -p ../node
NODE_DIR=`(cd ../node && pwd)`

if [ ! -e ../node/bin/npm ]; then
    mkdir -p ../node-src
    cd ../node-src
    curl http://nodejs.org/dist/v0.8.4/node-v0.8.4.tar.gz | tar xz --strip-components=1
    ./configure --prefix=$NODE_DIR
    make install
    cd -
fi

export PATH=$NODE_DIR/bin:$PATH
npm install
npm prune
compass compile

error: pathspec 'config/post_deploy_actions.bash' did not match any file(s) known to git


Again fix autogen.sh

Again fix autogen.sh

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/matt-auld/z-lang.git/'


updated provision script

updated provision script

#!/usr/bin/env bash

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y build-essential
sudo apt-get install -y git -y
sudo apt-get install -y tcl tk tcl8.6-dev tk8.6-dev
git clone https://github.com/fangohr/oommf.git
git clone https://github.com/fangohr/oommf-python.git
cd oommf
make

#!/bin/bash

sudo apt-get update                                                                                │==> default: Building dependency tree...
sudo apt-get upgrade                                                                                │==> default: Reading state information...
#sudo apt-get install build-essential, python, git                                                                                │==> default: The following packages have been kept back:
sudo apt-get install tcl, tk, tcl8.6-dev, tk8.6-dev                                                                                │==> default:   linux-headers-generic linux-headers-virtual linux-image-virtual
git clone https://github.com/fangohr/oommf.git                                                                                │==> default:   linux-virtual
git clone https://github.com/fangohr/oommf-python.git                                                                                │==> default: The following packages will be upgraded:
cd oommf                                                                                │==> default:   bind9-host cloud-init coreutils dnsutils gcc-4.9-base grub-common grub-pc
make


Initial Commit

Initial Commit

#! /bin/bash

#================================================================================
# spla.sh
#
# A bash script to perform color operations
#
# In future, this will do a lot more!
#
# Usage is currently:
#
# ./spla.sh "#{color_code}"
#
# Returns a list of monochromatic colors
#
# E.g ./spla.sh "#120E23"
# Returns:
# #110E22
# #1F183C
# #2C2255
# ...and so on!
#
# WHAT'S NEW IN v1.00
# - All the things...
#
# Please check the LICENSE file before getting your grubby paws on this!
#
# by Ed George <esm@hotmail.co.uk> 2014
#================================================================================

# Don't change this!
version="1.0"

#Globals
computedH=0
computedS=0
computedV=0

#http://bgrins.github.io/TinyColor/docs/tinycolor.html
monochromatic (){

    if [ -z "$1" ]
    then
        echo "ERR: No color param passed in monochromatic"
        exit -1
    fi

    COLOR=$1

    results=10

    r=$((0x${COLOR:1:2}))
    g=$((0x${COLOR:3:2}))
    b=$((0x${COLOR:5:2}))

    rgbToHsv $r $g $b

    modification=$(echo "scale=4; 1/$results" | bc)

    while [ $results -gt 0 ]
    do
        hsvToRgb $computedH $computedS $computedV
        computedV=$(echo "scale=4; ($computedV+$modification)" | bc)

        #Pretty sure this is a hack
        if [[ $computedV > 1 ]]; then

            return

        fi

        results=$[$results-1]
    done

}

floatToInt (){
    #ROUNDING ERRORS AHOY!
    var=$(printf %04f $1)
    echo ${var%.*}
}

intToHex  (){
    printf %02X $1
}

rgbToString (){
    echo "#$(intToHex $1)$(intToHex $2)$(intToHex $3)"
}

#http://stackoverflow.com/questions/7896280/converting-from-hsv-hsb-in-java-to-rgb-without-using-java-awt-color-disallowe
rgbFloatToString (){
    r=$(floatToInt $(echo "scale=4; $1*255" | bc))
    g=$(floatToInt $(echo "scale=4; $2*255" | bc))
    b=$(floatToInt $(echo "scale=4; $3*255" | bc))
    rgbToString $r $g $b
}

#http://www.javascripter.net/faq/rgb2hsv.htm
rgbToHsv (){

    r=$(echo "scale=4; $1/255" | bc)
    g=$(echo "scale=4; $2/255" | bc)
    b=$(echo "scale=4; $3/255" | bc)

    #Reset to 0
    computedH=0
    computedS=0
    computedV=0

    color=($r $g $b)
    IFS=$'\n'
    #max
    maxRGB=$(echo "${color[*]}" | sort -nr | head -n1)
    #min
    minRGB=$(echo "${color[*]}" | sort -n | head -n1)

    if [[ $maxRGB == $minRGB ]]; then
        computedV=$minRGB
        return
    fi

     # var d = (r==minRGB) ? g-b : ((b==minRGB) ? r-g : b-r);

     d=0

     if [[ $r == $minRGB ]]; then

         d=$(echo "scale=4; $g-$b" | bc)

     else

         if [[ $b == $minRGB ]]; then
             d=$(echo "scale=4; $r-$g" | bc)
         else
            d=$(echo "scale=4; $b-$r" | bc)
        fi

     fi

     # var h = (r==minRGB) ? 3 : ((b==minRGB) ? 1 : 5);

     h=0

    if [[ $r == $minRGB ]]; then

         h=3

     else

         if [[ $b == $minRGB ]]; then
             h=1
         else
            h=5
        fi

     fi

     # computedH = 60*(h - d/(maxRGB - minRGB));
     computedH=$(echo "scale=4; 60*($h-$d/($maxRGB-$minRGB))/360" | bc)
     computedS=$(echo "scale=4; ($maxRGB-$minRGB)/$maxRGB" | bc)
     computedV=$maxRGB
}

# Might be worth adding | awk '{printf "%f", $0}' to floats

#http://stackoverflow.com/questions/7896280/converting-from-hsv-hsb-in-java-to-rgb-without-using-java-awt-color-disallowe
hsvToRgb (){
    hue=$(printf %04f $1)
    sat=$(printf %04f $2)
    val=$(printf %04f $3)

    h=$(floatToInt $(echo "scale=4; $hue*6" | bc))

    f=$(echo "scale=4; ($hue*6)-$h" | bc)
    p=$(echo "scale=4; $val*(1-$sat)" | bc)
    q=$(echo "scale=4; $val*(1-$f*$sat)" | bc)
    t=$(echo "scale=4; $val*(1-(1-$f)*$sat)" | bc)

    case $h in
        0)
            rgbFloatToString $val $t $p
            ;;
        1)
            rgbFloatToString $q $val $p
            ;;
        2)
            rgbFloatToString $p $val $t
            ;;
        3)
            rgbFloatToString $p $q $val
            ;;
        4)
            rgbFloatToString $t $p $val
            ;;
        5)
            rgbFloatToString $val $p $q
            ;;
        6)
            rgbFloatToString $val $p $q
            ;;
        *)  echo "**Unexpected error in hsvToRgb**"
            exit -1
            ;;
    esac
}

#MAIN
 if [ -z "$1" ]
    then
        echo -e "\n\tUSAGE: ./spla \"#{color_code}\"\n"
        exit -1
 fi

monochromatic $1

error: pathspec 'spla.sh' did not match any file(s) known to git


Npm script update on dev.

Npm script update on dev.

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/danibix95/SE2_16_170889_P.git/'


init commit

init commit

#! /bin/sh

. $HOME/.config/tmux-picker/config

list_sessions() {
	tmux ls | grep '^[a-z-]\+:' | cut -f 1 -d " " | sed 's/:$//'
}

chosen=`list_sessions | dmenu`
$term -e sh -c "tmux at -t $chosen" &


changed from  to

changed from  to

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/cas0498/dotfiles.git/'


add installer to zsh

add installer to zsh

#!/usr/bin/env bash

echo installing zsh...
sudo pacman -Sy --noconfirm zsh
if [ $? -ne 0 ]; then
    exit 1
fi

echo installing oh-my-zsh...
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
if [ $? -ne 0 ]; then
    exit 1
fi

cp abiola.zsh-theme $HOME/.oh-my-zsh/themes
cp zshrc $HOME/.zshrc

error: pathspec 'zsh/install.sh' did not match any file(s) known to git


spell it right

spell it right

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/lavelle/coursework.git/'


adding unison wrapper

adding unison wrapper

#!/bin/bash

# platform paths
LOCALPATH=/home/user/platform
REMOTEPATH=/home/user/externalmedia

# local sources
SYNCARTIFACTS=(
        Dev
        Music
        Graphics
        )

# errorcode interface
INVALID_SRC=1
INVALID_BOOTSTRAP_DEST=2

function bootstrap(){

  # param1: local source
  # param2: dest (where to do a full copy to)

  mkdir $LOCALPATH
  if (( $? > 0 )); then
    # extra caution
    echo "Local path already exists. Aborting."
    exit $INVALID_BOOTSTRAP_DEST
  fi
  cp -R $REMOTEPATH/* $LOCALPATH

}

function unisonate(){

  # param1: local source
  # param2: dest (where to unison to)
  for tg in ${SYNCARTIFACTS[@]}; do
    loc_tg=$LOCALPATH/$tg
    if [ ! -d $loc_tg ]; then
      echo "Source $loc_tg does not exist."
      exit $INVALID_SRC
    else
      unison $LOCALPATH/$tg $REMOTEPATH/$tg
    fi
  done

}

# lets decide which functionality
if [[ $1 == "bootstrap" ]]; then

  # boostrap on this computer
  if [ -d $LOCALPATH ]; then
    echo "Requested a bootstrap operation but $LOCALPATH is not empty."
    exit $INVALID_BOOTSTRAP_DEST
  fi
  bootstrap

else
  # sync to previously configured locations
  unisonate
fi

error: pathspec 'unison_wrap.sh' did not match any file(s) known to git


update-hook.sh

update-hook.sh

#!/bin/bash

set -e

./triage_report.py >t.t
mv t.t ~/public_html/clang-triage/triage_report.xhtml

./extract_creduced.py
rm -f all_reduced.tar.bz2
tar c cr/ |pbzip2 >all_reduced.tar.bz2
mv all_reduced.tar.bz2 ~/public_html/clang-triage/

./extract_outputs.py
rm -f all_outputs.tar.bz2
tar c cr/ |pbzip2 >all_outputs.tar.bz2
mv all_outputs.tar.bz2 ~/public_html/clang-triage/

error: pathspec 'update-hook.sh' did not match any file(s) known to git


Started work on test script

Started work on test script

#!/bin/bash
# Just Cause 2
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="150715"

#### Variables ####

# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"

# Steam login
steamuser="anonymous"
steampass=""

# Start Variables
updateonstart="off"

fn_parms(){
parms=""
}

#### Advanced Variables ####

# Steam
appid="261140"

# Server Details
servicename="jc2-server"
gamename="Just Cause 2"
engine="avalanche"

# Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
selfname="$(basename $0)"
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"
executable="./Jcmp-Server"
servercfg="config.lua"
servercfgdir="${filesdir}"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/default_config.lua"
backupdir="${rootdir}/backups"

# Logging
logdays="7"
#gamelogdir="" # No server logs available
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"

scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"

scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"

##### Script #####
# Do not edit

fn_runfunction(){
# Functions are downloaded and run with this function
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then
	cd "${rootdir}"
	if [ ! -d "functions" ]; then
		mkdir functions
	fi
	cd functions
	echo -e "    loading ${functionfile}...\c"
	wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45-
	chmod +x "${functionfile}"
	cd "${rootdir}"
fi
source "${rootdir}/functions/${functionfile}"
}

fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}

fn_functions

getopt=$1

fn_currentstatus(){
pid=$(tmux list-sessions 2>&1 | awk '{print $1}' | grep -Ec "^${servicename}:")
if [ "${pid}" == "0" ]; then
	currentstatus="OFFLINE"
else
	currentstatus="ONLINE"
fi
}

fn_setstatus(){
	fn_currentstatus

	echo""
	echo "Required status: ${requiredstatus}"
    while [  "${requiredstatus}" != "${currentstatus}" ]; do
    	fn_currentstatus
    	echo -ne "Current status:  ${currentstatus}\\r"
		if [ "${requiredstatus}" == "ONLINE" ]; then
			(fn_start > /dev/null 2>&1)
		else
			(fn_stop > /dev/null 2>&1)
		fi
    done
    echo -ne "Current status:  ${currentstatus}\\r"
    echo -e "\n"
    echo "Test starting:"
    echo ""
    sleep 0.5
}

echo "1.0 - start - no files"
echo "================================="
echo "Description:"
echo "Test script reaction to missing server files."
requiredstatus="OFFLINE"
fn_setstatus
(fn_start)
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "2.0 - install"
echo "================================="
echo "Description:"
echo "install ${gamename} server."
requiredstatus="OFFLINE"
fn_setstatus
fn_autoinstall
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "3.1 - start"
echo "================================="
echo "Description:"
echo "start ${gamename} server."
requiredstatus="OFFLINE"
fn_setstatus
fn_start
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "3.2 - start - online"
echo "================================="
echo "Description:"
echo "start ${gamename} server while already running."
requiredstatus="ONLINE"
fn_setstatus
(fn_start)
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "3.3 - stop"
echo "================================="
echo "Description:"
echo "stop ${gamename} server."
requiredstatus="ONLINE"
fn_setstatus
fn_stop
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "3.4 - stop - offline"
echo "================================="
echo "Description:"
echo "stop ${gamename} server while already stopped."
requiredstatus="OFFLINE"
fn_setstatus
(fn_stop)
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "3.5 - restart"
echo "================================="
echo "Description:"
echo "restart ${gamename}."
requiredstatus="ONLINE"
fn_setstatus
fn_restart
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "3.5 - restart - offline"
echo "================================="
echo "Description:"
echo "restart ${gamename} while already stopped."
requiredstatus="OFFLINE"
fn_setstatus
fn_restart
echo ""
echo "Test complete!"
sleep 1
echo ""

echo "4.1 - update"
echo "================================="
echo "Description:"
echo "check for updates."
requiredstatus="OFFLINE"
fn_setstatus
fn_update_check
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "4.2 - update  - change buildid"
echo "================================="
echo "Description:"
echo "change the buildid tricking SteamCMD to update."
requiredstatus="OFFLINE"
fn_setstatus
fn_printinfonl "changed buildid to 0."
sed -i 's/[0-9]\+/0/' ${filesdir}/steamapps/appmanifest_${appid}.acf
fn_update_check
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "4.3 - update  - change buildid - online"
echo "================================="
echo "Description:"
echo "change the buildid tricking SteamCMD to update server while already running."
requiredstatus="ONLINE"
fn_setstatus
fn_printinfonl "changed buildid to 0."
sed -i 's/[0-9]\+/0/' ${filesdir}/steamapps/appmanifest_${appid}.acf
fn_update_check
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "4.4 - update  - remove appmanifest file"
echo "================================="
echo "Description:"
echo "removing appmanifest file will cause script to repair."
requiredstatus="OFFLINE"
fn_setstatus
fn_printinfonl "removed appmanifest_${appid}.acf."
rm --verbose "${filesdir}/steamapps/appmanifest_${appid}.acf"
fn_update_check
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "4.5 - force-update"
echo "================================="
echo "Description:"
echo "force-update bypassing update check."
requiredstatus="OFFLINE"
fn_setstatus
fn_update_check
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "4.6 - force-update - online"
echo "================================="
echo "Description:"
echo "force-update bypassing update check server while already running."
requiredstatus="ONLINE"
fn_setstatus
fn_update_check
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "4.7 - validate"
echo "================================="
echo "Description:"
echo "validate server files."
requiredstatus="OFFLINE"
fn_setstatus
fn_validate
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "4.8 - validate - online"
echo "================================="
echo "Description:"
echo "validate server files while server while already running."
requiredstatus="ONLINE"
fn_setstatus
fn_validate
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "5.1 - monitor - online"
echo "================================="
echo "Description:"
echo "run monitor server while already running."
requiredstatus="ONLINE"
fn_setstatus
(fn_monitor)
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "5.2 - monitor - offline - no lockfile"
echo "================================="
echo "Description:"
echo "run monitor while server is offline with no lockfile"
requiredstatus="OFFLINE"
fn_setstatus
(fn_monitor)
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "5.2 - monitor - offline - with lockfile"
echo "================================="
echo "Description:"
echo "run monitor while server is offline with no lockfile"
requiredstatus="OFFLINE"
fn_setstatus
fn_printinfonl "creating lockfile."
date > "${rootdir}/${lockselfname}"
(fn_monitor)
echo ""
echo "Test complete!"
sleep 1
echo ""
echo "5.2 - monitor - gsquery.py failure"
echo "================================="
echo "Description:"
echo "gsquery.py will fail to query port"
requiredstatus="ONLINE"
fn_setstatus
port=${port+1}
(fn_monitor)
port=${port-1}
echo ""
echo "Test complete!"
sleep 1
echo ""

error: pathspec 'test.sh' did not match any file(s) known to git


shouldn't have been commented out

shouldn't have been commented out

#!/bin/bash
PASSCOUNT=0
FAILCOUNT=0
echo testing tooltool\'s command line interface

function fail() {
    echo TEST-FAIL: "$@"
    FAILCOUNT=$((FAILCOUNT + 1))
}

function pass() {
    echo TEST-PASS: "$@"
    PASSCOUNT=$((PASSCOUNT + 1))
}

function error() {
    echo TEST-ERROR: "$@"
}

function info() {
    echo TEST-INFO: "$@"
}

function setup() {
    #cleanup
    rm -rf manifest.tt a b c d test_file.ogg
    echo 1 > a
    echo 2 > b
    echo 3 > c
    echo 4 > d
}

function assert_zero() {
    if [ $1 -ne 0 ] ; then
        fail "$2"
    else
        pass "$2"
    fi
}

function assert_nonzero() {
    if [ $1 -eq 0 ] ; then
        fail "$2"
    else
        pass "$2"
    fi
}

# set up a tooltool "server"

rm -rf testdir
mkdir -p testdir
cd testdir

mkdir serverdir
python -c '
import SimpleHTTPServer, SocketServer, os
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", 0), Handler)
with open("web_port", "w") as f:
    print >>f, httpd.socket.getsockname()[1]
os.chdir("serverdir")
httpd.serve_forever()
' &
while ! test -f web_port; do sleep 0.1; done
TEST_BASE_URL="http://localhost:$(<web_port)"
rm web_port
if ! curl -LI $TEST_BASE_URL &> /dev/null; then
    echo "ERROR: web server not running"
    exit 1
fi

trap "kill %1; wait" EXIT SIGINT SIGQUIT SIGTERM

# set up the serverdir

mkdir serverdir/sha512
for content in 1 2; do
    sha512=$(echo $content | sha512sum | sed -e 's/ .*//')
    echo $content > serverdir/sha512/$sha512
done

# set up tooltool

tt="../tooltool.py --verbose --url $TEST_BASE_URL"
info "$tt"

# tests

setup
$tt list
assert_nonzero $? "listing empty manifest"
###############
setup
$tt add a
assert_zero $? "adding file to manifest"
test -f manifest.tt
assert_zero $? "manifest file created"
###############
$tt add a
# TODO assert_nonzero $? "adding the same file a second time"
###############
$tt add notafile
#TODO this will always pass until the program is fixed
assert_nonzero $? "adding non-existant file"
###############
$tt list
assert_zero $? "listing valid manifest"
###############
rm a
$tt list
assert_zero $? "listing should work when there are absent files"
###############
$tt add b
assert_zero $? "adding a second file"
###############
$tt add b
 assert_nonzero $? "adding a duplicate file shouldn't work"
###############
rm -f a b
$tt fetch a
assert_zero $? "fetching a single file"
echo 1 > ta
diff a ta &> /dev/null
assert_zero $? "a fetched correctly"
rm -f ta
test ! -e b
assert_zero $? "un-fetched file should be absent"
##############
$tt fetch
assert_zero $? "fetching all files in manifest"
test -f a
assert_zero $? "a fetched"
test -f b
assert_zero $? "b fetched"
##############
echo OMGWTFBBQ > a
$tt fetch a
assert_zero $? "should overwrite bad files"
test `cat a` -eq 1
assert_zero $? "contents should be per manifest"
#############
$tt validate
assert_zero $? "validate works"

echo ==============================================
echo TEST-PASSES: $PASSCOUNT, TEST-FAILS: $FAILCOUNT
if [[ $FAILCOUNT -ne 0 || $PASSCOUNT -lt 1 ]] ; then
    echo TESTS FAILED
    exit 1
else
    (cd .. && rm -rf testdir)
    exit 0
fi

#!/bin/bash
PASSCOUNT=0
FAILCOUNT=0
echo testing tooltool\'s command line interface

function fail() {
    echo TEST-FAIL: "$@"
    FAILCOUNT=$((FAILCOUNT + 1))
}

function pass() {
    echo TEST-PASS: "$@"
    PASSCOUNT=$((PASSCOUNT + 1))
}

function error() {
    echo TEST-ERROR: "$@"
}

function info() {
    echo TEST-INFO: "$@"
}

function setup() {
    #cleanup
    rm -rf manifest.tt a b c d test_file.ogg
    echo 1 > a
    echo 2 > b
    echo 3 > c
    echo 4 > d
}

function assert_zero() {
    if [ $1 -ne 0 ] ; then
        fail "$2"
    else
        pass "$2"
    fi
}

function assert_nonzero() {
    if [ $1 -eq 0 ] ; then
        fail "$2"
    else
        pass "$2"
    fi
}

# set up a tooltool "server"

rm -rf testdir
mkdir -p testdir
cd testdir

mkdir serverdir
python -c '
import SimpleHTTPServer, SocketServer, os
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", 0), Handler)
with open("web_port", "w") as f:
    print >>f, httpd.socket.getsockname()[1]
os.chdir("serverdir")
httpd.serve_forever()
' &
while ! test -f web_port; do sleep 0.1; done
TEST_BASE_URL="http://localhost:$(<web_port)"
rm web_port
if ! curl -LI $TEST_BASE_URL &> /dev/null; then
    echo "ERROR: web server not running"
    exit 1
fi

trap "kill %1; wait" EXIT SIGINT SIGQUIT SIGTERM

# set up the serverdir

mkdir serverdir/sha512
for content in 1 2; do
    sha512=$(echo $content | sha512sum | sed -e 's/ .*//')
    echo $content > serverdir/sha512/$sha512
done

# set up tooltool

tt="../tooltool.py --verbose --url $TEST_BASE_URL"
info "$tt"

# tests

setup
$tt list
assert_nonzero $? "listing empty manifest"
###############
setup
$tt add a
assert_zero $? "adding file to manifest"
test -f manifest.tt
assert_zero $? "manifest file created"
###############
$tt add a
# TODO assert_nonzero $? "adding the same file a second time"
###############
$tt add notafile
#TODO this will always pass until the program is fixed
assert_nonzero $? "adding non-existant file"
###############
$tt list
assert_zero $? "listing valid manifest"
###############
rm a
$tt list
assert_zero $? "listing should work when there are absent files"
###############
$tt add b
assert_zero $? "adding a second file"
###############
$tt add b
# assert_nonzero $? "adding a duplicate file shouldn't work"
###############
rm -f a b
$tt fetch a
assert_zero $? "fetching a single file"
echo 1 > ta
diff a ta &> /dev/null
assert_zero $? "a fetched correctly"
rm -f ta
test ! -e b
assert_zero $? "un-fetched file should be absent"
##############
$tt fetch
assert_zero $? "fetching all files in manifest"
test -f a
assert_zero $? "a fetched"
test -f b
assert_zero $? "b fetched"
##############
echo OMGWTFBBQ > a
$tt fetch a
assert_zero $? "should overwrite bad files"
test `cat a` -eq 1
assert_zero $? "contents should be per manifest"
#############
$tt validate
assert_zero $? "validate works"

echo ==============================================
echo TEST-PASSES: $PASSCOUNT, TEST-FAILS: $FAILCOUNT
if [[ $FAILCOUNT -ne 0 || $PASSCOUNT -lt 1 ]] ; then
    echo TESTS FAILED
    exit 1
else
    (cd .. && rm -rf testdir)
    exit 0
fi


Re-add test.sh

Re-add test.sh

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/IodineLang/espresso.git/'


performance in reports

performance in reports

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/lobnek/pyutil.git/'


added document function

added document function

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/KENJU/shellscript_todo.git/'


Increase the version control function

Increase the version control function

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Hello-Linux/toolkit.git/'


Added files via upload

Added files via upload

# Local reproduction of WiFi access script
configure_edison --wifi
curl --data "number='edison'" http://22ab2fae.ngrok.io/alert_helper

error: pathspec 'wifi.sh' did not match any file(s) known to git


tes15

/bin/sh: 1: Syntax error: "(" unexpected


Update essentials.sh

Update essentials.sh

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/fabianomenegidio/dugong-bioinformatics.git/'


angstrom feed builder: also build xf86-input-evtouch

#!/bin/bash

# Split into "noarch" "arch" and "machine" section
# build "noarch" for only one machine, build "arch" *one* time for each arch and build "machine" for each machine

DO_UCLIBC=0

do_build() {
        #echo "MACHINE = \"$BUILD_MACHINE\"" > conf/auto.conf

        BUILD_MODE="glibc"
        if [ "$BUILD_CLEAN" != "" ]
        then
                MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
        fi

        for target in $BUILD_TARGETS
        do
                MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
        done

        if [ $DO_UCLIBC = 1 ]
        then
                BUILD_MODE="uclibc"

                if [ "$BUILD_CLEAN" != "" ]
                then
                        ANGSTROMLIBC=uclibc MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
                fi

                for target in $BUILD_TARGETS
                do
                        ANGSTROMLIBC=uclibc MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
                done
        fi
}

do_report_success() {

        echo "$(date -u +%s) $target $BUILD_MODE $machine" >> autobuilder-feed.log
}

# noarch packages (e.g. PACKAGE_ARCH=all in OE)

BUILD_MACHINE="beagleboard"
BUILD_CLEAN=""
BUILD_TARGETS=""
do_build

# arch packages (no machine specific (sub)packages)

# Architectures:
# * arm-oabi:  simpad
# * armv4t:    om-gta01
# * armv5te:   c7x0
# * armv5teb:  ixp4xxbe
# * armv6:     nokia800
# * armv6-novfp: htckaiser
# * armv7a:    beagleboard
# * ppc405:    dht-walnut
# * ppc603e:   efika
# * i586:      qemux86

if [ "$1" = "" ] ; then
	ARCH_MACHINES="simpad om-gta01 c7x0 ixp4xxbe nokia800 htckaiser beagleboard dht-walnut efika qemux86"
else
	ARCH_MACHINES="$@"
fi

for machine in ${ARCH_MACHINES}
do
        BUILD_MACHINE=$machine
        BUILD_CLEAN="qmake-native qmake2-native qt-x11-free python python-native python-pygtk gnome-icon-theme"
        BUILD_TARGETS=" \
                      abiword \
                      aircrack-ng \
                      angstrom-zeroconf-audio \
                      apache2 \
                      artoolkit \
                      asterisk \
                      atomic \
                      autoconf \
                      automake \
                      binutils \
                      bison \
                      bluez-gnome \
                      bluez-hcidump \
                      boa \
                      bonjour \
                      camera-assistant \
                      cdparanoia \
                      cdstatus \
                      checkers \
                      cherokee \
                      claws-mail \
                      connman \
                      connman-gnome \
                      contacts \
                      cron \
                      cvs \
                      cwiid \
                      dates \
                      devicekit-disks \
                      devmem2 \
                      dialog \
                      distcc \
                      dsniff \
                      dosfstools \
                      duke3d \
                      dvb-apps \
                      dvbstream \
                      dvbtraffic \
                      dvbtune \
                      e-uae \
                      e-wm \
                      ekiga \
                      empathy \
                      epdfview \
                      epiphany \
                      evince \
                      exo \
                      fakeroot \
                      fennec \
                      flame \
                      fluxbox \
                      ffmpeg \
                      fftw \
                      fftwf \
                      fftwl \
                      findutils \
                      firefox \
                      fish \
                      fldigi \
                      flex \
                      flite \
                      frameworkd \
                      freenote \
                      froot \
                      frozen-bubble \
                      gcc \
                      gdal \
                      gdb \
                      gdbserver \
                      gdm \
                      geda \
                      geda-docs \
                      geda-examples \
                      geda-gattrib \
                      geda-gnetlist \
                      geda-gschem \
                      geda-gsymcheck \
                      geda-symbols \
                      geda-utils \
                      gimp \
                      glider \
                      gmp \
                      gmpc \
                      gnome-games \
                      gnome-mplayer \
                      gnome-panel \
                      gnome-system-monitor \
                      gnumeric \
                      gnuplot \
                      gnuradio \
                      gpe-bluetooth \
                      gpe-gallery \
                      gpe-login \
                      gpe-mini-browser \
                      gpe-mini-browser2 \
                      gpe-scap \
                      gpe-sketchbook \
                      git \
                      gperf \
                      gphoto2 \
                      gpsdrive \
                      gqview \
                      gsm0710muxd \
                      gspcav1 \
                      gst-omapfb \
                      gtk+ \
                      gzip \
                      hal \
                      hdparm \
                      hexatrolic \
                      htop \
                      i2c-tools \
                      iaimaster \
                      icebloxx \
                      imagemagick \
                      inkwp \
                      ioquake3 \
                      ipaq-sleep \
                      iperf \
                      iptables \
                      irssi \
                      iscsi-target \
                      ivman \
                      jamvm \
                      julius \
                      kernel-module-udlfb \
                      kismet \
                      konqueror-embedded \
                      labyrinth \
                      lcd4linux \
                      leafpad \
                      libv4l \
                      lighttpd \
                      links-x11 \
                      lirc \
                      lowpan-tools \
                      m4 \
                      madplay \
                      mahjongg \
                      make \
                      maki \
                      mc \
                      mediatomb \
                      meta-nas-server \
                      meta-toolchain \
                      metacity \
                      midori \
                      mileage \
                      mono \
                      motion \
                      mousepad \
                      mpc \
                      mpd \
                      mpfr \
                      mpg123 \
                      mplayer \
                      mtd-utils \
                      mutt \
                      mythtv \
                      nautilus \
                      nbench-byte \
                      navit \
                      netkit-ftp \
                      netsurf \
                      news \
                      nmap \
                      nmm \
                      notecase \
                      ntfs-3g \
                      numptyphysics \
                      octave \
                      opencv \
                      opencv-samples \
                      openmoko-browser2 \
                      openredalert \
                      openvpn \
                      opie-notes \
                      orage \
                      padevchooser \
                      pavucontrol \
                      palantir \
                      pairs \
                      pciutils \
                      pdamaze \
                      perl \
                      pidgin \
                      pine \
                      pingus \
                      pipeman \
                      pkgconfig \
                      places \
                      pmount \
                      pocketcellar \
                      povray \
                      prboom \
                      prelink \
                      proftpd \
                      pushover \
                      python \
                      python-pybluez \
                      python-coherence \
                      python-pygame \
                      qfish2 \
                      qmatrix \
                      qpe-nmap \
                      qt-x11-free \
                      qt4-x11-free \
                      quake2 \
                      quasar \
                      quetoo \
                      rain \
                      rdesktop \
                      read-edid \
                      resistorui \
                      roadmap-gtk2 \
                      rtorrent \
                      ruby \
                      samba \
                      screen \
                      scummvm \
                      sdlquake \
                      sensors-applet \
                      setserial \
                      shisensho \
                      slcalc \
                      sliderulez \
                      sokoban \
                      squeakvm \
                      stalonetray \
                      strace \
                      subversion \
                      sugar \
                      sylpheed \
                      systray \
                      task-gpe-pim \
                      task-openmoko-feed \
                      task-openmoko-games \
                      task-opie-apps \
                      task-opie-games \
                      task-proper-tools \
                      task-xqtlauncher \
                      tasks \
                      texinfo \
                      thttpd \
                      thunar \
                      tightvnc \
                      timesleuth \
                      tofrodos \
                      totem \
                      transmission \
                      tron \
                      tzdata \
                      ubahnnav \
                      ufraw \
                      unzip \
                      usbutils \
                      usbview \
                      ushare \
                      viking \
                      vlc \
                      vpnc \
                      w3cam \
                      wifi-radar \
                      win4 \
                      wireshark \
                      wpa-gui \
                      wscan \
                      wt \
                      wt3 \
                      x11vnc \
                      xf86-input-evdev \
                      xf86-input-evtouch \
                      xf86-input-keyboard \
                      xf86-input-mouse \
                      xf86-input-tslib \
                      xf86-video-ati \
                      xf86-video-displaylink \
                      xf86-video-fbdev \
                      xf86-video-sisusb \
                      xf86-video-vesa \
                      xfce-mcs-manager
                      xfce-mcs-manager \
                      xfce-mcs-plugins \
                      xfce-terminal \
                      xfce-utils \
                      xfce4-appfinder \
                      xfce4-dev-tools \
                      xfce4-icon-theme \
                      xfce4-mixer \
                      xfce4-panel \
                      xfce4-session \
                      xfdesktop \
                      xfprint \
                      xfwm4 \
                      xfwm4-themes \
                      xmms \
                      xrefresh \
                      xserver-kdrive \
                      xserver-xorg \
                      zauralign \
                      zddice \
                      zenity \
                      zgscore \
                      zhone \
                      zip \
                      ziq \
                      zlapspeed \
                      zrev7 \
                      zsubhunt \
                      ztappy \
                      zuc \
                      zudoku \
                      "
        do_build
done

# machine packages (machine specific (sub)packages)

if [ "$1" = "" ] ; then
    MACHINES="simpad om-gta01 c7x0 ixp4xxbe nokia800 htckaiser beagleboard dht-walnut efika qemux86"
else
    MACHINES="$@"
fi

for machine in ${MACHINES}
do
        BUILD_MACHINE=$machine
            BUILD_CLEAN="qmake-native qmake2-native qt-x11-free python python-native python-pygtk gnome-icon-theme"
        BUILD_TARGETS="task-base task-boot \
                       task-opie task-opie-all \
                       task-openmoko-base task-openmoko-debug task-openmoko-examples task-openmoko-linux task-openmoko-native-sdk task-openmoko-net task-openmoko-phone task-openmoko-pim task-openmoko-ui \
                       angstrom-x11-base-depends angstrom-gpe-task-settings \
                       xserver-xorg-conf \
                       "

        do_build
done

for machine in collie h2200 hx4700 spitz akita tosa poodle c7x0
do
        BUILD_MACHINE=$machine
        BUILD_TARGETS="linux-kexecboot \
		       "
	do_build
done

#!/bin/bash

# Split into "noarch" "arch" and "machine" section
# build "noarch" for only one machine, build "arch" *one* time for each arch and build "machine" for each machine

DO_UCLIBC=0

do_build() {
        #echo "MACHINE = \"$BUILD_MACHINE\"" > conf/auto.conf

        BUILD_MODE="glibc"
        if [ "$BUILD_CLEAN" != "" ]
        then
                MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
        fi

        for target in $BUILD_TARGETS
        do
                MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
        done

        if [ $DO_UCLIBC = 1 ]
        then
                BUILD_MODE="uclibc"

                if [ "$BUILD_CLEAN" != "" ]
                then
                        ANGSTROMLIBC=uclibc MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
                fi

                for target in $BUILD_TARGETS
                do
                        ANGSTROMLIBC=uclibc MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
                done
        fi
}

do_report_success() {

        echo "$(date -u +%s) $target $BUILD_MODE $machine" >> autobuilder-feed.log
}

# noarch packages (e.g. PACKAGE_ARCH=all in OE)

BUILD_MACHINE="beagleboard"
BUILD_CLEAN=""
BUILD_TARGETS=""
do_build

# arch packages (no machine specific (sub)packages)

# Architectures:
# * arm-oabi:  simpad
# * armv4t:    om-gta01
# * armv5te:   c7x0
# * armv5teb:  ixp4xxbe
# * armv6:     nokia800
# * armv6-novfp: htckaiser
# * armv7a:    beagleboard
# * ppc405:    dht-walnut
# * ppc603e:   efika
# * i586:      qemux86

if [ "$1" = "" ] ; then
	ARCH_MACHINES="simpad om-gta01 c7x0 ixp4xxbe nokia800 htckaiser beagleboard dht-walnut efika qemux86"
else
	ARCH_MACHINES="$@"
fi

for machine in ${ARCH_MACHINES}
do
        BUILD_MACHINE=$machine
        BUILD_CLEAN="qmake-native qmake2-native qt-x11-free python python-native python-pygtk gnome-icon-theme"
        BUILD_TARGETS=" \
                      abiword \
                      aircrack-ng \
                      angstrom-zeroconf-audio \
                      apache2 \
                      artoolkit \
                      asterisk \
                      atomic \
                      autoconf \
                      automake \
                      binutils \
                      bison \
                      bluez-gnome \
                      bluez-hcidump \
                      boa \
                      bonjour \
                      camera-assistant \
                      cdparanoia \
                      cdstatus \
                      checkers \
                      cherokee \
                      claws-mail \
                      connman \
                      connman-gnome \
                      contacts \
                      cron \
                      cvs \
                      cwiid \
                      dates \
                      devicekit-disks \
                      devmem2 \
                      dialog \
                      distcc \
                      dsniff \
                      dosfstools \
                      duke3d \
                      dvb-apps \
                      dvbstream \
                      dvbtraffic \
                      dvbtune \
                      e-uae \
                      e-wm \
                      ekiga \
                      empathy \
                      epdfview \
                      epiphany \
                      evince \
                      exo \
                      fakeroot \
                      fennec \
                      flame \
                      fluxbox \
                      ffmpeg \
                      fftw \
                      fftwf \
                      fftwl \
                      findutils \
                      firefox \
                      fish \
                      fldigi \
                      flex \
                      flite \
                      frameworkd \
                      freenote \
                      froot \
                      frozen-bubble \
                      gcc \
                      gdal \
                      gdb \
                      gdbserver \
                      gdm \
                      geda \
                      geda-docs \
                      geda-examples \
                      geda-gattrib \
                      geda-gnetlist \
                      geda-gschem \
                      geda-gsymcheck \
                      geda-symbols \
                      geda-utils \
                      gimp \
                      glider \
                      gmp \
                      gmpc \
                      gnome-games \
                      gnome-mplayer \
                      gnome-panel \
                      gnome-system-monitor \
                      gnumeric \
                      gnuplot \
                      gnuradio \
                      gpe-bluetooth \
                      gpe-gallery \
                      gpe-login \
                      gpe-mini-browser \
                      gpe-mini-browser2 \
                      gpe-scap \
                      gpe-sketchbook \
                      git \
                      gperf \
                      gphoto2 \
                      gpsdrive \
                      gqview \
                      gsm0710muxd \
                      gspcav1 \
                      gst-omapfb \
                      gtk+ \
                      gzip \
                      hal \
                      hdparm \
                      hexatrolic \
                      htop \
                      i2c-tools \
                      iaimaster \
                      icebloxx \
                      imagemagick \
                      inkwp \
                      ioquake3 \
                      ipaq-sleep \
                      iperf \
                      iptables \
                      irssi \
                      iscsi-target \
                      ivman \
                      jamvm \
                      julius \
                      kernel-module-udlfb \
                      kismet \
                      konqueror-embedded \
                      labyrinth \
                      lcd4linux \
                      leafpad \
                      libv4l \
                      lighttpd \
                      links-x11 \
                      lirc \
                      lowpan-tools \
                      m4 \
                      madplay \
                      mahjongg \
                      make \
                      maki \
                      mc \
                      mediatomb \
                      meta-nas-server \
                      meta-toolchain \
                      metacity \
                      midori \
                      mileage \
                      mono \
                      motion \
                      mousepad \
                      mpc \
                      mpd \
                      mpfr \
                      mpg123 \
                      mplayer \
                      mtd-utils \
                      mutt \
                      mythtv \
                      nautilus \
                      nbench-byte \
                      navit \
                      netkit-ftp \
                      netsurf \
                      news \
                      nmap \
                      nmm \
                      notecase \
                      ntfs-3g \
                      numptyphysics \
                      octave \
                      opencv \
                      opencv-samples \
                      openmoko-browser2 \
                      openredalert \
                      openvpn \
                      opie-notes \
                      orage \
                      padevchooser \
                      pavucontrol \
                      palantir \
                      pairs \
                      pciutils \
                      pdamaze \
                      perl \
                      pidgin \
                      pine \
                      pingus \
                      pipeman \
                      pkgconfig \
                      places \
                      pmount \
                      pocketcellar \
                      povray \
                      prboom \
                      prelink \
                      proftpd \
                      pushover \
                      python \
                      python-pybluez \
                      python-coherence \
                      python-pygame \
                      qfish2 \
                      qmatrix \
                      qpe-nmap \
                      qt-x11-free \
                      qt4-x11-free \
                      quake2 \
                      quasar \
                      quetoo \
                      rain \
                      rdesktop \
                      read-edid \
                      resistorui \
                      roadmap-gtk2 \
                      rtorrent \
                      ruby \
                      samba \
                      screen \
                      scummvm \
                      sdlquake \
                      sensors-applet \
                      setserial \
                      shisensho \
                      slcalc \
                      sliderulez \
                      sokoban \
                      squeakvm \
                      stalonetray \
                      strace \
                      subversion \
                      sugar \
                      sylpheed \
                      systray \
                      task-gpe-pim \
                      task-openmoko-feed \
                      task-openmoko-games \
                      task-opie-apps \
                      task-opie-games \
                      task-proper-tools \
                      task-xqtlauncher \
                      tasks \
                      texinfo \
                      thttpd \
                      thunar \
                      tightvnc \
                      timesleuth \
                      tofrodos \
                      totem \
                      transmission \
                      tron \
                      tzdata \
                      ubahnnav \
                      ufraw \
                      unzip \
                      usbutils \
                      usbview \
                      ushare \
                      viking \
                      vlc \
                      vpnc \
                      w3cam \
                      wifi-radar \
                      win4 \
                      wireshark \
                      wpa-gui \
                      wscan \
                      wt \
                      wt3 \
                      x11vnc \
                      xf86-input-evdev \
                      xf86-input-keyboard \
                      xf86-input-mouse \
                      xf86-input-tslib \
                      xf86-video-ati \
                      xf86-video-displaylink \
                      xf86-video-fbdev \
                      xf86-video-sisusb \
                      xf86-video-vesa \
                      xfce-mcs-manager
                      xfce-mcs-manager \
                      xfce-mcs-plugins \
                      xfce-terminal \
                      xfce-utils \
                      xfce4-appfinder \
                      xfce4-dev-tools \
                      xfce4-icon-theme \
                      xfce4-mixer \
                      xfce4-panel \
                      xfce4-session \
                      xfdesktop \
                      xfprint \
                      xfwm4 \
                      xfwm4-themes \
                      xmms \
                      xrefresh \
                      xserver-kdrive \
                      xserver-xorg \
                      zauralign \
                      zddice \
                      zenity \
                      zgscore \
                      zhone \
                      zip \
                      ziq \
                      zlapspeed \
                      zrev7 \
                      zsubhunt \
                      ztappy \
                      zuc \
                      zudoku \
                      "
        do_build
done

# machine packages (machine specific (sub)packages)

if [ "$1" = "" ] ; then
    MACHINES="simpad om-gta01 c7x0 ixp4xxbe nokia800 htckaiser beagleboard dht-walnut efika qemux86"
else
    MACHINES="$@"
fi

for machine in ${MACHINES}
do
        BUILD_MACHINE=$machine
            BUILD_CLEAN="qmake-native qmake2-native qt-x11-free python python-native python-pygtk gnome-icon-theme"
        BUILD_TARGETS="task-base task-boot \
                       task-opie task-opie-all \
                       task-openmoko-base task-openmoko-debug task-openmoko-examples task-openmoko-linux task-openmoko-native-sdk task-openmoko-net task-openmoko-phone task-openmoko-pim task-openmoko-ui \
                       angstrom-x11-base-depends angstrom-gpe-task-settings \
                       xserver-xorg-conf \
                       "

        do_build
done

for machine in collie h2200 hx4700 spitz akita tosa poodle c7x0
do
        BUILD_MACHINE=$machine
        BUILD_TARGETS="linux-kexecboot \
		       "
	do_build
done


Fix typo in buildbot_sdk_bundle.sh

Fix typo in buildbot_sdk_bundle.sh

R=binji@chromium.org

Review URL: https://codereview.chromium.org/224413003

git-svn-id: 84b3587ce119b778414dcb50e18b7479aacf4f1d@1205 7dad1e8b-422e-d2af-fbf5-8013b78bd812

#!/bin/bash
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# This script builds the packages that will be bundled with the NaCl SDK.

set -o errexit
set -o nounset

SCRIPT_DIR="$(cd $(dirname $0) && pwd)"
source ${SCRIPT_DIR}/buildbot_common.sh

NACLPORTS_ROOT="$(cd ${SCRIPT_DIR}/.. && pwd)"
OUT_DIR=${NACLPORTS_ROOT}/out
PACKAGE_DIR=${OUT_DIR}/packages

OUT_BUNDLE_DIR=${OUT_DIR}/sdk_bundle
OUT_PORTS_DIR=${OUT_BUNDLE_DIR}/${PEPPER_DIR}/ports

cd ${NACLPORTS_ROOT}

# Don't do a full clean of naclports when we're testing the buildbot scripts
# locally.
if [ -z "${TEST_BUILDBOT:-}" ]; then
  make clean
fi

# Don't build lua with readline support. We don't want to include
# readline and ncurses in the SDK.
export LUA_NO_READLINE=1

PACKAGES=$(make sdklibs_list)

# $1 - name of package
# $2 - arch to build for
# $3 - toolchain ('glibc', 'newlib', 'bionic', 'pnacl')
# $4 - 'Debug' or 'Release'
CustomBuildPackage() {
  export NACL_ARCH=$2
  export TOOLCHAIN=$3

  if [ "$4" = "Debug" ]; then
    export NACL_DEBUG=1
  else
    export NACL_DEBUG=0
  fi

  BuildPackage $1
}

# $1 - name of package
# $2 - arch to build for
BuildPackageArchAll() {
  local PACKAGE=$1
  local ARCH=$2
  CustomBuildPackage $PACKAGE $ARCH newlib Release
  CustomBuildPackage $PACKAGE $ARCH newlib Debug
  if [ "$ARCH" != "arm" -a "$ARCH" != "pnacl" ]; then
    CustomBuildPackage $PACKAGE $ARCH glibc Release
    CustomBuildPackage $PACKAGE $ARCH glibc Debug
  fi
}

ARCH_LIST="i686 x86_64 arm pnacl"

# $1 - name of package
BuildPackageAll() {
  local PACKAGE=$1
  for ARCH in $ARCH_LIST; do
      BuildPackageArchAll $PACKAGE $ARCH
  done
  echo "naclports Build SUCCEEDED $PACKAGE"
}

MoveLibs() {
  local PACKAGE=$1
  for ARCH in $ARCH_LIST; do
    ARCH_PKG=${ARCH}
    ARCH_DIR=${ARCH}
    if [ "$ARCH" = "i686" ]; then
      ARCH_DIR=x86_32
    fi
    if [ "$ARCH" = "x86_64" ]; then
      ARCH_PKG="x86-64"
    fi

    if [ "$ARCH" = "arm" -o "$ARCH" = "pnacl" ]; then
      LIBC_VARIANTS="newlib"
    else
      LIBC_VARIANTS="newlib glibc"
    fi

    TMP_DIR=out/tmp

    for LIBC in $LIBC_VARIANTS; do
      for CONFIG in Debug Release; do
        PKG_FILE=${PACKAGE_DIR}/${PACKAGE}
        PKG_SUFFIX="_${ARCH_PKG}"
        if [ ${ARCH} != "pnacl" ]; then
          PKG_SUFFIX+="_${LIBC}"
        fi
        if [ ${CONFIG} = "Debug" ]; then
          PKG_SUFFIX+="_debug"
        fi
        PKG_SUFFIX+=".tar.bz2"
        PKG_FILE=${PKG_FILE}_*${PKG_SUFFIX}
        if [ ! -f $PKG_FILE ]; then
          echo Missing package file ${PKG_FILE}
          exit 1
        fi
        rm -rf ${TMP_DIR}
        mkdir ${TMP_DIR}
        tar xf ${PKG_FILE} -C ${TMP_DIR}

        # Copy build results to destination directories.

        # copy includes
        mkdir -p ${OUT_PORTS_DIR}
        SRC_DIR=${TMP_DIR}/payload
        cp -d -r ${SRC_DIR}/include ${OUT_PORTS_DIR}

        # copy libs
        ARCH_LIB_DIR=${OUT_PORTS_DIR}/lib/${LIBC}_${ARCH_DIR}/${CONFIG}
        mkdir -p ${ARCH_LIB_DIR}
        for FILE in ${SRC_DIR}/lib/* ; do
          EXT="${FILE##*.}"
          if [[ ( -f "${FILE}" || -L "${FILE}" ) && "${EXT}" != "la" ]]; then
            cp -d -r ${FILE} ${ARCH_LIB_DIR}
          fi
        done
      done
    done
  done
}

for package in $PACKAGES; do
  BuildPackageAll $package
done

echo "@@@BUILD_STEP copy to bundle@@@"
for package in $PACKAGES; do
  MoveLibs $package
done

if [ -z "${NACLPORTS_NO_UPLOAD:-}" ]; then
  echo "@@@BUILD_STEP create archive@@@"
  RunCmd tar -C ${OUT_BUNDLE_DIR} ${PEPPER_DIR} -jcf naclports.tar.bz2

  echo "@@@BUILD_STEP upload archive@@@"
  RunCmd ${GSUTIL} cp -a public-read naclports.tar.bz2 gs://${UPLOAD_PATH}/
  URL="https://storage.googleapis.com/${UPLOAD_PATH}/naclports.tar.bz2"
  echo "@@@STEP_LINK@download@${URL}@@@"
fi

echo "@@@BUILD_STEP summary@@@"
if [[ $RESULT != 0 ]] ; then
  echo "@@@STEP_FAILURE@@@"
  echo -e "$MESSAGES"
fi

exit $RESULT

#!/bin/bash
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# This script builds the packages that will be bundled with the NaCl SDK.

set -o errexit
set -o nounset

SCRIPT_DIR="$(cd $(dirname $0) && pwd)"
source ${SCRIPT_DIR}/buildbot_common.sh

NACLPORTS_ROOT="$(cd ${SCRIPT_DIR}/.. && pwd)"
OUT_DIR=${NACLPORTS_ROOT}/out
PACKAGE_DIR=${OUT_DIR}/packages

OUT_BUNDLE_DIR=${OUT_DIR}/sdk_bundle
OUT_PORTS_DIR=${OUT_BUNDLE_DIR}/${PEPPER_DIR}/ports

cd ${NACLPORTS_ROOT}

# Don't do a full clean of naclports when we're testing the buildbot scripts
# locally.
if [ -z "${TEST_BUILDBOT:-}" ]; then
  make clean
fi

# Don't build lua with readline support. We don't want to include
# readline and ncurses in the SDK.
export LUA_NO_READLINE=1

PACKAGES=$(make sdklibs_list)

# $1 - name of package
# $2 - arch to build for
# $3 - toolchain ('glibc', 'newlib', 'bionic', 'pnacl')
# $4 - 'Debug' or 'Release'
CustomBuildPackage() {
  export NACL_ARCH=$2
  export TOOLCHAIN=$2

  if [ "$4" = "Debug" ]; then
    export NACL_DEBUG=1
  else
    export NACL_DEBUG=0
  fi

  BuildPackage $1
}

# $1 - name of package
# $2 - arch to build for
BuildPackageArchAll() {
  local PACKAGE=$1
  local ARCH=$2
  CustomBuildPackage $PACKAGE $ARCH newlib Release
  CustomBuildPackage $PACKAGE $ARCH newlib Debug
  if [ "$ARCH" != "arm" -a "$ARCH" != "pnacl" ]; then
    CustomBuildPackage $PACKAGE $ARCH glibc Release
    CustomBuildPackage $PACKAGE $ARCH glibc Debug
  fi
}

ARCH_LIST="i686 x86_64 arm pnacl"

# $1 - name of package
BuildPackageAll() {
  local PACKAGE=$1
  for ARCH in $ARCH_LIST; do
      BuildPackageArchAll $PACKAGE $ARCH
  done
  echo "naclports Build SUCCEEDED $PACKAGE"
}

MoveLibs() {
  local PACKAGE=$1
  for ARCH in $ARCH_LIST; do
    ARCH_PKG=${ARCH}
    ARCH_DIR=${ARCH}
    if [ "$ARCH" = "i686" ]; then
      ARCH_DIR=x86_32
    fi
    if [ "$ARCH" = "x86_64" ]; then
      ARCH_PKG="x86-64"
    fi

    if [ "$ARCH" = "arm" -o "$ARCH" = "pnacl" ]; then
      LIBC_VARIANTS="newlib"
    else
      LIBC_VARIANTS="newlib glibc"
    fi

    TMP_DIR=out/tmp

    for LIBC in $LIBC_VARIANTS; do
      for CONFIG in Debug Release; do
        PKG_FILE=${PACKAGE_DIR}/${PACKAGE}
        PKG_SUFFIX="_${ARCH_PKG}"
        if [ ${ARCH} != "pnacl" ]; then
          PKG_SUFFIX+="_${LIBC}"
        fi
        if [ ${CONFIG} = "Debug" ]; then
          PKG_SUFFIX+="_debug"
        fi
        PKG_SUFFIX+=".tar.bz2"
        PKG_FILE=${PKG_FILE}_*${PKG_SUFFIX}
        if [ ! -f $PKG_FILE ]; then
          echo Missing package file ${PKG_FILE}
          exit 1
        fi
        rm -rf ${TMP_DIR}
        mkdir ${TMP_DIR}
        tar xf ${PKG_FILE} -C ${TMP_DIR}

        # Copy build results to destination directories.

        # copy includes
        mkdir -p ${OUT_PORTS_DIR}
        SRC_DIR=${TMP_DIR}/payload
        cp -d -r ${SRC_DIR}/include ${OUT_PORTS_DIR}

        # copy libs
        ARCH_LIB_DIR=${OUT_PORTS_DIR}/lib/${LIBC}_${ARCH_DIR}/${CONFIG}
        mkdir -p ${ARCH_LIB_DIR}
        for FILE in ${SRC_DIR}/lib/* ; do
          EXT="${FILE##*.}"
          if [[ ( -f "${FILE}" || -L "${FILE}" ) && "${EXT}" != "la" ]]; then
            cp -d -r ${FILE} ${ARCH_LIB_DIR}
          fi
        done
      done
    done
  done
}

for package in $PACKAGES; do
  BuildPackageAll $package
done

echo "@@@BUILD_STEP copy to bundle@@@"
for package in $PACKAGES; do
  MoveLibs $package
done

if [ -z "${NACLPORTS_NO_UPLOAD:-}" ]; then
  echo "@@@BUILD_STEP create archive@@@"
  RunCmd tar -C ${OUT_BUNDLE_DIR} ${PEPPER_DIR} -jcf naclports.tar.bz2

  echo "@@@BUILD_STEP upload archive@@@"
  RunCmd ${GSUTIL} cp -a public-read naclports.tar.bz2 gs://${UPLOAD_PATH}/
  URL="https://storage.googleapis.com/${UPLOAD_PATH}/naclports.tar.bz2"
  echo "@@@STEP_LINK@download@${URL}@@@"
fi

echo "@@@BUILD_STEP summary@@@"
if [[ $RESULT != 0 ]] ; then
  echo "@@@STEP_FAILURE@@@"
  echo -e "$MESSAGES"
fi

exit $RESULT


Create DisableDefault_OpenSaveLocally.sh

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/timcarnold/BashScripts.git/'


Add script for USB connected kindle.

Add script for USB connected kindle.

Signed-off-by: Gris Ge <13467ad561276cbdce219755b3afc2c00b6ba175@gmail.com>

#!/bin/sh

FOLDER="/mnt/base-us/weather"
FILE="weather.png"
URL="http://cn-vpn.grisge.info/weather/weather.png"

cd $FOLDER

ifconfig wlan0 >/dev/null 2>&1
if [ $? -ne 0 ];then
    exit
fi

rm $FOLDER/$FILE

wget $URL -O $FOLDER/$FILE

if [ -e $FOLDER/$FILE ];then
    eips -f -g $FOLDER/$FILE
fi

error: pathspec 'display-weather-usb-power.sh' did not match any file(s) known to git


Fail init-tools atomically

Fail init-tools atomically

Before this change, a failure fairly early in the `init-tools.sh` process could result in subsequent attempts being short-circuited.

This introduces a marker file that is only written at the very end of the script, so that a `dotnet restore` or `init-tools.sh`-from-package failure can be retried immediately.

#!/usr/bin/env bash

__scriptpath=$(cd "$(dirname "$0")"; pwd -P)
__init_tools_log=$__scriptpath/init-tools.log
__PACKAGES_DIR=$__scriptpath/packages
__TOOLRUNTIME_DIR=$__scriptpath/Tools
__DOTNET_PATH=$__TOOLRUNTIME_DIR/dotnetcli
__DOTNET_CMD=$__DOTNET_PATH/dotnet
if [ -z "$__BUILDTOOLS_SOURCE" ]; then __BUILDTOOLS_SOURCE=https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json; fi
__BUILD_TOOLS_PACKAGE_VERSION=$(cat $__scriptpath/BuildToolsVersion.txt)
__DOTNET_TOOLS_VERSION=$(cat $__scriptpath/DotnetCLIVersion.txt)
__BUILD_TOOLS_PATH=$__PACKAGES_DIR/Microsoft.DotNet.BuildTools/$__BUILD_TOOLS_PACKAGE_VERSION/lib
__PROJECT_JSON_PATH=$__TOOLRUNTIME_DIR/$__BUILD_TOOLS_PACKAGE_VERSION
__PROJECT_JSON_FILE=$__PROJECT_JSON_PATH/project.json
__PROJECT_JSON_CONTENTS="{ \"dependencies\": { \"Microsoft.DotNet.BuildTools\": \"$__BUILD_TOOLS_PACKAGE_VERSION\" }, \"frameworks\": { \"netcoreapp1.0\": { } } }"
__INIT_TOOLS_DONE_MARKER=$__PROJECT_JSON_PATH/done

if [ -z "$__DOTNET_PKG" ]; then
OSName=$(uname -s)
    case $OSName in
        Darwin)
            OS=OSX
            __DOTNET_PKG=dotnet-dev-osx-x64
            ulimit -n 2048
            ;;

        Linux)
            OS=Linux
            if [ ! -e /etc/os-release ]; then
                echo "Cannot determine Linux distribution, asuming Ubuntu 14.04."
                __DOTNET_PKG=dotnet-dev-ubuntu.14.04-x64
            else
                source /etc/os-release
                if [[ "$ID" == "ubuntu" && "$VERSION_ID" != "14.04" && "$VERSION_ID" != "16.04" ]]; then
                    echo "Unsupported Ubuntu version, falling back to Ubuntu 14.04."
                    __DOTNET_PKG=dotnet-dev-ubuntu.14.04-x64
                else
                    __DOTNET_PKG="dotnet-dev-$ID.$VERSION_ID-x64"
                fi
            fi
            ;;

        *)
            echo "Unsupported OS '$OSName' detected. Downloading ubuntu-x64 tools."
            OS=Linux
            __DOTNET_PKG=dotnet-dev-ubuntu-x64
            ;;
  esac
fi

if [ ! -e $__INIT_TOOLS_DONE_MARKER ]; then
    if [ -e $__TOOLRUNTIME_DIR ]; then rm -rf -- $__TOOLRUNTIME_DIR; fi
    echo "Running: $__scriptpath/init-tools.sh" > $__init_tools_log
    if [ ! -e $__DOTNET_PATH ]; then
        echo "Installing dotnet cli..."
        __DOTNET_LOCATION="https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/${__DOTNET_TOOLS_VERSION}/${__DOTNET_PKG}.${__DOTNET_TOOLS_VERSION}.tar.gz"
        # curl has HTTPS CA trust-issues less often than wget, so lets try that first.
        echo "Installing '${__DOTNET_LOCATION}' to '$__DOTNET_PATH/dotnet.tar'" >> $__init_tools_log
        which curl > /dev/null 2> /dev/null
        if [ $? -ne 0 ]; then
            mkdir -p "$__DOTNET_PATH"
            wget -q -O $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
        else
            curl --retry 10 -sSL --create-dirs -o $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
        fi
        cd $__DOTNET_PATH
        tar -xf $__DOTNET_PATH/dotnet.tar

        cd $__scriptpath
    fi

    if [ ! -d "$__PROJECT_JSON_PATH" ]; then mkdir "$__PROJECT_JSON_PATH"; fi
    echo $__PROJECT_JSON_CONTENTS > "$__PROJECT_JSON_FILE"

    if [ ! -e $__BUILD_TOOLS_PATH ]; then
        echo "Restoring BuildTools version $__BUILD_TOOLS_PACKAGE_VERSION..."
        echo "Running: $__DOTNET_CMD restore \"$__PROJECT_JSON_FILE\" --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE" >> $__init_tools_log
        $__DOTNET_CMD restore "$__PROJECT_JSON_FILE" --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE >> $__init_tools_log
        if [ ! -e "$__BUILD_TOOLS_PATH/init-tools.sh" ]; then echo "ERROR: Could not restore build tools correctly. See '$__init_tools_log' for more details."; fi
    fi

    echo "Initializing BuildTools..."
    echo "Running: $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR" >> $__init_tools_log
    $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR >> $__init_tools_log
    if [ "$?" != "0" ]; then
        echo "ERROR: An error occured when trying to initialize the tools. Please check '$__init_tools_log' for more details."
        exit 1
    fi
    touch $__INIT_TOOLS_DONE_MARKER
    echo "Done initializing tools."
else
    echo "Tools are already initialized"
fi

#!/usr/bin/env bash

__scriptpath=$(cd "$(dirname "$0")"; pwd -P)
__init_tools_log=$__scriptpath/init-tools.log
__PACKAGES_DIR=$__scriptpath/packages
__TOOLRUNTIME_DIR=$__scriptpath/Tools
__DOTNET_PATH=$__TOOLRUNTIME_DIR/dotnetcli
__DOTNET_CMD=$__DOTNET_PATH/dotnet
if [ -z "$__BUILDTOOLS_SOURCE" ]; then __BUILDTOOLS_SOURCE=https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json; fi
__BUILD_TOOLS_PACKAGE_VERSION=$(cat $__scriptpath/BuildToolsVersion.txt)
__DOTNET_TOOLS_VERSION=$(cat $__scriptpath/DotnetCLIVersion.txt)
__BUILD_TOOLS_PATH=$__PACKAGES_DIR/Microsoft.DotNet.BuildTools/$__BUILD_TOOLS_PACKAGE_VERSION/lib
__PROJECT_JSON_PATH=$__TOOLRUNTIME_DIR/$__BUILD_TOOLS_PACKAGE_VERSION
__PROJECT_JSON_FILE=$__PROJECT_JSON_PATH/project.json
__PROJECT_JSON_CONTENTS="{ \"dependencies\": { \"Microsoft.DotNet.BuildTools\": \"$__BUILD_TOOLS_PACKAGE_VERSION\" }, \"frameworks\": { \"netcoreapp1.0\": { } } }"

if [ -z "$__DOTNET_PKG" ]; then
OSName=$(uname -s)
    case $OSName in
        Darwin)
            OS=OSX
            __DOTNET_PKG=dotnet-dev-osx-x64
            ulimit -n 2048
            ;;

        Linux)
            OS=Linux
            if [ ! -e /etc/os-release ]; then
                echo "Cannot determine Linux distribution, asuming Ubuntu 14.04."
                __DOTNET_PKG=dotnet-dev-ubuntu.14.04-x64
            else
                source /etc/os-release
                if [[ "$ID" == "ubuntu" && "$VERSION_ID" != "14.04" && "$VERSION_ID" != "16.04" ]]; then
                    echo "Unsupported Ubuntu version, falling back to Ubuntu 14.04."
                    __DOTNET_PKG=dotnet-dev-ubuntu.14.04-x64
                else
                    __DOTNET_PKG="dotnet-dev-$ID.$VERSION_ID-x64"
                fi
            fi
            ;;

        *)
            echo "Unsupported OS '$OSName' detected. Downloading ubuntu-x64 tools."
            OS=Linux
            __DOTNET_PKG=dotnet-dev-ubuntu-x64
            ;;
  esac
fi

if [ ! -e $__PROJECT_JSON_FILE ]; then
    if [ -e $__TOOLRUNTIME_DIR ]; then rm -rf -- $__TOOLRUNTIME_DIR; fi
    echo "Running: $__scriptpath/init-tools.sh" > $__init_tools_log
    if [ ! -e $__DOTNET_PATH ]; then
        echo "Installing dotnet cli..."
        __DOTNET_LOCATION="https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/${__DOTNET_TOOLS_VERSION}/${__DOTNET_PKG}.${__DOTNET_TOOLS_VERSION}.tar.gz"
        # curl has HTTPS CA trust-issues less often than wget, so lets try that first.
        echo "Installing '${__DOTNET_LOCATION}' to '$__DOTNET_PATH/dotnet.tar'" >> $__init_tools_log
        which curl > /dev/null 2> /dev/null
        if [ $? -ne 0 ]; then
            mkdir -p "$__DOTNET_PATH"
            wget -q -O $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
        else
            curl --retry 10 -sSL --create-dirs -o $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
        fi
        cd $__DOTNET_PATH
        tar -xf $__DOTNET_PATH/dotnet.tar

        cd $__scriptpath
    fi

    if [ ! -d "$__PROJECT_JSON_PATH" ]; then mkdir "$__PROJECT_JSON_PATH"; fi
    echo $__PROJECT_JSON_CONTENTS > "$__PROJECT_JSON_FILE"

    if [ ! -e $__BUILD_TOOLS_PATH ]; then
        echo "Restoring BuildTools version $__BUILD_TOOLS_PACKAGE_VERSION..."
        echo "Running: $__DOTNET_CMD restore \"$__PROJECT_JSON_FILE\" --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE" >> $__init_tools_log
        $__DOTNET_CMD restore "$__PROJECT_JSON_FILE" --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE >> $__init_tools_log
        if [ ! -e "$__BUILD_TOOLS_PATH/init-tools.sh" ]; then echo "ERROR: Could not restore build tools correctly. See '$__init_tools_log' for more details."; fi
    fi

    echo "Initializing BuildTools..."
    echo "Running: $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR" >> $__init_tools_log
    $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR >> $__init_tools_log
    if [ "$?" != "0" ]; then
        echo "ERROR: An error occured when trying to initialize the tools. Please check '$__init_tools_log' for more details."
        exit 1
    fi
    echo "Done initializing tools."
else
    echo "Tools are already initialized"
fi


Update run.sh

Update run.sh

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/bugra9/test.git/'


turn off default torrent search providers

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/chrisanthropic/PlexInTheCloud.git/'


Fixed timed_tests.sh script to preserve exit status of the test.

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/reneploetz/mesos.git/'


chore: Add clean check script

chore: Add clean check script

#!/bin/bash
#
# This script checks whether was Xcode project cleaned up or not
# @piechart
#

APP_NAME=Tagger
PROJECT_TITLE_BEGIN=$APP_NAME-
DERIVED=$HOME/Library/Developer/Xcode/DerivedData/

# Result: `true` if Tagger.app file NOT found (project is cleaned) or any dir not found
projectIsClean() {
    if [ -d $DERIVED ]; then
        cd $DERIVED
        DERIVED_DIRS=($(ls | grep $PROJECT_TITLE_BEGIN))
        if (( ${#DERIVED_DIRS[@]} > 0 )); then # checks count of found dirs
            PRODUCTS_DIR=$DERIVED${DERIVED_DIRS[0]}/Build/Products/
            if [ -d $PRODUCTS_DIR ]; then
                cd $PRODUCTS_DIR
                DIRS=($( ls -t ))
                if (( ${#DIRS[@]} > 0 )); then
                    cd ${DIRS[0]} # we're in Debug-iphonesimulator for example
                    APP_FILE=$APP_NAME.app
                    if [ -e $APP_FILE ]; then # if exists, checking its size
                        SIZE=$(du -hsk $APP_FILE | cut -f1)
                        if [ $SIZE -gt 0 ] ; then
                            return 1
                        fi
                    fi
                fi
            fi
        else
            echo Project dir with name starting with $PROJECT_TITLE_BEGIN not found in $DERIVED
        fi
    else
        echo $DERIVED not found
    fi
}

if projectIsClean; then
    echo 1
else
    echo 0
fi

error: pathspec 'Scripts/clean_check.sh' did not match any file(s) known to git


Create maintain.sh

Create maintain.sh

#!/bin/bash

# Backup Script
#
# Magento Maintennance Script / Reindexer
# Author: sales@nodeseo.com
# (c) 2014 NodeSEO.com
#
#
# Script is invoked either manually or via cronjob and accepts the following arguments
#        ./maintain.sh cleanup
#
#        -> Removes backups older than the specified number of ${DAYS}
#        -> Clears the Magento Cache directory
#        -> Clears Magento sessions older than 2 days
#        -> Rebuilds all Magento Indexes using the BetterIndexer.php script
#                    -> will fallback to default indexer if does not exist
#        -> Cleans the magento logs
#
#
#        ./maintain.sh backup
#
#        -> Checks if todays backup already exists
#        -> Compresses the website directory and stores the backup in ${DEST_DIR}/backup-DATE.zip
#        -> Dumps all MySQL Databases to ${DEST_DIR}/backup-DATE.sql
#        -> Copies the ${SRC_DIR}/media directory to ${DEST_DIR}/media so as to keep backups minimal in size
#
#        ./maintain.sh cleanup backup
#
#        -> Executes both processes above
#
#
# TODO
#
#        * Better error checking
#        * Email notification on errors
#        * Database optimisation
#        * Extract credentials to external .key file
#
# VERSION : 0.0.1
# LICENSE : See https://github.com/nodeseo/magentomaintainer/blob/master/LICENSE
#           Released under Apache v2 License
#

# Get current date
TIMESTAMP=`date +%Y%m%d`

# here I am setting up the backup directory as a variable
DEST_DIR="/backup"

# here I am setting up the directory in which I want to backup, again another variable
SRC_DIR="/var/www"
BACKUP=${DEST_DIR}/backup-${TIMESTAMP}.zip

#number of days to keep backups
DAYS=14

#SQL Credentials
USER=<your user>
PASS=<your pass>

#
# if there is no backup for today already, create it.
#

# The SQL and Directories have been backed up, lets do some house cleaning
# Delete backups older than 7 days
if [[ $@ == **cleanup** ]]
then
   echo "Removing old backups..."
   find /backup -name 'backup-*' -mtime +${DAYS} -delete

   #
   # Clear cache / session buildup
   #
   echo "Clearing the caches..."
     sudo chmod 777 -R ${SRC_DIR}/var/cache
     sudo rm -rf ${SRC_DIR}/var/cache/

     # Clear old session data
   echo "Clearing old sessions..."
     sudo find ${SRC_DIR}/var/session -type f -mtime +2 -exec rm {} \;
     ls -1 ${SRC_DIR}/var/session | wc -l
   echo "sessions remain."
     # Rebuild the indexes in the background
     echo "Rebuilding indexes..."
     sudo php -d memory_limit=2048M ${SRC_DIR}/shell/indexer.php reindexall

     # Clean the logs
   echo "Cleaning the logs..."
     sudo php -d memory_limit=2048M ${SRC_DIR}/shell/log.php clean
     sudo php ${SRC_DIR}/shell/log.php status
else
    echo "Cleanup option not selected..."
fi

# Rather than having multiple copies of the media we exclude from the backup above, but we should keep an upto date copy
if [[ $@ == **backup** ]]
then

   if [ -f ${BACKUP} ];
   then
       echo "Backup for today already exists...skipping"
   else
       echo "Compressing site..."
       sudo zip -r -q ${BACKUP} ${SRC_DIR} -x ${SRC_DIR}/var/\* ${SRC_DIR}/media/\*
        echo "Backing up media directory..."
        sudo cp ${SRC_DIR}/media -R ${DEST_DIR}/media -f
   fi
   echo "Creating SQL dump..."
       mysqldump -u ${USER} -p${PASS} --all-databases > ${DEST_DIR}/backup-${TIMESTAMP}.sql

else
    echo "Backup option not selected..."
fi

error: pathspec 'maintain.sh' did not match any file(s) known to git


add run.sh : simple script running supervisor daemon via supervisor.conf

error: pathspec '.docker/run.sh' did not match any file(s) known to git


added a SGE example script for spike sorting

#!/bin/bash
#
# below you have to specify the range of channel groups *plus one*
#$ -t 1-4
#$ -cwd
#$ -j y
#$ -S /bin/bash
#$ -o /home/battaglia/batch_out
#

export PATH=/home/battaglia/anaconda3/bin::$PATH
echo
HOST=`hostname`
echo host $HOST
#WORKDIR=/peones/${HOST}
WORKDIR=/local
echo $WORKDIR
cd $WORKDIR

OUTFILE=${JOB_NAME}.o${JOB_ID}
echo outfile $OUTFILE
mkdir -p battaglia
cd battaglia

EXPERIMENT=SocialPFC
ANIMAL=m0001
DATASET=2014-10-30_15-04-50
PROBEFILE=${ANIMAL}_16.prb
NODE=106
DURATION=10
GROUP=$(expr $SGE_TASK_ID - 1)

rsync -avh  -e ssh fpbatta@tompouce.science.ru.nl:/volume1/homes/reichler/data/${EXPERIMENT}/${ANIMAL}/${DATASET} .

cd ${DATASET}

rsync -avh  -e ssh fpbatta@tompouce.science.ru.nl:/volume1/homes/reichler/data/${EXPERIMENT}/${ANIMAL}/${PROBEFILE} .

source activate ophys

mkdir -p klusta${GROUP}
oio . -l ${PROBEFILE} --channel-groups ${GROUP} -S -n $NODE -D ${DURATION} -o klusta${GROUP}/raw.dat

cp /home/battaglia/batch_out/${OUTFILE} klusta${GROUP}

error: pathspec 'example_scripts/ophys_klusta_bygroup.sh' did not match any file(s) known to git


Try to improve the default memory configuration of the operators (#6420)

Signed-off-by: Jakub Scholz <c50267b906a652f2142cfab006e215c9f6fdc8a0@scholzj.com>

#!/usr/bin/env bash
set -e
set +x

# expand gc options based upon java version
function get_gc_opts {
  if [ "${STRIMZI_GC_LOG_ENABLED}" == "true" ]; then
    echo "-Xlog:gc*:stdout:time -XX:NativeMemoryTracking=summary"
  else
    # no gc options
    echo ""
  fi
}

export MALLOC_ARENA_MAX=2

# Make sure that we use /dev/urandom
JAVA_OPTS="${JAVA_OPTS} -Dvertx.cacheDirBase=/tmp/vertx-cache -Djava.security.egd=file:/dev/./urandom"

# Enable GC logging for memory tracking
JAVA_OPTS="${JAVA_OPTS} $(get_gc_opts)"

# Deny illegal access option is supported only on Java 9 and higher
JAVA_OPTS="${JAVA_OPTS} --illegal-access=deny"

# Default memory options used when the user didn't configured any of these options, we set the defaults
if [[ "$JAVA_OPTS" != *"MinRAMPercentage"* && "$JAVA_OPTS" != *"MaxRAMPercentage"* && "$JAVA_OPTS" != *"InitialRAMPercentage"* ]]; then
  JAVA_OPTS="${JAVA_OPTS} -XX:MinRAMPercentage=10 -XX:MaxRAMPercentage=20 -XX:InitialRAMPercentage=10"
fi

# Disable FIPS if needed
if [ "$FIPS_MODE" = "disabled" ]; then
    JAVA_OPTS="${JAVA_OPTS} -Dcom.redhat.fips=false"
fi

set -x

# shellcheck disable=SC2086
exec /usr/bin/tini -w -e 143 -- java $JAVA_OPTS -classpath "$JAVA_CLASSPATH" "$JAVA_MAIN" "$@"

#!/usr/bin/env bash
set -e
set +x

# expand gc options based upon java version
function get_gc_opts {
  if [ "${STRIMZI_GC_LOG_ENABLED}" == "true" ]; then
    echo "-Xlog:gc*:stdout:time -XX:NativeMemoryTracking=summary"
  else
    # no gc options
    echo ""
  fi
}

export MALLOC_ARENA_MAX=2

# Make sure that we use /dev/urandom
JAVA_OPTS="${JAVA_OPTS} -Dvertx.cacheDirBase=/tmp/vertx-cache -Djava.security.egd=file:/dev/./urandom"

# Enable GC logging for memory tracking
JAVA_OPTS="${JAVA_OPTS} $(get_gc_opts)"

# Deny illegal access option is supported only on Java 9 and higher
JAVA_OPTS="${JAVA_OPTS} --illegal-access=deny"

# Disable FIPS if needed
if [ "$FIPS_MODE" = "disabled" ]; then
    JAVA_OPTS="${JAVA_OPTS} -Dcom.redhat.fips=false"
fi

set -x

# shellcheck disable=SC2086
exec /usr/bin/tini -w -e 143 -- java $JAVA_OPTS -classpath "$JAVA_CLASSPATH" "$JAVA_MAIN" "$@"


Initial commit.

Initial commit.

#!/bin/bash

# Display Repo:
echo -e "Repo Slug:"
echo -e "\tExpected:\tValkryst/VRadio"
echo -e "\tActual:\t$TRAVIS_REPO_SLUG\n"

# Display JDK Version:
echo -e "JDK Version:"
echo -e "\tExpected:\toraclejdk8"
echo -e "\tActual:\t$TRAVIS_JDK_VERSION\n"

# Display 'Is Pull Request':
echo -e "Is Pull Request:"
echo -e "\tExpected:\tfalse"
echo -e "\tActual:\t$TRAVIS_PULL_REQUEST\n"

# Display Branch:
echo -e "Branch:"
echo -e "\tExpected:\tfalse"
echo -e "\tActual:\t$TRAVIS_BRANCH\n"

if [ "$TRAVIS_REPO_SLUG" == "Valkryst/VRadio" ] &&
   [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] &&
   [ "$TRAVIS_PULL_REQUEST" == "false" ] &&
   [ "$TRAVIS_BRANCH" == "master" ]; then

    echo -e "Publishing JavaDoc...\n"

    cd $HOME
    git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/Valkryst/VRadio gh-pages > /dev/null

    cd gh-pages
    git rm -r *
    git config user.name "Valkryst"
    git config user.email "valkryst@valkryst.com"
    cp -r /home/travis/build/Valkryst/VRadio/target/site/apidocs/* .
    git add .
    git commit -m "Updates JavaDoc on successful Travis CI build. Build #$TRAVIS_BUILD_NUMBER auto-pushed to gh-pages."
    git push -fq origin gh-pages > /dev/null

    echo -e "Published JavaDoc to gh-pages branch.\n"
fi

error: pathspec 'Deploy_JavaDoc.sh' did not match any file(s) known to git


Add testUnit script

Add testUnit script

#!/bin/bash

DU=./dropbox_uploader.sh

function check_exit
{
    if [ $? -ne 0 ]; then
        echo " Error!!!"
        exit 1
    else
        echo " Passed"
    fi
}

#Creating garbage data
echo -ne " - Creating garbage data...\n"
rm -fr "testData"
mkdir -p "testData"
dd if=/dev/urandom of="testData/file 1.txt" bs=1M count=3
dd if=/dev/urandom of="testData/file 2 ù.txt" bs=1M count=5
mkdir -p "testData/recurse"
dd if=/dev/urandom of="testData/recurse/file 3.txt" bs=1M count=1
dd if=/dev/urandom of="testData/recurse/test_Ü.txt" bs=1M count=1
mkdir -p "testData/recurse/dir 1/"
dd if=/dev/urandom of="testData/recurse/dir 1/file 4.txt" bs=1M count=1
mkdir -p "testData/recurse/dir 1/dir 3/"
dd if=/dev/urandom of="testData/recurse/dir 1/dir 3/file 5.txt" bs=1M count=1
mkdir -p "testData/recurse/dir 2/"

rm -fr recurse

#Rmdir
echo -ne " - Remove remote directory..."
$DU -q remove du_tests
echo ""

#Mkdir
echo -ne " - Make remote directory..."
$DU -q mkdir du_tests
check_exit

#Simple upload
echo -ne " - Simple file upload..."
$DU -q upload "testData/file 1.txt" du_tests
check_exit

#Checking with list
echo -ne " - Checking file..."
$DU -q list du_tests | grep "file 1.txt" > /dev/null
check_exit

#Simple upload 2
echo -ne " - Simple file upload with special chars..."
$DU -q upload testData/file\ 2* du_tests
check_exit

#Checking with list
echo -ne " - Checking file..."
$DU -q list du_tests | grep "file 2 ù.txt" > /dev/null
check_exit

#Recursive directory upload
echo -ne " - Recursive directory upload..."
$DU -q upload testData/recurse du_tests
check_exit

#Recursive directory download
echo -ne " - Recursive directory download..."
$DU -q download du_tests/recurse
check_exit

#Checking the downloaded dir
echo -ne " - Checking the downloaded dir..."
diff -r recurse testData/recurse/
check_exit

#Again, recursive directory download
echo -ne " - Again recursive directory download..."
$DU -q download du_tests/recurse
check_exit

#Again, checking the downloaded dir
echo -ne " - Checking the downloaded dir..."
diff -r recurse testData/recurse/
check_exit

rm -fr "recurse"
rm -fr "testData"

#Rmdir
echo -ne " - Remove remote directory..."
$DU -q remove du_tests
check_exit

error: pathspec 'testUnit.sh' did not match any file(s) known to git


small bash script to test the package

small bash script to test the package

#!/bin/bash

set -e

cd "$( dirname "${BASH_SOURCE[0]}" )"
python -m nbd.main "$@"

error: pathspec 'test_run.sh' did not match any file(s) known to git


Fix: "\s" is a gawk-specific regexp operator.

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/takady/oh-my-zsh.git/'


disable OMZ update prompt

disable OMZ update prompt

error: pathspec 'zsh/config/omz.zsh' did not match any file(s) known to git