add helper script to locally lint chart

add helper script to locally lint chart

[ci skip]

#!/bin/bash

HELM_CHARTS=$(cd $( dirname "${BASH_SOURCE[0]}" )/..; echo $PWD)

if [ ! -f "$HELM_CHARTS/$1/Chart.yaml" ]; then
  echo usage: $0 CHART_DIRECTORY
  exit 1
fi

docker run --rm -v $HELM_CHARTS:/charts -w /charts sapcc/chart-testing:v2.3.3-sapcc  ct lint \
  --chart-yaml-schema ci/chart_schema.yaml \
  --lint-conf ci/lintconf.yaml \
  --config ci/config.yaml --charts $1

error: pathspec 'ci/lint-chart.sh' did not match any file(s) known to git


tmux plugin manager + plugins installer

tmux plugin manager + plugins installer

Feature: #4

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


Add simple local deployment script (for testing)

#!/bin/bash

NODES_PER_MACHINE=2

# list of IPs
IP_ADDRESSES="127.0.0.1"

DATADIR=ethereum
TMPDIR=$(mktemp -d --tmpdir=.)
GETH="geth --datadir ${DATADIR}"

GENESIS_FILE=${DATADIR}/genesis.json
SCENARIO_FILE=${DATADIR}/scenario.json
GETH_COMMANDS_FILE=${DATADIR}/geth_commands.json
STATE_FILE=${TMPDIR}/state_dump.json

mkdir -p ${DATADIR} ${TMPDIR}

./config_builder.py build_scenario ${NODES_PER_MACHINE} ${IP_ADDRESSES} > ${SCENARIO_FILE}

./config_builder.py geth_commands ${DATADIR} ${IP_ADDRESSES} > ${GETH_COMMANDS_FILE}

sed 's/^.*\(\[\"enode:.*\]\),.*$/\1/g' ${GETH_COMMANDS_FILE} > ${DATADIR}/static-nodes.json

mkdir -p ${DATADIR}/keystore
./config_builder.py account_file > ${DATADIR}/keystore/default.json

./config_builder.py full_genesis ${NODES_PER_MACHINE} ${IP_ADDRESSES} --scenario ${SCENARIO_FILE} > ${GENESIS_FILE}

sed 's/^.*\"raidenFlags\": \"\([^"]*\).*$/\1/g' ${GENESIS_FILE} > ${DATADIR}/raiden_flags.txt

# for each node add a private key (will be iterated over to pass to raiden)
./config_builder.py accounts ${NODES_PER_MACHINE} ${IP_ADDRESSES} > ${DATADIR}/raiden_nodes.json

geth --datadir ${DATADIR} init ${GENESIS_FILE}

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


vbguest plugin

vbguest plugin

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/joshfng/railsbox-packer.git/'


Add a build script

Add a build script

#! /bin/bash

cd cmd/backr
gox -osarch="linux/arm linux/amd64" -output="backr_{{.OS}}_{{.Arch}}"

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


Added build.sh to fix problem in gliderlab image

#!/bin/sh
set -e
apk add --update go build-base git mercurial ca-certificates
mkdir -p /go/src/github.com/gliderlabs
cp -r /src /go/src/github.com/gliderlabs/logspout
cd /go/src/github.com/gliderlabs/logspout
export GOPATH=/go
go get github.com/Masterminds/glide && $GOPATH/bin/glide install
go build -ldflags "-X main.Version=$1" -o /bin/logspout
apk del go git mercurial build-base
rm -rf /go /var/cache/apk/* /root/.glide

# backwards compatibility
ln -fs /tmp/docker.sock /var/run/docker.sock


add build script

add build script

 #!/usr/bin/env bash

 cd /srv/www/genie && npm install && bower install && gulp build && sudo service genie restart


Adding build shell script t ocall from pre_hook


build script

build script

ember build --environment=production --output-path=/usr/share/nginx/selby.io


Remove the create-tarball.sh script.

Remove the create-tarball.sh script.

We don't need this anymore, it was there to handle the milestone code.

Change-Id: Ie9b75fbeebd568d6d6fd47510a5083f26f214281
Reviewed-on: https://review.openstack.org/20660
Reviewed-by: Chuck Short <753a8074f04ffd62a8fff7516e3ae689be8e35ad@canonical.com>
Reviewed-by: James E. Blair <e81a02a9d6405977f63a769d9f6ec8ed9d924325@inaugust.com>
Reviewed-by: Jeremy Stanley <98883b97e35b7bb1ac282bb863f2e9d917db0454@yuggoth.org>
Approved: Monty Taylor <37c07a49ee3d5191376d758eb1d8298b34456b8e@inaugust.com>
Tested-by: Jenkins

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/open-switch/infra_puppet-jenkins.git/'


Add build script

Add build script

#!/usr/bin/env bash

set -e

[[ -n "${DEBUG}" ]] && set -x

# global variables
SCRIPT_ARGS="$*"
SCRIPT_NAME="$0"
SCRIPT_NAME="${SCRIPT_NAME#\./}"
SCRIPT_NAME="${SCRIPT_NAME##/*/}"
SCRIPT_BASE_DIR="$(cd "$( dirname "$0")" && pwd )"

set -u

build_image() {
    local -r imagedirectory="${1}"; shift
    local -r imagename="${1}"; shift

    pushd "${imagedirectory}"
    sudo docker build \
        --rm \
        -t "${imagename}" . 2>&1 | \
        tee docker_build_${imagedirectory}.log
    popd
}

docker_cleanup() {
    set +e
    sudo docker rm -f $(sudo docker ps -a -q) 2>&1
    sudo docker rmi $(sudo docker images -q) 2>&1
    sudo docker volume rm $(sudo docker volume ls -q) 2>&1
    sudo docker network rm $(sudo docker network ls -q) 2>&1
    set -e
}

docker_cleanup
build_image "base" "akaer/base"
build_image "Python2" "akaer/python"
build_image "Python3" "akaer/python3"
build_image "govc-builder" "akaer/govc-builder"
build_image "govc" "akaer/govc"
build_image "shellcheck" "akaer/shellcheck"
build_image "ssh-audit" "akaer/ssh-audit"
build_image "OpenDJ" "akaer/opendj"
build_image "Dokuwiki" "akaer/dokuwiki"
build_image "ansible" "akaer/ansible"
build_image "Openjre8" "akaer/openjre8"
#build_image "jupyter" "akaer/jupyter"


create build.sh

create build.sh

#!/bin/bash

rm -rf build
mkdir build
$(npm bin)/tsc --outDir build
cp -r build/src build/package
cp package.json build/package/
cp README.md build/package


Copy from eclipse/che-dockerfiles.

Copy from eclipse/che-dockerfiles.

#!/bin/bash
# From https://github.com/eclipse/che-dockerfiles.
# Licensed under EPL-1.0.

PRIVATE_REPO=${PRIVATE_REPO:-}

