installing shellcheck

installing shellcheck

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/dlorenc/debian-docker.git/'


INTEGRATION: CWS defaultbrowser (1.1.2); FILE ADDED 2004/04/27 07:59:33 obr 1.1.2.1: #i27120# new unix shell execute service implementation

#!/bin/sh

# restore search path for dynamic loader to system defaults to
# avoid version clashes of mozilla libraries shipped with OOo
case `uname -s` in
  AIX)
    LIBPATH=$SYSTEM_LIBPATH
    if [ -z "$LIBPATH" ]; then
        unset LIBPATH SYSTEM_LIBPATH
    else
        export LIBPATH; unset SYSTEM_LIBPATH
    fi
    ;;

  Darwin)
    DYLD_LIBRARY_PATH=$SYSTEM_DYLD_LIBRARY_PATH
    if [ -z "$DYLD_LIBRARY_PATH" ]; then
        unset DYLD_LIBRARY_PATH SYSTEM_DYLD_LIBRARY_PATH
    else
        export DYLD_LIBRARY_PATH; unset SYSTEM_DYLD_LIBRARY_PATH
    fi
    ;;

  HP-UX)
    SHLIB_PATH=$SYSTEM_SHLIB_PATH
    if [ -z "$SHLIB_PATH" ]; then
        unset SHLIB_PATH SYSTEM_SHLIB_PATH
    else
        export SHLIB_PATH; unset SYSTEM_SHLIB_PATH
    fi
    ;;

  IRIX*)
    LD_LIBRARYN32_PATH=$SYSTEM_LD_LIBRARYN32_PATH
    if [ -z "$LD_LIBRARYN32_PATH" ]; then
        unset LD_LIBRARYN32_PATH SYSTEM_LD_LIBRARYN32_PATH
    else
        export LD_LIBRARYN32_PATH; unset $SYSTEM_LD_LIBRARYN32_PATH
    fi
    ;;

  *)
    LD_LIBRARY_PATH=$SYSTEM_LD_LIBRARY_PATH
    if [ -z "$LD_LIBRARY_PATH" ]; then
        unset LD_LIBRARY_PATH SYSTEM_LD_LIBRARY_PATH
    else
        export LD_LIBRARY_PATH; unset SYSTEM_LD_LIBRARY_PATH
    fi
    ;;
esac

# special handling for mailto: uris
if echo $1 | grep '^mailto:' > /dev/null; then
  kmailservice $1 &
else
  kfmclient openURL $1 &
fi

exit 0

error: pathspec 'shell/source/unix/misc/kde-open-url.sh' did not match any file(s) known to git


Update metal.sh

Update metal.sh

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


no longer in use

no longer in use

git-svn-id: 193148810cf65385f3a195dbc9a8b504846da3a2@12898 ec53bebd-3082-4978-b11e-865c3cabbd6b

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/madscientist159/heimdal.git/'


bound a few emac shortcuts

bound a few emac shortcuts

fatal: remote error: upload-pack: not our ref 8b9d8a218b5a395f70e6eb109900ec40f3cf1251
fatal: the remote end hung up unexpectedly


pinboard aliases

pinboard aliases

fatal: remote error: upload-pack: not our ref b3693ee7ece5ed524722cc0891757a02d53be3e0
fatal: the remote end hung up unexpectedly


Update start.sh

Update start.sh

Corrected menu item and description

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/libtetcoin/libtetcoin-explorer.git/'


bash: exports: add GOROOT

bash: exports: add GOROOT

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


Updated script to contain more friendly output messages.

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/hydren/fgeal.git/'


Delete setopt complete_aliases to get git aliases completions

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


Added an install script for oh-my-zsh

Added an install script for oh-my-zsh

#! /bin/sh

OHMYZSHDIST="https://github.com/robbyrussell/oh-my-zsh.git"

echo "Checking for oh-my-zsh..."

if [ ! -d $HOME/.oh-my-zsh ]; then
  echo "oh-my-zsh not found, cloning...";
  git clone $OHMYZSHDIST $HOME/.oh-my-zsh;
  echo "Done cloning oh-my-zsh. Continuing... \n";
else
  echo "oh-my-zsh found! Continuing... \n"
fi

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


Add locale config

Add locale config

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


Added install_nscd.sh.

Added install_nscd.sh.

#!/bin/bash
#
# 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.
#
# Copyright Clairvoyant 2016

yum -y -e1 -d1 install nscd
service nscd start
chkconfig nscd on

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


unified bin source

unified bin source

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/Mausy5043/raspboot.git/'


fix up validation logic

fix up validation logic

#!/bin/bash

# This script tests the high level end-to-end functionality demonstrated
# as part of the examples/sample-app

iptables --list > /dev/null 2>&1
if [ $? -ne 0 ]; then
  echo "You do not have iptables privileges.  Kubernetes services will not work without iptables access.  See https://github.com/GoogleCloudPlatform/kubernetes/issues/1859.  Try 'sudo hack/test-end-to-end.sh'."
  exit 1
fi

set -o errexit
set -o nounset
set -o pipefail

echo "[INFO] Starting end-to-end test"

HACKDIR=$(CDPATH="" cd $(dirname $0); pwd)
source ${HACKDIR}/util.sh

TMPDIR=${TMPDIR:-"/tmp"}
ETCD_DATA_DIR=$(mktemp -d ${TMPDIR}/openshift.local.etcd.XXXX)
VOLUME_DIR=$(mktemp -d ${TMPDIR}/openshift.local.volumes.XXXX)
LOG_DIR=${LOG_DIR:-$(mktemp -d ${TMPDIR}/openshift.local.logs.XXXX)}
API_PORT=${API_PORT:-8080}
API_HOST=${API_HOST:-127.0.0.1}
KUBELET_PORT=${KUBELET_PORT:-10250}
NAMESPACE=${NAMESPACE:-default}

CONFIG_FILE=${LOG_DIR}/appConfig.json
BUILD_CONFIG_FILE=${LOG_DIR}/buildConfig.json
FIXTURE_DIR=${HACKDIR}/../examples/sample-app
GO_OUT=${HACKDIR}/../_output/go/bin
openshift=$GO_OUT/openshift

# Search for a regular expression in a HTTP response.
#
# $1 - a valid URL (e.g.: http://127.0.0.1:8080)
# $2 - a regular expression or text
function validate_response {
    ip=$1
    response=$2

  curl $ip | grep -q "$response"
  if [ $? -eq 0 ] ;then
    echo "[INFO] Response is valid."
    return 0
  fi

  echo "[INFO] Response is invalid."
  set -e
  return 1
}

# setup()
function setup()
{
  stop_openshift_server
  echo "[INFO] `$openshift version`"
  echo "[INFO] Server logs will be at: $LOG_DIR/openshift.log"
}

# teardown
function teardown()
{
  if [ $? -ne 0 ]; then
    echo "[FAIL] !!!!! Test Failed !!!!"
  echo "[INFO] Server logs: $LOG_DIR/openshift.log"
  cat $LOG_DIR/openshift.log | grep -v "failed to find a fit"
  set +u
  if [ ! -z $BUILD_ID ]; then
    $openshift kube buildLogs --id=$BUILD_ID > $LOG_DIR/build.log && echo "[INFO] Build logs: $LOG_DIR/build.log"
    # buildLogs command is currently broken, substitute w/ docker logs for now.
    #cat $LOG_DIR/build.log
    CONTAINER_ID=` docker ps -a | grep docker-builder | awk '{print $1}'`
    docker logs $CONTAINER_ID
  fi
  set -u
  fi
  set +u
  if [ "$SKIP_TEARDOWN" != "1" ]; then
    set +e
    echo "[INFO] Tearing down test"
    stop_openshift_server
    echo "[INFO] Stopping docker containers"; docker stop $(docker ps -a -q)
    echo "[INFO] Removing docker containers"; docker rm $(docker ps -a -q)
    set -e
  fi
  set -u
}

trap teardown EXIT SIGINT

setup

# Start All-in-one server and wait for health
echo "[INFO] Starting OpenShift server"
start_openshift_server ${VOLUME_DIR} ${ETCD_DATA_DIR} ${LOG_DIR}

wait_for_url "http://localhost:10250/healthz" "[INFO] kubelet: " 1 30
wait_for_url "http://localhost:8080/healthz" "[INFO] apiserver: "

# Deploy private docker registry
echo "[INFO] Deploying private Docker registry"
$openshift kube apply -c ${FIXTURE_DIR}/docker-registry-config.json

echo "[INFO] Waiting for Docker registry pod to start"
wait_for_command "$openshift kube list pods | grep registrypod | grep Running" $((5*TIME_MIN))

echo "[INFO] Waiting for Docker registry service to start"
wait_for_command "$openshift kube list services | grep registrypod"
# services can end up on any IP.  Make sure we get the IP we need for the docker registry
DOCKER_REGISTRY_IP=`$openshift kube get --yaml services/docker-registry | grep "portalIP" | awk '{print $2}'`

echo "[INFO] Probing the docker-registry"
wait_for_url_timed "http://${DOCKER_REGISTRY_IP}:5001" "[INFO] Docker registry says: " $((2*TIME_MIN))

echo "[INFO] Pre-pulling and pushing centos7"
STARTTIME=$(date +%s)
docker pull centos:centos7
ENDTIME=$(date +%s)
echo "[INFO] Pulled centos7: $(($ENDTIME - $STARTTIME)) seconds"

docker tag centos:centos7 ${DOCKER_REGISTRY_IP}:5001/cached/centos:centos7
STARTTIME=$(date +%s)
docker push ${DOCKER_REGISTRY_IP}:5001/cached/centos:centos7
ENDTIME=$(date +%s)
echo "[INFO] Pushed centos7: $(($ENDTIME - $STARTTIME)) seconds"

# Process template and apply
echo "[INFO] Submitting application template json for processing..."
$openshift kube process -c ${FIXTURE_DIR}/application-template.json > $CONFIG_FILE
# substitute the default IP address with the address where we actually ended up
sed -i "s,172.121.17.1,${DOCKER_REGISTRY_IP},g" $CONFIG_FILE

echo "[INFO] Applying application config"
$openshift kube apply -c $CONFIG_FILE

# Trigger build
echo "[INFO] Simulating github hook to trigger new build using curl"
curl -s -A "GitHub-Hookshot/github" -H "Content-Type:application/json" -H "X-Github-Event:push" -d @${FIXTURE_DIR}/github-webhook-example.json http://localhost:8080/osapi/v1beta1/buildConfigHooks/build100/secret101/github

# Wait for build to complete
echo "[INFO] Waiting for build to complete"
BUILD_ID=`$openshift kube list builds --template="{{with index .Items 0}}{{.ID}}{{end}}"`
wait_for_command "$openshift kube get builds/$BUILD_ID | grep complete" $((40*TIME_MIN)) "$openshift kube get builds/$BUILD_ID | grep failed"

echo "[INFO] Waiting for database pod to start"
wait_for_command "$openshift kube list pods | grep database | grep Running" $((30*TIME_SEC))

echo "[INFO] Waiting for database service to start"
wait_for_command "$openshift kube list services | grep database" $((20*TIME_SEC))
DB_IP=`$openshift kube get --yaml services/database | grep "portalIP" | awk '{print $2}'`

