document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_14400
--- +++ @@ -1,21 +1,7 @@ -export project_toolpath="/ebi/research/software/Linux_x86_64/bin" - # Use functions instead of aliases so we can export them. - -bwa() { - "$project_toolpath/bwa" "$@" -} - -samtools() { - "$project_toolpath/samtools" "$@" -} - -reaper() { - /homes/nenad/local/bin/reaper "$@" -} ...
bash
d_bash_14401
--- +++ @@ -9,16 +9,18 @@ exit 1 fi +PROG_PATH=$(readlink -f "$0") +PROG_DIR=$(dirname "$PROG_PATH") fileA=$1 fileB=$2 # remove timestamps of file A -tmp_fileA=`mktemp` -sed 's/[^]]*\] //' "$fileA" > "$tmp_fileA" +tmp_fileA="$(mktemp)" +"$PROG_DIR/rm_timestamps.sh" "$fileA" > "$tmp_fileA" # remove t...
bash
d_bash_14402
--- +++ @@ -10,7 +10,7 @@ set -u for CLUSTER in ${CLUSTERS:=iowa-a}; do - for DEPLOYMENT in {clock-,}deploy.yaml; do + for DEPLOYMENT in {clock-,}deploy.yaml daemonset.yaml; do DEPLOYMENT_FILE=${CLUSTER}/${NAMESPACE:=bedrock-dev}/${DEPLOYMENT} if [[ -f ${DEPLOYMENT_FILE} ]]; then ...
bash
d_bash_14403
--- +++ @@ -4,6 +4,6 @@ TOXIPROXY_LOG_DIR=${CIRCLE_ARTIFACTS:-'/tmp'} echo "[start toxiproxy]" -curl --silent https://github.com/Shopify/toxiproxy/releases/download/$VERSION/toxiproxy-server-linux-amd64 -o ./bin/toxiproxy-server +curl --silent -L https://github.com/Shopify/toxiproxy/releases/download/$VERSION/tox...
bash
d_bash_14404
--- +++ @@ -4,7 +4,7 @@ VERSION="$2" PKG_NAME=sovrin IMAGE_NAME="${PKG_NAME}-build-u1604" -OUTPUT_VOLUME_NAME="$3" +OUTPUT_VOLUME_NAME="${3:-"${PKG_NAME}-deb-u1604"}" if [[ (-z "${PKG_SOURCE_PATH}") || (-z "${VERSION}") ]]; then echo "Usage: $0 <path-to-package-sources> <version> <volume>"
bash
d_bash_14405
--- +++ @@ -8,7 +8,7 @@ exit 0 } -if [ "$TRAVIS_JDK_VERSION" -ne "$DEPLOY_JDK" ]; then +if [ "$TRAVIS_JDK_VERSION" != "$DEPLOY_JDK" ]; then skip "Deployment disabled for JDK $TRAVIS_JDK_VERSION" fi
bash
d_bash_14406
--- +++ @@ -8,6 +8,9 @@ yum -y install python34 python34-virtualenv which } +# this script is copied by CI, we don't need it +rm -f env-toolkit + prep ./detect-common-errors.sh ./detect-dead-code.sh
bash
d_bash_14407
--- +++ @@ -1,19 +1,39 @@ #!/usr/bin/env bash -if [[ ${PWD##*/} != 'jessie-min-base' ]]; then - # We run on jenkins - . ./docker/jessie-min-base/jessie-min-base-config.sh -else - . ./jessie-min-base-config.sh +while getopts ":r:i:" OPT; do + case ${OPT} in + r) + REPO_USER=${OPTARG} + ;; + ...
bash
d_bash_14408
--- +++ @@ -4,15 +4,15 @@ cd $TRAVIS_BUILD_DIR #Remove Remotes Added by TravisCI -#git remote rm origin +git remote rm origin #Add Remote with Secure Key -#git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git +git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git ...
bash
d_bash_14409
--- +++ @@ -19,5 +19,5 @@ . ./utils/resty -W "http://127.0.0.1:12151" -H "Accept: application/json" -H "Content-Type: application/json" -u ${fuser}:${fpass} # Check the reply of this REST query -GET /sysadm/lifepreserver '{ "action":"list-cron" }' -v +POST /sysadm/lifepreserver '{ "action":"list-cron" }' -v
bash
d_bash_14410
--- +++ @@ -3,3 +3,6 @@ # Install ZSH sudo pkg install -y zsh sudo chsh -s `which zsh` vagrant + +# Install git +sudo pkg install -y git
bash
d_bash_14411
--- +++ @@ -4,7 +4,7 @@ NAME="python-syndicate" VERSION="0.$(date +%Y\%m\%d\%H\%M\%S)" -DEPS="openssl curl protobuf libsyndicate libsyndicateUG" +DEPS="openssl curl protobuf libsyndicate libsyndicateUG protobuf-python" DEPARGS="" for pkg in $DEPS; do
bash
d_bash_14412
--- +++ @@ -9,13 +9,28 @@ find . -perm -u=x -type f | grep --invert-match '\.git' } -! have shellcheck && have brew && brew install shellcheck - have shellcheck && find_scripts | xargs shellcheck +if ! have shellcheck && have brew +then + brew install shellcheck +fi -! have checkbashisms && have brew &...
bash
d_bash_14413
--- +++ @@ -6,6 +6,6 @@ echo "Found java-8-oracle installation" else echo "java 8 installation" - apt-get install -y -q oracle-java8-installer + apt-get install -y -q oracle-java8-installer oracle-java8-set-default yes "" | apt-get -f install fi
bash
d_bash_14414
--- +++ @@ -22,6 +22,16 @@ local version="$GO_PIPELINE_LABEL" echo "$version" > version + # clean all node / bower files if any of the versions have changed + if ! md5sum --check --status --strict lastchanged.version; then + # generate new checksum + md5sum application/src/main/frontend/{package.json,...
bash
d_bash_14415
--- +++ @@ -13,7 +13,7 @@ git rm -rf ./ cp -Rf $HOME/javadoc-latest/. ./ git add -f . - $LATEST_TAG=git describe master --abbrev=0 --tags + LATEST_TAG=$(git describe master --abbrev=0 --tags) git commit -m "JavaDoc $LATEST_TAG - Travis Build $TRAVIS_BUILD_NUMBER" git push -fq origin gh-pages > /dev/n...
bash
d_bash_14416
--- +++ @@ -28,7 +28,7 @@ if [[ $FORCE_REBUILD != "true" ]]; then - if tail -n 3 docker-build.log | grep "Using cache"; + if [[ $(tail -n 3 docker-build.log | grep "Using cache") && $(docker images | grep "${TAG}-squashed") ]]; then echo "Docker image already squashed, skip squashing"; ...
bash
d_bash_14417
--- +++ @@ -6,3 +6,5 @@ osascript -e 'tell app "System Events" make login item at end with properties {path:"/Applications/Utilities/Terminal.app", hidden:false} end tell' +echo "Setting auto login user (needs root privs)" +sudo defaults write /Library/Preferences/com.apple.loginwindow.plist autoLoginUser hurley
bash
d_bash_14418
--- +++ @@ -17,4 +17,8 @@ shopt -u direxpand esac -export EDITOR=vim +if [ "${CODESPACES:-}" = "true" ]; then + export EDITOR=code +else + export EDITOR=vim +fi
bash
d_bash_14419
--- +++ @@ -1,4 +1,5 @@ #!/bin/sh -python convert_bwb.py --all --no-inline-metadata --no-full-graph --rdf-upload-url http://localhost:3020/servlets/uploadData -user admin -pass visstick --skip-if-existing +python convert_bwb.py --all --no-inline-metadata --no-full-graph --rdf-upload-url http://localhost:3020/ser...
bash
d_bash_14420
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh -RYU_GIT="https://github.com/joestringer/ryu-rfproxy.git" +RYU_GIT="https://github.com/routeflow/ryu-rfproxy.git" RYU_BRANCH="origin/master" RYU_DEPS="python-gevent python-webob python-routes"
bash
d_bash_14421
--- +++ @@ -1,4 +1,3 @@ #!/bin/sh -INSTALL_DIR=`pwd`/config -echo "ROOT=${CRATE_ROOT}" +INSTALL_DIR=`pwd` gnatprep -DCONFIG_DIR=\"${INSTALL_DIR}/config\" -DVERSION=\"1.2.3\" src/gen-configs.gpb src/gen-configs.ads
bash
d_bash_14422
--- +++ @@ -3,7 +3,7 @@ set -ex TEST_NET="cilium" -NETPERF_IMAGE="paultiplady/netperf" +NETPERF_IMAGE="noironetworks/netperf" function cleanup { docker rm -f server client 2> /dev/null || true
bash
d_bash_14423
--- +++ @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh # usage is: validate_db_connection 2 50 psql @@ -8,7 +8,9 @@ STATE=1 -for (( c=1; c<=$TRIES; c++ )) +c=1 + +while [ $c -le $TRIES ] do echo $c if [ $c -gt 1 ] @@ -24,6 +26,7 @@ then exit 0 fi +$c++ done echo 'Unable to connect to ...
bash
d_bash_14424
--- +++ @@ -10,4 +10,4 @@ sleep 10 curl --data "email=YaleGuest@yale.edu&cmd=cmd" http://10.160.252.249/auth/index.html/u sudo airmon-ng start wlan0 -sudo tcpdump -e -i mon0 | /home/pi/ysniff-software/ysniff.py +sudo tcpdump -e -i mon0 | sudo /home/pi/ysniff-software/ysniff.py
bash
d_bash_14425
--- +++ @@ -7,12 +7,12 @@ rm -rf docs/_build make -C docs html +echo "Checking grammar and style" +write-good `find docs -name '*.rst'` --passive --so --no-illusion --thereIs --cliches + # Exclude release notes from linkcheck when running in travis. # Note: we've already rendered these - its safe to remove the ...
bash
d_bash_14426
--- +++ @@ -38,6 +38,7 @@ run_script_in_packages build run_script_in_packages lint +run_script_in_packages flow run_script_in_packages test if [[ ! -z "$TEST_FAIL" ]]; then @@ -50,6 +51,11 @@ BUILD_FAIL=1 fi +if [[ ! -z "$FLOW_FAIL" ]]; then + echo Type checks failed. + BUILD_FAIL=1 +fi + if [[ ! -z ...
bash
d_bash_14427
--- +++ @@ -1,2 +1,2 @@ #!/bin/bash -CC=avr-gcc CXX=c++ LINK="-mmcu=atmega128 -Wl,-gc-sections" COMP="-O2 -ggdb -Wa,-mmcu=atmega128 -mmcu=atmega128 -ffunction-sections -fdata-sections" cmake -DARCH=AVR -DWORD=8 -DOPSYS=NONE -DSEED=LIBC -DSHLIB=OFF -DSTBIN=ON -DTIMER=NONE -DWITH="DV;BN;FB;EB;PB;CP;HF" -DBENCH=20 -DT...
bash
d_bash_14428
--- +++ @@ -1,12 +1,20 @@ #!/bin/bash set -e + +source /tools/functions_init.sh # for tests when container does not have a link to fastcgi fgrep -q fastcgi /etc/hosts || echo '127.0.0.1 fastcgi' >> /etc/hosts +run-parts -v /etc/rc.d + +# default features +init_wait_for_a_dir +init_wait_for_a_not_empty_dir +in...
bash
d_bash_14429
--- +++ @@ -2,6 +2,7 @@ export PATH="/Applications/Unity/Hub/Editor/$UNITY_VERSION/Unity.app/Contents/MacOS:$PATH" +# Set project_path to the repo root pushd "${0%/*}" pushd ../.. package_path=`pwd` @@ -11,12 +12,16 @@ log_file="$package_path/unity.log" project_path="$(pwd)/unity_project" + ...
bash
d_bash_14430
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash -e # Download and extract the HERE SDK. wget "$HERE_SDK_URL" -q -O 'HERE_SDK.zip'
bash
d_bash_14431
--- +++ @@ -23,6 +23,12 @@ then # Adding this content to configuration. echo "Adding configuration: \"$value\" to \"$ES_CONFIG_FILE\" from \"$env_var\"" + # Check if we need resolve configuration with bash + if echo "$value" | fgrep -- '$(' > /dev/null + then + value="$(bash -c "echo $value...
bash
d_bash_14432
--- +++ @@ -4,3 +4,5 @@ find icons -type f -print0 | xargs -0 sed -i "" "s/_SvgIcon2.default,/'svg', { style: {width: (props.size || '24' + 'px'), height: (props.size || '24' + 'px')}, viewBox: '0 0 ' + (props.size || '24') + ' ' + (props.size || '24'), className: props.className },/g" find icons -type f -print0 | ...
bash
d_bash_14433
--- +++ @@ -10,14 +10,13 @@ # manual work-around for ubuntu PY=python -# broad survey of classifiers -#SEQUENCE=`seq 4 21` -# other pairs -SEQUENCE=`seq 24 26` +# range of experiments to run +#SEQUENCE=`seq 27 29` +SEQUENCE=32 # experiments or submissions? -SCRIPT=run-experiment.py -#SCRIPT=full-train-and-p...
bash
d_bash_14434
--- +++ @@ -1,7 +1,12 @@ #!/bin/bash # -# This is the script that you want websocketd to execute. +# This is the script that you want websocketd to execute. # # Example: ~/websocketd --port=8080 ./tailfsyslog.sh # +# If you want to map connections on your headless web server +# run the iptablesetup.sh on the we...
bash
d_bash_14435
--- +++ @@ -1,4 +1,19 @@ #!/bin/bash + + +APOTHECARY_DIR=../../../scripts/apothecary/ + + +if ! [ -f $APOTHECARY_DIR/apothecary/apothecary ] ; then + echo "Apothecary not installed, getting." + git clone https://github.com/openframeworks/apothecary.git $APOTHECARY_DIR/ +else + echo "- Exists: Pulling" + pushd $A...
bash
d_bash_14436
--- +++ @@ -16,4 +16,4 @@ # limitations under the License. ## -PYTHONPATH=$PYTHONPATH:~/Projects/CalendarServer/Twisted "$@" +PYTHONPATH=$PYTHONPATH:~/Projects/CalendarServer/Twisted:~/Projects/CalDAVClientLibrary/trunk/src "$@"
bash
d_bash_14437
--- +++ @@ -6,7 +6,7 @@ source test/db-common.sh -NEW_FILES_LIST=$(mktemp) +NEW_FILES_LIST=$(mktemp /tmp/new-files.XXXXX) trap 'rm ${NEW_FILES_LIST}' EXIT for svc in $SERVICES; do
bash
d_bash_14438
--- +++ @@ -2,7 +2,7 @@ set -e -cabal-dev install-deps +cabal-dev install-deps --enable-tests cabal-dev configure --enable-tests cabal-dev build cabal-dev test --test-option='--jxml=results.xml'
bash
d_bash_14439
--- +++ @@ -23,7 +23,6 @@ httpie iperf jq - mongodb neovim/neovim/neovim nvm openssl
bash
d_bash_14440
--- +++ @@ -7,7 +7,7 @@ unset PYTHONPATH "${virtualenv_pip}" uninstall -y girder > /dev/null -"${virtualenv_pip}" install -U "${PROJECT_SOURCE_DIR}"/girder-[0-9].[0-9]*.tar.gz +"${virtualenv_pip}" --no-cache-dir install -U "${PROJECT_SOURCE_DIR}"/girder-[0-9].[0-9]*.tar.gz if [ $? -ne 0 ]; then echo "Error ...
bash
d_bash_14441
--- +++ @@ -40,8 +40,8 @@ $HOME/.vim/install -ln -s $HOME/.nvim $HOME/.vim -ln -s $HOME/.nvimrc $HOME/.vimrc +ln -s $HOME/.vim $HOME/.config/nvim +ln -s $HOME/.vimrc $HOME/.config/nvim/init.vim # Install and configure ruby ./bootstrap_gems.sh
bash
d_bash_14442
--- +++ @@ -6,34 +6,12 @@ if [[ ! -e augur.config.json ]]; then echo "** No config file was found. Starting config creation process. **" - echo echo "**********************************" echo "Setting up the database configuration..." echo "**********************************" echo - echo "Would y...
bash
d_bash_14443
--- +++ @@ -5,5 +5,5 @@ install -d "$DESTDIR/$MANDIR/man1" for manpage in man/*; do - install "$manpage" "$DESTDIR/$MANDIR/man1/`basename $manpage`" + install -m 644 "$manpage" "$DESTDIR/$MANDIR/man1/`basename $manpage`" done
bash
d_bash_14444
--- +++ @@ -1,7 +1,4 @@ #!/bin/bash - -export GERRIT_SSH_PATH=/Users/chmoulli/Fuse/Fuse-projects/fabric8/docker-gerrit/ssh-admin-key -export GERRIT_SSH_KEYS=/Users/chmoulli/Fuse/Fuse-projects/fabric8/docker-gerrit/ssh-keys rm -rf ssh-admin-key rm -rf ssh-keys
bash
d_bash_14445
--- +++ @@ -2,7 +2,15 @@ # Copyright (c) Marko Tadić 2015-2019 # Licensed under the MIT license. See LICENSE file. -alias reload="source ~/.bash_profile" +function getShellFile() { + if [ -n "$ZSH_VERSION" ]; then + echo ".zshrc" + elif [ -n "$BASH_VERSION" ]; then + echo ".bash_profile" + fi +} + +alias...
bash
d_bash_14446
--- +++ @@ -8,4 +8,5 @@ cd $PBS_O_WORKDIR source /home/csdms/wmt/_testing/conda/bin/activate -python run_bmiilamb.py +export PYTHONPATH=$PWD +python run_bmiilamb.py MsTMIP.bmi.yaml
bash
d_bash_14447
--- +++ @@ -42,5 +42,5 @@ for F in gcc7 intel17 intel18 gcc7-mpich intel17-openmpi intel18-impi gcc7-gcov gcc7-mpich-gcov gcc7-valgrind clang5-asan clang5-msan gcc7-coverity do log "Running ${F}" - ${CTEST} -VV -S ${SCRIPT_DIR}/aaargh-${F}.make 2>&1 1>Logs/aaargh-${F}.log + ${CTEST} -VV -S ${SCRIPT_DIR}/aaargh...
bash
d_bash_14448
--- +++ @@ -1,3 +1,7 @@ export DJANGO_SETTINGS_MODULE=go.testsettings export SANDBOX_NODE_PATH=$PWD/node_modules -py.test --tb=native "$@" +PYTESTARGS="--tb=native" +if [ $VUMIGO_SKIP_DJANGO ]; then + PYTESTARGS="$PYTESTARGS -p no:django" +fi +py.test $PYTESTARGS "$@"
bash
d_bash_14449
--- +++ @@ -1,14 +1,13 @@ BIN_DIR=$1 SOURCE_DIR=$2 -libname=$(stack query | awk 'NR==2' | sed 's/://g'| sed 's/ //g') -libver=$(stack query | awk 'NR==4' | sed 's/version: //g' | sed "s/'//g" | sed "s/ //g") +libname="opencoglib" +libver="0.1.0.0" if [ "$(id -u)" -ne 0 ] then # Build haskell bindings pac...
bash
d_bash_14450
--- +++ @@ -3,3 +3,50 @@ cd /etc/nginx/sites-enabled/ cp /opt/openrov/openrov-image-customization/nginx/default default + +echo "Setup a service to recreate nginx log folders on tmpfs" +cat > /etc/init.d/prepare-dirs << __EOF__ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: prepare-dirs +# Default-Start:...
bash
d_bash_14451
--- +++ @@ -1,56 +1,26 @@ #!/usr/bin/env bash # Inspired by: https://www.tylerewing.co/tmux-now-playing +osascript <<APPLESCRIPT +tell application "System Events" + set running_apps to (name of every process) +end tell -osascript <<APPLESCRIPT -(* Test if iTunes is running. *) -if is_app_running("iTunes") th...
bash
d_bash_14452
--- +++ @@ -28,4 +28,4 @@ source ~/.zsh/os/main.zsh # Special commands for the current os # VTE support -source /etc/profile.d/vte.sh +include /etc/profile.d/vte.sh
bash
d_bash_14453
--- +++ @@ -6,7 +6,7 @@ expected=$(sed -n 's/^# -> \(.*\)/\1/p' $fn) if [ "$expected" = "type error" ] ; then - echo $output | sed -n '/^type error:/q ; q1' + echo $output | grep '^type error:' > /dev/null else [ "$output" = "$expected" ] fi
bash
d_bash_14454
--- +++ @@ -21,7 +21,7 @@ dotnet test -cd ../Tgstation.Server.Host.Tests +cd ../Tgstation.Server.Tests export TGS4_TEST_DATABASE_TYPE=MySql export TGS4_TEST_CONNECTION_STRING="server=127.0.0.1;uid=root;pwd=;database=tgs_test"
bash
d_bash_14455
--- +++ @@ -24,4 +24,4 @@ export LC_CTYPE=$LANG export LC_ALL=en_US.UTF-8 export EDITOR=nvim -export PATH=$PATH:$LOCALDIR/go/bin +export PATH=$LOCALDIR/go/bin:$PATH
bash
d_bash_14456
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -e export DISPLAY=:99.0 -sh -e /etc/init.d/xvfb start +sh -e /etc/init.d/xvfb start || true npm run clean npm run build
bash
d_bash_14457
--- +++ @@ -12,7 +12,7 @@ function checkViewsurf { echo "" echo "Checking images of type '$1'" ... - IMAGES=$(grep "$1" "$CONFIGURATION_FILE" | grep -v -e "type" | tr -s " " | cut -d '"' -f 4) + IMAGES=$(grep "$1" "$CONFIGURATION_FILE" | grep -v -e "type" -e "backup" | tr -s " " | cut -d '"' -f 4) ...
bash
d_bash_14458
--- +++ @@ -22,22 +22,19 @@ echo "Waiting for all processes but postgres to stop" for ((i=0; i < 24; i++)); do - COUNT=$(sudo /var/vcap/bosh/bin/monit summary | tail -n +3 | grep -c -E "stop pending$") - if [ $COUNT == 0 ]; then + if (sudo /var/vcap/bosh/bin/monit summary | tail -n +3 | grep -c -E "stop ...
bash
d_bash_14459
--- +++ @@ -1,3 +1,4 @@ #!/bin/bash +ulimit -c unlimited DJANGO_SETTINGS_MODULE='ms2ldaviz.settings' celery -A ms2ldaviz worker -l info
bash
d_bash_14460
--- +++ @@ -6,7 +6,7 @@ # Copyright © 2021 R.F. Smith <rsmith@xs4all.nl> # SPDX-License-Identifier: MIT # Created: 2021-10-31T02:35:43+0200 -# Last modified: 2021-11-03T01:55:42+0100 +# Last modified: 2021-11-03T03:16:48+0100 export CASROOT="/usr/local/OpenCAS" export CSF_OCCTResourcePath="${CASROOT}/resources...
bash
d_bash_14461
--- +++ @@ -28,8 +28,22 @@ THE_CLASSPATH=${THE_CLASSPATH}:${i} done +#---------------------------------# +# Handle/translate some switches # +#---------------------------------# + +opts= +while test `expr "$1" : '-'` = 1; do + opt="$1" + if test "$opt" = "-v"; then + opt="-verbose"; + fi + opts="$opts $...
bash
d_bash_14462
--- +++ @@ -17,16 +17,16 @@ file_out="${dir_testcase}/output.txt" file_exp="${dir_testcase}/expected.txt" - rm "${file_out}" &>/dev/null || true + cp -v "${file_in}" "${file_out}" cat >"${file_cmd}" <<EOF :set foldmethod=marker :%call SortFolds#SortFolds() -:write ${file_out} +:write :q! ...
bash
d_bash_14463
--- +++ @@ -16,6 +16,6 @@ echo ${NODE_CONFIG} > /etc/service/isochrone/env/NODE_CONFIG # Run datastore once with delay -osrm-load.sh ${PROFILE} ${REGION} +osrm-load.sh ${PROFILE} ${REGION} || die "Impossible to load data." exec /usr/bin/runsvdir -P /etc/service
bash
d_bash_14464
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=0.4.8 +VERSION=0.4.9 TMPDIR=/tmp/google-api-php-client RELFILE=/tmp/google-api-php-client-${VERSION}.tar.gz
bash
d_bash_14465
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash code=${1:-110000} -for ((i=0;i < 1000; i+=1)); do +for i in {1..1000}; do echo "$i" rm -f "bizcircle_${code}.json" python get_all_house.py "$code"
bash
d_bash_14466
--- +++ @@ -4,7 +4,7 @@ unzip master.zip cd leveldb-master make -CGO_CFLAGS="-I./leveldb-master/include" CGO_LDFLAGS="-L./leveldb-master/out-shared -lsnappy" go get github.com/jmhodges/levigo +CGO_CFLAGS="-I./include" CGO_LDFLAGS="-L./out-shared -lsnappy" go get github.com/jmhodges/levigo
bash
d_bash_14467
--- +++ @@ -19,8 +19,15 @@ fi fi -if [ $OS == "linux" ]; then - _install "clang-3.5" +if ! command -v clang >/dev/null 2>&1; then + if [ $OS == "linux" ]; then + if [ $DISTRO == "arch" ]; then + else + _install "clang" + else + _install "clang-3.5" + fi ...
bash
d_bash_14468
--- +++ @@ -5,3 +5,8 @@ # Tasks to run before functional testing. # ============================================================================== +cd /var/www/vagrant/html + +# Clear out localhost from flood table (prevents "more than 5 failed login attempts" error) +drush sql-query "DELETE FROM flood WHERE iden...
bash
d_bash_14469
--- +++ @@ -2,6 +2,8 @@ set -e INSTALL_PATH=/usr/local/dredger + +sudo apt-get install make sudo mkdir -p $INSTALL_PATH sudo wget https://github.com/outeredge/dredger/archive/master.tar.gz -qO - | sudo tar -zxf - -C $INSTALL_PATH --strip=1
bash
d_bash_14470
--- +++ @@ -30,4 +30,7 @@ "${SCRIPT_DIR}/fly_sync_and_login.sh" FLY="$FLY_CMD -t ${FLY_TARGET}" -${FLY} "${action}-resource" -r "deployment-kick-off/deployment-timer" +VERSION="$(${FLY} resource-versions -r deployment-kick-off/deployment-timer | grep time | cut -d ' ' -f3 | head -n 1)" + +${FLY} "${action}-resour...
bash
d_bash_14471
--- +++ @@ -3,27 +3,26 @@ source hack/common.sh source hack/config.sh +rm -rf ${ARTIFACTS}/junit ${ARTIFACTS}/testlogs + if [ "${CI}" == "true" ]; then cat >>ci.bazelrc <<EOF test --cache_test_results=no --runs_per_test=1 EOF + + function collect_results() { + cd ${KUBEVIRT_DIR} + mkdir -...
bash
d_bash_14472
--- +++ @@ -20,6 +20,7 @@ rm $chroot/tmp/*.deb else - pkg_mgr install linux-virtual - pkg_mgr install linux-image-extra-virtual + pkg_mgr install linux-generic + pkg_mgr install linux-image-generic + pkg_mgr install linux-headers-generic fi
bash
d_bash_14473
--- +++ @@ -3,3 +3,4 @@ alias drm='docker-rm' alias dcl='docker-clean' alias dcd='docker-compose down' +alias db='dc up -d db'
bash
d_bash_14474
--- +++ @@ -17,10 +17,6 @@ set -e set -x -# Need this to be able to install TF >= 1.15 on Ubuntu 18.04. -sudo pip3 install --upgrade pip -sudo pip3 install --upgrade setuptools - virtualenv -p python ./venv source ./venv/bin/activate @@ -28,7 +24,7 @@ pip3 install --upgrade pip pip3 install --upgrade setu...
bash
d_bash_14475
--- +++ @@ -4,8 +4,6 @@ SCRIPTS=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) ROOT=$(dirname $SCRIPTS) - -export REACT_PACKAGER_LOG="$ROOT/server.log" cd $ROOT @@ -17,17 +15,29 @@ then WATCHMAN_LOGS=/usr/local/Cellar/watchman/3.1/var/run/watchman/$USER.log [ -f $WATCHMAN_LOGS ] && cat $WATCHMAN_...
bash
d_bash_14476
--- +++ @@ -1,11 +1,31 @@ #!/bin/sh -set -e +set -euf MANAGE_PATH=/opt/km-api/km_api/manage.py MANAGE_CMD="python $MANAGE_PATH" +create_db_user() { + # Note that the tabs in the following statement are used to preserve + # indentation in the SQL statements. + CREATE_ROLE=$(cat <<-EOF + DO \$\$ + B...
bash
d_bash_14477
--- +++ @@ -3,7 +3,7 @@ mkdir -m 777 /qemu cd /qemu -curl -LO https://cdimage.debian.org/cdimage/ports/debian-9.0-sparc64-NETINST-1.iso +curl -LO https://cdimage.debian.org/cdimage/ports/9.0/sparc64/iso-cd/debian-9.0-sparc64-NETINST-1.iso 7z e debian-9.0-sparc64-NETINST-1.iso boot/initrd.gz 7z e debian-9.0-spar...
bash
d_bash_14478
--- +++ @@ -1,3 +1,3 @@ -alias r='rbenv local 2.0.0-p0' +alias r='rbenv local 2.1.0' alias migrate='rake db:migrate db:test:clone'
bash
d_bash_14479
--- +++ @@ -5,6 +5,7 @@ CNI_VERSION="${CNI_VERSION:-v0.7.1}" ARCH="${ARCH:-amd64 arm64 s390x}" +build_script_commit="$(git show --oneline -q)" temp_dir="$(readlink -f build-cni-resources.tmp)" rm -rf "$temp_dir" mkdir "$temp_dir" @@ -19,6 +20,7 @@ for arch in $ARCH; do echo "Building cni $CNI_VERSION...
bash
d_bash_14480
--- +++ @@ -9,8 +9,8 @@ set -ex -V="2.6.1" +V="3.0.0-beta-2" -wget https://github.com/google/protobuf/releases/download/v${V}/protobuf-${V}.tar.gz -tar -xzvf protobuf-${V}.tar.gz -cd protobuf-${V} && ./configure --prefix=/usr && make && sudo make install +wget https://github.com/google/protobuf/archive/v${V}.t...
bash
d_bash_14481
--- +++ @@ -12,7 +12,7 @@ echo "https://github.com/AdoptOpenJDK/openjdk15-binaries/releases/download/jdk-15.0.2%2B7/OpenJDK15U-jdk_x64_linux_hotspot_15.0.2_7.tar.gz" ;; java16) - echo "https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk16-2021-03-04-10-39/OpenJDK16-jdk_x64_linux_hotspot...
bash
d_bash_14482
--- +++ @@ -1,11 +1,13 @@ -#!/bin/bash +#!/usr/bin/env bash -LAST=`pwd` +SRC_DIR="${HOME}/src" + echo "Installing Hugo Extended Edition ^TM" -mkdir $HOME/src -cd $HOME/src +mkdir -p $SRC_DIR +pushd $SRC_DIR git clone https://github.com/gohugoio/hugo.git cd hugo go install --tags extended -echo "Hugo installatio...
bash
d_bash_14483
--- +++ @@ -1,18 +1,20 @@ -# Copyright 2015 Red Hat, Inc. and/or its affiliates -# and other contributors as indicated by the @author tags. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the Li...
bash
d_bash_14484
--- +++ @@ -20,7 +20,7 @@ openssl req -new -key "$KEY_FILE" -out "$CSR_FILE" openssl x509 -req -days 9999 -in "$CSR_FILE" -signkey "$KEY_FILE" -out "$CER_FILE" echo "Done: $CER_FILE" -rm "$CERT_PATH/$CSR_FILE" +rm "$CSR_FILE" chmod 600 "$KEY_FILE" "$CER_FILE" echo ""
bash
d_bash_14485
--- +++ @@ -1,6 +1,7 @@ #!/bin/bash set -e +set -u # homebrew ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)
bash
d_bash_14486
--- +++ @@ -11,3 +11,6 @@ sudo perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security fi + +rm -fr $HOME/.groovy/grapes...
bash
d_bash_14487
--- +++ @@ -1,3 +1,7 @@ #!/bin/bash git add -A; git commit -m "Add this weeks challenges"; git push + +read -r line < ../mynumber.txt + +echo "Repo Successfully Updated" | .././twilio-sms.sh -c /.twiliorc/config $line
bash
d_bash_14488
--- +++ @@ -15,3 +15,4 @@ sed -i "s/\(\"version\"\):.*$/\1: \"${VERSION}\",/" package.json sed -i "s/\(\"version\"\):.*$/\1: \"${VERSION}\",/" bower.json sed -i "s/\(v[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\)/v${VERSION}/g" README.md +echo "${VERSION}" > RELEASE
bash
d_bash_14489
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash case $1 in work|home) @@ -6,8 +6,12 @@ sudo pacman -S --needed ansible python # this needs to be done beforehand, so the yay module is available - echo "Installing yay and necessary plugins" - ansible-playbook --ask-become-pass playbooks/yay.yml ...
bash
d_bash_14490
--- +++ @@ -26,6 +26,7 @@ echo -e "\tUpdating file in place" sedExpr="${line}s/@since TODO/@since ${firstTag//jenkins-/}/" sed -i.bak "$sedExpr" "$file" + rm -f "$file.bak" else echo -e "\tNot updating file, no tag found. Normal if the associated PR/commit is not merged...
bash
d_bash_14491
--- +++ @@ -6,5 +6,5 @@ # awscli bails unless you have this, apparently export LC_ALL="en_US.UTF-8" -./cc-test-reporter format-coverage --debug --output coverage/codeclimate.$TRAVIS_JOB_NUMBER.json +./cc-test-reporter format-coverage --output coverage/codeclimate.$TRAVIS_JOB_NUMBER.json s3cmd sync coverage/ "s3:...
bash
d_bash_14492
--- +++ @@ -2,5 +2,5 @@ #snakemake --forceall --dag sbts | dot -Tpdf > dag.pdf -SINGULARITY_BINDPATH="data:/data" snakemake --use-singularity --printshellcmds sbts +SINGULARITY_BINDPATH="data:/data" snakemake --use-singularity --printshellcmds merge
bash
d_bash_14493
--- +++ @@ -3,4 +3,5 @@ script_dir=$(dirname "$0") js_dir="$script_dir/../data/js" outfile="$js_dir/main.min.js" +rm -f "$js_dir"/main.min.*.js node "$script_dir/r.js" -o mainConfigFile="$js_dir/main.js" name=main out=$outfile
bash
d_bash_14494
--- +++ @@ -12,7 +12,7 @@ echo "https://github.com/bell-sw/Liberica/releases/download/17.0.4+8/bellsoft-jdk17.0.4+8-linux-amd64.tar.gz" ;; java18) - echo "https://github.com/bell-sw/Liberica/releases/download/18.0.1.1+2/bellsoft-jdk18.0.1.1+2-linux-amd64.tar.gz" + echo "https://github.com/bell-sw/Liberica/re...
bash
d_bash_14495
--- +++ @@ -3,7 +3,7 @@ echo "Generating documentation." rm -rf docs -appledoc --project-name mixpanel-iphone --project-company Mixpanel --company-id com.mixpanel --no-repeat-first-par --keep-undocumented-objects --keep-undocumented-members --preprocess-headerdoc --no-create-docset --output docs Mixpanel/Mixpanel...
bash
d_bash_14496
--- +++ @@ -12,6 +12,7 @@ git config --global push.default simple echo $GITHUB_SSH_KEY > ~/.ssh/id_rsa +chmod 400 ~/.ssh/id_rsa eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa @@ -32,5 +33,5 @@ git push origin --all && echo "!! GIT PUSH --ALL" git push origin --tags && echo "!! GIT PUSH --TAGS" -git remote a...
bash
d_bash_14497
--- +++ @@ -1,24 +1,26 @@ +set -x + # Install Java -sudo apt-get -y update -sudo apt-get install -y openjdk-7-jdk -sudo apt-get update -y --fix-missing +sudo DEBIAN_FRONTEND=noninteractive apt-get update -y +sudo DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-7-jdk +sudo DEBIAN_FRONTEND=noninteractive apt...
bash
d_bash_14498
--- +++ @@ -16,7 +16,6 @@ install_cask evernote install_cask keyboard-maestro install_cask skype -install_cask jitsi install_cask flux # Install additional OS X apps install_cask appcleaner
bash
d_bash_14499
--- +++ @@ -3,10 +3,12 @@ #set -ex sudo groupadd --force starwars +sudo groupadd --force jedi +sudo groupadd --force sith # password is starwars -for i in luke leia han chewbacca kylo rey finn poe +for i in luke leia han chewbacca kylo rey finn poe darth do echo "$i" sudo useradd --comment ${i} -...
bash