images=$(for i in $(find recipes -maxdepth 3 -mindepth 1 -type f -not -path '*/\.*' -name Dockerfile -print ); do a=${i#recipes/}; b=${a%/Dockerfile}; case $b in */*) c=${b/\//:};; *) c=$b:latest;; esac; from=$(grep FROM $i); echo ${from#FROM} eclipse/$c; done | tsort)

external_images=$(echo "$images" | grep -v eclipse/)
eclipse_images=$(echo "$images" | grep eclipse/)

function error() {
  echo $1 > /dev/stderr
  exit 1
}

for image in $external_images; do
    docker pull $image || error "Unable to pull image: $image"
    if [ "x$PRIVATE_REPO" != "x" ]; then
        docker tag $image $PRIVATE_REPO/$image
        docker push $PRIVATE_REPO/$image || error "Unable to push image: $image"
    fi
done

for image in $eclipse_images; do
    a=${image%:latest}
    b=${a#eclipse/}
    d=recipes/${b/:/\/}
    echo $b $d
    docker build -t $image $d || error "Unable to build image: $image"
    if [ "x$PRIVATE_REPO" != "x" ]; then
        docker tag $image $PRIVATE_REPO/$image
        docker push $PRIVATE_REPO/$image || error "Unable to push image: $image"
    else
        docker push $image
    fi
done


Remove version number since we're already trying out 3.19-rc6

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/opentable/otpl-ami-ubuntu.git/'


Add build file

Add build file

#!/bin/sh

docker build -t faas-cli . && \
 docker create --name faas-cli faas-cli && \
 docker cp faas-cli:/root/faas-cli . && \
 docker rm -f faas-cli


add a simple build script. it's not very portable though

# This isn't very portable. It assumes java is installed and yuicompressor
# is in the specified location.
# It also does not error handling.

function minimize() {
    java -jar ../yuicompressor-2.4.8.jar $1 > $2
}

cat src/*.js > build/clippy.js
cp src/clippy.css build/clippy.css
minimize build/clippy.js build/clippy.min.js
minimize build/clippy.css build/clippy.min.css
mkdir -p build/agents
for jsfile in $(ls agents/*/*.js); do
    mkdir -p build/$(dirname $jsfile)
    minimize ${jsfile} build/${jsfile}
done
for mapfile in $(ls agents/*/*.png); do
    mkdir -p build/$(dirname $mapfile)
    cp ${mapfile} build/${mapfile}
done


script to compare existing Amdmts in ND Vs AN's OpenData

#!/bin/bash

cd $(dirname $0)
source ../../bin/db.inc
ANroot="http://www.assemblee-nationale.fr"

echo "Downloading Amendements from OpenData AN..."
rm -f Amendements_XIV.json*
wget -q http://data.assemblee-nationale.fr/static/openData/repository/LOI/amendements_legis/Amendements_XIV.json.zip -O Amendements_XIV.json.zip
unzip Amendements_XIV.json.zip > /dev/null
echo "Extracting list of Amendements from OpenData AN..."
cat Amendements_XIV.json                                    |
  sed -r 's/("documentURI": ")/\n\1/g'                      |
  grep '^"documentURI": "/'"$LEGISLATURE"'/'                |
  sed -r 's|^"documentURI": "([^"]*)".*$|'"$ANroot"'\1|'    |
  sed 's/\.pdf/\.asp/'                                      |
  sort -u > all_amdts_opendataAN.tmp

rm -f Amendements_XIV.json*

echo "Extracting list of Questions from NosDéputés..."
echo 'SELECT source FROM amendement WHERE sort NOT LIKE "Rect%" ORDER BY source'    |
  iconv -t "utf-8"                                                                  |
  mysql $MYSQLID $DBNAME                                                            |
  sed -r 's|(/T?A?[0-9]{4}[A-Z]?/)([0-9]+\.asp)|\1AN/\2|'                           |
  grep -v "cr-cfiab/12-13/c1213068"                                                 |
  grep -v "source"                                                                  |
  sort > all_amdts_nosdeputes.tmp

echo "Analysing diff..."
extra=$(diff all_amdts_opendataAN.tmp all_amdts_nosdeputes.tmp | grep "^>" | wc -l)
if [ $extra -gt 0 ]; then
  echo "- NosDéputés has $extra Amendements not in AN's OpenData yet(?):"
  diff all_amdts_opendataAN.tmp all_amdts_nosdeputes.tmp    |
    grep "^>"                                               |
    sed 's/^> //' > extra_amdmts_ND
    echo 'Full list available in "extra_amdmts_ND"'
  echo
fi

done=0
fail=0
missing=$(diff all_amdts_opendataAN.tmp all_amdts_nosdeputes.tmp | grep "^<" | wc -l)
if [ $missing -gt 0 ]; then
  echo "There are $missing Amendements missing, reloading them:"
  diff all_amdts_opendataAN.tmp all_amdts_nosdeputes.tmp    |
    grep "^<"                                               |
    sed 's/^< //'                                           |
    while read AMurl; do
      AMfile=$(echo "$AMurl" | sed 's|/|_-_|g')
      perl download_one.pl "$AMurl" 2>/dev/null && perl cut_amdmt.pl "html/$AMfile" > "json/$AMfile"
      if [ -s "html/$AMfile" ]; then
        done=$(($done + 1))
      else
        fail=$(($fail + 1))
      fi
    done
  echo
  echo "$fail missing amendements from AN's OpenData could not be found on AN's website"
  echo 'All '"$done"' missing found Amendements reloaded and parsed, run "php symfony load:Amdts" to complete'
fi

rm -f all_amdts_*.tmp

error: pathspec 'batch/amendements/check_missing.sh' did not match any file(s) known to git


added file for cleaning the folders

added file for cleaning the folders

#!/bin/bash

# remove all .pyc files
pyclean .
rm -rf *~

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


Clean *.pyc files on entire project

Clean *.pyc files on entire project

#!/bin/bash

root_path() {
   SOURCE="${BASH_SOURCE[0]}"
   DIR="$( dirname "$SOURCE" )"
   while [ -h "$SOURCE" ]
   do
     SOURCE="$( readlink "$SOURCE" )"
     [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
     DIR="$( cd -P "$( dirname "$SOURCE"  )" && pwd )"
   done
   DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

   echo "$DIR"
}

ROOT_PATH=`root_path`

echo "Cleaning *.pyc in '$ROOT_PATH' and subfolders"
/usr/bin/find "$ROOT_PATH" -name "*.pyc" -delete


add a small script to collect the release artifacts

#!/bin/sh

#
# small script to download the release binaries to store in the dist area
#
# Usage (for default release repo):
# first param is the release verion, second param is optional and a download repository.
# $> ./getrelease.sh 1.1.0
#  or during a VOTE e.g. :
# $> ./getrelease.sh 1.1.0 https://repository.apache.org/content/repositories/orgapachejohnzon-1016/

mkdir -p target/dist/johnzon-$1
cd target/dist/johnzon-$1

if [[ -z $2 ]]; then
  repo_path=https://repository.apache.org/content/groups/public
else
  repo_path=$2
fi

echo "Fetching artifacts from " ${repo_path}
curl -O ${repo_path}/org/apache/johnzon/johnzon/${1}/johnzon-${1}-source-release.zip
curl -O ${repo_path}/org/apache/johnzon/johnzon/${1}/johnzon-${1}-source-release.zip.asc
curl -O ${repo_path}/org/apache/johnzon/johnzon/${1}/johnzon-${1}-source-release.zip.md5
curl -O ${repo_path}/org/apache/johnzon/johnzon/${1}/johnzon-${1}-source-release.zip.sha1

curl -O ${repo_path}/org/apache/johnzon/apache-johnzon/${1}/apache-johnzon-${1}-bin.zip
curl -O ${repo_path}/org/apache/johnzon/apache-johnzon/${1}/apache-johnzon-${1}-bin.zip.asc
curl -O ${repo_path}/org/apache/johnzon/apache-johnzon/${1}/apache-johnzon-${1}-bin.zip.md5
curl -O ${repo_path}/org/apache/johnzon/apache-johnzon/${1}/apache-johnzon-${1}-bin.zip.sha1

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


chore: improve reportCoverage.sh tool

chore: improve reportCoverage.sh tool

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/redcom/aperitive.git/'


ZSH: Use zsh run-help instead of default man

Much better information on builtins

error: pathspec 'shrc.d/help.zsh' did not match any file(s) known to git


Update deploy script

Update deploy 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/punchagan/thatte-idli.git/'


add build-uclibc.sh

add build-uclibc.sh

#!/bin/sh

if [ -d "moonshine" ] ; then
	cd moonshine ; git pull
	cd ..
else
	git clone git://github.com/robacklin/moonshine.git
fi

sh ./moonshine/scripts/build-uclibc.sh

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


fixed exim .forward bug - http://lists.otrs.org/pipermail/otrs/2002-October/000289.html

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/MBRG/otrs.git/'


Test legacy API.

Test legacy API.

#!/bin/bash
# Tests the dashboard's data collection API against a legacy format.
set -e
set -x
set -u

HOSTNAME=$1
PORT=$2
TOTAL=$3
TODAY=$4
URL="http://$HOSTNAME:$PORT/dashboard"

curl --header "Content-type: application/json" -s -d "{\"collection\":\"Site Report Notify Me\", \"time_code\": $(date +%s), \"Total\": \"$TOTAL\", \"Today\": \"$TODAY\"}" $URL

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


check test fail travis.yml v56

check test fail travis.yml v56

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/mployee/sfdx-dreamhouse.git/'


Added postman.

Added postman.

#!/usr/bin/env bash

yaourt --noconfirm -S postman-bin

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


Allow override of default certs in shim

Allow override of default certs in shim

Add the ability to override the "shim" and "vendor" certs when
building the UEFI shim. Setting the SHIM_KEY_PAIR variable to
the base name of a set of key pair files -- e.g. path/shim_cert
to represent path/shim_cert.x509.pem + path/shim_cert.pk8 --
will use that certificate instead of the default Makefile
behavior of generating a random certificate. Setting the
VENDOR_KEY_PAIR variable overrides the default value of
device/intel/build/testkeys/vendor. Setting VENDOR_KEY_PAIR to an
empty string omits the vendor cert from the built shim.

Change-Id: I2a2afaee302a1ce46ab0512a7952ef28dda937c3
Signed-off-by: Matt Wood <43563d206ab6b90123183229cb4368ff3b1c358c@intel.com>
Reviewed-on: https://android.intel.com/221325
Reviewed-by: cactus <c3ee75fbaae48de2b78e493a0872d74c3ea268c4@intel.com>
Reviewed-by: Boie, Andrew P <aab045b28152628be6af0e556050d0381fd0a34d@intel.com>
Tested-by: Boie, Andrew P <aab045b28152628be6af0e556050d0381fd0a34d@intel.com>

#
# This script is used to generate gnu_efi prebuilts for both ia32 and x86_64.
# The resulting binaries will be copied into prebuilts/{ia32, x86_64}.
#
# Please make sure you have Android's build system setup first, and lunch
# target defined.
#
# Setting the SHIM_KEY_PAIR variable will cause the shim to be built with the
# specified shim certificate instead of generating random certificate.
#
# Setting VENDOR_KEY_PAIR overrides the default test key to be embedded in the
# shim. If set to empty string, no vendor cert will be embedded.
#
# Also, it requires the pesign utility from
#     https://github.com/vathpela/pesign
# You will need to build this by yourself using GCC 4.7.
#
# Specify "-a" in command line to add these prebuilt binaries for
# git commit.
#
# Note:
# 1. ARCH ia32 and x86 are interchangable here.
#    Android uses x86, but EFI uses ia32.
#

set -e
PREBUILT_TOP=$ANDROID_BUILD_TOP/hardware/intel/efi_prebuilts/

if [ -z "$ANDROID_BUILD_TOP" ]; then
    echo "[ERROR] \$ANDROID_BUILD_TOP not set, please run lunch"
    exit 2
fi

DB_KEY_PAIR=$ANDROID_BUILD_TOP/device/intel/build/testkeys/DB

rm -f db.key
openssl pkcs8 -nocrypt -inform DER -outform PEM -in ${DB_KEY_PAIR}.pk8 -out db.key

if [ ! -v VENDOR_KEY_PAIR ]; then
  VENDOR_KEY_PAIR=$ANDROID_BUILD_TOP/device/intel/build/testkeys/vendor
fi
if [ -z "$VENDOR_KEY_PAIR" ]; then
  echo "Using empty vendor key pair"
  VENDOR_CERT_PARAM=
else
  echo "Using vendor key pair $VENDOR_KEY_PAIR"
  rm -f vendor.cer
  openssl x509 -outform der -in ${VENDOR_KEY_PAIR}.x509.pem -out vendor.cer
  VENDOR_CERT_PARAM="VENDOR_CERT_FILE=vendor.cer"
fi

copy_to_prebuilts()
{
    PREBUILT_FILES="MokManager.efi.signed shim.efi Cryptlib/OpenSSL/libopenssl.a"

    # Sanity check
    have_prebuilt_files=1
    for F in $PREBUILT_FILES; do
        if [ ! -s "$F" ] ; then
            echo "[ERROR] --- $1: $F does not exist or has size 0. aborting..."
            have_prebuilt_files=0
        fi
    done
    if [ "$have_prebuilt_files" == "0" ]; then
        echo "[ERROR] *** All build artifacts are not found for ARCH=$1. aborting..."
        exit 1
    fi

    # All files present. Copy them into prebuilts/
    rm -rf $PREBUILT_TOP/uefi_shim/linux-$1/
    mkdir -p $PREBUILT_TOP/uefi_shim/linux-$1/
    cp -v MokManager.efi.signed $PREBUILT_TOP/uefi_shim/linux-$1/MokManager.efi

    sbsign --key db.key --cert ${DB_KEY_PAIR}.x509.pem \
	    --output shim.efi.signed shim.efi

    cp -v shim.efi.signed $PREBUILT_TOP/uefi_shim/linux-$1/shim.efi
    cp -v Cryptlib/OpenSSL/libopenssl.a $PREBUILT_TOP/uefi_shim/linux-$1/libopenssl.a
    cp -rf Cryptlib/Include $PREBUILT_TOP/uefi_shim/linux-$1/
}

add_prebuilts=0
while getopts "a" opt; do
    case "$opt" in
        a) add_prebuilts=1;;
    esac
done

# Check gnu-efi prebuilts are in place
NEEDED_FILES=" \
    gnu-efi/linux-x86_64/lib/crt0-efi-x86_64.o \
    gnu-efi/linux-x86_64/lib/libefi.a
    gnu-efi/linux-x86_64/lib/libgnuefi.a \
    gnu-efi/linux-x86_64/lib/elf_x86_64_efi.lds \
    gnu-efi/linux-x86/lib/crt0-efi-ia32.o \
    gnu-efi/linux-x86/lib/libefi.a
    gnu-efi/linux-x86/lib/libgnuefi.a \
    gnu-efi/linux-x86/lib/elf_ia32_efi.lds \
    "

have_all_files=1
for file in $NEEDED_FILES; do
    if [ ! -s "$PREBUILT_TOP/$file" ]; then
        echo "[ERROR] --- $file does not exists in $PREBUILT_TOP."
        have_all_files=0
    fi
done
if [ "$have_all_files" == "0" ]; then
    echo "[ERROR] *** Please generate all necessary prebuilt binaries under external/gnu-efi before building uefi_shim."
    echo "[ERROR] *** Dependencies not satisfied. aborting..."
    exit 1
fi

# Clean up everything and create prebuilts directory
mkdir -p $PREBUILT_TOP/linux-x86/uefi_shim
mkdir -p $PREBUILT_TOP/linux-x86_64/uefi_shim

# Upstream Makefile heavily biased towards Fedora, we need to override
# a bunch of Make variables
EFI_PATH_64=$PREBUILT_TOP/gnu-efi/linux-x86_64
EFI_PATH_32=$PREBUILT_TOP/gnu-efi/linux-x86
LIB_PATH_64=$EFI_PATH_64/lib
LIB_PATH_32=$EFI_PATH_32/lib
EFI_INCLUDE_64=$EFI_PATH_64/include/efi
EFI_INCLUDE_32=$EFI_PATH_32/include/efi
EFI_CRT_OBJS_64=$LIB_PATH_64/crt0-efi-x86_64.o
EFI_CRT_OBJS_32=$LIB_PATH_32/crt0-efi-ia32.o
EFI_LDS_64=$LIB_PATH_64/elf_x86_64_efi.lds
EFI_LDS_32=$LIB_PATH_32/elf_ia32_efi.lds

MAKE_CMD="make -j12 DEFAULT_LOADER=\\\\\\\\gummiboot.efi"

$MAKE_CMD ARCH=x86_64 clean
$MAKE_CMD ARCH=ia32 clean

if [ -v SHIM_KEY_PAIR ]; then
    echo "Using shim key $SHIM_KEY_PAIR"
    cp $SHIM_KEY_PAIR.x509.pem shim.crt
else
    echo "Using default random cert in shim..."
fi

# Generate prebuilts for x86_64
$MAKE_CMD ARCH=x86_64 EFI_PATH=$EFI_PATH_64 LIB_PATH=$LIB_PATH_64 \
          EFI_INCLUDE=$EFI_INCLUDE_64 EFI_CRT_OBJS=$EFI_CRT_OBJS_64 \
          EFI_LDS=$EFI_LDS_64 $VENDOR_CERT_PARAM
copy_to_prebuilts x86_64
$MAKE_CMD ARCH=x86_64 clean

# Generate prebuilts for ia32
$MAKE_CMD ARCH=ia32 EFI_PATH=$EFI_PATH_32 LIB_PATH=$LIB_PATH_32 \
          EFI_INCLUDE=$EFI_INCLUDE_32 EFI_CRT_OBJS=$EFI_CRT_OBJS_32 \
          EFI_LDS=$EFI_LDS_32 $VENDOR_CERT_PARAM
copy_to_prebuilts x86
$MAKE_CMD ARCH=ia32 clean

if [ "$add_prebuilts" == "1" ]; then
    export GIT_DIR=$PREBUILT_TOP/.git
    export GIT_WORK_TREE=$PREBUILT_TOP

    git add -- linux-x86/uefi_shim/*
    git add -- linux-x86_64/uefi_shim/*

    unset GIT_DIR
    unset GIT_WORK_TREE

    echo "[NOTICE] Please remember to commit the prebuilts under $PREBUILT_TOP"
fi

echo "All done!"

#
# This script is used to generate gnu_efi prebuilts for both ia32 and x86_64.
# The resulting binaries will be copied into prebuilts/{ia32, x86_64}.
#
# Please make sure you have Android's build system setup first, and lunch
# target defined.
#
# Also, it requires the pesign utility from
#     https://github.com/vathpela/pesign
# You will need to build this by yourself using GCC 4.7.
#
# Specify "-a" in command line to add these prebuilt binaries for
# git commit.
#
# Note:
# 1. ARCH ia32 and x86 are interchangable here.
#    Android uses x86, but EFI uses ia32.
#

set -e
PREBUILT_TOP=$ANDROID_BUILD_TOP/hardware/intel/efi_prebuilts/

if [ -z "$ANDROID_BUILD_TOP" ]; then
    echo "[ERROR] \$ANDROID_BUILD_TOP not set, please run lunch"
    exit 2
fi

DB_KEY_PAIR=$ANDROID_BUILD_TOP/device/intel/build/testkeys/DB
VENDOR_KEY_PAIR=$ANDROID_BUILD_TOP/device/intel/build/testkeys/vendor

rm -f db.key
openssl pkcs8 -nocrypt -inform DER -outform PEM -in ${DB_KEY_PAIR}.pk8 -out db.key

rm -f vendor.cer
openssl x509 -outform der -in ${VENDOR_KEY_PAIR}.x509.pem -out vendor.cer

copy_to_prebuilts()
{
    PREBUILT_FILES="MokManager.efi.signed shim.efi Cryptlib/OpenSSL/libopenssl.a"

    # Sanity check
    have_prebuilt_files=1
    for F in $PREBUILT_FILES; do
        if [ ! -s "$F" ] ; then
            echo "[ERROR] --- $1: $F does not exist or has size 0. aborting..."
            have_prebuilt_files=0
        fi
    done
    if [ "$have_prebuilt_files" == "0" ]; then
        echo "[ERROR] *** All build artifacts are not found for ARCH=$1. aborting..."
        exit 1
    fi

    # All files present. Copy them into prebuilts/
    rm -rf $PREBUILT_TOP/uefi_shim/linux-$1/
    mkdir -p $PREBUILT_TOP/uefi_shim/linux-$1/
    cp -v MokManager.efi.signed $PREBUILT_TOP/uefi_shim/linux-$1/MokManager.efi

    sbsign --key db.key --cert ${DB_KEY_PAIR}.x509.pem \
	    --output shim.efi.signed shim.efi

    cp -v shim.efi.signed $PREBUILT_TOP/uefi_shim/linux-$1/shim.efi
    cp -v Cryptlib/OpenSSL/libopenssl.a $PREBUILT_TOP/uefi_shim/linux-$1/libopenssl.a
    cp -rf Cryptlib/Include $PREBUILT_TOP/uefi_shim/linux-$1/
}

add_prebuilts=0
while getopts "a" opt; do
    case "$opt" in
        a) add_prebuilts=1;;
    esac
done

# Check gnu-efi prebuilts are in place
NEEDED_FILES=" \
    gnu-efi/linux-x86_64/lib/crt0-efi-x86_64.o \
    gnu-efi/linux-x86_64/lib/libefi.a
    gnu-efi/linux-x86_64/lib/libgnuefi.a \
    gnu-efi/linux-x86_64/lib/elf_x86_64_efi.lds \
    gnu-efi/linux-x86/lib/crt0-efi-ia32.o \
    gnu-efi/linux-x86/lib/libefi.a
    gnu-efi/linux-x86/lib/libgnuefi.a \
    gnu-efi/linux-x86/lib/elf_ia32_efi.lds \
    "

have_all_files=1
for file in $NEEDED_FILES; do
    if [ ! -s "$PREBUILT_TOP/$file" ]; then
        echo "[ERROR] --- $file does not exists in $PREBUILT_TOP."
        have_all_files=0
    fi
done
if [ "$have_all_files" == "0" ]; then
    echo "[ERROR] *** Please generate all necessary prebuilt binaries under external/gnu-efi before building uefi_shim."
    echo "[ERROR] *** Dependencies not satisfied. aborting..."
    exit 1
fi

# Clean up everything and create prebuilts directory
mkdir -p $PREBUILT_TOP/linux-x86/uefi_shim
mkdir -p $PREBUILT_TOP/linux-x86_64/uefi_shim

# Upstream Makefile heavily biased towards Fedora, we need to override
# a bunch of Make variables
EFI_PATH_64=$PREBUILT_TOP/gnu-efi/linux-x86_64
EFI_PATH_32=$PREBUILT_TOP/gnu-efi/linux-x86
LIB_PATH_64=$EFI_PATH_64/lib
LIB_PATH_32=$EFI_PATH_32/lib
EFI_INCLUDE_64=$EFI_PATH_64/include/efi
EFI_INCLUDE_32=$EFI_PATH_32/include/efi
EFI_CRT_OBJS_64=$LIB_PATH_64/crt0-efi-x86_64.o
EFI_CRT_OBJS_32=$LIB_PATH_32/crt0-efi-ia32.o
EFI_LDS_64=$LIB_PATH_64/elf_x86_64_efi.lds
EFI_LDS_32=$LIB_PATH_32/elf_ia32_efi.lds

MAKE_CMD="make -j12 DEFAULT_LOADER=\\\\\\\\gummiboot.efi"

$MAKE_CMD ARCH=x86_64 clean
$MAKE_CMD ARCH=ia32 clean

# Generate prebuilts for x86_64
$MAKE_CMD ARCH=x86_64 EFI_PATH=$EFI_PATH_64 LIB_PATH=$LIB_PATH_64 \
          EFI_INCLUDE=$EFI_INCLUDE_64 EFI_CRT_OBJS=$EFI_CRT_OBJS_64 \
          EFI_LDS=$EFI_LDS_64 VENDOR_CERT_FILE=vendor.cer
copy_to_prebuilts x86_64
$MAKE_CMD ARCH=x86_64 clean

# Generate prebuilts for ia32
$MAKE_CMD ARCH=ia32 EFI_PATH=$EFI_PATH_32 LIB_PATH=$LIB_PATH_32 \
          EFI_INCLUDE=$EFI_INCLUDE_32 EFI_CRT_OBJS=$EFI_CRT_OBJS_32 \
          EFI_LDS=$EFI_LDS_32 VENDOR_CERT_FILE=vendor.cer
copy_to_prebuilts x86
$MAKE_CMD ARCH=ia32 clean

if [ "$add_prebuilts" == "1" ]; then
    export GIT_DIR=$PREBUILT_TOP/.git
    export GIT_WORK_TREE=$PREBUILT_TOP

    git add -- linux-x86/uefi_shim/*
    git add -- linux-x86_64/uefi_shim/*

    unset GIT_DIR
    unset GIT_WORK_TREE

    echo "[NOTICE] Please remember to commit the prebuilts under $PREBUILT_TOP"
fi

echo "All done!"


Change Permission

Change Permission

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/SilkNetwork/DarkSilk-Sentinel.git/'


Add update task

Add update task

#!/bin/bash

# rm -rf is slow
mkdir -p generator
mv generator generator_

git clone --depth 1 https://github.com/takenspc/diffofhtmlsgenerator.git generator

pushd generator
npm install
npm run build
npm start

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


move gridftp tests from globus_test to here

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


Added run_pm_installer.sh script

Added run_pm_installer.sh script

#!/bin/sh
ADB_COMMAND_PATH="adb"
ADB_FOUND=`${ADB_COMMAND_PATH} devices | tail -2 | head -1 | cut -f 1 | sed 's/ *$//g'`
DEVICES_NOT_PRESENT="List of devices attached"
SDCARD_FOLDER="/sdcard"

PATH_TO_APK_FILE=$1
if [ -f $PATH_TO_APK_FILE ];
then
  echo "File $PATH_TO_APK_FILE exists."
  if [[ ${ADB_FOUND} != ${NOT_PRESENT} ]]; then
    FILE_NAME=$(basename $PATH_TO_APK_FILE)
    APK_FILEPATH="$SDCARD_FOLDER/$FILE_NAME"
    echo "Pushing $FILE_NAME to the device..."
    ${ADB_COMMAND_PATH} push $PATH_TO_APK_FILE $APK_FILEPATH
    echo "Starting package installer..."
    ${ADB_COMMAND_PATH} shell am start -a "android.intent.action.VIEW" -t "application/vnd.android.package-archive" -d "file://$APK_FILEPATH"
    echo "Done. Don't forget to delete file $FILE_NAME from $SDCARD_FOLDER after it is installed!"
  else
    echo "Android device seems to be missing. Exiting!"
  fi
else
  echo "File $PATH_TO_APK_FILE does not exist. Exiting!"
fi

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


Issue #502 Improve deploy script

Issue #502 Improve deploy 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/pg-irc/pathways-frontend.git/'


bash script for vanity map generation

bash script for vanity map generation

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/axa-ch/dispatcher.git/'


What was I working on yesterday?!

What was I working on yesterday?!

#!/bin/sh

git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'

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


adding the android branch to options

adding the android branch to options

echo "Setting Up Workstation for Golang Development"

#Ensure HomeBrew is installed.  This is the package manager of choice for Mac OS
command -v apt-get >/dev/null 2>&1 || { echo >&2 "Aptitude is required for these setup scripts but it's not installed.  Aborting."; exit 1; }

#Is Go already installed?
command -v java >/dev/null 2>&1 || {
	echo >&2 "Installing Java from Aptitude"
	sudo apt-add-repository ppa:webupd8team/java
	sudo apt-get update
	sudo apt-get install oracle-java8-installer

}

#Sublime is the editor of choice for Java and Scripting programmers.
command -v subl >/dev/null 2>&1 || {
	echo >&2 "Installing Sublime Text 3."
	sudo add-apt-repository ppa:webupd8team/sublime-text-3
	sudo apt-get update
	sudo apt-get install sublime-text-installer

}

ROOT_PROJECT=`pwd`
#gradle is the build system of choice for java projects (including Android)
command -v gradle >/dev/null 2>&1 || {
	echo "Installing Latest Gradle"

	curl https://downloads.gradle.org/distributions/gradle-2.10-bin.zip > temp.zip
	unzip temp.zip
	sudo cp -r gradle-2.10 /opt/
	sudo chmod -R 755 /opt/gradle-2.10
	sudo rm -rf temp.zip gradle-2.10
	sudo ln -s /opt/gradle-2.10/bin/gradle /usr/bin/gradle
}

cd $ROOT_PROJECT

read -p "Please specify a template flavor (master [for vanilla], root-gradle-project or android): " branch

echo "Checking out \"$branch\""

if [ "$branch"="master" ] || [ "$branch"="root-gradle-project" ] || [ "$branch"="android" ]; then
	curl https://codeload.github.com/patrickianwilson/template-java-project/zip/$branch > temp.zip
	unzip temp.zip
	mv template-java-project-$branch/* .
	rm -r template-java-project-$branch
	rm temp.zip

	chmod +x *.sh

	echo "Initializing Project Flavor"
	./project-init.sh
	rm project-init.sh

	echo "New Java Project Initialized Successfully!"
else
	echo "Invalid Project Flavor - please choose either \"master\" (for vanilla), \"root-gradle-project\" or \"android\""
fi

error: pathspec 'setup-java-apt.sh' did not match any file(s) known to git


owncloud config.php markup

owncloud config.php markup

# Owncloud
##########################

# TODO: Write documentation on what we're doing here :-)

source setup/functions.sh # load our functions
source /etc/mailinabox.conf # load global vars

apt_install \
	dbconfig-common \
	php5-cli php5-sqlite php5-gd php5-curl php-pear php-apc curl libapr1 libtool libcurl4-openssl-dev php-xml-parser \
	php5 php5-dev php5-gd php5-fpm memcached php5-memcache unzip

apt-get purge -qq -y owncloud*

# Install ownCloud from source if it is not already present
# TODO: Check version?
if [ ! -d /usr/local/lib/owncloud ]; then
	rm -f /tmp/owncloud.zip
	wget -qO /tmp/owncloud.zip https://download.owncloud.org/community/owncloud-7.0.1.zip
	unzip /tmp/owncloud.zip -d /usr/local/lib
	rm -f /tmp/owncloud.zip
fi

# Create a configuration file.
cat - > /usr/local/lib/owncloud/config/config.php <<EOF;
<?php
/*
 * Do not edit. Written by Mail-in-a-Box. Regenerated on updates.
 */
\$CONFIG = array (
\  'datadirectory' => '$STORAGE_ROOT/owncloud',
\  array (
\    0 =>
\    array (
\    'class' => 'OC_User_IMAP',
\    'arguments' =>
\    array (
\      0 => '{localhost:993/imap/ssl/novalidate-cert}',
\    ),
\  ),
\ ),
\);
EOF

# Insert the following above (owncloud config generation) when we found a good solution:
#  'mail_smtpmode' => 'smtp',
#  'mail_smtpsecure' => 'ssl',
#  'mail_from_address' => '**** need to figure this one out, nornamly: <user>@<domain>.<tld> ****',
#  'mail_domain' => '**** need to figure this one out, nornamly: <domain>.<tld> ****',
#  'mail_smtpauthtype' => 'LOGIN',
#  'mail_smtpauth' => true,
#  'mail_smtphost' => 'localhost',
#  'mail_smtpport' => '587',
#  'mail_smtpname' => '**** need to figure this one out, nornamly: <user>@<domain>.<tld> ****',
#  'mail_smtppassword' => '**** need to figure this one out ****',

# Set permissions
mkdir -p $STORAGE_ROOT/owncloud
chown -R www-data.www-data $STORAGE_ROOT/owncloud /usr/local/lib/owncloud

# Download and install the mail app
if [ ! -d /usr/local/lib/owncloud/apps/mail ]; then
	rm -f /tmp/owncloud_mail.zip
	wget -qO /tmp/owncloud_mail.zip https://github.com/owncloud/mail/archive/master.zip
	unzip /tmp/owncloud_mail.zip -d /usr/local/lib/owncloud/apps
	mv /usr/local/lib/owncloud/apps/mail-master /usr/local/lib/owncloud/apps/mail
	rm -f /tmp/owncloud.zip
fi

# Currently the mail app dosnt ship with the dependencies, so we need to install them
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/lib/owncloud/apps/mail
php /usr/local/lib/owncloud/apps/mail/composer.phar install --working-dir=/usr/local/lib/owncloud/apps/mail

# TODO: enable mail app in ownCloud config?

# Owncloud
##########################

# TODO: Write documentation on what we're doing here :-)

source setup/functions.sh # load our functions
source /etc/mailinabox.conf # load global vars

apt_install \
	dbconfig-common \
	php5-cli php5-sqlite php5-gd php5-curl php-pear php-apc curl libapr1 libtool libcurl4-openssl-dev php-xml-parser \
	php5 php5-dev php5-gd php5-fpm memcached php5-memcache unzip

apt-get purge -qq -y owncloud*

# Install ownCloud from source if it is not already present
# TODO: Check version?
if [ ! -d /usr/local/lib/owncloud ]; then
	rm -f /tmp/owncloud.zip
	wget -qO /tmp/owncloud.zip https://download.owncloud.org/community/owncloud-7.0.1.zip
	unzip /tmp/owncloud.zip -d /usr/local/lib
	rm -f /tmp/owncloud.zip
fi

# Create a configuration file.
# TODO:

# Set permissions
mkdir -p $STORAGE_ROOT/owncloud
chown -R www-data.www-data $STORAGE_ROOT/owncloud /usr/local/lib/owncloud

# Download and install the mail app
if [ ! -d /usr/local/lib/owncloud/apps/mail ]; then
	rm -f /tmp/owncloud_mail.zip
	wget -qO /tmp/owncloud_mail.zip https://github.com/owncloud/mail/archive/master.zip
	unzip /tmp/owncloud_mail.zip -d /usr/local/lib/owncloud/apps
	mv /usr/local/lib/owncloud/apps/mail-master /usr/local/lib/owncloud/apps/mail
	rm -f /tmp/owncloud.zip
fi

# Currently the mail app dosnt ship with the dependencies, so we need to install them
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/lib/owncloud/apps/mail
php /usr/local/lib/owncloud/apps/mail/composer.phar install --working-dir=/usr/local/lib/owncloud/apps/mail

# TODO: enable mail app in ownCloud config?


improve asking for user decisions; make some actions optional

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


Add generate script.

Add generate script.

error: pathspec 'Compliance/jooq-build/generate.sh' did not match any file(s) known to git


Create entry.sh

Create entry.sh

#!/bin/bash
trap 'exit' ERR

openssl genrsa -out /certs/${KEY_NAME}.key 4096

openssl req -new -nodes -sha256 \
 -subj "/C=${DE}/ST=${STATE}/L=${LOCATION}/O=${ORGANISATION}/OU=${ORGANISATION_UNIT}/CN=${COMMON_NAME}/emailAddress=${EMAIL_ADDRESS}" \
 -key  /certs/${KEY_NAME}.key \
 -out  /certs/${KEY_NAME}.csr

if [ -z "$CA_NAME" ]; then
    openssl x509 -req -days ${DAYS} -set_serial 01 \
     -signkey ${KEY_NAME}.key \
     -in /certs/${KEY_NAME}.csr \
     -out /certs/${KEY_NAME}.pem
else
    openssl x509 -req -days ${DAYS} -set_serial 01 \
     -CA ${CA_NAME}.pem -CAkey ${CA_NAME}.key \
     -in /certs/${KEY_NAME}.csr \
     -out /certs/${KEY_NAME}.pem
fi

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


Add compile-udpgw.sh.

Add compile-udpgw.sh.

#!/bin/bash
#
# Compiles udpgw 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}" )
DEFS=( -DBADVPN_THREAD_SAFE=0 -DBADVPN_LINUX -DBADVPN_BREACTOR_BADVPN -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_badvpn.c
system/BSignal.c
system/BConnection_unix.c
system/BDatagram_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/PacketProtoFlow.c
flow/PacketPassFairQueue.c
flow/PacketProtoEncoder.c
flow/PacketProtoDecoder.c
base/DebugObject.c
base/BLog.c
base/BPending.c
udpgw/udpgw.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 udpgw -lrt

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


Fixes

Fixes

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


Added topic extension for image/<location>/{ID,<class>}/{ID?<image_id>}

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


fix(merge): turn off fuzzy matching

fix(merge): turn off fuzzy matching

Copy-paste of @zaach's brilliance here: https://github.com/mozilla/fxa-content-server-l10n/pull/29/files#diff-78407b71b3a13093f381d5753d997d14R18

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/flodolo/FindMyDevice-l10n.git/'


Add a script to generate rpm manifest

Add a script to generate rpm manifest

#!/bin/bash

manifest_dir=$APPLIANCE_SOURCE_DIRECTORY/../manifest
mkdir -p $manifest_dir

pushd $manifest_dir
  manifest=rpm_manifest_$(date +"%m%d%y").csv

  # dnf command gives yum repo used to install rpm
  dnf list --installed | tr -s " " | while read name_arch version license
  do
    if [[ "$name_arch" == "Installed" ]]; then continue; fi
    IFS=. read name arch <<< $name_arch
    echo -e "$name\t$version\t$license" >> dnf_list
  done
  sort -o dnf_list dnf_list

  # rpm command gives rpm license info
  rpm -qa --qf '%{name}\t%{version}-%{release}.%{arch}\t"%{license}"\n' |sort > rpm_list
  sed -i '/^gpg-pubkey/d' rpm_list

  echo "name,version,license,repo" > $manifest
  join -j 1 -o 1.1,1.2,1.3,2.3 -t $'\t' -a 1 rpm_list dnf_list >> $manifest
  sed -i 's/\t/,/g' $manifest
  rm -f rpm_list dnf_list
popd

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


Added rebuild script

Added rebuild script

./stop.sh && \
docker rm gh-page && \
./build.sh

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


Check for rbenv directory as well

Check for rbenv directory as well

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


Script to download all the NVD vulnerabilities entries as json files.

#!/bin/bash

# export https_proxy=<ADD HERE YOUR PROXY IF NEEDED>

START_YEAR=2002
END_YEAR=$(date +'%Y')
DOWNLOAD_DIR=.

CVE_MODIFIED_URL='https://static.nvd.nist.gov/feeds/json/cve/1.0/nvdcve-1.0-modified.json.gz'

CVE_BASE_URL='https://static.nvd.nist.gov/feeds/json/cve/1.0/nvdcve-1.0-%d.json.gz'

if [[ $# -eq 1 ]] ; then
    DOWNLOAD_DIR=$1
fi

START_TIME=$(date +%s)

download () {
    echo
    echo "Starting download of $1"
    OUTPUT_FILE=${1##*/}
    wget --no-check-certificate $1 -P $DOWNLOAD_DIR -O $OUTPUT_FILE
    if [ "$?" != 0 ]; then
        echo "ERROR: Downloading of $1 failed."
        exit 1
    fi

    echo "Extracting $OUTPUT_FILE"
    gzip -df $OUTPUT_FILE

    if [ "$?" != 0 ]; then
        echo "ERROR: Extracting of $OUTPUT_FILE failed."
        exit 1
    fi

    echo "Download of $1 sucessfully completed."
    echo
}

echo "Starting download of NVD files ..."
download "$CVE_MODIFIED_URL"

for ((i=$START_YEAR;i<=$END_YEAR;i++));
do
    download "${CVE_BASE_URL//%d/$i}"

done

END_TIME=$(date +%s)
DURATION=$((END_TIME-START_TIME))
echo "Download of NVD files successfully completed in $DURATION seconds."

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


Unencrypt before install

Unencrypt before install

#!/bin/bash

# Make project directory if it doesn't exist. This is mainly to ensure that these scripts work on a bare server

rm -Rf /home/datamade/la-metro-councilmatic
mkdir -p /home/datamade/la-metro-councilmatic

if [ "$DEPLOYMENT_GROUP_NAME" == "staging" ]
then
    rm -Rf /home/datamade/lametro-staging
    mkdir -p /home/datamade/lametro-staging
fi
if [ "$DEPLOYMENT_GROUP_NAME" == "production" ]
then
    rm -Rf /home/datamade/lametro
    mkdir -p /home/datamade/lametro
fi

# Decrypt files encrypted with blackbox
cd /opt/codedeploy-agent/deployment-root/$DEPLOYMENT_GROUP_ID/$DEPLOYMENT_ID/deployment-archive/ && chown -R datamade.datamade . && sudo -H -u datamade blackbox_postdeploy

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


bootengine: fully populate the initrd shadow db from baselayout

This allows us to assume all initial coreos users and groups are present
in the initrd as well.

#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

install() {
    # Simply pull in all the shadow db files so things like systemd-tmpfiles
    # will always be able to find users referenced by the baselayout files.
    cp -af "/usr/share/baselayout/passwd" \
        "${initdir}/etc/passwd"

    cp -af "/usr/share/baselayout/shadow" \
        "${initdir}/etc/shadow"

    cp -af "/usr/share/baselayout/group" \
        "${initdir}/etc/group"

    cp -af "/usr/share/baselayout/gshadow" \
        "${initdir}/etc/gshadow"
}

error: pathspec 'dracut/99shadow/module-setup.sh' did not match any file(s) known to git


Push code as well as tags to GitHub

Push code as well as tags to GitHub

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/studio666/gratipay.com.git/'


Add proto compilation script

Add proto compilation script

#!/bin/bash

# Get directory where the current script is located:
MY_DIR="$( cd "$( dirname "$0" )" && pwd )"

# Find protoc and check version:
PROTOC_CMD=$(which protoc)

if [[ -z ${PROTOC_CMD} ]]; then
    echo "Could NOT find protobuf compiler (protoc) - big fail"
    exit -1
fi

PROTOC_VERSION="$(${PROTOC_CMD} --version | cut -f 2 -d ' ')"
PROTOC_VERSION_REQUIRED="2.5.0"

if [[ ${PROTOC_VERSION} != ${PROTOC_VERSION_REQUIRED} ]]; then
    echo "Protoc available, but version is - ${PROTOC_VERSION} - requires ${PROTOC_VERSION_REQUIRED}"
    exit -1
fi

echo "Protobuf compiler (protoc) available - ${PROTOC_CMD} - version ${PROTOC_VERSION}"

# Get proto files:
PROTO_FILES_DIR="${MY_DIR}/../protos"
PROTO_FILES="$(ls  ${PROTO_FILES_DIR}/*.proto)"

echo "Proto files:"
for file in ${PROTO_FILES}; do
    echo -e "\t* $(basename $file)"
done

# Compile protos
PROTO_OUT_DIR="${MY_DIR}/../hbite/protobuf"

mkdir -p ${PROTO_OUT_DIR}

${PROTOC_CMD} --proto_path=${PROTO_FILES_DIR} --python_out=${PROTO_OUT_DIR} ${PROTO_FILES}

if [[ $? != 0 ]]; then
    echo "Proto files compilation failed!"
    exit -1
else
    echo "Success - proto files compiled to:"
    for file in $(ls ${PROTO_OUT_DIR}); do
        echo -e "\t* $(basename $file)"
    done
fi

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


add crostini bootstrap

add crostini bootstrap

Signed-off-by: Adam Miller <cf6c20ee6d75833f8d6d5a354ac8b2bd03d07c76@redhat.com>

#!/bin/bash

apt update
apt -y upgrade
apt -y install \
    fontconfig \
    fontconfig-utils \
    htop \
    tmux \
    vim \
    vim-syntastic \
    vim-python-jedi \
    vim-python \
    python \
    python-tox \
    python-pip \
    python3 \
    python3-pip \
    bpython \
    bpython3 \
    ipython \
    ipython3 \
    ruby \
    pry \
    golang \
    openssh \
    mosh \
    proot \
    strace \
    ltrace \
    tracepath \
    nmap \
    curl \
    wget \
    mkvirtualenv \
    git

pip install --user q
pip install --user pdbpp
pip install --user ptpython

# Setup my dotfiles
cd ~/
git clone https://github.com/maxamillion/dotfiles

# Nuke old dirs and resetup (this is apparently needed because Termux does
# something weird)
#
rm -fr ~/.config/{dunst,i3,i3status,fontconfig}
rm -fr ~/.config/fontconfig/conf.d
rm -fr ~/.tmuxinator
rm -fr ~/.ptpython
rm -fr ~/.fonts
rm -fr ~/.vim*
rm -fr ~/vimified

# bootstrap dotfiles
bash ~/dotfiles/bootstrap.sh

cd ~/

# bootstrap vim
bash ~/dotfiles/bootstrap-vim.sh

cd ~/

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


chore(build): Ease release

chore(build): Ease release

#!/usr/bin/env bash

git pull --rebase && \
  conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && \
  git add CHANGELOG.md && git commit -m 'chore(changelog): Updated CHANGELOG.md' && \
  git checkout master && git merge develop && git push && \
  git checkout develop

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


Script to install DMX-h on EMR and start the dmxd service on the master node

#!/usr/bin/env bash

## dump the environment active at bootstrap script time
env > ~hadoop/bootstrap-env.txt

## is this the master node?
EMR_CONFIG_PATH='/mnt/var/lib/info/instance.json'
ismaster=`python -c 'import json; fp=open("'$EMR_CONFIG_PATH'","r"); print json.load(fp)["isMaster"]'`

# change directory to hadoop user home for duration of script
cd ~hadoop

# Install tools
sudo yum -y install mlocate htop tmux git

# copy DMX-h files from dmx S3 bucket
dmxrpm="dmexpress-7.13.10-1.x86_64.rpm"
echo Installing DMX-h
hadoop fs -copyToLocal s3://syncsortpocsoftware/"$dmxrpm"

## install the pre-licensed DMX-h .rpm and set paths globally
sudo rpm -i "$dmxrpm" && echo "Installed $dmxrpm"
echo '
DMXHOME=/usr/dmexpress
PATH=$PATH:$DMXHOME/bin:/home/hadoop/.versions/hive-0.11.0/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DMXHOME/lib
DMX_HADOOP_MRV=2
DMX_HADOOP_STREAMING_JAR=/home/hadoop/contrib/streaming/hadoop-streaming.jar
export PATH LD_LIBRARY_PATH DMXHOME DMX_HADOOP_MRV DMX_HADOOP_STREAMING_JAR
' | sudo tee /etc/profile.d/dmexpress.sh

## Things to be done only on the master node
if [ "True" == "$ismaster" ]; then
    echo 'export PS1="[\u@MASTER \W]$ "' >> ~hadoop/.bashrc
## install, configure, and start the DMX daemon
    echo Configuring dmxd on master node
    . /etc/profile
    cd $DMXHOME
    sudo killall dmxd
    sudo ./install <<EOF
2
n
y
y

EOF

## update slaves file on master node; DOES NOT WORK because runs too early
    # (sudo -i -u hadoop hdfs dfsadmin -safemode wait && sudo -i -u hadoop hdfs dfsadmin -report | grep ^Name | cut -f2 -d: | tr -d ' ' > /home/hadoop/.versions/2.2.0/etc/hadoop/slaves)&

fi

## personal environment setup
    hadoop fs -copyToLocal  http://s3.amazonaws.com/syncsortpocsoftware/.tmux.conf

# ## just to make s3 a little easier to deal with
#     echo Installing s3cmd
#     wget -O -  http://s3tools.org/repo/RHEL_6/s3tools.repo | sudo tee /etc/yum.repos.d/s3tools.repo
#     sudo yum -y install s3cmd
# fi

    sudo updatedb&

    echo Done with bootstrap script

error: pathspec 'bootstrap-emr-dmxh.sh' did not match any file(s) known to git


Added recently created script to check last mount time of the ext2/ext3/ext4 filesystem

#!/bin/sh
# print last mount time of the ext2/ext3/ext4 filesystems
#
# Description: http://blog.sleeplessbeastie.eu/2013/09/03/how-to-check-last-mount-time-of-the-ext2-ext3-ext4-filesystem/
#
# contact:
# milosz@sleeplessbeastie.eu
#

if [ "$(whoami)" = "root" ]; then
  mount | \
   awk '/dev.*ext/ {print $1}' | \
   xargs -I DEVICE sh -c '{ mount | grep DEVICE | \
   awk "{ print \"----- device \" \$1 \" mounted on \" \$3 }"; \
    tune2fs -l DEVICE | grep "Last\|created"; }'
fi

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


kernel 4.4.20

kernel 4.4.20

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/zanardo/dockerfiles.git/'


Added mountmedia.sh

Added mountmedia.sh

this script (to be run on init) mounts the media folder in the home directory of all sftp group users

#!/bin/bash
#this script (to be run on init) mounts the media folder in the home directory of all sftp group users

sftpusers=(`awk -F':' '/^sftp/{print $4}' /etc/group | tr ',' ' '`)
for user in ${sftpusers[@]}
do
  mkdir -p /mnt/wdvol/${user}/media
  mount_nullfs /mnt/wdvol/media /mnt/wdvol/${user}/media
done

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


Add Solr deploy script

Add Solr deploy script

#!/bin/bash
#
# Startup script for jetty under *nix systems (it works under NT/cygwin too).

# To get the service to restart correctly on reboot, uncomment below (3 lines):
# ========================
# chkconfig: 3 99 99
# description: Jetty 6 webserver
# processname: jetty
# ========================

# Configuration files
#
# /etc/default/jetty
#   If it exists, this is read at the start of script. It may perform any
#   sequence of shell commands, like setting relevant environment variables.
#
# $HOME/.jettyrc
#   If it exists, this is read at the start of script. It may perform any
#   sequence of shell commands, like setting relevant environment variables.
#
# /etc/jetty.conf
#   If found, and no configurations were given on the command line,
#   the file will be used as this script's configuration.
#   Each line in the file may contain:
#     - A comment denoted by the pound (#) sign as first non-blank character.
#     - The path to a regular file, which will be passed to jetty as a
#       config.xml file.
#     - The path to a directory. Each *.xml file in the directory will be
#       passed to jetty as a config.xml file.
#
#   The files will be checked for existence before being passed to jetty.
#
# $JETTY_HOME/etc/jetty.xml
#   If found, used as this script's configuration file, but only if
#   /etc/jetty.conf was not present. See above.
#
# Configuration variables
#
# JAVA_HOME
#   Home of Java installation.
#
# JAVA
#   Command to invoke Java. If not set, $JAVA_HOME/bin/java will be
#   used.
#
# JAVA_OPTIONS
#   Extra options to pass to the JVM
#
# JETTY_HOME
#   Where Jetty is installed. If not set, the script will try go
#   guess it by first looking at the invocation path for the script,
#   and then by looking in standard locations as $HOME/opt/jetty
#   and /opt/jetty. The java system property "jetty.home" will be
#   set to this value for use by configure.xml files, f.e.:
#
#    <Arg><SystemProperty name="jetty.home" default="."/>/webapps/jetty.war</Arg>
#
# JETTY_PORT
#   Override the default port for Jetty servers. If not set then the
#   default value in the xml configuration file will be used. The java
#   system property "jetty.port" will be set to this value for use in
#   configure.xml files. For example, the following idiom is widely
#   used in the demo config files to respect this property in Listener
#   configuration elements:
#
#    <Set name="Port"><SystemProperty name="jetty.port" default="8080"/></Set>
#
#   Note: that the config file could ignore this property simply by saying:
#
#    <Set name="Port">8080</Set>
#
# JETTY_RUN
#   Where the jetty.pid file should be stored. It defaults to the
#   first available of /var/run, /usr/var/run, and /tmp if not set.
#
# JETTY_PID
#   The Jetty PID file, defaults to $JETTY_RUN/jetty.pid
#
# JETTY_ARGS
#   The default arguments to pass to jetty.
#
# JETTY_USER
#   if set, then used as a username to run the server as
#
# Set to 0 if you do not want to use start-stop-daemon (especially on SUSE boxes)
START_STOP_DAEMON=1

usage()
{
    echo "Usage: $0 {start|stop|run|restart|check|supervise} [ CONFIGS ... ] "
    exit 1
}

[ $# -gt 0 ] || usage

##################################################
# Some utility functions
##################################################
findDirectory()
{
    OP=$1
    shift
    for L in $* ; do
        [ $OP $L ] || continue
        echo $L
        break
    done
}

running()
{
    [ -f $1 ] || return 1
    PID=$(cat $1)
    ps -p $PID >/dev/null 2>/dev/null || return 1
    return 0
}

##################################################
# Get the action & configs
##################################################

ACTION=$1
shift
ARGS="$*"
CONFIGS=""
NO_START=0

##################################################
# See if there's a default configuration file
##################################################
if [ -f /etc/default/jetty8 ] ; then
  . /etc/default/jetty8
elif [ -f /etc/default/jetty ] ; then
  . /etc/default/jetty
fi

##################################################
# See if there's a user-specific configuration file
##################################################
if [ -f $HOME/.jettyrc ] ; then
  . $HOME/.jettyrc
fi

##################################################
# Set tmp if not already set.
##################################################

if [ -z "$TMP" ]
then
  TMP=/tmp
fi

##################################################
# Jetty's hallmark
##################################################
JETTY_INSTALL_TRACE_FILE="etc/jetty.xml"
TMPJ=$TMP/j$$

##################################################
# Try to determine JETTY_HOME if not set
##################################################
if [ -z "$JETTY_HOME" ]
then
  JETTY_HOME_1=`dirname "$0"`
  JETTY_HOME_1=`dirname "$JETTY_HOME_1"`
  if [ -f "${JETTY_HOME_1}/${JETTY_INSTALL_TRACE_FILE}" ] ;
  then
     JETTY_HOME=${JETTY_HOME_1}
  fi
fi

##################################################
# if no JETTY_HOME, search likely locations.
##################################################
if [ "$JETTY_HOME" = "" ] ; then
  STANDARD_LOCATIONS="           \
        /usr/share               \
        /usr/share/java          \
        $HOME                    \
        $HOME/src                \
        ${HOME}/opt/             \
        /opt                     \
        /java                    \
        /usr/local               \
        /usr/local/share         \
        /usr/local/share/java    \
        /home                    \
        "
  JETTY_DIR_NAMES="              \
        jetty-8                  \
        jetty8                   \
        jetty-8.*                \
        jetty                    \
        Jetty-8                  \
        Jetty8                   \
        Jetty-8.*                \
        Jetty                    \
        "

  JETTY_HOME=
  for L in $STANDARD_LOCATIONS
  do
     for N in $JETTY_DIR_NAMES
     do
         if [ -d $L/$N ] && [ -f "$L/${N}/${JETTY_INSTALL_TRACE_FILE}" ] ;
         then
            JETTY_HOME="$L/$N"
         fi
     done
     [ ! -z "$JETTY_HOME" ] && break
  done
fi

##################################################
# No JETTY_HOME yet? We're out of luck!
##################################################
if [ -z "$JETTY_HOME" ] ; then
    echo "** ERROR: JETTY_HOME not set, you need to set it or install in a standard location"
    exit 1
fi

cd $JETTY_HOME
JETTY_HOME=`pwd`

#####################################################
# Check that jetty is where we think it is
#####################################################
if [ ! -r $JETTY_HOME/$JETTY_INSTALL_TRACE_FILE ]
then
   echo "** ERROR: Oops! Jetty doesn't appear to be installed in $JETTY_HOME"
   echo "** ERROR:  $JETTY_HOME/$JETTY_INSTALL_TRACE_FILE is not readable!"
   exit 1
fi

###########################################################
# Get the list of config.xml files from the command line.
###########################################################
if [ ! -z "$ARGS" ]
then
  for A in $ARGS
  do
    if [ -f $A ]
    then
       CONF="$A"
    elif [ -f $JETTY_HOME/etc/$A ]
    then
       CONF="$JETTY_HOME/etc/$A"
    elif [ -f ${A}.xml ]
    then
       CONF="${A}.xml"
    elif [ -f $JETTY_HOME/etc/${A}.xml ]
    then
       CONF="$JETTY_HOME/etc/${A}.xml"
    else
       echo "** ERROR: Cannot find configuration '$A' specified in the command line."
       exit 1
    fi
    if [ ! -r $CONF ]
    then
       echo "** ERROR: Cannot read configuration '$A' specified in the command line."
       exit 1
    fi
    CONFIGS="$CONFIGS $CONF"
  done
fi

##################################################
# Try to find this script's configuration file,
# but only if no configurations were given on the
# command line.
##################################################
if [ -z "$JETTY_CONF" ]
then
  if [ -f /etc/jetty.conf ]
  then
     JETTY_CONF=/etc/jetty.conf
  elif [ -f "${JETTY_HOME}/etc/jetty.conf" ]
  then
     JETTY_CONF="${JETTY_HOME}/etc/jetty.conf"
  fi
fi

##################################################
# Read the configuration file if one exists
##################################################
CONFIG_LINES=
if [ -z "$CONFIGS" ] && [ -f "$JETTY_CONF" ] && [ -r "$JETTY_CONF" ]
then
  CONFIG_LINES=`cat $JETTY_CONF | grep -v "^[:space:]*#" | tr "\n" " "`
fi

##################################################
# Get the list of config.xml files from jetty.conf
##################################################
if [ ! -z "${CONFIG_LINES}" ]
then
  for CONF in ${CONFIG_LINES}
  do
    if [ ! -r "$CONF" ]
    then
      echo "** WARNING: Cannot read '$CONF' specified in '$JETTY_CONF'"
    elif [ -f "$CONF" ]
    then
      # assume it's a configure.xml file
      CONFIGS="$CONFIGS $CONF"
    elif [ -d "$CONF" ]
    then
      # assume it's a directory with configure.xml files
      # for example: /etc/jetty.d/
      # sort the files before adding them to the list of CONFIGS
      XML_FILES=`ls ${CONF}/*.xml | sort | tr "\n" " "`
      for FILE in ${XML_FILES}
      do
         if [ -r "$FILE" ] && [ -f "$FILE" ]
         then
            CONFIGS="$CONFIGS $FILE"
         else
           echo "** WARNING: Cannot read '$FILE' specified in '$JETTY_CONF'"
         fi
      done
    else
      echo "** WARNING: Don''t know what to do with '$CONF' specified in '$JETTY_CONF'"
    fi
  done
fi

#####################################################
# Run the standard server if there's nothing else to run
#####################################################
if [ -z "$CONFIGS" ]
then
    CONFIGS="${JETTY_HOME}/etc/jetty-logging.xml ${JETTY_HOME}/etc/jetty.xml"
fi

#####################################################
# Find a location for the pid file
#####################################################
if [  -z "$JETTY_RUN" ]
then
  JETTY_RUN=`findDirectory -w /var/run /usr/var/run /tmp`
fi

#####################################################
# Find a PID for the pid file
#####################################################
if [  -z "$JETTY_PID" ]
then
  JETTY_PID="$JETTY_RUN/jetty.pid"
fi

##################################################
# Check for JAVA_HOME
##################################################
if [ -z "$JAVA_HOME" ]
then
    # If a java runtime is not defined, search the following
    # directories for a JVM and sort by version. Use the highest
    # version number.

    # Java search path
    JAVA_LOCATIONS="\
        /usr/java \
        /usr/bin \
        /usr/local/bin \
        /usr/local/java \
        /usr/local/jdk \
        /usr/local/jre \
	/usr/lib/jvm \
        /opt/java \
        /opt/jdk \
        /opt/jre \
    "
    JAVA_NAMES="java jdk jre"
    for N in $JAVA_NAMES ; do
        for L in $JAVA_LOCATIONS ; do
            [ -d $L ] || continue
            find $L -name "$N" ! -type d | grep -v threads | while read J ; do
                [ -x $J ] || continue
                VERSION=`eval $J -version 2>&1`
                [ $? = 0 ] || continue
                VERSION=`expr "$VERSION" : '.*"\(1.[0-9\.]*\)["_]'`
                [ "$VERSION" = "" ] && continue
                expr $VERSION \< 1.2 >/dev/null && continue
                echo $VERSION:$J
            done
        done
    done | sort | tail -1 > $TMPJ
    JAVA=`cat $TMPJ | cut -d: -f2`
    JVERSION=`cat $TMPJ | cut -d: -f1`

    JAVA_HOME=`dirname $JAVA`
    while [ ! -z "$JAVA_HOME" -a "$JAVA_HOME" != "/" -a ! -f "$JAVA_HOME/lib/tools.jar" ] ; do
        JAVA_HOME=`dirname $JAVA_HOME`
    done
    [ "$JAVA_HOME" = "" ] && JAVA_HOME=

    echo "Found JAVA=$JAVA in JAVA_HOME=$JAVA_HOME"
fi

##################################################
# Determine which JVM of version >1.2
# Try to use JAVA_HOME
##################################################
if [ "$JAVA" = "" -a "$JAVA_HOME" != "" ]
then
  if [ ! -z "$JAVACMD" ]
  then
     JAVA="$JAVACMD"
  else
    [ -x $JAVA_HOME/bin/jre -a ! -d $JAVA_HOME/bin/jre ] && JAVA=$JAVA_HOME/bin/jre
    [ -x $JAVA_HOME/bin/java -a ! -d $JAVA_HOME/bin/java ] && JAVA=$JAVA_HOME/bin/java
  fi
fi

if [ "$JAVA" = "" ]
then
    echo "Cannot find a JRE or JDK. Please set JAVA_HOME to a >=1.2 JRE" 2>&2
    exit 1
fi

JAVA_VERSION=`expr "$($JAVA -version 2>&1 | head -1)" : '.*1\.\([0-9]\)'`

#####################################################
# See if JETTY_PORT is defined
#####################################################
if [ "$JETTY_PORT" != "" ]
then
  JAVA_OPTIONS="$JAVA_OPTIONS -Djetty.port=$JETTY_PORT"
fi

#####################################################
# See if JETTY_LOGS is defined
#####################################################
if [ "$JETTY_LOGS" != "" ]
then
  JAVA_OPTIONS="$JAVA_OPTIONS -Djetty.logs=$JETTY_LOGS"
fi

#####################################################
# Are we running on Windows? Could be, with Cygwin/NT.
#####################################################
case "`uname`" in
CYGWIN*) PATH_SEPARATOR=";";;
*) PATH_SEPARATOR=":";;
esac

#####################################################
# Add jetty properties to Java VM options.
#####################################################
JAVA_OPTIONS="$JAVA_OPTIONS -Djetty.home=$JETTY_HOME -Djava.io.tmpdir=$TMP"

[ -f $JETTY_HOME/etc/start.config ] && JAVA_OPTIONS="-DSTART=$JETTY_HOME/etc/start.config $JAVA_OPTIONS"

#####################################################
# This is how the Jetty server will be started
#####################################################

JETTY_START=$JETTY_HOME/start.jar
[ ! -f $JETTY_START ] && JETTY_START=$JETTY_HOME/lib/start.jar

RUN_ARGS="$JAVA_OPTIONS -jar $JETTY_START $JETTY_ARGS $CONFIGS"
RUN_CMD="$JAVA $RUN_ARGS"

#####################################################
# Comment these out after you're happy with what
# the script is doing.
#####################################################
#echo "JETTY_HOME     =  $JETTY_HOME"
#echo "JETTY_CONF     =  $JETTY_CONF"
#echo "JETTY_RUN      =  $JETTY_RUN"
#echo "JETTY_PID      =  $JETTY_PID"
#echo "JETTY_ARGS     =  $JETTY_ARGS"
#echo "CONFIGS        =  $CONFIGS"
#echo "JAVA_OPTIONS   =  $JAVA_OPTIONS"
#echo "JAVA           =  $JAVA"

##################################################
# Do the action
##################################################
case "$ACTION" in
  start)
        echo -n "Starting Jetty: "

        if [ "$NO_START" = "1" ]; then
	  echo "Not starting jetty - NO_START=1 in /etc/default/jetty6";
          exit 0;
	fi

	if [ "$START_STOP_DAEMON" = "1" ] && type start-stop-daemon > /dev/null 2>&1
	then
          [ x$JETTY_USER = x ] && JETTY_USER=$(whoami)
	  [ $UID = 0 ] && CH_USER="-c $JETTY_USER"
	  if start-stop-daemon -S -p$JETTY_PID $CH_USER -d $JETTY_HOME -b -m -a $JAVA -- $RUN_ARGS
	  then
	      sleep 1
	      if running $JETTY_PID
	      then
                  echo OK
              else
                  echo FAILED
              fi
	  fi

	else

          if [ -f $JETTY_PID ]
          then
            if running $JETTY_PID
            then
              echo "Already Running!!"
              exit 1
            else
              # dead pid file - remove
              rm -f $JETTY_PID
            fi
          fi

          if [ x$JETTY_USER != x ]
          then
              touch $JETTY_PID
              chown $JETTY_USER $JETTY_PID
              su - $JETTY_USER -c "
                $RUN_CMD &
                PID=\$!
                disown \$PID
                echo \$PID > $JETTY_PID"
          else
              $RUN_CMD &
              PID=$!
              disown $PID
              echo $PID > $JETTY_PID
          fi

          echo "STARTED Jetty `date`"
        fi

        ;;

  stop)
        echo -n "Stopping Jetty: "
	if [ "$START_STOP_DAEMON" = "1" ] && type start-stop-daemon > /dev/null 2>&1; then
	  start-stop-daemon -K -p $JETTY_PID -d $JETTY_HOME -a $JAVA -s HUP
	  sleep 1
	  if running $JETTY_PID
	  then
	      sleep 3
	      if running $JETTY_PID
	      then
		  sleep 30
	          if running $JETTY_PID
	          then
	             start-stop-daemon -K -p $JETTY_PID -d $JETTY_HOME -a $JAVA -s KILL
		  fi
              fi
	  fi

	  rm -f $JETTY_PID
          echo OK
	else
	  PID=`cat $JETTY_PID 2>/dev/null`
          TIMEOUT=30
          while running $JETTY_PID && [ $TIMEOUT -gt 0 ]
          do
            kill $PID 2>/dev/null
            sleep 1
            let TIMEOUT=$TIMEOUT-1
          done

          [ $TIMEOUT -gt 0 ] || kill -9 $PID 2>/dev/null

	  rm -f $JETTY_PID
          echo OK
	fi
        ;;

  restart)
        JETTY_SH=$0
        if [ ! -f $JETTY_SH ]; then
          if [ ! -f $JETTY_HOME/bin/jetty.sh ]; then
            echo "$JETTY_HOME/bin/jetty.sh does not exist."
            exit 1
          fi
          JETTY_SH=$JETTY_HOME/bin/jetty.sh
        fi
        $JETTY_SH stop $*
        sleep 5
        $JETTY_SH start $*
        ;;

  supervise)
       #
       # Under control of daemontools supervise monitor which
       # handles restarts and shutdowns via the svc program.
       #
         exec $RUN_CMD
         ;;

  run|demo)
        echo "Running Jetty: "

        if [ -f $JETTY_PID ]
        then
            if running $JETTY_PID
            then
              echo "Already Running!!"
              exit 1
            else
              # dead pid file - remove
              rm -f $JETTY_PID
            fi
        fi

        exec $RUN_CMD
        ;;

  check)
        echo "Checking arguments to Jetty: "
        echo "JETTY_HOME     =  $JETTY_HOME"
        echo "JETTY_CONF     =  $JETTY_CONF"
        echo "JETTY_RUN      =  $JETTY_RUN"
        echo "JETTY_PID      =  $JETTY_PID"
        echo "JETTY_PORT     =  $JETTY_PORT"
        echo "JETTY_LOGS     =  $JETTY_LOGS"
        echo "CONFIGS        =  $CONFIGS"
        echo "JAVA_OPTIONS   =  $JAVA_OPTIONS"
        echo "JAVA           =  $JAVA"
        echo "CLASSPATH      =  $CLASSPATH"
        echo "RUN_CMD        =  $RUN_CMD"
        echo

        if [ -f $JETTY_PID ]
        then
            echo "Jetty running pid="`cat $JETTY_PID`
            exit 0
        fi
        exit 1
        ;;

