Changed some wording

Changed some wording

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


svn_direct_repo.sh

#!/bin/bash
svn switch --relocate svn+dcc://ssh.dcc.fc.up.pt/svnroot/middleware/trunk svn://khualquer/middleware/trunk

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


Fixes minor issue with build script that prevented image build.

#!/bin/bash
set -o errexit; # Fail build on first error, instead of carrying on by default

# Load the common build config
source config.sh;

mkdir -p "$ui_staging_path" "$node_staging_path" "$build_path" "$build_path/static";

### BUILD
# NodeJS backend compilation in staging
echo 'Building DataLab server backend...';
# Copy node .ts files to the backend staging area.
cp -rL "$server_root/src/node/." "$node_staging_path";
# Compile the typescript code in staging.
node_tsc_files=`find $node_staging_path -name '*.ts' | tr '\n' ' '`;
tsc $common_tsc_args --module commonjs $node_tsc_files;

# UI compilation in staging
echo 'Building DataLab server frontend...';
# Copy UI .ts files to the frontend staging area.
cp -rL "$server_root/src/ui/." "$ui_staging_path";
# Compile the typescript code in staging.
ui_tsc_files=`find $ui_staging_path -name '*.ts' | tr '\n' ' '`;
tsc $common_tsc_args --module amd $ui_tsc_files;

