document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_22900
--- +++ @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/bin/bash set -e readonly VERSION=xdebug-2.6.0beta1 @@ -8,10 +8,10 @@ pushd /tmp/; wget "${URL}"; -#if [ $(sha256sum /tmp/${VERSION}.tgz) != ${SHA} ]; then -# echo "Xdebug source code SHA256 does not match"; -# exit 1; -#fi + +# Validate checksum for security ...
bash
d_bash_22901
--- +++ @@ -4,4 +4,4 @@ alias open="xdg-open" fi -alias p4s="p4 submit -M" +alias p4s="git p4 submit -M"
bash
d_bash_22902
--- +++ @@ -6,7 +6,7 @@ echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u272-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u272b10.tar.gz" ;; java11) - echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.8%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.8_10.t...
bash
d_bash_22903
--- +++ @@ -1,8 +1,15 @@ #!/bin/bash set -e -# test name +# test name and purpose echo '' -echo ' ##### Release Build Test #####' +echo ' ##### Release Build Test #####' +echo '' +echo 'The purpose of this test is to ensure that nodeos was built without debugging' +ec...
bash
d_bash_22904
--- +++ @@ -12,7 +12,7 @@ mkdir build && cd build -cmake .. -DSLANG_INCLUDE_TESTS=OFF +cmake .. -DSLANG_INCLUDE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release make
bash
d_bash_22905
--- +++ @@ -4,10 +4,10 @@ case $PYTHON_VERSION in 3.6) - FULL_VERSION=3.6.10 + FULL_VERSION=3.6.8 ;; 3.7) - FULL_VERSION=3.7.11 + FULL_VERSION=3.7.9 ;; 3.8) FULL_VERSION=3.8.6
bash
d_bash_22906
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash set -e -version="20.10.12" +version="20.10.13" echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz";
bash
d_bash_22907
--- +++ @@ -20,7 +20,7 @@ docker-machine create --driver virtualbox springmusic --debug # create diectory to store mongo data on host -docker ssh springmusic mkdir /opt/mongodb +docker-machine ssh springmusic mkdir /opt/mongodb # set new environment docker-machine env springmusic && \
bash
d_bash_22908
--- +++ @@ -15,7 +15,7 @@ PSQL_USERNAME="" PSQL_DB="" # note: the PGPASSWORD env variable is a "magic" name looked for by psql. -PGPASSWORD="" +export PGPASSWORD="" mkdir -p $TEMP_AREA sshpass -p $SOURCE_PASSWD scp $SOURCE_LOGIN@$SOURCE_HOST:$SOURCE_PATH/*.properties $TEMP_AREA
bash
d_bash_22909
--- +++ @@ -10,5 +10,6 @@ # Print the clean history command. cat <<-EOF -rm -f $HISTFILE && unset HISTFILE && exit +# Command for clean history and logout current session. +rm -f \$HISTFILE && unset HISTFILE && exit EOF
bash
d_bash_22910
--- +++ @@ -3,7 +3,12 @@ # FUNCTIONS function purge_ceph { - docker stop $(docker ps -q) + container_count=$(docker ps -q | wc -l) + + if [[ "${container_count}" -gt 0 ]]; then + docker stop $(docker ps -q) || echo failed to stop containers + fi + rm -rf /var/lib/ceph/* rm -rf /etc/ceph }
bash
d_bash_22911
--- +++ @@ -3,4 +3,6 @@ cd $WORKSPACE cp -rf $WORKSPACE/conf/experiment.conf $NGINX_CONF_DIR/. +chown nginx.nginx $NGINX_CONF_DIR/experiment.conf + /usr/sbin/service nginx reload
bash
d_bash_22912
--- +++ @@ -3,13 +3,12 @@ fw_installed java && return 0 # TODO: Someday get away from apt-get -sudo add-apt-repository -y ppa:webupd8team/java +sudo add-apt-repository -y ppa:openjdk-r/ppa sudo apt-get update -echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set...
bash
d_bash_22913
--- +++ @@ -4,4 +4,32 @@ sort "$FST" > "$FST.sort" +cat <<EOF +int pos=0; +int total=0; + +EOF + +while read DEP ARR CHAR WEIGHT ; do + : ${WEIGHT:=0} + + if [[ $DEP != $PREV_DEP ]]; then + cat <<EOF + } + +NODE_$DEP : + pos++; + switch (token[pos-1]) { +EOF + fi + + cat <<EOF + ca...
bash
d_bash_22914
--- +++ @@ -4,21 +4,8 @@ SOURCE_DIRECTORY="$(git rev-parse --show-toplevel)" fi if [ -z "${TARGET_DIRECTORY}" ]; then - TARGET_DIRECTORY="/home/nginx/carlbennett-api" + TARGET_DIRECTORY="/var/www/api.carlbennett.me" fi - -DEPLOY_TARGET="$1" -if [ -z "${DEPLOY_TARGET}" ]; then - DEPLOY_TARGET="$(cat ${SOURCE_...
bash
d_bash_22915
--- +++ @@ -1,3 +1,3 @@ #!/bin/sh -docker run -v $(pwd):/data -v /var/run/docker.sock:/var/run/docker.sock docker-make $@ +docker run -v $(pwd):/data -v /var/run/docker.sock:/var/run/docker.sock genesysarch/docker-make $@
bash
d_bash_22916
--- +++ @@ -4,7 +4,7 @@ if [ -d $HOME/.emacs.d ]; then mv .emacs.d emacsdir gcl czipperz/emacs.d $HOME/.emacs.d - mv emacsdir/* .emacs.d + mv $(ls -A emacsdir) .emacs.d rm -R emacsdir else gcl czipperz/emacs.d $HOME/.emacs.d
bash
d_bash_22917
--- +++ @@ -11,4 +11,4 @@ fpm -s dir -t deb --deb-no-default-config-files --name ${project} \ --iteration ${iteration} --version ${version} \ /tmp/usrbin/${project}=/usr/bin/ \ - /go/bin/${project}=/nail/opt/bin/ + /go/bin/${project}=/nail/opt/terraform-0.7/bin/
bash
d_bash_22918
--- +++ @@ -29,3 +29,7 @@ ENCRYPTED=$(echo "$PASS" | mkpasswd -m sha-512 --stdin) useradd -m -s /bin/bash -c "Marie Hieke" -g neurobio -u 2000 -p "$ENCRYPTED" mah15aa +# And print the account name and the password +echo "mah15aa $PASS" + +
bash
d_bash_22919
--- +++ @@ -4,5 +4,6 @@ sudo -u postgres psql -c 'DROP DATABASE IF EXISTS test;' sudo -u postgres psql -c 'CREATE DATABASE test;' +sudo -u postgres psql -c "ALTER USER postgres password '1234';" sudo -u postgres psql -d test -a -f $SCRIPTPATH/pg-init.sql
bash
d_bash_22920
--- +++ @@ -8,7 +8,8 @@ do if [ -d "$CURRENT$DIRECTORY" ]; then NAME=$(basename $(git remote show -n origin | grep Fetch | cut -d: -f2-)) - echo -ne "\033]0; $NAME\007" + BRANCH=$(basename $(git symbolic-ref HEAD)) + echo -ne "\033]0; $NAME ($BRANCH)\007" break fi
bash
d_bash_22921
--- +++ @@ -14,6 +14,8 @@ params="$(migrate "${params}" "om_ssh_pwd" "opsman_ssh_password")" params="$(migrate "${params}" "vcenter_data_center" "vcenter_datacenter")" params="$(migrate "${params}" "om_data_store" "vcenter_datastore")" + params="$(append_param "${params}" "vcenter_ca_cert")" + params="$(ap...
bash
d_bash_22922
--- +++ @@ -30,7 +30,7 @@ echo "Docker Version: $(docker -v)" echo "" - script/run + $WERCKER_STEP_ROOT/script/run # No ruby, no docker case else echo "You need to use a box that installed ruby."
bash
d_bash_22923
--- +++ @@ -7,15 +7,13 @@ validate-composer validate-behat-features validate-doctrine-schema + test-phpspec + test-phpunit + test-fixtures + test-behat-without-javascript test-behat-with-javascript + test-behat-with-cli ) - -# test-phpspec -# test-phpunit -# test-fixtures ...
bash
d_bash_22924
--- +++ @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -ex @@ -11,7 +11,7 @@ # a few SHAs rather than a version. # Docker Hub doesn't always check out the tag and sometimes checks out the branch, so we should look # for an appropriately tagged branch as well (heads/v1.2.3). -if [ $BRANCH != 'HEAD' && $BRANCH != ...
bash
d_bash_22925
--- +++ @@ -8,6 +8,11 @@ # Homebrew ############################################################################### +# Install Homebrew +# http://brew.sh +/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + +# Install Homebrew packages & Homebrew Cask apps ./brew....
bash
d_bash_22926
--- +++ @@ -18,8 +18,6 @@ W=$(echo "$Q" | sed -e 's/.*\/quotes\///g' -e 's/<.*//g' -e 's/.*">//g') if [ "$W" -a "$TXT" ]; then echo "${WHO_COLOR}${W}${COLON_COLOR}: ${TEXT_COLOR}“${TXT}”${END_COLOR}" - # else - # quote fi } #quote
bash
d_bash_22927
--- +++ @@ -4,10 +4,12 @@ gh auth login --with-token < ~/.tokens/github/dotfiles.txt gh_users=(${GH_USERS:-se7entyse7en}) +base_path="/Users/se7entyse7en/Projects/" for gh_user in "${gh_users[@]}" do - echo "Cloning repositories for $gh_user..." - mkdir -p "~/Projects/$gh_user" && cd "~/Projects/$gh_user"...
bash
d_bash_22928
--- +++ @@ -17,7 +17,7 @@ fi test -f re2/$LIBRE2 && exit 0 - RE2_REV=${RE2_REV:-2018-04-01} + RE2_REV=${RE2_REV:-2018-09-01} case $(git config --get remote.origin.url) in git@github.com*|https://github.com*|git://github.com*) RE2_DEFAULT_URL=https://github.com/google/re2
bash
d_bash_22929
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Small script to fetch the latest protobuf and installs it set -ex
bash
d_bash_22930
--- +++ @@ -6,4 +6,4 @@ cd "$1" || exit 1 -pytest -n auto --junit-xml=/tmp/apptest.xml --junit-prefix=apptest tests/ +pytest --junit-xml=/tmp/apptest.xml --junit-prefix=apptest tests/
bash
d_bash_22931
--- +++ @@ -4,7 +4,7 @@ IS_AVAILABLE=0 while [ $IS_AVAILABLE -eq 0 ] do - IS_AVAILABLE=`curl http://www.motorola.com/us/consumers/nexus-6-header/Nexus-6/nexus-6-motorola-us.html --no-keepalive -s | grep -i -m1 "00637NARTL\":false," | wc -l` + IS_AVAILABLE=`curl http://www.motorola.com/us/consumers/nexus-6-hea...
bash
d_bash_22932
--- +++ @@ -18,7 +18,15 @@ # A helper script for ensuring all checks pass before submitting any change. echo ========== Running unit tests. +if [[ -z `which coverage` ]];then + echo "coverage is not installed. Installing ..." + pip install coverage +fi coverage run --source=gcp_variant_transforms setup.py test...
bash
d_bash_22933
--- +++ @@ -12,7 +12,7 @@ sleep 5 -fields='[{"id":"CaseNo","type":"text"},{"id":"CaseYr","type":"text"},{"id":"Address","type":"text"},{"id":"DateOpened","type":"date"},{"id":"CaseType","type":"text"},{"id":"Status","type":"text"},{"id":"StatusDate","type":"date"},{"id":"Closed","type":"text"},{"id":"parcelId","...
bash
d_bash_22934
--- +++ @@ -8,6 +8,14 @@ # on build boxes. # This script is run before hermes is started, preventing it from booting during builds. +# Default startup timeout in systemd is 60 seconds, sleep 50 means we should return before the timeout +sleep_time=50 -# This is a hack to return 1 if build box, 0 otherwise -aws...
bash
d_bash_22935
--- +++ @@ -13,15 +13,15 @@ username=$(whoami) ip=$(wget http://10.0.0.1/adm/status.asp --user=$username --password=$pw -q -O - | grep 'id="idv4wanip"' | grep -o "[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}") +echo +echo WAN IP: $ip +echo + if test "X$ip" == "X" then echo "Error." exit fi ...
bash
d_bash_22936
--- +++ @@ -6,3 +6,6 @@ pod update xcodebuild -workspace MatrixSDK.xcworkspace/ -scheme MatrixSDK -sdk iphonesimulator -destination 'name=iPhone 4s' + +# Run CocoaPod lint in order to check pod submission +pod spec lint
bash
d_bash_22937
--- +++ @@ -7,17 +7,36 @@ # CMR applications when this parameter is passed. date && echo "Installing all apps" && -lein modules do clean, install && +lein modules do clean, install +if [ $? -ne 0 ] ; then + echo "Failed to install apps" >&2 + exit 1 +fi date && echo "Generating search API documentation" && -(c...
bash
d_bash_22938
--- +++ @@ -27,6 +27,7 @@ # Initialize the database with sample file and launch services. # Launch Greyhound. + chmod 755 /vagrant/gh /vagrant/gh start # TODO Need some method to ensure that all Greyhound components are
bash
d_bash_22939
--- +++ @@ -3,7 +3,6 @@ cd $(dirname $0) base_url=$(../utility/base_url.sh) player_names=$(../utility/player_names.sh) -player_states=$(../utility/player_states.sh) if [ $# -ge 3 ] ; then curl \ @@ -17,6 +16,4 @@ echo "" echo "$player_names" echo "" - echo "$player_states" - echo "" f...
bash
d_bash_22940
--- +++ @@ -4,19 +4,22 @@ if [[ "$1" = "" ]] then - echo "Usage: buildweb.sh output-directory" - echo "e.g. buildweb c:\\users\\jon\\NodaTime\\nodatime.org" + echo "Usage: buildweb.sh output-directory [--skip-api]" + echo "e.g. buildweb.sh c:\\users\\jon\\NodaTime\\nodatime.org" echo "It is expected that t...
bash
d_bash_22941
--- +++ @@ -19,7 +19,7 @@ export GREP_COLOR='1;32' export CLICOLOR=1 -export PAGER="vimpager" +export PAGER="less" export GIT_PAGER="less" export NODE_PATH="/usr/local/lib/node:/usr/local/lib/node_modules:$NODE_PATH"
bash
d_bash_22942
--- +++ @@ -1,12 +1,12 @@ #!/bin/bash set -eux -VAULT_VERSION=0.3.1 +VAULT_VERSION=0.4.1 mkdir -p $HOME/bin cd /tmp -curl -sOL https://dl.bintray.com/mitchellh/vault/vault_${VAULT_VERSION}_linux_amd64.zip +curl -sOL https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.z...
bash
d_bash_22943
--- +++ @@ -6,5 +6,4 @@ ARGS="$HDFS_WC $HDFS_WC_OUT" echo "running wc with args $ARGS" -$FLINK_BUILD_HOME"/bin/flink" run -p $DOP -c org.apache.flink.test.testPlan.WordCountWithoutCombine -j $TESTJOB_HOME"/target/testjob-*.jar" $ARGS - +$FLINK_BUILD_HOME"/bin/flink" run -p $DOP -c com.github.projectflink.testPlan...
bash
d_bash_22944
--- +++ @@ -26,7 +26,7 @@ *) echo "Imagestream testing not supported for $OS environment." ; return 0 ;; esac - ct_os_test_image_stream_s2i "${THISDIR}/imagestreams/ruby-${OS}.json" "${IMAGE_NAME}" \ + ct_os_test_image_stream_s2i "${THISDIR}/imagestreams/ruby-${OS%[0-9]*}.json" "${IMAGE_NAME}" \ ...
bash
d_bash_22945
--- +++ @@ -13,4 +13,4 @@ git add "$target_dir" git commit -m "Update docs for v$artifact_version" git push origin gh-pages -echo "Documentation published to https://kushki.github.io/kushki-java/docs/$artifact_version/" +echo "Docs published to https://kushki.github.io/kushki-java/docs/$artifact_version/index.html...
bash
d_bash_22946
--- +++ @@ -7,7 +7,7 @@ ## # if go is installed export GOPATH -if [[ ( -e `which go` && -e "$HOME/.go" ) ]]; then export GOPATH=$HOME/.go; fi +if [[ ( -e `which go` && -e "$HOME/.go" ) ]]; then export GOPATH=$HOME/.go && export PATH="$GOPATH/bin:$PATH"; fi ## # search for rbenv.
bash
d_bash_22947
--- +++ @@ -4,7 +4,11 @@ if [ -e "script/server" ]; then ruby script/$@ else - ruby script/rails $@ + if [ -e "bin/rails" ]; then + bin/rails $@ + else + rails $@ + fi fi }
bash
d_bash_22948
--- +++ @@ -1,11 +1,19 @@ -wget http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-9.29.tar.gz -tar -xzf Image-ExifTool-9.29.tar.gz -cd Image-ExifTool-9.29 +VERSION=9.29 + +wget http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-${VERSION}.tar.gz +tar -xzf Image-ExifTool-${VERSION}.tar.gz +cd Imag...
bash
d_bash_22949
--- +++ @@ -5,6 +5,8 @@ export JENKINS_URL="https://$JENKINS_SITE_NAME/" export CROWD_BACKUP_FILE="./casc/crowd_backup.xml" + +docker-compose -f casc/docker-compose.yml pull # create new img if [ $# -gt 0 ]; then
bash
d_bash_22950
--- +++ @@ -27,7 +27,7 @@ echo "$PFX Installing python..." if [ ! -x /usr/local/bin/python ]; then - brew install python --framework --with-brewed-openssl + brew install python --with-brewed-openssl else echo "$PFX Python already installed, skipping..." fi
bash
d_bash_22951
--- +++ @@ -24,8 +24,6 @@ # Checkout bindings-GLFW workaround (no longer necessary on GHC 8.0.2) (cd ../bindings-GLFW && git checkout win-halive-fix) -# Apply needed patch for MSYS2 support to freetype mainline -(cd ../freetype-gl-mini && git apply freetype-gl-strdup-fix.patch) # Copy necessary DLLs to /usr/lo...
bash
d_bash_22952
--- +++ @@ -1,4 +1,4 @@ #!/bin/sh # Move sbt and ivy data out of home directory. -alias sbt="sbt -ivy $XDG_DATA_HOME/ivy2 -sbt-dir $XDG_DATA_HOME/sbt" +alias sbt='sbt -ivy $XDG_DATA_HOME/ivy2 -sbt-dir $XDG_DATA_HOME/sbt'
bash
d_bash_22953
--- +++ @@ -21,6 +21,9 @@ export TEST_USER="testuser" export TEST_PASSWORD="passpassword" export TEST_REGISTRY="localregistry" + +# Pull images used for tests +docker pull "${TEST_REPO}:${TEST_TAG}" export TEST_SKIP_PULL="true" # Run the tests.
bash
d_bash_22954
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash + +set -e PHPBIN=php7.2
bash
d_bash_22955
--- +++ @@ -1,9 +1,8 @@ #!/bin/bash DATA_PATH=$HOME/.cache/paddle/dataset/wmt16 -if [ ! -d $DATA_PATH ] ; then - python -c 'import paddle;paddle.dataset.wmt16.train(10000, 10000, "en")'\ - '().next()' +if [ ! -d $DATA_PATH/en_10000.dict ] ; then + python -c 'import paddle;paddle.dataset.wmt16.train(1...
bash
d_bash_22956
--- +++ @@ -7,8 +7,18 @@ platform=`"${PYTHON}" -c 'import distutils.util as u; print u.get_platform()'` version=`"${PYTHON}" -c 'import sys; print sys.version[0:3]'` -libdir="${root}/build/lib.${platform}-${version}" -export PYTHONPATH="${libdir}${PYTHONPATH:+:${PYTHONPATH}}" +# The lib directory varies depending...
bash
d_bash_22957
--- +++ @@ -2,5 +2,4 @@ set -x set -e docker build -t openroad/openroad --target base-dependencies . -echo "User is ${USER} $(id -u ${USER})" docker run -u $(id -u ${USER}):$(id -g ${USER}) -v $(pwd):/OpenROAD openroad/openroad bash -c "./OpenROAD/jenkins/install.sh"
bash
d_bash_22958
--- +++ @@ -15,6 +15,9 @@ git fetch origin if [ `$CURCOMMIT master` != `$CURCOMMIT origin/master` ]; then + echo "DROP DATABASE fxa;" | mysql -u root + echo "CREATE DATABASE fxa;" | mysql -u root + echo "GRANT ALL ON fxa.* TO 'fxa'@'localhost';" | mysql -u root git branch -f master origin/master /usr/loc...
bash
d_bash_22959
--- +++ @@ -5,17 +5,28 @@ } test -d autoconf && test -f autoconf/configure.ac && cd autoconf test -f configure.ac || die "Can't find 'autoconf' dir; please cd into it first" -autoconf --version | egrep '2\.5[0-9]' > /dev/null -if test $? -ne 0 -then - die "Your autoconf was not detected as being 2.5x" +autoconf --...
bash
d_bash_22960
--- +++ @@ -1,4 +1,4 @@ -PYXB_ROOT=${PYXB_ROOT:-/pyxb/dev} +PYXB_ROOT=${PYXB_ROOT:-/prj/pyxb/dev} PYTHONPATH=${PYXB_ROOT}:${PYTHONPATH:+:${PYTHONPATH}} PATH="${PYXB_ROOT}/scripts:${PYXB_ROOT}/bin:${PATH}" export PYXB_ROOT PYTHONPATH PATH
bash
d_bash_22961
--- +++ @@ -25,7 +25,7 @@ while : do value=$(RandomNumber "$MIN" "$RANGE") - echo "DEMO_METRIC $value $SOURCE" + echo "SHELL_METRIC" $value $SOURCE" sleep $SLEEP done }
bash
d_bash_22962
--- +++ @@ -2,7 +2,7 @@ checkout_path=~/.oh-my-zsh if [ -d "$checkout_path" ]; then - upgrade_oh_my_zsh + /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh else git clone git://github.com/robbyrussell/oh-my-zsh.git $checkout_path fi
bash
d_bash_22963
--- +++ @@ -9,6 +9,14 @@ if [ -z `which tar` ]; then die 'tar not found' +fi + +if [ -z `which awk` ]; then + die 'awk not found' +fi + +if [ -z `which tail` ]; then + die 'tail not found' fi if [ -f "$OUTPUT" ]; then
bash
d_bash_22964
--- +++ @@ -8,6 +8,12 @@ sleep 5 done +if $(curl -k https://localhost:4000/login/login.html | grep -q "Greenbone Security Assistant"); then + echo "Greenbone started successfully!" +else + echo "Greenbone couldn't be found. There's probably something wrong" + exit 1 +fi
bash
d_bash_22965
--- +++ @@ -6,7 +6,8 @@ for _ in $(seq "${timeout}"); do set +e curl -f --connect-timeout 1 "${url}" > /dev/null 2>&1 - if [ $? -eq 0 ]; then + last_exit_code=$? + if [ $last_exit_code -eq 0 ] || [ $last_exit_code -eq 22 ]; then echo 0 return fi
bash
d_bash_22966
--- +++ @@ -8,13 +8,13 @@ curl -X 'POST' --silent --data-binary '{"text":"A new build for the proxy has started."}' $WEBHOOK > /dev/null mkdir dockercfg ; cd dockercfg echo Downloading Docker requirements.. -wget http://docker-2.game-on.org:8081/dockerneeds.tar -q +wget http://$BUILD_DOCKER_HOST:8081/dockerneeds.t...
bash
d_bash_22967
--- +++ @@ -6,7 +6,8 @@ cmake .. \ -DCMAKE_INSTALL_PREFIX=$PREFIX \ -DCMAKE_PREFIX_PATH=$PREFIX \ - -DBOOST_NO_SYSTEM_PATHS=on + -DBOOST_NO_SYSTEM_PATHS=on \ + -DCMAKE_OSX_DEPLOYMENT_TARGET="" cmake --build . --config Release --target install
bash
d_bash_22968
--- +++ @@ -4,4 +4,4 @@ # It runs the appropriate commands depending on the task requested. # Otherwise compile and check as normal -qmake -qt=$QT QMAKE_CXX=$CXX QMAKE_CC=$CC QMAKE_LINK=$CXX QMAKE_LINK_SHLIB=$CXX && make && ./unittest.sh +$QMAKE QMAKE_CXX=$CXX QMAKE_CC=$CC QMAKE_LINK=$CXX QMAKE_LINK_SHLIB=$CXX &&...
bash
d_bash_22969
--- +++ @@ -2,7 +2,7 @@ BASEDIR=$(dirname $0) cd $BASEDIR ../../node_modules/.bin/http-server -p 8000 & -git clone https://github.com/jupiterjs/canjs.git can +git clone ../. can git clone https://github.com/jupiterjs/funcunit.git cd funcunit git submodule update --init --recursive
bash
d_bash_22970
--- +++ @@ -1,6 +1,12 @@ #!/bin/bash # Run the following commands to create a database migration file, which is a # abstraction layer recipe for Laravel to perform a CREATE TABLE query. + +# Navigate to the migrations folder +cd ~/Sites/presentation/mvc-basics/database/mgirations/ + +# Delete the existing default ...
bash
d_bash_22971
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh cd "$(dirname "$0")" -for SRC_DIR in src test tools +for SRC_DIR in src test do find $SRC_DIR -name '*.h' -or -name '*.inl' -or -name '*.cc' | xargs clang-format -i -style file done
bash
d_bash_22972
--- +++ @@ -1,7 +1,7 @@ #!/usr/bin/env bash -cd /app -/usr/local/bin/docker-compose --file docker-compose-production.yml down -d > /var/log/docker-compose.log 2> /var/log/docker-compose.log - -# Always succeed; we may be running on a new instance with no containers -exit 0 +if [ -d /app ] +then + cd /app + /usr/...
bash
d_bash_22973
--- +++ @@ -1,3 +1,11 @@ #!/bin/bash -sudo apt-get install ros-kinetic-controller-manager ros-kinetic-gazebo-ros-control ros-kinetic-diff-drive-controller ros-kinetic-joint-state-controller ros-kinetic-ros-control ros-kinetic-ros-controllers ros-kinetic-teleop-twist-keyboard ros-kinetic-velodyne-gazebo-plugins +su...
bash
d_bash_22974
--- +++ @@ -10,6 +10,20 @@ WGET_OPTIONS="--no-check-certificate --output-document=/dev/null" TRIES=6 SLEEP=10 + +while getopts "t:w:o" opt; do + case $opt in + t) + TRIES=${OPTARG} + ;; + w) + SLEEP=${OPTARG} + ;; + o) + WGET_OPTIONS=${OPTARG} + ;; + esac +done function ...
bash
d_bash_22975
--- +++ @@ -5,10 +5,10 @@ cd "$SCRIPT_DIR" if [ ! -d "node_modules" ]; then - npm install csscritic + npm install csscritic http-server fi echo "Please go to http://localhost:8000/test/RegressionRunner.html" cd "$SCRIPT_DIR/.." -python -m SimpleHTTPServer +"$SCRIPT_DIR"/node_modules/.bin/http-server ...
bash
d_bash_22976
--- +++ @@ -1,2 +1,9 @@ #!/bin/bash -docker run -u shiny -d --rm -p 80:3838 -v ${PWD}/data:/srv/shiny-server/bcape/data -v ${PWD}/analytics:/srv/shiny-server/bcape/analytics -v ${PWD}/logs:/var/log/shiny-server crukci-bioinformatics/bcape +mkdir -p logs +chmod ugo+rx data analytics +chmod ugo+rwx logs +docker run -u...
bash
d_bash_22977
--- +++ @@ -15,4 +15,4 @@ #!/bin/bash set -x -DEFAULT_BAZEL_TARGETS="//tensorflow/... -//tensorflow/compiler/..." +DEFAULT_BAZEL_TARGETS="//tensorflow/... -//tensorflow/compiler/... //tensorflow/compiler/xla/python/tpu_driver/..."
bash
d_bash_22978
--- +++ @@ -5,7 +5,7 @@ # master branch test if [ "$HEROKU_TEST_RUN_BRANCH" == "master" ]; then # Create scratch org config as default org - cci org scratch browsertests_classic browsertests_master --default + cci org scratch browsertest_classic browsertests_master --default # Install latest beta ...
bash
d_bash_22979
--- +++ @@ -4,7 +4,7 @@ echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin && docker push "${DOCKER_IMAGE_SLUG}":"${distribution,,}"-"${distribution_version}" && -[[ $distribution_alias ]] && +[[ $distribution_alias != '' ]] && { docker tag "${DOCKER_IMAGE_SLUG}":"${distribution,,...
bash
d_bash_22980
--- +++ @@ -3,4 +3,4 @@ cd wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.9.tgz tar xvf mongodb-linux-x86_64-2.6.9.tgz -cp -R mongodb-linux-x86_64-2.6.9/* /usr/local +cp -R mongodb-linux-x86_64-2.6.9/* /usr/
bash
d_bash_22981
--- +++ @@ -2,7 +2,7 @@ # This scripts downloads the CIFAR10 (binary version) data and unzips it. DIR="$( cd "$(dirname "$0")" ; pwd -P )" -cd $DIR +cd "$DIR" echo "Downloading..."
bash
d_bash_22982
--- +++ @@ -2,16 +2,62 @@ cd `dirname $0` -usage="$0 <source file> [<output file>]" +usage() { + cat << EOF +Usage: boot-compile.sh [-hai] <source file> [<output file>] + +Invoke the bootstrap compiler to compile the given nucleus source file. + + -h display this help message + -a produce assembly ou...
bash
d_bash_22983
--- +++ @@ -16,3 +16,10 @@ # Set password echo 'vagrant:vagrant' | chpasswd + +# Setup security groups +sed -i -e 's/net.bridge.bridge-nf-call-iptables = 0/net.bridge.bridge-nf-call-iptables = 1/g' /etc/sysctl.conf +sed -i -e 's/net.bridge.bridge-nf-call-arptables = 0/net.bridge.bridge-nf-call-arptables = 1/g' /e...
bash
d_bash_22984
--- +++ @@ -6,7 +6,7 @@ set -x pushd cnb2cf - go build -o build/cnb2cf ./cmd/cnb2cf/main.go + ./scripts/build.sh popd # Cut off the rc part of the version, so that ultimate RC will have the correct version file
bash
d_bash_22985
--- +++ @@ -1,3 +1,3 @@ -MASTER_SEEN=7ed28a0b78f07eff2dba32bbc84ee4de9870f4e1 -RELEASE_16_09_SEEN=63fee95d58fdd00e3bdd97ceb9c5b620bfdaa2d4 -RELEASE_17_03_SEEN=6c9fb36526dffe3e62d411fc8cdaad82bb6fbfed +MASTER_SEEN=d12df18235ce8e7cd2f4cd066e89d53d00490080 +RELEASE_16_09_SEEN=1f9bd9246b1ea5af599a94a5104f3f207322be3e +RE...
bash
d_bash_22986
--- +++ @@ -1,13 +1,13 @@ #!/bin/bash set -euo pipefail -GO_VERSION="1.8.1" +GO_VERSION="1.9" export GoInstallDir="/tmp/go$GO_VERSION" mkdir -p $GoInstallDir if [ ! -f $GoInstallDir/go/bin/go ]; then - GO_MD5="b05c0cbb28503d038a47d87a6b3b8e86" + GO_MD5="4577d9ba083ac86de78012c04a2981be" URL=https://bu...
bash
d_bash_22987
--- +++ @@ -8,3 +8,6 @@ # Homebrew services control panel brew tap jimbojsb/launchrocket brew cask install launchrocket + +# Skip last login info output, makes shell to start a bit faster +touch $HOME/.hushlogin
bash
d_bash_22988
--- +++ @@ -1,11 +1,15 @@ #!/usr/bin/env bash +# Install packages apt-get update apt-get install -y nodejs apt-get install -y nodejs-legacy apt-get install -y npm apt-get install -y mongodb +# set working dir to /vagrant on ssh login +grep "cd /vagrant" .bashrc > /dev/null || echo "cd /vagrant" >> .bashrc +...
bash
d_bash_22989
--- +++ @@ -14,3 +14,5 @@ docker push vrusinov/$n:$date_v docker push vrusinov/$n:$v docker push vrusinov/$n:$v.$date_v +docker push vrusinov/$n:$v_short +docker push vrusinov/$n:$v_short.$date_v
bash
d_bash_22990
--- +++ @@ -17,8 +17,7 @@ cd $SRC/fribidi ./autogen.sh --disable-docs --enable-static=yes --enable-shared=no --with-pic=yes --prefix=/work/ -# Don't run "make": it's broken. Run "make install". -make install +make cd $SRC/libass
bash
d_bash_22991
--- +++ @@ -2,7 +2,28 @@ set -e pass="$(docker run --rm --entrypoint awk "$1" -F ':' '$1 == "root" { print $2 }' /etc/passwd)" + if [ "$pass" = 'x' ]; then + # 'x' means password is in /etc/shadow instead pass="$(docker run --rm --entrypoint awk --user root "$1" -F ':' '$1 == "root" { print $2 }' /etc/shadow)"...
bash
d_bash_22992
--- +++ @@ -45,7 +45,9 @@ echo "Code coverage" OMITS="$SMROOT/tests/*,$SMROOT/.env/*,$SMROOT/tests/mocks/*" - for format in xml html report; do + for format in html report; do coverage $format --include="$SMROOT/*" --omit=$OMITS done + + coverage xml --include="$SMROOT/*" )
bash
d_bash_22993
--- +++ @@ -8,7 +8,7 @@ 'Python-2.0', 'Docutils Public Domain Dedication' ) -pkg_source=http://heanet.dl.sourceforge.net/project/docutils/docutils/${pkg_version}/docutils-${pkg_version}.tar.gz +pkg_source=https://downloads.sourceforge.net/project/${pkg_name}/${pkg_name}/${pkg_version}/${pkg_name}-${pkg_version...
bash
d_bash_22994
--- +++ @@ -14,19 +14,18 @@ # TODO: This test is failing for a yet-to-be-determined reason. See # https://github.com/simbody/simbody/issues/400 for more details. Once # that is figured out then this test should be enabled. - SKIP_TEST="-E TestCustomConstraints" - ls $PREFIX/include - ls $PREFIX/include/GL + SKI...
bash
d_bash_22995
--- +++ @@ -1,3 +1,6 @@ #!/bin/sh +# +# Sample OpenBSD recording script +# Pipe this over to sscall aucat -r 8000 -o -
bash
d_bash_22996
--- +++ @@ -21,5 +21,6 @@ git checkout master git pull git checkout tags/$2 - cabal install fi + +cabal install
bash
d_bash_22997
--- +++ @@ -3,3 +3,12 @@ export LDFLAGS="${LDFLAGS} -L$PREFIX/lib -lssl" $PYTHON setup.py install + +if [[ `uname` == 'Darwin' ]]; then + PG_LIB=$(pg_config --libdir) + for LIBRARY in `find ${SP_DIR}/${PKG_NAME} -name "*.so"`; + do + install_name_tool -change libssl.1.0.0.dylib @rpath/libssl.1....
bash
d_bash_22998
--- +++ @@ -12,5 +12,8 @@ brew install git tmux chicken clisp rlwrap smlnj ocaml opam cask leiningen pkg-config bash-completion gcc freetype vim wget brew cask install pharo +# the following ocaml modules are necessary for HOL Light project +opam install camlp5 ocamlfind + echo "source ~/.bash_profile_ext" >> ~/...
bash
d_bash_22999
--- +++ @@ -5,6 +5,8 @@ IMAGE_FILE="$(ls | grep 'Cuis5.0-[0-9]\+.image')" INSTALL_UPDATES_SCRIPT="\ + Utilities classPool at: #AuthorName put: 'TravisCI'. + Utilities classPool at: #AuthorInitials put: 'TCI'. ChangeSet installNewUpdates.\ Smalltalk snapshot: true andQuit: true clearAllClassState: false.\ ...
bash