echo "[INFO] Waiting for frontend pod to start"
wait_for_command "$openshift kube list pods | grep frontend | grep Running" $((120*TIME_SEC))

echo "[INFO] Waiting for frontend service to start"
wait_for_command "$openshift kube list services | grep frontend" $((20*TIME_SEC))
FRONTEND_IP=`$openshift kube get --yaml services/frontend | grep "portalIP" | awk '{print $2}'`

echo "[INFO] Waiting for database to start..."
wait_for_url_timed "http://${DB_IP}:5434" "[INFO] Database says: " $((3*TIME_MIN))

echo "[INFO] Waiting for app to start..."
wait_for_url_timed "http://${FRONTEND_IP}:5432" "[INFO] Frontend says: " $((2*TIME_MIN))

echo "[INFO] Validate app response..."
validate_response "http://${FRONTEND_IP}:5432" "last insertion in the database was at"

#!/bin/bash

# This script tests the high level end-to-end functionality demonstrated
# as part of the examples/sample-app

iptables --list > /dev/null 2>&1
if [ $? -ne 0 ]; then
  echo "You do not have iptables privileges.  Kubernetes services will not work without iptables access.  See https://github.com/GoogleCloudPlatform/kubernetes/issues/1859.  Try 'sudo hack/test-end-to-end.sh'."
  exit 1
fi

set -o errexit
set -o nounset
set -o pipefail

echo "[INFO] Starting end-to-end test"

HACKDIR=$(CDPATH="" cd $(dirname $0); pwd)
source ${HACKDIR}/util.sh

TMPDIR=${TMPDIR:-"/tmp"}
ETCD_DATA_DIR=$(mktemp -d ${TMPDIR}/openshift.local.etcd.XXXX)
VOLUME_DIR=$(mktemp -d ${TMPDIR}/openshift.local.volumes.XXXX)
LOG_DIR=${LOG_DIR:-$(mktemp -d ${TMPDIR}/openshift.local.logs.XXXX)}
API_PORT=${API_PORT:-8080}
API_HOST=${API_HOST:-127.0.0.1}
KUBELET_PORT=${KUBELET_PORT:-10250}
NAMESPACE=${NAMESPACE:-default}

CONFIG_FILE=${LOG_DIR}/appConfig.json
BUILD_CONFIG_FILE=${LOG_DIR}/buildConfig.json
FIXTURE_DIR=${HACKDIR}/../examples/sample-app
GO_OUT=${HACKDIR}/../_output/go/bin
openshift=$GO_OUT/openshift

# Search for a regular expression in a HTTP response.
#
# $1 - a valid URL (e.g.: http://127.0.0.1:8080)
# $2 - a regular expression or text
function validate_response {
    ip=$1,
    response=$2

  curl $ip | grep -q $response
  if [ $? -eq 0 ] ;then
    echo "[INFO] Response is valid."
    return 0
  fi

  echo "[INFO] Response is invalid."
  set -e
  return 1
}

# setup()
function setup()
{
  stop_openshift_server
  echo "[INFO] `$openshift version`"
  echo "[INFO] Server logs will be at: $LOG_DIR/openshift.log"
}

# teardown
function teardown()
{
  if [ $? -ne 0 ]; then
    echo "[FAIL] !!!!! Test Failed !!!!"
  echo "[INFO] Server logs: $LOG_DIR/openshift.log"
  cat $LOG_DIR/openshift.log | grep -v "failed to find a fit"
  set +u
  if [ ! -z $BUILD_ID ]; then
    $openshift kube buildLogs --id=$BUILD_ID > $LOG_DIR/build.log && echo "[INFO] Build logs: $LOG_DIR/build.log"
    # buildLogs command is currently broken, substitute w/ docker logs for now.
    #cat $LOG_DIR/build.log
    CONTAINER_ID=` docker ps -a | grep docker-builder | awk '{print $1}'`
    docker logs $CONTAINER_ID
  fi
  set -u
  fi
  set +u
  if [ "$SKIP_TEARDOWN" != "1" ]; then
    set +e
    echo "[INFO] Tearing down test"
    stop_openshift_server
    echo "[INFO] Stopping docker containers"; docker stop $(docker ps -a -q)
    echo "[INFO] Removing docker containers"; docker rm $(docker ps -a -q)
    set -e
  fi
  set -u
}

trap teardown EXIT SIGINT

setup

# Start All-in-one server and wait for health
echo "[INFO] Starting OpenShift server"
start_openshift_server ${VOLUME_DIR} ${ETCD_DATA_DIR} ${LOG_DIR}

wait_for_url "http://localhost:10250/healthz" "[INFO] kubelet: " 1 30
wait_for_url "http://localhost:8080/healthz" "[INFO] apiserver: "

# Deploy private docker registry
echo "[INFO] Deploying private Docker registry"
$openshift kube apply -c ${FIXTURE_DIR}/docker-registry-config.json

echo "[INFO] Waiting for Docker registry pod to start"
wait_for_command "$openshift kube list pods | grep registrypod | grep Running" $((5*TIME_MIN))

echo "[INFO] Waiting for Docker registry service to start"
wait_for_command "$openshift kube list services | grep registrypod"
# services can end up on any IP.  Make sure we get the IP we need for the docker registry
DOCKER_REGISTRY_IP=`$openshift kube get --yaml services/docker-registry | grep "portalIP" | awk '{print $2}'`

echo "[INFO] Probing the docker-registry"
wait_for_url_timed "http://${DOCKER_REGISTRY_IP}:5001" "[INFO] Docker registry says: " $((2*TIME_MIN))

echo "[INFO] Pre-pulling and pushing centos7"
STARTTIME=$(date +%s)
docker pull centos:centos7
ENDTIME=$(date +%s)
echo "[INFO] Pulled centos7: $(($ENDTIME - $STARTTIME)) seconds"

docker tag centos:centos7 ${DOCKER_REGISTRY_IP}:5001/cached/centos:centos7
STARTTIME=$(date +%s)
docker push ${DOCKER_REGISTRY_IP}:5001/cached/centos:centos7
ENDTIME=$(date +%s)
echo "[INFO] Pushed centos7: $(($ENDTIME - $STARTTIME)) seconds"

# Process template and apply
echo "[INFO] Submitting application template json for processing..."
$openshift kube process -c ${FIXTURE_DIR}/application-template.json > $CONFIG_FILE
# substitute the default IP address with the address where we actually ended up
sed -i "s,172.121.17.1,${DOCKER_REGISTRY_IP},g" $CONFIG_FILE

echo "[INFO] Applying application config"
$openshift kube apply -c $CONFIG_FILE

# Trigger build
echo "[INFO] Simulating github hook to trigger new build using curl"
curl -s -A "GitHub-Hookshot/github" -H "Content-Type:application/json" -H "X-Github-Event:push" -d @${FIXTURE_DIR}/github-webhook-example.json http://localhost:8080/osapi/v1beta1/buildConfigHooks/build100/secret101/github

# Wait for build to complete
echo "[INFO] Waiting for build to complete"
BUILD_ID=`$openshift kube list builds --template="{{with index .Items 0}}{{.ID}}{{end}}"`
wait_for_command "$openshift kube get builds/$BUILD_ID | grep complete" $((40*TIME_MIN)) "$openshift kube get builds/$BUILD_ID | grep failed"

echo "[INFO] Waiting for database pod to start"
wait_for_command "$openshift kube list pods | grep database | grep Running" $((30*TIME_SEC))

echo "[INFO] Waiting for database service to start"
wait_for_command "$openshift kube list services | grep database" $((20*TIME_SEC))
DB_IP=`$openshift kube get --yaml services/database | grep "portalIP" | awk '{print $2}'`

echo "[INFO] Waiting for frontend pod to start"
wait_for_command "$openshift kube list pods | grep frontend | grep Running" $((120*TIME_SEC))

echo "[INFO] Waiting for frontend service to start"
wait_for_command "$openshift kube list services | grep frontend" $((20*TIME_SEC))
FRONTEND_IP=`$openshift kube get --yaml services/frontend | grep "portalIP" | awk '{print $2}'`

echo "[INFO] Waiting for database to start..."
wait_for_url_timed "http://${DB_IP}:5434" "[INFO] Database says: " $((3*TIME_MIN))

echo "[INFO] Waiting for app to start..."
wait_for_url_timed "http://${FRONTEND_IP}:5432" "[INFO] Frontend says: " $((2*TIME_MIN))

echo "[INFO] Validate app response..."
validate_response "http://${FRONTEND_IP}:5432" "last insertion in the database was at"


Fix master pull at end of packaging.

Fix master pull at end of packaging.

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/Zonama/ZonamaDev.git/'


Catch sigints in loops

Catch sigints in loops

fatal: remote error: upload-pack: not our ref 181e8236f810c7011c0f345f6dd954296ca2ba7d
fatal: the remote end hung up unexpectedly


fix mistake about quoted opt

fix mistake about quoted opt

#!/bin/bash
#
# Copyright 2007 The Apache Software Foundation
#
# 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.
#
# Run Zeppelin
#

function usage() {
  echo "Usage: bin/zeppelin.sh [spark options] [application options]"
  exit 0
}

bin=$(dirname "${BASH_SOURCE-$0}")
bin=$(cd "${bin}">/dev/null; pwd)

. "${bin}/common.sh"

HOSTNAME=$(hostname)
ZEPPELIN_LOGFILE="${ZEPPELIN_LOG_DIR}/zeppelin-${ZEPPELIN_IDENT_STRING}-${HOSTNAME}.log"
LOG="${ZEPPELIN_LOG_DIR}/zeppelin-cli-${ZEPPELIN_IDENT_STRING}-${HOSTNAME}.out"

ZEPPELIN_SERVER=com.nflabs.zeppelin.server.ZeppelinServer
JAVA_OPTS+=" -Dzeppelin.log.file=${ZEPPELIN_LOGFILE}"

if [[ ! -d "${ZEPPELIN_LOG_DIR}" ]]; then
  echo "Log dir doesn't exist, create ${ZEPPELIN_LOG_DIR}"
  $(mkdir -p "${ZEPPELIN_LOG_DIR}")
fi

if [[ ! -d "${ZEPPELIN_PID_DIR}" ]]; then
  echo "Pid dir doesn't exist, create ${ZEPPELIN_PID_DIR}"
  $(mkdir -p "${ZEPPELIN_PID_DIR}")
fi

if [[ ! -d "${ZEPPELIN_NOTEBOOK_DIR}" ]]; then
  echo "Pid dir doesn't exist, create ${ZEPPELIN_NOTEBOOK_DIR}"
  $(mkdir -p "${ZEPPELIN_NOTEBOOK_DIR}")
fi

if [[ ! -z "${SPARK_HOME}" ]]; then
  source "${SPARK_HOME}/bin/utils.sh"
  SUBMIT_USAGE_FUNCTION=usage
  gatherSparkSubmitOpts "$@"
  ZEPPELIN_RUNNER="${SPARK_HOME}/bin/spark-submit"
  $(exec $ZEPPELIN_NICENESS $ZEPPELIN_RUNNER --class $ZEPPELIN_SERVER "${SUBMISSION_OPTS[@]}" --driver-java-options -Dzeppelin.log.file=$ZEPPELIN_LOGFILE spark-shell "${APPLICATION_OPTS[@]}")