# Merge the compiled backend and frontend components into a single build where NodeJS is serving
# the static UI content directly.
#
# Copy the compiled backend .js from staging to the server build.
cp -rL $node_staging_path/* "$build_path";
# Copy the built UI with static assets to the /static content path of the server build.
cp -rL $ui_staging_path/* "$build_path/static";
# Remove the unneeded .ts files from the build path (both ui and node).
find "$build_path" -name '*.ts' | xargs rm;

echo 'Build complete!'

#!/bin/bash
set -o errexit; # Fail build on first error, instead of carrying on by default

# Load the common build config
source config.sh;

mkdir -p "$ui_staging_path" "$node_staging_path" "$build_path" "$build_path/static";

### BUILD
# NodeJS backend compilation in staging
echo 'Building DataLab server backend...';
# Copy node .ts files to the backend staging area.
cp -r "$server_root/src/node/." "$node_staging_path";
# Compile the typescript code in staging.
node_tsc_files=`find $node_staging_path -name '*.ts' | tr '\n' ' '`;
tsc $common_tsc_args --module commonjs $node_tsc_files;

# UI compilation in staging
echo 'Building DataLab server frontend...';
# Copy UI .ts files to the frontend staging area.
cp -r "$server_root/src/ui/." "$ui_staging_path";
# Compile the typescript code in staging.
ui_tsc_files=`find $ui_staging_path -name '*.ts' | tr '\n' ' '`;
tsc $common_tsc_args --module amd $ui_tsc_files;

# Merge the compiled backend and frontend components into a single build where NodeJS is serving
# the static UI content directly.
#
# Copy the compiled backend .js from staging to the server build.
cp -r $node_staging_path/* "$build_path";
# Copy the built UI with static assets to the /static content path of the server build.
cp -r $ui_staging_path/* "$build_path/static";
# Remove the unneeded .ts files from the build path (both ui and node).
find "$build_path" -name '*.ts' | xargs rm;

echo 'Build complete!'


Add script to download the data files for Main.hs

#!/bin/bash

if [ ! -d ./20_newsgroups ]; then
	wget http://qwone.com/~jason/20Newsgroups/20news-19997.tar.gz -O 20news-19997.tar.gz
    tar -xzvf 20news-19997.tar.gz
fi

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


Development script for testing changes locally.

Several ebuilds depend on vboot_reference, either by checking out the
vboot_reference repo and building it or by using the installed libs
during build time. To simplify catching problems in other ebuilds
while changing code in vboot_reference, this patch adds a new script
that tries to emerge all the affected ebuilds.

BUG=None
BRANCH=None
TEST=`../platform/vboot_reference/emerge_test.sh` inside and outside the chroot

Change-Id: I0e9e61c35cbb191e0dafa5f8fa1e74d80bb7f8d4
Reviewed-on: https://chromium-review.googlesource.com/214635
Tested-by: Alex Deymo <0bb68aca05e38f8ef6dec21b678bbb2a1f313713@chromium.org>
Reviewed-by: Bill Richardson <129945214b1d548d8e49b6c29c43094f8c78057f@chromium.org>

#!/bin/sh
# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Tests emerging all the ebuilds that use vboot_reference either as an
# ebuild dependency or by checking out the code and compiling it in a
# different ebuild. This is meant to be run from the chroot as part of testing
# a new change in vboot_reference.

# Required ebuilds:
TEST_EBUILDS="
  sys-boot/chromeos-bootimage
  sys-boot/coreboot
  sys-boot/depthcharge
  chromeos-base/chromeos-cryptohome
  chromeos-base/chromeos-ec
  chromeos-base/chromeos-installer
  chromeos-base/chromeos-initramfs
  chromeos-base/chromeos-login
  chromeos-base/update_engine
  chromeos-base/vboot_reference
  chromeos-base/verity
"

set -e

# Check running inside the chroot.
if [ ! -e /etc/cros_chroot_version ]; then
  echo "You must run this inside the chroot." >&2
  exit 1
fi

# Detect the target board.
if [ "x${BOARD}" == "x" ]; then
  if [ -e ~/trunk/src/scripts/.default_board ]; then
    BOARD="`cat ~/trunk/src/scripts/.default_board`"
  else
    echo "You must pass BOARD environment variable or set a default board." >&2
    exit 1
  fi
fi

VBOOT_REF_DIR="$(dirname "$0")"
echo "Running tests for board '${BOARD}' from ${VBOOT_REF_DIR}"

cd "${VBOOT_REF_DIR}"

echo "Running make runtests..."
make runtests -j32

echo "Removing build artifacts."
rm -rf build build-main

echo "Running emerge tests (runs cros_workon start)."
# Ignore errors about already working on those repos.
cros_workon-${BOARD} start ${TEST_EBUILDS} || true

USE=depthcharge emerge-${BOARD} ${TEST_EBUILDS}

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


emr debugging

emr debugging

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/tms1337/fuzzy-classification.git/'


add script to get mac addresses

add script to get mac addresses

#!/bin/sh -e

usage(){
    echo "Usage: ${0} VM_NAME"
}

if [ "${1}" = "" ]; then
    usage

    exit 1
fi

KEY="MAC"
VALUE=$(vboxmanage guestproperty enumerate "${1}" | grep "${KEY}")
VALUE="${VALUE#*value: }"
VALUE="${VALUE%%,*}"
echo ${VALUE}

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


Fix == (bash only, not sh)

Fix == (bash only, not sh)

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


add tool.imbh/search/bounce/xc30_bnce.sh

#PBS -N bounce
#PBS -l mppwidth=16
#PBS -j oe
##PBS -q large-b+
##PBS -q bulk-b+
#PBS -q short-b+
##PBS -q debug

## The number of processes must be 2^n.
## The number of "nnxxx" must be 2^n.

NPROCESS=16
export OMP_NUM_THREADS=1

itype=../r256k/run.cowd1.0_bh1e2_b04.00/t00/sph_t0056
fflag=1
nfile=72
xmin0=-2e9
ymin0=-2e9
xmax=1e11
width=4e9
#nnxxx=1024
nnxxx=512

cd $PBS_O_WORKDIR

echo "$itype"  > input.list
echo "$fflag $nfile" >> input.list
echo "$xmin0 $ymin0 $xmax" >> input.list
echo "$width $nnxxx" >> input.list

aprun -n $NPROCESS -d $OMP_NUM_THREADS ./run input.list

error: pathspec 'tool.imbh/search/bounce/xc30_bnce.sh' did not match any file(s) known to git


add integration network test

add integration network test

Signed-off-by: Ezra Silvera <f8f18e18bfea3951a4bc4c89067e8787c02dcd19@il.ibm.com>

#!/usr/bin/env bats

load ../../helpers
load ../mesos_helpers

function teardown() {
	swarm_manage_cleanup
	stop_mesos
	stop_docker
}

@test "mesos - docker network ls" {
	start_docker 2
	start_mesos
	swarm_manage

	run docker_swarm network ls
	echo $output
	[ "${#lines[@]}" -eq 7 ]
}

@test "mesos - docker network inspect" {
	start_docker_with_busybox 2
	start_mesos
	swarm_manage

	# run
	docker_swarm run -d -e constraint:node==node-0 busybox sleep 100

	run docker_swarm network inspect bridge
	[ "$status" -ne 0 ]

	run docker_swarm network inspect node-0/bridge
	[[ "${output}" != *"\"Containers\": {}"* ]]

	diff <(docker_swarm network inspect node-0/bridge) <(docker -H ${HOSTS[0]} network inspect bridge)
}

@test "mesos - docker network create" {
	start_docker 2
	start_mesos
	swarm_manage

	run docker_swarm network ls
	[ "${#lines[@]}" -eq 7 ]

	docker_swarm network create -d bridge test1
	run docker_swarm network ls
	[ "${#lines[@]}" -eq 8 ]

	docker_swarm network create -d bridge node-1/test2
	run docker_swarm network ls
	[ "${#lines[@]}" -eq 9 ]

	run docker_swarm network create -d bridge node-2/test3
	[ "$status" -ne 0 ]
}

@test "mesos - docker network rm" {
	start_docker_with_busybox 2
	start_mesos
	swarm_manage

	run docker_swarm network rm test_network
	[ "$status" -ne 0 ]

	run docker_swarm network rm bridge
	[ "$status" -ne 0 ]

	docker_swarm network create -d bridge node-0/test
	run docker_swarm network ls
	[ "${#lines[@]}" -eq 8 ]

	docker_swarm network rm node-0/test
	run docker_swarm network ls
	[ "${#lines[@]}" -eq 7 ]
}

@test "mesos - docker network disconnect connect" {
	start_docker_with_busybox 2
	start_mesos
	swarm_manage

	# run
	docker_swarm run -d --name test_container -e constraint:node==node-0 busybox sleep 100

	run docker_swarm network inspect node-0/bridge
	[[ "${output}" != *"\"Containers\": {}"* ]]

	docker_swarm network disconnect node-0/bridge test_container

	run docker_swarm network inspect node-0/bridge
	[[ "${output}" == *"\"Containers\": {}"* ]]

	docker_swarm network connect node-0/bridge test_container

	run docker_swarm network inspect node-0/bridge
	[[ "${output}" != *"\"Containers\": {}"* ]]

	docker_swarm rm -f test_container

	run docker_swarm network inspect node-0/bridge
	[[ "${output}" == *"\"Containers\": {}"* ]]
}

error: pathspec 'test/integration/mesos/api/network.bats' did not match any file(s) known to git


output patch rejects as unified diffs

output patch rejects as unified diffs

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/pools/JaikuEngine.git/'


Script for recreating all services.

Script for recreating all services.

#!/usr/bin/env bash

set +x

# Delete everything.
kubectl delete deployment,service,rs --all

# Recreate all services.
kubectl apply -f volumes -f pods-services

# Show system status.
kubectl get deployment,service,rs,pods

# Show nginx endpoint.
minikube service nginx --url

# Open default browser to Nginx
minikube service nginx

error: pathspec 'k8-minikube/recreate.sh' did not match any file(s) known to git


Create build_libcpptraj.sh

Create build_libcpptraj.sh

#!/bin/shh

git clone https://github.com/Amber-MD/conda-recipes
cd conda-recipes
conda build libcpptraj

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


Add script for packaged builds on Linux

Add script for packaged builds on Linux

#!/bin/sh

# Build RPMs for Redhat Enterprise Linux and clones
if [ -f /etc/redhat-release ]; then
    # Fake a BUILD-ID
    date +'%Y%m%d%H%M%s' > BUILD-ID
    export TMP='/tmp'
    tar cfz "${TMP}/condor.tar.gz" *
    build/packaging/srpm/nmibuilduwrpm.sh
    exit 0
fi

echo 'Unsupported Linux Release'
exit 1

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


[c] test runner script

[c] test runner script

#!bin/sh

#export PATH in cygwin or LD_LIBRARY_PATH on linux
export CMOCKA_MESSAGE_OUTPUT=XML
export CMOCKA_XML_FILE=result.xml
./test_a

error: pathspec 'c/cmocka/runtest.sh' did not match any file(s) known to git


remove settings of opp.zsh

remove settings of opp.zsh

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


added test runner script

added test runner script

#!/bin/bash
set -e

RESULTS_FOLDER="results"
#Work in temporal directory
if [ -a $RESULTS_FOLDER ]; then
		echo "cannot create directory named \""$RESULTS_FOLDER"\": file already exists"
		exit 1
fi

mkdir $RESULTS_FOLDER
cd $RESULTS_FOLDER

#Load image for this project

wget -O - get.pharo.org/20+vm | bash
./pharo Pharo.image save PharoCandleBootstrap --delete-old

#Load stable version of the monticello configuration, according to this git sources
REPO=http://smalltalkhub.com/mc/Guille/Seed/main
./pharo PharoCandleBootstrap.image config $REPO ConfigurationOfHazelnut --install=stable

echo "Configuration Loaded. running tests"

./pharo PharoCandleBootstrap.image test --junit-xml-output "(Seed.*)|(AtomObjectSpaces.*)"

echo "Script created and loaded. Finished! :D"

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


Add some logging

Add some logging

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/Netflix/netflixoss-build-infrastructure.git/'


Add deploy_gh_pages.sh

Add deploy_gh_pages.sh

#!/usr/bin/env bash

set -e

git fetch
git checkout gh-pages
git pull origin gh-pages

git merge origin/master --commit --stat

webpack -p

cp dist/bundle.js bundle.js

git add bundle.js
git commit

git push origin gh-pages

git checkout -

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


Added bundle script to quickly compile, bundle and copy all bundles into directory

#!/bin/bash

ROOT="../implementation"
TARGET="./"

(cd $ROOT && mvn compile -P all)
(cd $ROOT && mvn org.apache.felix:maven-bundle-plugin:bundle -P all)

cp "$ROOT/pubsub/javaserializer/target/java-serializer-0.1.jar" $TARGET
cp "$ROOT/pubsub/rabbitmq/subscriber/target/rabbitmq-subscriber-0.1.jar" $TARGET
cp "$ROOT/pubsub/rabbitmq/publisher/target/rabbitmq-publisher-0.1.jar" $TARGET
cp "$ROOT/physicsengine/target/physicsengine-0.1.jar" $TARGET

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


Added function to get keyword from fits header.

function get_keyword_from_fits_header
{
    #use only the packaged version of wcstools
    WCSTOOLS=wcstools-local/bin

    if (( $# != 2 )); then
	echo "Function get_keyword_from_fits_header requires two arguments:"
	echo "get_keyword_from_fits_header fits-file keyword"
	exit 1
    fi

    file=$1
    keyword=$2

    echo $($WCSTOOLS/gethead -b $file $keyword)
    return
}

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


Add M-W dict lookup sh script

Add M-W dict lookup sh script

#!/bin/bash

word=$(echo $(xsel) | xargs | sed -e 's/ /-/g' | tr '[:upper:]' '[:lower:]')
urlhead='http://www.merriam-webster.com/dictionary'
exec xdg-open "$urlhead/$word" &>/dev/null

# vim: set ft=sh:

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


fedora: revise help

fedora: revise help

this patch adds usage of -k and -K options into help

Change-Id: If3c82450b26adae7f0c3a70e6df911c7ec479cb1
Signed-off-by: Jae-young Hwang <5e42eac44e565adc88c63aa294a919bca487d0f7@samsung.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/SamsungARTIK/build-artik.git/'


adding bumpver_isis.sh script

adding bumpver_isis.sh script

VERSION=$1

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

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

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

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

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


retrieve sha properly

retrieve sha properly

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


Add script to run_tests

Add script to run_tests

#!/bin/bash

./src/prepare_galaxy.sh run_test

echo "TO DO : Launch tests on toy dataset"

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


gluster支持多IP的节点

gluster支持多IP的节点

#!/bin/bash
go build src/gapp/gluster/gluster.go
sshpass -p 123456 scp -P 22 ./gluster john@192.168.2.147:/home/john/gluster
sshpass -p 123456 scp -P 22 ./gluster john@192.168.2.186:/home/john/gluster
sshpass -p 123456 scp -P 22 ./gluster john@192.168.2.196:/home/john/gluster

sshpass -p 123456 scp -P 22 ./src/gapp/gluster/gluster_server.json john@192.168.2.147:/home/john/gluster.json
sshpass -p 123456 scp -P 22 ./src/gapp/gluster/gluster_server.json john@192.168.2.186:/home/john/gluster.json
sshpass -p 123456 scp -P 22 ./src/gapp/gluster/gluster_server.json john@192.168.2.196:/home/john/gluster.json

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


Arch Linux switched from packer to aura

Arch Linux switched from packer to aura

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


autocommit

autocommit

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/undoware/www-undoware-ca.git/'


basic laravel installtion commands and php extension checking added

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/me-shaon/laravel_installer_script.git/'


add document generation script

add document generation script

#!/bin/sh
/usr/local/bin/appledoc --verbose xcode --exit-threshold 2 --ignore .m -o ./docs -p "AALaunchTransition" -v "0.0.1" -c "Ahmet AYGUN" --company-id "com.ahmetaygun" --keep-intermediate-files --keep-undocumented-objects --keep-undocumented-members --docsetutil-path /Applications/Xcode.app/Contents/Developer/usr/bin/docsetutil --publish-docset --docset-atom-filename "AALaunchTransition.atom" --docset-feed-url "http://ahmet.github.com/AALaunchTransition/%DOCSETATOMFILENAME" --docset-package-url "http://ahmet.github.com/AALaunchTransition/%DOCSETPACKAGEFILENAME" --docset-fallback-url "http://ahmet.github.com/AALaunchTransition/" AALaunchTransition

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


Create systeminfo.sh

Create systeminfo.sh

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


added jq stuff

added jq stuff

function extract-cwl-log-lines() {
    jq -r '.results[][] | select(.field=="@message") | .value'
}

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


update

update

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/Smiril/raspBian-scripts.git/'


Use correct scripts for stacking and playing.

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/lmjohns3/speech-experiment.git/'


Initial Linux build script

Initial Linux build script

The initial attempt at a linux build script.  For now this is very
simple: just build csc.exe on Linux.

. mono-snapshot 20150316155603
mono src/.nuget/NuGet.exe restore src/Roslyn.sln
cd src/Compilers/CSharp/csc
xbuild /p:SignAssembly=false /p:DebugSymbols=false /p:DefineConstants=COMPILERCORE,DEBUG csc.csproj

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


some git aliases

some git aliases

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


Fix hack/test.sh

Fix hack/test.sh

#!/bin/bash

OSDN_ROOT=$(readlink -f -- $(dirname "${BASH_SOURCE}")/..)

TEST_BASE_DIR=_output/src/github.com/openshift
# symlink $TEST_BASE_DIR/openshift-sdn to source dir
if [ ! -L "$TEST_BASE_DIR/openshift-sdn" ]; then
  mkdir -p $TEST_BASE_DIR || true
  pushd $TEST_BASE_DIR
  ln -s ../../../../ openshift-sdn || true
  popd
fi

GOPATH=${OSDN_ROOT}/_output:${OSDN_ROOT}/Godeps/_workspace
export GOPATH

go test -v github.com/openshift/openshift-sdn/pkg/netutils
go test -v github.com/openshift/openshift-sdn/pkg/netutils/server

#!/bin/bash

go test -v github.com/openshift/openshift-sdn/pkg/netutils
go test -v github.com/openshift/openshift-sdn/pkg/netutils/server


Netcat listen for syslog records from Cisco ASA on UDP port 51414.

#!/bin/bash
#
# This will be the script called by websocketd when
# mapping Cisco ASA firewall connections.
# In the ASA config use command: logging host inside 10.1.2.3 udp/51414
#
#
nc -ul 51414

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


Use more compact Go template for docker inspect

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/ricardobranco777/clean_registry.sh.git/'


Add chrome script for chromedriver support

#!/usr/bin/env bash

function watch_dog {
    local PID=$1
    local PROXY_PID=$2
    while true; do
        if ! kill -0 ${PID}; then
            kill ${PROXY_PID}
            break
        fi
        sleep 1
    done
}

CLI_PARAMS=$@

DEV_TOOLS_PROXY_BINARY_RE="--devtools-proxy-binary=([^[:space:]]+)"
if [[ ${CLI_PARAMS} =~ ${DEV_TOOLS_PROXY_BINARY_RE} ]]; then
    DEV_TOOLS_BINARY=${BASH_REMATCH[1]}
fi

DEV_TOOLS_PROXY_LOG_FILE_RE="--devtools-proxy-log-file=([^[:space:]]+)"
if [[ ${CLI_PARAMS} =~ ${DEV_TOOLS_PROXY_LOG_FILE_RE} ]]; then
    DEV_TOOLS_PROXY_LOG_FILE=${BASH_REMATCH[1]}
fi

if [ -z "$DEV_TOOLS_PROXY_LOG_FILE" ]; then
    DEV_TOOLS_PROXY_LOG_FILE=/dev/null
fi

if [ -n "$DEV_TOOLS_BINARY" ]; then
    CHROME_DEBUGGING_PORT=9222
    PROXY_DEBUGGING_PORT="--remote-debugging-port=([[:digit:]]+)"
    if [[ ${CLI_PARAMS} =~ ${PROXY_DEBUGGING_PORT} ]]; then
        PROXY_DEBUGGING_PORT=${BASH_REMATCH[1]}
    fi
    CLI_PARAMS=${CLI_PARAMS//--remote-debugging-port=${PROXY_DEBUGGING_PORT}/--remote-debugging-port=${CHROME_DEBUGGING_PORT}}

    ${DEV_TOOLS_BINARY} ${PROXY_DEBUGGING_PORT} > ${DEV_TOOLS_PROXY_LOG_FILE} 2>&1 &

    PROXY_PID=$!
    CURRENT_PID=$$
    ( > /dev/null 2>&1 < /dev/null watch_dog ${CURRENT_PID} ${PROXY_PID} & ) &
fi

KERNEL_NAME=$(uname --kernel-name)
if [ ${KERNEL_NAME} == 'Linux' ]; then
    CHROME_BINARY="/opt/google/chrome/google-chrome"
elif [ ${KERNEL_NAME} == 'Darwin' ]; then
    CHROME_BINARY="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
else
    echo "Unknown or unsupported OS: '${KERNEL_NAME}'" >&2
    exit 1
fi

exec -a "$0" "${CHROME_BINARY}" ${CLI_PARAMS}

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


AIX have a diffrent nm, use -B to get bsd like output

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

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


Set OOMScoreAdj to -500 for rancher-agent

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/Rucknar/rancher.git/'


cleanup script

cleanup 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/Malhoura/itmo-544-444-Launch-setup.git/'


Added export logic

Added export logic

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/jmatsu/shell_commons.git/'


added $DIRECTORY; fixed bugs

added $DIRECTORY; fixed bugs

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/Schwertspize/cuberite.git/'


Add `import-generic-collections.sh` script.

#!/usr/bin/env bash
lein run -m uxbox.cli.collimp/-main -- $@

error: pathspec 'backend/scripts/import-generic-collections.sh' did not match any file(s) known to git


BIGTOP-791. Bump Oozie to 3.3.0 (hue workaround)

#!/bin/sh

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

set -e

usage() {
  echo "
usage: $0 <options>
  Required not-so-options:
     --build-dir=DIR             path to Hue dist.dir
     --prefix=PREFIX             path to install into

  Optional options:
     --doc-dir=DIR               path to install docs into [/usr/share/doc/hue]
     --lib-dir=DIR               path to install Hue home [/usr/lib/hue]
     --installed-lib-dir=DIR     path where lib-dir will end up on target system
     --bin-dir=DIR               path to install bins [/usr/bin]
     ... [ see source for more similar options ]
  "
  exit 1
}

OPTS=$(getopt \
  -n $0 \
  -o '' \
  -l 'prefix:' \
  -l 'doc-dir:' \
  -l 'lib-dir:' \
  -l 'installed-lib-dir:' \
  -l 'bin-dir:' \
  -l 'build-dir:' -- "$@")

if [ $? != 0 ] ; then
    usage
fi

eval set -- "$OPTS"
while true ; do
    case "$1" in
        --prefix)
        PREFIX=$2 ; shift 2
        ;;
        --build-dir)
        BUILD_DIR=$2 ; shift 2
        ;;
        --doc-dir)
        DOC_DIR=$2 ; shift 2
        ;;
        --lib-dir)
        LIB_DIR=$2 ; shift 2
        ;;
        --installed-lib-dir)
        INSTALLED_LIB_DIR=$2 ; shift 2
        ;;
        --bin-dir)
        BIN_DIR=$2 ; shift 2
        ;;
        --)
        shift ; break
        ;;
        *)
        echo "Unknown option: $1"
        usage
        exit 1
        ;;
    esac
done

for var in PREFIX BUILD_DIR ; do
  if [ -z "$(eval "echo \$$var")" ]; then
    echo Missing param: $var
    usage
  fi
done

PREFIX=`echo $PREFIX | sed -e 's#/*$##'`
BUILD_DIR=`echo $BUILD_DIR | sed -e 's#/*$##'`

CONF_DIR=${CONF_DIR:-/etc/hue}
LIB_DIR=${LIB_DIR:-/usr/lib/hue}
VAR_DIR=${VAR_DIR:-/var/lib/hue}
LOG_DIR=${LOG_DIR:-/var/log/hue}
HADOOP_DIR=${HADOOP_DIR:-/usr/lib/hadoop/lib}

BUNDLED_BUILD_DIR=$PREFIX/$LIB_DIR/build

# Install all the files
(cd $BUILD_DIR ; PREFIX=`dirname $PREFIX/$LIB_DIR` make install)

# Install plugins
install -d -m 0755 $PREFIX/$HADOOP_DIR
ln -fs $LIB_DIR/desktop/libs/hadoop/java-lib/*plugin*jar $PREFIX/$HADOOP_DIR

# Hue Shell specific
install -d -m 0755 $PREFIX/$LIB_DIR/apps/shell/src/shell/build/
cp -f $BUILD_DIR/apps/shell/src/shell/build/setuid $PREFIX/$LIB_DIR/apps/shell/src/shell/build

# Remove Hue database and then recreate it, but with just the "right" apps
rm -f $PREFIX/$LIB_DIR/desktop/desktop.db $PREFIX/$LIB_DIR/app.reg
# FIXME: jobbrowser HUE-10
APPS="about filebrowser help jobsub proxy useradmin shell"
export DESKTOP_LOG_DIR=$BUILD_DIR
export DESKTOP_LOGLEVEL=WARN
export ROOT=$PREFIX/$LIB_DIR
for app in $APPS ; do
  (cd $PREFIX/$LIB_DIR ; ./build/env/bin/python tools/app_reg/app_reg.py --install apps/$app)
done
find $PREFIX/$LIB_DIR -iname \*.py[co]  -exec rm -f {} \;

# Making the resulting tree relocatable
(cd $PREFIX/$LIB_DIR ; bash tools/relocatable.sh)

# Move desktop.db to a var location
install -d -m 0755 $PREFIX/$VAR_DIR
mv $PREFIX/$LIB_DIR/desktop/desktop.db $PREFIX/$VAR_DIR

# Install conf files
install -d -m 0755 $PREFIX/$CONF_DIR
mv -f $PREFIX/$LIB_DIR/desktop/conf $PREFIX/${CONF_DIR}/conf.empty
ln -fs $CONF_DIR/conf $PREFIX/$LIB_DIR/desktop/conf
sed -i -e '/\[\[database\]\]/a\
    engine=sqlite3\
    name=/var/lib/hue/desktop.db' $PREFIX/${CONF_DIR}/conf.empty/hue.ini
sed -i -e '/\[\[yarn_clusters\]\]/,+20s@## submit_to=False@submit_to=True@' \
    $PREFIX/${CONF_DIR}/conf.empty/hue.ini
# Fix a redirection, since by default beeswax is not installed
sed -i -e '/meta http-equiv="refresh"/s#/beeswax#/about#' \
    $PREFIX/$LIB_DIR/desktop/core/src/desktop/templates/index.mako
# FIXME: HUE-880
sed -i -e '/"name": *"Hive"/,/description/s#"parameters":.*$#"parameters": "[{\\"name\\":\\"oozie.use.system.libpath\\",\\"value\\":\\"true\\"}]",#' \
       -e '/"name": *"Pig"/,/description/s#"parameters":.*$#"parameters": "[{\\"name\\":\\"oozie.use.system.libpath\\",\\"value\\":\\"true\\"}]",#' \
       -e '/"name": *"Sqoop"/,/description/s#"parameters":.*$#"parameters": "[{\\"name\\":\\"oozie.use.system.libpath\\",\\"value\\":\\"true\\"}]",#' \
       -e '/"name": *"DistCp"/,/description/s#"parameters":.*$#"parameters": "[{\\"name\\":\\"oozie.use.system.libpath\\",\\"value\\":\\"true\\"}]",#' \
    $PREFIX/$LIB_DIR/apps/oozie/src/oozie/fixtures/initial_example_data.json
sed -i -e '/jobbrowser.views/s#]*>##' \
    $PREFIX/$LIB_DIR/apps/oozie/src/oozie/templates/dashboard/list_oozie_workflow.mako

# Relink logs subdirectory just in case
install -d -m 0755 $PREFIX/$LOG_DIR
rm -rf $PREFIX/$LIB_DIR/desktop/logs
ln -s $LOG_DIR $PREFIX/$LIB_DIR/desktop/logs

# Make binary scripts executables
chmod 755 $BUNDLED_BUILD_DIR/env/bin/*

# Preparing filtering command
SED_FILT="-e s|$PREFIX|| -e s|$BUILD_DIR|$LIB_DIR|"

# Fix broken symlinks
for sm in $BUNDLED_BUILD_DIR/env/lib*; do
  if [ -h ${sm} ] ; then
    SM_ORIG_DEST_FILE=`ls -l "${sm}" | sed -e 's/.*-> //' `
    SM_DEST_FILE=`echo $SM_ORIG_DEST_FILE | sed $SED_FILT`

    rm ${sm}
    ln -s ${SM_DEST_FILE} ${sm}
  fi
done

# Fix broken python scripts
ALL_PTH_BORKED=`find $PREFIX -iname "*.pth"`
ALL_REG_BORKED=`find $PREFIX -iname "app.reg"`
ALL_PYTHON_BORKED=`find $PREFIX -iname "*.egg-link"`
HUE_BIN_SCRIPTS=$BUNDLED_BUILD_DIR/env/bin/*
HUE_EGG_SCRIPTS=$BUNDLED_BUILD_DIR/env/lib*/python*/site-packages/*/EGG-INFO/scripts/*
for file in $HUE_BIN_SCRIPTS $HUE_EGG_SCRIPTS $ALL_PTH_BORKED $ALL_REG_BORKED $ALL_PYTHON_BORKED ;
do
  if [ -f ${file} ]
  then
    sed -i $SED_FILT ${file}
  fi
done

# Remove bogus files
rm -fv `find $PREFIX -iname "build_log.txt"`

#!/bin/sh

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

set -e

usage() {
  echo "
usage: $0 <options>
  Required not-so-options:
     --build-dir=DIR             path to Hue dist.dir
     --prefix=PREFIX             path to install into

  Optional options:
     --doc-dir=DIR               path to install docs into [/usr/share/doc/hue]
     --lib-dir=DIR               path to install Hue home [/usr/lib/hue]
     --installed-lib-dir=DIR     path where lib-dir will end up on target system
     --bin-dir=DIR               path to install bins [/usr/bin]
     ... [ see source for more similar options ]
  "
  exit 1
}

OPTS=$(getopt \
  -n $0 \
  -o '' \
  -l 'prefix:' \
  -l 'doc-dir:' \
  -l 'lib-dir:' \
  -l 'installed-lib-dir:' \
  -l 'bin-dir:' \
  -l 'build-dir:' -- "$@")

if [ $? != 0 ] ; then
    usage
fi

eval set -- "$OPTS"
while true ; do
    case "$1" in
        --prefix)
        PREFIX=$2 ; shift 2
        ;;
        --build-dir)
        BUILD_DIR=$2 ; shift 2
        ;;
        --doc-dir)
        DOC_DIR=$2 ; shift 2
        ;;
        --lib-dir)
        LIB_DIR=$2 ; shift 2
        ;;
        --installed-lib-dir)
        INSTALLED_LIB_DIR=$2 ; shift 2
        ;;
        --bin-dir)
        BIN_DIR=$2 ; shift 2
        ;;
        --)
        shift ; break
        ;;
        *)
        echo "Unknown option: $1"
        usage
        exit 1
        ;;
    esac
done

for var in PREFIX BUILD_DIR ; do
  if [ -z "$(eval "echo \$$var")" ]; then
    echo Missing param: $var
    usage
  fi
done

PREFIX=`echo $PREFIX | sed -e 's#/*$##'`
BUILD_DIR=`echo $BUILD_DIR | sed -e 's#/*$##'`

CONF_DIR=${CONF_DIR:-/etc/hue}
LIB_DIR=${LIB_DIR:-/usr/lib/hue}
VAR_DIR=${VAR_DIR:-/var/lib/hue}
LOG_DIR=${LOG_DIR:-/var/log/hue}
HADOOP_DIR=${HADOOP_DIR:-/usr/lib/hadoop/lib}

BUNDLED_BUILD_DIR=$PREFIX/$LIB_DIR/build

# Install all the files
(cd $BUILD_DIR ; PREFIX=`dirname $PREFIX/$LIB_DIR` make install)

# Install plugins
install -d -m 0755 $PREFIX/$HADOOP_DIR
ln -fs $LIB_DIR/desktop/libs/hadoop/java-lib/*plugin*jar $PREFIX/$HADOOP_DIR

# Hue Shell specific
install -d -m 0755 $PREFIX/$LIB_DIR/apps/shell/src/shell/build/
cp -f $BUILD_DIR/apps/shell/src/shell/build/setuid $PREFIX/$LIB_DIR/apps/shell/src/shell/build

# Remove Hue database and then recreate it, but with just the "right" apps
rm -f $PREFIX/$LIB_DIR/desktop/desktop.db $PREFIX/$LIB_DIR/app.reg
# FIXME: jobbrowser HUE-10
APPS="about filebrowser help jobsub proxy useradmin shell"
export DESKTOP_LOG_DIR=$BUILD_DIR
export DESKTOP_LOGLEVEL=WARN
export ROOT=$PREFIX/$LIB_DIR
for app in $APPS ; do
  (cd $PREFIX/$LIB_DIR ; ./build/env/bin/python tools/app_reg/app_reg.py --install apps/$app)
done
find $PREFIX/$LIB_DIR -iname \*.py[co]  -exec rm -f {} \;

# Making the resulting tree relocatable
(cd $PREFIX/$LIB_DIR ; bash tools/relocatable.sh)

# Move desktop.db to a var location
install -d -m 0755 $PREFIX/$VAR_DIR
mv $PREFIX/$LIB_DIR/desktop/desktop.db $PREFIX/$VAR_DIR

# Install conf files
install -d -m 0755 $PREFIX/$CONF_DIR
mv -f $PREFIX/$LIB_DIR/desktop/conf $PREFIX/${CONF_DIR}/conf.empty
ln -fs $CONF_DIR/conf $PREFIX/$LIB_DIR/desktop/conf
sed -i -e '/\[\[database\]\]/a\
    engine=sqlite3\
    name=/var/lib/hue/desktop.db' $PREFIX/${CONF_DIR}/conf.empty/hue.ini
sed -i -e '/\[\[yarn_clusters\]\]/,+20s@## submit_to=False@submit_to=True@' \
    $PREFIX/${CONF_DIR}/conf.empty/hue.ini
# Fix a redirection, since by default beeswax is not installed
sed -i -e '/meta http-equiv="refresh"/s#/beeswax#/about#' \
    $PREFIX/$LIB_DIR/desktop/core/src/desktop/templates/index.mako

# Relink logs subdirectory just in case
install -d -m 0755 $PREFIX/$LOG_DIR
rm -rf $PREFIX/$LIB_DIR/desktop/logs
ln -s $LOG_DIR $PREFIX/$LIB_DIR/desktop/logs

# Make binary scripts executables
chmod 755 $BUNDLED_BUILD_DIR/env/bin/*

# Preparing filtering command
SED_FILT="-e s|$PREFIX|| -e s|$BUILD_DIR|$LIB_DIR|"

# Fix broken symlinks
for sm in $BUNDLED_BUILD_DIR/env/lib*; do
  if [ -h ${sm} ] ; then
    SM_ORIG_DEST_FILE=`ls -l "${sm}" | sed -e 's/.*-> //' `
    SM_DEST_FILE=`echo $SM_ORIG_DEST_FILE | sed $SED_FILT`

    rm ${sm}
    ln -s ${SM_DEST_FILE} ${sm}
  fi
done

# Fix broken python scripts
ALL_PTH_BORKED=`find $PREFIX -iname "*.pth"`
ALL_REG_BORKED=`find $PREFIX -iname "app.reg"`
ALL_PYTHON_BORKED=`find $PREFIX -iname "*.egg-link"`
HUE_BIN_SCRIPTS=$BUNDLED_BUILD_DIR/env/bin/*
HUE_EGG_SCRIPTS=$BUNDLED_BUILD_DIR/env/lib*/python*/site-packages/*/EGG-INFO/scripts/*
for file in $HUE_BIN_SCRIPTS $HUE_EGG_SCRIPTS $ALL_PTH_BORKED $ALL_REG_BORKED $ALL_PYTHON_BORKED ;
do
  if [ -f ${file} ]
  then
    sed -i $SED_FILT ${file}
  fi
done

# Remove bogus files
rm -fv `find $PREFIX -iname "build_log.txt"`


Crear PDF mejorado

Crear PDF mejorado

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/danirtz/rescan.git/'


Redhat

Redhat

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/fwmeng88/Machine_Learning_at_McMaster_University.git/'


add stack script

add stack script

pass=$(perl -e 'print crypt($ARGV[0], "password")', $3)

expect -c "
spawn ssh $5@$1
expect -re \".*?assword.*?\"
send \"$2\n\"
expect -re \".*?root.*?\"
send \"useradd -M -p $pass $4\n\"
send \"echo DONE!!!\n\"
expect -re \"DONE!!!\""

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


syscall: adjust freebsd syscalls.master URL properly

R=golang-dev, devon.odell
CC=golang-dev
http://codereview.appspot.com/4552051

Committer: Russ Cox <5ad239cb8a44f659eaaee0aa1ea5b94947abe557@golang.org>

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/wesolows/golang-old.git/'


syscall: make use of signed char explicit in generating z-files on freebsd/arm

This CL is in preparation to make cgo work on freebsd/arm.

The signedness of C char might be a problem when we make bare syscall
APIs, Go structures, using built-in bootstrap scripts with cgo because
they do translate C stuff to Go stuff internally. For now almost all
the C compilers assume that the type of char will be unsigned on arm
by default but it makes a different view from amd64, 386.

This CL just passes -fsigned-char, let the type of char be signed,
option which is supported on both gcc and clang to the underlying C
compilers through cgo for avoiding such inconsistency on syscall API.

LGTM=iant
R=iant
CC=golang-codereviews
https://codereview.appspot.com/59740051

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/pombredanne/go-deleteme.git/'


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/h8liu/golang.git/'


Adding script to patch week data.

Adding script to patch week data.

#!/bin/bash

cd ~/hdx-monitor-funnel-stats

source venv/bin/activate
python patch_week.py

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


feat(compile): create script to replicate Compile + Javadoc in Bamboo

#!/bin/sh -e

WORKDIR="$1"; shift
MYDIR=`dirname $0`
MYDIR=`cd "$MYDIR"; pwd`

if [ -z "$WORKDIR" ] || [ ! -d "$WORKDIR" ]; then
	echo "usage: $0 <working-directory>" >&2
	echo "" >&2
	exit 1
fi

. "${MYDIR}/environment.sh"

"${WORKDIR}/bin/bamboo.pl" ${COMPILE_OPTIONS} ${SKIP_TESTS} -v clean install
pushd opennms-full-assembly
	"${WORKDIR}/bin/bamboo.pl" ${COMPILE_OPTIONS} ${SKIP_TESTS} -v clean install
popd
"${WORKDIR}/bin/bamboo.pl -Pbuild.bamboo -v javadoc:aggregate

tar -cvzf javadocs.tar.gz -C "${WORKDIR}/target/site/apidocs" .
"${MYDIR}"/generate-buildinfo.sh

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


Start sources for linux Good for GUI development

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


Convenience script for starting the whole testing software and opening the necessary browser interface. Only works if google chrome installed

#!/bin/bash

echo -e "Pick one serial port number:"

ls /dev/ttyACM*

read port_num

PORT=/dev/ttyACM$port_num

while true; do
    read -p "Start viewer?" yn
    case $yn in
        [Yy]* ) gnome-terminal -e "mongod"; cd NodeJS/Ardustat_Viewer; gnome-terminal -e "node view_server.js"; break;;
        [Nn]* ) break;;
        * ) echo "Please answer yes or no.";;
    esac
done

cd ../Ardustat_Control

gnome-terminal -e "node expresserver.js $PORT $((8888+$port_num))"

google-chrome "http://localhost:$((8888+$port_num))" "http://localhost:8000"

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


add additional nvm setup

add additional nvm setup

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/radix42/zcash-block-explorer.git/'


Add placeholder for shared functions

Add placeholder for shared functions

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


cleaner to simply exist if the watched file does not exist, you would not be able to know it's unique md5sum anyway.

#!/bin/bash
# note changes in a file
# you need to know the md5sum of the watchfile
# change watchfile or logfile variables to suit your needs

watchfile=/tmp/test.txt
logfile=/tmp/test.log
filemd5='76f0aa47381d7ee6e20ec3a9b11aecab'
date=$(/bin/date +%Y%m%d-%M%S)
writelog="/usr/bin/echo '${watchfile} has changed on ${date}' >> ${logfile}"
unmodified=$(md5sum $watchfile | grep $filemd5 | wc -l)

# fail and alert if the watchfile does not exist
{
if [ ! -f $watchfile ]; then
    echo "your watched file does not exist, create it and note md5sum"
    exit 0
fi
}

# create logfile if it doesn't exist
if [ ! -e $logfile ] ; then
   echo "creating log file $logfile" && touch $logfile
fi

# log if the file has changed
case $unmodified in
'0')
   $writelog
;;
esac

#!/bin/bash
# note changes in a file
# you need to know the md5sum of the watchfile
# change file or log variables to your liking

watchfile=/tmp/test.txt
logfile=/tmp/test.log
filemd5='d8e8fca2dc0f896fd7cb4cb0031ba249'
date=$(/bin/date +%Y%m%d-%M%S)
writelog="/usr/bin/echo '${watchfile} has changed on ${date}' >> ${logfile}"
unmodified=$(md5sum $watchfile | grep $filemd5 | wc -l)

# create watched file if it doesn't exist
if [ ! -e $watchfile ] ; then
   echo "your monitored file does not exist"
fi

# create logfile if it doesn't exist
if [ ! -e $logfile ] ; then
   echo "creating log file $logfile" && touch $logfile
fi

# log if the file has changed
case $unmodified in
'0')
   $writelog
;;
esac


modification des couleurs

modification des couleurs

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/Safirion/les-indemodables.git/'


اضافه کردن فایل Bash برای سینک کردن برنچ ها و اتوماتیک کردن پروسه

#!/usr/bin/env bash

branches='master' 'develop' 'newpost';

for branch in 'master' 'develop' 'newpost'
do
  git checkout ${branch}
  git pull origin ${branch}
done

echo "Fetched all branches and kept them in sync! Swtiching to newpost..."
git checkout newpost

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


Update sync_settings script

Update sync_settings script

"common" doesn't end in .core anymore

#!/bin/bash
###############################################################################
# Copyright (c) 2014, 2017 Ericsson and others
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
###############################################################################

# Synchronize the project settings for all plugins
# (by copying the contents of tmf.core's settings)

# Plugins from which we will copy the settings
RUNTIME_REFERENCE="tmf/org.eclipse.tracecompass.tmf.core"
TEST_REFERENCE="tmf/org.eclipse.tracecompass.tmf.core.tests"

RUNTIME_FILES=$RUNTIME_REFERENCE/.settings/*.prefs
TEST_FILES=$TEST_REFERENCE/.settings/*.prefs

# Runtime plugins
for DIR in */*.core */*.ui */*.common
do
  # Skip non-directories
  if [ ! -d $DIR ]; then
    continue
  fi

  # Don't copy over the same files
  if [ "$DIR" == "$RUNTIME_REFERENCE" ]; then
    continue
  fi

  for FILE in $RUNTIME_FILES
  do
    cp $FILE "$DIR/.settings/"
  done
