document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_6600 | ---
+++
@@ -11,7 +11,8 @@
run_git clone https://github.com/facebook/watchman.git
cd watchman
./autogen.sh
- ./configure
+ ./configure --prefix="$(pwd)"
+ mkdir -p "var/run/watchman"
make
cd "$SCRIPT_DIR_ABS"
fi | bash |
d_bash_6601 | ---
+++
@@ -2,7 +2,7 @@
set -e # exit with nonzero exit code if anything fails
# go to the module directory and create a *new* Git repo
-cd "$GH_REPO"
+cd doc
git init
#git remote add origin "https://github.com/$GH_USER/$GH_REPO"
@@ -15,11 +15,11 @@
# the first and only commit to this new Git repo contains a... | bash |
d_bash_6602 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-set -ex
+set -e
pr_branch="$(git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 3-)"
@@ -19,10 +19,5 @@
build-scripts before
git checkout "$pr_branch"
-difference="$(diff before after)"
-rm before after
-
-if [ -n "$difference" ]; then
- echo "$difference"
- exit 1
-... | bash |
d_bash_6603 | ---
+++
@@ -7,7 +7,8 @@
for d in $to_build
do
cd $d
- python setup.py bdist_conda || echo "Failed on $PWD"
+ # Try --offline in case astropy-helpers bootstrap conflicts with conda's shutdown of downloads.
+ python setup.py bdist_conda || python setup.py bdist_conda --offline || ech... | bash |
d_bash_6604 | ---
+++
@@ -5,6 +5,4 @@
cat /tmp/brakeman.tabs
-cat bin/ci/103_security_ignore.txt | perl -pe 's/#.*$//'|grep -E '.' | perl -e '$_=join"|",<>;s/\n//;chomp;print"grep -vE \"".$_."\" /tmp/brakeman.tabs\n"' | sh | grep -E . | wc -l
-
exit `cat bin/ci/103_security_ignore.txt | perl -pe 's/#.*$//'|grep -E '.' | per... | bash |
d_bash_6605 | ---
+++
@@ -1,4 +1,4 @@
-export EDITOR='subl'
+export EDITOR='subl -w'
export ANDROID_HOME='/opt/android/android-sdk-macosx'
export ANDROID_NDK_HOME='/opt/android/android-ndk-r9'
export OPENCV_SDK_HOME='/opt/android/OpenCV-2.4.6-android-sdk' | bash |
d_bash_6606 | ---
+++
@@ -13,11 +13,16 @@
chara=$($adb -s $serial shell getprop ro.build.characteristics)
if [[ $chara == *"watch"* ]]
then
-echo "Recording from watch..."
-$adb -s $serial shell screenrecord --o raw-frames /sdcard/screencapture.raw
+ echo "Recording from watch..."
+ $adb -s $serial shell screenrecord --o ... | bash |
d_bash_6607 | ---
+++
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
[ -d venv ] || virtualenv venv
+
+. ./venv/bin/activate
pip install -e .
if [ "$STAGE" = "Select one" -o "$STAGE" = "" ]; then | bash |
d_bash_6608 | ---
+++
@@ -24,5 +24,11 @@
cabal update
+for package in `cat $cabal.world`; do
+ case $package in /*) ;; *) continue ;; esac
+ test -d $package || continue
+ (cd $package && exec cabal clean)
+done
+
cabal install hscolour # must be installed first
cabal install `cat $cabal.world` | bash |
d_bash_6609 | ---
+++
@@ -3,7 +3,7 @@
set -ex
GOROOT=/usr/local/go
-GO_ARCHIVE_URL=https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
+GO_ARCHIVE_URL=https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz
GO_ARCHIVE=$(basename $GO_ARCHIVE_URL)
echo "Downloading go..." | bash |
d_bash_6610 | ---
+++
@@ -11,7 +11,8 @@
git commit -am "Release version $version and update docs" --author="orbit-tools <orbit@ea.com>"
echo Create release notes from previous commit messages
-releaseNotes=curl -sH "$AUTH" "$GH_REPO/orbit/orbit/commits\?since\=$(curl -sH "$AUTH" "$GH_REPO/orbit/orbit/releases" | jq '.[0].crea... | bash |
d_bash_6611 | ---
+++
@@ -5,6 +5,9 @@
set -ex
WP_CLI_BIN_DIR=${WP_CLI_BIN_DIR-/tmp/wp-cli-phar}
+
+# Disable XDebug to speed up Composer and test suites.
+phpenv config-rm xdebug.ini
composer install --no-interaction --prefer-source
| bash |
d_bash_6612 | ---
+++
@@ -12,11 +12,17 @@
cd $(dirname $0)
CURRENT_REF=$(git log -1 --format="%H")
-CHANGELOG_MODIFIED=$(git diff origin/develop...HEAD --name-only | grep $CHANGELOG -q >/dev/null)$?
+CHANGELOG_COMMIT_FLAG=$(git log origin/develop..HEAD --pretty=format:%B | grep '\[no release notes\]' -q >/dev/null)$?
-if [ $... | bash |
d_bash_6613 | ---
+++
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
git clone -b ip-lists https://${GH_REF} ip-lists
+rm ip-lists/*.txt
mv result/* ip-lists
cd ip-lists
git config user.name $GIT_USER_NAME | bash |
d_bash_6614 | ---
+++
@@ -1,4 +1,11 @@
#!/bin/sh
-
-rm /usr/local/bin/rethinkdb
-rm -r /usr/local/share/rethinkdb
+rm -v /usr/local/bin/rethinkdb
+rm -v /usr/local/bin/rethinkdb-dump
+rm -v /usr/local/bin/rethinkdb-dump.py
+rm -v /usr/local/bin/rethinkdb-restore
+rm -v /usr/local/bin/rethinkdb-restore.py
+rm -v /usr/local/bin/ret... | bash |
d_bash_6615 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
-
+
+# 'grep' returns with 0 if there was a match
git show --name-only | grep "(ingraph-compiler|opencypher-report)/"
-[ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" -a $? -ne 0 ]
+# we only build on Travis if we are on the master branch, it is not a pull requ... | bash |
d_bash_6616 | ---
+++
@@ -14,7 +14,7 @@
export LD_LIBRARY_PATH="/home/UA/rarutter/lib:/home/UA/tcarman2/boost_1_55_0/stage/lib:$LD_LIBRARY_PATH"
echo "Fixing jsoncpp library name in Makefile..."
-sed -e 's/\<ljson\>/ljson_linux-gcc-4.4.7_libmt/g' Makefile > Makefile.tmp && mv Makefile.tmp Makefile
+sed -e 's/\<ljsoncpp\>/ljson... | bash |
d_bash_6617 | ---
+++
@@ -1,11 +1,12 @@
#!/bin/bash -xe
# fix default umask of 0002 for hadoop data dir errors
-# export python-driver cython suppression env vars to all users (`sudo pip install ..` needs root to have this env, too)
-sudo sh -c 'cat << EOF >> /etc/profile
-umask 0022
-export CASS_DRIVER_NO_CYTHON="true"
-expor... | bash |
d_bash_6618 | ---
+++
@@ -5,11 +5,10 @@
set -o nounset
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-TOOLS="$DIR/tools"
-LOCAL_VERSION=`$TOOLS/jq -r .reekwest.new $DIR/version.json`
+LOCAL_VERSION=`jq -r .reekwest.new $DIR/version.json`
-BINTRAY_VERSION=`curl -s https://bintray.com/api/v1/packages/reekwest/maven... | bash |
d_bash_6619 | ---
+++
@@ -21,4 +21,4 @@
# Start MariaDB
echo "Starting MariaDB..."
-exec /usr/bin/mysqld_safe
+exec mysqld | bash |
d_bash_6620 | ---
+++
@@ -12,7 +12,7 @@
mkdir -p "${BOOTSTRAP_CACHE}" #required to generate hermes files
${BOOTSTRAP_REPOSITORY}/bootstrap/scripts/getPharoVM.sh 61
-wget https://github.com/guillep/PharoBootstrap/releases/download/v1.4.1/bootstrapImage.zip
+wget https://github.com/guillep/PharoBootstrap/releases/download/v1.5.0... | bash |
d_bash_6621 | ---
+++
@@ -1,31 +1,81 @@
set -e
-# Build
-nikola build
+REPO=punchagan/mumbaiultimate.in
-# Exit if building on a pull request
-if [[ $TRAVIS_PULL_REQUEST != 'false' ]] ; then exit 0; fi
+# Run the build command and get rid of everything else.
+function build_html() {
+ # Build
+ nikola build
+
+ ## Re... | bash |
d_bash_6622 | ---
+++
@@ -7,4 +7,9 @@
alias l="gls -lAh --color"
alias ll="gls -l --color"
alias la='gls -A --color'
+else
+ alias ls="ls --color=auto"
+ alias l="ls -lAh --color=auto"
+ alias ll="ls -l --color=auto"
+ alias la='ls -A --color=auto'
fi | bash |
d_bash_6623 | ---
+++
@@ -7,17 +7,20 @@
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
-# Aliases (compatible with Rails 2)
+# Aliases (Compatible with Rails 2)
alias rc='_rails-command console'
-alias rd='_rails-command destroy'
-alias rdb='_rails-command dbconsole'
-alias rdbm='rake db:migrate db:test:clone'
+alias rdc='_rai... | bash |
d_bash_6624 | ---
+++
@@ -8,4 +8,6 @@
cat stdout.tmp
exit 2
)
+) && (
+ BUILD_MODE=Debug ./sh/build.sh
) | bash |
d_bash_6625 | ---
+++
@@ -12,10 +12,19 @@
TEST_CONFIG_FILE="./corly/dao/base/Config2.xml"
CONFIG_FILE="./corly/dao/base/Config.xml"
MAIL_ADDRESS="muller@redhat.com"
-if [ ! -z "$1" ]
-then
- MAIL_ADDRESS=$1
-fi
+while getopts ":a:f:" opt; do
+ case $opt in
+ a)
+ MAIL_ADDRESS=$OPTARG
+ ;;
+ f)
+ TEST_CONFIG_F... | bash |
d_bash_6626 | ---
+++
@@ -18,13 +18,13 @@
export GPG_TTY=$(tty)
-mvn clean deploy -P release -DskipTests \
- --settings .travis.settings.xml \
+#mvn clean deploy -P release -DskipTests \
+# --settings .travis.settings.xml \
+# -Dgpg.executable=gpg2 \
+# -Dgpg.passphrase=$PASSPHRASE
+
+mvn package org.apache.maven.... | bash |
d_bash_6627 | ---
+++
@@ -1,16 +1,14 @@
#!/bin/bash -xue
-function is_centos {
- [[ -f /etc/centos-release ]]
-}
+function common {
+ source jenkins/openstack-ci-scripts/jenkins/distro-utils.sh
-function is_deb {
- [[ -f /etc/debian_version ]]
-}
-
-function common {
if is_centos; then
sudo yum install ... | bash |
d_bash_6628 | ---
+++
@@ -1,17 +1,15 @@
#!/bin/bash -eux
PACKAGES="
-rabbitmq-server
wget
"
# Install corosync with pacemaker
apt-get -y install $PACKAGES
-# FIXME(bogdando) remove after the rabbitmq-server v3.5.7 released and got to the UCA
-wget https://raw.githubusercontent.com/rabbitmq/rabbitmq-server/stable/scripts/... | bash |
d_bash_6629 | ---
+++
@@ -13,9 +13,9 @@
mkdir openssl-prefix
pushd openssl-redox
- ./Configure no-shared no-dgram redox-x86_64 --prefix="$PWD/../openssl-prefix"
+ ./Configure no-shared no-dgram redox-x86_64 --prefix="/"
make -j"$(nproc)"
- make install
+ make DESTDIR="$PWD/../openssl-prefix" install
... | bash |
d_bash_6630 | ---
+++
@@ -5,12 +5,12 @@
[ -z "${GITHUB_PAT}" ] && exit 0
[ "${TRAVIS_BRANCH}" != "master" ] && exit 0
-git config --global user.email "xie@yihui.name"
-git config --global user.name "Yihui Xie"
+git config --global user.email "apawlows@vols.utk.edu"
+git config --global user.name "Alex Pawlowski"
-git clone -... | bash |
d_bash_6631 | ---
+++
@@ -1,8 +1,6 @@
# Regenerates Lyft project from current directory
function re() {
export ALLOW_UNSUPPORTED_XCODE=1
- gr
- make update_dependencies
- cd -
+ make -C $(git rev-parse --show-toplevel) update_dependencies
}
| bash |
d_bash_6632 | ---
+++
@@ -4,6 +4,7 @@
PROJECT_PATH=$BITRISE_PROJECT_PATH
SCHEME=$BITRISE_SCHEME
CLEAN_BUILD="clean"
+GENERATE_CODE_COVERAGE_FILES="no"
if [ ! -z "${project_path}" ] ; then
PROJECT_PATH="${project_path}"
@@ -17,6 +18,10 @@
CLEAN_BUILD=""
fi
+if [ "${generate_code_coverage_files}" == "yes" ] ; then
+ GEN... | bash |
d_bash_6633 | ---
+++
@@ -9,7 +9,7 @@
echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.12%2B7/OpenJDK11U-jdk_x64_linux_hotspot_11.0.12_7.tar.gz"
;;
java17)
- echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk17-2021-09-01-12-34-beta/OpenJDK17-jdk_x64_linux_hotspot_20... | bash |
d_bash_6634 | ---
+++
@@ -14,10 +14,10 @@
echo "$1" >&2
}
-# Log message to stderr if verbose=yes.
+# Log message to stderr if VERBOSE=yes.
# $1: message
debug() {
- if [ "$verbose" == 'yes' ]; then
+ if [ "$VERBOSE" == 'yes' ]; then
echo "DEBUG: $1" >&2
fi
} | bash |
d_bash_6635 | ---
+++
@@ -3,8 +3,13 @@
equals_var() {
declare -p $1 >/dev/null 2>&1 || return 1
declare -p $2 >/dev/null 2>&1 || return 1
- declare -n equals_var__left=$1
- declare -n equals_var__right=$2
+ if true || [[ ${BASH_VERSINFO[0]} -lt 4 ]] || [[ ${BASH_VERSINFO[0]} == 4 && ${BASH_VERSINFO[1]} -lt 3 ]]; then
+ ... | bash |
d_bash_6636 | ---
+++
@@ -2,3 +2,5 @@
# export GEM_HOME=$HOME/.gem
# export GEM_PATH=$HOME/.gem
+
+export BUNDLE_JOBS=100 | bash |
d_bash_6637 | ---
+++
@@ -27,9 +27,9 @@
# Print the dart VM version to the logs
dart --version
-#./analyze.sh
-node_modules/jasmine-node/bin/jasmine-node playback_middleware/spec/ &&
-node "node_modules/karma/bin/karma" start karma.conf \
- --reporters=junit,dots --port=8765 --runner-port=8766 \
- --browsers=ChromeCanary,Chr... | bash |
d_bash_6638 | ---
+++
@@ -1,15 +1,59 @@
-#!/bin/sh
+#!/usr/bin/env bash
+#---------------------------------------------------------------------------
+# Copyright 2011-2012 The Open Source Electronic Health Record Agent
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in com... | bash |
d_bash_6639 | ---
+++
@@ -22,6 +22,7 @@
CONTENT_BASE=$APP_BASE/content
mkdir $CONTENT_BASE
mkdir $CONTENT_BASE/{pdfs,jp2,tv-thumbnails}
+chmod -R g+w $CONTENT_BASE
| bash |
d_bash_6640 | ---
+++
@@ -4,13 +4,9 @@
echo 'Heroku Registry dockercfg generator'
-: "${HEROKU_API_KEY:?Need to set HEROKU_API_KEY}"
+: "${HEROKU_API_KEY:?Need to set your HEROKU_API_KEY}"
-# fetching Heroku Docker login
-echo "Logging into Heroku Container Registry"
-docker login --username=_ --password="${HEROKU_API_KEY}"... | bash |
d_bash_6641 | ---
+++
@@ -8,6 +8,8 @@
projname="${1}"
destdir="${2}"
+
+[[ $# -eq 2 ]] || { usage; exit 1; }
[ -z "${projname}" ] && { echo "No project name given"; usage; exit 2; }
| bash |
d_bash_6642 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/bash
server_url=${1:-http://localhost:8000}
+mkdir -p /opt/boxprover/log
echo "var SERVER_URL = '$server_url'" > /opt/boxprover/frontend/config.js
/opt/boxprover/boxprover \
--twelf-server=/opt/boxprover/twelf-server \ | bash |
d_bash_6643 | ---
+++
@@ -1,3 +1,10 @@
+# Put /usr/local/bin in the path (it's not necessarily there by default)
+if grep -q '/usr/local/bin' <<< "$PATH"; then
+ : #already in path
+else
+ export PATH=/usr/local/bin:"$PATH"
+fi
+
#Outdated leaf packages (ones I installed, not including dependencies)
alias brew-outdated-leaves... | bash |
d_bash_6644 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
mkdir -p ${OPENSHIFT_DATA_DIR}backups
-timestamp=$( date +%T )
+timestamp=$( date +%D )
mysqldump --host=${OPENSHIFT_MYSQL_DB_HOST} --port=${OPENSHIFT_MYSQL_DB_PORT} --user=${OPENSHIFT_MYSQL_DB_USERNAME} --password=${OPENSHIFT_MYSQL_DB_PASSWORD} beer > ${OPENSHIFT_DATA_DIR}backu... | bash |
d_bash_6645 | ---
+++
@@ -10,18 +10,20 @@
mkdir -p $TMP/lib
mkdir -p $TMP/native/usr/bin
mkdir -p $TMP/native/usr/sbin
+ mkdir -p $TMP/usr/bin
+ mkdir -p $TMP/usr/sbin
# Create /native symlinks for content in src/symlinks.txt
SYMLINKS=$(cat ./src/symlinks.txt)
for binary in $SYMLINKS; do
- ln -s /native$... | bash |
d_bash_6646 | ---
+++
@@ -10,7 +10,7 @@
echo "Installing requests ..."
REQUESTS_DIR=`mktemp -d`
-wget --no-check-certificate https://github.com/kennethreitz/requests/tarball/v2.8.1 -O - | tar xz -C $REQUESTS_DIR
+curl -Lk https://github.com/kennethreitz/requests/tarball/v2.8.1 -o - | tar xz -C $REQUESTS_DIR
pushd .
cd $REQUE... | bash |
d_bash_6647 | ---
+++
@@ -22,14 +22,13 @@
export CC=clang
fi
-# i - Vim's smart case
+# i - Vim's smart case
# j.5 - Center search results
-# K - Quit on CTRL-C
-# M - Longer prompt
-# R - output colors correctly
-# X - Don't send clear screen signal
-# +Gg - Show percentage (could cause issues with long files)
-e... | bash |
d_bash_6648 | ---
+++
@@ -1,18 +1,18 @@
#!/bin/bash
-TEST_JDK=${TEST_JDK:=8}
+TEST_JDK=${TEST_JDK:=11}
X_BRANCH=${TRAVIS_BRANCH:-${CIRCLE_BRANCH:-'master'}}
X_PULL_REQUEST=${TRAVIS_PULL_REQUEST:-false}
## handle github variables
[[ $GITHUB_REF ]] && X_BRANCH=$(echo $GITHUB_REF | awk '{n=split($1,A,"/"); print A[n]}')
[[ $GIT... | bash |
d_bash_6649 | ---
+++
@@ -15,4 +15,5 @@
fi
echo "Running command: '${CMD}${ARGS:+ $ARGS}'"
+umask "${TRIPLEO_KOLLA_UMASK:-0022}"
exec ${CMD} ${ARGS} | bash |
d_bash_6650 | ---
+++
@@ -4,4 +4,4 @@
if [[ -z "$LINES" ]]; then
LINES=10
fi
-ssh root@myplaceonline.com "echo ''; echo ''; echo `date`; echo `date -u`; tail -n $LINES /var/www/html/myplaceonline/log/*`date +'%Y-%m-%d'`*log; echo ''; echo /var/log/nginx/access.log; echo '=============='; echo ''; tail -$LINES /var/log/nginx/a... | bash |
d_bash_6651 | ---
+++
@@ -27,6 +27,7 @@
${INSTALL_DIR}/env/bin/pip install --use-wheel --no-deps --no-index -U --force-reinstall -f ${INSTALL_DIR}/share/wheelhouse -r ${INSTALL_DIR}/share/wheelhouse/requirements.txt > /dev/null 2>&1
# Add symlink
+ mkdir -p /usr/local/bin
ln -s ${INSTALL_DIR}/env/bin/hg /usr/lo... | bash |
d_bash_6652 | ---
+++
@@ -22,6 +22,6 @@
#
if [ -z "$(grep "cgroup_enable=memory quiet" /etc/default/grub)" ]; then
- sed -i '/GRUB_CMDLINE_LINUX_DEFAULT=/c \GRUB_CMDLINE_LINUX_DEFAULT=\"cgroup_enable=memory quiet\"' /etc/default/grub
+ sed -i '/GRUB_CMDLINE_LINUX_DEFAULT=/c \GRUB_CMDLINE_LINUX_DEFAULT=\"cgroup_enable=memory sw... | bash |
d_bash_6653 | ---
+++
@@ -11,4 +11,8 @@
# The following packages are needed by glue-geospatial and are out of date in defaults
python sync.py --package rasterio --source conda-forge --destination glueviz
python sync.py --package snuggs --source conda-forge --destination glueviz
+python sync.py --package libgdal --source conda-f... | bash |
d_bash_6654 | ---
+++
@@ -4,10 +4,17 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
+BOOST_VERSION="1.71.0"
+
+BOOST_VERSION_UNDERSCORE="${BOOST_VERSION//./_}"
+BOOST_FILE="boost_${BOOST_VERSION_UNDERSCORE}.tar.bz2"
+BOOST_TAR_URL="https://boostorg... | bash |
d_bash_6655 | ---
+++
@@ -3,7 +3,7 @@
path=$HOME/Downloads/$file
case `file -b --mime-type "$path"` in
application/zip) ;;
- *) rm -f "$path" ;;
+ *) touch -ch -r /etc/epoch "$path" ;;
esac
pass web/com.digitalblasphemy \
| tr '\n' '\t' \ | bash |
d_bash_6656 | ---
+++
@@ -20,12 +20,14 @@
echo Building and Starting Concierge Docker Image...
cd concierge-wlpcfg
../gradlew buildDockerImage
+../gradlew stopCurrentContainer
../gradlew removeCurrentContainer
../gradlew startNewContainer
echo Building and Starting Room Docker Image...
cd ../room-wlpcfg
../gradlew buildD... | bash |
d_bash_6657 | ---
+++
@@ -17,6 +17,10 @@
docker run -p 6060:6060 --link db:postgres -d --name clair arminc/clair-local-scan:v2.0.0
docker ps
docker build -t clair_singularity .
+
+ # Clear out any old .pyc from the local tests
+ find . -name *.pyc -delete
+
docker run -v $TRAVIS_BUILD_DIR:/app --privilege... | bash |
d_bash_6658 | ---
+++
@@ -16,6 +16,12 @@
tearDown(){
rm -rf ${testDir}
+ }
+
+ @test
+ testGetCommandsByAnnotation[@class](){
+ ${assertEquals} $(CommandValidator
+ getCommandsByAnnotation ${testFile} @class) Test
}
@test | bash |
d_bash_6659 | ---
+++
@@ -7,11 +7,19 @@
# n98-magerun basic command completion
_n98_magerun_get_command_list () {
- n98-magerun.phar --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z\-:]+/ { print $1 }'
+ $_comp_command1 --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z\-:]+/ { print $1 }'
}
+
_n98_mageru... | bash |
d_bash_6660 | ---
+++
@@ -2,4 +2,6 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+cd $OWD
+
eval "${DIR}/python3 ${DIR}/../../appimager/appimager" "$@" | bash |
d_bash_6661 | ---
+++
@@ -4,8 +4,8 @@
cd frontend
npm install
typings install
-./node_modules/.bin/jspm cc
-./node_modules/.bin/jspm install -y
+jspm cc
+jspm install -y
cd ../backend
npm install | bash |
d_bash_6662 | ---
+++
@@ -5,7 +5,7 @@
#
# You can specify the PHP Version by setting the Git Branch from https://github.com/php/php-src
-PHP_VERSION_GIT_BRANCH=php-7.1.0RC5
+PHP_VERSION_GIT_BRANCH=PHP-7.1.0
echo "Build PHP Binary from current branch '$PHP_VERSION_GIT_BRANCH' on https://github.com/php/php-src"
| bash |
d_bash_6663 | ---
+++
@@ -6,7 +6,7 @@
# Poll server up to 2 min for healthiness before proceeding.
for i in {1..120};
do
- docker inspect -f "{{.State.Health.Status}}" interop-server | grep healthy && exit 0 || sleep 1;
+ docker inspect -f "{{.State.Health.Status}}" interop-server | grep "^healthy$" && exit 0 || sleep 1;
... | bash |
d_bash_6664 | ---
+++
@@ -9,3 +9,4 @@
source ~/.venv/bin/activate
tox
+python setup.py bdist_wheel | bash |
d_bash_6665 | ---
+++
@@ -8,6 +8,6 @@
source /home/zookeeper/.profile
-/opt/zookeeper/zookeeper-<%= node[:zookeeper][:version] %>/bin/zkCleanup.sh <%= node[:zookeeper][:dataDir] %> <%= node[:zookeeper][:snapshotDir] %> <%= node[:zookeeper][:snapshotNum] %>
+<%= node[:zookeeper][:installDir] %>/zookeeper-<%= node[:zookeeper][... | bash |
d_bash_6666 | ---
+++
@@ -23,7 +23,13 @@
php composer.phar install
php artisan view:clear
-php artisan migrate --force
+
+# e.g. OSU_SKIP_DB_MIGRATION=1 ./build.sh to bypass running migrations
+skip_db_migration=${OSU_SKIP_DB_MIGRATION:-}
+if [ -z "$skip_db_migration" ]; then
+ php artisan migrate --force
+fi
+
php artisan l... | bash |
d_bash_6667 | ---
+++
@@ -3,7 +3,7 @@
case "$1" in
java8)
- echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u272-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u272b10.tar.gz"
+ echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u275-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u275b... | bash |
d_bash_6668 | ---
+++
@@ -10,4 +10,4 @@
assume-role ${ROLE_ARN}
set -x
-python export_slow_query_logs.py
+python export_slow_query_logs.py --environment ${ENVIRONMENT} | bash |
d_bash_6669 | ---
+++
@@ -7,6 +7,7 @@
# is master.
git merge --no-commit origin/master || git merge --abort
+git clean -fdx
bundle install --path "/home/jenkins/bundles/${JOB_NAME}" --deployment --without=development
export GOVUK_APP_DOMAIN=dev.gov.uk
export GOVUK_ASSET_HOST=http://static.dev.gov.uk | bash |
d_bash_6670 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/sh
+PYTHONPATH=../../..:$PYTHONPATH
rm -rf result
# 2D.
./go run cvg2d_200 cvg2d_150 cvg2d_100 cvg2d_50 | bash |
d_bash_6671 | ---
+++
@@ -3,6 +3,6 @@
#
# cleanup.sh
#
-find . -type f -name '*.py[co]' -exec rm -v {} \;
-find . -type f -name '*~' -exec rm -v {} \;
-find . -type d -name '__pycache__' -exec rmdir -v {} \;
+find . -type f -name '*.py[co]' -delete
+find . -type f -name '*~' -delete
+find . -type d -name '__pycache__' -delete | bash |
d_bash_6672 | ---
+++
@@ -11,7 +11,6 @@
install_cask alfred
install_cask atom
install_cask 1password
-install_cask authy
install_cask keyboard-maestro
install_cask flux
# Install additional apps | bash |
d_bash_6673 | ---
+++
@@ -3,7 +3,7 @@
LATEST_DUMP=$(aws s3 ls s3://digitalmarketplace-database-backups | sort | tail -n 1 | awk '{print $4}')
aws s3 cp s3://digitalmarketplace-database-backups/${LATEST_DUMP} ./latest-dump.sql.gz.gpg
gpg2 --batch --import <($DM_CREDENTIALS_REPO/sops-wrapper -d $DM_CREDENTIALS_REPO/gpg/database-b... | bash |
d_bash_6674 | ---
+++
@@ -4,6 +4,6 @@
set -evx
-bundle install --without omnibus_package test pry integration docgen maintenance travis aix bsd linux mac_os_x solaris windows development
+bundle install --without omnibus_package test pry integration docgen maintenance travis aix bsd linux mac_os_x solaris windows
bundle ex... | bash |
d_bash_6675 | ---
+++
@@ -7,3 +7,9 @@
mkdir -p $DashboardsDir
cd $DashboardsDir
git clone git://code.osehra.org/VistA-FOIA.git
+#
+# switch position of two lines to solve problem with Locks.
+#
+sed i.bak -e '82 i\
+ TCOMMIT ;' $HOME/OSEHRA/Dashboards/VistA-FOIA/Packages/Kernel/Routines/ZTLOAD1.m
+sed i.bak -e '84 d' $HOME/OSE... | bash |
d_bash_6676 | ---
+++
@@ -6,6 +6,3 @@
$NIX_BIN_LOCATION/nix-env --upgrade
$NIX_BIN_LOCATION/nix-env -iA nixpkgs.bat nixpkgs.fzf nixpkgs.gitAndTools.delta nixpkgs.neovim nixpkgs.nodePackages.pyright nixpkgs.ripgrep nixpkgs.tmux
fi
-
-echo "Changing shell to zsh"
-sudo chsh -s $(which zsh) $USER | bash |
d_bash_6677 | ---
+++
@@ -1,13 +1,13 @@
#!/bin/bash
set -euo pipefail
-GO_VERSION="1.8.3"
+GO_VERSION="1.9"
export GoInstallDir="/tmp/go$GO_VERSION"
mkdir -p $GoInstallDir
if [ ! -f $GoInstallDir/go/bin/go ]; then
- GO_MD5="32ec5ac6020a0dbae5fadd1ff6dfdaf7"
+ GO_MD5="4577d9ba083ac86de78012c04a2981be"
URL=https://bu... | bash |
d_bash_6678 | ---
+++
@@ -2,10 +2,10 @@
. $HOME/.shrc
-echo "Installing asdf plugins"
+# echo "Installing asdf plugins"
-cut -d' ' -f1 ${HOME}/.tool-versions | xargs -I {} asdf plugin add {}
+# cut -d' ' -f1 ${HOME}/.tool-versions | xargs -I {} asdf plugin add {}
-echo "Installing asdf tools"
+# echo "Installing asdf tool... | bash |
d_bash_6679 | ---
+++
@@ -9,6 +9,6 @@
make unit-tests
-#$HOME/gopath/bin/goveralls -coverprofile=coverage-all.out -service=travis-ci
+$HOME/gopath/bin/goveralls -coverprofile=coverage-all.out -service=travis-ci
exit 0 | bash |
d_bash_6680 | ---
+++
@@ -3,7 +3,7 @@
if [[ $PLATFORM == "Linux" ]]; then
echo "Install vim & git"
- apt install vim git-core
+ apt-get install vim git-core
else
# If brew is already installed
if [[ $(brew &> /dev/null || echo $?) == 1 ]]; then | bash |
d_bash_6681 | ---
+++
@@ -1,9 +1,15 @@
#!/usr/bin/bash
+# extract the plugin name and the version from the given tag name
tag_name=$1
tag_parts=(${tag_name//@/ })
plugin_name_parts=(${tag_parts[0]//-/ })
plugin_name=${plugin_name_parts[1]}
version=${tag_parts[1]}
+# install dependencies
+npm install
+# create minified fi... | bash |
d_bash_6682 | ---
+++
@@ -3,11 +3,20 @@
# Setting correct variables based on the environment we're deploying to
if [[ $TRAVIS_BRANCH == ${DEVELOP_BRANCH} ]]; then
- LATEST_TAG=latest-dev
- ECS_CLUSTER=${AWS_ECS_CLUSTER_STAGING}
+ VERSION=latest-dev
elif [[ $TRAVIS_BRANCH == ${STABLE_BRANCH} ]]; then
- LATEST_TAG=latest-st... | bash |
d_bash_6683 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
# include parent entrypoint script
-source /debian-base.sh
+source /ubuntu-base.sh
# remove old pid before starting
pidFile="/var/run/apache2/apache2.pid" | bash |
d_bash_6684 | ---
+++
@@ -7,7 +7,8 @@
GOAPP_PID=$!
# Connect with ngrok.
-ngrok -log stdout -proto https 8080 > grok.log &
+TMPFILE=`mktemp`
+ngrok -log stdout -proto https 8080 > $TMPFILE &
NGROK_PID=$!
# Wait for ngrok to connect
@@ -19,12 +20,15 @@
cat grok.log | grep "Tunnel established"
# Echo the jobs
+echo
echo... | bash |
d_bash_6685 | ---
+++
@@ -24,8 +24,15 @@
commit_files() {
git stash
- git checkout --orphan gh-pages
- git rm -rf .
+ git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
+ git fetch
+ git ls-remote | grep -i "refs/heads/gh-pages"
+ if [ $? -ne 0 ]; then
+ git checkout --orphan gh-p... | bash |
d_bash_6686 | ---
+++
@@ -7,3 +7,8 @@
# The windowsgui option avoids opening a console.
GOARCH=amd64 go build -ldflags -H=windowsgui -o stardew_rocks.exe
+
+# rcedit can be downloaded from:
+# https://github.com/atom/rcedit/releases
+rcedit.exe stardew_rocks.exe --set-icon ../assets/img/farm.ico
+ | bash |
d_bash_6687 | ---
+++
@@ -10,7 +10,7 @@
echo -e $COL_YELLOW"Setting up your macOS/Linux development environment..."$COL_RESET
echo "------------------------------------------------"
-chmod a+x ./**/*.sh
+chmod a+x **/*.sh
SETUP_SCRIPTS=./setup/*
for file in $SETUP_SCRIPTS; do
@@ -21,8 +21,6 @@
############################... | bash |
d_bash_6688 | ---
+++
@@ -5,7 +5,10 @@
}
function install_centos(){
- sudo yum -y install python-dev libffi-dev python-pip
+ sudo yum -y install python-devel libffi-devel
+ # pip is not in the standard repo
+ yum install epel-release
+ yum install python-pip
}
| bash |
d_bash_6689 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
# Configuration
-sender_email='noreply+zabbix.avatar@flowdock.com'
+sender_email='zabbix.avatar@flowdock.com'
sender_name='Zabbix'
tags='zabbix,monitoring'
| bash |
d_bash_6690 | ---
+++
@@ -1,14 +1,19 @@
# GuestAdditions setup
apt-get -y purge virtualbox-guest-utils
+apt-get -y install dkms
apt-get -y autoremove
-
-apt-get -y install dkms
VBOX_VERSION=$(cat .vbox_version)
VBOX_ISO=VBoxGuestAdditions_$VBOX_VERSION.iso
mount -o loop /home/vagrant/$VBOX_ISO /mnt
-yes|sh /mnt/VBoxLinuxAd... | bash |
d_bash_6691 | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -xe
-if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
+if ( ["$TRAVIS_PULL_REQUEST" == "false"] && ["$TRAVIS_PHP_VERSION" == "7.0"] ); then
if ([ "$TRAVIS_BRANCH" == "master" ]) ; then
composer install -o -q -n
docker login -u ${DOCKER_USER} -p ${DOCKER_P... | bash |
d_bash_6692 | ---
+++
@@ -4,7 +4,7 @@
for test in $CONTROLLER_TESTS
do
if [[ $test =~ ^app/Test/Case/Controller/([[:alpha:]]+)Test\.php$ ]]; then
- app/Console/cake test app Controller/${BASH_REMATCH[1]}
+ app/Console/cake test app Controller/${BASH_REMATCH[1]} --stderr
if [[ "$?" != 0 ]]; then
exit 1
fi
@@ -16,7 +... | bash |
d_bash_6693 | ---
+++
@@ -11,7 +11,7 @@
install="yum install -y"
common="$common emacs-nox.x86_64"
elif [[ $OS = ubuntu20 || $OS = ubuntu18 ]] ; then
- install="apt install -y"
+ install="DEBIAN_FRONTEND=\"noninteractive\" apt install -y"
common="$common emacs lsb-release gnupg"
elif [[ $OS = ubuntu ]] ; then
in... | bash |
d_bash_6694 | ---
+++
@@ -9,7 +9,7 @@
do
BUILD=${ARCHS[$ARCH]}
gox -osarch="linux/$ARCH" -output="$DIR/$ARCH/usr/bin/{{.Dir}}"
- fpm -s dir -t deb -v $1 -n rabbitmq-cli-consumer -a $BUILD $DIR/$ARCH
+ fpm -s dir -t deb -C $DIR/$ARCH -a $BUILD --name rabbitmq-cli-consumer --version $1 --description "Consume RabbitM... | bash |
d_bash_6695 | ---
+++
@@ -1,3 +1,4 @@
alias reload="source ~/.zshrc"
alias s="sparkfile --location ~/Dropbox/Sparkfile"
alias serve="python -m SimpleHTTPServer"
+alias beam="open -a Beamer" | bash |
d_bash_6696 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
-version="20.10.20"
+version="20.10.21"
echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz"; | bash |
d_bash_6697 | ---
+++
@@ -2,6 +2,6 @@
set -e
-cd data-science-ci
+cd cf-demo-testing
nosetests -vs src/python/tests
| bash |
d_bash_6698 | ---
+++
@@ -20,5 +20,5 @@
GOPATH="${SCRIPT_DIR}" go run "${SCRIPT_DIR}/src/alluxio.org/check-docs/main.go"
-cd "${SCRIPT_DIR}"/../../docs && jekyll build
+cd "${SCRIPT_DIR}"/../../docs && jekyll build --trace
| bash |
d_bash_6699 | ---
+++
@@ -1 +1,2 @@
+# Move into build.xml instead
./vendor/bin/phpmd src/ html phpmd.xml --reportfile tmp/phpmd.html | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.