else
  $(exec $ZEPPELIN_RUNNER $JAVA_OPTS -cp $CLASSPATH $ZEPPELIN_SERVER "$@")
fi

#!/bin/bash
#
# Copyright 2007 The Apache Software Foundation
#
# 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.
#
# Run Zeppelin
#

function usage() {
  echo "Usage: bin/zeppelin.sh [spark options] [application options]"
  exit 0
}

bin=$(dirname "${BASH_SOURCE-$0}")
bin=$(cd "${bin}">/dev/null; pwd)

. "${bin}/common.sh"

HOSTNAME=$(hostname)
ZEPPELIN_LOGFILE="${ZEPPELIN_LOG_DIR}/zeppelin-${ZEPPELIN_IDENT_STRING}-${HOSTNAME}.log"
LOG="${ZEPPELIN_LOG_DIR}/zeppelin-cli-${ZEPPELIN_IDENT_STRING}-${HOSTNAME}.out"

ZEPPELIN_SERVER=com.nflabs.zeppelin.server.ZeppelinServer
JAVA_OPTS+=" -Dzeppelin.log.file=${ZEPPELIN_LOGFILE}"

if [[ ! -d "${ZEPPELIN_LOG_DIR}" ]]; then
  echo "Log dir doesn't exist, create ${ZEPPELIN_LOG_DIR}"
  $(mkdir -p "${ZEPPELIN_LOG_DIR}")
fi

if [[ ! -d "${ZEPPELIN_PID_DIR}" ]]; then
  echo "Pid dir doesn't exist, create ${ZEPPELIN_PID_DIR}"
  $(mkdir -p "${ZEPPELIN_PID_DIR}")
fi

if [[ ! -d "${ZEPPELIN_NOTEBOOK_DIR}" ]]; then
  echo "Pid dir doesn't exist, create ${ZEPPELIN_NOTEBOOK_DIR}"
  $(mkdir -p "${ZEPPELIN_NOTEBOOK_DIR}")
fi

if [[ ! -z "${SPARK_HOME}" ]]; then
  source "${SPARK_HOME}/bin/utils.sh"
  SUBMIT_USAGE_FUNCTION=usage
  gatherSparkSubmitOpts "$@"
  ZEPPELIN_RUNNER="${SPARK_HOME}/bin/spark-submit"
  $(exec $ZEPPELIN_NICENESS $ZEPPELIN_RUNNER --class $ZEPPELIN_SERVER $SUBMISSION_OPTS[@] --driver-java-options -Dzeppelin.log.file=$ZEPPELIN_LOGFILE spark-shell $APPLICATION_OPTS[@])
else
  $(exec $ZEPPELIN_RUNNER $JAVA_OPTS -cp $CLASSPATH $ZEPPELIN_SERVER "$@")
fi


No ramo master
- Mudanças a serem submetidas:
	modificado:    resolvconf.sh

@rodrixcornell Rodrigo Cabral <rodrixcornell@gmail.com>

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/rodrixcornell/bin.git/'


Linux Script: Use rsync and cp instead of mv

error: pathspec 'Platform' did not match any file(s) known to git
error: pathspec 'Scripts/Kaju' did not match any file(s) known to git
error: pathspec 'Linux' did not match any file(s) known to git
error: pathspec 'Script.sh' did not match any file(s) known to git


start daemon in raspboot (for now)

start daemon in raspboot (for now)


adds curl to deps

adds curl to deps

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


Add script to install non-oss deps in the local maven repo

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/resmo/cloudstack.git/'


add admin script to clone a corpus

add admin script to clone a corpus

#!/bin/bash

oldcorpus=$1
newcorpus=$2

# Check config and grab useful settings
if [ ! -s "config/config.json" ]; then
  echo "ERROR: you must run this script from the root directory where Hyphe is installed"
  exit 1
fi
hyphedb=$(grep "\(db_name\|project\)['\"]" config/config.json | sed -r "s/^.*: *(['\"])(.*)\1[, ]*$/\2/")
lucenedir=$(grep "lucene.\(root\)\?path['\"]" config/config.json | sed -r "s/^.*: *(['\"])(.*)\1[, ]*$/\2/")
mongodir=$(grep -i "^\s*dbpath[=:]" /etc/mongod*.conf | sed -r "s/^.*[=:] *(\/.*) *$/\1/")

# Check oldcorpus exists
if [ -z "$oldcorpus" ]; then
  echo "USAGE: bash bin/clone_corpus.sh OLDCORPUSID NEWCORPUSID"
  exit 1
fi
oldname=$(mongo "$hyphedb" --eval "db.corpus.find({_id: \"$oldcorpus\"}).forEach(printjson)" | grep '"name"' | sed -r 's/^.*: *"(.*)",$/\1/')
if [ -z "$oldname" ]; then
  echo "ERROR: cannot find corpus with ID \"$oldcorpus\" in Hyphe's corpus MondoDB ($hyphedb)."
  exit 1
fi

# Define newcorpus ID
if [ -z "$newcorpus" ]; then
  echo "WARNING: no new ID given for clone corpus of \"$oldcorpus\"."
  newcorpus="$oldcorpus_"$(date +%y%m%d%H%M)
  echo "will use automatically generated corpus ID: \"$newcorpus\"."
  echo "Press Enter to proceed or Ctrl+c to cancel and give your choice of new corpus ID."
  read
fi
newname="$oldname copy-"$(date +%Y/%m/%d-%H:%M)

# Check newcorpus does not already exist in mongo and lucenedata
if [ $(mongo hyphe --eval "db.corpus.count({_id: \"$newcorpus\"})" | grep '^[0-9]') -eq "0" ]; then
  echo "ERROR: there is already a corpus with ID \"$newcorpus\" in Hyphe's corpus MongoDB ($hyphedb)."
  exit 1
fi
if [ -d "$lucenedir/$newcorpus" ]; then
  echo "ERROR: there is already a Lucene directory for a corpus with ID \"$newcorpus\" in \"$lucenedata\"."
  exit 1
fi

# Check disk space and required
function freespace { df "$1/" | tail -1 | awk '{print $4}'; }
function usedspace { du -s "$1/" | awk '{print $1}'; }
mongofreespace=$(freespace "$mongodir")
mongousedspace=$(mongo hyphe --eval "(db.$oldcorpus.jobs.totalSize() + db.$oldcorpus.logs.totalSize() + db.$oldcorpus.pages.totalSize() + db.$oldcorpus.queries.totalSize() + db.$oldcorpus.queue.totalSize() + db['$oldcorpus.stats'].totalSize())/1024" | grep '^[0-9]')
lucenefreespace=$(freespace "$lucenedir")
luceneusedspace=$(usedspace "$lucenedir/$oldcorpus")
minrequired=$((($mongousedspace + $luceneusedspace) * 3 / 2))
minwarning=$((($mongousedspace + $luceneusedspace) * 2))
spacereport="this corpus already takes ${mongousedspace}K of mongo data and ${luceneusedspace}K of lucene data"
if [ $minrequired -gt $mongofreespace ]; then
  echo "ERROR: $spacereport"
  echo "There is not enough space left on the disk where MongoDB data is stored, see $mongodir"
  df -h $mongodir
  exit 1
elif [ $minrequired -gt $lucenefreespace ]; then
  echo "ERROR: $spacereport"
  echo "There is not enough space left on the disk where Lucene data is stored, see $lucenedir"
  df -h $lucenedir
  exit 1
elif [ $minwarning -gt $mongofreespace ]; then
  echo "WARNING: $spacereport"
  echo "There is not much space left on the disk where MongoDB data is stored, see $mongodir"
  df -h $mongodir
  echo "Press Enter to proceed or Ctrl+c to cancel and cleanup some space first."
  read
elif [ $minwarning -gt $lucenefreespace ]; then
  echo "WARNING: $spacereport"
  echo "There is not much space left on the disk where Lucene data is stored, see $lucenedir"
  df -h $lucenedir
  echo "Press Enter to proceed or Ctrl+c to cancel and cleanup some space first."
  read
fi

# Stop Hyphe
if ! bin/hyphe stop --nologs; then
  echo "ERROR: could not stop Hyphe"
  exit 1
fi

# copy corpus entry in Hyphe's MongoDB
mongo $hyphedb --eval "db.corpus.find({_id: '$oldcorpus'}).forEach( function(x){ x._id = '$newcorpus'; x.name = '$newname'; db.corpus.insert(x); } );"

# Create mongo collections for new corpus
for coll in jobs logs pages queries queue stats; do
  mongoexport -d $hyphedb -c "$oldcorpus.$coll" | mongoimport -d $hyphedb -c "$newcorpus.$coll" --drop
done

# Copy Lucene data
cp -r "$lucenedir/$oldcorpus" "$lucenedir/$newcorpus"

# Restart Hyphe
echo "Corpus $oldcorpus successfully cloned into $newcorpus"
echo "Restarting Hyphe now..."
bin/hyphe start --nologs

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


Set a random timezone

Set a random timezone

#!/bin/sh
# Set a random timezone
TZ_SIGN=$( echo "+:-" | cut -d: -f $( shuf -i 1-2 -n 1 ) )
export TZ=UTC${TZ_SIGN}$( shuf -i 0-24 -n1 )
echo "Set TZ to: ${TZ}"

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


Create run.sh

Create run.sh

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


added bin/install-deps.sh

added bin/install-deps.sh

git-svn-id: 1e305be66d043bb50495ad67d7451794839df690@2106 b2c27d59-8999-dc11-853b-000bcdefe56b

#/bin/sh

#sudo cpan -f Term::ReadLine::Gnu
sudo cpan YAML GD CGI::Cookie::XS FCGI CGI::Simple YAML::Syck List::Util \
    DBI Clone Params::Util Parse::Yapp DBD::Pg Data::UUID \
    GD::SecurityImage Cache::Memcached::Fast Hash::Merge \
    Config::Simple Encode::Guess List::MoreUtils JSON::XS \
    Data::Structure::Util DateTime::Format::Pg \
    DateTime::Format::Strptime Digest::MD5 File::ShareDir \
    Compress::Zlib Crypt::CBC Crypt::Rijndael IPC::Run3 IPC::Run \
    Time::HiRes Filter::QuasiQuote Parse::RecDescent Benchmark::Timer \
    HTTP::Server::Simple Text::Diff Text::Table \
    Term::ReadLine::Perl Term::ReadLine::Gnu Term::ReadKey \
    CGI Cache::Cache Class::Prototyped Test::LongString \
    HTTP::Response WWW::OpenResty LWP::UserAgent

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


Homemade virtualenvwrapper for pyvenv-3.4

#!/bin/bash
VENV_DIR="$HOME/.venvs"
# Activate venv and re-source PS1 from bash_prompt to get colored venv name.
function work() {
    source "$VENV_DIR/$1/bin/activate"
    source "$HOME/.bash_prompt"
}

