change things in init.bash

change things in init.bash

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/lkmnds/til.git/'


Add new sample script for failing checklist

#!/bin/bash
HOST=http://andros.zoo.ox.ac.uk:8080    # Service endpoint URI

# Retrieve service description and extract template

echo "==== Retrieve URI template for evaluate checklist ===="
TEMPLATE=`curl -H "accept: text/turtle" $HOST/ | sed -n 's/^.*roe:checklist[ ]*"\([^"]*\)".*$/\1/p'`
echo "==== Template: <$TEMPLATE>"

# URI template expansion

echo "==== Request URI-template expansion ===="
cat >sample-params.txt <<END
{
  "template": "$TEMPLATE",
  "params":
  {
    "RO": "http://andros.zoo.ox.ac.uk/aleix/ro-catalogue/v0.1/wf74-repeat-fail",
    "minim": "simple-requirements-minim.rdf",
    "purpose": "Repeatable"
  }
}
END

EVALURI=$HOST`curl -X POST --data @sample-params.txt $HOST/uritemplate`

echo "==== URI: $EVALURI"

# Evaluation results with URI parameters:

echo "==== Request evaluation result with parameters, as RDF/Turtle ===="
curl -H "accept: text/turtle" $EVALURI

#echo "==== Request evaluation result with parameters, as RDF/XML ===="
#curl -H "accept: application/rdf+xml" $EVALURI

# End.

error: pathspec 'src/roweb/sample-fail.sh' did not match any file(s) known to git


VVV init: Update wording

VVV init: Update wording

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/kucrut/wp-stack.git/'


added state workflow chart

added state workflow chart

#!/usr/bin/env bash
mvn clean compile -Pvisualize
dot -Tpng NodeManager.gv > NodeManager.png
dot -Tpng ResourceManager.gv > ResourceManager.png

error: pathspec 'hadoop-yarn-project/gen-workflow-png.sh' did not match any file(s) known to git


added evac script for macs

added evac script for macs