*)
        usage
	;;
esac

exit 0

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


comments for functions

comments for functions

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/dagregor/modemstats.git/'


updated powerlevel script

updated powerlevel script

mkdir $ZSH_CUSTOM/themes
curl -s -L -o powerlevel10k.tar.gz https://github.com/romkatv/powerlevel10k/archive/master.tar.gz
chezmoi import --strip-components 1 --destination $ZSH_CUSTOM/themes/powerlevel10k powerlevel10k.tar.gz
rm powerlevel10k.tar.gz

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


Fixed missing newline on output

Fixed missing newline on output

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/SpinStabilized/my_bash.git/'


start-mac

start-mac

fatal: Invalid path '/MAC': No such file or directory


Create restart.sh

Create restart.sh

#!/bin/bash
if  pgrep node > /dev/null
then
        pkill node && screen -L -dmS pokemonshowdown node app.js &
else
        screen -L -dmS pokemonshowdown node app.js &
fi

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


add rostopicecho

add rostopicecho

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


removed quotes to solve an issue with moving the font

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


druid: add an env variable to allow hostname with ipaddress

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/stems/docker-druid.git/'


add option to set host/port

add option to set host/port

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/vistadataproject/metaPureJS.git/'


Finished install Script for Ubuntu

Finished install Script for Ubuntu

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/mgattozzi/bspwm_config.git/'


