add build.sh

add build.sh

#!/bin/bash

# install using pip from the whl file provided by pypi

if [ `uname` == Darwin ]; then
    if [ "$PY_VER" == "3.5" ]; then
        pip install https://pypi.python.org/packages/b6/86/a95d5da6ab56c5c063585e5b6bdb2b5c3e2ee4cfeb267c80e9fed1e6ac6b/scrypt-0.8.3-cp35-cp35m-macosx_10_6_intel.whl
    else
        pip install https://pypi.python.org/packages/fb/64/44461d420c0368dd77bffddda311664699eedd67a08c21ff7f36d17055de/scrypt-0.8.3-cp36-cp36m-macosx_10_6_intel.whl
    fi
fi

if [ `uname` == Linux ]; then
    if [ "$PY_VER" == "2.7" ]; then
        pip install https://github.com/holgern/py-scrypt/releases/download/v0.8.3/scrypt-0.8.3-cp27-cp27mu-linux_x86_64.whl
	elif [ "$PY_VER" == "3.5" ]; then
		pip install https://github.com/holgern/py-scrypt/releases/download/v0.8.3/scrypt-0.8.3-cp35-cp35m-linux_x86_64.whl
    else
        pip install https://github.com/holgern/py-scrypt/releases/download/v0.8.3/scrypt-0.8.3-cp36-cp36m-linux_x86_64.whl
    fi
fi

if [ `uname` == Windows ]; then
    if [ "$PY_VER" == "2.7" ]; then
        pip install https://pypi.python.org/packages/82/a6/e612a3a933c1e605b065e215750427550bff5ecd07f2827517d711f645d9/scrypt-0.8.3-cp27-cp27m-win_amd64.whl
	elif [ "$PY_VER" == "3.5" ]; then
		pip install https://pypi.python.org/packages/ba/98/4e0044f7085597cf89683d53ca63a6db3f34ab471758359b05ed24b7a8fa/scrypt-0.8.3-cp35-cp35m-win_amd64.whl
    else
        pip install https://pypi.python.org/packages/b0/5f/254f518844e541948855ebe75b47b3971214c7d5b0e24d5a14bf32dc54a3/scrypt-0.8.3-cp36-cp36m-win_amd64.whl
    fi
fi

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


check for current directory is not empty

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/diogen737/elementary-init-setup.git/'


[1299][cygnus] Update seds in cygnusentrypoint

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/Fiware/data.Cygnus.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/chirolist/andromeda.git/'


script to start jenkins-cli for cloudbees

COMPUTER_NAME="`hostname -s`"
PRIVATE_KEY_FILE="cloudbee-slave"

java -jar jenkins-cli.jar -i cloudbees-slave -s https://beamapp.ci.cloudbees.com customer-managed-slave -fsroot ./root -executors 1 -labels xcode_4_5 -name $COMPUTER_NAME

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


Automate selection of AUs to add to ingest machines.

#! /bin/bash
t="/home/$LOGNAME/tmp"