# Pyvenv-3.4 is currently broken in Ubuntu 14.04. This script needs to be run to create new
# environments with pyvenv
function pyv() {
    if [ -d $VENV_DIR ]; then
        echo "Making directory for environments in $VENV_DIR"
        mkdir $VENV_DIR
    fi
    venv="$VENV_DIR/$1"
    echo "Creating virtual environment in $venv"
    if ! (pyvenv-3.4 --without-pip $venv); then
        echo "Something wrong happened"
        return
    fi
    source "$venv/bin/activate"
    curl https://bootstrap.pypa.io/get-pip.py | python
    deactivate
    work $1
}

function delete_venv() {
    rm -rf "$VENV_DIR/$1"
}

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


Add start script for Master shard

Add start script for Master shard

#!/usr/bin/env bash

cd "/home/dst/.steam/SteamApps/common/Don't Starve Together Dedicated Server/bin"
/home/dst/.steam/SteamApps/common/Don\'t\ Starve\ Together\ Dedicated\ Server/bin/dontstarve_dedicated_server_nullrenderer -cluster Cluster_1 -shard Master

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


:grinning: Testscript

:grinning: Testscript

set -e

cd "$(dirname "$0")/.."
godep go test ./...

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


fixing aio.sh

fixing aio.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/NerdWalletOSS/Q.git/'


Added all local docker on mac example script

#!/bin/sh
#
# This exampe shows how to run an ArangoDB cluster all locally in docker on mac.
#
# By default this script uses the latest released ArangoDB docker image.
# To use another image, set ARANGOIMAGE to the desired image, before calling this script.
#

NSCONTAINER=arangodb-on-mac-ns
STARTERCONTAINER=arangodb-on-mac
ARANGOIMAGE=${ARANGOIMAGE:=arangodb/arangodb:latest}

# Create network namespace container.
# Make sure to expose all ports you want here.
docker run -d --name=${NSCONTAINER} \
    -p 8528:8528 -p 8529:8529 -p 8534:8534 -p 8539:8539 \
    alpine:latest sleep 630720000

# Run the starter in a container using the network namespace of ${NSCONTAINER}
docker run -it --name=${STARTERCONTAINER} --rm \
    --net=container:${NSCONTAINER} \
    -v /var/run/docker.sock:/var/run/docker.sock \
    arangodb/arangodb-starter \
    --docker.image=${ARANGOIMAGE} \
    --starter.address=localhost \
    --starter.local

# Remove namespace container
docker rm -vf ${NSCONTAINER}

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


Add back removed file

Add back removed file

#!/usr/bin/env bash

set -e

# validate the number of arguments
if [ "$#" -lt "1" ]; then
    echo "Needs one argument that is the module name" >&2
    exit 1
fi

MODULE_NAME=$1

export WORKSPACE=`pwd`
export PACKAGE=grakn-package

PATH="${WORKSPACE}/grakn-test/test-integration/src/test/bash:${WORKSPACE}/grakn-test/${MODULE_NAME}:${WORKSPACE}/grakn-test/${MODULE_NAME}/src/main/bash:${PATH}"

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


Add script to extract source bundle and LICENSE from an image.

#!/bin/bash

# Standalone script to extract files from a Docker image.
# Does not require the image to have a shell.
# Meant for extracting a source bundle and LICENSE file.

set -o nounset
set -o pipefail
set -o errexit

# Set defaults.
image=''
output_dir="$(pwd)"
clobber='false'
files=('source.tar.xz' 'LICENSE')

# Usage
function short_usage() {
  echo "Usage: $0 -i '<docker_image>' -o '<output_dir>' [-f 'file1' -f 'dir/file2']"
}
function usage() {
cat <<EOF
Extract source bundle and LICENSE file from a Docker image.

$(short_usage)
  -h                      Print usage.

  -i <image>              The full docker image, including the tag or digest.

  [-o <dir>]              The local directory to extract files to.
                          Default value: Current directory (${PWD}).

  [-c]                    Clobber existing files.
                          Default: false.

  [-f <filepath> -f ...]  Additional files to attempt to extract from the image.
                          Paths are always treated as starting at the root of the image's file system (/).
                          Globs (*) are not understood.
                          By default only looks for: ${files[@]}
Example:
  $0 -i 'gcr.io/k8s-image-staging/gke-mpi-metadata-server:76d1aec08eeeab7cdcd4bfe8591f65a35e7437e8' -o . -f 'NOTICES.txt' -f 'third_party/COPYRIGHTS' -c
EOF
}

# Get arguments.
OPTIND=1  # Reset in case getopts has been used previously in the shell.
while getopts ":h?i:o:cf:" opt; do
  case "$opt" in
    i ) image=$OPTARG ;;
    o ) output_dir=$OPTARG ;;
    c ) clobber='true' ;;
    f ) files+=("${OPTARG}") ;;

    h ) usage; exit 0 ;;
    \?) echo "Unknown option: -$OPTARG" >&2; exit 1 ;;
    : ) echo "Missing option argument for -$OPTARG" >&2; exit 1 ;;
    * ) echo "Invalid option: -$OPTARG" >&2; exit 1 ;;
  esac
done
shift $((OPTIND-1))

# Validate options.
if [ -z "${image}" ] || [ -z "${output_dir}" ]; then
  short_usage
  exit 1
elif ! [ -d "${output_dir}" ]; then
  echo "Output dir does not exist: ${output_dir}" >&2
  exit 1
fi

# Create the container without running it.
# Add an empty CMD just in case it wasn't specified.
# Allow it to fail and print an error message if the image is not found.
container=$(docker create "${image}" '')

# Cleanup
trap "docker rm --volumes --force '${container}' >/dev/null" EXIT

# Copy files to the destination dir.
res=0
for file in "${files[@]}"; do
  dest_file="${output_dir}/${file}"

  # Create the same directory structure in the output dir.
  # Use `dirname` instead of just ${output_dir} because ${file} could be a nested file path.
  mkdir -p "$(dirname ${dest_file})"

  if [ -f "${dest_file}" ] ; then
    if [ "${clobber}" = 'true' ]; then
      echo "Replacing existing file: ${dest_file}"
    else
      echo "File ${dest_file} already exists and clobber is off, skipping."
      res=1
      continue
    fi
  fi

  # Attempt to copy all files, even if one fails.
  set +o errexit
  docker cp "${container}:/${file}" "${dest_file}"
  err=$?
  set -o errexit

  if ((err)); then
    res=1
    continue
  fi

  echo "Extracted file /${file} to ${dest_file}"
done

exit $res

error: pathspec 'builder-tools/extract_source.sh' did not match any file(s) known to git


Create ajenti.sh

Create ajenti.sh

#!/bin/bash

apt-get -y install build-essential python-pip python-dev python-lxml libffi-dev libssl-dev libjpeg-dev libpng-dev uuid-dev python-dbus
pip install 'setuptools>=0.6rc11' 'pip>=6' wheel
pip install ajenti-panel ajenti.plugin.dashboard ajenti.plugin.settings ajenti.plugin.plugins ajenti.plugin.terminal

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


add script

add script

#!/bin/sh
#
# Copyright (c) 2012-2013 Axelor. All Rights Reserved.
#
# The contents of this file are subject to the Common Public
# Attribution License Version 1.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://license.axelor.com/.
#
# The License is based on the Mozilla Public License Version 1.1 but
# Sections 14 and 15 have been added to cover use of software over a
# computer network and provide for limited attribution for the
# Original Developer. In addition, Exhibit A has been modified to be
# consistent with Exhibit B.
#
# Software distributed under the License is distributed on an “AS IS”
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
# the License for the specific language governing rights and limitations
# under the License.
#
# The Original Code is part of "Axelor Business Suite", developed by
# Axelor exclusively.
#
# The Original Developer is the Initial Developer. The Initial Developer of
# the Original Code is Axelor.
#
# All portions of the code written by Axelor are
# Copyright (c) 2012-2013 Axelor. All Rights Reserved.
#

DATE=`/bin/date "+%Y%m%d"`
PATHDUMP="$HOME/dump"
PATHLOG="$HOME/logs"
DATABASE="axelor-import"

backupDb ()
{
	database=$1
	path=$2
	a=0
	fullpath="$path.sql"

	until  test ! -f "$fullpath";
	do
		a=`expr $a + 1`
		fullpath=$path'_'$a'.sql'
	done

	echo "Info: Making backup of database $database : $fullpath"

	/usr/bin/pg_dump $database -f $fullpath

	return 0
}

if [ ! -z $2 ]; then
	DATABASE=`echo "$2"`
fi
echo "Using $DATABASE"

if test ! -d "$PATHDUMP"; then
   echo "Error: source directory '$PATHDUMP' does not exist or is not a dir"
   exit 1
fi

if test ! -d "$PATHLOG"; then
   echo "Error: source directory '$PATHLOG' does not exist or is not a dir"
   exit 1
fi

if [ $(psql -A postgres -c "select count(*) from pg_database where datname in ('$DATABASE')") = 0 ]; then
	echo "Error: Database $DATABASE not exist"
	exit 1
fi

if [ $1 = "base" ]; then
	echo "Run base import"
	args=`echo "-c src/main/resources/config_files/csv-config_base.xml -d src/main/resources/data/base/ "`
	(exec mvn -q exec:java -Dexec.mainClass="com.axelor.erp.data.Main" -Dexec.args="$args" > $PATHLOG/axelor-base_$DATE.log)
	backupDb $DATABASE $PATHDUMP/axelor_base_$DATE
elif [ $1 = "demo" ]; then
	echo "Run base import"
	args=`echo "-c src/main/resources/config_files/csv-config_demo.xml -d src/main/resources/data/demo/ "`
	(exec mvn -q exec:java -Dexec.mainClass="com.axelor.erp.data.Main" -Dexec.args="$args" > $PATHLOG/axelor_demo_$DATE.log)
	backupDb $DATABASE $PATHDUMP/axelor_demo_$DATE
fi

echo "Import Done !"

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


Add shell script for ansible summary from instances

ansible -i ~/code/aspace_deploy/hosts -a "sudo monit summary" $1

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


Minor changes

Minor changes

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/PrabhanshuAttri/dev-files.git/'


script.sh: update to match main repo

script.sh: update to match main repo

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/caskroom/homebrew-eid.git/'


handle different NR names vs repo name

handle different NR names vs repo name

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


get the name right

get the name right


+boto

+boto

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/eResearchSA/nectar-base-image.git/'


shadowsockR.sh

shadowsockR.sh

 shadowsockR 管理启动脚本

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/bycarl/mypro.git/'


jenv reset command

jenv reset command

#!/bin/bash

#
#   Copyright 2013 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.
#

# reset jenv to default
function __jenvtool_reset {
	__jenvtool_initialize
	__jenvtool_utils_echo_green "jenv reset to default!"
}

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


:gift: Add packaging script

:gift: Add packaging script

#!/bin/bash

PACKAGE_VERSION=$(grep 'version' package.json -m1 | cut -d '"' -f4)
PACKAGE_NAME=$(grep 'name' package.json -m1 | cut -d '"' -f4)

RELEASE_DIR="release"
RELEASE_TIMESTAMP="$(date +%Y%m%d)"

