Added StrictHostKeyChecking=no and UserKnownHostsFile=/dev/null to try and prevent known_hosts issues when creating / destroying the vms.

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/cloudn/cf-php-buildpack-binary-build-scripts.git/'


readlines

readlines

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/IsmailMarmoush/devops-samples.git/'


Create fish-setup.sh

Create fish-setup.sh

#!/bin/bash
# Exit the script as soon as an executed command does not succeed
set -o errexit
# Exit the script when an unintialized variable is used
set -o nounset

echo "Hello $USER"

echo "Setting up cakephp environment"

echo "Adding fish repository..."
sudo apt-add-repository ppa:fish-shell/release-2

echo "Updating packaging tool..."
sudo apt-get update

echo "Installing fish..."
sudo apt-get install -y fish

echo "Installing oh-my-fish..."
curl -L https://github.com/oh-my-fish/oh-my-fish/raw/master/bin/install | fish

echo "Installing chain theme..."
omf install chain

fish

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


Delete debian.sh

Delete debian.sh

#!/bin/bash

APP=pybitmessage
PREV_VERSION=0.4.4
VERSION=0.6.0
RELEASE=1
ARCH_TYPE=all
DIR=${APP}-${VERSION}
CURDIR=`pwd`
SHORTDIR=`basename ${CURDIR}`

if [ $ARCH_TYPE == "x86_64" ]; then
    ARCH_TYPE="amd64"
fi
if [ $ARCH_TYPE == "i686" ]; then
    ARCH_TYPE="i386"
fi