#Sage/Highwire (not OUP), in order by year
#Ready
echo "###Ready highwire" > $t/tmp_HW
tdbout -Y -a -Q 'plugin ~ "highwire" and (au:hidden[proxy] is not set or au:hidden[proxy] is "")' tdb/clockssingest/*.tdb | grep -v oxfordjournals | shuf >> $t/tmp_HW
#Manifest
echo "###Manifest sage 2015" >> $t/tmp_HW
tdbout -MT -a -Q 'plugin ~ "highwire" and year is "2015" and (au:hidden[proxy] is not set or au:hidden[proxy] is "")' tdb/clockssingest/sage_publications.tdb | shuf >> $t/tmp_HW
echo "###Manifest sage 2014" >> $t/tmp_HW
tdbout -MT -a -Q 'plugin ~ "highwire" and year ~ "2014" and (au:hidden[proxy] is not set or au:hidden[proxy] is "")' tdb/clockssingest/sage_publications.tdb | shuf >> $t/tmp_HW
echo "###Manifest sage 2013" >> $t/tmp_HW
tdbout -MT -a -Q 'plugin ~ "highwire" and year ~ "2013" and (au:hidden[proxy] is not set or au:hidden[proxy] is "")' tdb/clockssingest/sage_publications.tdb | shuf >> $t/tmp_HW
echo "###Manifest sage 2012" >> $t/tmp_HW
tdbout -MT -a -Q 'plugin ~ "highwire" and year ~ "2012" and (au:hidden[proxy] is not set or au:hidden[proxy] is "")' tdb/clockssingest/sage_publications.tdb | shuf >> $t/tmp_HW
echo "###Manifest sage 2011" >> $t/tmp_HW
tdbout -MT -a -Q 'plugin ~ "highwire" and year ~ "2011" and (au:hidden[proxy] is not set or au:hidden[proxy] is "")' tdb/clockssingest/sage_publications.tdb | shuf >> $t/tmp_HW
echo "###Manifest sage 2010" >> $t/tmp_HW
tdbout -MT -a -Q 'plugin ~ "highwire" and year ~ "2010" and (au:hidden[proxy] is not set or au:hidden[proxy] is "")' tdb/clockssingest/sage_publications.tdb | shuf >> $t/tmp_HW
echo "###Manifest sage 2009" >> $t/tmp_HW
tdbout -MT -a -Q 'plugin ~ "highwire" and year ~ "2009" and (au:hidden[proxy] is not set or au:hidden[proxy] is "")' tdb/clockssingest/sage_publications.tdb | shuf >> $t/tmp_HW
echo "###Manifest sage 2008" >> $t/tmp_HW
tdbout -MT -a -Q 'plugin ~ "highwire" and year ~ "2008" and (au:hidden[proxy] is not set or au:hidden[proxy] is "")' tdb/clockssingest/sage_publications.tdb | shuf >> $t/tmp_HW

#Atypon (not T&F), in order by year
#Ready
echo "###Ready Atypon 2015" > $t/tmp_Atypon
tdbout -Y -a -Q 'plugin ~ "typon" and year is "2015" and (au:hidden[proxy] is not set or au:hidden[proxy] is "")' tdb/clockssingest/*.tdb | shuf >> $t/tmp_Atypon
echo "###Ready Atypon not 2015" >> $t/tmp_Atypon
tdbout -Y -a -Q 'plugin ~ "typon" and year is not "2015" and (au:hidden[proxy] is not set or au:hidden[proxy] is "")' tdb/clockssingest/*.tdb | shuf >> $t/tmp_Atypon

#Misc: all but Highwire, T&F, Atypon
#Ready
echo "###Ready Misc 2015" > $t/tmp_Misc
tdbout -Y -a -Q 'year is "2015" and (au:hidden[proxy] is not set or au:hidden[proxy] is "")' tdb/clockssingest/*.tdb | grep -v highwire | grep -v typon | grep -v ClockssTaylorAndFrancisPlugin | shuf >> $t/tmp_Misc
echo "###Ready Misc not 2015" >> $t/tmp_Misc
tdbout -Y -a -Q 'year is not "2015" and (au:hidden[proxy] is not set or au:hidden[proxy] is "")' tdb/clockssingest/*.tdb | grep -v highwire | grep -v typon | grep -v ClockssTaylorAndFrancisPlugin | shuf >> $t/tmp_Misc
#Single Ingest Machines: all but Highwire, T&F
echo "*********************" >> $t/tmp_Misc
echo "###Ready Misc Ingest1" >> $t/tmp_Misc
tdbout -Y -a -Q 'au:hidden[proxy] is "reingest1.clockss.org:8082"' tdb/clockssingest/*.tdb | grep -v highwire | grep -v ClockssTaylorAndFrancisPlugin | shuf >> $t/tmp_Misc
echo "*********************" >> $t/tmp_Misc
echo "###Ready Misc Ingest2" >> $t/tmp_Misc
tdbout -Y -a -Q 'au:hidden[proxy] is "reingest2.clockss.org:8085"' tdb/clockssingest/*.tdb | grep -v highwire | grep -v ClockssTaylorAndFrancisPlugin | shuf >> $t/tmp_Misc
echo "*********************" >> $t/tmp_Misc
echo "###Ready Misc Ingest3" >> $t/tmp_Misc
tdbout -Y -a -Q 'au:hidden[proxy] is "reingest3.clockss.org:8083"' tdb/clockssingest/*.tdb | grep -v highwire | grep -v ClockssTaylorAndFrancisPlugin | shuf >> $t/tmp_Misc
echo "*********************" >> $t/tmp_Misc
echo "###Ready Misc Ingest4" >> $t/tmp_Misc
tdbout -Y -a -Q 'au:hidden[proxy] is "reingest4.clockss.org:8082"' tdb/clockssingest/*.tdb | grep -v highwire | grep -v ClockssTaylorAndFrancisPlugin | shuf >> $t/tmp_Misc

head -n30 $t/tmp_HW > $t/tmp_All
head -n100 $t/tmp_Atypon >> $t/tmp_All
head -n50 $t/tmp_Misc >> $t/tmp_All

exit 0

# ./scripts/tdb/tdbedit --from-status=manifest,ready --to-status=crawling --auids=tmp_All tdb/clockssingest/*.tdb
# ./scripts/tdb/tdbedit --from-status=exists --to-status=manifest --auids=../SageEdits/tmp tdb/clockssingest/multi_science.tdb
# ./scripts/tdb/tdbedit --from-status=exists,expected --to-status=manifest --auids=../SageEdits/tmp tdb/ibictpln/*.tdb

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


timer

timer

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/steinbaugh/steinbaugh.github.io.git/'


Add a script to merge the latest heroku-wp into the local branch

#!/bin/bash

#
# Merge latest changes from upstream into the current branch.
#
# Usage:
# $ ./upgrade.sh [no-lock]
#

# Go to root dir
cd `dirname $0` && cd ..

# Sets the upstream branch if non exists
git remote show upstream >/dev/null 2>&1 || {
	echo "Adding a git remote for upstream repo (https://github.com/xyu/heroku-wp)."
	git remote add upstream https://github.com/xyu/heroku-wp.git
}

# Stash changes
git stash

# Merge in latest change from upstream
git merge --no-ff upstream/nginx-php7

# Maybe rebuild composer lock file
if [ "$2" = "no-lock" ]; then
	echo "Skipping building of composer.lock..."
else
	bin/composer update --ignore-platform-reqs
fi

# Show changes
echo "Merged changes from upstream:"
git status

# Apply local changes
echo "Applying local (uncommitted) changes"
git stash pop

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


w5: rename script

w5: rename script

error: pathspec 'bash/ssh-lamp.sh' did not match any file(s) known to git


cd to test infra root in update-bazel.sh

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

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

TESTINFRA_ROOT=$(git rev-parse --show-toplevel)
# https://github.com/kubernetes/test-infra/issues/5699#issuecomment-348350792
cd ${TESTINFRA_ROOT}
TMP_GOPATH=$(mktemp -d)

# no unit tests in vendor
# previously we used godeps which did this, but `dep` does not handle this
# properly yet. some of these tests don't build well. see:
# ref: https://github.com/kubernetes/test-infra/pull/5411
find ${TESTINFRA_ROOT}/vendor/ -name "*_test.go" -delete

# manually remove BUILD file for k8s.io/apimachinery/pkg/util/sets/BUILD if it
# exists; there is a specific set-gen rule that breaks importing
# ref: https://github.com/kubernetes/kubernetes/blob/4e2f5e2212b05a305435ef96f4b49dc0932e1264/staging/src/k8s.io/apimachinery/pkg/util/sets/BUILD#L23-L49
rm -f ${TESTINFRA_ROOT}/vendor/k8s.io/apimachinery/pkg/util/sets/BUILD

"${TESTINFRA_ROOT}/hack/go_install_from_commit.sh" \
  github.com/kubernetes/repo-infra/kazel \
  e26fc85d14a1d3dc25569831acc06919673c545a \
  "${TMP_GOPATH}"

# The gazelle commit should match the rules_go commit in the WORKSPACE file.
"${TESTINFRA_ROOT}/hack/go_install_from_commit.sh" \
  github.com/bazelbuild/rules_go/go/tools/gazelle/gazelle \
  b655527ae7769bdf5ac0b772c844f322bdd65b34 \
  "${TMP_GOPATH}"

touch "${TESTINFRA_ROOT}/vendor/BUILD"

"${TMP_GOPATH}/bin/gazelle" fix \
  -build_file_name=BUILD,BUILD.bazel \
  -external=vendored \
  -proto=legacy \
  -mode=fix \
  -repo_root="${TESTINFRA_ROOT}"

"${TMP_GOPATH}/bin/kazel" -root="${TESTINFRA_ROOT}"

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

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

TESTINFRA_ROOT=$(git rev-parse --show-toplevel)
TMP_GOPATH=$(mktemp -d)

# no unit tests in vendor
# previously we used godeps which did this, but `dep` does not handle this
# properly yet. some of these tests don't build well. see:
# ref: https://github.com/kubernetes/test-infra/pull/5411
find ${TESTINFRA_ROOT}/vendor/ -name "*_test.go" -delete

# manually remove BUILD file for k8s.io/apimachinery/pkg/util/sets/BUILD if it
# exists; there is a specific set-gen rule that breaks importing
# ref: https://github.com/kubernetes/kubernetes/blob/4e2f5e2212b05a305435ef96f4b49dc0932e1264/staging/src/k8s.io/apimachinery/pkg/util/sets/BUILD#L23-L49
rm -f ${TESTINFRA_ROOT}/vendor/k8s.io/apimachinery/pkg/util/sets/BUILD

"${TESTINFRA_ROOT}/hack/go_install_from_commit.sh" \
  github.com/kubernetes/repo-infra/kazel \
  e26fc85d14a1d3dc25569831acc06919673c545a \
  "${TMP_GOPATH}"

# The gazelle commit should match the rules_go commit in the WORKSPACE file.
"${TESTINFRA_ROOT}/hack/go_install_from_commit.sh" \
  github.com/bazelbuild/rules_go/go/tools/gazelle/gazelle \
  b655527ae7769bdf5ac0b772c844f322bdd65b34 \
  "${TMP_GOPATH}"

touch "${TESTINFRA_ROOT}/vendor/BUILD"

"${TMP_GOPATH}/bin/gazelle" fix \
  -build_file_name=BUILD,BUILD.bazel \
  -external=vendored \
  -proto=legacy \
  -mode=fix \
  -repo_root="${TESTINFRA_ROOT}"

"${TMP_GOPATH}/bin/kazel" -root="${TESTINFRA_ROOT}"


update some shortcuts in the custom dir

update some shortcuts in the custom dir

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/jaigouk/oh-my-zsh.git/'


Add a `check-in.sh` script to automate writing markdown links

Example usage:

```
$ ./check-in.sh
usage: ./check-in.sh <since> <number-of-prs-merged>
$ ./check-in.sh 2020-09-03
usage: ./check-in.sh <since> <number-of-prs-merged>
help: you can find the number of PRs merged at https://github.com/rust-lang/rustc-dev-guide/pulls?q=is%3Apr+is%3Aclosed+updated%3A%3E2020-09-03
$ ./check-in.sh 2020-09-03 72
Authors:
- **@1c3t3a**
- **@arora-aman**
... snip ...
Changes:
- Replace links to `buildbot2.r-l.o` with `bors.r-l.o` [#929](https://github.com/rust-lang/rustc-dev-guide/pull/929)
- Add reference PRs for `r?` and `r+` comments [#928](https://github.com/rust-lang/rustc-dev-guide/pull/928)
... snip ...
Changes in progress:
```

#!/bin/sh

set -eu

# This is not a very smart script
if [ $# != 2 ]; then
  echo "usage: $0 <since> <number-of-prs-merged>"
  if [ $# = 1 ] ; then
    echo "help: you can find the number of PRs merged at" \
      "https://github.com/rust-lang/rustc-dev-guide/pulls?q=is%3Apr+is%3Aclosed+updated%3A%3E$1"
  fi
  exit 1
fi

curl() {
  command curl -s "$@"
}

# Get recently updated PRs
curl "https://api.github.com/repos/rust-lang/rustc-dev-guide/pulls?state=closed&per_page=$2" \
  | jq '[.[] | select(.merged_at > "'"$1"'")]' > pulls.json

show_pulls() {
  jq -r '.[] | { title, number, html_url, user: .user.login } | "- " + .title + " [#" + (.number | tostring) + "](" + .html_url + ")"'
}

echo "Authors:"
jq -r '{ login: .[].user.login } | "- **@" + .login + "**"' < pulls.json | sort -u
echo "Changes:"
show_pulls < pulls.json
echo "Changes in progress:"
# If there are more than 30 PRs open at a time, you'll need to set `per_page`.
# For now this seems unlikely.
curl "https://api.github.com/repos/rust-lang/rustc-dev-guide/pulls?state=open" | show_pulls

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


add mapfish-conf dir with the mapfish installation script

git-svn-id: 0078f79ef0c13d8ca30f49297e7ed6c465429331@1894 7da46fd8-bd2a-0410-a152-cf9810cf5b10

#!/bin/sh
# Copyright (c) 2009 Open Geospatial Foundation
#
# Licensed under the GNU LGPL.
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 2.1 of the License,
# or any later version.  This library is distributed in the hope that
# it will be useful, but WITHOUT ANY WARRANTY, without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details, either
# in the "LICENSE.LGPL.txt" file distributed with this software or at
# web page "http://www.fsf.org/licenses/lgpl.html".

# About:
# =====
# This script install mapfish

# Running:
# =======
# sudo ./install_mapfish.sh

TMP="/tmp"
BIN="/usr/bin"
USER_DIR="/home/user"

CONF_DIR="/etc"
MAPFISH_CONF_DIR="$CONF_DIR/mapfish"

INSTALL_DIR="/usr/lib"
MAPFISH_INSTALL_DIR="$INSTALL_DIR/mapfish"
MAPFISH_VENV_DIR="$MAPFISH_INSTALL_DIR/mapfish-venv"

## Setup things... ##
# check required tools are installed
if [ ! -x "`which wget`" ] ; then
   echo "ERROR: wget is required, please install it and try again"
   exit 1
fi

if [ ! -d $MAPFISH_CONF_DIR ]
then
    echo "Create $MAPFISH_CONF_DIR directory"
    mkdir $MAPFISH_CONF_DIR
fi

if [ ! -d $MAPFISH_INSTALL_DIR ]
then
    echo "Create $MAPFISH_INSTALL_DIR directory"
    mkdir $MAPFISH_INSTALL_DIR
fi

# install go-mapfish-framework-all.py script
wget -P $MAPFISH_INSTALL_DIR -c http://www.mapfish.org/downloads/go-mapfish-framework-all.py
chmod a+x $MAPFISH_INSTALL_DIR/go-mapfish-framework-all.py
ln -sf $MAPFISH_INSTALL_DIR/go-mapfish-framework-all.py $BIN/go-mapfish-framework-all.py

# create a global virtualenv for mapfish
go-mapfish-framework-all.py --python=python2.5 $MAPFISH_VENV_DIR

# install mapfish.app.minimal in mapfish virtualenv
$MAPFISH_VENV_DIR/bin/easy_install --index-url http://www.mapfish.org/downloads/all/pkg --allow-hosts www.mapfish.org mapfish.app.minimal

$MAPFISH_VENV_DIR/bin/paster make-config mapfish.app.minimal $MAPFISH_CONF_DIR/minimal.ini

wget -P $MAPFISH_INSTALL_DIR -c http://www.mapfish.org/downloads/foss4g_livedvd/start_in_browser.sh
chmod a+x $MAPFISH_INSTALL_DIR/start_in_browser.sh
wget -P $BIN -c http://www.mapfish.org/downloads/foss4g_livedvd/mapfish
chmod a+x $BIN/mapfish
wget -P $MAPFISH_INSTALL_DIR -c http://www.mapfish.org/downloads/foss4g_livedvd/mapfish.png
wget -P $USER_DIR/Desktop -c http://www.mapfish.org/downloads/foss4g_livedvd/MapFish.desktop

error: pathspec 'mapfish-conf/install_mapfish.sh' did not match any file(s) known to git


program to run pychecker2 on stdlib for local python2.2

#! /bin/sh
scripts/pychecker2.sh --incremental --no-importError --no-unused --no-shadowIdentifier --no-shadowImport /usr/local/lib/python2.2/*.py

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


Colorized manpages

Colorized manpages

# Colorized man pages.
# Courtesy of http://boredzo.org/blog/archives/2016-08-15/colorized-man-pages-understood-and-customized

man() {
  env \
    LESS_TERMCAP_mb=$'\e[1;31m' \
    LESS_TERMCAP_md=$'\e[1;36m' \
    LESS_TERMCAP_me=$'\e[0m' \
    LESS_TERMCAP_se=$'\e[0m' \
    LESS_TERMCAP_so=$'\e[1;40;92m' \
    LESS_TERMCAP_ue=$'\e[0m' \
    LESS_TERMCAP_us=$'\e[1;32m' \
    man "$@"
}

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


update OSX aliase

update OSX aliase

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


rails: setup: updated ubuntu version to have functional execution

Signed-off-by: (Holloway) Chew, Kean Ho <bbd8faa40b0f348214bf4124b281a301299ba6dd@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/hollowaykeanho/learning.git/'


Added simple linux build script...

Added simple linux build script...

g++ *.cpp -O -o HttpMediaServer -lpthread

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


Added Stuff in the script

Added Stuff in the script

#Load Env variables from File (maybe change to DB)
#using /home/ec2-user/Cloud1
#source /home/ec2-user/Cloud1
. /home/ec2-user/Cloud1

printenv AWS_SECRET_KEY

printenv AWS_VPC_ID

#Create Docker Consul VM
docker-machine create --driver amazonec2 --amazonec2-access-key $K1_AWS_ACCESS_KEY --amazonec2-secret-key $K1_AWS_SECRET_KEY --amazonec2-vpc-id  $K1_AWS_VPC_ID --amazonec2-zone $K1_AWS_ZONE --amazonec2-region $K1_AWS_DEFAULT_REGION SPAWN-CONSUL

#Opens Firewall Port for Consul
aws ec2 authorize-security-group-ingress --group-name docker-machine --protocol tcp --port 8500 --cidr 0.0.0.0/0

#Connects to remote VM

docker-machine env SPAWN-CONSUL > /home/ec2-user/CONSUL1
. /home/ec2-user/CONSUL1

publicipCONSULK=$(docker-machine ip SPAWN-CONSUL)

#Launches a remore Consul instance

docker run -d -p 8400:8400 -p 8500:8500 -p 8600:53/udp -h node1 progrium/consul -server -bootstrap

echo ----
echo Consul RUNNING ON $publicipCONSULK
echo publicipCONSULK=$publicipCONSULK
echo ----

#Prepares one VM to be joined to SWARM Cluster

#Spawns VM with UUID
UUIDK=$(cat /proc/sys/kernel/random/uuid)

#docker-machine create --driver amazonec2
docker-machine create --driver amazonec2 --amazonec2-access-key $K1_AWS_ACCESS_KEY --amazonec2-secret-key $K1_AWS_SECRET_KEY --amazonec2-vpc-id  $K1_AWS_VPC_ID --amazonec2-zone $K1_AWS_ZONE --amazonec2-region $K1_AWS_DEFAULT_REGION SPAWN-$UUIDK

docker-machine env SPAWN-$UUIDK > /home/ec2-user/Docker1
. /home/ec2-user/Docker1

publicipK1=$(docker-machine ip SPAWN-$UUIDK)

#Launches a Container to join the VM to a SWARM Cluster
docker run -d swarm join --addr=$publicipK1:2376 consul://$publicipCONSULK:8500/swarm

#Create Docker SWARM VM
docker-machine create --driver amazonec2 --amazonec2-access-key $K1_AWS_ACCESS_KEY --amazonec2-secret-key $K1_AWS_SECRET_KEY --amazonec2-vpc-id  $K1_AWS_VPC_ID --amazonec2-zone $K1_AWS_ZONE --amazonec2-region $K1_AWS_DEFAULT_REGION SPAWN-SWARM

#Connects to remote VM

docker-machine env SPAWN-SWARM > /home/ec2-user/SWARM1
. /home/ec2-user/SWARM1

publicipSWARMK=$(docker-machine ip SPAWN-SWARM)

#Prepares SWARM Manager

docker run -d -p 8333:2376 swarm manage consul://$publicipCONSULK:8500/swarm

echo ----
echo SWARM  RUNNING ON $publicipSWARMK
echo publicipSWARMK=$publicipSWARMK
echo ----

#Launches a Container using SWARM

docker -H tcp://$publicipSWARMK:8333 run -d --name www -p 80:80 nginx

echo Connect to $publicipSWARMK Port 80

#KILLS SWARM (Testing purposes)
docker-machine rm SPAWN-SWARM
docker-machine rm SPAWN-CONSUL
docker-machine rm SPAWN-$UUIDK

#Spawns VM with UUID
UUIDK=$(cat /proc/sys/kernel/random/uuid)

#docker-machine create --driver amazonec2
docker-machine create --driver amazonec2 --amazonec2-access-key $K1_AWS_ACCESS_KEY --amazonec2-secret-key $K1_AWS_SECRET_KEY --amazonec2-vpc-id  $K1_AWS_VPC_ID --amazonec2-zone $K1_AWS_ZONE --amazonec2-region $K1_AWS_DEFAULT_REGION SPAWN-$UUIDK

echo ---
echo VM SPAWN-$UUIDK CREATED
echo ---

#Open port 80 on VM
aws ec2 authorize-security-group-ingress --group-name docker-machine --protocol tcp --port 80 --cidr 0.0.0.0/0

#Creates a docker container remotely
#docker-machine env SPAWN-$UUIDK
#eval $(docker-machine env SPAWN-$UUIDK)
#eval $(docker-machine env)
docker-machine env SPAWN-$UUIDK > /home/ec2-user/Docker1
. /home/ec2-user/Docker1

docker run -d --name docker-nginx -p 80:80 nginx

publicipK=$(docker-machine ip SPAWN-$UUIDK)

echo ----
echo connect to Public IP
echo publicipK=$publicipK
echo ----

#Gets rid of VM
#Waits for a Y (to check if all is good)
docker-machine rm SPAWN-$UUIDK

#Displays Public IP

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


pm2 startscript

pm2 startscript

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


Fixed small typo error.

Fixed small typo error.

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/Mourtz/SkipStack.git/'


Create AutoDeploy_Plugin.sh

Create AutoDeploy_Plugin.sh

将自动部署的功能改为插件安装

#!/bin/sh

INSTALL_DIR=/usr/local/sMattress

curl -sSL https://github.com/sMattress/Servers_Deploy_Script/AutoDeploy_WebServer.sh > "&INSTALL_DIR"/WebServer/AutoDeploy.sh
curl -sSL https://github.com/sMattress/Servers_Deploy_Script/AutoDeploy_TcpServer.sh > "&INSTALL_DIR"/Tcp/AutoDeploy.sh
curl -sSL https://github.com/sMattress/Servers_Deploy_Script/HookServer.rb > "&INSTALL_DIR"/HookServer/HookServer.rb

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


Create run.sh

Create run.sh

#! /bin/bash
cd /opt/deploy/pyconjp-android/Docker/
# Clean
make clean
# Build
make build
# Update to git
make git

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


added script for obtaining server certificate

#!/bin/bash
SERVER_NAME="$1"
PORT_NUMBER="$2"
STORE_DIR="`realpath ./`"
CERTIFICATE_FILE_NAME="$SERVER_NAME.cer"
CERTIFICATE_FILE_PATH="`realpath $STORE_DIR/$CERTIFICATE_FILE_NAME`"

if [ -z "$SERVER_NAME" ]; then
   echo "Server host name is empty !"
   exit 1
fi

if [ -z "$PORT_NUMBER" ]; then
   echo "Server port number is empty !"
   exit 1
fi

echo -n | openssl s_client -connect $SERVER_NAME:$PORT_NUMBER | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > $CERTIFICATE_FILE_PATH
echo "Certificate saved to: $CERTIFICATE_FILE_PATH"

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


Create build.sh

Create build.sh

#!/bin/sh

mkdir build
cd build

cmake ${CMAKE_ARGS} \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True \
      -DBUILD_SHARED_LIBS=ON \
      -DBUILD_TESTING=ON \
      -DGZ_UTILS_VENDOR_CLI11=OFF \
      ..

cmake --build . --config Release --parallel ${CPU_COUNT}
cmake --build . --config Release --parallel ${CPU_COUNT} --target install
if [[ "${CONDA_BUILD_CROSS_COMPILATION}" != "1" ]]; then
  ctest --output-on-failure -C Release
fi

error: pathspec 'recipes/gz-utils/build.sh' did not match any file(s) known to git


Remove git cleaning (not usefull)

Remove git cleaning (not usefull)

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/Tutul-/tumuxOS.git/'


better version

better version

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/amnerip/templates-scripts-config.git/'


junior

junior

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


Add script to create a minified css bundle

#!/bin/bash

set -euo pipefail
IFS=$'\n\t'

css=app/static/css

cleancss \
    -o app/static/gen/bundle.min.css \
    "$css/normalize.css" \
    "$css/bootstrap.css" \
    "$css/global.css"

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


redundant

redundant

git-svn-id: 335bbb4f426cd3c28bfd587570c39dc43f51688e@49 6314c778-759f-4463-bdf5-253b7e53b7df

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/cdsi/theoden.git/'


Issue #364 No longer publish to expo, just describe how to. Run client for QA, clearing cache

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


HEAD-1078 6.5.x to 7.0 upgrade hooks [add missing file]

#!/bin/bash

BASH_XTRACEFD=4
set -o xtrace

if [[ $1 == "pre" ]]; then
    echo "Upgrade pre-setup tasks"
fi

if [[ $1 == "post" ]]; then
    echo "Upgrade post-setup tasks"
    mv /var/upgrade_headnode /var/upgrade.$(date -u "+%Y%m%dT%H%M%S")
fi

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


Just a convenient script

Just a convenient script

#!/bin/sh
# Argument passed is the username
ssh -L 1521:oracle.cise.ufl.edu:1521 $1@storm.cise.ufl.edu

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


Update system.sh

Update system.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/psd401/psd-osx-bootstrap.git/'


Added function for getting Windows Spotlight images.

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


Create php-session-cleaner.sh

Create php-session-cleaner.sh

#!/usr/bin/env bash

# path(s) containing session data
session_path="/var/www/*/tmp"