# Rebuild CE if necessary:
if ! grep -q v$PACKAGE_VERSION build/index.html;
then
    rm -rf build/
    gulp --ce
fi

[ ! -d "$RELEASE_DIR" ] && mkdir -p "$RELEASE_DIR"
tar -zcf $RELEASE_DIR/$PACKAGE_NAME-$PACKAGE_VERSION.tar.gz --transform "s/^build/$PACKAGE_NAME/" build/

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


added cybergis-script-pull-arcgis.sh

added cybergis-script-pull-arcgis.sh

#!/bin/bash

if [[ $# -ne 6 ]]; then
	echo "Usage: cybergis-script-pull-arcgis.sh <service> <field> <dbname> <dbuser> <dbpass> <table>"
	exit
fi
DATE=$(date)
FORMAT=json
SERVICE=$1
FIELD=$2
DBNAME=$3
DBUSER=$4
DBPASS=$5
TABLE=$6
URL="$SERVICE?where=$FIELD+%3D+$FIELD&outfields=*&f=$FORMAT"
TEMP=/tmp/cybergis-pull

if [[ $EUID -ne 0 ]]; then
  echo "You must be a root user" 2>&1
  exit 1
else
	echo ""
	echo "Starting pull at "$DATE
	if [ -d $TEMP ] ; then
		echo "Removing data from previous pull"
		rm -fr $TEMP
	fi

	mkdir $TEMP

	cd $TEMP

	echo "Retreiving data from "$URL
	wget $URL -O pull_arcgis.json
        ogr2ogr -overwrite -s_srs EPSG:900913 -a_srs EPSG:900913 -f GeoJSON pull.geojson pull_arcgis.json OGRGeoJSON
	ogr2ogr -overwrite -a_srs EPSG:900913 -f "PostgreSQL" PG:"host=localhost user=$DBUSER dbname=$DBNAME password=$DBPASS" pull.geojson -nln "$TABLE"
	echo "Pull completed"
fi

error: pathspec 'bin/cybergis-script-pull-arcgis.sh' did not match any file(s) known to git


shutils/metadata.sh: reset {sgml,xml}_{entries,catalogs} for subpkgs.

--HG--
extra : convert_revision : 491a636c86b6c5baa720f616e76a21e3a45f28a3

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/'


NetnsRunner: add netns-runner.sh script

NetnsRunner: add netns-runner.sh 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/DarkCaster/Linux-Helper-Tools.git/'


add script for building project

add script for building project

#!/bin/bash

wget sourceforge.net/projects/gicl/files/mgblast.tar.gz
cd mgblast
make && make install

sudo apt-get install libdb-dev libdb++-dev ncbi-blast+

perl Makefile.PL && make test

error: pathspec 'build/ci/run_build.sh' did not match any file(s) known to git


remove cp plugin because it is not used any longer

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


bump up todo.sh prompt coloring

bump up todo.sh prompt coloring

autoload colors && colors
# cheers, @ehrenmurdick
# http://github.com/ehrenmurdick/config/blob/master/zsh/prompt.zsh

git_branch() {
  echo $(/usr/bin/git symbolic-ref HEAD 2>/dev/null | awk -F/ {'print $NF'})
}

git_dirty() {
  st=$(/usr/bin/git status 2>/dev/null | tail -n 1)
  if [[ $st == "" ]]
  then
    echo ""
  else
    if [[ $st == "nothing to commit (working directory clean)" ]]
    then
      echo "on %{$fg_bold[green]%}$(git_prompt_info)%{$reset_color%}"
    else
      echo "on %{$fg_bold[red]%}$(git_prompt_info)%{$reset_color%}"
    fi
  fi
}

git_prompt_info () {
 ref=$(/usr/bin/git symbolic-ref HEAD 2>/dev/null) || return
# echo "(%{\e[0;33m%}${ref#refs/heads/}%{\e[0m%})"
 echo "${ref#refs/heads/}"
}

unpushed () {
  /usr/bin/git cherry -v origin/$(git_branch) 2>/dev/null
}

need_push () {
  if [[ $(unpushed) == "" ]]
  then
    echo " "
  else
    echo " with %{$fg_bold[magenta]%}unpushed%{$reset_color%} "
  fi
}

rvm_prompt(){
  if $(which rvm &> /dev/null)
  then
	  echo "%{$fg_bold[yellow]%}$(rvm tools identifier)%{$reset_color%}"
	else
	  echo ""
  fi
}

# This keeps the number of todos always available the right hand side of my
# command line. I filter it to only count those tagged as "+next", so it's more
# of a motivation to clear out the list.
todo(){
  if $(which todo.sh &> /dev/null)
  then
    num=$(echo $(todo.sh ls +next | wc -l))
    let todos=num-2
    if [ $todos != 0 ]
    then
      echo "$todos"
    else
      echo ""
    fi
  else
    echo ""
  fi
}

directory_name(){
  echo "%{$fg_bold[cyan]%}%1/%\/%{$reset_color%}"
}

export PROMPT=$'\n$(rvm_prompt) in $(directory_name) $(git_dirty)$(need_push)\n› '
set_prompt () {
  export RPROMPT="%{$fg_bold[cyan]%}$(todo)%{$reset_color%}"
}

precmd() {
  title "zsh" "%m" "%55<...<%~"
  set_prompt
}

autoload colors && colors
# cheers, @ehrenmurdick
# http://github.com/ehrenmurdick/config/blob/master/zsh/prompt.zsh

git_branch() {
  echo $(/usr/bin/git symbolic-ref HEAD 2>/dev/null | awk -F/ {'print $NF'})
}

git_dirty() {
  st=$(/usr/bin/git status 2>/dev/null | tail -n 1)
  if [[ $st == "" ]]
  then
    echo ""
  else
    if [[ $st == "nothing to commit (working directory clean)" ]]
    then
      echo "on %{$fg_bold[green]%}$(git_prompt_info)%{$reset_color%}"
    else
      echo "on %{$fg_bold[red]%}$(git_prompt_info)%{$reset_color%}"
    fi
  fi
}

git_prompt_info () {
 ref=$(/usr/bin/git symbolic-ref HEAD 2>/dev/null) || return
# echo "(%{\e[0;33m%}${ref#refs/heads/}%{\e[0m%})"
 echo "${ref#refs/heads/}"
}

unpushed () {
  /usr/bin/git cherry -v origin/$(git_branch) 2>/dev/null
}

need_push () {
  if [[ $(unpushed) == "" ]]
  then
    echo " "
  else
    echo " with %{$fg_bold[magenta]%}unpushed%{$reset_color%} "
  fi
}

rvm_prompt(){
  if $(which rvm &> /dev/null)
  then
	  echo "%{$fg_bold[yellow]%}$(rvm tools identifier)%{$reset_color%}"
	else
	  echo ""
  fi
}

# This keeps the number of todos always available the right hand side of my
# command line. I filter it to only count those tagged as "+next", so it's more
# of a motivation to clear out the list.
todo(){
  if $(which todo.sh &> /dev/null)
  then
    num=$(echo $(todo.sh ls +next | wc -l))
    let todos=num-2
    if [ $todos != 0 ]
    then
      echo "$todos"
    else
      echo ""
    fi
  else
    echo ""
  fi
}

directory_name(){
  echo "%{$fg_bold[cyan]%}%1/%\/%{$reset_color%}"
}

export PROMPT=$'\n$(rvm_prompt) in $(directory_name) $(git_dirty)$(need_push)\n› '
set_prompt () {
  export RPROMPT="%{$fg_bold[grey]%}$(todo)%{$reset_color%}"
}

precmd() {
  title "zsh" "%m" "%55<...<%~"
  set_prompt
}


Update path of tests

Update path of tests

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/Jumpscale/jumpscale6_core.git/'


Create days.sh

Create days.sh

bash args

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/xgqfrms/linux.git/'


Added convenience Android launcher. TODO: Make device id a parameter.

cd ../core
mvn clean install -DskipTests=true
cd ../cordova
mvn clean install
cd app
cordova run android --target=4272b012
cd ..

error: pathspec 'frontend/cordova/launch-android.sh' did not match any file(s) known to git


Batch release util.

Batch release util.

mvn --batch-mode release:prepare -Darguments="-DskipTests" -Psrc-and-doc

error: pathspec 'bin/release-batch-prepare-skip-tests.sh' did not match any file(s) known to git


initial commit. Works on my machine

initial commit. Works on my machine

#!/bin/bash
if [ $# -ne 1 ]
    then
        echo "Bad arguments, correct usage is:"
        echo "user@host"
        echo "example: GBurdell@gatech.edu"
else
    echo  "Enter the remote user's password."
    ssh -N $1 -L 3690:localhost:3389 -f || exit 1

    printf "\nCheck iTunes for your shared Library.\n"
    printf "Use Control+C to break the connection.\n\n"

    echo "Status:"
    dns-sd -P "iTunesServer" _daap._tcp local 3690 local 127.0.0.1 "text"
fi


separated early output functions

separated early output functions

#!/bin/sh
#
# Copyright (c) 2015 Jesco Freund
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

# include output coloring helpers
. ${SCRIPTPREFIX}/include/early/color.sh

# enable color support
[ "${ZB_USE_COLORS}"="yes" ] && zb_color_on

zb_early_log() {
    [ "${ZB_SILENT}" = "yes" ] && return 0
    if [ -n "${ZB_COLOR_ARROW}" ] || [ -z "${1##*\033[*}" ]; then
        printf "${ZB_COLOR_ARROW}>>>${ZB_COLOR_RESET} ${1}${ZB_COLOR_RESET_REAL}\n"
    else
        printf ">>> ${1}\n"
    fi
}

zb_early_log_error() {
    ZB_COLOR_ARROW="${ZB_COLOR_ERROR}${ZB_COLOR_BOLD}" \
        zb_early_log "${ZB_COLOR_ERROR}${ZB_COLOR_BOLD}Error:${ZB_COLOR_RESET} $1" >&2
    return 0
}

zb_early_log_warn() {
    ZB_COLOR_ARROW="${ZB_COLOR_WARN}${ZB_COLOR_BOLD}" \
        zb_early_log "${ZB_COLOR_WARN}${ZB_COLOR_BOLD}Warning:${ZB_COLOR_RESET} $@" >&2
    return 0
}

zb_early_log_debug() {
    [ ${ZB_DEBUG} = "yes" ] && ZB_COLOR_ARROW="${ZB_COLOR_DEBUG}${ZB_COLOR_BOLD}" \
        zb_early_log "${ZB_COLOR_DEBUG}${ZB_COLOR_BOLD}Debug:${ZB_COLOR_RESET}${ZB_COLOR_IGNORE} $@" >&2
    return 0
}

zb_early_log_info() {
    ZB_COLOR_ARROW="${ZB_COLOR_INFO}${ZB_COLOR_BOLD}" \
        zb_early_log "${ZB_COLOR_INFO}${ZB_COLOR_BOLD}Info:${ZB_COLOR_RESET}${ZB_COLOR_IGNORE} $@" >&2
    return 0
}

zb_early_die() {
    if [ $# -ne 2 ]; then
        zb_early_die 1 "zb_early_die() expects 2 arguments: exit_number \"message\""
    fi
    zb_early_log_error "${2}" || :
    exit $1
}

error: pathspec 'src/share/zebra/include/early/output.sh' did not match any file(s) known to git


Also synchronizing with Dropbox

Also synchronizing with Dropbox

#!/bin/bash
echo "Downloading SDH RDF files from Dropbox"
wget -O rdf.zip https://www.dropbox.com/sh/2lz1zwgtuvt7kwc/AAASZIMIks6qgp1OpI-ZO5X9a?dl=1
echo "Done"
echo "Unzipping..."
unzip rdf.zip
echo "Done"

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


*: add an shell script to make checkout PR branch easier. (#4794)

When a PR is not trivial, we need to checkout the branch to review the PR, this scripts makes this task easier.

#!/bin/bash

# This script is used to checkout a TiDB PR branch in a forked repo.
if test -z $1; then
	echo -e "Usage:\n"
	echo -e "\tcheckout-pr-branch.sh [github-username]:[pr-branch]\n"
	echo -e "The argument can be copied directly from github PR page."
	echo -e "The local branch name would be [github-username]/[pr-branch]."
	exit 0;
fi

username=$(echo $1 | cut -d':' -f1)
branch=$(echo $1 | cut -d':' -f2)
local_branch=$username/$branch
fork="https://github.com/$username/tidb"
git fetch $fork $branch:$local_branch
git checkout $local_branch

error: pathspec 'checkout-pr-branch.sh' did not match any file(s) known to git


Add baselib file

Add baselib file

# Shell functions for the hfm module.
#/ usage: source RERUN_MODULE_DIR/lib/baselib.sh command
#
# Author: Ines Neubach <ines.neubach@idn.astzweig.de>
#

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


Adding hack/sync-project-board.sh (#241)

#!/bin/bash
set -e
set -u
set -o pipefail

GH_ORG=${GH_ORG:-'kubernetes'}
PROJECT_NUMBER=${PROJECT_NUMBER:-'82'}

echo "GH_ORG=${GH_ORG}"

# Get project ID
project_id="$(gh api graphql -f query='
    query($org: String!, $number: Int!) {
        organization(login: $org) {
            projectV2(number: $number) {
                id
            }
        }
    }' -f org=${GH_ORG} -F number=${PROJECT_NUMBER} --jq '.data.organization.projectV2.id')"
echo "project id: ${project_id}"

# Get list of repos in the org
repos_json="$(gh api graphql --paginate -f query='
    query($org: String!, $endCursor: String) {
        viewer {
            organization(login: $org) {
                repositories(first:100, after: $endCursor) {
                    nodes {
                        name
                    }
                    pageInfo {
                        hasNextPage
                        endCursor
                    }
                }
            }
        }
    }' -f org=${GH_ORG})"

repos="$(jq ".data.viewer.organization.repositories.nodes[].name" <<< "$repos_json" |  tr -d '"' )"

for repo in $repos
do
    echo "Looking for issues in ${GH_ORG}/${repo}"

    # TODO: paginate this query
    issues_json="$(gh api graphql -f query='
        query($org: String!, $repo: String!) {
            repository(owner: $org, name: $repo) {
                issues(last: 100, labels: ["sig/Windows"], states: OPEN) {
                    totalCount
                    nodes {
                        id
                        number
                        title
                    }
                }
            }
        }' -f org=${GH_ORG} -f repo=${repo})"

    num_issues=$(jq ".data.repository.issues.nodes | length" <<< "$issues_json")
    echo "  found ${num_issues} in repo"

    if [ $num_issues -gt 0 ]; then
        range=$((num_issues - 1))
        for i in $(seq 0 $range)
        do
            issue_id=$(jq ".data.repository.issues.nodes[$i].id" <<< "$issues_json")
            issue_title=$(jq ".data.repository.issues.nodes[$i].title" <<< "$issues_json")
            issue_number=$(jq ".data.repository.issues.nodes[$i].number" <<< "$issues_json")
            echo "    adding ${issue_number} - ${issue_title}"

            gh api graphql -f query='
                mutation($project:ID!, $issue:ID!) {
                    addProjectV2ItemById(input: {projectId: $project, contentId: $issue}) {
                        item {
                            id
                        }
                    }
                }' -f project=${project_id} -f issue="${issue_id}" --jq .data.addProjectV2ItemById.item.id > /dev/null
        done
    fi
done

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


endorsed dirs, gc datestamps, utc timezone

export HTTP_PORT=8080
export SHUTDOWN_PORT=$(($HTTP_PORT+1))
export HTTPS_PORT=$(($HTTP_PORT+2))
export AJP_PORT=$(($HTTP_PORT+3))
export JMX_PORT=$(($HTTP_PORT+4))
export JPDA_PORT=$(($HTTP_PORT+5))

error: pathspec 'tomcat-8080/bin/appenv.sh' did not match any file(s) known to git


Script to simplify updating Google.Events packages

#!/bin/sh

if [[ $# -ne 1 ]]
then
  script=$(basename -- "$0")
  echo "Usage: $script version"
  echo "e.g. $script 1.2.0"
  exit 1
fi

for proj in $(find . -name '*proj')
do
  sed -i -e "s/Include=\"Google.Events\" Version=\".*\"/Include=\"Google.Events\" Version=\"$1\"/g" $proj
  sed -i -e "s/Include=\"Google.Events.Protobuf\" Version=\".*\"/Include=\"Google.Events.Protobuf\" Version=\"$1\"/g" $proj
  sed -i -e "s/Include=\"Google.Events.SystemTextJson\" Version=\".*\"/Include=\"Google.Events.SystemTextJson\" Version=\"$1\"/g" $proj
done

error: pathspec 'functions/update-google-events.sh' did not match any file(s) known to git


Initial commit.

Initial commit.

#!/bin/bash

sudo apt install python3 curl
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py --user
rm get-pip.py
pip install virtualenv --user


wThis file will run and insert temperature records in database. Steps: sudo crontab -e -u usr, '* * * * * usr /absolute/path/temperature.sh', save

#!/bin/bash

cpuTemp0=$(cat /sys/class/thermal/thermal_zone0/temp)
cpuTemp1=$(($cpuTemp0/1000))
cpuTemp2=$(($cpuTemp0/100))
cpuTempM=$(($cpuTemp2 % $cpuTemp1))

url=http://192.168.1.16:3030/temperature/save
reqSend=temperature"="$cpuTemp1.$cpuTempM

echo $url
echo $reqSend

curl -X POST --data $reqSend $url

echo CPU temp"="$cpuTemp1"."$cpuTempM"'C"

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


Added script for publishing a release from one GCE repository to another.

This intended to migrate from a build/test environment to a release environment.

#!/bin/bash
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by 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.

# Publishes a spinnaker release from one project into another project.
# The release consists of a GCE image and possibly a directory containing
# the artifacts for consumption without the image (e.g. to deploy somewhere
# other than GCE or without the release image).
#
# Sample usage:
#   ./publish_gce_release.sh --original_image $ORIGINAL_IMAGE --original_project $ORIGINAL_PROJECT --publish_image $PUBLISH_IMAGE --publish_project $PUBLISH_PROJECT --original_repo $ORIGINAL_ARTIFACT_REPO_PATH --publish_repo $PUBLISH_ARTIFACT_REPO_PATH
#

set -e
set -u

ORIGINAL_ARTIFACT_REPO_PATH=${ORIGINAL_ARTIFACT_REPO_PATH:-""}
ORIGINAL_IMAGE=${ORIGINAL_IMAGE:-""}
ORIGINAL_PROJECT_ID=${ORIGINAL_PROJECT_ID:-$(gcloud config list  \
                                      | grep "project = " \
                                      | sed 's/project = //g')}

PUBLISH_ARTIFACT_REPO_PATH=${PUBLISH_ARTIFACT_REPO_PATH:-""}
PUBLISH_IMAGE=${PUBLISH_PROJECT_ID:-""}
PUBLISH_PROJECT_ID=${PUBLISH_PROJECT_ID:-""}
ZONE=${ZONE:-"us-central1-c"}

function die_if_empty() {
  if [[ "$1" == "" ]]; then
    >&2 echo "ERROR: Missing required argument $2."
    exit -1
  fi
}

function validate_args() {
  die_if_empty "$PUBLISH_IMAGE" "--publish_image"
  die_if_empty "$PUBLISH_PROJECT_ID" "--publish_project_id"
  die_if_empty "$ORIGINAL_IMAGE" "--original_image"
  die_if_empty "$ORIGINAL_PROJECT_ID" "--original_project_id"
  die_if_empty "$ZONE" "--zone"

  if [[ "$PUBLISH_ARTIFACT_REPO_PATH" && ! "$ORIGINAL_ARTIFACT_REPO_PATH" ]] \
      || [[ ! "$PUBLISH_ARTIFACT_REPO_PATH" \
           && "$ORIGINAL_ARTIFACT_REPO_PATH" ]]; then
      >&2 echo "Either both --publish_repo and --original_repo" \
               "or neither should be provided."
      exit -1
  fi
  if [[ "$ORIGINAL_ARTIFACT_REPO_PATH" ]]; then
    if [[ ! -f "$ORIGINAL_ARTIFACT_REPO_PATH" ]] \
       && ! gsutil ls "$ORIGINAL_ARTIFACT_REPO_PATH" >& /dev/null; then
       >&2 echo "Cannot access $ORIGINAL_ARTIFACT_REPO_PATH"
    fi
  fi
}

function process_args() {
  while [[ $# > 0 ]]
  do
      local key="$1"
      shift
      case $key in
         --publish_repo)
           PUBLISH_ARTIFACT_REPO_PATH="$1"
           shift
           ;;
         --publish_image)
           PUBLISH_IMAGE="$1"
           shift
           ;;
         --publish_project)
           PUBLISH_PROJECT_ID="$1"
           shift
           ;;
         --original_repo)
           ORIGINAL_ARTIFACT_REPO_PATH="$1"
           shift
           ;;
         --original_image)
           ORIGINAL_IMAGE="$1"
           shift
           ;;
         --original_project)
           ORIGINAL_PROJECT_ID="$1"
           shift
           ;;
         --zone)
           ZONE="$1"
           shift
           ;;
         *)
           echo "ERROR: Unknown argument '$1'"
           exit -1
      esac
  done
}

function copy_artifact_repository() {
  from="$1"
  to="$2"

  if [[ "$to" =~ gs://.* ]]; then
    # Ensure GCS bucket exists
    gs_path=${to#gs://}
    gs_bucket=$(echo "$gs_path" | sed 's/\([^\/]*\)\/.*/\1/g')
    gsutil mb -p $PUBLISH_PROJECT_ID "gs://$gs_bucket" >& /dev/null  || true
  else
    # Ensure target directory exists
    mkdir -p $(dirname $to)
    echo "DIR $to"
  fi

  gsutil -q -m cp -R "$ORIGINAL_ARTIFACT_REPO_PATH/*" \
      "$PUBLISH_ARTIFACT_REPO_PATH"  > /dev/null
}

process_args "$@"
validate_args

echo "Creating disk"
gcloud compute disks create "$PUBLISH_IMAGE" \
    --project "$PUBLISH_PROJECT_ID" \
    --zone "$ZONE" \
    --image-project "$ORIGINAL_PROJECT_ID" \
    --image "$ORIGINAL_IMAGE"

echo "Publishing image"
gcloud compute images create "$PUBLISH_IMAGE" \
    --project "$PUBLISH_PROJECT_ID" \
    --source-disk-zone "$ZONE" \
    --source-disk "$PUBLISH_IMAGE"

echo "Deleting disk"
gcloud compute disks delete "$PUBLISH_IMAGE" \
    --project "$PUBLISH_PROJECT_ID" \
    --zone "$ZONE" \
    --quiet

if [[ "$PUBLISH_ARTIFACT_REPO_PATH" ]]; then
  echo "Copying artifact repository"
  copy_artifact_repository \
      "$ORIGINAL_ARTIFACT_REPO_PATH" "$PUBLISH_ARTIFACT_REPO_PATH"
fi

echo "Published $PUBLISH_IMAGE to $PUBLISH_PROJECT_ID."

error: pathspec 'google/dev/publish_gce_release.sh' did not match any file(s) known to git


upload

upload

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/dengxiangyu768/dengxytools.git/'


1st bootstap

1st bootstap

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


really add the build script

really add the build script

Signed-off-by: Sébastien Boisvert <1a4d2e25eb5ba040b6ad5779a730a1a8a0ff9bc5@anl.gov>

#!/bin/bash

CFLAGS="-O3 -march=x86-64 -g -std=c99 -Wall -pedantic -I. -Werror"

make clean
make mock CFLAGS="$CFLAGS"

echo "TESTS"
make test CFLAGS="$CFLAGS"

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


Add kokkos commands to cmake-travis-mpi.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/nschloe/seacas.git/'


:sparkles: Add mac.zsh with readlink

:sparkles: Add mac.zsh with readlink

# `brew install coreutils` first.
alias readlink=greadlink

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


angstrom feed builder: add pimlico

angstrom feed builder: add pimlico

#!/bin/bash

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

DO_UCLIBC=0

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

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

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

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

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

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

do_report_success() {

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

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

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

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

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

for machine in simpad om-gta01 c7x0 ixp4xxbe nokia800 htckaiser beagleboard dht-walnut efika qemux86
do
        BUILD_MACHINE=$machine
        BUILD_CLEAN="opkg-native qmake-native qmake2-native qt-x11-free python python-native python-pygtk gnome-icon-theme"
        BUILD_TARGETS=" \
                      abiword \
                      aircrack-ng \
                      angstrom-zeroconf-audio \
                      apache2 \
                      artoolkit \
                      asterisk \
                      atomic \
                      autoconf \
                      automake \
                      binutils \
                      bison \
                      bluez-gnome \
                      bluez-hcidump \
                      boa \
                      camera-assistant \
                      checkers \
                      cherokee \
                      claws-mail \
                      contacts \
                      cvs \
                      dates \
                      distcc \
                      dsniff \
                      duke3d \
                      e-uae \
                      e-wm \
                      ekiga \
                      empathy \
                      epdfview \
                      epiphany \
                      evince \
                      exo \
                      fakeroot \
                      fennec \
                      flame \
                      ffmpeg \
                      fftw \
                      fftwf \
                      fftwl \
                      findutils \
                      firefox \
                      fish \
                      flex \
                      flite \
                      frameworkd \
                      freenote \
                      froot \
                      gcc \
                      gdal \
                      gdb \
                      gdbserver \
                      gdm \
                      geda \
                      geda-docs \
                      geda-examples \
                      geda-gattrib \
                      geda-gnetlist \
                      geda-gschem \
                      geda-gsymcheck \
                      geda-symbols \
                      geda-utils \
                      gimp \
                      glider \
                      gmp \
                      gnome-games \
                      gnome-mplayer \
                      gnome-panel \
                      gnome-system-monitor \
                      gnumeric \
                      gnuplot \
                      gnuradio \
                      gpe-bluetooth \
                      gpe-gallery \
                      gpe-login \
                      gpe-mini-browser \
                      gpe-mini-browser2 \
                      gpe-scap \
                      gpe-sketchbook \
                      git \
                      gperf \
                      gphoto2 \
                      gpsdrive \
                      gqview \
                      gsm0710muxd \
                      gspcav1 \
                      gtk+ \
                      gzip \
                      hal \
                      hexatrolic \
                      i2c-tools \
                      iaimaster \
                      icebloxx \
                      imagemagick \
                      inkwp \
                      ioquake3 \
                      ipaq-sleep \
                      iperf \
                      iptables \
                      irssi \
                      jamvm \
                      kismet \
                      konqueror-embedded \
                      labyrinth \
                      leafpad \
                      lighttpd \
                      links-x11 \
                      m4 \
                      madplay \
                      mahjongg \
                      make \
                      maki \
                      mc \
                      mediatomb \
                      meta-nas-server \
                      meta-toolchain \
                      metacity \
                      midori \
                      mileage \
                      mono \
                      motion \
                      mousepad \
                      mpc \
                      mpd \
                      mpfr \
                      mpg123 \
                      mplayer \
                      mtd-utils \
                      mutt \
                      mythtv \
                      nautilus \
                      navit \
                      netsurf \
                      news \
                      nmap \
                      nmm \
                      notecase \
                      numptyphysics \
                      octave \
                      opencv \
                      opencv-samples \
                      openmoko-browser2 \
                      openredalert \
                      openvpn \
                      opie-notes \
                      orage \
                      palantir \
                      pairs \
                      pciutils \
                      pdamaze \
                      perl \
                      pidgin \
                      pine \
                      pipeman \
                      pkgconfig \
                      places \
                      pocketcellar \
                      povray \
                      prboom \
                      prelink \
                      pushover \
                      python \
                      python-pybluez \
                      qfish2 \
                      qmatrix \
                      qpe-nmap \
                      qt-x11-free \
                      qt4-x11-free \
                      quake2 \
                      quasar \
                      quetoo \
                      rain \
                      rdesktop \
                      read-edid \
                      resistorui \
                      roadmap-gtk2 \
                      rtorrent \
                      ruby \
                      samba \
                      screen \
                      scummvm \
                      sdlquake \
                      sensors-applet \
                      setserial \
                      shisensho \
                      slcalc \
                      sliderulez \
                      sokoban \
                      squeakvm \
                      stalonetray \
                      strace \
                      subversion \
                      sugar \
                      sylpheed \
                      task-gpe-pim \
                      task-openmoko-feed \
                      task-openmoko-games \
                      task-opie-apps \
                      task-opie-games \
                      task-proper-tools \
                      tasks \
                      texinfo \
                      thttpd \
                      thunar \
                      tightvnc \
                      timesleuth \
                      tofrodos \
                      totem \
                      tron \
                      tzdata \
                      ubahnnav \
                      ufraw \
                      usbutils \
                      usbview \
                      ushare \
                      viking \
                      vlc \
                      vpnc \
                      wifi-radar \
                      win4 \
                      wpa-gui \
                      x11vnc \
                      xf86-input-evdev \
                      xf86-input-keyboard \
                      xf86-input-mouse \
                      xf86-input-tslib \
                      xf86-video-ati \
                      xf86-video-fbdev \
                      xf86-video-vesa \
                      xfce-mcs-manager
                      xfce-mcs-manager \
                      xfce-mcs-plugins \
                      xfce-terminal \
                      xfce-utils \
                      xfce4-appfinder \
                      xfce4-dev-tools \
                      xfce4-icon-theme \
                      xfce4-mixer \
                      xfce4-panel \
                      xfce4-session \
                      xfdesktop \
                      xfprint \
                      xfwm4 \
                      xfwm4-themes \
                      xmms \
                      xserver-kdrive \
                      xserver-xorg \
                      zauralign \
                      zddice \
                      zgscore \
                      zhone \
                      ziq \
                      zlapspeed \
                      zrev7 \
                      zsubhunt \
                      ztappy \
                      zuc \
                      zudoku \
                      "
        do_build
done

# machine packages (machine specific (sub)packages)

for machine in beagleboard omap3evm neuros-osd2 efika dht-walnut palmt650 omap5912osk ixp4xxle ixp4xxbe c7x0 poodle tosa akita spitz collie simpad om-gta01 om-gta02 a780 at91sam9263ek qemuarm h2200 h3900 h4000 hx4700 nokia800 dns323 mv2120 kuropro lspro tsx09 ts409 qemux86
do
        BUILD_MACHINE=$machine
            BUILD_CLEAN="opkg-native qmake-native qmake2-native qt-x11-free python python-native python-pygtk gnome-icon-theme"
        BUILD_TARGETS="task-base task-boot \
                       task-opie task-opie-all \
                       task-openmoko-base task-openmoko-debug task-openmoko-examples task-openmoko-linux task-openmoko-native-sdk task-openmoko-net task-openmoko-phone task-openmoko-pim task-openmoko-ui \
                       angstrom-x11-base-depends angstrom-gpe-task-settings \
                       xserver-xorg-conf \
                       "

        do_build
done

#!/bin/bash

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

DO_UCLIBC=0

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

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

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

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

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

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

do_report_success() {

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

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

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

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

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

for machine in simpad om-gta01 c7x0 ixp4xxbe nokia800 htckaiser beagleboard dht-walnut efika qemux86
do
        BUILD_MACHINE=$machine
        BUILD_CLEAN="opkg-native qmake-native qmake2-native qt-x11-free python python-native python-pygtk gnome-icon-theme"
        BUILD_TARGETS=" \
                      abiword \
                      aircrack-ng \
                      angstrom-zeroconf-audio \
                      apache2 \
                      artoolkit \
                      asterisk \
                      atomic \
                      autoconf \
                      automake \
                      binutils \
                      bison \
                      bluez-gnome \
                      bluez-hcidump \
                      boa \
                      camera-assistant \
                      checkers \
                      cherokee \
                      claws-mail \
                      cvs \
                      distcc \
                      dsniff \
                      duke3d \
                      e-uae \
                      e-wm \
                      ekiga \
                      empathy \
                      epdfview \
                      epiphany \
                      evince \
                      exo \
                      fakeroot \
                      fennec \
                      flame \
                      ffmpeg \
                      fftw \
                      fftwf \
                      fftwl \
                      findutils \
                      firefox \
                      fish \
                      flex \
                      flite \
                      frameworkd \
                      freenote \
                      froot \
                      gcc \
                      gdal \
                      gdb \
                      gdbserver \
                      gdm \
                      geda \
                      geda-docs \
                      geda-examples \
                      geda-gattrib \
                      geda-gnetlist \
                      geda-gschem \
                      geda-gsymcheck \
                      geda-symbols \
                      geda-utils \
                      gimp \
                      glider \
                      gmp \
                      gnome-games \
                      gnome-mplayer \
                      gnome-panel \
                      gnome-system-monitor \
                      gnumeric \
                      gnuplot \
                      gnuradio \
                      gpe-bluetooth \
                      gpe-gallery \
                      gpe-login \
                      gpe-mini-browser \
                      gpe-mini-browser2 \
                      gpe-scap \
                      gpe-sketchbook \
                      git \
                      gperf \
                      gphoto2 \
                      gpsdrive \
                      gqview \
                      gsm0710muxd \
                      gspcav1 \
                      gtk+ \
                      gzip \
                      hal \
                      hexatrolic \
                      i2c-tools \
                      iaimaster \
                      icebloxx \
                      imagemagick \
                      inkwp \
                      ioquake3 \
                      ipaq-sleep \
                      iperf \
                      iptables \
                      irssi \
                      jamvm \
                      kismet \
                      konqueror-embedded \
                      labyrinth \
                      leafpad \
                      lighttpd \
                      links-x11 \
                      m4 \
                      madplay \
                      mahjongg \
                      make \
                      maki \
                      mc \
                      mediatomb \
                      meta-nas-server \
                      meta-toolchain \
                      metacity \
                      midori \
                      mileage \
                      mono \
                      motion \
                      mousepad \
                      mpc \
                      mpd \
                      mpfr \
                      mpg123 \
                      mplayer \
                      mtd-utils \
                      mutt \
                      mythtv \
                      nautilus \
                      navit \
                      netsurf \
                      news \
                      nmap \
                      nmm \
                      notecase \
                      numptyphysics \
                      octave \
                      opencv \
                      opencv-samples \
                      openmoko-browser2 \
                      openredalert \
                      openvpn \
                      opie-notes \
                      orage \
                      palantir \
                      pairs \
                      pciutils \
                      pdamaze \
                      perl \
                      pidgin \
                      pine \
                      pipeman \
                      pkgconfig \
                      places \
                      pocketcellar \
                      povray \
                      prboom \
                      prelink \
                      pushover \
                      python \
                      python-pybluez \
                      qfish2 \
                      qmatrix \
                      qpe-nmap \
                      qt-x11-free \
                      qt4-x11-free \
                      quake2 \
                      quasar \
                      quetoo \
                      rain \
                      rdesktop \
                      read-edid \
                      resistorui \
                      roadmap-gtk2 \
                      rtorrent \
                      ruby \
                      samba \
                      screen \
                      scummvm \
                      sdlquake \
                      sensors-applet \
                      setserial \
                      shisensho \
                      slcalc \
                      sliderulez \
                      sokoban \
                      squeakvm \
                      stalonetray \
                      strace \
                      subversion \
                      sugar \
                      sylpheed \
                      task-gpe-pim \
                      task-openmoko-feed \
                      task-openmoko-games \
                      task-opie-apps \
                      task-opie-games \
                      task-proper-tools \
                      texinfo \
                      thttpd \
                      thunar \
                      tightvnc \
                      timesleuth \
                      tofrodos \
                      totem \
                      tron \
                      tzdata \
                      ubahnnav \
                      ufraw \
                      usbutils \
                      usbview \
                      ushare \
                      viking \
                      vlc \
                      vpnc \
                      wifi-radar \
                      win4 \
                      wpa-gui \
                      x11vnc \
                      xf86-input-evdev \
                      xf86-input-keyboard \
                      xf86-input-mouse \
                      xf86-input-tslib \
                      xf86-video-ati \
                      xf86-video-fbdev \
                      xf86-video-vesa \
                      xfce-mcs-manager
                      xfce-mcs-manager \
                      xfce-mcs-plugins \
                      xfce-terminal \
                      xfce-utils \
                      xfce4-appfinder \
                      xfce4-dev-tools \
                      xfce4-icon-theme \
                      xfce4-mixer \
                      xfce4-panel \
                      xfce4-session \
                      xfdesktop \
                      xfprint \
                      xfwm4 \
                      xfwm4-themes \
                      xmms \
                      xserver-kdrive \
                      xserver-xorg \
                      zauralign \
                      zddice \
                      zgscore \
                      zhone \
                      ziq \
                      zlapspeed \
                      zrev7 \
                      zsubhunt \
                      ztappy \
                      zuc \
                      zudoku \
                      "
        do_build
done

# machine packages (machine specific (sub)packages)

for machine in beagleboard omap3evm neuros-osd2 efika dht-walnut palmt650 omap5912osk ixp4xxle ixp4xxbe c7x0 poodle tosa akita spitz collie simpad om-gta01 om-gta02 a780 at91sam9263ek qemuarm h2200 h3900 h4000 hx4700 nokia800 dns323 mv2120 kuropro lspro tsx09 ts409 qemux86
do
        BUILD_MACHINE=$machine
            BUILD_CLEAN="opkg-native qmake-native qmake2-native qt-x11-free python python-native python-pygtk gnome-icon-theme"
        BUILD_TARGETS="task-base task-boot \
                       task-opie task-opie-all \
                       task-openmoko-base task-openmoko-debug task-openmoko-examples task-openmoko-linux task-openmoko-native-sdk task-openmoko-net task-openmoko-phone task-openmoko-pim task-openmoko-ui \
                       angstrom-x11-base-depends angstrom-gpe-task-settings \
                       xserver-xorg-conf \
                       "

        do_build
done


SugarEPS: enable apache mod_rewrite by default

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/skymeyer/syspreps.git/'


sigchldtest.sh add

sigchldtest.sh add

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/NorihiroNakaoka/univ.git/'


Update mongodb installer.

Update mongodb installer.

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/ungana/vagrant-scripts.git/'


update compile script

update compile 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/bmesuere/uni-test.git/'


[Author: dmaclach]

[Author: dmaclach]

Turn off leak testing on platforms that don't support it well.
Added new system leak to the exclusion list.

R=thomasvl
DELTA=4  (3 added, 0 deleted, 1 changed)

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/qokelate/google-toolbox-for-mac.git/'


Added install script from @snemetz

Added install script from @snemetz

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/kamigerami/foreman-vagrant.git/'


add compile-tun2sock.sh

add compile-tun2sock.sh

#!/bin/bash
#
# Compiles tun2socks for Linux.
# Intended as a convenience if you don't want to deal with CMake.

# Input environment vars:
#   SRCDIR - BadVPN source code
#   CC - compiler
#   CFLAGS - compiler compile flags
#   LDFLAGS - compiler link flags
#   ENDIAN - "little" or "big"
#   KERNEL - "2.6" or "2.4", default "2.6"
#
# Puts object files and the executable in the working directory.
#

if [[ -z $SRCDIR ]] || [[ ! -e $SRCDIR/CMakeLists.txt ]]; then
    echo "SRCDIR is wrong"
    exit 1
fi

if ! "${CC}" --version &>/dev/null; then
    echo "CC is wrong"
    exit 1
fi

if [[ $ENDIAN != "little" ]] && [[ $ENDIAN != "big" ]]; then
    echo "ENDIAN is wrong"
    exit 1
fi

if [[ -z $KERNEL ]]; then
    KERNEL="2.6"
elif [[ $KERNEL != "2.6" ]] && [[ $KERNEL != "2.4" ]]; then
    echo "KERNEL is wrong"
    exit 1
fi

CFLAGS="${CFLAGS} -std=gnu99"
INCLUDES=( "-I${SRCDIR}" "-I${SRCDIR}/lwip/src/include/ipv4" "-I${SRCDIR}/lwip/src/include" "-I${SRCDIR}/lwip/custom" )
DEFS=( -DBADVPN_THREADWORK_USE_PTHREAD -DBADVPN_LINUX -D_GNU_SOURCE )

[[ $KERNEL = "2.4" ]] && DEFS=( "${DEFS[@]}" -DBADVPN_USE_SELFPIPE -DBADVPN_USE_POLL ) || DEFS=( "${DEFS[@]}" -DBADVPN_USE_SIGNALFD -DBADVPN_USE_EPOLL )

[[ $ENDIAN = "little" ]] && DEFS=( "${DEFS[@]}" -DBADVPN_LITTLE_ENDIAN ) || DEFS=( "${DEFS[@]}" -DBADVPN_BIG_ENDIAN )

SOURCES="
base/BLog_syslog.c
system/BReactor.c
system/BSignal.c
system/BConnection_unix.c
system/BTime.c
system/BUnixSignal.c
system/BNetwork.c
flow/StreamRecvInterface.c
flow/PacketRecvInterface.c
flow/PacketPassInterface.c
flow/StreamPassInterface.c
flow/SinglePacketBuffer.c
flow/BufferWriter.c
flow/PacketBuffer.c
flow/PacketStreamSender.c
flow/PacketPassConnector.c
flow/PacketProtoFlow.c
flow/PacketPassFairQueue.c
flow/PacketProtoEncoder.c
flow/PacketProtoDecoder.c
socksclient/BSocksClient.c
tuntap/BTap.c
lwip/src/core/timers.c
lwip/src/core/udp.c
lwip/src/core/memp.c
lwip/src/core/init.c
lwip/src/core/pbuf.c
lwip/src/core/tcp.c
lwip/src/core/tcp_out.c
lwip/src/core/netif.c
lwip/src/core/def.c
lwip/src/core/mem.c
lwip/src/core/tcp_in.c
lwip/src/core/stats.c
lwip/src/core/ipv4/icmp.c
lwip/src/core/ipv4/ip_addr.c
lwip/src/core/ipv4/ip_frag.c
lwip/src/core/ipv4/inet_chksum.c
lwip/src/core/ipv4/ip.c
lwip/src/core/ipv4/inet.c
lwip/custom/sys.c
tun2socks/tun2socks.c
base/DebugObject.c
base/BLog.c
base/BPending.c
flowextra/PacketPassInactivityMonitor.c
tun2socks/SocksUdpGwClient.c
udpgw_client/UdpGwClient.c
"

set -e
set -x

OBJS=()
for f in $SOURCES; do
    obj=$(basename "${f}").o
    "${CC}" -c ${CFLAGS} "${INCLUDES[@]}" "${DEFS[@]}" "${SRCDIR}/${f}" -o "${obj}"
    OBJS=( "${OBJS[@]}" "${obj}" )
done

"${CC}" ${LDFLAGS} "${OBJS[@]}" -o tun2socks -lrt

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


Removed redundant code from Vagrant setup 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/benfairless/puppet-configuration.git/'


[electron] Adds host argument to dev 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/bassjansson/vera.git/'


use number of procs as the number of jobs for compilation

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/seawolf42/dockerpy.git/'


adding install script

adding install script

#!/bin/bash

# test dependencies
function check_installed() {
        which $1
        if [ $? -ne 0 ]; then
                echo "## You must have ${1} installed and in the PATH to run Pixelated-User-Agent"
                echo "## exiting..."
                exit 1
        fi
}

for dependency in node npm ruby bundle virtualenv; do
        check_installed $dependency
done

# clone repo
git clone https://github.com/pixelated-project/pixelated-user-agent

# install web-ui dependencies
cd pixelated-user-agent/web-ui
npm install
node_modules/bower/bin/bower install
bundle install

# install service dependencies
cd ../service
virtualenv .virtualenv
source .virtualenv/bin/activate
easy_install leap.soledad.common
pip install -r requirements.txt

# run service
./go

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


Create run.sh

Create run.sh

java --module-path out \
--module hellomodules/com.kata.hellomodules.HelloModules

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