Add hexdump image creation tool

Add hexdump image creation tool

Signed-off-by: Jan Vesely <ed664c4bb5cadd95cb7521d1190a56e280fa6954@rutgers.edu>

#!/bin/sh
if [ "x$1" == "x" ]; then
	echo "Please provide an argument or two"
	return 1;
fi

TARGET=$2

if [ "x$TARGET" == "x" ]; then
	TARGET=`basename "$1"`.binhex
fi

TMPFILE=`mktemp`

echo "Converting $1 to $TARGET"

objcopy -j.text -O binary "$1" "$TMPFILE"
hexdump -v -e '"0x%08x\n"' "$TMPFILE" > "$TARGET"

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


Don't use uncreated alias

Don't use uncreated alias

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/Unbiasify/unbiasify.git/'


Add a simple script to determine the door status and send signed HTTP requests.

#!/bin/sh
#
# Read door status and, if changed, send an HTTP request to a web service
# informing it thusly.

. "$HOME/.doorky/config"

if [ x"$DOORSTATUS_SERVER" = x ]
then
	echo "Please set DOORSTATUS_SERVER in ~/.doorky/config" 1>&2
	exit 1
fi

if [ x"$NTP_SERVER" = x ]
then
	echo "Please set NTP_SERVER in ~/.doorky/config" 1>&2
	exit 1