# session lifetime in minutes
session_lifetime=24

# session filename mask
session_mask="sess_*"

# time prefix (see: man find)
time_prefix="+"

# delete command
del_cmd="-exec rm {} \;"

# enable debugging (changes $del_cmd to '-ls')
debug=0

### begin script ###
script_dir=$( dirname ${0} )
session_path_file=${1:-${script_dir}/php-session-cleaner.list}

if [ ${debug:-0} -eq 1 ]; then
        del_cmd="-ls"
fi

for _path in ${session_path} ; do
        if [ -f "${session_path_file}" ]; then
                _match=$( egrep "^${_path}\:" "${session_path_file}" )
                _time=$( echo "${_match}" | awk -F":" '{ print $NF }' | sed -r 's/^[^0-9]+//g' )
        fi

        find ${_path} -ignore_readdir_race -type f -iname '${session_mask}' -mmin ${time_prefix}${_time:-${session_lifetime}} ${del_cmd}
done

error: pathspec 'php-session-cleaner.sh' did not match any file(s) known to git


minor fix

minor fix

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/webintrinsics/clusterlite.git/'


build/ports: more improvements on previous

* Package files before cleaning the ports directories
* Properly package pkg when starting a new build
* Deal with conflicts in the pre-build sanity phase

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


add script of building debug version