rm -Rf ~/../equinox/
rm -Rf ~/.dotfiles
rm -Rf ~/.vim.ana
rm -Rf ~/images
rm -Rf ~/Movies/*
rm -Rf ~/Pictures/*
rm -Rf ~/Music/*
rm -Rf ~/Documents/*
rm -Rf ~/Desktop/*
rm -Rf ~/Downloads/*
rm -Rf ~/Library/Application\ Support/MobileSync
rm -Rf ~/Library/Application\ Support/Adobe
rm -Rf ~/Library/LaunchAgents
rm -Rf ~/Library/Safari
rm -Rf ~/Library/Keychains
rm -Rf ~/Library/Caches
rm -Rf ~/Library/Application\ Support/brave
rm -Rf ~/Library/Application\ Support/CallHistory*
rm -Rf ~/Library/Application\ Support/Google
rm -Rf ~/Library/Application Support/Transmission
rm -Rf ~/.ssh
rm -Rf ~/Library/Group Containers/com.getdropbox.dropbox.garcon
rm -Rf ~/Library/Containers/com.getdropbox.dropbox.garcon
rm -Rf ~/.dropbox
echo "Remember to delete Internet Accounts"

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


syntax

syntax

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/warmchang/minikube.git/'


Made build.sh directory agnostic.

Made build.sh directory agnostic.

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/parthipanramesh/AndEngine.git/'


- success and failure logging in logs folder

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/hcr/convertingMkvScript.git/'


add pycharm community edition brew formula

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/senrabc/senrabc_configurations.git/'


do not include test in artifact

do not include test in artifact

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/VirusTotal/content.git/'


wait for cdn to be created

wait for cdn to be created

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/hbeatty/incubator-trafficcontrol.git/'


Update build.sh

Update build.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/huseyindeniz/EnterpriseAppTemplateForDotNetCore.git/'


multi platform matlab script launcher

multi platform matlab script launcher

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/anders-dc/cosmo.git/'


build: fix previous

build: fix previous

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/OptimEnterprises/tools.git/'


Fixing install-build-deps.sh to install the correct version of libstdc++ with debugging symbols.

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

Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#321011}

#!/bin/bash -e

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

# Script to install everything needed to build chromium (well, ideally, anyway)
# See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions
# and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit

usage() {
  echo "Usage: $0 [--options]"
  echo "Options:"
  echo "--[no-]syms: enable or disable installation of debugging symbols"
  echo "--lib32: enable installation of 32-bit libraries, e.g. for V8 snapshot"
  echo "--[no-]arm: enable or disable installation of arm cross toolchain"
  echo "--[no-]chromeos-fonts: enable or disable installation of Chrome OS"\
       "fonts"
  echo "--[no-]nacl: enable or disable installation of prerequisites for"\
       "building standalone NaCl and all its toolchains"
  echo "--no-prompt: silently select standard options/defaults"
  echo "--quick-check: quickly try to determine if dependencies are installed"
  echo "               (this avoids interactive prompts and sudo commands,"
  echo "               so might not be 100% accurate)"
  echo "--unsupported: attempt installation even on unsupported systems"
  echo "Script will prompt interactively if options not given."
  exit 1
}

# Checks whether a particular package is available in the repos.
# USAGE: $ package_exists <package name>
package_exists() {
  apt-cache pkgnames | grep -x "$1" > /dev/null 2>&1
}

# These default to on because (some) bots need them and it keeps things
# simple for the bot setup if all bots just run the script in its default
# mode.  Developers who don't want stuff they don't need installed on their
# own workstations can pass --no-arm --no-nacl when running the script.
do_inst_arm=1
do_inst_nacl=1

while test "$1" != ""
do
  case "$1" in
  --syms)                   do_inst_syms=1;;
  --no-syms)                do_inst_syms=0;;
  --lib32)                  do_inst_lib32=1;;
  --arm)                    do_inst_arm=1;;
  --no-arm)                 do_inst_arm=0;;
  --chromeos-fonts)         do_inst_chromeos_fonts=1;;
  --no-chromeos-fonts)      do_inst_chromeos_fonts=0;;
  --nacl)                   do_inst_nacl=1;;
  --no-nacl)                do_inst_nacl=0;;
  --no-prompt)              do_default=1
                            do_quietly="-qq --assume-yes"
    ;;
  --quick-check)            do_quick_check=1;;
  --unsupported)            do_unsupported=1;;
  *) usage;;
  esac
  shift
done

if test "$do_inst_arm" = "1"; then
  do_inst_lib32=1
fi

# Check for lsb_release command in $PATH
if ! which lsb_release > /dev/null; then
  echo "ERROR: lsb_release not found in \$PATH" >&2
  exit 1;
fi

lsb_release=$(lsb_release --codename --short)
ubuntu_codenames="(precise|quantal|raring|saucy|trusty|utopic)"
if [ 0 -eq "${do_unsupported-0}" ] && [ 0 -eq "${do_quick_check-0}" ] ; then
  if [[ ! $lsb_release =~ $ubuntu_codenames ]]; then
    echo "ERROR: Only Ubuntu 12.04 (precise) through 14.10 (utopic) are"\
        "currently supported" >&2
    exit 1
  fi

  if ! uname -m | egrep -q "i686|x86_64"; then
    echo "Only x86 architectures are currently supported" >&2
    exit
  fi
fi

if [ "x$(id -u)" != x0 ] && [ 0 -eq "${do_quick_check-0}" ]; then
  echo "Running as non-root user."
  echo "You might have to enter your password one or more times for 'sudo'."
  echo
fi

# Packages needed for chromeos only
chromeos_dev_list="libbluetooth-dev libxkbcommon-dev"

# Packages needed for development
dev_list="apache2.2-bin bison cdbs curl dpkg-dev elfutils devscripts fakeroot
          flex fonts-thai-tlwg g++ git-core git-svn gperf language-pack-da
          language-pack-fr language-pack-he language-pack-zh-hant
          libapache2-mod-php5 libasound2-dev libbrlapi-dev libav-tools
          libbz2-dev libcairo2-dev libcap-dev libcups2-dev libcurl4-gnutls-dev
          libdrm-dev libelf-dev libexif-dev libgconf2-dev libglib2.0-dev
          libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev libkrb5-dev
          libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libpulse-dev
          libsctp-dev libspeechd-dev libsqlite3-dev libssl-dev libudev-dev
          libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev openbox
          patch perl php5-cgi pkg-config python python-cherrypy3 python-crypto
          python-dev python-numpy python-opencv python-openssl python-psutil
          rpm ruby subversion ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic
          ttf-kochi-mincho wdiff xfonts-mathml zip $chromeos_dev_list"

# 64-bit systems need a minimum set of 32-bit compat packages for the pre-built
# NaCl binaries.
if file /sbin/init | grep -q 'ELF 64-bit'; then
  dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6"
fi

# Run-time libraries required by chromeos only
chromeos_lib_list="libpulse0 libbz2-1.0"

# Full list of required run-time libraries
lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcap2 libcups2 libexpat1
          libexif12 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0
          libgtk2.0-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0
          libpng12-0 libspeechd2 libstdc++6 libsqlite3-0 libx11-6
          libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6
          libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1
          libxtst6 zlib1g $chromeos_lib_list"

# Debugging symbols for all of the run-time libraries
dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg
          libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg
          libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg
          libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg
          libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg
          libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg"

# Find the proper version of libstdc++6-4.x-dbg.
if [ "x$lsb_release" = "xprecise" ]; then
  dbg_list="${dbg_list} libstdc++6-4.6-dbg"
elif [ "x$lsb_release" = "xtrusty" ]; then
  dbg_list="${dbg_list} libstdc++6-4.8-dbg"
else
  dbg_list="${dbg_list} libstdc++6-4.9-dbg"
fi

# 32-bit libraries needed e.g. to compile V8 snapshot for Android or armhf
lib32_list="linux-libc-dev:i386"

# arm cross toolchain packages needed to build chrome on armhf
arm_list="libc6-dev-armhf-cross
          linux-libc-dev-armhf-cross
          g++-arm-linux-gnueabihf"

# Packages to build NaCl, its toolchains, and its ports.
naclports_list="ant autoconf bison cmake gawk intltool xutils-dev xsltproc"
nacl_list="g++-mingw-w64-i686 lib32z1-dev
           libasound2:i386 libcap2:i386 libelf-dev:i386 libexif12:i386
           libfontconfig1:i386 libgconf-2-4:i386 libglib2.0-0:i386 libgpm2:i386
           libgtk2.0-0:i386 libncurses5:i386 lib32ncurses5-dev
           libnss3:i386 libpango1.0-0:i386
           libssl1.0.0:i386 libtinfo-dev libtinfo-dev:i386 libtool
           libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxi6:i386
           libxrandr2:i386 libxss1:i386 libxtst6:i386 texinfo xvfb
           ${naclports_list}"

# Find the proper version of libgbm-dev. We can't just install libgbm-dev as
# it depends on mesa, and only one version of mesa can exists on the system.
# Hence we must match the same version or this entire script will fail.
mesa_variant=""
for variant in "-lts-quantal" "-lts-raring" "-lts-saucy" "-lts-trusty" \
               "-lts-utopic"; do
  if $(dpkg-query -Wf'${Status}' libgl1-mesa-glx${variant} 2>/dev/null | \
       grep -q " ok installed"); then
    mesa_variant="${variant}"
  fi
done
dev_list="${dev_list} libgbm-dev${mesa_variant}
          libgles2-mesa-dev${mesa_variant} libgl1-mesa-dev${mesa_variant}
          mesa-common-dev${mesa_variant}"
nacl_list="${nacl_list} libgl1-mesa-glx${mesa_variant}:i386"

# Some package names have changed over time
if package_exists ttf-mscorefonts-installer; then
  dev_list="${dev_list} ttf-mscorefonts-installer"
else
  dev_list="${dev_list} msttcorefonts"
fi
if package_exists libnspr4-dbg; then
  dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg"
  lib_list="${lib_list} libnspr4 libnss3"
else
  dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg"
  lib_list="${lib_list} libnspr4-0d libnss3-1d"
fi
if package_exists libjpeg-dev; then
  dev_list="${dev_list} libjpeg-dev"
else
  dev_list="${dev_list} libjpeg62-dev"
fi
if package_exists libudev1; then
  dev_list="${dev_list} libudev1"
  nacl_list="${nacl_list} libudev1:i386"
else
  dev_list="${dev_list} libudev0"
  nacl_list="${nacl_list} libudev0:i386"
fi
if package_exists libbrlapi0.6; then
  dev_list="${dev_list} libbrlapi0.6"
else
  dev_list="${dev_list} libbrlapi0.5"
fi

# Some packages are only needed if the distribution actually supports
# installing them.
if package_exists appmenu-gtk; then
  lib_list="$lib_list appmenu-gtk"
fi

# When cross building for arm/Android on 64-bit systems the host binaries
# that are part of v8 need to be compiled with -m32 which means
# that basic multilib support is needed.
if file /sbin/init | grep -q 'ELF 64-bit'; then
  # gcc-multilib conflicts with the arm cross compiler (at least in trusty) but
  # g++-X.Y-multilib gives us the 32-bit support that we need. Find out the
  # appropriate value of X and Y by seeing what version the current
  # distribution's g++-multilib package depends on.
  multilib_package=$(apt-cache depends g++-multilib --important | \
      grep -E --color=never --only-matching '\bg\+\+-[0-9.]+-multilib\b')
  lib32_list="$lib32_list $multilib_package"
fi

# Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is
# accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has
# been provided to yes_no(), the function also accepts RETURN as a user input.
# The parameter specifies the exit code that should be returned in that case.
# The function will echo the user's selection followed by a newline character.
# Users can abort the function by pressing CTRL-C. This will call "exit 1".
yes_no() {
  if [ 0 -ne "${do_default-0}" ] ; then
    [ $1 -eq 0 ] && echo "Y" || echo "N"
    return $1
  fi
  local c
  while :; do
    c="$(trap 'stty echo -iuclc icanon 2>/dev/null' EXIT INT TERM QUIT
         stty -echo iuclc -icanon 2>/dev/null
         dd count=1 bs=1 2>/dev/null | od -An -tx1)"
    case "$c" in
      " 0a") if [ -n "$1" ]; then
               [ $1 -eq 0 ] && echo "Y" || echo "N"
               return $1
             fi
             ;;
      " 79") echo "Y"
             return 0
             ;;
      " 6e") echo "N"
             return 1
             ;;
      "")    echo "Aborted" >&2
             exit 1
             ;;
      *)     # The user pressed an unrecognized key. As we are not echoing
             # any incorrect user input, alert the user by ringing the bell.
             (tput bel) 2>/dev/null
             ;;
    esac
  done
}

if test "$do_inst_syms" = "" && test 0 -eq ${do_quick_check-0}
then
  echo "This script installs all tools and libraries needed to build Chromium."
  echo ""
  echo "For most of the libraries, it can also install debugging symbols, which"
  echo "will allow you to debug code in the system libraries. Most developers"
  echo "won't need these symbols."
  echo -n "Do you want me to install them for you (y/N) "
  if yes_no 1; then
    do_inst_syms=1
  fi
fi
if test "$do_inst_syms" = "1"; then
  echo "Including debugging symbols."
else
  echo "Skipping debugging symbols."
  dbg_list=
fi

if test "$do_inst_lib32" = "1" ; then
  echo "Including 32-bit libraries for ARM/Android."
else
  echo "Skipping 32-bit libraries for ARM/Android."
  lib32_list=
fi

if test "$do_inst_arm" = "1" ; then
  echo "Including ARM cross toolchain."
else
  echo "Skipping ARM cross toolchain."
  arm_list=
fi

if test "$do_inst_nacl" = "1"; then
  echo "Including NaCl, NaCl toolchain, NaCl ports dependencies."
else
  echo "Skipping NaCl, NaCl toolchain, NaCl ports dependencies."
  nacl_list=
fi

# The `sort -r -s -t: -k2` sorts all the :i386 packages to the front, to avoid
# confusing dpkg-query (crbug.com/446172).
packages="$(
  echo "${dev_list} ${lib_list} ${dbg_list} ${lib32_list} ${arm_list}"\
       "${nacl_list}" | tr " " "\n" | sort -u | sort -r -s -t: -k2 | tr "\n" " "
)"

if [ 1 -eq "${do_quick_check-0}" ] ; then
  failed_check="$(dpkg-query -W -f '${PackageSpec}:${Status}\n' \
    ${packages} 2>&1 | grep -v "ok installed" || :)"
  if [ -n "${failed_check}" ]; then
    echo
    nomatch="$(echo "${failed_check}" | \
      sed -e "s/^No packages found matching \(.*\).$/\1/;t;d")"
    missing="$(echo "${failed_check}" | \
      sed -e "/^No packages found matching/d;s/^\(.*\):.*$/\1/")"
    if [ "$nomatch" ]; then
      # Distinguish between packages that actually aren't available to the
      # system (i.e. not in any repo) and packages that just aren't known to
      # dpkg (i.e. managed by apt).
      unknown=""
      for p in ${nomatch}; do
        if apt-cache show ${p} > /dev/null 2>&1; then
          missing="${p}\n${missing}"
        else
          unknown="${p}\n${unknown}"
        fi
      done
      if [ -n "${unknown}" ]; then
        echo "WARNING: The following packages are unknown to your system"
        echo "(maybe missing a repo or need to 'sudo apt-get update'):"
        echo -e "${unknown}" | sed -e "s/^/  /"
      fi
    fi
    if [ -n "${missing}" ]; then
      echo "WARNING: The following packages are not installed:"
      echo -e "${missing}" | sed -e "s/^/  /"
    fi
    exit 1
  fi
  exit 0
fi

if test "$do_inst_lib32" = "1" || test "$do_inst_nacl" = "1"; then
  if [[ ! $lsb_release =~ (precise|quantal|raring) ]]; then
    sudo dpkg --add-architecture i386
  fi
fi
#sudo apt-get update

# We initially run "apt-get" with the --reinstall option and parse its output.
# This way, we can find all the packages that need to be newly installed
# without accidentally promoting any packages from "auto" to "manual".
# We then re-run "apt-get" with just the list of missing packages.
echo "Finding missing packages..."
# Intentionally leaving $packages unquoted so it's more readable.
echo "Packages required: " $packages
echo
new_list_cmd="sudo apt-get install --reinstall $(echo $packages)"
if new_list="$(yes n | LANGUAGE=en LANG=C $new_list_cmd)"; then
  # We probably never hit this following line.
  echo "No missing packages, and the packages are up-to-date."
elif [ $? -eq 1 ]; then
  # We expect apt-get to have exit status of 1.
  # This indicates that we cancelled the install with "yes n|".
  new_list=$(echo "$new_list" |
    sed -e '1,/The following NEW packages will be installed:/d;s/^  //;t;d')
  new_list=$(echo "$new_list" | sed 's/ *$//')
  if [ -z "$new_list" ] ; then
    echo "No missing packages, and the packages are up-to-date."
  else
    echo "Installing missing packages: $new_list."
    sudo apt-get install ${do_quietly-} ${new_list}
  fi
  echo
else
  # An apt-get exit status of 100 indicates that a real error has occurred.

  # I am intentionally leaving out the '"'s around new_list_cmd,
  # as this makes it easier to cut and paste the output
  echo "The following command failed: " ${new_list_cmd}
  echo
  echo "It produces the following output:"
  yes n | $new_list_cmd || true
  echo
  echo "You will have to install the above packages yourself."
  echo
  exit 100
fi

# Install the Chrome OS default fonts. This must go after running
# apt-get, since install-chromeos-fonts depends on curl.
if test "$do_inst_chromeos_fonts" != "0"; then
  echo
  echo "Installing Chrome OS fonts."
  dir=`echo $0 | sed -r -e 's/\/[^/]+$//'`
  if ! sudo $dir/linux/install-chromeos-fonts.py; then
    echo "ERROR: The installation of the Chrome OS default fonts failed."
    if [ `stat -f -c %T $dir` == "nfs" ]; then
      echo "The reason is that your repo is installed on a remote file system."
    else
      echo "This is expected if your repo is installed on a remote file system."
    fi
    echo "It is recommended to install your repo on a local file system."
    echo "You can skip the installation of the Chrome OS default founts with"
    echo "the command line option: --no-chromeos-fonts."
    exit 1
  fi
else
  echo "Skipping installation of Chrome OS fonts."
fi

# $1 - target name
# $2 - link name
create_library_symlink() {
  target=$1
  linkname=$2
  if [ -L $linkname ]; then
    if [ "$(basename $(readlink $linkname))" != "$(basename $target)" ]; then
      sudo rm $linkname
    fi
  fi
  if [ ! -r $linkname ]; then
    echo "Creating link: $linkname"
    sudo ln -fs $target $linkname
  fi
}

if test "$do_inst_nacl" = "1"; then
  echo "Installing symbolic links for NaCl."
  # naclports needs to cross build python for i386, but libssl1.0.0:i386
  # only contains libcrypto.so.1.0.0 and not the symlink needed for
  # linking (libcrypto.so).
  create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \
      /usr/lib/i386-linux-gnu/libcrypto.so

  create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \
      /usr/lib/i386-linux-gnu/libssl.so
else
  echo "Skipping symbolic links for NaCl."
fi

#!/bin/bash -e

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

# Script to install everything needed to build chromium (well, ideally, anyway)
# See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions
# and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit

usage() {
  echo "Usage: $0 [--options]"
  echo "Options:"
  echo "--[no-]syms: enable or disable installation of debugging symbols"
  echo "--lib32: enable installation of 32-bit libraries, e.g. for V8 snapshot"
  echo "--[no-]arm: enable or disable installation of arm cross toolchain"
  echo "--[no-]chromeos-fonts: enable or disable installation of Chrome OS"\
       "fonts"
  echo "--[no-]nacl: enable or disable installation of prerequisites for"\
       "building standalone NaCl and all its toolchains"
  echo "--no-prompt: silently select standard options/defaults"
  echo "--quick-check: quickly try to determine if dependencies are installed"
  echo "               (this avoids interactive prompts and sudo commands,"
  echo "               so might not be 100% accurate)"
  echo "--unsupported: attempt installation even on unsupported systems"
  echo "Script will prompt interactively if options not given."
  exit 1
}

# Checks whether a particular package is available in the repos.
# USAGE: $ package_exists <package name>
package_exists() {
  apt-cache pkgnames | grep -x "$1" > /dev/null 2>&1
}

# These default to on because (some) bots need them and it keeps things
# simple for the bot setup if all bots just run the script in its default
# mode.  Developers who don't want stuff they don't need installed on their
# own workstations can pass --no-arm --no-nacl when running the script.
do_inst_arm=1
do_inst_nacl=1

while test "$1" != ""
do
  case "$1" in
  --syms)                   do_inst_syms=1;;
  --no-syms)                do_inst_syms=0;;
  --lib32)                  do_inst_lib32=1;;
  --arm)                    do_inst_arm=1;;
  --no-arm)                 do_inst_arm=0;;
  --chromeos-fonts)         do_inst_chromeos_fonts=1;;
  --no-chromeos-fonts)      do_inst_chromeos_fonts=0;;
  --nacl)                   do_inst_nacl=1;;
  --no-nacl)                do_inst_nacl=0;;
  --no-prompt)              do_default=1
                            do_quietly="-qq --assume-yes"
    ;;
  --quick-check)            do_quick_check=1;;
  --unsupported)            do_unsupported=1;;
  *) usage;;
  esac
  shift
done

if test "$do_inst_arm" = "1"; then
  do_inst_lib32=1
fi

# Check for lsb_release command in $PATH
if ! which lsb_release > /dev/null; then
  echo "ERROR: lsb_release not found in \$PATH" >&2
  exit 1;
fi

lsb_release=$(lsb_release --codename --short)
ubuntu_codenames="(precise|quantal|raring|saucy|trusty|utopic)"
if [ 0 -eq "${do_unsupported-0}" ] && [ 0 -eq "${do_quick_check-0}" ] ; then
  if [[ ! $lsb_release =~ $ubuntu_codenames ]]; then
    echo "ERROR: Only Ubuntu 12.04 (precise) through 14.10 (utopic) are"\
        "currently supported" >&2
    exit 1
  fi

  if ! uname -m | egrep -q "i686|x86_64"; then
    echo "Only x86 architectures are currently supported" >&2
    exit
  fi
fi

if [ "x$(id -u)" != x0 ] && [ 0 -eq "${do_quick_check-0}" ]; then
  echo "Running as non-root user."
  echo "You might have to enter your password one or more times for 'sudo'."
  echo
fi

# Packages needed for chromeos only
chromeos_dev_list="libbluetooth-dev libxkbcommon-dev"

# Packages needed for development
dev_list="apache2.2-bin bison cdbs curl dpkg-dev elfutils devscripts fakeroot
          flex fonts-thai-tlwg g++ git-core git-svn gperf language-pack-da
          language-pack-fr language-pack-he language-pack-zh-hant
          libapache2-mod-php5 libasound2-dev libbrlapi-dev libav-tools
          libbz2-dev libcairo2-dev libcap-dev libcups2-dev libcurl4-gnutls-dev
          libdrm-dev libelf-dev libexif-dev libgconf2-dev libglib2.0-dev
          libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev libkrb5-dev
          libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libpulse-dev
          libsctp-dev libspeechd-dev libsqlite3-dev libssl-dev libudev-dev
          libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev openbox
          patch perl php5-cgi pkg-config python python-cherrypy3 python-crypto
          python-dev python-numpy python-opencv python-openssl python-psutil
          rpm ruby subversion ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic
          ttf-kochi-mincho wdiff xfonts-mathml zip $chromeos_dev_list"

# 64-bit systems need a minimum set of 32-bit compat packages for the pre-built
# NaCl binaries.
if file /sbin/init | grep -q 'ELF 64-bit'; then
  dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6"
fi

# Run-time libraries required by chromeos only
chromeos_lib_list="libpulse0 libbz2-1.0"

# Full list of required run-time libraries
lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcap2 libcups2 libexpat1
          libexif12 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0
          libgtk2.0-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0
          libpng12-0 libspeechd2 libstdc++6 libsqlite3-0 libx11-6
          libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6
          libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1
          libxtst6 zlib1g $chromeos_lib_list"

# Debugging symbols for all of the run-time libraries
dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg
          libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg
          libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg
          libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg
          libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg
          libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg
          libstdc++6-4.6-dbg"

# 32-bit libraries needed e.g. to compile V8 snapshot for Android or armhf
lib32_list="linux-libc-dev:i386"

# arm cross toolchain packages needed to build chrome on armhf
arm_list="libc6-dev-armhf-cross
          linux-libc-dev-armhf-cross
          g++-arm-linux-gnueabihf"

# Packages to build NaCl, its toolchains, and its ports.
naclports_list="ant autoconf bison cmake gawk intltool xutils-dev xsltproc"
nacl_list="g++-mingw-w64-i686 lib32z1-dev
           libasound2:i386 libcap2:i386 libelf-dev:i386 libexif12:i386
           libfontconfig1:i386 libgconf-2-4:i386 libglib2.0-0:i386 libgpm2:i386
           libgtk2.0-0:i386 libncurses5:i386 lib32ncurses5-dev
           libnss3:i386 libpango1.0-0:i386
           libssl1.0.0:i386 libtinfo-dev libtinfo-dev:i386 libtool
           libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxi6:i386
           libxrandr2:i386 libxss1:i386 libxtst6:i386 texinfo xvfb
           ${naclports_list}"

# Find the proper version of libgbm-dev. We can't just install libgbm-dev as
# it depends on mesa, and only one version of mesa can exists on the system.
# Hence we must match the same version or this entire script will fail.
mesa_variant=""
for variant in "-lts-quantal" "-lts-raring" "-lts-saucy" "-lts-trusty" \
               "-lts-utopic"; do
  if $(dpkg-query -Wf'${Status}' libgl1-mesa-glx${variant} 2>/dev/null | \
       grep -q " ok installed"); then
    mesa_variant="${variant}"
  fi
done
dev_list="${dev_list} libgbm-dev${mesa_variant}
          libgles2-mesa-dev${mesa_variant} libgl1-mesa-dev${mesa_variant}
          mesa-common-dev${mesa_variant}"
nacl_list="${nacl_list} libgl1-mesa-glx${mesa_variant}:i386"

# Some package names have changed over time
if package_exists ttf-mscorefonts-installer; then
  dev_list="${dev_list} ttf-mscorefonts-installer"
else
  dev_list="${dev_list} msttcorefonts"
fi
if package_exists libnspr4-dbg; then
  dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg"
  lib_list="${lib_list} libnspr4 libnss3"
else
  dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg"
  lib_list="${lib_list} libnspr4-0d libnss3-1d"
fi
if package_exists libjpeg-dev; then
  dev_list="${dev_list} libjpeg-dev"
else
  dev_list="${dev_list} libjpeg62-dev"
fi
if package_exists libudev1; then
  dev_list="${dev_list} libudev1"
  nacl_list="${nacl_list} libudev1:i386"
else
  dev_list="${dev_list} libudev0"
  nacl_list="${nacl_list} libudev0:i386"
fi
if package_exists libbrlapi0.6; then
  dev_list="${dev_list} libbrlapi0.6"
else
  dev_list="${dev_list} libbrlapi0.5"
fi

# Some packages are only needed if the distribution actually supports
# installing them.
if package_exists appmenu-gtk; then
  lib_list="$lib_list appmenu-gtk"
fi

# When cross building for arm/Android on 64-bit systems the host binaries
# that are part of v8 need to be compiled with -m32 which means
# that basic multilib support is needed.
if file /sbin/init | grep -q 'ELF 64-bit'; then
  # gcc-multilib conflicts with the arm cross compiler (at least in trusty) but
  # g++-X.Y-multilib gives us the 32-bit support that we need. Find out the
  # appropriate value of X and Y by seeing what version the current
  # distribution's g++-multilib package depends on.
  multilib_package=$(apt-cache depends g++-multilib --important | \
      grep -E --color=never --only-matching '\bg\+\+-[0-9.]+-multilib\b')
  lib32_list="$lib32_list $multilib_package"
fi

# Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is
# accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has
# been provided to yes_no(), the function also accepts RETURN as a user input.
# The parameter specifies the exit code that should be returned in that case.
# The function will echo the user's selection followed by a newline character.
# Users can abort the function by pressing CTRL-C. This will call "exit 1".
yes_no() {
  if [ 0 -ne "${do_default-0}" ] ; then
    [ $1 -eq 0 ] && echo "Y" || echo "N"
    return $1
  fi
  local c
  while :; do
    c="$(trap 'stty echo -iuclc icanon 2>/dev/null' EXIT INT TERM QUIT
         stty -echo iuclc -icanon 2>/dev/null
         dd count=1 bs=1 2>/dev/null | od -An -tx1)"
    case "$c" in
      " 0a") if [ -n "$1" ]; then
               [ $1 -eq 0 ] && echo "Y" || echo "N"
               return $1
             fi
             ;;
      " 79") echo "Y"
             return 0
             ;;
      " 6e") echo "N"
             return 1
             ;;
      "")    echo "Aborted" >&2
             exit 1
             ;;
      *)     # The user pressed an unrecognized key. As we are not echoing
             # any incorrect user input, alert the user by ringing the bell.
             (tput bel) 2>/dev/null
             ;;
    esac
  done
}

if test "$do_inst_syms" = "" && test 0 -eq ${do_quick_check-0}
then
  echo "This script installs all tools and libraries needed to build Chromium."
  echo ""
  echo "For most of the libraries, it can also install debugging symbols, which"
  echo "will allow you to debug code in the system libraries. Most developers"
  echo "won't need these symbols."
  echo -n "Do you want me to install them for you (y/N) "
  if yes_no 1; then
    do_inst_syms=1
  fi
fi
if test "$do_inst_syms" = "1"; then
  echo "Including debugging symbols."
else
  echo "Skipping debugging symbols."
  dbg_list=
fi

if test "$do_inst_lib32" = "1" ; then
  echo "Including 32-bit libraries for ARM/Android."
else
  echo "Skipping 32-bit libraries for ARM/Android."
  lib32_list=
fi

if test "$do_inst_arm" = "1" ; then
  echo "Including ARM cross toolchain."
else
  echo "Skipping ARM cross toolchain."
  arm_list=
fi

if test "$do_inst_nacl" = "1"; then
  echo "Including NaCl, NaCl toolchain, NaCl ports dependencies."
else
  echo "Skipping NaCl, NaCl toolchain, NaCl ports dependencies."
  nacl_list=
fi

# The `sort -r -s -t: -k2` sorts all the :i386 packages to the front, to avoid
# confusing dpkg-query (crbug.com/446172).
packages="$(
  echo "${dev_list} ${lib_list} ${dbg_list} ${lib32_list} ${arm_list}"\
       "${nacl_list}" | tr " " "\n" | sort -u | sort -r -s -t: -k2 | tr "\n" " "
)"

if [ 1 -eq "${do_quick_check-0}" ] ; then
  failed_check="$(dpkg-query -W -f '${PackageSpec}:${Status}\n' \
    ${packages} 2>&1 | grep -v "ok installed" || :)"
  if [ -n "${failed_check}" ]; then
    echo
    nomatch="$(echo "${failed_check}" | \
      sed -e "s/^No packages found matching \(.*\).$/\1/;t;d")"
    missing="$(echo "${failed_check}" | \
      sed -e "/^No packages found matching/d;s/^\(.*\):.*$/\1/")"
    if [ "$nomatch" ]; then
      # Distinguish between packages that actually aren't available to the
      # system (i.e. not in any repo) and packages that just aren't known to
      # dpkg (i.e. managed by apt).
      unknown=""
      for p in ${nomatch}; do
        if apt-cache show ${p} > /dev/null 2>&1; then
          missing="${p}\n${missing}"
        else
          unknown="${p}\n${unknown}"
        fi
      done
      if [ -n "${unknown}" ]; then
        echo "WARNING: The following packages are unknown to your system"
        echo "(maybe missing a repo or need to 'sudo apt-get update'):"
        echo -e "${unknown}" | sed -e "s/^/  /"
      fi
    fi
    if [ -n "${missing}" ]; then
      echo "WARNING: The following packages are not installed:"
      echo -e "${missing}" | sed -e "s/^/  /"
    fi
    exit 1
  fi
  exit 0
fi

if test "$do_inst_lib32" = "1" || test "$do_inst_nacl" = "1"; then
  if [[ ! $lsb_release =~ (precise|quantal|raring) ]]; then
    sudo dpkg --add-architecture i386
  fi
fi
#sudo apt-get update

# We initially run "apt-get" with the --reinstall option and parse its output.
# This way, we can find all the packages that need to be newly installed
# without accidentally promoting any packages from "auto" to "manual".
# We then re-run "apt-get" with just the list of missing packages.
echo "Finding missing packages..."
# Intentionally leaving $packages unquoted so it's more readable.
echo "Packages required: " $packages
echo
new_list_cmd="sudo apt-get install --reinstall $(echo $packages)"
if new_list="$(yes n | LANGUAGE=en LANG=C $new_list_cmd)"; then
  # We probably never hit this following line.
  echo "No missing packages, and the packages are up-to-date."
elif [ $? -eq 1 ]; then
  # We expect apt-get to have exit status of 1.
  # This indicates that we cancelled the install with "yes n|".
  new_list=$(echo "$new_list" |
    sed -e '1,/The following NEW packages will be installed:/d;s/^  //;t;d')
  new_list=$(echo "$new_list" | sed 's/ *$//')
  if [ -z "$new_list" ] ; then
    echo "No missing packages, and the packages are up-to-date."
  else
    echo "Installing missing packages: $new_list."
    sudo apt-get install ${do_quietly-} ${new_list}
  fi
  echo
else
  # An apt-get exit status of 100 indicates that a real error has occurred.

  # I am intentionally leaving out the '"'s around new_list_cmd,
  # as this makes it easier to cut and paste the output
  echo "The following command failed: " ${new_list_cmd}
  echo
  echo "It produces the following output:"
  yes n | $new_list_cmd || true
  echo
  echo "You will have to install the above packages yourself."
  echo
  exit 100
fi

# Install the Chrome OS default fonts. This must go after running
# apt-get, since install-chromeos-fonts depends on curl.
if test "$do_inst_chromeos_fonts" != "0"; then
  echo
  echo "Installing Chrome OS fonts."
  dir=`echo $0 | sed -r -e 's/\/[^/]+$//'`
  if ! sudo $dir/linux/install-chromeos-fonts.py; then
    echo "ERROR: The installation of the Chrome OS default fonts failed."
    if [ `stat -f -c %T $dir` == "nfs" ]; then
      echo "The reason is that your repo is installed on a remote file system."
    else
      echo "This is expected if your repo is installed on a remote file system."
    fi
    echo "It is recommended to install your repo on a local file system."
    echo "You can skip the installation of the Chrome OS default founts with"
    echo "the command line option: --no-chromeos-fonts."
    exit 1
  fi
else
  echo "Skipping installation of Chrome OS fonts."
fi

# $1 - target name
# $2 - link name
create_library_symlink() {
  target=$1
  linkname=$2
  if [ -L $linkname ]; then
    if [ "$(basename $(readlink $linkname))" != "$(basename $target)" ]; then
      sudo rm $linkname
    fi
  fi
  if [ ! -r $linkname ]; then
    echo "Creating link: $linkname"
    sudo ln -fs $target $linkname
  fi
}

if test "$do_inst_nacl" = "1"; then
  echo "Installing symbolic links for NaCl."
  # naclports needs to cross build python for i386, but libssl1.0.0:i386
  # only contains libcrypto.so.1.0.0 and not the symlink needed for
  # linking (libcrypto.so).
  create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \
      /usr/lib/i386-linux-gnu/libcrypto.so

  create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \
      /usr/lib/i386-linux-gnu/libssl.so
else
  echo "Skipping symbolic links for NaCl."
fi


Adding script that builds vs. released binary drop

#-------------------------------------------------------------------------------
# Shows how to build the samples vs. a released binary download of LLVM & Clang.
#
# Assumes the binary release was downloaded from http://llvm.org/releases/
# and untarred in some directory. The actual script code here uses a location
# I use on my machine, but that can be replaced by anything you fancy in the
# BINARY_DIR_PATH variable.
#
# Eli Bendersky (eliben@gmail.com)
# This code is in the public domain
#-------------------------------------------------------------------------------

#!/bin/bash

set -eu
set -x

BINARY_DIR_PATH=$HOME/llvm/llvm3.7-binaries

make -j4 \
  CXX=$BINARY_DIR_PATH/bin/clang++ \
  LLVM_SRC_PATH=$BINARY_DIR_PATH \
  LLVM_BUILD_PATH=$BINARY_DIR_PATH/bin \
  LLVM_BIN_PATH=$BINARY_DIR_PATH/bin

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


Create camolauncher.sh

Create camolauncher.sh

#!/bin/bash

# the line run in the  mask function can be substituted for your own masking software.   In this example it calls a SQL script
maskfunc()
{
/opt/Camouflage/camouflage -nogui -projectfile /home/oracle/Mask-Demo.camo
wait $!
}

# this part of the script ensures we run the masking during a scrub mount after the database is started on the scrubbing server
if [ "$ACT_MULTI_OPNAME" == "scrub-mount" ] && [ "$ACT_MULTI_END" == "true" ] && [ "$ACT_PHASE" == "post" ]; then
	maskfunc
	exit $?
fi

# this lets us run this script manually
if [ "$1" == "test" ]; then
	maskfunc
	exit $?
fi

exit 0

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


Add new pico8 emulator.

Add new pico8 emulator.

#!/usr/bin/env bash

# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distribution and
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
#

rp_module_id="pico8"
rp_module_desc="pico8 - The Fantasy Game Console"
rp_module_help="Place your purchased pico8 zip file in $home/pico8.zip and add games to $romdir/pico8."
rp_module_section="exp"
rp_module_flags="!mali !x11"

function depends_pico8() {
    getDepends wiringpi unzip
}

function sources_pico8() {
    if [ -f "$home/pico8.zip" ]
    then
	unzip "$home/pico8.zip" -d "$md_build"
    else
        error="You must purchase pico8 and place the received zip file at $home/pico8.zip before installing."
    fi
}

function install_pico8() {
    md_ret_files=(
       'pico-8/license.txt'
       'pico-8/pico8.dat'
       'pico-8/pico-8.txt'
       'pico-8/pico8'
       'pico-8/pico8_dyn'
    )
}

function configure_pico8() {
    mkRomDir "$md_id"
    cp "$md_build/pico-8/lexaloffle-pico8.png" "$home/RetroPie/roms/$md_id"
    moveConfigDir "$home/.lexaloffle/" "$md_conf_root/$md_id"
    chmod +x "$md_inst/pico8_dyn"

    # Create startup script
    rm -f "$romdir/pico8/+Start PICO8.sh"
    cat > "$romdir/pico8/+Start PICO8.sh" << _EOF_
#!/bin/bash
$md_inst/pico8_dyn -root_path $homeRetroPie/roms/pico8 -splore
_EOF_
    chown $user:$user "$romdir/pico8/+Start PICO8.sh"
    chmod u+x "$romdir/pico8/+Start PICO8.sh"

    addEmulator 0 "$md_id" "pico8" "$md_inst/pico8_dyn -root_path $home/RetroPie/roms/$md_id %ROM%"
    addSystem "pico8" "pico8 - The Fantasy Game Console" ".sh .p8 .png .SH .P8 .PNG"
}

error: pathspec 'scriptmodules/emulators/pico8.sh' did not match any file(s) known to git


Update process.sh

Update process.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/gandalf-the-white/dockseldon.git/'


include network-reconnect

include network-reconnect

#!/bin/bash

while true ; do
  if ifconfig wlan0 | grep -q "inet addr:" ; then
    echo -n "."
    sleep 5
  else
    echo "\nNetwork connection down! Attempting reconnection.\n"
    ifup --force wlan0
    sleep 10
 fi
done

error: pathspec 'cam-pi/network_reconnect.sh' did not match any file(s) known to git


docker-tls: remove comments from script

docker-tls: remove comments from script

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/maxvu/odds-and-ends.git/'


#!/bin/bash

#
#   Copyright 2012 Jacky Chan
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#

# change directory to candidate install directory
# @param $1 candidate name
# @param $2 candidate version
function __jenvtool_cd {
	CANDIDATE=`echo "$1" | tr '[:upper:]' '[:lower:]'`
	__jenvtool_check_candidate_present "${CANDIDATE}" || return 1

	VERSION="$2"
    if [[ -z "$2" ]]; then
        __jenvtool_determine_current_version "${CANDIDATE}"
        VERSION="${CURRENT}"
    fi

	if [[ -d "${JENV_DIR}/candidates/${CANDIDATE}/${VERSION}" ]]; then
		cd ${JENV_DIR}/candidates/${CANDIDATE}/${VERSION}
	fi
}

error: pathspec 'src/main/scripts/commands/jenv-cd.sh' did not match any file(s) known to git


Create mountexfat.sh

Create mountexfat.sh

#!/system/bin/sh

su
#mount -o remount,rw /system
#cp /sdcard/Download/exfat.ko /system/lib/modules/
#df
#cat /proc/partitions
insmod /system/lib/modules/exfat.ko
#mount -t exfat /dev/block/mmcblk1p1 /storage/sdcard1
mount -t exfat -o iocharset=utf8,namecase=0,errors=remount-ro /dev/block/mmcblk1p1 /storage/sdcard1
chmod -R 777 /storage/sdcard1

#/dev/block/mmcblk1p1 /storage/sdcard1 exfat rw,relatime,fmask=0077,dmask=0077,iocharset=utf8,namecase=0,errors=remount-ro 0 0

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


Add basic Clojure module

Add basic Clojure module

if (( ! $+commands[lein] )); then
  return 1
fi

alias cl='lein'
alias clr='lein repl'
alias cls='lein trampoline ring server-headless'

error: pathspec 'zsh/modules/clojure/init.zsh' did not match any file(s) known to git


started out on sync environments script

started out on sync environments script

#!/bin/bash
#This script syncs from a specified environment to a specified environment
#Run like this: sync-environments.sh Live Dev
#NOTE: Usually this should be called through "sync-environments.sh" from
#sitesync-core

#From
if [ -z "${1}" ]; then
	echo "Please specify \"from\" environment";
	exit;
fi
FROM=$1

#To
if [ -z "${2}" ]; then
	echo "Please specify \"to\" environment";
	exit;
fi
TO=$2

#Protection - disallowing syncing to live
if [[ "$TO" == "Live" ]]; then
	echo "You are not allowed to sync to Live. Exiting.";
	echo "Note: if this is for your first deployment, uncomment this line.";
	exit;
fi

BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd ../.. && pwd )";
MODULEDIR="$BASEDIR/ttools-sitesync-wordpress";

#getting configuration variables
VARS="$BASEDIR/ttools-core/lib/vars.sh"
eval `$VARS`

#getting environment variables
#FROM will be the base
ENV=$FROM;
ENVVARS="$BASEDIR/ttools-core/lib/vars-for-env.sh $ENV"
eval `$ENVVARS`

if [[ "$FROM" == "Local" ]]; then

	#this is the basic local sync, which is implemented by each framework specific module
	$BASEDIR/$ServerSync_FrameworkModule/lib/sync-current-site-with-env.sh to $TO

else

	if [[ "$TO" == "Local" ]]; then
		#this is the basic local sync, which is implemented by each framework specific module
		$BASEDIR/$ServerSync_FrameworkModule/lib/sync-current-site-with-env.sh from $FROM

	else

		echo "not yet implemented...";

		#if the mode is not local we'll ssh into the (TODO which?)
		#server and run the sync script

	fi

fi

error: pathspec 'local/sync-environments.sh' did not match any file(s) known to git


Fixed tar bug

Fixed tar bug

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/Primechain/yobichain.git/'


don't evaluate environment variables

don't evaluate environment variables

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/TOTVS/mdmpublic.git/'


added web-management/start-microservices-viewer-wearve-scope.sh

#!/bin/bash

# # start weave scope for each node in the swarm cluster
# echo "Starting Weave Scope for each node in the swarm cluster..."
# for i in $(seq 0 $((CLUSTER_SIZE-1)));
# do
# 	echo "processing node : ${CLUSTER_NAMES[$i]}-${ENVIRONMENT}-0$((i+1))..."

# 	# change environment to cluster manager
# 	echo "changing environment to swarm cluster manager node"
# 	eval $(docker-machine env "${CLUSTER_NAMES[$i]}-${ENVIRONMENT}-0$((i+1))")

# 	#check active node
# 	echo "Active Node : $(docker-machine active)"

# 	# first check if the service is already running or not
# 	# if running then move on, otherwise create the service
# 	echo "First, checking if service is already running or not..."
# 	docker service ps -f "desired-state=running" "$MICROSERVICES_VIEWER_WEAVE_SCOPE_WEB_UI_SERVICE_NAME" > /dev/null 2>&1
# 	if [ $? -eq 0 ];
# 	then
# 		# service is already running
# 		echo "Microservices Viewer Weave Scope Web UI service already running, moving forward"
# 	else
# 		# check if service is shutdown or not, if shutdown rm the service and then start
# 		# otherwise it may give duplicate service error (possible)
# 		echo "Microservices Viewer Weave Scope Web UI service is not running, check if the service is shutdown"
# 		docker service ps -f "desired-state=shutdown" "$MICROSERVICES_VIEWER_WEAVE_SCOPE_WEB_UI_SERVICE_NAME" > /dev/null 2>&1
# 		if [ $? -eq 0 ];
# 		then
# 			# service is shutdown and hence exists, remove servcie and recreate
# 			echo "Microservices Viewer Weave Scope Web UI service already present in shutdown state, removing and creating new one..."
# 			echo "Removing the service now.."
# 			docker service rm "$MICROSERVICES_VIEWER_WEAVE_SCOPE_WEB_UI_SERVICE_NAME"
# 			echo "Microservices Viewer Weave Scope Web UI service removed successfully, creating new one..."

# 		else
# 			# service is not present
# 			echo "Microservices Viewer Weave Scope Web UI service is not  present or not in shutdown state, hence creating new one.."
# 		fi
# 		# now start the service
# 		docker-machine ssh "${CLUSTER_NAMES[$i]}-${ENVIRONMENT}-0$((i+1))" 'sudo curl -L git.io/scope -o /usr/local/bin/scope; \
# 		sudo chmod a+x /usr/local/bin/scope; \
# 		scope launch'
# 	fi
# 	echo "node processed succesfully"
# done

# start the microservices viewer web ui service weave scope in the swarm manager node
echo "Starting Microservices Viewer Web Ui Weave Scope..."

# first check if the service is already running or not
# if running then move on, otherwise create the service
echo "First, checking if service is already running or not..."
docker service ps -f "desired-state=running" "$MICROSERVICES_VIEWER_WEAVE_SCOPE_WEB_UI_SERVICE_NAME" > /dev/null 2>&1
if [ $? -eq 0 ];
then
	# service is already running
	echo "Microservices Viewer Weave Scope Web UI service already running, moving forward"
else
	# check if service is shutdown or not, if shutdown rm the service and then start
	# otherwise it may give duplicate service error (possible)
	echo "Microservices Viewer Weave Scope Web UI service is not running, check if the service is shutdown"
	docker service ps -f "desired-state=shutdown" "$MICROSERVICES_VIEWER_WEAVE_SCOPE_WEB_UI_SERVICE_NAME" > /dev/null 2>&1
	if [ $? -eq 0 ];
	then
		# service is shutdown and hence exists, remove servcie and recreate
		echo "Microservices Viewer Weave Scope Web UI service already present in shutdown state, removing and creating new one..."
		echo "Removing the service now.."
		docker service rm "$MICROSERVICES_VIEWER_WEAVE_SCOPE_WEB_UI_SERVICE_NAME"
		echo "Microservices Viewer Weave Scope Web UI service removed successfully, creating new one..."

	else
		# service is not present
		echo "Microservices Viewer Weave Scope Web UI service is not  present or not in shutdown state, hence creating new one.."
	fi
	# now start the service
	# echo "first pulling image"
	# docker pull lmarsden/scope-runner
	# echo "image pulled successfully"
	echo "creating service from image"
	docker service create \
		--name="$MICROSERVICES_VIEWER_WEAVE_SCOPE_WEB_UI_SERVICE_NAME" \
		--mode=global \
		--mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
		lmarsden/scope-runner scope launch
fi

echo "Microservices Viewer Weave Scope Web UI started successfully"

error: pathspec 'web-management/start-microservices-viewer-weave-scope-ui.sh' did not match any file(s) known to git


tweak cp command for re-install in linux

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/perfectapi/node-perfectapi.git/'


Removing bucket is fine to fail due to caching

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/part-up/staging-envs.git/'


added cron runner

added cron runner

#!/bin/sh

echo "* * * * * root /app/cli/master_cron.sh > /app/cron.log 2>&1" >> /etc/crontab
rsyslogd
cron
touch /app/cron.log
tail -f /app/cron.log

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


Add missing code to enable/disable libs

Add missing code to enable/disable libs

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/nschloe/seacas.git/'


Add measurement script

Add measurement script

#!/bin/bash

MY_PATH="`dirname \"$0\"`"
MY_PATH="`( cd \"$MY_PATH\" && pwd )`"
#echo $MY_PATH
cd $MY_PATH
cd ..

./code/enable_usb.sh
sleep 10
./bin/scdplus /dev/ttyACM0 9600 | nc 192.168.178.36 1234
./code/disable_usb.sh

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


Strip namespace when testing image name in "golang-hello-world"

#!/bin/bash
set -eo pipefail

dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"

image="$1"

if [[ "${image##*/}" == gcc:4* ]]; then
	echo >&2 'warning: gcc 4.x does not support Go'
	cat "$dir/expected-std-out.txt" # cheaters gunna chea
	exit