fi

if ! test -f "$HOME/.doorky/secret"
then
	echo "Missing ~/.doorky/secret" 1>&2
	exit 1
fi

oldstate=x
ntpdate -s "$NTP_SERVER"

while true
do
	newstate=$(gpioctl 2)

	if [ x"$oldstate" = x"$newstate" ]
	then
		:
	else
		# Hash the new value and the current time stamp
		# and enc
		ts=$(date +%s)
		hash="$(echo -n "$newstate\n$ts" | openssl sha1 -sha256 -binary | openssl aes-256-cbc -kfile "$HOME/.doorky/secret" -md sha256 -e -base64 | tr -d "\n")"
		ftp -i -o /dev/null "http://$DOORSTATUS_SERVER/api/doorstatus?val=$newstate&ts=$ts&hash=$hash" > /dev/null 2>&1
		if [ x"$?" == 0 ]
		then
			oldstate="$newstate"
		fi
	fi

	ntpdate -s "$NTP_SERVER"
	sleep 30
done

error: pathspec 'sender/send-doorstatus.sh' did not match any file(s) known to git


Only start collectd.

Only start collectd.

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/stephen-soltesz/utility-support.git/'


feat: add deno completions zsh plugin

feat: add deno completions zsh plugin

#compdef deno

autoload -U is-at-least