add script of building debug version

#!/bin/bash

#Example:
#sh build_debug.sh /Users/zhaot/local/lib/Trolltech/Qt-4.8.5/bin/qmake /Users/zhaot/local/lib/Trolltech/Qt-4.8.5/mkspecs/macx-g++

if [ $# -lt 2 ]
then
  echo "Usage: sh build_debug.sh <qmake_path> <qmake_spec_path>"
  echo "Example: "
  echo 'sh build.sh $HOME/local/lib/Trolltech/Qt-4.8.5/bin/qmake $HOME/local/lib/Trolltech/Qt-4.8.5/mkspecs/macx-g++'
  exit 1
fi

QMAKE=$1
QMAKE_SPEC=$2

cd neurolabi

echo 'Building 3rd-party libraries ...'
cd lib
sh build.sh
cd ..

echo 'Building libneurolabi ...'
./update_library

if [ ! -d build ]
then
  mkdir build
fi

cd build
$QMAKE -spec $QMAKE_SPEC CONFIG+=debug CONFIG+=x86_64 -o Makefile ../gui/gui.pro
make

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


Adding build_image.sh file for nightly releases (#39)

Fixes #20

Build_image.sh file is required for building image during nightly
release workflow

#!/bin/bash
#
# A simple script to build the Docker images.
# This is intended to be invoked as a step in Argo to build the docker image.
#
# build_image.sh ${DOCKERFILE} ${IMAGE} ${TAG} {ROOT_DIR}
set -ex

DOCKERFILE=$1
CONTEXT_DIR=$(dirname "$DOCKERFILE")
IMAGE=$2
TAG=$3
ROOT_DIR=$4
GOPATH=${ROOT_DIR}
GO_DIR=${GOPATH}/src/github.com/kubeflow/pytorch-operator
gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}

export PATH=${GOPATH}/bin:/usr/local/go/bin:${PATH}
echo "Create symlink to GOPATH"
mkdir -p ${GOPATH}/src/github.com/kubeflow
ln -s ${CONTEXT_DIR} ${GO_DIR}
cd ${GO_DIR}
echo "Build operator binary"
go build github.com/kubeflow/pytorch-operator/cmd/pytorch-operator

echo "Building container in gcloud"
gcloud container builds submit . --tag=${IMAGE}:${TAG}

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


remove XrdVersion.hh.new when not used.

remove XrdVersion.hh.new when not used.

git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@38034 27541ba8-7e3a-0410-8455-c3a389f83636

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/dawehner/root.git/'


use caps for BRANCH

use caps for BRANCH

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


remove extraneous greps - untested

remove extraneous greps - untested

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/feld/freebsd-xen-tools-scripts.git/'


Add Delete Itop Object script

Add Delete Itop Object script

##############################################################
#
# This script DELETES Objects by defining it in a OQL CONSULT
#
#  OQL = Sentence in OQL l,
#      eg export OQL="SELECT Server WHERE status = 'stock'"
#
#
# Usage example :
#   Just export the OQL and executes the script
#
##############################################################

# Condfigurable parameters: Change this according to your itop credentials
# Change according your installation directory name : eg itop-itsm

CREDENTIALS_FILE=.credentials

# End of configurable parameters

# Other non configurable parameters
HEADER='Content-Type: application/json'
INITIAL="%7B%0A%20%20%20%22operation%22%3A%20%22core%2Fdelete%22%2C%0A%20%20%20%22class%22%3A%20%22CLASS%22%2C%0A%20%20%20%22key%22%3A%20%22OQL%22%0A%7D%0A%0A"
LOG_FILE=/var/log/` basename $0`
# End of non configurable parameters
#######################################################
#
# Function PrintLog
#
# Shows a line to screen and log file
#
#######################################################
PrintLog( )
{
   echo [`basename $0`] [`date +'%Y_%m_%d %H:%M:%S'`] [$$]  [${FUNCNAME[1]}] $@  | /usr/bin/tee -a $LOG_FILE
}

# This functions is not mine. Credits to
# cdown / gist:1163649 https://gist.github.com/cdown/1163649
urlencode( )
{
    # urlencode <string>

    local length="${#1}"
    for (( i = 0; i < length; i++ )); do
        local c="${1:i:1}"
        case $c in
            [a-zA-Z0-9.~_-]) printf "$c" ;;
            *) printf '%%%02X' "'$c"
        esac
    done
}