fi

exec "$dir/real-run.sh" "$@"

#!/bin/bash
set -eo pipefail

dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"

image="$1"

if [[ "$image" == gcc:4* ]]; then
	echo >&2 'warning: gcc 4.x does not support Go'
	cat "$dir/expected-std-out.txt" # cheaters gunna chea
	exit
fi

exec "$dir/real-run.sh" "$@"


Delete git-diff-cmd.sh

Delete git-diff-cmd.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/thomas-profitt/scripts.git/'


renamed ...

renamed ...

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/B-LUC/AdminTools.git/'


Add a test with latin1 locale and latin1 character_set.

# Test generating latin1 passwords.

# Assume old school ISO locale for this.
export LANG=fr_FR.ISO8859-1
export LC_ALL=$LANG

use_config simple
cat >> test.config << EOF
profile digits
  set character_set libertb
  set character_count 10
  set password_count 4
EOF

# Technically this is more a problem with the version of iconv than the
# operating system, but iconv --version is not exactly consistent so that will
# have to do for now. TODO: write something to detect the implementation of
# iconv.
case `uname` in
OpenBSD|Darwin)
	# Older GNU iconv.
	alias latin1_to_ascii="iconv -f latin1 -t ascii --unicode-subst='?'"
	;;
FreeBSD|NetBSD)
	# Custom iconv implementation coming from NetBSD.
	alias latin1_to_ascii="iconv -s -f latin1 -t ASCII"
	;;