_deno() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
":: :_deno_commands" \
"*::: :->deno" \
&& ret=0
    case $state in
    (deno)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:deno-command-$line[1]:"
        case $line[1] in
            (bundle)
_arguments "${_arguments_options[@]}" \
'--cert=[Load certificate authority from PEM encoded file]' \
'--importmap=[UNSTABLE: Load import map file]' \
'-c+[Load tsconfig.json configuration file]' \
'--config=[Load tsconfig.json configuration file]' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--unstable[Enable unstable APIs]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
':source_file:_files' \
'::out_file:_files' \
&& ret=0
;;
(cache)
_arguments "${_arguments_options[@]}" \
'-r+[Reload source code cache (recompile TypeScript)]' \
'--reload=[Reload source code cache (recompile TypeScript)]' \
'--lock=[Check the specified lock file]' \
'--importmap=[UNSTABLE: Load import map file]' \
'-c+[Load tsconfig.json configuration file]' \
'--config=[Load tsconfig.json configuration file]' \
'--cert=[Load certificate authority from PEM encoded file]' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--lock-write[Write lock file. Use with --lock.]' \
'--unstable[Enable unstable APIs]' \
'--no-remote[Do not resolve remote modules]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
':file:_files' \
&& ret=0
;;
(completions)
_arguments "${_arguments_options[@]}" \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
':shell:(zsh bash fish powershell elvish)' \
&& ret=0
;;
(doc)
_arguments "${_arguments_options[@]}" \
'-r+[Reload source code cache (recompile TypeScript)]' \
'--reload=[Reload source code cache (recompile TypeScript)]' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--unstable[Enable unstable APIs]' \
'--json[Output documentation in JSON format.]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
'::source_file:_files' \
'::filter -- Dot separated path to symbol.:_files' \
&& ret=0
;;
(eval)
_arguments "${_arguments_options[@]}" \
'--inspect=[activate inspector on host:port (default: 127.0.0.1:9229)]' \
'--inspect-brk=[activate inspector on host:port and break at start of user script]' \
'--cert=[Load certificate authority from PEM encoded file]' \
'--v8-flags=[Set V8 command line options. For help: --v8-flags=--help]' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--unstable[Enable unstable APIs]' \
'-T[Treat eval input as TypeScript]' \
'--ts[Treat eval input as TypeScript]' \
'-p[print result to stdout]' \
'--print[print result to stdout]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
':code:_files' \
&& ret=0
;;
(fmt)
_arguments "${_arguments_options[@]}" \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--check[Check if the source files are formatted.]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
'::files:_files' \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" \
'--cert=[Load certificate authority from PEM encoded file]' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--unstable[Enable unstable APIs]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
'::file:_files' \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" \
'--allow-read=[Allow file system read access]' \
'--allow-write=[Allow file system write access]' \
'--allow-net=[Allow network access]' \
'-n+[Executable file name]' \
'--name=[Executable file name]' \
'--root=[Installation root]' \
'--cert=[Load certificate authority from PEM encoded file]' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--allow-env[Allow environment access]' \
'--allow-run[Allow running subprocesses]' \
'--allow-plugin[Allow loading plugins]' \
'--allow-hrtime[Allow high resolution time measurement]' \
'-A[Allow all permissions]' \
'--allow-all[Allow all permissions]' \
'-f[Forcefully overwrite existing installation]' \
'--force[Forcefully overwrite existing installation]' \
'--unstable[Enable unstable APIs]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
':cmd:_files' \
&& ret=0
;;
(lint)
_arguments "${_arguments_options[@]}" \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--unstable[Enable unstable APIs]' \
'--rules[List available rules]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
'::files:_files' \
&& ret=0
;;
(repl)
_arguments "${_arguments_options[@]}" \
'--inspect=[activate inspector on host:port (default: 127.0.0.1:9229)]' \
'--inspect-brk=[activate inspector on host:port and break at start of user script]' \
'--v8-flags=[Set V8 command line options. For help: --v8-flags=--help]' \
'--cert=[Load certificate authority from PEM encoded file]' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--unstable[Enable unstable APIs]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" \
'--inspect=[activate inspector on host:port (default: 127.0.0.1:9229)]' \
'--inspect-brk=[activate inspector on host:port and break at start of user script]' \
'--allow-read=[Allow file system read access]' \
'--allow-write=[Allow file system write access]' \
'--allow-net=[Allow network access]' \
'--importmap=[UNSTABLE: Load import map file]' \
'-r+[Reload source code cache (recompile TypeScript)]' \
'--reload=[Reload source code cache (recompile TypeScript)]' \
'-c+[Load tsconfig.json configuration file]' \
'--config=[Load tsconfig.json configuration file]' \
'--lock=[Check the specified lock file]' \
'--v8-flags=[Set V8 command line options. For help: --v8-flags=--help]' \
'--cert=[Load certificate authority from PEM encoded file]' \
'--seed=[Seed Math.random()]' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--allow-env[Allow environment access]' \
'--allow-run[Allow running subprocesses]' \
'--allow-plugin[Allow loading plugins]' \
'--allow-hrtime[Allow high resolution time measurement]' \
'-A[Allow all permissions]' \
'--allow-all[Allow all permissions]' \
'--unstable[Enable unstable APIs]' \
'--lock-write[Write lock file. Use with --lock.]' \
'--no-remote[Do not resolve remote modules]' \
'--cached-only[Require that remote dependencies are already cached]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
':script_arg -- script args:_files' \
&& ret=0
;;
(test)
_arguments "${_arguments_options[@]}" \
'--inspect=[activate inspector on host:port (default: 127.0.0.1:9229)]' \
'--inspect-brk=[activate inspector on host:port and break at start of user script]' \
'--allow-read=[Allow file system read access]' \
'--allow-write=[Allow file system write access]' \
'--allow-net=[Allow network access]' \
'--importmap=[UNSTABLE: Load import map file]' \
'-r+[Reload source code cache (recompile TypeScript)]' \
'--reload=[Reload source code cache (recompile TypeScript)]' \
'-c+[Load tsconfig.json configuration file]' \
'--config=[Load tsconfig.json configuration file]' \
'--lock=[Check the specified lock file]' \
'--v8-flags=[Set V8 command line options. For help: --v8-flags=--help]' \
'--cert=[Load certificate authority from PEM encoded file]' \
'--seed=[Seed Math.random()]' \
'--filter=[A pattern to filter the tests to run by]' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--allow-env[Allow environment access]' \
'--allow-run[Allow running subprocesses]' \
'--allow-plugin[Allow loading plugins]' \
'--allow-hrtime[Allow high resolution time measurement]' \
'-A[Allow all permissions]' \
'--allow-all[Allow all permissions]' \
'--unstable[Enable unstable APIs]' \
'--lock-write[Write lock file. Use with --lock.]' \
'--no-remote[Do not resolve remote modules]' \
'--cached-only[Require that remote dependencies are already cached]' \
'--failfast[Stop on first error]' \
'--allow-none[Don'\''t return error code if no test files are found]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
'::files -- List of file names to run:_files' \
&& ret=0
;;
(types)
_arguments "${_arguments_options[@]}" \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--unstable[Enable unstable APIs]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
&& ret=0
;;
(upgrade)
_arguments "${_arguments_options[@]}" \
'--version=[The version to upgrade to]' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--dry-run[Perform all checks without replacing old exe]' \
'-f[Replace current exe even if not out-of-date]' \
'--force[Replace current exe even if not out-of-date]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'-q[Suppress diagnostic output]' \
'--quiet[Suppress diagnostic output]' \
&& ret=0
;;
        esac
    ;;
