document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_3100 | ---
+++
@@ -16,7 +16,7 @@
git checkout gh-pages &&
(
(
- git checkout master -- doc dist &&
+ git checkout master -- doc dist visualizer &&
git commit -am "Update from master@$(git rev-parse --short master)" &&
git push origin gh-pages
); git checkout -q - | bash |
d_bash_3101 | ---
+++
@@ -4,7 +4,7 @@
# The gocov tool my be obtained with the following command:
# go get github.com/awx/gocov/gocov
#
-# It will be installed it $GOPATH/bin, so ensure that location is in your $PATH.
+# It will be installed to $GOPATH/bin, so ensure that location is in your $PATH.
# Check for gocov.
type... | bash |
d_bash_3102 | ---
+++
@@ -3,7 +3,7 @@
"export DISPLAY=:99.0"
"/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
cd ~/src
- sudo apt-get install chromium-browser
+ sudo aptitude -y -q install unzip chromium-b... | bash |
d_bash_3103 | ---
+++
@@ -7,8 +7,7 @@
git remote set-branches origin '*'
git fetch -v
# Check out an expicit branch to avoid detached HEAD (which prelease complains about)
- # FIXME: This should say 'master' but for now must match PR/test branch
- git checkout prepare-1.0.0
+ git checkout master
pip install zestrele... | bash |
d_bash_3104 | ---
+++
@@ -9,7 +9,7 @@
BASE_DIR=`cd "$BASE_DIR/.." && pwd`
# Create new release directory
-release_name=`date +%Y%d%m-%H%M%S`
+release_name=`date +%Y%m%d-%H%M%S`
release_dir="$APT_REPO_DIR/releases/$release_name"
mkdir -p "$APT_REPO_DIR/releases"
# No -p. We want this to fail if someone else is concurrently c... | bash |
d_bash_3105 | ---
+++
@@ -22,6 +22,6 @@
echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '$TRAVIS_BRANCH'."
else
echo "Deploying snapshot..."
- ./gradlew -PnexusUsername="$nexusUsername" -PnexusPassword="$nexusPassword" :sixpack-java:uploadArchives
+ ./gradlew -PnexusUsername=$nexusUser... | bash |
d_bash_3106 | ---
+++
@@ -14,7 +14,8 @@
df_addr=$(./compile_and_deploy $outdir $DF_path)
echo "DF ADDR"
echo $df_addr
-./compile_and_deploy $outdir $TC_path $tmc_addr $df_addr "'0x0000000000000000000000000000000000000000'" $my_address
+./compile_and_deploy $outdir $TC_path "'$tmc_addr'" "'$df_addr'" "'0x000000000000000000000000... | bash |
d_bash_3107 | ---
+++
@@ -24,7 +24,7 @@
"
-if (( $# != 1 )) ; then
+if (( $# != 2 )) ; then
echo "$G_SYNOPSIS"
exit 1
fi | bash |
d_bash_3108 | ---
+++
@@ -22,6 +22,9 @@
bazel build //... && rc=$? || rc=$?
+# Clear test.xml so that we don't pick up old results.
+find -L bazel-testlogs -name 'test.xml' -type f -exec rm '{}' +
+
if [[ "${rc}" == 0 ]]; then
bazel test --test_output=errors //... && rc=$? || rc=$?
fi | bash |
d_bash_3109 | ---
+++
@@ -20,7 +20,7 @@
echo "Did not find $l"
done
-if [ "x$libtoolize" == "x" ]; then
+if [ "x$libtoolize" = "x" ]; then
echo "Can't find libtoolize on your system"
exit 1
fi | bash |
d_bash_3110 | ---
+++
@@ -2,4 +2,3 @@
# For some reason this crashes terminals when uncommented
eval "$(/usr/local/bin/pyenv init -)"
-pyenv virtualenvwrapper | bash |
d_bash_3111 | ---
+++
@@ -15,3 +15,6 @@
make -j$CPU_COUNT uhdm/build
make -j$CPU_COUNT uhdm/verilator/build
make -j$CPU_COUNT ENABLE_READLINE=0 yosys/yosys
+
+# Mostly verifying that libreadline is indeed not linked
+ldd yosys/yosys | bash |
d_bash_3112 | ---
+++
@@ -14,7 +14,8 @@
}\n\
}\n" > /code/retail/local_settings.py
-#python manage.py makemigrations business_interaction customer location trouble physical_object supplier_partner resource human_resources product pricing sale
-python manage.py migrate --run-syncdb
+python manage.py migrate auth contenttype... | bash |
d_bash_3113 | ---
+++
@@ -10,7 +10,7 @@
;;
Darwin)
- fetch_tar "http://ronie.cl/files/lowcode/osx/cog_macos64x64_pharo.cog.spur.lowcode_201707112009.tar" cog_macos64x64_pharo.cog.spur.lowcode_201707112009.tar || exit 1
+ fetch_targz "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_mac... | bash |
d_bash_3114 | ---
+++
@@ -3,5 +3,5 @@
set -o pipefail
pushd rider
-./gradlew buildBackend
-./gradlew buildPlugin
+./gradlew buildBackend --info
+./gradlew buildPlugin --info | bash |
d_bash_3115 | ---
+++
@@ -7,5 +7,5 @@
fi
rm -Rf $KIRIN_HOME/core/ios/KirinKit/build 2>/dev/null
for conf in $configuration ; do
- node $KIRIN_HOME/build.js --ios --ios-configuration $conf --no-js-build --tests none
+ env node $KIRIN_HOME/build.js --ios --ios-configuration $conf --no-js-build --tests none
done | bash |
d_bash_3116 | ---
+++
@@ -15,7 +15,7 @@
cmd_start() {
echo "Starting MCF Agent ..."
./executecommand.sh org.apache.manifoldcf.core.LockClean
- nohup "$JAVA_HOME/bin/java" $OPTIONS org.apache.manifoldcf.agents.AgentRun &
+ nohup "$JAVA_HOME/bin/java" $OPTIONS org.apache.manifoldcf.agents.AgentRun > /opt/datafari/lo... | bash |
d_bash_3117 | ---
+++
@@ -3,4 +3,12 @@
# Because I never remember the '-s' parameter
alias ssh-agent-cyg='eval $(ssh-agent -s)'
+# Add alias for Sublime Text
+SublRegPath='/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/Sublime Text 2_is1/InstallLocation'
+SublBinName='sublime_text.exe'
+i... | bash |
d_bash_3118 | ---
+++
@@ -17,7 +17,7 @@
function dock-switch() {
if [ $(uname) = "Darwin" ]; then
-
+
if [ $1 = 3d ] ; then
defaults write com.apple.dock no-glass -boolean NO
killall Dock
@@ -28,10 +28,10 @@
else
echo "usage:"
- echo "dock-switch... | bash |
d_bash_3119 | ---
+++
@@ -10,7 +10,16 @@
# Utility (APRUTIL) library.
# """
-_koopa_assert_is_installed apr-config apu-config
+if _koopa_is_fedora
+then
+ apr_config="/usr/bin/apr-1-config"
+ apu_config="/usr/bin/apu-1-config"
+else
+ apr_config="apr-config"
+ apu_config="apu-config"
+fi
+
+_koopa_assert_is_install... | bash |
d_bash_3120 | ---
+++
@@ -13,4 +13,5 @@
echo "Starting server..."
fi
+bundle exec rails db:migrate
bundle exec --keep-file-descriptors puma -C config/puma.rb | bash |
d_bash_3121 | ---
+++
@@ -11,6 +11,6 @@
esac
echo "Downloading s3-secrets-helper..."
-curl -Lsf -o /usr/local/bin/s3secrets-helper \
+sudo curl -Lsf -o /usr/local/bin/s3secrets-helper \
"https://github.com/buildkite/elastic-ci-stack-s3-secrets-hooks/releases/download/v${S3_SECRETS_HELPER_VERSION}/s3secrets-helper-linux-${ARC... | bash |
d_bash_3122 | ---
+++
@@ -26,6 +26,6 @@
# Run the job from the directory where it was launched (default):
# The job command(s):
-~/anaconda/bin/conda activate husc
+source activate husc
husc illum -v
| bash |
d_bash_3123 | ---
+++
@@ -1,6 +1,8 @@
+set -e
echo "New version number (with out the v)"
read version
git tag "v$version"
git push origin "v$version"
-
-# todo: https://cli.github.com/manual/gh_release_create
+echo "Tag pushed, whats your title/description for the release?"
+read title
+gh release create "v$version" --title "$... | bash |
d_bash_3124 | ---
+++
@@ -5,7 +5,7 @@
cp -fr build/reports/api ./api
git add api
git commit -a -m "publish reports to gh-pages"
-git push -u origin master
+git push -u origin gh-pages
git checkout master
| bash |
d_bash_3125 | ---
+++
@@ -1,5 +1,8 @@
alias dotfiles='. $DOTFILES_HOME/include.sh'
alias dfs='dotfiles'
+
+alias prettify_json="node -e \"console.log(JSON.stringify(JSON.parse(require('fs').
+readFileSync(0, 'utf-8')), null, 2))"\"
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(his... | bash |
d_bash_3126 | ---
+++
@@ -15,7 +15,9 @@
do
echo ">> Starting $test"
./bin/$test
- codecov > /dev/null
+ find . -name "*.cpp" -exec gcov -p -s ${PWD} {} \;
+ codecov
+ #codecov > /dev/null
echo "<< Finished $test"
done
| bash |
d_bash_3127 | ---
+++
@@ -1,6 +1,6 @@
export NVM_VERSION=0.36.0
export NODE_VERSION=14.7.0
-export NPM_VERSION=6.14.7
+export NPM_VERSION=6.14.8
export RUBY_VERSION=2.6.0
export COCOAPODS_VERSION=1.10.0
export GRADLE_VERSION=6.7 | bash |
d_bash_3128 | ---
+++
@@ -4,8 +4,8 @@
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
-EXIST_NIGHTLY_SRC=/opt/exist-nightly-build
-EXIST_NIGHTLY_DEST=/data/www/static.adamretter.org.uk/exist-nightly
+EXIST_NIGHTLY_SRC=/usr/local/exist-nightly-build
+EXIST_NIGHTLY_DEST=/www-data/static.adamretter.org.uk/exist-nightly
if [ ! -d ... | bash |
d_bash_3129 | ---
+++
@@ -7,7 +7,7 @@
S3_BUCKET_PATH="{{ bucket_backup_dir }}"
echo "Dumping mongodb database..."
-$MONGODUMP_PATH -d kernel-ci --dumpDbUsersAndRoles -o /tmp/mongodump > /dev/null
+$MONGODUMP_PATH --quiet -d kernel-ci --dumpDbUsersAndRoles -o /tmp/mongodump > /dev/null
echo "Creating compressed archive..."
... | bash |
d_bash_3130 | ---
+++
@@ -7,7 +7,7 @@
#
# Run ./set-defaults.sh and you'll be good to go.
-# Disable press-and-hold for keys in favor of key repeat
+# Disable press-and-hold for keys in favor of key repeat.
defaults write -g ApplePressAndHoldEnabled -bool false
# Use AirDrop over every interface. srsly this should be a def... | bash |
d_bash_3131 | ---
+++
@@ -7,6 +7,9 @@
sudo sh -c "echo '$docker_opts' >> /etc/default/docker"
cat /etc/default/docker
+
+ # Edit pom files to have correct version syntax
+ for i in $(find . -name pom.xml -not -path './.rvm*'); do sed -i "s/\${revision}/0/g" $i; done
;;
| bash |
d_bash_3132 | ---
+++
@@ -10,12 +10,14 @@
gem search bits_service_client --all --pre --no-verbose \
| sed 's/bits_service_client (\([^,]*\).*/\1/' \
)
-sed \
- -i capi-release/src/cloud_controller_ng/Gemfile.lock \
- -e "s/bits_service_client .*/bits_service_client ($prerelease_version)/"
-sed \
- -i capi-release/src/clo... | bash |
d_bash_3133 | ---
+++
@@ -22,8 +22,8 @@
echo "[$CLUSTER_NODE_NAME] - stopping and removing node..."
(
- # docker-machine stop "$CLUSTER_NODE_NAME" > /dev/null 2>&1
- docker-machine rm --force -y "$CLUSTER_NODE_NAME" > /dev/null 2>&1
+
+ docker-machine rm --force -y "$CLUSTER_NODE_NAME" > /dev/null
echo "[$CLUSTER_NOD... | bash |
d_bash_3134 | ---
+++
@@ -16,7 +16,7 @@
then
./switch_build.sh server
autoreconf --install
- ./configure --enable-packaging --enable-install_initd --with-mountvhd LDFLAGS="$LDFLAGS"
+ ./configure --enable-packaging --enable-install_initd --with-mountvhd LDFLAGS="$LDFLAGS -flto" CPPFLAGS="-flto"
touch build_server_debian_ok
... | bash |
d_bash_3135 | ---
+++
@@ -1,17 +1,36 @@
+function download() {
+ if hash curl 2>/dev/null; then
+ curl -L -o $2 $1
+ elif hash wget 2>/dev/null; then
+ wget -o $2 $1
+ else
+ echo >&2 "No supported download tool installed. Please get either wget or curl."
+ exit
+ fi
+}
+
+function installsdk() {
+ PROXY_ARGS=""
+... | bash |
d_bash_3136 | ---
+++
@@ -11,5 +11,5 @@
done
mkdir -p $DIR/.vim/bundle
-git clone https://github.com/gmarik/vundle $DIR.vim/bundle/vundle
+git clone https://github.com/gmarik/vundle $DIR/vim/bundle/vundle
vim -C +PluginInstall +qa! | bash |
d_bash_3137 | ---
+++
@@ -1,5 +1,12 @@
#!/bin/bash
-CONTAINER_PID=$(docker inspect --format '{{if .State.Running}}{{.State.Pid}}{{end}}' $1)
+
+if [ -f /usr/bin/rce ]; then
+ ENGINE=rce
+else
+ ENGINE=docker
+fi
+
+CONTAINER_PID=$($ENGINE inspect --format '{{if .State.Running}}{{.State.Pid}}{{end}}' $1)
if [ -z $CONTAINER_PID ];... | bash |
d_bash_3138 | ---
+++
@@ -8,7 +8,7 @@
a=$(print -Pn "%40>...>$a" | tr -d "\n")
case $TERM in
- screen)
+ screen|screen-256color)
print -Pn "\ek$a:$3\e\\" # screen title (in ^A")
;;
xterm*|rxvt) | bash |
d_bash_3139 | ---
+++
@@ -1,8 +1,10 @@
#!/bin/sh
+. tests/bot-ci/scripts/common/main.sh
+VIM=$PWD/tests/bot-ci/deps/vim/tip-$PYTHON_VERSION/vim
FAILED=0
-for script in tests/*.vim ; do
- if ! vim -u NONE -S $script || test -f message.fail ; then
- echo "Failed script $script" >&2
+for script in tests/test_*.vim ; do
+ if ! $VIM... | bash |
d_bash_3140 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/bell-sw/Liberica/releases/download/17.0.5+8/bellsoft-jdk17.0.5+8-linux-amd64.tar.gz"
;;
java19)
- echo "https://github.com/bell-sw/Liberica/releases/download/19+37/bellsoft-jdk19+37-linux-amd64.tar.gz"
+ echo "https://github.com/bell-sw/Liberica/releases/... | bash |
d_bash_3141 | ---
+++
@@ -4,6 +4,8 @@
cd extension
-rm ../dist/extension.zip
+if [ -f "../dist/extension.zip" ]; then
+ rm ../dist/extension.zip
+fi
zip -r ../dist/extension.zip * | bash |
d_bash_3142 | ---
+++
@@ -1,20 +1,24 @@
-#!/bin/sh
+#!/bin/bash
# Install Selenium server, http://www.seleniumhq.org
#
-# You can either add this here, or configure them on the environment tab of your
-# project settings.
-SELENIUM_VERSION="2.45.0"
-SELENIUM_PORT="4444"
-SELENIUM_OPTIONS=""
+# Add at least the following environm... | bash |
d_bash_3143 | ---
+++
@@ -11,6 +11,7 @@
fi
if [ -n "$PACKAGE_DIR" -a -d "$PACKAGE_DIR" ]; then
+ /usr/bin/npm config set prefix "$NODE_PATH"
cd $PACKAGE_DIR
if [ -f "$PACKAGE_DIR/yarn.lock" ]; then
/usr/bin/yarn install | bash |
d_bash_3144 | ---
+++
@@ -4,12 +4,12 @@
echo "Installing git"
sudo apt-add-repository -y ppa:git-core/ppa
-sudo apt-get update
+sudo apt-get -qq update
sudo apt-get -y install git
echo "Installing ansible"
sudo apt-add-repository -y ppa:ansible/ansible
-sudo apt-get update
+sudo apt-get -qq update
sudo apt-get install -y... | bash |
d_bash_3145 | ---
+++
@@ -41,8 +41,8 @@
export GEM_PATH="$gem_dir:$gem_home:$gem_root"
export PS1="$(basename "$root")> $PS1"
- if [[ ${#command[@]} -gt 0 ]]; then eval $command
- else exec $SHELL
+ if [[ -n "${command[@]}" ]]; then eval $command
+ else exec $... | bash |
d_bash_3146 | ---
+++
@@ -1,5 +1,25 @@
#!/bin/bash
+
+WAIT_SERVICE_READY=10
+
+function check_service(){
+ status=$($WORKDIR/control status)
+ echo $status | grep -q "stoped"
+ if [ $? -eq 0 ] ; then
+ return 1
+ else
+ return 0
+ fi
+}
+
tar -zxf $PACKDIR/$PACKFILE -C $WORKDIR
cp $CONFIGDIR/$CONFIGFILE $WORKDIR
$WO... | bash |
d_bash_3147 | ---
+++
@@ -2,7 +2,7 @@
apt-get update -qq 1> /dev/null
# Dev requirements
-apt-get install -qq -y python-flask python-cherrypy3 1> /dev/null
+apt-get install -qq -y python-flask python-cherrypy3 python-objgraph 1> /dev/null
# Build requirements
apt-get install -qq -y devscripts debhelper python-all python-se... | bash |
d_bash_3148 | ---
+++
@@ -20,7 +20,7 @@
export HOMER_PATH=$HOMER_PREFIX/share/homer
# Load the framework
-for filepath in `ls $HOMER_PATH/profile.d/`; do
+for filepath in `find $HOMER_PATH/profile.d -type f`; do
source "$filepath"
done
| bash |
d_bash_3149 | ---
+++
@@ -3,7 +3,6 @@
alias rm=trash # brew install trash
# Git
-alias git=hub
alias gd='git diff'
alias gu='gitup'
| bash |
d_bash_3150 | ---
+++
@@ -11,5 +11,9 @@
OUTPUT="$(curl -s https://api.github.com/repos/tidusjar/Ombi/releases| grep browser_download_url | head -n 1 | cut -d '"' -f 4)"
echo "${OUTPUT}"
echo
-echo -e $YELLOW'--->Downloading and extracting files...'$ENDCOLOR
-sudo curl -L "${OUTPUT}" | unzip - -d $APPPATH
+echo -e $YELLOW'--->Do... | bash |
d_bash_3151 | ---
+++
@@ -24,4 +24,5 @@
-p 5000:5000 \
--rm \
$ARGS \
-docker-rwd
+docker-rwd \
+--reload | bash |
d_bash_3152 | ---
+++
@@ -11,3 +11,9 @@
echo "Submission completed for ${file}."
cd "${WORKING_DIR}"
done
+
+#wait until the plugins reports are copied back from the GOBYWEB_PLUGIN_TEST_RUNNER task
+while [ ! -f "${COPY_BACK_LOCATION}/plugins-reports "] ;
+do
+ sleep 10
+done | bash |
d_bash_3153 | ---
+++
@@ -16,7 +16,7 @@
echo '# maintainer: InfoSiftr <github@infosiftr.com> (@infosiftr)'
for version in "${versions[@]}"; do
- commit="$(git log -1 --format='format:%H' "$version")"
+ commit="$(git log -1 --format='format:%H' -- "$version")"
fullVersion="$(grep -m1 'ENV PYTHON_VERSION ' "$version/Dockerfile... | bash |
d_bash_3154 | ---
+++
@@ -15,6 +15,15 @@
PV=pv
fi
+# Common part.
$PV ../../../omim-maps/$2.osm.bz2 | bzip2 -d | $GENERATOR_TOOL --preprocess_xml=true --use_light_nodes=true --intermediate_data_path=$TMPDIR
+# 1. Generate coastlines.
+#$PV ../../../omim-maps/$2.osm.bz2 | bzip2 -d | $GENERATOR_TOOL --make_coasts=true --use... | bash |
d_bash_3155 | ---
+++
@@ -30,7 +30,6 @@
libfribidi-dev \
phpunit \
imagemagick \
-php5-imagick \
gtk2-engines-pixbuf \
libgtk2.0-0 \
xvfb \
@@ -48,4 +47,4 @@
sudo apt-get update
sudo apt-get install -y --force-yes $EXTRA_PACKETS
-printf "\n" | pecl install imagick
+printf "\n" | sudo pecl install imagick | bash |
d_bash_3156 | ---
+++
@@ -1,4 +1,8 @@
#!/bin/bash
# Try to download premade database
wget -O $ANNOTATOR_DB_PATH https://s3.amazonaws.com/bsve-integration/annotator.sqlitedb
-$GRITS_HOME/grits_env/bin/python -m annotator.sqlite_import_geonames && supervisord --nodaemon --config /etc/supervisor/supervisord.conf
+(
+ $GRITS_HOME/... | bash |
d_bash_3157 | ---
+++
@@ -2,10 +2,22 @@
echo "Running eduChain environment setup..."
+# Set references to the chain & account
+chain_dir=$HOME/.eris/chains/simplechain
+chain_dir_this=$chain_dir/simplechain_full_000
+echo "chain_dir: ${chain_dir}"
+echo "chain_dir_this: ${chain_dir_this}"
+
+# Isolate the account address into... | bash |
d_bash_3158 | ---
+++
@@ -4,4 +4,8 @@
alias rstudio='open -a Rstudio'
+# increase the default memory
+# based on: https://stackoverflow.com/questions/51295402/r-on-macos-error-vector-memory-exhausted-limit-reached
+echo "R_MAX_VSIZE=100Gb" > $HOME/.Renviron
+
set +eu | bash |
d_bash_3159 | ---
+++
@@ -3,5 +3,21 @@
rm -rf .meteor/local/cordova-build
rm -rf ../Rocket.Chat-build
meteor build ../Rocket.Chat-build --server https://demo.rocket.chat
-sed -i '' 's/IPHONEOS_DEPLOYMENT_TARGET[[:space:]]=[[:space:]]6\.0/IPHONEOS_DEPLOYMENT_TARGET = 7\.0/g' .meteor/local/cordova-build/platforms/ios/Rocket.Chat.... | bash |
d_bash_3160 | ---
+++
@@ -5,10 +5,10 @@
RunAlg () {
CONFIDENCE="-C "${1}
- if [${2}]; then
+ if ${2}; then
OPTS="-"${2}
fi
- echo run weka -c "weka.classifiers.trees.J48 -t ${PROJECTREPOSITORY}/results/all.arff -x 2 ${OPTS} ${CONFIDENCE}"
+ echo run weka -c "weka.classifiers.trees.J48 -t ${PROJECT... | bash |
d_bash_3161 | ---
+++
@@ -7,7 +7,7 @@
add-apt-repository -y ppa:dotcloud/lxc-docker
apt-get update && apt-get install -y lxc-docker git ruby nginx make
-wget -o /usr/local/bin/gitreceive ${GITRECEIVE_URL}
+wget -O /usr/local/bin/gitreceive ${GITRECEIVE_URL}
chmod +x /usr/local/bin/gitreceive
gitreceive init
| bash |
d_bash_3162 | ---
+++
@@ -14,4 +14,4 @@
chmod +x protoc
# Run tests
-rake test
+RUBYLIB=../../lib:. rake test | bash |
d_bash_3163 | ---
+++
@@ -19,6 +19,7 @@
source git/gitconfig.sh
echo "Configuring zsh as default shell"
+sudo echo "$(which zsh)" >> /etc/shells
chsh -s $(which zsh)
echo "Downloading iTerm theme" | bash |
d_bash_3164 | ---
+++
@@ -2,4 +2,4 @@
npm run build
-aws s3 sync ./dist/ s3://panopticon-frontend-dev --region=eu-central-1 --delete
+aws s3 sync ./dist/ s3://panopticon-prod --region=eu-central-1 --delete | bash |
d_bash_3165 | ---
+++
@@ -15,4 +15,4 @@
#!/bin/bash
set -x
-DEFAULT_BAZEL_TARGETS="//tensorflow/... //tensorflow/compiler/xla/python/tpu_driver/... -//tensorflow/compiler/tests/..."
+DEFAULT_BAZEL_TARGETS="//tensorflow/... -//tensorflow/compiler/... //tensorflow/compiler/xla/python/tpu_driver/..." | bash |
d_bash_3166 | ---
+++
@@ -29,14 +29,11 @@
# Install luarocks modules
install_rock ()
{
- $INSTALL_DIR/install/bin/luarocks install $@ &>/dev/null
+ travis_wait $INSTALL_DIR/install/bin/luarocks install $@ &>/dev/null
}
install_rock image
-
-#install_rock inn
-$INSTALL_DIR/install/bin/luarocks install inn
-
+install_ro... | bash |
d_bash_3167 | ---
+++
@@ -10,5 +10,10 @@
fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+ python setup.py nosetests
pip wheel . -w wheelhouse
+ mkdir to_test
+ cd to_test
+ pip install convertbng --no-index wheelhouse
+ nosetests convertbng
fi | bash |
d_bash_3168 | ---
+++
@@ -5,5 +5,6 @@
if [[ $1 =~ \.ovf$ ]]; then
sed -i '' 's/virtualbox\-2\.2/vmx-09/' $1
sed -i '' 's/MACAddress="[0-9A-F]*"/MACAddress=""/' $1
+ rm -f output/puppet-$PE_VERSION-$VM_TYPE-$PTB_VERSION.ova
ovftool --targetType=ova --acceptAllEulas $1 output/puppet-$PE_VERSION-$VM_TYPE-$PTB_VERSION.ova
... | bash |
d_bash_3169 | ---
+++
@@ -8,14 +8,24 @@
fish_path=$(which fish)
-if ! [ "$SHELL" = "$fish" ]; then
+login_shell="unknown"
+if [ "$(uname -s)" == "Darwin" ]; then
+ login_shell="$(finger $USER | perl -n -e'/.*Shell\:\s+(.*)/ && print $1')"
+elif [ "$(uname -s)" == "Darwin" ]; then
+ login_shell="$(getent passwd $LOGNAME ... | bash |
d_bash_3170 | ---
+++
@@ -8,7 +8,7 @@
export NODE_OS_DISTRO='coreos'
export NODE_IMAGE_ORG="/var/lib/libvirt/images/coreos_${CHANNEL}_${RELEASE}_qemu_image.img"
export NODE_IMAGE="/var/lib/libvirt/images/coreos_${CHANNEL}_${RELEASE}_qemu_image.qcow2"
-export NODE_ADDRESS_PREFIX='192.168.1'
+export NODE_ADDRESS_PREFIX=${NODE_ADD... | bash |
d_bash_3171 | ---
+++
@@ -20,5 +20,6 @@
conda create -q -n fermi-env -y python=2.7 numpy scipy matplotlib astropy pytest pyyaml ipython
source activate fermi-env
-conda install -c openastronomy healpy wcsaxes
+conda install -c openastronomy wcsaxes
+pip install healpy
pip install fermipy | bash |
d_bash_3172 | ---
+++
@@ -7,5 +7,5 @@
elif [ "$COVERAGE" == true ]; then
NO_BUILD=true mocha --no-warnings --timeout 7000 --grep @geth --invert --colors $@
else
- yarn run build-cli && mocha --no-warnings --timeout 7000 --grep @geth --invert --colors $@
+ yarn build-cli && mocha --no-warnings --timeout 7000 --grep @geth --i... | bash |
d_bash_3173 | ---
+++
@@ -5,5 +5,5 @@
GUNICORN_BIN=bin/gunicorn
fi
-PYRAMID_RELOAD_TEMPLATES=1 ${GUNICORN_BIN} -b 127.0.0.1:7001 -w 2 -t 600 \
+PYRAMID_RELOAD_TEMPLATES=1 ${GUNICORN_BIN} -b 127.0.0.1:7001 -w 1 -t 600 \
-c ichnaea.gunicorn_config ichnaea:application | bash |
d_bash_3174 | ---
+++
@@ -13,23 +13,29 @@
md5sum documentation/documentation.gradle > "${current}"
md5sum $(find documentation/src/ -type f) >> "${current}"
md5sum $(find . -wholename '**/src/main/java/*.java') >> "${current}"
-stat "${current}"
+sort --output "${current}" "${current}"
+echo
md5sum "${current}"
#
# compare... | bash |
d_bash_3175 | ---
+++
@@ -1,15 +1,12 @@
#!/bin/sh
-# Bash function for doing things as part of Travis build
-#
-# Why? mostly because Travis deployment scripts need to be a
-# a single command https://docs.travis-ci.com/user/deployment/script/
+# Bash functions for doing things as part of CI build
checkout_pages() {
- git c... | bash |
d_bash_3176 | ---
+++
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -e
-URL="http://downloads.metabase.com/v0.26.2/metabase.jar"
+URL="http://downloads.metabase.com/v0.28.1/metabase.jar"
wget --progress=bar $URL -O metabase.jar | bash |
d_bash_3177 | ---
+++
@@ -5,16 +5,13 @@
docker kill existdb
docker kill postgres
-DOCKER_EXIT=$(docker ps -a | grep 'Exit')
-DOCKER_TRUNC=$(docker ps -a --no-trunc | grep 'Exit')
+docker rm django
+docker rm fuseki
+docker rm existdb
+docker rm postgres
-if [-n DOCKER_EXIT]; then
docker ps -a | grep 'Exit' | awk '{print $1}... | bash |
d_bash_3178 | ---
+++
@@ -16,9 +16,20 @@
r=/devt/builds/${JOB_NAME}
d=${BUILD_NUMBER}
-mkdir -p $r/$d
+# Identify the location of the file that will be used for zero footprint RIDE. These files are identical across
+# platforms; the only difference in resources/app/<platform> is that the Windows tree has windows-ime/set-ime.e... | bash |
d_bash_3179 | ---
+++
@@ -37,6 +37,7 @@
}
function test_all {
+ test_manuals 'de' 'api-quick-start'
test_manuals 'es' 'api-quick-start'
test_manuals 'fr' 'api-quick-start'
test_manuals 'ja' 'api-quick-start' | bash |
d_bash_3180 | ---
+++
@@ -5,7 +5,7 @@
#
if [ "$(id -u)" == "0" ]; then
- echo "This script must not be run as root"
+ echo "This script must not be run as su"
exit 1
fi
| bash |
d_bash_3181 | ---
+++
@@ -28,7 +28,7 @@
echo "Using cached libraries from $INSTALL_PREFIX_DIR"
fi
-if [[ "$TRAVIS_BRANCH" -eq "devel" ]]; then
+if [[ "$TRAVIS_BRANCH" == "devel" ]]; then
git clone -b devel https://github.com/CESNET/libyang.git
else
git clone https://github.com/CESNET/libyang.git | bash |
d_bash_3182 | ---
+++
@@ -10,7 +10,7 @@
versions=( "${versions[@]%/}" )
for version in "${versions[@]}"; do
- fullVersion="$(curl -sSL "http://cache.ruby-lang.org/pub/ruby/$version/" \
+ fullVersion="$(curl -sSL --compressed "http://cache.ruby-lang.org/pub/ruby/$version/" \
| grep -E '<a href="ruby-'"$version"'.[^"]+\.tar\.... | bash |
d_bash_3183 | ---
+++
@@ -22,4 +22,5 @@
install_extra
source $(dirname "${BASH_SOURCE[0]:-$0}")/setup-fcitx.sh
+source $(dirname "${BASH_SOURCE[0]:-$0}")/setup-default-app.sh
| bash |
d_bash_3184 | ---
+++
@@ -7,8 +7,8 @@
# Install python dependencies
pip install --upgrade pip
-pip install -r https://raw.githubusercontent.com/projectcalico/libcalico/master/build-requirements-frozen.txt
-pip install git+https://github.com/projectcalico/libcalico.git
+pip install -r https://raw.githubusercontent.com/HuKeping/... | bash |
d_bash_3185 | ---
+++
@@ -10,7 +10,7 @@
echo "Seams DB does not initialised! Try to do so"
set -e
- sql="psql -qX1n -v ON_ERROR_STOP=1 -h db -U $POSTGRES_USER $POSTGRES_DB"
+ sql="psql -qX1n -v ON_ERROR_STOP=1 -h ${POSTGRES_HOST:-db} -U $POSTGRES_USER $POSTGRES_DB"
echo "Import main tables: art-tables.sql"
$sql <... | bash |
d_bash_3186 | ---
+++
@@ -1,4 +1,9 @@
#!/bin/sh
+
+# DEFAULTS
+CLOSURE="/usr/local/closure_compiler/compiler.jar"
+JSDOC3="/usr/local/jsdoc3/jsdoc.jar"
+
echo ""
echo " DataTables build"
@@ -32,3 +37,8 @@
done
mv DataTables.js.build ../js/jquery.dataTables.js
+
+
+if [ "$1" = "compress" ]; then
+ java -jar $CLOSURE --js ... | bash |
d_bash_3187 | ---
+++
@@ -47,7 +47,7 @@
exit 1
fi
if [ ${install} -eq 1 ]; then
- make install
+ sudo make install
if [ $? -ne 0 ]; then
echo "ERROR: Could not install project"
exit 1 | bash |
d_bash_3188 | ---
+++
@@ -1,9 +1,11 @@
#!/usr/bin/env bash
+rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
yum install -y httpd
yum install -y mysql-server
yum install -y php
yum install -y epel-release
+rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
yum install -y phpMyAdmin
ln -s /mnt/fuelphp /home/vagrant/fuelphp... | bash |
d_bash_3189 | ---
+++
@@ -11,9 +11,6 @@
ONU="${PWD}/usr/src/tools/scripts/onu"
REPO="${PWD}/packages/i386/nightly"
-log_must /usr/bin/pfexec /usr/bin/pkg \
- install -g "${REPO}/repo.redist" pkg:/package/pkg
-
log_must /usr/bin/pfexec "${ONU}" -t "openzfs-nightly" -d "${REPO}"
exit 0 | bash |
d_bash_3190 | ---
+++
@@ -10,7 +10,7 @@
fi
if [[ -n "${DOCKER_USER}" && "${TRAVIS_PULL_REQUEST}" = 'false' && "${TRAVIS_BRANCH}" = "master" ]]; then
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
+ docker login -u $DOCKER_USER -p $DOCKER_PASS
docker tag $DOCKER_IMAGE $DOCKER_IMAGE:$TRAVIS_COMMIT
docker... | bash |
d_bash_3191 | ---
+++
@@ -1,5 +1,6 @@
if [ -x "$HOME/.pyenv/bin/pyenv" ]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
+ export PATH="$PYENV_ROOT/shims:$PATH"
eval "$($HOME/.pyenv/bin/pyenv init -)"
fi | bash |
d_bash_3192 | ---
+++
@@ -3,7 +3,12 @@
# Simple script to test Java-based execution of Spoon. You must have assembled
# the jar prior to running this script (i.e., mvn clean verify).
-gradle build
+adb uninstall com.f2prateek.dfg.debug
+adb uninstall com.f2prateek.dfg.debug.tests
+adb uninstall com.f2prateek.dfg
+gradle clean
... | bash |
d_bash_3193 | ---
+++
@@ -7,5 +7,5 @@
site=directgov
-sort -k2 -n "$site-good.txt" | awk 'BEGIN { print "Old Url,Count,Status" }
+sort -k2 -nr "$site-good.txt" | awk 'BEGIN { print "Old Url,Count,Status" }
{ print "\"" $1 "\"," $2 "," $3 }' > $site-testable.csv | bash |
d_bash_3194 | ---
+++
@@ -7,5 +7,6 @@
echo "***Score $count***" >> $2
echo Computing AUC
python $4 $2.sort $3-$count.txt >> $2
+ rm $2.sort
count=`expr $count - 1`
done | bash |
d_bash_3195 | ---
+++
@@ -6,17 +6,25 @@
-iv $encrypted_3210c925a91b_iv \
-in .travis.secring.enc -out .travis.secring -d
-gpg2 --keyring=$TRAVIS_BUILD_DIR/pubring.gpg \
- --no-default-keyring \
- --import .travis.pubring
+#gpg --keyring=$TRAVIS_BUILD_DIR/pubring.gpg \
+# --no-default-keyring \
+# ... | bash |
d_bash_3196 | ---
+++
@@ -23,7 +23,7 @@
uci batch << EOF
set luci_splash.${netrenamed}dhcp="iface"
-set luci_splash.${netrenamed}dhcp.network="${net}dhcp"
+set luci_splash.${netrenamed}dhcp.network="${netrenamed}dhcp"
set luci_splash.${netrenamed}dhcp.zone="freifunk"
EOF
| bash |
d_bash_3197 | ---
+++
@@ -32,9 +32,6 @@
done
if [ "$dolink" = "yes" ]; then
- MSVC98Dir="$PROGRAMFILES\Microsoft Visual Studio\VC98"
- PATH="$MSVC98Dir\BIN:$PATH"
- LIB="$MSVC98Dir\LIB;$LIB"
fl32 $args $link
stat=$?
if [ $stat -eq 1 ]; then | bash |
d_bash_3198 | ---
+++
@@ -7,17 +7,19 @@
brew install netcat
brew install netperf
brew install node
+brew install pidcat
brew install python
brew install rbenv
+brew install reattach-to-user-namespace
brew install s3cmd
brew install sox
brew install swaks
+brew install swiftlint
brew install tmux
brew install trash
brew ... | bash |
d_bash_3199 | ---
+++
@@ -1,7 +1,7 @@
# Activates autoenv or reports its failure
-if ! source $HOME/.autoenv/activate.sh 2>/dev/null; then
+if ! type autoenv_init &>/dev/null && ! source $HOME/.autoenv/activate.sh 2>/dev/null; then
echo '-------- AUTOENV ---------'
- echo 'Could not find ~/.autoenv/activate.sh.'
+ echo 'Coul... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.