Linux|*)
	# Newer GNU iconv.
	alias latin1_to_ascii="iconv -f latin1 -t ASCII//TRANSLIT"
	;;
esac

run_mdp generate -p digits \
	| latin1_to_ascii \
	| sed 's/[a-z?]/./g' \
	> test.stdout

cat > test.expected << EOF
..........
..........
..........
..........
EOF

assert_stdout

error: pathspec 'tests/functional/test_generate_profile_iso.sh' did not match any file(s) known to git


Prepare InvokeList

Prepare InvokeList

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/cybeliak/mispronounceableness.git/'


Update build script

Update build script

#!/bin/bash

cd ../../
mkdir -p gui/deploy

set -e

version="0.4.9.7"

mvn clean package -DskipTests -Dmaven.javadoc.skip=true

cp gui/target/shaded.jar "gui/deploy/Bitsquare-$version.jar"
cp gui/target/shaded.jar "/Users/dev/vm_shared_ubuntu/Bitsquare-$version.jar"
cp gui/target/shaded.jar "/Users/dev/vm_shared_windows/Bitsquare-$version.jar"
cp gui/target/shaded.jar "/Users/dev/vm_shared_ubuntu14_32bit/Bitsquare-$version.jar"
cp gui/target/shaded.jar "/Users/dev/vm_shared_windows_32bit/Bitsquare-$version.jar"