esac
}

(( $+functions[_deno_commands] )) ||
_deno_commands() {
    local commands; commands=(
        "bundle:Bundle module and dependencies into single file" \
"cache:Cache the dependencies" \
"completions:Generate shell completions" \
"doc:Show documentation for a module" \
"eval:Eval script" \
"fmt:Format source files" \
"info:Show info about cache or info related to source file" \
"install:Install script as an executable" \
"lint:Lint source files" \
"repl:Read Eval Print Loop" \
"run:Run a program given a filename or url to the module. Use '-' as a filename to read from stdin." \
"test:Run tests" \
"types:Print runtime TypeScript declarations" \
"upgrade:Upgrade deno executable to given version" \
"help:Prints this message or the help of the given subcommand(s)" \
    )
    _describe -t commands 'deno commands' commands "$@"
}
(( $+functions[_deno__bundle_commands] )) ||
_deno__bundle_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno bundle commands' commands "$@"
}
(( $+functions[_deno__cache_commands] )) ||
_deno__cache_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno cache commands' commands "$@"
}
(( $+functions[_deno__completions_commands] )) ||
_deno__completions_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno completions commands' commands "$@"
}
(( $+functions[_deno__doc_commands] )) ||
_deno__doc_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno doc commands' commands "$@"
}
(( $+functions[_deno__eval_commands] )) ||
_deno__eval_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno eval commands' commands "$@"
}
(( $+functions[_deno__fmt_commands] )) ||
_deno__fmt_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno fmt commands' commands "$@"
}
(( $+functions[_deno__help_commands] )) ||
_deno__help_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno help commands' commands "$@"
}
(( $+functions[_deno__info_commands] )) ||
_deno__info_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno info commands' commands "$@"
}
(( $+functions[_deno__install_commands] )) ||
_deno__install_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno install commands' commands "$@"
}
(( $+functions[_deno__lint_commands] )) ||
_deno__lint_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno lint commands' commands "$@"
}
(( $+functions[_deno__repl_commands] )) ||
_deno__repl_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno repl commands' commands "$@"
}
(( $+functions[_deno__run_commands] )) ||
_deno__run_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno run commands' commands "$@"
}
(( $+functions[_deno__test_commands] )) ||
_deno__test_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno test commands' commands "$@"
}
(( $+functions[_deno__types_commands] )) ||
_deno__types_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno types commands' commands "$@"
}
(( $+functions[_deno__upgrade_commands] )) ||
_deno__upgrade_commands() {
    local commands; commands=(

    )
    _describe -t commands 'deno upgrade commands' commands "$@"
}