# Update version numbers automatically - so you don't have to
sed -i 's/VERSION='${PREV_VERSION}'/VERSION='${VERSION}'/g' Makefile rpm.sh arch.sh puppy.sh ebuild.sh slack.sh
sed -i 's/Version: '${PREV_VERSION}'/Version: '${VERSION}'/g' rpmpackage/${APP}.spec
sed -i 's/Release: '${RELEASE}'/Release: '${RELEASE}'/g' rpmpackage/${APP}.spec
sed -i 's/pkgrel='${RELEASE}'/pkgrel='${RELEASE}'/g' archpackage/PKGBUILD
sed -i 's/pkgver='${PREV_VERSION}'/pkgver='${VERSION}'/g' archpackage/PKGBUILD
sed -i "s/-${PREV_VERSION}-/-${VERSION}-/g" puppypackage/*.specs
sed -i "s/|${PREV_VERSION}|/|${VERSION}|/g" puppypackage/*.specs
sed -i 's/VERSION='${PREV_VERSION}'/VERSION='${VERSION}'/g' puppypackage/pinstall.sh puppypackage/puninstall.sh
sed -i 's/-'${PREV_VERSION}'.so/-'${VERSION}'.so/g' debian/*.links

make clean
make

# Change the parent directory name to Debian format
mv ../${SHORTDIR} ../${DIR}

# Create a source archive
make sourcedeb

# Build the package
dpkg-buildpackage -F -us -uc

# Sign files
gpg -ba ../${APP}_${VERSION}-1_${ARCH_TYPE}.deb
gpg -ba ../${APP}_${VERSION}.orig.tar.gz

# Restore the parent directory name
mv ../${DIR} ../${SHORTDIR}


Add Postgres utility script.

Add Postgres utility script.

#!/bin/bash
set -x
psql -h 127.0.0.1 -p 55432 debiki_prod debiki_prod

error: pathspec 'scripts/psql-debiki_prod-tunnel.sh' did not match any file(s) known to git


kill foreman (#2082)

kill foreman (#2082)

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


try to crack all five ciphers with keys

try to crack all five ciphers with keys

# cracking ciphers by testing different keys
# the keys are mostly composed of alpha-numeric.

# rebuild the executables FRESH
#make clean
#make

# test on Caesar cipher
echo -e "\n"
echo "Test case 26: caesar cipher"
echo "./cipher CES 0 ENC short_input_file.txt ciphertext.txt"
./cipher CES 0 ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 27: caesar cipher"
echo "./cipher CES 0 DEC ciphertext.txt plaintext.txt"
./cipher CES 0 DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 27: caesar cipher"
echo "./cipher CES 100 ENC short_input_file.txt ciphertext.txt"
./cipher CES 100 ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 28: caesar cipher"
echo "./cipher CES 100 DEC ciphertext.txt plaintext.txt"
./cipher CES 100 DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 29: caesar cipher"
echo "./cipher CES k ENC short_input_file.txt ciphertext.txt"
./cipher CES k ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 30: caesar cipher"
echo "./cipher CES k DEC ciphertext.txt plaintext.txt"
./cipher CES k DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 31: caesar cipher"
echo "./cipher CES -1 ENC short_input_file.txt ciphertext.txt"
./cipher CES -1 ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 32: caesar cipher"
echo "./cipher CES -1 DEC ciphertext.txt plaintext.txt"
./cipher CES -1 DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 33: vigenere cipher"
echo "./cipher VIG abcdefghijklmnopqrstuvwxzy ENC short_input_file.txt ciphertext.txt"
./cipher VIG abcdefghijklmnopqrstuvwxzy ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 34: vigenere cipher"
echo "./cipher VIG abcdefghijklmnopqrstuvwxzy DEC ciphertext.txt plaintext.txt"
./cipher VIG abcdefghijklmnopqrstuvwxzy DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 35: vigenere cipher"
echo "./cipher VIG 1 ENC short_input_file.txt ciphertext.txt"
./cipher VIG 1 ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 36: vigenere cipher"
echo "./cipher VIG 1 DEC ciphertext.txt plaintext.txt"
./cipher VIG 1 DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 37: vigenere cipher"
echo "./cipher VIG a ENC short_input_file.txt ciphertext.txt"
./cipher VIG a ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 38: vigenere cipher"
echo "./cipher VIG a DEC ciphertext.txt plaintext.txt"
./cipher VIG a DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 39: vigenere cipher"
echo "./cipher VIG a ENC short_input_file.txt ciphertext.txt"
./cipher VIG a ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 40: vigenere cipher"
echo "./cipher VIG a DEC ciphertext.txt plaintext.txt"
./cipher VIG a DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 41: railfence cipher"
echo "./cipher RFC a ENC short_input_file.txt ciphertext.txt"
./cipher RFC a ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 42: railfence cipher"
echo "./cipher RFC a DEC ciphertext.txt plaintext.txt"
./cipher RFC a DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 43: railfence cipher"
echo "./cipher RFC 0 ENC short_input_file.txt ciphertext.txt"
./cipher RFC 0 ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 44: railfence cipher"
echo "./cipher RFC 0 DEC ciphertext.txt plaintext.txt"
./cipher RFC 0 DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 45: railfence cipher"
echo "./cipher RFC -1 ENC short_input_file.txt ciphertext.txt"
./cipher RFC -1 ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 44: railfence cipher"
echo "./cipher RFC -1 DEC ciphertext.txt plaintext.txt"
./cipher RFC -1 DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 46: railfence cipher"
echo "./cipher RFC 100 ENC short_input_file.txt ciphertext.txt"
./cipher RFC 100 ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 47: railfence cipher"
echo "./cipher RFC 100 DEC ciphertext.txt plaintext.txt"
./cipher RFC 100 DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 48: row transposition cipher"
echo "./cipher RTS +_* ENC short_input_file.txt ciphertext.txt"
./cipher RTS +_* ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 49: row transposition cipher"
echo "./cipher RTS +_* DEC ciphertext.txt plaintext.txt"
./cipher RTS +_* DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 50: row transposition cipher"
echo "./cipher RTS @ecs12K# ENC short_input_file.txt ciphertext.txt"
./cipher RTS @ecs12K# ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 51: row transposition cipher"
echo "./cipher RTS @ecs12K# DEC ciphertext.txt plaintext.txt"
./cipher RTS @ecs12K# DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 52: row transposition cipher"
echo "./cipher RTS mississipi ENC short_input_file.txt ciphertext.txt"
./cipher RTS mississipi ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 53: row transposition cipher"
echo "./cipher RTS mississipi DEC ciphertext.txt plaintext.txt"
./cipher RTS mississipi DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

# clean up files
rm ciphertext.txt plaintext.txt

echo -e "\n"
echo "Test case 54: playfair cipher"
echo "./cipher PLF mississipi ENC short_input_file.txt ciphertext.txt"
./cipher PLF mississipi ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 55: playfair cipher"
echo "./cipher PLF mississipi DEC ciphertext.txt plaintext.txt"
./cipher PLF mississipi DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

# clean up files
rm ciphertext.txt plaintext.txt

echo -e "\n"
echo "Test case 56: playfair cipher"
echo "./cipher PLF kevincheng99 ENC short_input_file.txt ciphertext.txt"
./cipher PLF kevincheng99 ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 57: playfair cipher"
echo "./cipher PLF kevincheng99 DEC ciphertext.txt plaintext.txt"
./cipher PLF kevincheng99 DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

echo -e "\n"
echo "Test case 58: playfair cipher"
echo "./cipher PLF kkkkkkkkkkkkkkkkkkkkkkkkkkk ENC short_input_file.txt ciphertext.txt"
./cipher PLF kkkkkkkkkkkkkkkkkkkkkkkkkkk ENC short_input_file.txt ciphertext.txt

echo "short input file:"
cat short_input_file.txt

echo "ciphertext:"
cat ciphertext.txt

echo -e "\n"
echo "Test case 59: playfair cipher"
echo "./cipher PLF kkkkkkkkkkkkkkkkkkkkkkkkkkk DEC ciphertext.txt plaintext.txt"
./cipher PLF kkkkkkkkkkkkkkkkkkkkkkkkkkk DEC ciphertext.txt plaintext.txt

echo "ciphertext:"
cat ciphertext.txt

echo "decripted ciphertext:"
cat plaintext.txt

# clean up files
rm ciphertext.txt plaintext.txt

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


Add deploy.sh script which create systemd service

#!/bin/bash

cp volume-rotary-encoder /usr/local/bin/volume-rotary-encoder
chmod +x /usr/local/bin/volume-rotary-encoder

if [[ :$PATH: != *:"/usr/local/bin":* ]] ; then
    PATH=$PATH:/usr/local/bin
fi

cp volume-rotary-encoder.service /etc/systemd/system/volume-rotary-encoder.service
chmod +x /etc/systemd/system/volume-rotary-encoder.service

systemctl enable volume-rotary-encoder
systemctl start volume-rotary-encoder

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


add deployment script

add deployment script

/c/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe ./ConvertToMp3.sln /property:Configuration=Release
find ./ConvertToMp3/bin/Release -name '*.exe' -o -name '*.config' -o -name '*.dll' | xargs cp -v -t /y/Files/Software/Tools/ConvertToMp3/


make deploy.sh executable

make deploy.sh executable

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/rmitc/rmitc.org.git/'


deploy.sh

deploy.sh

#!/bin/sh

git pull
sbt clean package

CLASSPATH="$PWD/mypipe-runner/target/scala-2.11/runner_2.11-0.0.2-SNAPSHOT.jar:$PWD/mypipe-api/target/scala-2.11/api_2.11-0.0.2-SNAPSHOT.jar:$PWD/mypipe-producers/target/scala-2.11/producers_2.11-0.0.2-SNAPSHOT.jar:$PWD/mypipe-avro/target/scala-2.11/myavro_2.11-0.0.2-SNAPSHOT.jar:$PWD/mypipe-kafka/target/scala-2.11/mykafka_2.11-0.0.2-SNAPSHOT.jar"
for i in `find $PWD/lib_managed -name *.jar -type f`; do
    CLASSPATH=$CLASSPATH:$i;
done
echo "Exporting classpath: $CLASSPATH"
export CLASSPATH

pkill -f "mypipe.runner.PipeRunner"

echo "mypipe stopped!"

java mypipe.runner.PipeRunner

echo "mypipe started!"


deploy script start

deploy script start

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/fitpay/fitpay-android-sdk.git/'


Google storage sync call fix.

Google storage sync call 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/jefimenko/SfccHome.git/'


deploy script

deploy script

fatal: unable to access 'https://github.com/nhsevidence/ld-compiler.git/': The requested URL returned error: 403


Fix tags

Fix tags

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/blitzserver/blitzserver-api.git/'


We are having a deployment script

We are having a deployment script

#!/bin/bash

# Removes working directory
rm -rf working

# Creates the working directory
mkdir working
cd working

# Gets the complete and nice little sourcecode
git clone https://github.com/mbrenn/datenmeister-new.git -b master

# Creates the target directory for the publish
mkdir deploy

# Now moving to the right folder and install the npm packages
cd datenmeister-new
cd src/Web/DatenMeister.WebServer
npm install

# If that is done, let's create the .Net assembly
dotnet publish DatenMeister.WebServer.csproj -c Release -o ../../../../deploy

# Get rid of the AppSettings files which might overwrite the deploy configuration
cd ../../../../deploy
rm appsettings.Development.json
mv appsettings.json appsettings.Example.json

# Remove the repository to keep things clean
cd ..
rm -rf datenmeister-new

# Switch to deploy
cd deploy


Add debug.sh for easy unit test debugging under node-inspector

#!/bin/bash

SPECS=`dirname $0`
MOCHA=$SPECS/../node_modules/mocha/bin/mocha
echo Running $SPECS/$1*

$MOCHA --debug-brk --timeout 0 --reporter spec --require should --compilers coffee:coffee-script $2 $SPECS/$1* &
MOCHA_PID=$!

node-inspector &
INSPECTOR_PID=$!

wait $MOCHA_PID
kill -9 $INSPECTOR_PID

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


Create example_hello.sh

Create example_hello.sh

#! /usr/bin/env bash
set -o nounset
set -o errexit
. getoptz.sh

# Variable 'file' will be set to the value of the first argument
add_arg name        --help "Your name."

# A flag (-v or --verbose)
add_opt verbose v   --help "Enable verbose mode."

getoptz_configure   --help "Print a hello world message."
getoptz_parse "$@"

# Your script begins here
[[ ! $verbose ]] || echo "[INFO] name=$name"
echo "Hello, $name!"

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


add support for webpack 4

add support for webpack 4

sh react-d3.sh
sh react-redux-three.sh
sh react-redux.sh
sh react-three.sh
sh react.sh

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


upload fio_script.sh

upload fio_script.sh

fatal: unable to access 'https://github.com/luke1987515/box-turtle.git/': The requested URL returned error: 403


Delete ci.sh

Delete ci.sh

#!/bin/sh

set -eu

echo "Building metar.js"
echo "Running as $(whoami)"
echo "Running from $(pwd)"

sudo apt-get install -y python-software-properties
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs -y
npm install
npm test


Create centos.sh

Create centos.sh

fatal: unable to access 'https://github.com/snakeliwei/myproject.git/': The requested URL returned error: 403


script to test nucleR

script to test nucleR

#!/usr/bin/env sh

###############################################################################

script="/home/rilla/nucleServ/bin/nucleR.R"
input="/orozco/services/Rdata/tmp_wd/120502_SN365_B_L002_GGM-34.RData"
output="/orozco/services/Rdata/tmp_wd/120502_SN365_B_L002_GGM-34_NR.gff"

Rscript $script    \
    --input $input \
    --output $output

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


From Philippe

From Philippe

do not create posix.dll for windows

git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@7978 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/'


Add apt-cyg install script

Add apt-cyg install script

fatal: unable to access 'https://github.com/weikinhuang/dotfiles.git/': The requested URL returned error: 403


beginnings of config file

beginnings of config file

git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

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


Use different params for unpack-pcf-pipelines-combined

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/pvsone/pcf-pipelines.git/'


Fix copy/paste error in teamcity integration

#!/bin/bash
SINCE=$1
UNTIL=$2

if [ "$SINCE" = "" ] || [ "$UNTIL" = "" ]
then
	echo "Usage: $0 <since> <until>"
	exit 3
fi

testname="merge check for `pwd|sed "s/.*\///"`"
echo "##teamcity[testStarted name='$testname' captureStandardOutput='true']"

command="git --no-pager log --no-color $SINCE..$UNTIL"
# TODO Why do I get whitespace in the beginning of the wc output?
change_count=`$command --oneline|wc -l|tr -d ' '`

if [ "$change_count" = "0" ]
then
	echo "No unmerged commits"
else
	command="$command --format=short"
	message="There are $change_count commits that have not been merged from $UNTIL to $SINCE"
	echo $message
	echo ""
	$command
	details=`$command|perl -p -e 's/\n/|n/' | sed "s/['\|\[\]]/|\&/g"`
	echo "##teamcity[testFailed name='$testname' message='$message' details='|n$details']"
fi

echo "##teamcity[testFinished name='$testname']"

#!/bin/bash
SINCE=$1
UNTIL=$2

if [ "$SINCE" = "" ] || [ "$UNTIL" = "" ]
then
	echo "Usage: $0 <since> <until>"
	exit 3
fi

testname="merge check for `pwd|sed "s/.*\///"`"
echo "##teamcity[testStarted name='$testname' captureStandardOutput='<true/false>']"

command="git --no-pager log --no-color $SINCE..$UNTIL"
# TODO Why do I get whitespace in the beginning of the wc output?
change_count=`$command --oneline|wc -l|tr -d ' '`

if [ "$change_count" = "0" ]
then
	echo "No unmerged commits"
else
	command="$command --format=short"
	message="There are $change_count commits that have not been merged from $UNTIL to $SINCE"
	echo $message
	echo ""
	$command
	details=`$command|perl -p -e 's/\n/|n/' | sed "s/['\|\[\]]/|\&/g"`
	echo "##teamcity[testFailed name='$testname' message='$message' details='|n$details']"
fi

echo "##teamcity[testFinished name='$testname']"


remove race test (#878)

remove race test (#878)

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/vadimeisenbergibm/pilot.git/'


initial commit

initial commit

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/aleksejrs/wikidata-study-priority-calc.git/'


Add dumphex helper script

Add dumphex helper script

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


Updates to initdevenv.sh

Updates to initdevenv.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/addrummond/nodeibexfarm.git/'


jenkins script

jenkins 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/ludiko/nodebot.git/'


Create usercounter.sh

Create usercounter.sh

fatal: unable to access 'https://github.com/EvilOlaf/NeuanfangIV.git/': The requested URL returned error: 403


[go] moves $GOPATH to common Development directory

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


Added a script to run tests.

Added a script to run tests.

#!/bin/sh

./node_modules/nodeunit/bin/nodeunit tests

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


Add valgrind shell script

Add valgrind shell script

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


Create regenerate_ssh-hostkeys.sh

Create regenerate_ssh-hostkeys.sh

#!/bin/bash
#
# Regenerating SSH host keys
#

sudo rm /etc/ssh/ssh_host_rsa_key*
sudo rm /etc/ssh/ssh_host_dsa_key*
sudo ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
sudo ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa

exit 0

error: pathspec 'eth-scripts/regenerate_ssh-hostkeys.sh' did not match any file(s) known to git


:whale: Fix #12437

:whale: Fix #12437

fatal: unable to access 'https://github.com/b3log/b3log-solo.git/': The requested URL returned error: 403


Fix rename script

Fix rename 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/cmur2/chef-_template.git/'


Automated Release

Automated Release

This change adds an automated release script.

#!/usr/bin/env sh

set -e -u

RELEASE=$1
SNAPSHOT=$2

./mvnw versions:set -DnewVersion=$RELEASE -DgenerateBackupPoms=false
git add .
git commit --message "v$RELEASE Release"
git tag -s v$RELEASE -m "v$RELEASE"

git reset --hard HEAD^1
./mvnw versions:set -DnewVersion=$SNAPSHOT -DgenerateBackupPoms=false
git add .
git commit --message "v$SNAPSHOT Development"

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


Better backups

Better backups

fatal: unable to access 'https://github.com/freyproject/frey.git/': The requested URL returned error: 403


Add fixubuntu.sh

Add fixubuntu.sh

fatal: unable to access 'https://github.com/kui/dotfiles.git/': The requested URL returned error: 403


Issue #731 adjust messages.po validation and pattern to look for

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


(sharing)

(sharing)

#!/bin/bash

last=$(($(date +%s%N)/1000000))

inotifywait -r -e modify -e create . -m | awk '{ print $3; fflush() }' |

while read file; do

  new=$(($(date +%s%N)/1000000))
  since=$(expr $new - $last)
  last=$new

  # debounce
  if [[ $since -ge 1 ]]; then
    ext=${file#*.}
    if [ $ext == "coffee" ]; then
      echo "compiling $file"
      coffee -c $file
    fi
    if [ $ext == "styl" ]; then
      echo "compiling $file"
      stylus $file
    fi
  fi

done

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


Aux script to remove files from repo

Aux script to remove files from repo

#!/bin/bash -eu

rm ~/biodata/galGal/"$1" /mnt/scratch/irberlui/biodata/galGal/"$1"

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


Add missing ROOT window settings general tweaking and cleanup

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/hlwsmith/quickcast-script.git/'


Bootstrap script for ngs-sdk docker

Bootstrap script for ngs-sdk docker

#/bin/bash
cd /tmp
mkdir ncbi
cd ncbi
git clone https://github.com/ncbi/ngs.git
git clone https://github.com/ncbi/ncbi-vdb.git
cd ngs
./configure
make -C ngs-sdk
make -C ngs-sdk install
make -C ngs-java
make -C ngs-java install
cd ngs-bam
./configure
cd ..
make -C ngs-bam
make -C ngs-bam install

# NCBI-VDB
cd ncbi-vdb/
./configure
make
make install

error: pathspec 'inst/docker/install_ngs_sdk.sh' did not match any file(s) known to git


Fix logging to file for Freeciv-pbem.

Fix logging to file for Freeciv-pbem.

#!/bin/sh
# Startup script for running all processes of Freeciv-web

SCRIPT_DIR="$(dirname "$0")"
export FREECIV_WEB_DIR="${SCRIPT_DIR}/.."
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

echo "Starting up Freeciv-web: nginx, resin, publite2, freeciv-proxy."

mkdir -p ${FREECIV_WEB_DIR}/logs

# 1. nginx
echo "Starting nginx first."

if [ "$(pidof nginx)" ]
then
  echo "nginx already running!"
else
  echo "Please enter root password:"
  sudo service nginx start && \
  echo "nginx started!" && \
  sleep 1
fi

# 2. Resin
echo "Starting up Resin" && \
${FREECIV_WEB_DIR}/resin/bin/resin.sh start && \
echo "Resin starting.." && \

# waiting for Resin to start, since it will take some time.
until `curl --output /dev/null --silent --head --fail "http://localhost:8080/meta/metaserver.php"`; do
    printf ".."
    sleep 3
done
sleep 8

#3. publite2
echo "Starting publite2" && \
(cd ${FREECIV_WEB_DIR}/publite2/ && \
sh run.sh) && \
echo "Publite2 started" && \
echo "Starting Freeciv-PBEM" && \
cd ${FREECIV_WEB_DIR}/pbem/ && nohup python3.4 -u freeciv-pbem.py > ../logs/freeciv-pbem.log 2>&1 || echo "unable to start freeciv-pbem" &

echo "Will sleep for 8 seconds, then do a status test..." && \
sleep 8 && \
cd ${FREECIV_WEB_DIR}/scripts/ && bash meta-sync.sh && \
sh ${FREECIV_WEB_DIR}/scripts/status-freeciv-web.sh

#!/bin/sh
# Startup script for running all processes of Freeciv-web

SCRIPT_DIR="$(dirname "$0")"
export FREECIV_WEB_DIR="${SCRIPT_DIR}/.."
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

echo "Starting up Freeciv-web: nginx, resin, publite2, freeciv-proxy."

mkdir -p ${FREECIV_WEB_DIR}/logs

# 1. nginx
echo "Starting nginx first."

if [ "$(pidof nginx)" ]
then
  echo "nginx already running!"
else
  echo "Please enter root password:"
  sudo service nginx start && \
  echo "nginx started!" && \
  sleep 1
fi

# 2. Resin
echo "Starting up Resin" && \
${FREECIV_WEB_DIR}/resin/bin/resin.sh start && \
echo "Resin starting.." && \

# waiting for Resin to start, since it will take some time.
until `curl --output /dev/null --silent --head --fail "http://localhost:8080/meta/metaserver.php"`; do
    printf ".."
    sleep 3
done
sleep 8

#3. publite2
echo "Starting publite2" && \
(cd ${FREECIV_WEB_DIR}/publite2/ && \
sh run.sh) && \
echo "Publite2 started" && \
echo "Starting Freeciv-PBEM" && \
cd ${FREECIV_WEB_DIR}/pbem/ && nohup python3.4 freeciv-pbem.py > ../logs/freeciv-pbem.log 2>&1 || echo "unable to start freeciv-pbem" &

echo "Will sleep for 8 seconds, then do a status test..." && \
sleep 8 && \
cd ${FREECIV_WEB_DIR}/scripts/ && bash meta-sync.sh && \
sh ${FREECIV_WEB_DIR}/scripts/status-freeciv-web.sh


retrieve.sh recreates the use case, captures the provenance, and prepares the data subsets for the diagrams.

#!/bin/bash
#
# see http://purl.org/twc/pub/mccusker2012parallel for discussion of the use case that this script reproduces.

if [[ "$1" == "clean" ]]; then
   rm -f    source/us_economic_assistance.csv          #               Source data file (Use Case Event 1)
   rm -f    source/us_economic_assistance.csv.prov.ttl # Provenance of ^
   rm -rf automatic/*
   clean="clean"
fi

touch .use_case_started

# Retrieve

pushd source/ 2>&1 > /dev/null
   if [[ ! -e us_economic_assistance.csv || ! -e us_economic_assistance.csv.prov.ttl ]]; then
      rm -f us_economic_assistance.csv us_economic_assistance.csv.prov.ttl

      # Use Case Event 1: Data Integrator E retrieves http://explore.data.gov/download/5gah-bvex/CSV

      echo "Retrieving http://explore.data.gov/download/5gah-bvex/CSV"
      pcurl.py "http://explore.data.gov/download/5gah-bvex/CSV"
      cp us_economic_assistance.csv.prov.ttl ../doc/at_event_1.ttl
   fi
popd 2>&1 > /dev/null

# Use Case Event 2: Data Integrator W retrieves http://www.data.gov/download/1554/csv

if [ ! -d ../../../1554-frbr-demo-www/version/2011-Sep-19-frbr ]; then
   echo "need ../../../1554-frbr-demo-www/version/2011-Sep-19-frbr"
   echo "  git pull https://github.com/timrdf/csv2rdf4lod-automation/tree/master/doc/examples/source/data-gov/1554-frbr-demo-www/version/2011-Sep-19-frbr"
   echo "FAILED"
   exit 1
fi
pushd ../../../1554-frbr-demo-www/version/2011-Sep-19-frbr 2>&1 > /dev/null
   touch .use_case_started
   ./retrieve.sh $clean
   touch .use_case_finished
popd > /dev/null

# Convert

if [[ ! -e automatic/us_economic_assistance.csv.raw.ttl || ! -e automatic/us_economic_assistance.csv.raw.void.ttl ]]; then

   # Use Case Event 3: Data Integrator E converts its local us_economic_assistance.csv to raw RDF

   ./convert-1554-frbr-demo-explore.sh # Perform the raw conversion
   grep-tail.sh -p "#-fstack raw yes"    source/us_economic_assistance.csv.prov.ttl      > doc/at_event_3.ttl
   grep-tail.sh -p "#-fstack raw yes" automatic/us_economic_assistance.csv.raw.void.ttl >> doc/at_event_3.ttl

   # Use Case Event 4: Data Integrator E reserializes the raw RDF from Turtle to RDF/XML syntax.

   rapper -g -o rdfxml automatic/us_economic_assistance.csv.raw.ttl     > automatic/us_economic_assistance.csv.raw.ttl.rdf
   fstack.py  --stdout automatic/us_economic_assistance.csv.raw.ttl.rdf > automatic/us_economic_assistance.csv.raw.ttl.rdf.prov.ttl
                                                                       cp automatic/us_economic_assistance.csv.raw.ttl.rdf.prov.ttl doc/at_event_4.ttl
fi

if [[ ! -e automatic/us_economic_assistance.csv.e1.ttl || ! -e automatic/us_economic_assistance.csv.e1.void.ttl ]]; then

   # Use Case Event 5: Data Integrator E converts its local us_economic_assistance.csv to enhanced RDF

   ./convert-1554-frbr-demo-explore.sh # Perform the enhanced conversion with ../e1.params.ttl
   grep-tail.sh -p "#-fstack raw no"    source/us_economic_assistance.csv.prov.ttl     > doc/at_event_5.ttl
   grep-tail.sh -p "#-fstack raw no" automatic/us_economic_assistance.csv.e1.void.ttl >> doc/at_event_5.ttl
fi

# Use Case Event 6: Both Data Integrators (E and W) publish their results on the web.

# Use Case Event 7: Data Consumer C must choose from among the seven data products.

# Test the FRBR provenance produced.

rm -f publish/tdb/*
#tdbloader --loc=publish/tdb --graph=test    source/us_economic_assistance.csv.prov.ttl     # d/l + raw conversion input + e1 conversion input
#tdbloader --loc=publish/tdb --graph=test automatic/us_economic_assistance.csv.raw.void.ttl # raw      output + prov:wasDerivedFrom csv
#tdbloader --loc=publish/tdb --graph=test automatic/us_economic_assistance.csv.e1.void.ttl  # enhanced output + prov:wasDerivedFrom csv
tdbloader --loc=publish/tdb --graph=test doc/at_event*.ttl ../../../1554-frbr-demo-www/version/2011-Sep-19-frbr/doc/at_event*.ttl
cr-test-conversion.sh -v

touch .use_case_finished
echo "Files affected during use case:"
find . -newer .use_case_started -not -newer .use_case_finished | grep -v "^\.$" | grep -v ".use_case_finished" | sed 's/^\.\///' | grep -v "^publish" | grep -v "^doc/logs" | grep -v "_CSV2RDF4LOD_file_list.txt" | grep -v "^publish/bin"

# Data Integrator E's CSV vs. Data Integrator W's
event_2="../../../1554-frbr-demo-www/version/2011-Sep-19-frbr/doc/at_event_2.ttl"
rapper -g -o ntriples doc/at_event_1.ttl 2> /dev/null | awk -f doc/filter.awk  > doc/compare-events-1-2.nt
rapper -g -o ntriples $event_2           2> /dev/null | awk -f doc/filter.awk >> doc/compare-events-1-2.nt
rapper -g -o rdfxml                                                              doc/compare-events-1-2.nt   2> /dev/null > doc/compare-events-1-2.rdf
                                                                              rm doc/compare-events-1-2.nt

# Downloaded CSV vs. Raw RDF
rapper -g -o ntriples doc/at_event_1.ttl 2> /dev/null | awk -f doc/filter.awk  > doc/compare-events-1-3.nt
rapper -g -o ntriples doc/at_event_3.ttl 2> /dev/null | awk -f doc/filter.awk >> doc/compare-events-1-3.nt
rapper -g -o rdfxml                                                              doc/compare-events-1-3.nt   2> /dev/null > doc/compare-events-1-3.rdf
                                                                              rm doc/compare-events-1-3.nt

# Raw in Turtle vs. Raw in RDF/XML
rapper -g -o ntriples doc/at_event_3.ttl 2> /dev/null | awk -f doc/filter.awk  > doc/compare-events-3-4.nt
rapper -g -o ntriples doc/at_event_4.ttl 2> /dev/null | awk -f doc/filter.awk >> doc/compare-events-3-4.nt
rapper -g -o rdfxml                                                              doc/compare-events-3-4.nt   2> /dev/null > doc/compare-events-3-4.rdf
                                                                              rm doc/compare-events-3-4.nt

# Downloaded CSV, Raw RDF, and Enhanced RDF
rapper -g -o ntriples doc/at_event_1.ttl 2> /dev/null | awk -f doc/filter.awk  > doc/compare-events-1-3-5.nt
rapper -g -o ntriples doc/at_event_3.ttl 2> /dev/null | awk -f doc/filter.awk >> doc/compare-events-1-3-5.nt
rapper -g -o ntriples doc/at_event_5.ttl 2> /dev/null | awk -f doc/filter.awk >> doc/compare-events-1-3-5.nt
rapper -g -o rdfxml                                                              doc/compare-events-1-3-5.nt 2> /dev/null > doc/compare-events-1-3-5.rdf
                                                                              rm doc/compare-events-1-3-5.nt

error: pathspec 'doc/examples/source/data-gov/1554-frbr-demo-explore/version/2011-Sep-19-frbr/retrieve.sh' did not match any file(s) known to git


Delete old scripts

Delete old scripts

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


:heavy_plus_sign: Add tmux installer

:heavy_plus_sign: Add tmux installer

#!/bin/bash

git clone https://github.com/tmux-plugins/tpm $HOME/.tmux/plugins/tpm
cp ./tmux.conf $HOME/.tmux.conf

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


Add alias for fuckyou function

Add alias for fuckyou function

error: pathspec 'shell/fuckyou.alias.sh' did not match any file(s) known to git


Create generate_mapcycle.sh

Create generate_mapcycle.sh

#!/bin/bash

# You should change this:
SRCDS_PATH="SET_THIS_FIRST"

# Don't change these, unless you know what you're doing
WORKSHOP="$SRCDS_PATH/steamapps/workshop/content/222880"
COOPMODES="Conquer Checkpoint Hunt Outpost Survival"
PVPMODES="Ambush Battle Elimination Firefight Flashpoint Infiltrate Invasion Occupy Push Skirmish Strike"

## Options
# --coop
# --pvp
# --all
# --modes=

usage() {
        printf "[USAGE] ./generate_mapcycle.sh [opts]\n"
        printf "Opts:\n"
        printf " coop\t\tReturn only Co-op game modes\n"
        printf " pvp\t\tReturn only PVP game modes\n"
        printf " all\t\tReturn all game modes\n"
        printf " modes=\tReturn only specified modes\n\n"

        printf "Examples:\n"
        printf "All Co-op maps: ./generate_mapcycle.sh coop\n"
        printf "Only Hunt maps: ./generate_mapcycle.sh modes=hunt\n"
        printf "Mixed modes: ./generate_mapcycle.sh modes=hunt,checkpoint,conquer\n"
        exit 1
}

if [[ "$SRCDS_PATH" == "SET_THIS_FIRST" ]]; then
        printf "[ERROR] Please set SRCDS_PATH [4]"
        exit 1
fi

if [[ $# == 0 || $# > 1 ]]; then
        usage
fi

VALIDMODES=""
if [[ "$1" == "coop" ]]; then VALIDMODES=$COOPMODES; fi
if [[ "$1" == "pvp" ]]; then VALIDMODES=$PVPMODES; fi
if [[ "$1" == "all" ]]; then VALIDMODES="$COOPMODES $PVPMODES"; fi
CUSTOM=$(echo "$1" | grep -i "modes" | sed 's#modes=##i')
if [[ "$VALIDMODES" == "" ]]; then
        if [[ "$CUSTOM" != "" ]]; then
                VALIDMODES=$(echo "$1")
        else
                printf "[ERROR] No modes supplied\n\n"
                usage
        fi
fi

OLDPWD=$(pwd);

get_ids() {
        cd $1
        IDS=$(find . -maxdepth 1 -type d | sed 's#./##' | sort | grep -v "^\.$")
        echo $IDS
}

get_bsp_name() {
        cd $SRCDS_PATH
        BSPNAME=$(find . -name *.bsp | grep $1 | awk -F / '{print $NF}' | sed 's#\.bsp##')
        echo $BSPNAME
}

get_map_modes() {
        if [ "$1" != "" ]; then
                wget -q "http://steamcommunity.com/sharedfiles/filedetails/?id=$1" -O /tmp/$1.html
                MODES=$(grep workshopTagsTitle /tmp/$1.html | sed -e "s#>#\n#g" -e "s#<#\n#g" | egrep "^[A-Z]" | grep -v "Maps")
                MAPNAME=$(get_bsp_name $1)
                for MODE in $MODES; do
                        COMBINED=$(echo $MAPNAME $MODE | awk '{print tolower($0)}')
                        if [[ $(echo "$VALIDMODES" | grep -i $MODE) != "" ]]; then
                                echo "$COMBINED"
                        fi
                done
                rm /tmp/$1.html
        fi
}

MAPIDS=$(get_ids $WORKSHOP)
for ID in $MAPIDS; do
        get_map_modes $ID
done

cd $OLDPWD

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


[ubuntu] Install Opera Beta and Opera Developer

#/bin/bash

cd "$(dirname "$BASH_SOURCE")" \
    && source '../../utils.sh' \
    && source 'utils.sh'

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

main() {

    # Tools for compiling/building software from source
    install_package 'Build Essential' 'build-essential'

    # GnuPG archive keys of the Debian archive
    install_package 'GnuPG archive keys' 'debian-archive-keyring'

    # Software which is not included by default
    # in Ubuntu due to legal or copyright reasons
    #install_package 'Ubuntu Restricted Extras' 'ubuntu-restricted-extras'

    printf '\n'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    if ! package_is_installed 'atom'; then

        add_ppa 'webupd8team/atom'
        print_result $? "Atom (add PPA)"

        update

        install_package 'Atom' 'atom'

        printf '\n'

    else
        print_success 'Atom'
    fi

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    if ! package_is_installed 'google-chrome-unstable'; then

        add_key 'https://dl-ssl.google.com/linux/linux_signing_key.pub'
        print_result $? "Chrome Canary (add key)"

        add_to_source_list 'http://dl.google.com/linux/deb/ stable main' 'google-chrome.list'
        print_result $? "Chrome Canary (add to package resource list)"

        update

        install_package 'Chrome Canary' 'google-chrome-unstable'

        printf '\n'

    else
        print_success 'Chrome Canary'
    fi

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'Chromium' 'chromium-browser'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'cURL' 'curl'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'Dropbox' 'nautilus-dropbox'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    if ! package_is_installed 'firefox-trunk'; then

        printf '\n'

        add_ppa 'ubuntu-mozilla-daily/ppa'
        print_result $? "Firefox Nightly (add PPA)"

        update

        install_package 'Firefox Nightly' 'firefox-trunk'

        printf '\n'

    else
        print_success 'Firefox Nightly'
    fi

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'Flash' 'flashplugin-installer'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'GIMP' 'gimp'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'Git' 'git'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'GNOME Vim' 'vim-gnome'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'ImageMagick' 'imagemagick'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    if ! package_is_installed 'opera'; then

        printf '\n'

        add_key 'http://deb.opera.com/archive.key'
        print_result $? "Opera (add key)"

        add_to_source_list 'http://deb.opera.com/opera-stable/ stable non-free' 'opera.list'
        print_result $? "Opera (add to package resource list)"

        update

        install_package 'Opera' 'opera-stable'

        printf '\n'

    else
        print_success 'Opera'
    fi

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    if ! package_is_installed 'opera-beta'; then
        install_package 'Opera Beta' 'opera-beta'
    else
        print_success 'Opera Beta'
    fi

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    if ! package_is_installed 'opera-developer'; then
        install_package 'Opera Developer' 'opera-developer'
    else
        print_success 'Opera Developer'
    fi

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'tmux' 'tmux'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'Transmission' 'transmission'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'VirtualBox' 'virtualbox'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'VLC' 'vlc'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'xclip' 'xclip'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'Zopfli' 'zopfli'

}

main

#/bin/bash

cd "$(dirname "$BASH_SOURCE")" \
    && source '../../utils.sh' \
    && source 'utils.sh'

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

main() {

    # Tools for compiling/building software from source
    install_package 'Build Essential' 'build-essential'

    # GnuPG archive keys of the Debian archive
    install_package 'GnuPG archive keys' 'debian-archive-keyring'

    # Software which is not included by default
    # in Ubuntu due to legal or copyright reasons
    #install_package 'Ubuntu Restricted Extras' 'ubuntu-restricted-extras'

    printf '\n'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    if ! package_is_installed 'atom'; then

        add_ppa 'webupd8team/atom'
        print_result $? "Atom (add PPA)"

        update

        install_package 'Atom' 'atom'

        printf '\n'

    else
        print_success 'Atom'
    fi

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    if ! package_is_installed 'google-chrome-unstable'; then

        add_key 'https://dl-ssl.google.com/linux/linux_signing_key.pub'
        print_result $? "Chrome Canary (add key)"

        add_to_source_list 'http://dl.google.com/linux/deb/ stable main' 'google-chrome.list'
        print_result $? "Chrome Canary (add to package resource list)"

        update

        install_package 'Chrome Canary' 'google-chrome-unstable'

        printf '\n'

    else
        print_success 'Chrome Canary'
    fi

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'Chromium' 'chromium-browser'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'cURL' 'curl'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'Dropbox' 'nautilus-dropbox'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    if ! package_is_installed 'firefox-trunk'; then

        printf '\n'

        add_ppa 'ubuntu-mozilla-daily/ppa'
        print_result $? "Firefox Nightly (add PPA)"

        update

        install_package 'Firefox Nightly' 'firefox-trunk'

        printf '\n'

    else
        print_success 'Firefox Nightly'
    fi

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'Flash' 'flashplugin-installer'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'GIMP' 'gimp'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'Git' 'git'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'GNOME Vim' 'vim-gnome'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'ImageMagick' 'imagemagick'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    if ! package_is_installed 'opera'; then

        printf '\n'

        add_key 'http://deb.opera.com/archive.key'
        print_result $? "Opera (add key)"

        add_to_source_list 'http://deb.opera.com/opera-stable/ stable non-free' 'opera.list'
        print_result $? "Opera (add to package resource list)"

        update

        install_package 'Opera' 'opera-stable'

        printf '\n'

    else
        print_success 'Opera'
    fi

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'tmux' 'tmux'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'Transmission' 'transmission'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'VirtualBox' 'virtualbox'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'VLC' 'vlc'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'xclip' 'xclip'

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    install_package 'Zopfli' 'zopfli'

}

main


rimosso il flag di debug

rimosso il flag di debug

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/apelliciari/JJG-Ansible-Windows.git/'


run_tests.sh, do syntax validation of the test files

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


Get devices from static URL

Get devices from static URL

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/rhwood/paducah.git/'


delete old recipe manager

delete old recipe manager

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/mettatw/probable-octo-guacamole.git/'


prefix alias with go

prefix alias with go

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


added imagemagick script to generate ship sprites

#!/bin/bash
for angle in `seq -w 0 10 350`
do
  convert -alpha set -background black -rotate -$angle -gravity NorthWest -crop 16x16+0+0 ship.png ship_$angle.png
done

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


fix run script

fix run script

echo Crystal
../xtime.rb ./brainfuck_cr bench.b
echo Go
../xtime.rb ./brainfuck_go bench.b
echo Cpp
../xtime.rb ./brainfuck_cpp bench.b
echo Rust
../xtime.rb ./brainfuck_rs bench.b
echo D
../xtime.rb ./brainfuck_d bench.b
echo Nimrod
../xtime.rb ./brainfuck_nim bench.b
echo Scala
../xtime.rb scala BrainFuck bench.b
echo V8 Javascript
../xtime.rb d8 brainfuck.d8.js
echo Node
../xtime.rb nodejs brainfuck.js bench.b
echo Python Pypy
../xtime.rb pypy brainfuck.py bench.b
echo Python
../xtime.rb python brainfuck.py bench.b
echo Ruby
../xtime.rb ruby brainfuck.rb bench.b
echo Ruby Topaz
../xtime.rb topaz brainfuck.rb bench.b

echo Crystal
../xtime.rb ./brainfuck_cr bench.b
echo Go
../xtime.rb ./brainfuck_go bench.b
echo Cpp
../xtime.rb ./brainfuck_cpp bench.b
echo Rust
../xtime.rb ./brainfuck_rs bench.b
echo D
../xtime.rb ./brainfuck_d bench.b
echo Nimrod
../xtime.rb ./brainfuck_nim bench.b
echo Scala
../xtime.rb scala BrainFuck bench.b
echo V8 Javascript
../xtime.rb d8 brainfuck.d8.js
echo Node
../xtime.rb nodejs brainfuck.js bench.b
echo Python Pypy
../xtime.rb /home/kostya/python/pypy/pypy-c brainfuck.py bench.b
echo Python
../xtime.rb python brainfuck.py bench.b
echo Ruby
../xtime.rb ruby brainfuck.rb bench.b
echo Ruby Topaz
../xtime.rb /home/kostya/python/topaz/bin/topaz brainfuck.rb bench.b


add yaourt installation scripts

add yaourt installation scripts

pushd /tmp

git clone https://aur.archlinux.org/package-query.git
pushd package-query
makepkg -si
popd

git clone https://aur.archlinux.org/yaourt.git
pushd yaourt
makepkg -si
popd
popd

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


script to checkout sidecar files for use with Colab

fatal: unable to access 'https://github.com/GoogleCloudPlatform/training-data-analyst.git/': The requested URL returned error: 403


Gendoc.sh

Gendoc.sh

#!/bin/sh

rm -rf /tmp/trimethyl
mkdir -p /tmp/trimethyl

jsduck framework --output /tmp/trimethyl --title "Trimethyl API Documentation" --footer "Alloy+Titanium toolchain with superpowers" --exclude framework/ext &&

open /tmp/trimethyl/index.html &&
cd /tmp/trimethyl &&

git init && git checkout -b gh-pages &&
git add -A && git commit -am "Documentation of $(date)" &&
git remote add origin git@github.com:CaffeinaLab/Trimethyl.git &&
git push -u -f origin gh-pages

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


Adding default install script for mongo on ubuntu

#!/bin/bash
# description: A basic Mongodb installation
# operating_systems: Ubuntu 16.04
# tags: MongoDB,Ubuntu
# packages: MongoDB
# created: 11/22/2016
# last_updated: 11/22/2016

########################################
# Installing MongoDB Community Edition #
########################################
echo "# Getting public key"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927

echo "# Creating list file for mongodb"
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list

echo "# Updating packages"
sudo apt-get update

echo "# Installing MongoDb"
sudo apt-get install -y mongodb-org

################################
# Setting Systemd Service File #
################################
if [ -f /lib/systemd/system/mongod.service ]
then
    echo "Deleting Systemd service file"
    sudo rm /lib/systemd/system/mongod.service
fi

echo "# Creating Systemd service file"
echo "[Unit]"                                                                 >> /lib/systemd/system/mongod.service
echo "Description=High-performance, schema-free document-oriented database"   >> /lib/systemd/system/mongod.service
echo "After=network.target"                                                   >> /lib/systemd/system/mongod.service
echo "Documentation=https://docs.mongodb.org/manual"                          >> /lib/systemd/system/mongod.service
echo ""                                                                       >> /lib/systemd/system/mongod.service
echo "[Service]"                                                              >> /lib/systemd/system/mongod.service
echo "User=mongodb"                                                           >> /lib/systemd/system/mongod.service
echo "Group=mongodb"                                                          >> /lib/systemd/system/mongod.service
echo "ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf"            >> /lib/systemd/system/mongod.service
echo ""                                                                       >> /lib/systemd/system/mongod.service
echo "[Install]"                                                              >> /lib/systemd/system/mongod.service
echo "WantedBy=multi-user.target"

echo "# Starting mongod service"
sudo service mongod start

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


carton completion plugin

carton completion plugin

if which carton &> /dev/null
then
  source $(dirname $(which carton))/../etc/carton_completion.zsh
else
  print "zsh carton plugin: carton not found"
fi

error: pathspec 'plugins/carton/carton.plugin.zsh' did not match any file(s) known to git


[Modify] Update django.plugin.zsh for Django 1.7.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/cpcloud/oh-my-zsh.git/'


add run_build.sh

add run_build.sh

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


Add run_tests.sh script with pep8 command execution

Add pep8 command execution
usage:
./run_tests.sh -p

Change-Id: I558f7618a2e8533a35e63d4bdc001a8109f7fcf5

#!/bin/bash

function usage {
  echo "Usage: $0 [OPTION]..."
  echo ""
  echo " -p, --pep8 Just run pep8"
  echo " -h, --help Print this usage message"
  echo ""
  exit
}

function process_option {
  case "$1" in
    -h|--help) usage;;
    -p|--pep8) just_pep8=1;;
  esac
}

just_pep8=0

for arg in "$@"; do
    process_option $arg
done

function run_pep8 {
  echo "Running pep8 ..."
  # Opt-out files from pep8
  ignore_scripts="*.pyc,*.pyo,*.sh,*.swp,*.rst"
  ignore_files="*eventlet-patch:*pip-requires"
  ignore_dirs=".venv,.tox,dist,doc,vendor,*egg"
  GLOBIGNORE="$ignore_scripts:$ignore_files:$ignore_dirs"
  ignore="$ignore_scripts,$ignore_dirs"
  srcfiles="."
  ${wrapper} pep8 --repeat $FLAGS --show-source \
      --exclude=${ignore} ${srcfiles} | tee pep8.txt
}

if [ $just_pep8 -eq 1 ]; then
run_pep8
    exit
fi

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


start container before running tests

start container before running tests

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


Adding Quick-Look plugins to extend apples QL functionality

See https://github.com/sindresorhus/quick-look-plugins

fatal: unable to access 'https://github.com/frontalnugity/atom-configs.git/': The requested URL returned error: 403


Added APCU basic installation

Added APCU basic installation

# Setup APCU to XAMPP for Mac OS X 10.9
#
# Requires brew package manager for OS X
# install brew:
# ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

brew install pcre

# for stable: pecl download apcu-4.0.2
/Applications/XAMPP/xamppfiles/bin/pecl download apcu

tar zxvf apcu-4.0.2.tgz
cd apcu-4.0.2
phpize

./configure --with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config
make
sudo make install

# edit php.ini and add memcached extension
open -e /Applications/XAMPP/xamppfiles/etc/php.ini

# add extension=apcu.so

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


Add helper script to run kube e2e tests

Add helper script to run kube e2e tests

With the right configuration, the kube e2e test suite can be run against
an openshift deployment.  This change adds a script that makes it easy.
This is especially useful for verifying that kube plugins
(e.g. openshift-sdn) retain the behavior expected of unmodified kube.

#!/bin/bash

# DISCLAIMER: This script is intended only to simplify running the kube
# e2e tests against an openshift cluster.  No guarantees are made as
# to whether the tests will run successfully without modification.

# This script runs the kubernetes e2e tests against a deployed
# openshift cluster.  The path to a local kube repo must be supplied by
# the KUBE_ROOT environment variable.  All arguments to this script
# will be supplied to the underlying test runner.  Documentation for
# the test runner is available in the kube repo:
#
# https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/devel/development.md
#
# By default, cluster configuration will be read from
# [repopath]/openshift.local.config.  The environment variable
# OS_CONF_ROOT can be used to set the parent of openshift.local.config
# if it is not found at the repo root.
#
# Example usage:
#
# KUBE_ROOT=../kubernetes hack/test-kube-e2e.sh --ginkgo.focus="Network.*intra"
#

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

ORIGIN_ROOT=$(
  unset CDPATH
  origin_root=$(dirname "${BASH_SOURCE}")/..
  cd "${origin_root}"
  pwd
)

KUBE_ROOT=${KUBE_ROOT:-""}

if [ -z "${KUBE_ROOT}" ]; then
  >&2 echo "KUBE_ROOT must be set to run e2e tests"
  exit 1
fi

CONF_ROOT="${OS_CONF_ROOT:-${ORIGIN_ROOT}}"
CONF_PATH="${CONF_ROOT}/openshift.local.config"
KUBECONFIG="${CONF_PATH}/master/admin.kubeconfig"

if [[ ! -f "${KUBECONFIG}" ]]; then
  >&2 echo "${KUBECONFIG} not found.  Maybe override OS_CONF_ROOT?"
  exit 1
fi

# Configuring conformance mode skips test setup which allows the kube
# tests to target an openshift cluster.
declare -x KUBERNETES_CONFORMANCE_TEST="y"
declare -x KUBECONFIG
declare -x NUM_MINIONS=$(ls -d ${CONF_PATH}/node-* | wc -w)
declare -x KUBE_MASTER_IP=$(grep 'server' ${KUBECONFIG} | \
  sed 's|^[ \t]*server: https://||')
pushd ${KUBE_ROOT}
hack/ginkgo-e2e.sh $@
popd

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


minor change in gcc build script

minor change in gcc build 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/takeutch-kemeco/private-build-script.git/'


adding install_aciss file

adding install_aciss file

fatal: unable to access 'https://github.com/davidozog/PRESTO.git/': The requested URL returned error: 403


Don't make parallel tests by default.

Don't make parallel tests by default.

It very much seem that ctest cannot reliably run parallel tests. I see no
reason why innocuous tests such as test_strlcat could fail if we're doing
parallel tests, and pass otherwise.

For re-enabling parallel tests, run the coverage script with
EXTRA_MAKETEST_ARGS=ARGS=-j2 (for instance. -j8 works much better to
trigger test failures).

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/mancoast/cado-nfs.git/'


integration: Add constraints integration tests.

Signed-off-by: Andrea Luzzardi <442ffe3ffbfd024afcf0b7f8b108d05bca3aae43@gmail.com>

#!/usr/bin/env bats

load helpers

function teardown() {
	stop_manager
	stop_docker
}

@test "node constraint" {
	start_docker 2
	start_manager

	run docker_swarm run --name c1 -e constraint:node==node-0 -d busybox:latest sh
	[ "$status" -eq 0 ]
	run docker_swarm run --name c2 -e constraint:node==node-1 -d busybox:latest sh
	[ "$status" -eq 0 ]
	run docker_swarm run --name c3 -e constraint:node==node-1 -d busybox:latest sh
	[ "$status" -eq 0 ]

	run docker_swarm inspect c1
	[ "$status" -eq 0 ]
	[[ "${output}" == *'"Name": "node-0"'* ]]

	run docker_swarm inspect c2
	[ "$status" -eq 0 ]
	[[ "${output}" == *'"Name": "node-1"'* ]]

	run docker_swarm inspect c3
	[ "$status" -eq 0 ]
	[[ "${output}" == *'"Name": "node-1"'* ]]
}

@test "label constraints" {
	start_docker 1 --label foo=a
	start_docker 1 --label foo=b
	start_manager

	run docker_swarm run --name c1 -e constraint:foo==a -d busybox:latest sh
	[ "$status" -eq 0 ]
	run docker_swarm run --name c2 -e constraint:foo==b -d busybox:latest sh
	[ "$status" -eq 0 ]
	run docker_swarm run --name c3 -e constraint:foo==b -d busybox:latest sh
	[ "$status" -eq 0 ]

	run docker_swarm inspect c1
	[ "$status" -eq 0 ]
	[[ "${output}" == *'"Name": "node-0"'* ]]

	run docker_swarm inspect c2
	[ "$status" -eq 0 ]
	[[ "${output}" == *'"Name": "node-1"'* ]]

	run docker_swarm inspect c3
	[ "$status" -eq 0 ]
	[[ "${output}" == *'"Name": "node-1"'* ]]
}

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


init commit

init commit

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/irminlabs/iptables-ubuntu.git/'


change origin

change origin

fatal: unable to access 'https://github.com/paperguide/trigger.js.git/': The requested URL returned error: 403


Make sync_tests.sh remove any _integration suffix.

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


No ramo master

No ramo master

- Mudanças a serem submetidas:
	modified:   ShellScript/adproxy.sh

@rodrixcornell Rodrigo Cabral <rodrixcornell@gmail.com>
@rodrigocabral Rodrigo Cabral <rodrixcornell@gmail.com>

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


OO-413: bump version script

OO-413: bump version script

#!/bin/bash

## packaging tool for OpenOlitor client delivery

 #                                                                           #
#    ____                   ____  ___ __                                      #
#   / __ \____  ___  ____  / __ \/ (_) /_____  _____                          #
#  / / / / __ \/ _ \/ __ \/ / / / / / __/ __ \/ ___/   OpenOlitor             #
# / /_/ / /_/ /  __/ / / / /_/ / / / /_/ /_/ / /       contributed by tegonal #
# \____/ .___/\___/_/ /_/\____/_/_/\__/\____/_/        http://openolitor.ch   #
#     /_/                                                                     #
#                                                                             #
# This program is free software: you can redistribute it and/or modify it     #
# under the terms of the GNU General Public License as published by           #
# the Free Software Foundation, either version 3 of the License,              #
# or (at your option) any later version.                                      #
#                                                                             #
# This program 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 General Public License for #
# more details.                                                               #
#                                                                             #
# You should have received a copy of the GNU General Public License along     #
# with this program. If not, see http://www.gnu.org/licenses/                 #
#                                                                             #
 #                                                                           #

while [[ $# -gt 1 ]]
do
  key="$1"

  case $key in
    -v|--version)
      VERSION="$2"
      shift
      ;;
    *)

  ;;

esac
shift
done

VERSION_REGEX="version.*?\K(\d+)\.(\d+)\.(\d+)"

CURRENT_VERSION="$(grep -Po $VERSION_REGEX project/Build.scala)"
echo "Current version is: "$CURRENT_VERSION

IFS=. read V1 V2 V3 <<< $CURRENT_VERSION

NEXT_VERSION="$V1.$V2."$(($V3 + 1))

VERSION=${VERSION:-$NEXT_VERSION}

BUILD_SCALA=$(cat project/Build.scala | perl -pe 's/'$VERSION_REGEX'/'$VERSION'/g')

echo "$BUILD_SCALA" > project/Build.scala

echo "Updated the version to: $VERSION"

MESSAGE="bumped version to $VERSION"

echo $MESSAGE

( git commit -am "$MESSAGE" && git tag -a $VERSION -m "$MESSAGE" )

echo "You may now do 'git push && git push origin $VERSION'"

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


jenkins/u1604.sh

#!/bin/bash

# assumed to run from the base of the cloned Coriander git repo

BASEDIR=$(pwd)
hg clone https://bitbucket.org/hughperkins/eigen -b tf-coriander
mkdir build
cd build
cmake  -DEIGEN_TESTS=ON -DEIGEN_HOME=${BASEDIR}/eigen ..
make -j 16
make -j 16 tests
make run-tests

# cd docker
# sudo docker build --no-cache ./ -t coriander

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


Fix and improve drude install script

Fix and improve drude install script

#!/bin/bash

# Console colors
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[1;33m'
NC='\033[0m'

# Drude repo
DRUDE_REPO='https://github.com/blinkreaction/drude.git'
DRUDE_REPO_RAW='https://raw.githubusercontent.com/blinkreaction/drude/master'

# Yes/no confirmation dialog with an optional message
# @param $1 confirmation message
_confirm ()
{
	while true; do
		read -p "$1Continue? [y/n]: " answer
		case $answer in
			[Yy]|[Yy][Ee][Ss] )
				echo "Working..."
				break
				;;
			[Nn]|[Nn][Oo] )
				echo 'Ok, whatever.'
				exit 1
				;;
			* )
				echo 'Please answer yes or no.'
		esac
	done
}

echo "Updating dsh"
# Install/update dsh tool wrapper
curl -s "$DRUDE_REPO_RAW/install-dsh.sh" | bash

# Check that git binary is available
type git > /dev/null 2>&1 || { echo -e >&2 "${red}No git? Srsly? \n${yellow}Please install git then come back. Aborting...${NC}"; exit 1; }

# Check if current directory is a Git repository
if [[ -z $(git rev-parse --git-dir 2>/dev/null) ]]; then
	# If there is no git repo - initialize one and commit everything before we proceed
	echo -e "${yellow}No git repository! We'll create one to proceed with the install.${NC}"
	echo -e "${green}Going to initialize a git repo and commit everything.${NC}"
	_confirm "Initializing new git repo in $(pwd). "
	git init -q && git add -A && git commit -q -m 'Initial commit'
fi

# Make sure we are in the root of a git repository
if [[ $(git rev-parse --git-dir) != '.git' ]]; then
	GIT_ROOT=$(git rev-parse --show-toplevel)
	echo -e "${yellow}This script must be run from the git repo root. Switching to $GIT_ROOT.${NC}"
	cd $GIT_ROOT
fi

# Check if the working tree and index are clean
if [[ -n $(git status .docker docker-compose.yml -s) ]]; then
	echo -e "${red}Your git working tree or index is not clean."
	echo -e "It is recommended to commit any pending changes before proceeding with the update.${NC}"
	_confirm "Going to overwrite changes to .docker/ and docker-compose.yml. "
fi

# Checking out the most recent Drude build
git remote add drude $DRUDE_REPO
git remote update drude
git checkout drude/build .
git remote rm drude

if [[ -n $(git status .docker docker-compose.yml -s) ]]; then
	echo -e "${green}Installed/updated Drude to version $(cat .docker/VERSION)${NC}"
	echo -e "${yellow}Please review the changes and commit them into your repo!${NC}"
else
	echo -e "${yellow}You already have the most recent build of Drude${NC}"
fi

#!/bin/bash

# Console colors
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[1;33m'
NC='\033[0m'

# Drude repo
DRUDE_REPO='https://github.com/blinkreaction/drude.git'
DRUDE_REPO_RAW='https://raw.githubusercontent.com/blinkreaction/drude/master'

# Install/update dsh tool wrapper
curl -s "$DRUDE_REPO_RAW/install.sh" | bash

# Check that git binary is available
type git > /dev/null 2>&1 || { echo -e >&2 "${red}No git? Srsly? \n${yellow}Please install git then come back. Aborting...${NC}"; exit 1; }

# Check if current directory is a Git repository
if [[ -z $(git rev-parse --git-dir 2>/dev/null) ]]; then
	# If there is no git repo - initialize one and commit everything before we proceed
	echo -e "${yellow}No git repository! We'll create one to proceed witht he install.${NC}"
	echo -e "${green}Initializing a git repo and commiting everything.${NC}"
	git init -q && git add -A && git commit -q -m 'Initial commit'
fi

# Make sure we are in the root of a git repository
if [[ $(git rev-parse --git-dir) != '.git' ]]; then
	GIT_ROOT=$(git rev-parse --show-toplevel)
	echo -e "${yellow}This script must be run from the git repo root. Switching to $GIT_ROOT.${NC}"
	cd $GIT_ROOT
fi

# Check if the working tree and index are clean
if [[ -n $(git status -s) ]]; then
	echo -e "${red}Your git working tree or index is not clean."
	echo -e "Please stage/stash and commit any pending changes before proceeding with the update.${NC}"
	exit 1
fi

# Checking out the most recent Drude build
git remote add drude $DRUDE_REPO
git remote update
git checkout drude/build .
git remote rm drude

if [[ -n $(git status -s) ]]; then
	echo -e "${green}Installed/updated Drude at version $(cat .docker/VERSION)${NC}"
	echo -e "${yellow}Please review tha changes and commit them into your repo!${NC}"
else
	echo -e "${yellow}You already have the most recent build of Drude!${NC}"
fi


Download prebuilt Boost for Heroku

Download prebuilt Boost for Heroku

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/delta-lang/delta-sandbox.git/'


retab

retab

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


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


Added dnschecker to this personal account

#!/bin/sh
# Get nameservers for a domain name from the TLD servers.
# Also get the GLUE records if they exist.
# If glue records do not exist, find the IP's manually.
#

# Check for dig commannd
verify_tools() {
    command -v dig >/dev/null 2>&1 || { echo >&2 "Oops! The dig command is necessary for this script, but was not found on this system :(  Aborting."; exit 1; }
}

# Check input
check_input() {
    if [ -z ${dom} ]; then
        echo 'Please specify a domain.'; exit 1;
    fi
}

# Get input, initial variables
dom=${1}
tld=${dom#*.}
options="+noall +authority +additional +comments"

# Functions
create_dig_oneliner() {
	tld_server=`dig NS ${tld}. +short | head -n1`
	dig_oneliner="dig @${tld_server} ${dom}. ${options}"
}

get_result() {
	dig_result=`${dig_oneliner}`
}

set_colors() {
    # Colors and formatting
    greenbold='\033[1;32m'
    clroff="\033[0m";
}

get_nameservers() {
	# nameserver names and possibly IP's from TLD servers
	auth_ns=`${dig_oneliner} | awk '/AUTHORITY SECTION/,/^[ ]*$/' | awk '{print $NF}' | sed -e 1d -e 's/.$//'`
	additional_ips=`${dig_oneliner} | awk '/ADDITIONAL SECTION/,0' | awk '{print $NF}' | sed 1d`
}

get_nameserver_ips() {
	# get bare IP's of nameservers
	if [ "$additional_ips" ];
		then bare_result=$additional_ips;
		else bare_result=`
			for auth_ips in "${auth_ns[@]}"; do
				dig +short $auth_ips
				echo "(Warning: these IP's had to be resolved manually, so glue records are bad)"
			done;`
	fi;
}

print_results() {
    printf "%b\n" "${greenbold}Authoritative Nameserver IPs:\n${clroff}${bare_result}\n"
}

# Run code
verify_tools
check_input
create_dig_oneliner
get_result
set_colors
get_nameservers
get_nameserver_ips
print_results

#
echo -e "\nNAMED.CONF:"
egrep "ternal\" {|$dom" /etc/named.conf
grep hosts /etc/nsswitch.conf
echo -e "\nRESOLV:"
cat /etc/resolv.conf
echo -e "\nHOSTS:"
cat /etc/hosts

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


Generate.sh script

Generate.sh script

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


update scripts alias

update scripts alias

fatal: unable to access 'https://github.com/americanhanko/dotfiles.git/': The requested URL returned error: 403


add get_deps.sh

add get_deps.sh

- with submodules other projects including this
  could checkout 'glm' twice when doing git clone --recursive

#!/bin/bash

# TODO check if dir exists, update to fixed revisions

git clone --recursive https://github.com/tangrams/harfbuzz-icu-freetype deps/hb-icu-ft
git clone https://github.com/g-truc/glm.git deps/glm

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


deps.sh: Add ruby, gem and nodejs

deps.sh: Add ruby, gem and nodejs

set -e
set -x

# Choose the python versions to install deps for
case $CIRCLE_NODE_INDEX in
 0) dep_versions=( "3.3.6" "3.4.3" "3.5.1" ) ;;
 1) dep_versions=( "3.4.3" ) ;;
 2) dep_versions=( "3.3.6" ) ;;
 *) dep_versions=( "3.5.1" ) ;;
esac

# apt-get commands
sudo apt-get update
deps="indent libclang1-3.4"
deps_python_dbus="libdbus-glib-1-dev libdbus-1-dev"
deps_python_gi="glib2.0-dev gobject-introspection libgirepository1.0-dev python3-cairo-dev"
deps_ruby_npm="ruby gem nodejs"
sudo apt-get install $deps $deps_python_gi $deps_python_dbus $deps_ruby_npm

for dep_version in "${dep_versions[@]}" ; do
  pyenv install -ks $dep_version
  pyenv local $dep_version
  python --version
  source .misc/env_variables.sh

  pip install -r test-requirements.txt
  pip install -r requirements.txt
  # Downloading nltk data that's required for nltk to run
  bash .misc/deps.nltk.sh

  cd .misc
  bash install.python-gi.sh
  bash install.python-dbus.sh
  cd ..
done

if [ "$CIRCLE_NODE_INDEX" = "0" ] ; then
  pip install -r docs-requirements.txt
fi

set -e
set -x

# Choose the python versions to install deps for
case $CIRCLE_NODE_INDEX in
 0) dep_versions=( "3.3.6" "3.4.3" "3.5.1" ) ;;
 1) dep_versions=( "3.4.3" ) ;;
 2) dep_versions=( "3.3.6" ) ;;
 *) dep_versions=( "3.5.1" ) ;;
esac

# apt-get commands
sudo apt-get update
deps="indent libclang1-3.4"
deps_python_dbus="libdbus-glib-1-dev libdbus-1-dev"
deps_python_gi="glib2.0-dev gobject-introspection libgirepository1.0-dev python3-cairo-dev"
sudo apt-get install $deps $deps_python_gi $deps_python_dbus

for dep_version in "${dep_versions[@]}" ; do
  pyenv install -ks $dep_version
  pyenv local $dep_version
  python --version
  source .misc/env_variables.sh

  pip install -r test-requirements.txt
  pip install -r requirements.txt
  # Downloading nltk data that's required for nltk to run
  bash .misc/deps.nltk.sh

  cd .misc
  bash install.python-gi.sh
  bash install.python-dbus.sh
  cd ..
done

if [ "$CIRCLE_NODE_INDEX" = "0" ] ; then
  pip install -r docs-requirements.txt
fi


Initial commit; port from zsh-config

Initial commit; port from zsh-config

#!/usr/bin/env zsh

autoload colors && colors

_nfo_="traverse down nested directories and pull/fetch all the git repos found"
_ver_="v0.3.0"
_prg_="%{$fg_bold[blue]%}$(basename $0)%{$reset_color%}"
_cpy_="$_ver_ -- (c) 2014 Copyright, Justin Reagor <cheapRoc> BSD"
_dry_=0

log_op() {
  print -P "%{$fg_bold[blue]%} --->%{$reset_color%} %{$fg_bold[white]%}$1%{$reset_color%} $2"
}

log_grey() {
  print -P "%{$fg_bold[blue]%} --->%{$reset_color%} %{$fg_no_bold[white]%}$(basename $1)%{$reset_color%} $2"
}

log_opt() {
  cmds="%{$fg_bold[blue]%}$1%{$reset_color%}, %{$fg_bold[grey]%}$2\t%{$reset_color%}"
  print -P "$cmds\t%{$fg_no_bold[white]%}$3%{$reset_color%}"
}

log_prg() {
  print -P "$_prg_ $1"
}

update_fetch() {
  [ $_dry_ -ne "0" ] || git_cmd "fetch"
}

update_pull() {
  [ $_dry_ -ne "0" ] || git_cmd "pull"
}

git_cmd() {
  cd $dir
  if [ -d ".git/refs/remotes" ] || [ -d "refs/remotes" ]; then
    [ -z $DEBUG ] || echo "git $cmd"
    git $1
  fi
}

deep_dirs() {
  find -d . -type d -name "*.git" | \
    sed "s/\(\/\.git\)$//" | \
    grep -v "\.bundle"
}

do_dir() {
  back=$(pwd)

  if echo $1 | grep -q "\.git$"; then
    log_op "Fetching" $(basename $1)
    update_fetch
  else
    log_op "Pulling" $(basename $1)
    update_pull
  fi

  [ -z $DEBUG ] || log_op "Leaving" $1
  echo
  cd $back
}

do_update() {
  let num=0
  for dir in $(deep_dirs); do
    name=$(echo $dir | sed "s/^\(\.\/\)//")
    do_dir $dir
    log_grey "Done" $dir
    num=$num+1
    echo
  done
  echo "Updated $num"
  unset num
}

do_dry_run() {
  _dry_=1
  do_update
}

do_help() {
  echo
  log_prg $_cpy_
  echo
  print -P "%{$fg_no_bold[white]%}$_nfo_%{$reset_color%}"
  echo
  log_opt "-v" "--version" "List version information"
  log_opt "-h" "--help"    "List commands and information"
  log_opt "-l" "--list"    "Find and list all git directories"
  log_opt "-d" "--dry-run" "Don't perform any actions on found git repos"
  log_opt "-u" "--update"  "Iterate over every nested repo and fetch/update each"
  echo
}

for arg in $*; do
  case $arg in
    -v|--version)
      log_prg "%{$fg_no_bold[white]%}$_ver_%{$reset_color%}"
      ;;
    -l|--list)
      for dir in $(deep_dirs); do
        echo $dir
      done
      ;;
    -d|--dry-run)
      do_dry_run
      ;;
    -u|--update)
      do_update
      ;;
    -h|--help)
      do_help
      ;;
    -o|--origin)
      echo $arg
      ;;
    *)
      ;;
  esac
  args=$args+1
done

unset args
exit 0

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


Fix bash completions for Ubuntu

Fix bash completions for Ubuntu

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


Fixed syntax issues and typos.

Fixed syntax issues and typos.

Fixed the incorrectly typed "touch" command and the typo in the initial parameter check error message.

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/Debojit/Ansible.git/'


Removed the Go folder

Removed the Go folder

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


We now support Python3, but there are some issues (see description)

The 2to3 build works smoothly, the only problem is, if we run
``python setup.py test``, the "stock" smartrpyc will still be in PYTHONPATH
and get loaded instead of the one in site-packages (or build/lib).

A solution to run the tests is to::

  cd build/lib
  python -m unittest discover -v smartrpyc.tests

(Anyways, the installed version seems to be working just fine).

#!/bin/bash

TEMPDIR="$( mktemp -d )"
cd "$TEMPDIR"

git clone git@github.com:xk0/SmartRPyC.git -b feature/python-3.2 --depth 0 smartrpyc
virtualenv -p /usr/bin/python3.2 --distribute venv
. venv/bin/activate

cd smartrpyc/
python setup.py install

cd build/lib/
python -m unittest discover -v smartrpyc.tests

echo "--------------------"
echo "Tests run. Now you can remove $TEMPDIR"

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


adding REGION back to travis ci build test

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/Nordstrom/hello-retail.git/'


pez: colored SUCCESS/FAILURE indicator

pez: colored SUCCESS/FAILURE indicator

pez is a new bash function that can be prepended to existing functions
or commands to clearly show a colored exit status.

Example:
$ pez mmm frameworks/base/etc

will print all the usual output, and at the end either a green "SUCCESS"
line or a red "FAILURE" line.

Change-Id: I7e369b0280d6ece16fb0be1895278c26922491fe

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/xorware/android_build.git/'


[TACHYON-964] Add script to launch tachyon master for YARN

#!/bin/bash

SCRIPT_DIR="$(cd "$(dirname "$0")"; pwd)"
source "${SCRIPT_DIR}/common.sh"
TACHYON_MASTER_JAVA_OPTS="${TACHYON_MASTER_JAVA_OPTS:-${TACHYON_JAVA_OPTS}}"

mkdir -p "${TACHYON_LOGS_DIR}"

"${JAVA}" -cp "${CLASSPATH}" \
  ${TACHYON_MASTER_JAVA_OPTS} \
  -Dtachyon.accesslogger.type="MASTER_ACCESS_LOGGER" \
  -Dtachyon.home="${TACHYON_HOME}" \
  -Dtachyon.logger.type="MASTER_LOGGER" \
  -Dtachyon.logs.dir="${TACHYON_LOGS_DIR}" \
  tachyon.master.TachyonMaster > "${TACHYON_LOGS_DIR}"/master.out 2>&1

error: pathspec 'integration/bin/tachyon-master-yarn.sh' did not match any file(s) known to git


Added a script for installing pandoc

Added a script for installing pandoc

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


Adds run bash script with clean option

Adds run bash script with clean option

Signed-off-by: Alan Peterson Carvalho Silva <0cbe4bec2de12d32e3201302395f4ec6001a8a78@gmail.com>

#!/bin/bash
find ./ -name 'testcases_*' -delete
find ./ -name 'MS*' -delete
if [[ $1 != 'clean' ]]
    then
    ./selective.rb sources/
    ./run_test_case_selection
    ./get_scores.rb sources/
fi

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


Add Linuxfile (like a Dockerfile, but for raw Linux" setup)

# SeleniumBase Debian Linux Dependency Installation
# (Installs all required dependencies on Linux)

# Make sure this is only run on Linux
value="$(uname)"
if [ $value == "Linux" ]
then
  echo "Initializing Requirements Setup..."
else
  echo "Not on a Linux machine. Exiting..."
  exit
fi

# Configure apt-get resources
sudo sh -c "echo \"deb http://packages.linuxmint.com debian import\" >> /etc/apt/sources.list"
sudo sh -c "echo \"deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main\" >> /etc/apt/sources.list"

# Install Xvfb (headless display system) and other dependencies
cd ~
sudo aptitude update
sudo aptitude install -y xvfb
sudo aptitude install -y x11-xkb-utils
sudo aptitude install -y xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic
sudo aptitude install -y xserver-xorg-core

# Install Firefox
sudo gpg --keyserver pgp.mit.edu --recv-keys 3EE67F3D0FF405B2
sudo gpg --export 3EE67F3D0FF405B2 > 3EE67F3D0FF405B2.gpg
sudo apt-key add ./3EE67F3D0FF405B2.gpg
sudo rm ./3EE67F3D0FF405B2.gpg
sudo apt-get update
sudo apt-get install -y python-setuptools
sudo apt-get -qy --no-install-recommends install -y firefox
sudo apt-get -qy --no-install-recommends install -y $(apt-cache depends firefox | grep Depends | sed "s/.*ends:\ //" | tr '\n' ' ')
cd /tmp
sudo wget --no-check-certificate -O firefox-esr.tar.bz2 'https://download.mozilla.org/?product=firefox-esr-latest&os=linux32&lang=en-US'
sudo tar -xjf firefox-esr.tar.bz2 -C /opt/
sudo rm -rf /usr/bin/firefox
sudo ln -s /opt/firefox/firefox /usr/bin/firefox
sudo rm -f /tmp/firefox-esr.tar.bz2
sudo apt-get -f install -y firefox

# Install more dependencies
sudo apt-get update
sudo apt-get install -y xvfb
sudo apt-get install -y build-essential chrpath libssl-dev libxft-dev
sudo apt-get install -y libfreetype6 libfreetype6-dev
sudo apt-get install -y libfontconfig1 libfontconfig1-dev
sudo apt-get install -y unzip

# Install PhantomJS
cd ~
export PHANTOM_JS="phantomjs-1.9.8-linux-x86_64"
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2
sudo tar xvjf $PHANTOM_JS.tar.bz2
sudo mv -f $PHANTOM_JS /usr/local/share
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin

# Install Chrome
cd /tmp
sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt-get -f install -y
sudo dpkg -i google-chrome-stable_current_amd64.deb

# Install Chromedriver
sudo wget -N http://chromedriver.storage.googleapis.com/2.20/chromedriver_linux64.zip -P ~/Downloads
sudo unzip -o ~/Downloads/chromedriver_linux64.zip -d ~/Downloads
sudo chmod +x ~/Downloads/chromedriver
sudo rm -f /usr/local/share/chromedriver
sudo rm -f /usr/local/bin/chromedriver
sudo rm -f /usr/bin/chromedriver
sudo mv -f ~/Downloads/chromedriver /usr/local/share/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver

# Other Dependencies
sudo apt-get -f install -y
sudo easy_install pip

error: pathspec 'integrations/google_cloud/Linuxfile.sh' did not match any file(s) known to git


Create gui-mate.sh

Create gui-mate.sh

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


alter vim shell

alter vim shell

alter vim shell

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/Hello-Linux/Vim-Python-IDE.git/'


add file

add file

#!/bin/sh

#plist=${PROJECT_DIR}/${INFOPLIST_FILE}
#pyfile=${SRCROOT}/Miao.py
#python ${pyfile}
if [ $CONFIGURATION == Release ]; then
echo "Bumping build number..."

buildnum=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${plist}")
if [[ "${buildnum}" == "" ]]; then
echo "No build number in $plist"
exit 2
fi

buildnum=$(expr $buildnum + 1)
/usr/libexec/Plistbuddy -c "Set CFBundleVersion $buildnum" "${plist}"
echo "Bumped build number to ${buildnum}"

buildEnvDocSwitch=$(/usr/libexec/PlistBuddy -c "Print UIFileSharingEnabled" "${plist}")
if [ "X${buildEnvDocSwitch}" == "Xtrue" ]; then
buildEnvDocSwitch="false"
/usr/libexec/Plistbuddy -c "Set UIFileSharingEnabled $buildEnvDocSwitch" "${plist}"
fi

else
echo "debug "
fi

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


Added script to push to github

Added script to push to github

#!/usr/bin/env bash

source ./pip_common.sh

# -------------------------------------
for pkgDir in `cd ../ && ls -d peek-*` synerty-peek; do
    if [[ ${pkgDir} == *"pof"* ]]; then continue; fi
    if [[ ${pkgDir} == *"gis"* ]]; then continue; fi

    echo "Pushing ${pkgDir}"
    pushd ../$pkgDir
    git remote remove github 2> /dev/null || true
    git remote add github git@github.com:Synerty/${pkgDir}.git
    git push -f github master || true
    popd
done

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


Created rhiot-cloud bootstrap script.

Created rhiot-cloud bootstrap 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/rimolive/rhiot.git/'


add /home/leslie/Code/blog/bin to PATH

add /home/leslie/Code/blog/bin to PATH

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/MartyJiang/Little-Script.git/'


Added script to run experiment over MLP with 1 hidden layer

#!/bin/bash
#
# The script to run multilayer perceptron with one hidden layer with specific
# set of parameters

~/anaconda3/bin/Rscript src/nn_analysis.R --learning_rate 0.001 --max_steps 50000 --hidden1 512 --batch_size 100 --dropout 0.5 --lr_anneal_step 10000 --network_type mlp

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


env.bash: Check for presence of make/gmake

Without this, a missing gmake will result in bogus error "Did not find
Go environment variables".

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/5369066

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


:sparkles: Add install script for extra software

#!/bin/sh

read -p "Install Cypress dependencies? [y/N] " CYPRESS_DEPS
read -p "Install locales? [y/N] " LOCALES
read -p "Install brew? [y/N] " BREW
read -p "Install scalingo CLI? [y/N] " SCALINGO
read -p "Install node? (Skip or type a version number) " NODE

if [ "$SCALINGO" = 'y' ]
then
  echo "Installing scalingo CLI"
  curl -O https://cli-dl.scalingo.com/install && bash install
  echo "Installing scalingo zsh completion"
  mkdir -p ~/.zsh/completion
  curl "https://raw.githubusercontent.com/Scalingo/cli/master/cmd/autocomplete/scripts/scalingo_complete.zsh" > ~/.zsh/completion/scalingo_complete.zsh
  echo "Uncommenting scalingo zsh completion in ~/.zshrc"
  sed -r -i'' 's/^# (.*scalingo_complete.*)/\1/' ~/.zshrc
fi

if [ "$NODE" != '' ]
then
  echo "Installing node " $NODE
  wget -qO- https://deb.nodesource.com/setup_${NODE}.x | sudo -E bash -
  sudo apt install -y nodejs
fi

if [ "$BREW" = 'y' ]
then
  echo "Testing installation"
  IS_ALREADY_INSTALLED=$(test -d /home/linuxbrew/.linuxbrew) && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
  if [ ! IS_ALREADY_INSTALLED ]
  then
    echo "Brew not installed yet, installing..."
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  else
    echo "Brew already installed, skipping"
  fi

  PROFILE_CONFED_FOR_BREW=$(test -f ~/.profile && grep -E -q '^.*brew.*' ~/.profile)
  if [ !$PROFILE_CONFED_FOR_BREW ]
  then
    echo "Configuring ~/.profile"
    echo "eval \$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" >>~/.profile
  fi

  NEED_ZSH_CONF_FOR_BREW=$(grep -E -q '^eval.*brew.*' ~/.zshrc)
  if [ !$NEED_ZSH_CONF_FOR_BREW ]
  then
    echo "Configuring ~/.zshrc"
    echo "eval \$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" >>~/.zshrc
  fi

fi

if [ "$LOCALES" = 'y' ]
then
  sudo locale-gen "fr_FR.UTF-8"
  sudo dpkg-reconfigure locales
fi

if [ "$CYPRESS_DEPS" = 'y' ]
then
  echo "Installing Cypress dependencies"
  sudo apt update
  sudo apt upgrade
  sudo apt -y install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
  echo "Installing dbus as service"
  sudo /etc/init.d/dbus start &> /dev/null
  echo "Giving sudo rights for current user to start dbus with sudo without passwd"
  USER_HAS_RIGHT=$(sudo grep -q "$USER" /etc/sudoers.d/dbus)
  if [ !$USER_HAS_RIGHT ]
  then
    echo "$USER ALL = (root) NOPASSWD: /etc/init.d/dbus"  | sudo tee -a /etc/sudoers.d/dbus
  fi
fi

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