done

# Test plugins
for DIR in */*.tests
do
  # Skip non-directories
  if [ ! -d $DIR ]; then
    continue
  fi

  # Don't copy over the same files
  if [ "$DIR" == "$TEST_REFERENCE" ]; then
    continue
  fi

  for FILE in $TEST_FILES
  do
    cp $FILE "$DIR/.settings/"
  done
done

#!/bin/bash
###############################################################################
# Copyright (c) 2014 Ericsson
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
#     Alexandre Montplaisir - Initial API and implementation
###############################################################################

# Synchronize the project settings for all plugins
# (by copying the contents of tmf.core's settings)

# Plugins from which we will copy the settings
RUNTIME_REFERENCE="tmf/org.eclipse.tracecompass.tmf.core"
TEST_REFERENCE="tmf/org.eclipse.tracecompass.tmf.core.tests"

RUNTIME_FILES=$RUNTIME_REFERENCE/.settings/*.prefs
TEST_FILES=$TEST_REFERENCE/.settings/*.prefs

# Runtime plugins
for DIR in */*.core */*.ui doc/org.eclipse.tracecompass.examples
do
  # Skip non-directories
  if [ ! -d $DIR ]; then
    continue
  fi

  # Don't copy over the same files
  if [ "$DIR" == "$RUNTIME_REFERENCE" ]; then
    continue
  fi

  for FILE in $RUNTIME_FILES
  do
    cp $FILE "$DIR/.settings/"
  done
done

# Test plugins
for DIR in */*.tests */*.alltests
do
  # Skip non-directories
  if [ ! -d $DIR ]; then
    continue
  fi

  # Don't copy over the same files
  if [ "$DIR" == "$TEST_REFERENCE" ]; then
    continue
  fi

  for FILE in $TEST_FILES
  do
    cp $FILE "$DIR/.settings/"
  done
done


Add texlive stuff to my mac

Add texlive stuff to my mac

texpath=/usr/local/texlive/2019

if [[ -d "$texpath" ]]; then

  tex_path_fix() {
    local type="$1"
    local path="${!type}"
    local prepend="$2"
    case "$path" in
      *"$prepend"* ) true ;;
      * ) eval export "$type=$prepend:$path" ;;
    esac
  }

  tex_path_fix MANPATH "$texpath"/texmf-dist/doc/man
  tex_path_fix INFOPATH "$texpath"/texmf-dist/doc/info
  tex_path_fix PATH "$texpath"/bin/x86_64-darwinlegacy

  unset tex_path_fix

fi

error: pathspec 'links/bash/mac/tex.bash' did not match any file(s) known to git


final verison of launch in one command

final verison of launch in one 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/samli6479/bigdata.git/'


Add line to fix keyboard layout mappings.

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/julianespinel/configfiles.git/'


Create forward.sh

Create forward.sh

#!/bin/bash

for name in $(cat list.txt); do
    host $name.megacorpone.com|grep "has address" |cut -d" " -f1,4
done

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


Adding fish to ghostbsd user

Adding fish to ghostbsd user

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/asxbsd/ghostbsd-build.git/'


Add update_weatherco_fullforecast.sh

Add update_weatherco_fullforecast.sh

#!/bin/sh

wget -q -O - http://localhost/stalker_portal/server/tasks/update_weatherco_fullforecast.php && echo 1 || echo 0

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


Create getImgur.v3.sh

Create getImgur.v3.sh

#!/bin/bash
# File: getimgur.sh
# Version: 3.0
# Author: Jason Charney (jrcharneyATgmailDOTcom)
# WARNING: You MUST install the zip package if you want to create a zip file or cbz file.
# Date: 22 Aug 2013
# Info: Downloads an ENTIRE Imgur album accorind to its file manifest hidden on the page
#       AND downloads them in the order they appear. JPG and PNG albums will be saved
#       as compressed comic book archives (.cbz) so that you can open them with evince as photo albums.
# Differences since the last version:
# * Random non-mobile user-strings complements of UserAgentString.com.
#	(This should prevent servers from thinking we are webscraping, which some sites do not like.)
#	Also, we don't have to be an iPad anymore.
# * Better regular expressions for reading the imgur manifest.
# * Replaced much of the inline functions with better bash syntax.
# Features:
# * Albums that contain no animated gifs are compressed into a zipped comic book archive (.cbz)
# * Prompts! Request a set of images using the URL or Album name. Requests will not appear in bash history.
# * Solid wget usage.
# TODO: Create a common source file that uses some of the functions from this script in other scripts.
#	 According to the guys in Freenode's ##Linux chatroom, using
#		source common_functions.sh
#	 could work, provided common_functions.sh is all functions. Which shouldn't be a problem.
# TODO: As an alternative, we could just input the URL and strip it out. (Note: not as private.)
# TODO: Call useage function with a -h option)
# NOTE: As a reminder as to which functions must stay in this file, I will mark the local files.

. webget.sh	# NEW library for grabbing stuff off the web. This should be reusable.

# ----- DECLARED GLOBAL VARIABLES -----

fg1="\x1b[1;31m";	# red
fg2="\x1b[1;32m";	# green
fg3="\x1b[1;33m";	# yellow
fg4="\x1b[0;33m";
rst="\x1b[0m";		# reset

# TODO: Randomly generate a user agent, for now, you are an iPad
# TODO: Grab a user agent from http://www.useragentstring.com/
ipadua="Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405"

# ----- INLINE FUNCTIONS ----

# Func: isAlbumURL
# Info: Return true if $1 begins with the Album URL prefix
# LOCAL
isAlbumURL(){
 [[ "${1}" =~ http://imgur.com/a/* ]] && true || false
}

# Func: toAlbumURL
# Info: If a string is not an AlbumURL, make it one.
# LOCAL
toAlbumURL(){
 [[ "${1}" =~ http://imgur.com/a/* ]] && echo "${1}" || echo "http://imgur.com/a/${1}"
}

# Func: toAlbumString
# Info: If a string is an AlbumURL, strip out the URL part and return the album name.
# LOCAL
toAlbumString(){
 [[ "${1}" =~ http://imgur.com/a/* ]] && echo "${1##*/}" || echo "${1}"
}