cp seednode/target/SeedNode.jar "gui/deploy/SeedNode-$version.jar"

echo "Using JAVA_HOME: $JAVA_HOME"
$JAVA_HOME/bin/javapackager \
    -deploy \
    -BappVersion=$version \
    -Bmac.CFBundleIdentifier=io.bitsquare \
    -Bmac.CFBundleName=Bitsquare \
    -Bicon=package/mac/Bitsquare.icns \
    -Bruntime="$JAVA_HOME/jre" \
    -native dmg \
    -name Bitsquare \
    -title Bitsquare \
    -vendor Bitsquare \
    -outdir gui/deploy \
    -srcfiles "gui/deploy/Bitsquare-$version.jar" \
    -appclass io.bitsquare.app.BitsquareAppMain \
    -outfile Bitsquare \
    -BjvmProperties=-Djava.net.preferIPv4Stack=true

rm "gui/deploy/Bitsquare.html"
rm "gui/deploy/Bitsquare.jnlp"

mv "gui/deploy/bundles/Bitsquare-$version.dmg" "gui/deploy/Bitsquare-$version.dmg"
rm -r "gui/deploy/bundles"

cd package/mac

#!/bin/bash

cd ../../
mkdir -p gui/deploy

set -e

version="0.4.9.7"

mvn clean package -DskipTests -Dmaven.javadoc.skip=true

cp gui/target/shaded.jar "gui/deploy/Bitsquare-$version.jar"
cp gui/target/shaded.jar "/Users/mk/vm_shared_ubuntu/Bitsquare-$version.jar"
cp gui/target/shaded.jar "/Users/mk/vm_shared_windows/Bitsquare-$version.jar"
cp gui/target/shaded.jar "/Users/mk/vm_shared_ubuntu14_32bit/Bitsquare-$version.jar"
cp gui/target/shaded.jar "/Users/mk/vm_shared_windows_32bit/Bitsquare-$version.jar"

cp seednode/target/SeedNode.jar "gui/deploy/SeedNode-$version.jar"

echo "Using JAVA_HOME: $JAVA_HOME"
$JAVA_HOME/bin/javapackager \
    -deploy \
    -BappVersion=$version \
    -Bmac.CFBundleIdentifier=io.bitsquare \
    -Bmac.CFBundleName=Bitsquare \
    -Bicon=package/mac/Bitsquare.icns \
    -Bruntime="$JAVA_HOME/jre" \
    -native dmg \
    -name Bitsquare \
    -title Bitsquare \
    -vendor Bitsquare \
    -outdir gui/deploy \
    -srcfiles "gui/deploy/Bitsquare-$version.jar" \
    -appclass io.bitsquare.app.BitsquareAppMain \
    -outfile Bitsquare \
    -BjvmProperties=-Djava.net.preferIPv4Stack=true

rm "gui/deploy/Bitsquare.html"
rm "gui/deploy/Bitsquare.jnlp"

mv "gui/deploy/bundles/Bitsquare-$version.dmg" "gui/deploy/Bitsquare-$version.dmg"
rm -r "gui/deploy/bundles"

cd package/mac


bash solution to problem #9

bash solution to problem #9

#!/usr/bin/env bash

# Find the only pythagorean triplet that a + b + c = 1000