GetWorkingPath( )
{
  # GetWorking Path
  FULL_SCRIPT_PATH=`readlink -f $0`
  WORKING_PATH=`dirname $FULL_SCRIPT_PATH`
}

# Inicio : Clearing enviroment
PreWork( )
{
  PrintLog Start $OQL
  [ ` echo $OQL | grep SELECT | wc -l ` -ne 1 ] &&  PrintLog OQL variable not exported :$OQL
  GetWorkingPath

  clear
  cd $WORKING_PATH 2>/dev/null
  #PrintLog Loading Credentials prwd:$PWD `ls -altr $PWD/.credentials`
  source $PWD/.credentials

}
PrepareCURL( )
{
# Build URL
URL="http://${ITOP_SERVER}/${INSTALLATION_DIRECTORY}/webservices/rest.php?version=1.0&auth_user=${ITOP_USER}&auth_pwd=${ITOP_PASS}"

# Get text replacements
CLASS=`echo $OQL | awk '{print $2}'`
OQL_ENCODED=` urlencode "$OQL"`

# Perform text replacement
RAW=`echo $INITIAL | sed -e "s/CLASS/$CLASS/g" | sed -e "s/OQL/$OQL_ENCODED/g" `
}

PerformCURL( )
{
PrintLog "Executing curl -X POST -v -H "$HEADER" \"$URL&json_data=$RAW\" "
curl -X POST -v -H "$HEADER" "$URL&json_data=$RAW" | jq . > salida-$$

cat salida-$$ | jq .
cat salida-$$  >> $LOG_FILE

}