# Func: isImageURL
# Info: Test to see if a string is a image URL.
# LOCAL
isImageURL(){
 [[ "${1}" =~ http://i.imgur.com/* ]] && true || false
}

# Func: toImageURL
# Info: If a string is not an ImageURL, make it one.
# LOCAL
toImageURL(){
 [[ "${1}" =~ http://i.imgur.com/* ]] && echo "${1}" || echo "http://i.imgur.com/${1}"
}

# Func: toImageString
# Info: If a string is an ImageURL, strip out the URL part and return the image name.
# LOCAL
toImageString(){
 [[ "${1}" =~ http://i.imgur.com/* ]] && echo "${1##*/}" || echo "${1}"
}

# Func: getImageExt
# NOTE: Replaced with gfx from webget.sh
# Info: get the file extension and make it look pretty
# Args: "${1}" is a file name, not a URL
# TODO: See if this function can be replaced with the function in the webget.sh library
# getImageExt(){
#   local file=$(toImageString "${1}")			# Make sure that file is a file not a URL
#   local ext=${file##*.}				# get the file extension
#   echo "${ext,,}"					# convert it to lowercase and return it
# }

# ---- BLOCK FUNCTIONS ----

# Func: usage
usage(){
 cat <<USAGE
$0 - Fetch whole galleries from Imgur.com and save them as Comic Book Archives (.cbz)

WHY USE THIS?
* Sometimes Imgur will state it can't download some galleries due to some error.
	This program grabs all the images from the gallery with no strings attached.
* Imgur's archives are always ZIP files.
	This program does one better and saves them as CBZ files that you can browse
	like a photo album using a program for reading comic book files.
	I recommend using Evince since it can read CBZ, CBRs, PDFs, just about anything.
* Imgur names file names randomly even if they are supposed to be in a sequence.
	This program downloads files in the order the were meant to be in by renaming
	them with sequentially numbered names. WYSIWYG!
* Downloads are discrete.
	Run this program to download whole galleries without it showing up in browser
	or console history.

This program isn't perfect though...
* Galleries with animated GIFS won't be compressed into CBZ files.
	They will be saved into the gallery's download folder.
* I haven't run into any gallery that had corrupted images yet...so if anyone does
	let me know so that I can tweak this to do something like retry downloading
	the file or skipping it.

Have fun with this script!
USAGE
 exit 0
}

# Func: gf2 (getFile 2)
# Info: In this version, do not throw an exit whenever there is failure.
# $1 = The file to get
# $2 = The name to save it as (with path if necessary)
# $3 = ${row[1]} = the status of a gif if it is animated. (TODO: UH OH!)
# TODO: Find a more static way for checking if the directory of a file exists.
# TODO TODO TODO WARNING! THIS NEW VERSION OF THIS FUNCTION IS EXPERIMENTAL! TODO TODO TODO
# LOCAL (This version was meant for this script.)
# TODO: I should probably reintegrate this function's functionality into the only place that it is used.
gf2(){
 case "$#" in
  0) printf "ERROR: gf2 needs at least one argument to work."; exit 1;;
  1) # Download the file in the current directory
     wget -q -w 20 --random-wait --user-agent="${ua}" "${1}"
     [[ "$?" != "0" ]] && { printf "ERROR: gf could not fetch %s\n" "${1}"; exit 1; }
     ;;
  2) # Put the file at a specified location with a specific name
     local pn=${2%/*}					# The path of the new file
     local fn=${2##*/}					# The file name of the new file
     [[ "${pn}" == "${fn}" ]] && pn="."			# if $pn is the same as $fn, use the current directory
     [[ ! -d "${pn}" ]] && mkdir -p "${pn}"		# if any of the folders in $pn do not exist, define them
     wget -q -w 20 --random-wait --user-agent="${ua}" -O "${pn}/${fn}" "${1}"
     [[ $? -eq 0 ]] && {							# TODO: This code block is experimental
      printf "\x1b[1;32mSUCCESS!\x1b[0m Saved as "
      # TODO: What about ${row[1]}?
      [[ "${row[1]}" -eq 1 ]] && printf "\x1b[0;33m" || printf "\x1b[1;33m"	# dim an item if it is an animated gif.
      printf "%s/%s\x1b[0m\n" "${dld}" "${fname}"
     } || printf "\x1b[1;31mFAILED!\x1b[0m\n"
     ;;
  *) printf "ERROR: gf2 can't handle more than two arguments...yet."; exit 1;;
 esac
}

# Func: xp ("Check Page")
# Info: Check to see if a URL exists before going through with this program.
# CAUTION: Some sites do not like spiders!
# NOTE: The HTTP request response may have a different format depending on what website is used.
# NOTE: To force the spider to work with sed, redirect the standard error to standard output using "2>&1"
# NOTE: This function is really designed for imgur.com, YMMV with other sites.
# LOCAL ( I should make a version that works for all types of servers.)
# TODO: rename this function to xp2 and change all instance of xp to xp2)
xp(){
 local response=$( wget -q -w 20 --random-wait --user-agent="${ua}" --server-response --spider "${1}" 2>&1 | sed -n -r 's/  HTTP\/1.1 (.*)/\1/p')
 case "$response" in
  200\ OK)         printf "\x1b[1;32mOK!\x1b[0m\n" "${1}" ;;
  404\ Not\ Found) printf "\x1b[1;31mNOT FOUND!\x1b[0m Aborting.\n"; exit 1 ;;
  *)               printf "\x1b[1;31mERROR: %s\x1b[0m Aborting.\n" "$response"; exit 1 ;;
 esac
}