function triplet_thousand()
{
    for ((a=1, b=1; a < 3000; a++)); do
        ((b=$a+1))
        for ((; b < 3000; b++)); do
            ((c=a**2+b**2))
            c=$(echo "scale=3;sqrt($c)" | bc)
            triplet=$(echo "scale=3;$a+$b+$c" | bc)
            if [[ $(echo "$triplet == 1000" | bc) -eq 1 ]]; then
                echo "scale=0;$a*$b*$c" | bc; return
            fi
            if [[ $(echo "$triplet > 1000" | bc) -eq 1 ]]; then
                break
            fi
        done
    done
}

triplet_thousand

error: pathspec 'shell_solutions_1-10/Euler_9.sh' did not match any file(s) known to git


fixed imagename initialisation

fixed imagename initialisation

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/stangenberg/docker-template.git/'


Default run script

Default run script

Will benchmark all commits from when the tests are compatible with the
Schematics API up till HEAD of development branch.

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


ssl only

ssl only

That should allow us to use https
see ffmpeg --protocols

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/Trusti/ffmpeg-node.git/'


corrected typo

corrected typo

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/librekcpe/rankings.git/'


Switch to using os-testr's copy of subunit2html

Since Ib65c41fc5f137eedb21fccfcee1e96b6990ae30d removes the local
jenkins slave script copy of subunit2html we must start using the
version packaged in os-testr.

Change-Id: I7b7908986eb503a0d2ae8e2365b34516e6e68f92

#!/usr/bin/env bash

set -xe

NEUTRON_DIR="$BASE/new/neutron"
TEMPEST_DIR="$BASE/new/tempest"
SCRIPTS_DIR="/usr/os-testr-env/bin/"

venv=${1:-"dsvm-functional"}