PostWork( )
{
rm -f salida-11
PrintLog END
}
############################
# Main
############################

# Prepare URL
PreWork

# PrepareCURL
PrepareCURL

# Perform CURL
PerformCURL

# Delete temp files
PostWork

exit 0

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


Django entrypoint fix

Django entrypoint fix

#!/usr/bin/env bash
source /env.sh

exec "$@"

error: pathspec 'compose/django/entrypoint.sh' did not match any file(s) known to git


Original hadoop-env.sh suppliec in Hadoop 2.7.2

# 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 Hadoop-specific environment variables here.

# The only required environment variable is JAVA_HOME.  All others are
# optional.  When running a distributed configuration it is best to
# set JAVA_HOME in this file, so that it is correctly defined on
# remote nodes.

# The java implementation to use.
export JAVA_HOME=${JAVA_HOME}

# The jsvc implementation to use. Jsvc is required to run secure datanodes
# that bind to privileged ports to provide authentication of data transfer
# protocol.  Jsvc is not required if SASL is configured for authentication of
# data transfer protocol using non-privileged ports.
#export JSVC_HOME=${JSVC_HOME}

export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-"/etc/hadoop"}

# Extra Java CLASSPATH elements.  Automatically insert capacity-scheduler.
for f in $HADOOP_HOME/contrib/capacity-scheduler/*.jar; do
  if [ "$HADOOP_CLASSPATH" ]; then
    export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$f
  else
    export HADOOP_CLASSPATH=$f
  fi
done

# The maximum amount of heap to use, in MB. Default is 1000.
#export HADOOP_HEAPSIZE=
#export HADOOP_NAMENODE_INIT_HEAPSIZE=""

# Extra Java runtime options.  Empty by default.
export HADOOP_OPTS="$HADOOP_OPTS -Djava.net.preferIPv4Stack=true"

# Command specific options appended to HADOOP_OPTS when specified
export HADOOP_NAMENODE_OPTS="-Dhadoop.security.logger=${HADOOP_SECURITY_LOGGER:-INFO,RFAS} -Dhdfs.audit.logger=${HDFS_AUDIT_LOGGER:-INFO,NullAppender} $HADOOP_NAMENODE_OPTS"
export HADOOP_DATANODE_OPTS="-Dhadoop.security.logger=ERROR,RFAS $HADOOP_DATANODE_OPTS"

export HADOOP_SECONDARYNAMENODE_OPTS="-Dhadoop.security.logger=${HADOOP_SECURITY_LOGGER:-INFO,RFAS} -Dhdfs.audit.logger=${HDFS_AUDIT_LOGGER:-INFO,NullAppender} $HADOOP_SECONDARYNAMENODE_OPTS"

export HADOOP_NFS3_OPTS="$HADOOP_NFS3_OPTS"
export HADOOP_PORTMAP_OPTS="-Xmx512m $HADOOP_PORTMAP_OPTS"

# The following applies to multiple commands (fs, dfs, fsck, distcp etc)
export HADOOP_CLIENT_OPTS="-Xmx512m $HADOOP_CLIENT_OPTS"
#HADOOP_JAVA_PLATFORM_OPTS="-XX:-UsePerfData $HADOOP_JAVA_PLATFORM_OPTS"

# On secure datanodes, user to run the datanode as after dropping privileges.
# This **MUST** be uncommented to enable secure HDFS if using privileged ports
# to provide authentication of data transfer protocol.  This **MUST NOT** be
# defined if SASL is configured for authentication of data transfer protocol
# using non-privileged ports.
export HADOOP_SECURE_DN_USER=${HADOOP_SECURE_DN_USER}

# Where log files are stored.  $HADOOP_HOME/logs by default.
#export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER

# Where log files are stored in the secure data environment.
export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER}

###
# HDFS Mover specific parameters
###
# Specify the JVM options to be used when starting the HDFS Mover.
# These options will be appended to the options specified as HADOOP_OPTS
# and therefore may override any similar flags set in HADOOP_OPTS
#
# export HADOOP_MOVER_OPTS=""

###
# Advanced Users Only!
###

# The directory where pid files are stored. /tmp by default.
# NOTE: this should be set to a directory that can only be written to by
#       the user that will run the hadoop daemons.  Otherwise there is the
#       potential for a symlink attack.
export HADOOP_PID_DIR=${HADOOP_PID_DIR}
export HADOOP_SECURE_DN_PID_DIR=${HADOOP_PID_DIR}

# A string representing this instance of hadoop. $USER by default.
export HADOOP_IDENT_STRING=$USER

error: pathspec 'opt/hadoop/etc/hadoop/hadoop-env.sh' did not match any file(s) known to git


Exercicio 6

Exercicio 6

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/jonatascb/TrabalhosSO2.git/'


Use tabs for indentation

Use tabs for indentation

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/sorennielsen/git-hooks.git/'


Make wget silent.

Make wget silent.

#!/bin/bash

SCRIPT_DIR=$(dirname $0)
source ${SCRIPT_DIR}/config

function confirm_install_prerequisites() {
  local -A prerequisites=(
    ["gcc"]="gcc"
    ["pip"]="python-pip"
    ["unzip"]="unzip"
  )
  which apt-get &> /dev/null
  if [ $? -ne 0 ]; then
    echo "Cannot find 'apt-get' (APT package manager)."
    echo "Possibly you are not using Debian-originated Linux?"
    echo "TODO: Support non-Debian Linux distributions."
    exit 1
  fi
  for command in ${!prerequisites[@]}
  do
    which ${command} &> /dev/null
    if [ $? -ne 0 ]; then
      echo "Cannot find '${command}'."
      echo "Possibly you can install it by 'sudo apt-get install" \
        "${prerequisites[${command}]}'."
      exit 1
    fi
  done
}

function create_user_data_directory() {
  echo "Creating USER_DATA_DIR: ${USER_DATA_DIR} with mode 700"
  mkdir -p ${USER_DATA_DIR} -m 700
  if [ $? -ne 0 ]; then
    echo "Failed to create the user data path: ${USER_DATA_DIR}"
    exit 1
  fi
}

function install_kancolle_player_prerequisites() {
  local kancolle_player_prerequisites=(
    flashplugin-installer
    fonts-ipafont-gothic
    xorg
  )
  echo "Installing Kancolle player prerequisites..."
  sudo apt-get install ${kancolle_player_prerequisites[@]}
}

# Python third-party packages required to run the KCAA Python server.
function install_python_server_prerequisites() {
  local python_server_apt_prerequisites=(
    libjpeg8-dev
    openjdk-7-jre
    python-dev
    zlib1g-dev
  )
  echo "Installing KCAA Python server APT prerequisites..."
  sudo apt-get install ${python_server_apt_prerequisites[@]}
  local python_server_prerequisites=(
    pillow
    python-dateutil
    requests
    selenium
  )
  echo "Installing KCAA Python server prerequisites..."
  for package in ${python_server_prerequisites[@]}
  do
    sudo pip install ${package}
  done
}

# Python packages required to test the KCAA Python server code.
function install_python_server_testing_prerequisites() {
  local python_server_prerequisites=(
    pytest
    pytest-cov
    pytest-pep8
  )
  echo "Installing KCAA Python server testing prerequisites..."
  for package in ${python_server_testing_prerequisites[@]}
  do
    sudo pip install ${package}
  done
}

function install_phantomjs() {
  # PhantomJS requires some shared libraries to run.
  local phantomjs_apt_prerequisites=(
    python-pyphantomjs
  )
  echo "Installing PhantomJS APT prerequisites..."
  sudo apt-get install ${phantomjs_apt_prerequisites[@]}
}

function install_dartium() {
  if [ -d ${BIN_DIR}/dartium ]; then
    echo "Dartium is already installed at ${BIN_DIR}/dartium. Skipping."
    return
  fi

  local storage_base='http://storage.googleapis.com/dart-archive/channels/'\
'stable/release/latest/dartium'
  local filename='dartium-linux-x64-release.zip'
  echo "Installing the latest Dartium..."
  wget -q -O ${BIN_DIR}/${filename} ${storage_base}/${filename}
  echo "Unzipping..."
  unzip -q -d ${BIN_DIR} ${BIN_DIR}/${filename}
  local dart_dir=$(unzip -l -qq ${BIN_DIR}/${filename} \
    | awk '{print $NF}' \
    | head -n 1 \
    | sed -e 's|/$||')
  ln -s ${BIN_DIR}/${dart_dir} ${BIN_DIR}/dartium
}

function update_binary() {
  local current_version=$(cat ../bin/BINARY_VERSION)
  local kcaa_repo_base=https://raw.githubusercontent.com/kcaa/kcaa
  local binary_version_file=${kcaa_repo_base}/latest_release/BINARY_VERSION
  local latest_version=$(wget -q -O - ${binary_version_file})
  if [ ${current_version} = ${latest_version} ]; then
    echo "KCAA binary is up to date. (${latest_version})"
    return
  fi
  # TODO: Download and update to the latest version.
}

confirm_install_prerequisites
create_user_data_directory
install_kancolle_player_prerequisites
install_python_server_prerequisites
#install_phantomjs
#install_dartium
update_binary

echo "Installation finished."

#!/bin/bash

SCRIPT_DIR=$(dirname $0)
source ${SCRIPT_DIR}/config

function confirm_install_prerequisites() {
  local -A prerequisites=(
    ["gcc"]="gcc"
    ["pip"]="python-pip"
    ["unzip"]="unzip"
  )
  which apt-get &> /dev/null
  if [ $? -ne 0 ]; then
    echo "Cannot find 'apt-get' (APT package manager)."
    echo "Possibly you are not using Debian-originated Linux?"
    echo "TODO: Support non-Debian Linux distributions."
    exit 1
  fi
  for command in ${!prerequisites[@]}
  do
    which ${command} &> /dev/null
    if [ $? -ne 0 ]; then
      echo "Cannot find '${command}'."
      echo "Possibly you can install it by 'sudo apt-get install" \
        "${prerequisites[${command}]}'."
      exit 1
    fi
  done
}

function create_user_data_directory() {
  echo "Creating USER_DATA_DIR: ${USER_DATA_DIR} with mode 700"
  mkdir -p ${USER_DATA_DIR} -m 700
  if [ $? -ne 0 ]; then
    echo "Failed to create the user data path: ${USER_DATA_DIR}"
    exit 1
  fi
}

function install_kancolle_player_prerequisites() {
  local kancolle_player_prerequisites=(
    flashplugin-installer
    fonts-ipafont-gothic
    xorg
  )
  echo "Installing Kancolle player prerequisites..."
  sudo apt-get install ${kancolle_player_prerequisites[@]}
}

# Python third-party packages required to run the KCAA Python server.
function install_python_server_prerequisites() {
  local python_server_apt_prerequisites=(
    libjpeg8-dev
    openjdk-7-jre
    python-dev
    zlib1g-dev
  )
  echo "Installing KCAA Python server APT prerequisites..."
  sudo apt-get install ${python_server_apt_prerequisites[@]}
  local python_server_prerequisites=(
    pillow
    python-dateutil
    requests
    selenium
  )
  echo "Installing KCAA Python server prerequisites..."
  for package in ${python_server_prerequisites[@]}
  do
    sudo pip install ${package}
  done
}

# Python packages required to test the KCAA Python server code.
function install_python_server_testing_prerequisites() {
  local python_server_prerequisites=(
    pytest
    pytest-cov
    pytest-pep8
  )
  echo "Installing KCAA Python server testing prerequisites..."
  for package in ${python_server_testing_prerequisites[@]}
  do
    sudo pip install ${package}
  done
}

function install_phantomjs() {
  # PhantomJS requires some shared libraries to run.
  local phantomjs_apt_prerequisites=(
    python-pyphantomjs
  )
  echo "Installing PhantomJS APT prerequisites..."
  sudo apt-get install ${phantomjs_apt_prerequisites[@]}
}

function install_dartium() {
  if [ -d ${BIN_DIR}/dartium ]; then
    echo "Dartium is already installed at ${BIN_DIR}/dartium. Skipping."
    return
  fi

  local storage_base='http://storage.googleapis.com/dart-archive/channels/'\
'stable/release/latest/dartium'
  local filename='dartium-linux-x64-release.zip'
  echo "Installing the latest Dartium..."
  wget -q -O ${BIN_DIR}/${filename} ${storage_base}/${filename}
  echo "Unzipping..."
  unzip -q -d ${BIN_DIR} ${BIN_DIR}/${filename}
  local dart_dir=$(unzip -l -qq ${BIN_DIR}/${filename} \
    | awk '{print $NF}' \
    | head -n 1 \
    | sed -e 's|/$||')
  ln -s ${BIN_DIR}/${dart_dir} ${BIN_DIR}/dartium
}

function update_binary() {
  local current_version=$(cat ../bin/BINARY_VERSION)
  local kcaa_repo_base=https://raw.githubusercontent.com/kcaa/kcaa
  local binary_version_file=${kcaa_repo_base}/latest_release/BINARY_VERSION
  local latest_version=$(wget -O - ${binary_version_file})
  if [ ${current_version} = ${latest_version} ]; then
    echo "KCAA binary is up to date. (${latest_version})"
    return
  fi
  # TODO: Download and update to the latest version.
}

confirm_install_prerequisites
create_user_data_directory
install_kancolle_player_prerequisites
install_python_server_prerequisites
#install_phantomjs
#install_dartium
update_binary

echo "Installation finished."


Remove floppy from fstab

Remove floppy from fstab

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/konstruktoid/ubuntu-conf.git/'


Added the check script

Added the check script

#!/bin/bash
module load ci
echo "checking $NAME"
cd $WORKSPACE/$NAME-$VERSION
make check

echo $?

make install # DESTDIR=$SOFT_DIR

mkdir -p $REPO_DIR
rm -rf $REPO_DIR/*
tar -cvzf $REPO_DIR/build.tar.gz -C $WORKSPACE/build apprepo

mkdir -p modules
(
cat <<MODULE_FILE
#%Module1.0
## $NAME modulefile
##
proc ModulesHelp { } {
    puts stderr "       This module does nothing but alert the user"
    puts stderr "       that the [module-info name] module is not available"
}

module-whatis   "$NAME $VERSION."
setenv       CMAKE_VERSION       $VERSION
setenv       CMAKE_DIR           /apprepo/$::env(SITE)/$::env(OS)/$::env(ARCH)/$NAME/$VERSION
prepend-path PATH              $::env(CMAKE_DIR)/bin
prepend-path LD_LIBRARY_PATH   $::env(CMAKE_DIR)/lib
prepend-path GCC_INCLUDE_DIR   $::env(CMAKE_DIR)/include
MODULE_FILE
) > modules/$VERSION

mkdir -p $LIBRARIES_MODULES/$NAME
cp modules/$VERSION $LIBRARIES_MODULES/$NAME

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


xbps-src: verify_rundeps: revbump pkgs automagically (temporarily).

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


Add: Refresh i3status on song change when ncmpcpp is running

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


Initial Commit

Initial Commit

#!/bin/bash -e
. /etc/profile.d/modules.sh

make check
make install

# At this point, we should have built OpenMPI

ls -lht ${SOFT_DIR}

mkdir -vp ${REPO_DIR}
rm -rf ${REPO_DIR}/*
tar -cvzf ${REPO_DIR}/build.tar.gz -C ${WORKSPACE}/build apprepo
mkdir -p modules
(
cat <<MODULE_FILE
#%Module1.0
## $NAME modulefile
##
proc ModulesHelp { } {
    puts stderr "       This module does nothing but alert the user"
    puts stderr "       that the [module-info name] module is not available"
}
module-whatis   "$NAME $VERSION."
setenv       ZLIB_VERSION       $VERSION
#
#
#
setenv       ZLIB_DIR           /apprepo/$::env(SITE)/$::env(OS)/$::env(ARCH)/$NAME/$VERSION
prepend-path LD_LIBRARY_PATH   $::env(ZLIB_DIR)/lib
MODULE_FILE
) > modules/${VERSION}

mkdir -p ${LIBRARIES_MODULES}/${NAME}
cp -v modules/${VERSION} ${LIBRARIES_MODULES}/${NAME}
module avail


added check-build

added check-build

module load ci
echo ""
cd $WORKSPACE/$NAME-$VERSION
make check

echo $?

make install # DESTDIR=$SOFT_DIR
DIRS=`ls $SOFT_DIR`
echo "DIRS to include in the tarball are $DIRS"
mkdir -p $REPO_DIR
rm -rf $REPO_DIR/*
tar -cvzf $REPO_DIR/build.tar.gz -C $SOFT_DIR $DIRS

mkdir -p modules
(
cat <<MODULE_FILE
#%Module1.0
## $NAME modulefile
##
proc ModulesHelp { } {
    puts stderr "       This module does nothing but alert the user"
    puts stderr "       that the [module-info name] module is not available"
}

module-whatis   "$NAME $VERSION."
setenv       NCURSES_VERSION       $VERSION
setenv       NCURSES_DIR           /apprepo/$::env(SITE)/$::env(OS)/$::env(ARCH)/$NAME/$VERSION
prepend-path LD_LIBRARY_PATH   $::env(ncurses_DIR)/lib
prepend-path GCC_INCLUDE_DIR   $::env(ncurses_DIR)/include
MODULE_FILE
) > modules/$VERSION

mkdir -p $LIBRARIES_MODULES/$NAME
cp modules/$VERSION $LIBRARIES_MODULES/$NAME

module add list

module unload ci

module add ci
module avail # should have ncurses
module add ncurses

echo $LD_LIBRARY_PATH


Add wordpress screenshot generator script

#!/usr/bin/env bash

FILE=screenshot.png
if [ -f $FILE ]; then
   echo "File $FILE exists... deleting."
   rm $FILE;
else
   echo "File $FILE does not exist... Generating"
fi

# Generate screenshot
webkit2png http://sams-mbp.local:5757 --ignore-ssl-check -C --clipwidth=1200 --clipheight=900 --scale=0.75 --delay=2 -o screenshot

# Rename it to $FILE
mv screenshot-clipped.png $FILE

error: pathspec 'src/generate-wordpress-screenshot.sh' did not match any file(s) known to git


Issue pg-irc/pathways-backend#455 Fix command for building NCG content fixture

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


Add script to start renderer

Add script to start renderer

#!/bin/bash

set -ev

# Change to the project root.
cd "$(git rev-parse --show-toplevel 2>/dev/null)"

PYTHONPATH=. carto_renderer/service.py

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


Added script to test locally installed `victorious-git`

#!/usr/bin/env bash
# Exit upon first failure and output commands
set -e

# Save the path to our template directory
bin_dir="$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)"
repo_dir="$(dirname "$bin_dir")"
templatedir="$repo_dir/dotgit"

# Generate a demo folder
demo_dir="/tmp/victorious-git-demo"
if test -d "$demo_dir"; then
  rm -rf "$demo_dir"
fi
mkdir "$demo_dir"
cd "$demo_dir"

# Generate a new repository using our existing `git config`
set -x
git init

# Set up merge conflicts
#   Add "hello" and "world" files on `master` in 2 consecutive commits
echo "hello" > hello.txt; git add hello.txt; git commit -m "Added hello file" > /dev/null
echo "world" > world.txt; git add world.txt; git commit -m "Added world file" > /dev/null
#   Add conflicting "world" file on alternative branch
git checkout HEAD~1 &> /dev/null; git checkout -b dev/conflicting.branch &> /dev/null
echo "wurld" > world.txt; git add world.txt; git commit -m "Added wurld file" > /dev/null

# Notify user of their test drive being ready to go
set +x
echo "Your \`victorious-git\` test drive has been set up at \"$demo_dir\""
echo "To trigger a merge conflict and play some fanfare run the following commands:"
echo ""
echo "# Navigate to our test drive directory"
echo "cd \"$demo_dir\""
echo ""
echo "# Introduction to our conflicting branches"
echo "#   via git-extras' git-show-tree https://github.com/tj/git-extras/blob/3.0.0/bin/git-show-tree"
echo "git log --all --graph --decorate --oneline --simplify-by-decoration"
echo ""
echo "# Trigger a merge conflict"
echo "git merge master"
echo ""
echo "# Resolve our merge conflict"
echo "git checkout HEAD -- world.txt"
echo ""
echo "# Commit our merge resolution and listen to that glorious fanfare"
echo "git commit --no-edit"

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