_deno "$@"

error: pathspec 'zsh/.zsh_plugin.d/_deno.plugin.zsh' did not match any file(s) known to git


Shell script to do TPC and ITS tracking V1 all at once

#!/bin/sh
DeleteOldFiles
# do simulation, digitization, reconstruction and tracking in TPC
aliroot -q AliTPCtracks.C
# do digitization in ITS
aliroot -q ITSHitsToDigits.C
# do reconstruction in ITS
aliroot -q ITSDigitsToClusters.C
# do tracking in ITS
aliroot -q ITStracks.C
aliroot -q ITStracking.C

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


Add script to run binary in simulation.

Add script to run binary in simulation.

# Runs a binary in simluation
# Usage:   bash run-sim.sh path/to/binary
# Example: bash run-sim.sh build/bin/fpgaNaive_sim

DEVICENUM=MAIA
NUMDEVICES=1
SLIC_CONF="default_engine_resource = 192.168.0.10"
MAXELEROSDIR_SIM=${MAXCOMPILERDIR}/lib/maxeleros-sim
MAXOS_SIM=${MAXELEROSDIR_SIM}/lib/libmaxeleros.so

prj=$1

maxcompilersim -n ${USER}a -c${DEVICENUM} -d${NUMDEVICES} restart
SLIC_CONF+="use_simulation=${USER}a" LD_PRELOAD=${MAXOS_SIM} ${prj} ${USER}a0:${USER}a
maxcompilersim -n ${USER}a -c${DEVICENUM} stop

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


Add script to configure Mac

Add script to configure Mac

#!/bin/sh

brew install ruby python python3 node git tmux

# Symlink configurations
ln -s ~/Code/dotfiles/sublime_text/Preferences.sublime-settings ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/Preferences.sublime-settings
ln -s ~/Code/dotfiles/.bash_profile ~/.bash_profile
ln -s ~/Code/dotfiles/.bashrc ~/.bashrc
ln -s ~/Code/dotfiles/.vimrc ~/.vimrc

# Make holding down a key work in Sublime Text vintage mode
defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false

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


Fix calling date command

Fix calling date command

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


Create Install.sh

Create Install.sh

v1.0

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/motherboard1999/MinecraftServerAutoInstall.git/'


always rebuild fixtures on CI

always rebuild fixtures on CI

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


removed font-bebas-neue

removed font-bebas-neue


Remove obsolete --all argument

Remove obsolete --all argument

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


Create header-boilerplate.sh

Create header-boilerplate.sh

#!/usr/bin/env bash
#===============================================================================
#         FILE: path/to/file.sh
#        USAGE: $0 <arg1> [<arg2>] etc
#  DESCRIPTION: Does this thing and that thing
#               Requires
#                - This requirement
#                - That requirement
#       AUTHOR: Jeffrey Silverman <jeff@blispay.com>
#    COPYRIGHT: Copyright (c) 2016, person/company
#      VERSION: 0.1.0
#      CREATED: YYYY-MM-DD
#    CHANGELOG: as required
#===============================================================================

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


Updated install script

Updated install 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/paolodedios/dot-files.git/'


if policy compilation fails, exit
torr.orig.1 is renamed

Signed-off-by: Dominick Grift <2abdb4d04bf3f7fa0abfd70dd782bba1774a9329@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/doverride/Scripts.git/'


install all script

install all script

#!/bin/sh
cd tasks && npm link
cd ../configs && npm link
cd ../ferad
npm link ferad-tasks
npm link ferad-configs
npm install

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


`install.sh`: Print an error and exit the script if $METHOD is set to something unexpected.

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/PeterDaveHelloKitchen/nvm.git/'