function generate_testr_results {
    # Give job user rights to access tox logs
    sudo -H -u $owner chmod o+rw .
    sudo -H -u $owner chmod o+rw -R .testrepository
    if [ -f ".testrepository/0" ] ; then
        .tox/$venv/bin/subunit-1to2 < .testrepository/0 > ./testrepository.subunit
        $SCRIPTS_DIR/subunit2html ./testrepository.subunit testr_results.html
        gzip -9 ./testrepository.subunit
        gzip -9 ./testr_results.html
        sudo mv ./*.gz /opt/stack/logs/
    fi

    # Compress all /tmp/fullstack-*/*.txt files and move the directories
    # holding those files to /opt/stack/logs. Files with .log suffix have their
    # suffix changed to .txt (so browsers will know to open the compressed
    # files and not download them).
    if [ "$venv" == "dsvm-fullstack" ] && [ -d /tmp/fullstack-logs/ ]; then
        sudo find /tmp/fullstack-logs -iname "*.log" -type f -exec mv {} {}.txt \; -exec gzip -9 {}.txt \;
        sudo mv /tmp/fullstack-logs/* /opt/stack/logs/
    fi
}

if [ "$venv" == "dsvm-functional" ] || [ "$venv" == "dsvm-fullstack" ]
then
    owner=stack
    sudo_env=
elif [ "$venv" == "api" ]
then
    owner=tempest
    # Configure the api tests to use the tempest.conf set by devstack.
    sudo_env="TEMPEST_CONFIG_DIR=$TEMPEST_DIR/etc"
fi

# Set owner permissions according to job's requirements.
cd $NEUTRON_DIR
sudo chown -R $owner:stack $NEUTRON_DIR

# Run tests
echo "Running neutron $venv test suite"
set +e
sudo -H -u $owner $sudo_env tox -e $venv
testr_exit_code=$?
set -e

# Collect and parse results
generate_testr_results
exit $testr_exit_code

#!/usr/bin/env bash

set -xe

NEUTRON_DIR="$BASE/new/neutron"
TEMPEST_DIR="$BASE/new/tempest"
SCRIPTS_DIR="/usr/local/jenkins/slave_scripts"

venv=${1:-"dsvm-functional"}

function generate_testr_results {
    # Give job user rights to access tox logs
    sudo -H -u $owner chmod o+rw .
    sudo -H -u $owner chmod o+rw -R .testrepository
    if [ -f ".testrepository/0" ] ; then
        .tox/$venv/bin/subunit-1to2 < .testrepository/0 > ./testrepository.subunit
        .tox/$venv/bin/python $SCRIPTS_DIR/subunit2html.py ./testrepository.subunit testr_results.html
        gzip -9 ./testrepository.subunit
        gzip -9 ./testr_results.html
        sudo mv ./*.gz /opt/stack/logs/
    fi

    # Compress all /tmp/fullstack-*/*.txt files and move the directories
    # holding those files to /opt/stack/logs. Files with .log suffix have their
    # suffix changed to .txt (so browsers will know to open the compressed
    # files and not download them).
    if [ "$venv" == "dsvm-fullstack" ] && [ -d /tmp/fullstack-logs/ ]; then
        sudo find /tmp/fullstack-logs -iname "*.log" -type f -exec mv {} {}.txt \; -exec gzip -9 {}.txt \;
        sudo mv /tmp/fullstack-logs/* /opt/stack/logs/
    fi
}

if [ "$venv" == "dsvm-functional" ] || [ "$venv" == "dsvm-fullstack" ]
then
    owner=stack
    sudo_env=
elif [ "$venv" == "api" ]
then
    owner=tempest
    # Configure the api tests to use the tempest.conf set by devstack.
    sudo_env="TEMPEST_CONFIG_DIR=$TEMPEST_DIR/etc"
fi

# Set owner permissions according to job's requirements.
cd $NEUTRON_DIR
sudo chown -R $owner:stack $NEUTRON_DIR

# Run tests
echo "Running neutron $venv test suite"
set +e
sudo -H -u $owner $sudo_env tox -e $venv
testr_exit_code=$?
set -e

# Collect and parse results
generate_testr_results
exit $testr_exit_code


Fixed filename typo - part 2

Fixed filename typo - part 2

#!/bin/sh
set -ex
wget http://www.nih.at/libzip/libzip-1.0.1.tar.gz -O /tmp/libzip-1.0.1.tar.gz
tar -zxvf /tmp/libzip-1.0.1.tar.gz
cd libzip-1.0.1
./configure
make
cd ..

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


remove Script

remove Script

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/imwithye/dotfiles.git/'


add osx icon creation script

add osx icon creation script

#/usr/bin/bash
set -e
if [ $# -ne 2 ]
  then
    echo "Usage:"
    echo "  create_icns.sh source_image.png working_dir"
    exit 1
fi

SOURCE="$1"
WORKING_DIR="$2"
ICONSET=${WORKING_DIR}/Icon.iconset

mkdir -p ${ICONSET}
sips -z 16 16     ${SOURCE} --out ${ICONSET}/icon_16x16.png
sips -z 32 32     ${SOURCE} --out ${ICONSET}/icon_16x16@2x.png
sips -z 32 32     ${SOURCE} --out ${ICONSET}/icon_32x32.png
sips -z 64 64     ${SOURCE} --out ${ICONSET}/icon_32x32@2x.png
sips -z 128 128   ${SOURCE} --out ${ICONSET}/icon_128x128.png
sips -z 256 256   ${SOURCE} --out ${ICONSET}/icon_128x128@2x.png
sips -z 256 256   ${SOURCE} --out ${ICONSET}/icon_256x256.png
sips -z 512 512   ${SOURCE} --out ${ICONSET}/icon_256x256@2x.png
sips -z 512 512   ${SOURCE} --out ${ICONSET}/icon_512x512.png
cp ${SOURCE} ${ICONSET}/icon_512x512@2x.png
iconutil -c icns ${ICONSET}

error: pathspec 'scripts/osx/create_icns.sh' did not match any file(s) known to git


FIX missing files to be deleted

FIX missing files to be deleted

#!/bin/bash
#set -x
#Copyright (C) 2009-2012 :
#    Gabes Jean, naparuba@gmail.com
#    Gerhard Lausser, Gerhard.Lausser@consol.de
#    David GUENAULT, dguenault@monitoring-fr.org
#
#This file is part of Shinken.
#
#Shinken is free software: you can redistribute it and/or modify
#it under the terms of the GNU Affero General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#
#Shinken is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU Affero General Public License for more details.
#
#You should have received a copy of the GNU Affero General Public License
#along with Shinken.  If not, see <http://www.gnu.org/licenses/>.

if [ -f /tmp/shinken.install.log ]
then
    rm -f /tmp/shinken.install.log
fi

#####################
### ENVIRONNEMENT ###
#####################

export myscripts=$(readlink -f $(dirname $0))
src=$(readlink -f "$myscripts/../../..")
. $myscripts/shinken.conf

cecho "###########################################################" red
cecho "# CAUTION THIS SCRIPT IS USED ONLY IN DEVELOPMENT PROCESS " red
cecho "# IT COULD BREAK YOUR SYSTEM ! PRESS CTRL+C TO ABORT      " red
cecho "###########################################################" red
read taste
path="/usr/local/lib/$(pythonver)/dist-packages"
pyver=$(pythonvershort)
pth="eeasy-install.pth"
for p in $PYLIBSDEB
do
    module=$(echo $p | awk -F\: '{print $1}')
    cecho " > going to remove python module : $module" yellow
    echo $path/$module
    if [ ! -z "$(ls -1 $path/$module*)" ]
    then
        cecho " > Found $path/$module" yellow
        res=$(easy_install-$pyver -m $module | grep "^Using" | awk '{print $2}')
        if [ ! -z "$res" ]
        then
            rm -Rf $res
        fi
    fi

done
APTLIST="$APTHPKGS $VSPHERESDKAPTPKGS $NAGPLUGAPTPK $CHECKORACLEHEALTHAPTPKG $CHECKMONGOAPTPKG $CHECKEMCAPTPKG $CHECKNWCAPTPKG $PNPAPTPKG $MKAPTPKG $WMICAPTPKG $CHECKHPASMAPTPKGS"
for l in $APTLIST
do
    for p in $l
    do
        cecho " > remove $p" yellow
        apt-get purge $p
    done
done
apt-get autoremove

rm -Rf $PNPPREFIX
rm -Rf $MKPREFIX

rm -f /etc/apache2/conf.d/zzz_check_mk.conf
rm -f /etc/apache2/conf.d/pnp4nagios.conf

/etc/init.d/apache2 restart


shaping rules loading wrapper script

shaping rules loading wrapper script

git-svn-id: 4bdcbcb1b8b1698e15620234c5d28f759fcef8cf@237 87f093b1-530f-0410-99d2-ab0f2c056a42

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/unki/MasterShaper.git/'


Update s3deletebuckets.sh

Update s3deletebuckets.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/kalantal/s3-tests.git/'


script to build latest Ubuntu 14.04 image

#!/bin/sh

# author: Christian Berendt <berendt@b1-systems.de>

timestamp=$(date +"%Y%m%d")
url=http://cdimage.ubuntu.com/ubuntu-server/daily/$timestamp
url_iso=$url/trusty-server-amd64.iso
url_checksum=$url/SHA1SUMS
file_output=ubuntu-14.04-amd64.json

if [[ $(curl --silent "$url/" | grep "404 Not Found" | wc -l) -ne 0 ]]; then
    echo "image $timestamp not yet available"
    exit 1
fi

checksum=$(curl -s $url_checksum | grep trusty-server-amd64.iso | awk '{ print $1 }')

sed -e "s/CHECKSUM/$checksum/" -e "s/TIMESTAMP/$timestamp/" ${file_output}.tmpl > $file_output
git add $file_output && git commit -m "updated Ubuntu 14.04 to daily build $timestamp" & git push
/opt/packer/packer build ubuntu-14.04-amd64.json

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


test curl failing and get $file stat for more info about the reason for the failure

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/radiasoft/radtrack-installer.git/'


Checkpoint

Checkpoint

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/katherinealbany/incubator.git/'


Added example script for running the working t29res example

#!/bin/bash

CANDLE=/data/BIDS-HPC/public/candle

export MODEL_PYTHON_SCRIPT=cc_t29res
export MODEL_PYTHON_DIR=/home/weismanal/checkouts/candle_tutorials/Topics/1_migrating_your_DNN_to_candle
export PROPOSE_POINTS=30
export DESIGN_SIZE=30
export PROCS=6
export QUEUE=gpu
export WALLTIME=00:60:00
export TURBINE_SBATCH_ARGS="--gres=gpu:${GPU_TYPE:-k20x}:1 --mem=${MEM_PER_NODE:-20G}"

$CANDLE/Supervisor/workflows/mlrMBO/test/test-1.sh 000 biowulf -a

error: pathspec 'workflows/examples/test-1-mlrmbo.sh' did not match any file(s) known to git


xbps-src: set --localstatedir=/var for gnu_configure tmpls.

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/Bubble-be/void-packages.git/'


Add install-cleanup.sh

Add install-cleanup.sh

#-------------------------------------------------------------------------------
#
# install/install-cleanup.sh
# Cleans up a botched dotfiles install.
#
#-------------------------------------------------------------------------------

echo "WARNING: This script will delete dotfiles in your home directory."
echo "Are you sure you wish to continue?"
select yn in "Yes" "No"; do
    case $yn in
        Yes ) break;;
        No ) exit;;
    esac
done

rm -rf "${HOME}/.dotfiles"
rm -rf "${HOME}/.git"

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


[BEAM-7776] Create kubernetes.sh script to use kubectl with desired namespace and kubeconfig file

Handy script to be used on CI or on local machine if needed.
Replaces PerfkitBenchmarker's functionality giving more elasticity
and allowing to see more logs (perfkit used to hide them)

#!/usr/bin/env bash
#    Licensed to the Apache Software Foundation (ASF) under one or more
#    contributor license agreements.  See the NOTICE file distributed with
#    this work for additional information regarding copyright ownership.
#    The ASF licenses this file to You under the Apache License, Version 2.0
#    (the "License"); you may not use this file except in compliance with
#    the License.  You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.
#
#    Set of common operations that CI needs to invoke when using Kubernetes.
#    The operations can be invoked using a provided kubeconfig file
#    and kubernetes namespace.
#
#    Specify the following environment variables to override defaults:
#    - KUBECONFIG: path to .kube/config file (default: $HOME/.kube/config)
#    - KUBERNETES_NAMESPACE: namespace to be used (default: default)
set -euxo pipefail

KUBECONFIG="${KUBECONFIG:=$HOME/.kube/config}"
KUBERNETES_NAMESPACE="${KUBERNETES_NAMESPACE:=default}"
KUBECTL="kubectl --kubeconfig=$KUBECONFIG --namespace=$KUBERNETES_NAMESPACE"

function retry() {
  local command=$1
  local max_retries=$2
  local sleep_time=$3

  for ((i = 1; i <= max_retries; i++)); do
    local output
    output=$(eval "${command}")

    local status=$?

    if [[ ${status} == 0 ]] && [[ -n  ${output} ]]; then
      echo "${output}"
      return 0
    fi

    if [[ $i == "${max_retries}" ]]; then
      echo "Command failed after ${max_retries} retries" >&2
      return 1
    fi

    sleep "${sleep_time}"
  done
}

# Invokes "kubectl apply" using specified kubeconfig and namespace.
#
# Usage: ./kubernetes.sh apply <path to .yaml file>
function apply() {
  eval "$KUBECTL apply -R -f $1"
}

# Invokes "kubectl delete" using specified kubeconfig and namespace.
#
# Usage: ./kubernetes.sh delete <path to .yaml file>
function delete() {
  eval "$KUBECTL delete -R -f $1"
}

# Creates a namespace.
#
# Usage: ./kubernetes.sh createNamespace <namespace name>
function createNamespace() {
  eval "kubectl --kubeconfig=${KUBECONFIG} create namespace $1"
}

# Deletes whole namespace with all its contents.
#
# Usage: ./kubernetes.sh deleteNamespace <namespace name>
function deleteNamespace() {
  eval "kubectl --kubeconfig=${KUBECONFIG} delete namespace $1"
}

# Gets Load Balancer Ingress IP address.
# Blocks and retries until the IP is present or retry limit is exceeded.
#
# Usage: ./kubernetes.sh loadBalancerIP <name of the load balancer service>
function loadBalancerIP() {
  local name=$1
  local command="$KUBECTL get svc $name -ojsonpath='{.status.loadBalancer.ingress[0].ip}'"
  retry "${command}" 36 10
}

"$@"

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


Added install script

Added install script

sudo pip3 install --upgrade numpy
sudo pip3 install --upgrade scipy
sudo pip3 install --upgrade tensorflow scikit-learn nltk

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


whitespace to trigger build

whitespace to trigger build

#!/bin/bash

outdir=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM

mkdir -p $outdir
mkdir -p $PREFIX/bin

# We need the jarfile (provided by the source), wrapper (provided by this
# recipe) and data download script (provided by this recipe)
cp ChromHMM.jar $outdir/

for fn in ChromHMM.sh download_chromhmm_data.sh; do
  dest=$outdir/$fn
  cp $RECIPE_DIR/$fn $dest
  chmod +x $dest
  ln -s $dest $PREFIX/bin
done


added verifier.sh

added verifier.sh

cat /tmp/sender_hash | base64 -d > /tmp/toSign.sig
openssl x509 -inform der -in /tmp/sender_cer.der -out /tmp/sender_cer.pem
openssl x509 -pubkey -noout -in /tmp/sender_cer.pem  > /tmp/sender_pubkey.pem
openssl dgst -sha512 -verify /tmp/sender_pubkey.pem -signature /tmp/toSign.sig /tmp/sender_email

error: pathspec 'native_messaging/host/verifier.sh' did not match any file(s) known to git


Add script to export all table from Database and Schema

#!/bin/bash

EXPORT_DIR=/tmp/export
DBNAME=jourdan

sudo -u postgres rm -Rf ${EXPORT_DIR}
sudo -u postgres mkdir ${EXPORT_DIR}
schema_list=$1

for schema in ${schema_list}
do
  echo #### ${schema} ####

  for relname in `sudo -u postgres psql -t -d ${DBNAME} -c "SELECT table_name FROM information_schema.tables WHERE table_schema = '${schema}';"`
  do
    if [ ${relname} != 'wrongTable' ];
    then
      echo ${relname}
      sudo -u postgres pgsql2shp -f ${EXPORT_DIR}/${schema}_${relname}.shp ${DBNAME} ${schema}.${relname} 2>&1 |tee -a output.log
    fi;
  done;

done;

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


Create Kupa__Linux.sh

Create Kupa__Linux.sh

#!/bin/bash

##	Kupa__Linux.sh - part of the Kupa Project

##	usage principle:
##
##	A user hits his favorite 'Ctrl-C' or 'Command-C' shortcut to copy some text stuff to its OS's clipboard
##	Then, the user can choose to make available that content on other computers he wishes to.
##	In the Kupa folder, a 'settings.kupa' file can be edited to add as many computers as wanted: it holds the list of the computers the Kupa clipboard will be accessible to
##
##	To be able to use Kupa correctly, a user needs to have shared ssh keys to all the computers he wishes to use Kupa on
##
##	For Linux users, Kupa requires 'xclip' to be installed ( used for clipboard management ) as well as ??? ( used to display Kupa alerts about available stuff from the Kupa clipboard )
##
##
##	by StephaneAG - 2013

## the user hits 'Ctrl-C' or 'Command-C' to copy some text content to the clipboard

## we copy the stuff present in the clipboard to the Kupa's "./shared" directory
# we get the current content of the clipboard using 'xclip'
FROM_CLIPBOARD=`xclip -out -selection ` #-c ./shared`
# as wip implm , we echo the content of the clipboard
echo "[DEBUG] current clipboard content: ""'""$FROM_CLIPBOARD""'"
echo ""
## we use the 'settings.kupa' file to get all the 'clients' we will send the content to
# we verify that the file is indeed present in the current directory
KUPA_SETTINGS_FILE="./settings.kupa"
KUPA_SHARED_FILE="./shared/shared_clipboard.kupa"
KUPA_DISTANT_NODE_PATH="/Kupa.node"
KUPA_HOST_OS_MAC="Mac"
KUPA_HOST_OS_NIX="Linux"
#KUPA_PARAMS_NUMBER="4"
KUPA_PARAMS_NUMBER="5"

# 0: check the presence of a 'Kupa node' in the current directory

# 1: check if there's any file left in the './shared' directory of Kupa
if [ -f "$KUPA_SHARED_FILE" ]
then
	echo "[DEBUG] a previous Kupa shared clipboard was found in the ./shared/ directory."
	rm "$KUPA_SHARED_FILE"
	echo "[DEBUG] the previous Kupa clipboard was successfully deleted."
else
	echo "[DEBUG] no previous Kupa shared clipboard was found in the ./shared/ directory."
fi

# make some space on stdout
echo ""
echo ""

# 2: copy the stuff present in the clipboard variable to a local file as './shared/shared_clipboard.kupa'
xclip -out -selection -c > ./shared/shared_clipboard.kupa
echo "[DEBUG] current clipboard content has been copied to local shared clipboard file."
echo ""

# check if the Kupa settings file exist bofore further proceeding
if [ -f "$KUPA_SETTINGS_FILE" ]
then
	echo "[DEBUG] $KUPA_SETTINGS_FILE file found"

	# the settings file exists, so we can start reading it line by line
	old_IFS=$IFS # save the Internal Field Separator before modifying it
	IFS=$'\n' # set it to the new line character
	for line in $(cat $KUPA_SETTINGS_FILE)
	do
		#echo "'" "$line " "'"
		# check if the line begins with a double '##' , wich would indicate it's not an actual setting line but a comment
		# strip the new line character of the string if any

		if [[ ! $line == "##"* ]] # to read: if the line doesn't match with the following RegExp ( aka doesn't start with '##')
		then
			#echo $line # its actually a reali setting line, so we are now going to parse it

			# we now check if each setting line has enough paramters ( 4 : <name> <ip_address> <port> <remote_path_to_Kupa>
			IFS=$old_IFS # we 'escape the modified IFS'
			parameters_count=0;
			for param in $line
 			do
				parameters_count=$((parameters_count+1))
			done
			IFS=$'\n' # we re-modifiy the just-de-modified IFS

			echo "[DEBUG] Parameters count for current line: $parameters_count"
			# if there's is less than 4 parameters for any line, we skip it and display an error instead of purely exiting the program directly
			if [ "$parameters_count" -lt "$KUPA_PARAMS_NUMBER" ] # if there is not less than 4 parameters for the current line
			then
				echo "[DEBUG] Not Enough parameters: skipping current client ( line number in settings file here in the future )  ..."
			else
				echo "[DEBUG] Suffiscient number of parameters: proceeding ..."
				# now we know that we have all the needed parameters, we can proceed in sharing the content of the clipboard to other users
				#  note: we could also have saved the content of the clipboard to a local file before sending it (...)

				# parse the parameters found in the current line
				IFS=$old_IFS # we 'escape the modified IFS'

				#aline="StephaneAG 192.168.1.12 22 /home/stephaneag/Kupa"
				IFS=' ' read -a array <<< "$line" # split the line string into an array
				# accessing elements individually
				#echo "${array[0]}"
				#echo "${array[1]}"
				#echo "${array[2]}"
				#echo "${array[3]}"

				# to display them in a single row
				echo "[Client settings] Username: ${array[0]}    Login: ${array[1]}     IP Adress: ${array[2]}      Port: ${array[3]}      Remote path: ${array[4]}"

				#while read user ip port path
				#do
        			#	echo "Username: $userIp      Ip: $ip      Port: $port      Remote path: $path"
				#done < $line # $KUPA_SETTINGS_FILE

				IFS=$'\n' # we re-modifiy the just-de-modified IFS

				# check if the a remote Kupa node is found for the current client ( corresponding to current line ) using the remote path found in the provided parameters
				kupa_node_found=0
				username="${array[0]}"
				login="${array[1]}"
				ip_address="${array[2]}"
				port="${array[3]}"
				remote_path="${array[4]}"
				#ssh -q stephaneadamgarnier@192.168.1.7 -p 22 [[ -f /Applications/Kupa/Kupa.node ]] && echo "Kupa node found at remote address" || echo "Kupa node not found at remote address"
				#ssh -q "$login"@"$ip_address" -p "$port" [[ -f "$remote_path" ]] && echo "Kupa node found at remote address" || echo "Kupa node not found at remote address"
				#ssh -q "$login"@"$ip_address" -p "$port" [[ -f "$remote_path" ]] && \
				#	echo "Found" || echo "Not found"

				# prepare some useful variables to be passed as arguments to the distant script ( yep, passing LOCAL arguments to a DISTANT script )
				kupa_remote_node_path="$remote_path$KUPA_DISTANT_NODE_PATH"
				echo "[CLients settings] Client Kupa node should be located at: $kupa_remote_node_path"

				ssh -q "$login"@"$ip_address" -p "$port" [[ -f "$remote_path""$KUPA_DISTANT_NODE_PATH" ]] && \
                                        { echo "[DEBUG] Kupa node FOUND at remote location."; \
					echo "[DEBUG] scping the file to the remote location ..."; \
					# scp -P 22 ./shared/shared_clipboard.kupa stephaneadamgarnier@192.168.1.7:/Applications/Kupa/received/
					scp -P "$port" "$KUPA_SHARED_FILE" "$login"@"$ip_address":"$remote_path/received/" ; \
					# execute remote commands
# nb: the weird indentation is completely normal
#ssh stephaneadamgarnier@192.168.1.7 -p 22 the_kupa_node=$kupa_remote_node_path 'bash -s ' <<'ENDKUPA'
ssh stephaneadamgarnier@192.168.1.7 -p 22 the_kupa_node=$kupa_remote_node_path the_kupa_remote_path=$remote_path 'bash -s ' <<'ENDKUPA'
# execute the needed command on the remote host by passing vars to a distant Kupa script
# purpose of fun test implm
#say "I am walking on a rainbow yep walking on a rainbow" &
# act & inform the distant client using its Kupa node and its settings
echo "Calling distant Kupa node ..."
echo "going to the right directory"
cd $the_kupa_remote_path
echo "Current directory:"
pwd
echo "handling remote execution ..."
/bin/bash $the_kupa_node -klipboard-update receiver &
#/Applications/Kupa/Kupa.node -klipboard-update receiver &

ENDKUPA
					echo "[DEBUG] Kupa node update done"; } || echo "[DEBUG] Kupa node NOT found at remote location."

					# if it is indeed found, try to execute a scp command to copy the content of the clipboard held into a file at the remote location, in Kupa's ./received/ directory
					# then, execute one o the Kupa's script to alert that client that new content is available from the Kupa's clipboard
					# note: we could also alert the user whom content is originating from that it has been made available to the current client's Kupa clipboard (...)

			fi

			#  CAREFUL: we re-modify the IFS as we now wanna have it handling spaces ( the default for the 'for' loop )
			#IFS=$old_IFS
			#for word in $line
			#do
			#	echo "$word | "
			#done
			# CAREFUL: and once done, we re-set our IFS to a new line character to prepare the next line's read
			#IFS=$'\n'

			# to make the output more readable on the terminal, print a new line character after each line read
			echo ""
		fi

	done
	IFS=$old_IFS # restore the IFS back to its original value

else
	echo "[DEBUG] $KUPA_SETTINGS_FILE file not found"
	# TODO: echo usage here for the settings.kupa file & other stuff (...)
	exit 1
fi

## we actually send the content to the "./received" directory of the distant Kupa directory
# scp ...

## we remotely execute a command on all the client ( that command actually displays an alert about the new stuff available from the Kupa clipboard )
# ssh ...

## any of the clients can now execute the 'Kupaste' shortcut ( or call Kupa with the -paste argument ) to copy the Stuff present in the Kupa clipboard to its actual clipboard
## note: a Kupa 'short-shortcut' is also available to copy the stuff from the Kupa clipboard AND directly paste it all in single a row ( thanks to AppleScript of Mac OS )

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


PVPGN build script

PVPGN build script

#!/bin/bash
# PVPGN Pro Debian/Ubuntu Build script
# Licensed under BSD License by AUnited Co Ltd
$basedir=/tmp/pvpgn-server
mkdir $basedir
cd $basedir
read -p 'What version of pvpgn do you want to build [$basedir/binary]:' bindir
mkdir $bindir
read -p 'Which version of pvpgn do you want to build  [1.99.7.1/trunk]:' ver
read -p 'Do you want to enable MySQL support?  [Y/n]:' mysql
read -p 'Do you want to enable LUA support?  [Y/n]:' lua
myoption=""
luaoption=""
case #mysql in
y|Y|*) apt-get -y install mysql-server mysql-client libmysqlclient-dev && myoption="-D WITH_MYSQL=true"
n|N) myoption=""
esac
case $lua in
y|Y|*) apt-get -y install liblua5.1-0-dev && luaoption="-D WITH_LUA=true"
n|N) luaoption=""
esac
apt-get update
if [$ver=trunk]
apt-get install git
git clone https://github.com/pvpgn/pvpgn-server.git
fi
apt-get -y install cmake make build-essential zlib1g-dev
mkdir build
mkdir binary
cd build
cmake -D CMAKE_INSTALL_PREFIX=$bindir $myoption $luaoption ../
make && make install
https://github.com/pvpgn/pvpgn-server/archive/$ver-PRO.tar.gz

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


New script to generate different data

New script to generate different data

#!/usr/bin/env bash

R=${RANDOM}
CMD="http --verify no \
	  --json POST \
          https://nkkmfsfq10.execute-api.us-west-1.amazonaws.com/adpevents/ chnl=${R} \
	                                                                    eid=${R} \
									    aid=${R} \
									    pos=${R} \
									    sid=${R} \
									    etype=${R} \
									    uid=${R} \
									    tid=${R} \
									    chnltype=${R} \
									    viewable=true \
									    elmid=${R} \
									    heid=${R} \
									    rid=${R}"
echo ${CMD}
${CMD}

error: pathspec 'Overstock/send-adp-event-with-randomized-data.sh' did not match any file(s) known to git


Create billy.sh

Create billy.sh

#!/bin/bash

# billy.sh - dummy program

echo ""My name is BILLY !

exit 0

error: pathspec 'bash_socket_tests/conn_tester/billy.sh' did not match any file(s) known to git


Fix switching Perl versions under Travis

#!/bin/bash

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Exit if any command returns non-zero.
set -e

# Print all commands before executing.
set -x

install_dir="$TRAVIS_BUILD_DIR/install"

# Fetch Clownfish.
git clone -q --depth 1 https://git-wip-us.apache.org/repos/asf/lucy-clownfish.git

test_c() {
    # Install Clownfish.
    cd lucy-clownfish/runtime/c
    ./configure
    make -j
    ./install.sh --prefix "$install_dir"

    cd ../../../c
    ./configure --clownfish-prefix "$install_dir"
    make -j test
}

test_perl() {
    source ~/perl5/perlbrew/etc/bashrc
    perlbrew switch $PERL_VERSION
    perlbrew list
    export PERL5LIB="$install_dir/lib/perl5"

    # Install Clownfish.
    cd lucy-clownfish/runtime/perl
    perl Build.PL
    ./Build install --install-base "$install_dir"
    cd ../../compiler/perl
    ./Build install --install-base "$install_dir"

    cd ../../../perl
    perl Build.PL
    ./Build test
}

test_go() {
    export GOPATH="$install_dir"
    mkdir -p "$install_dir/src/git-wip-us.apache.org/repos/asf"
    ln -s "$TRAVIS_BUILD_DIR/lucy-clownfish" \
        "$install_dir/src/git-wip-us.apache.org/repos/asf/lucy-clownfish.git"
    ln -s "$TRAVIS_BUILD_DIR" \
        "$install_dir/src/git-wip-us.apache.org/repos/asf/lucy.git"

    # Install Clownfish.
    cd lucy-clownfish/compiler/go
    go run build.go install
    cd ../../runtime/go
    go run build.go install

    cd ../../../go
    go run build.go test
}

case $CLOWNFISH_HOST in
    perl)
        test_perl
        ;;
    c)
        test_c
        ;;
    go)
        test_go
        ;;
    *)
        echo "unknown CLOWNFISH_HOST: $CLOWNFISH_HOST"
        exit 1
esac

#!/bin/bash

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Exit if any command returns non-zero.
set -e

# Print all commands before executing.
set -x

install_dir="$TRAVIS_BUILD_DIR/install"

# Fetch Clownfish.
git clone -q --depth 1 https://git-wip-us.apache.org/repos/asf/lucy-clownfish.git

test_c() {
    # Install Clownfish.
    cd lucy-clownfish/runtime/c
    ./configure
    make -j
    ./install.sh --prefix "$install_dir"

    cd ../../../c
    ./configure --clownfish-prefix "$install_dir"
    make -j test
}

test_perl() {
    perlbrew switch $PERL_VERSION
    export PERL5LIB="$install_dir/lib/perl5"

    # Install Clownfish.
    cd lucy-clownfish/runtime/perl
    perl Build.PL
    ./Build install --install-base "$install_dir"
    cd ../../compiler/perl
    ./Build install --install-base "$install_dir"

    cd ../../../perl
    perl Build.PL
    ./Build test
}

test_go() {
    export GOPATH="$install_dir"
    mkdir -p "$install_dir/src/git-wip-us.apache.org/repos/asf"
    ln -s "$TRAVIS_BUILD_DIR/lucy-clownfish" \
        "$install_dir/src/git-wip-us.apache.org/repos/asf/lucy-clownfish.git"
    ln -s "$TRAVIS_BUILD_DIR" \
        "$install_dir/src/git-wip-us.apache.org/repos/asf/lucy.git"

    # Install Clownfish.
    cd lucy-clownfish/compiler/go
    go run build.go install
    cd ../../runtime/go
    go run build.go install

    cd ../../../go
    go run build.go test
}

case $CLOWNFISH_HOST in
    perl)
        test_perl
        ;;
    c)
        test_c
        ;;
    go)
        test_go
        ;;
    *)
        echo "unknown CLOWNFISH_HOST: $CLOWNFISH_HOST"
        exit 1
esac


predictions extraction

predictions extraction

java -cp lib/FedOrNot-0.1-SNAPSHOT-bin.jar fr.univnantes.fedOrNot.spark.ExtractAllPredictions 2 test_data

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


Install git inside docker

Install git inside docker

#!/bin/bash
set -e
# Activate Holy Build Box environment.
source /hbb_exe/activate

set -x
yum install -y git
curl -s -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p /anaconda
PATH=/opt/rh/devtoolset-2/root/usr/bin:/opt/rh/autotools-latest/root/usr/bin:/anaconda/bin:$PATH
conda config --add channels omnia
conda install -yq conda-build jinja2 anaconda-client
/io/conda-build-all --check-against omnia $UPLOAD /io/*

#!/bin/bash
set -e
# Activate Holy Build Box environment.
source /hbb_exe/activate

set -x
curl -s -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p /anaconda
PATH=/opt/rh/devtoolset-2/root/usr/bin:/opt/rh/autotools-latest/root/usr/bin:/anaconda/bin:$PATH
conda config --add channels omnia
conda install -yq conda-build jinja2 anaconda-client
/io/conda-build-all --check-against omnia $UPLOAD /io/*