# Func: getAlbumTitle
# Info: Fetch the title string of the album if there is one.
# Args: $1 = Album URL
# TODO: Fetch the title of the gallery. I haven't quite figured out how I should use this considering some galleries have ampersands, hypens, and brackets.
# NOTE: using gp like this is ideal for page fetching. Remember to write functions in this function's style.
# wget ...	- Fetch the file
# sed ...	- Find the line that has the data-title attribute
# awk ...	- Find the value of the data title
# sed ...	- Return the first line with that value
# sed ...	- Replace & with &
# LOCAL
getAlbumTitle(){
 gp "${1}" \
 | sed -n "/data\-title/p" \
 | awk 'BEGIN{FS="\""} /data\-title/{printf("%s\n",$6);}' \
 | sed -n '1p' \
 | sed -n -r 's/&/\&/g;p'
 # TODO: Add more sed filters when necessary
}

# Func: getAlbumManifest
# Info: Get the list of files that are part of this album.
# Args: $1 = The Album URL ($url)
# NOTE: We shouldn't have to worky about doing an error check (that is [[ #? -ne 0 ]]) since gp takes care of that.
# wget ... - get the manifest page
# sed  ... - extract the manifest from the page
# awk  ... - extract the names of the files from the manifest
# $( )     - make it a space separated string (Not in this version)
# Each row will have the file name + file ext and whether or not that file is animated.
# NOTE: For some reason, when the user agent is an iPad, the spaces in the mainfest are altered.
#	For that we need to alter the requested RE in the sed command. Which is much better.
# LOCAL
getAlbumManifest(){
 gp "${1}" \
 | sed -n -r '/images *:/p' \
 | awk 'BEGIN{RS="{";FS=","}
  function gs(f){return gensub(/\".+\":\"(.+)\"/,"\\1","g",f);}
  function gn(f){return gensub(/\".+\":([0-9]+)/,"\\1","g",f);}
  /^\"hash/{printf("%s%s\t%s\n",gs($1),gs($7),gn($8));}'
}

# File: getAniCt (get Animation Count)
# Info: Count the number of times in a provided manifest list that an animation has been found in the mainfest list.
# Args: $1 = manifest list
# LOCAL
getAniCt(){
 local tbl="${1}"				# assign the list string to the table variable
 local gifct=0					# Initialize the gif count
 IFSB=$IFS					# Back up the IFS variable
 IFS=$'\n'					# "array items (rows) are separated by newlines"
 tbl=( ${tbl} )					# convert table list string to an array

 for row in ${tbl[*]}; do
  IFS=$'\t'					# "row items (columns) are separated by tabs"
  row=( ${row} )				# "convert row string to row array"
  IFS=$'\n'					# "columns are separated by newlines"
  [[ "${row[1]}" -eq 1 ]] && ((gifct++));	# If a file is a gif, increment gifct
 done
 IFS=$IFSB					# Restore the IFS variable.

 echo "${gifct}"				# Return the number of animated gifs listed in the manifest
}

# Func: mgf (multi-gf or multi-get-file)
# Info: Using a provided list of file names, get each file.
# TODO: Instead of aborting the program here, list all the files that didn't download after all the files that were downloaded made it.
# TODO: Should I use the "local" modifier or will bash take care of that for me?
# TODO: There is a variable  called "cdnUrl", perhaps I should look into that just in case the default iurl is different.
# LOCAL
mgf(){
 local tbl="${1}"			# maifest data
 local dld="${2}"			# download directory
 local ct=$(echo "$tbl" | wc -l)	# count the number of items in the list ( TODO: could we do an item count array style later?)
 # BUG: $ct might return 1 even if the count is zero? Check to see.  It might be wise to look for an alternative to "wc -l"
 [[ $ct -eq 0 ]] && { printf "There aren't any files in this album! Aborting.\n"; exit 1; }

 printf  "Found \x1b[1;32m%d\x1b[0m items.\n" $ct

 IFSB=$IFS			# Back up the IFS variable
 IFS=$'\n'			# "array items are separated by newlines"
 tbl=( ${tbl} )		# "list becomes an array"
 # ct="${#tbl[*]}"		# TODO: Consider trying this out later

 local i=0;				# initalize counter for the for loop
 for row in ${tbl[*]}; do
  IFS=$'\t'			# "array items are separated by tabs"
  row=( ${row} )		# Item becomes an array
  IFS=$'\n'			# "array items are separated by newlines"

  ((i++))						# increment counter
  iurl=$(toImageURL "${row[0]}")			# Note: row[0] is the file name with extension
  printf "Downloading [%03d/%03d] \x1b[1;33m%s\x1b[0m ... " $i $ct "${iurl}"
  ext=$(gfx "${row[0]}")			# get the file extension for the new file name.
  fname=$(printf "%03d.%s" $i $ext)			# prepare the new name of the file.
  gf2 "${iurl}" "${dld}/${fname}"			# get the file
 done
 IFS=$IFSB		# Restore the IFS variable.

 # TODO: Count the number of files in the directory. If it is not equal to $ct, echo "DOWNLOAD FAILED."
 printf "\x1b[1;32mDOWNLOAD COMPLETE!\x1b[0m\n"
}

# Func: arc (Archive)
# Info: Determine if the newly created folder has the qualifications to be archived.
# Note: this function will only run if there are no animated gifs found in the manifest
# Args: $1 = "$dld" the download directory
arc(){
 local dld="${1}"
 printf "Putting everything into a .cbz file..."
 zip -q -r "${dld}.cbz" "${dld}"
 [[ $? -ne 0 ]] && { printf "\x1b[1;31mFAILED!\x1b[0m Something happened that shouldn't have happened during the archive process!\n"; exit 1; }
 printf "\x1b[1;32mDONE!\x1b[0m Saved as \x1b[1;33m%s.cbz\x1b[0m\n" "${dld}"
 printf "Deleting \x1b[1;33m%s\x1b[0m folder to conserve space..." "${dld}"
 rm "${dld}"/*					# delete the files
 rmdir "${dld}"					# delete the folder
 printf "\x1b[1;32mDONE!\x1b[0m\n"
 printf "\x1b[1;32mARCHIVE COMPLETE!\x1b[0m\n"
}

# ----- MAIN PART OF THE PROGRAM! -----
# Get and check the URL's existance
url=$(ask "Please enter the URL or album directory of an imgur album to fetch.")
url=$(toAlbumURL "$url")
printf "Check to make sure that \x1b[1;33m%s\x1b[0m exists..."
xp "$url"

# Set up the album file/directory and check the file's existance
album=$(toAlbumString "$url")
title=$(getAlbumTitle "$url")
[[ $title ]] && dld="$album - $title" || dld="$album"
xf "$dld"

printf "Fetching \x1b[1;33m%s\x1b[0m to be saved in the directory \x1b[1;33m%s\x1b[0m\n" "$url" "$dld"
printf "Fetching the album manifest from \x1b[1;33m%s\x1b[0m ... " "$url"
list=$(getAlbumManifest "$url")			# space separated string (this is not an array, yet.)
mgf "$list" "$dld"				# Download the files in the manifest list to the dowload directory
[[ $(getAniCt "$list") -eq 0 ]] && arc "$dld"	# If there are no animated gifs in the manifest list, archive the download directory

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


Test project create v11 api using json

Test project create v11 api using json

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/paul-krohn/rundeck.git/'