document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_1500 | ---
+++
@@ -28,7 +28,13 @@
then
exit 1
fi
+
source "$ENV_PATH/bin/activate"
+
+while read line
+do
+ export PYTHONPATH="$line:$PYTHONPATH"
+done < <(find "$ENV_PATH/lib" -name site-packages)
echo "# Installing Django 1.5.1 in virtual env"
pip -q install django==1.5.1 > /dev/null | bash |
d_bash_1501 | ---
+++
@@ -35,11 +35,16 @@
;;
av1 | av1-rt)
pushd $CODEC
+ echo -- Starting x86_64 Build --
./configure --enable-av1 --disable-unit-tests --disable-docs $BUILD_OPTIONS
make
mkdir -p x86_64
mv aomenc aomdec x86_64/
+ echo -- Finished x86_64 Build --
+ echo -- Starting Analyze... | bash |
d_bash_1502 | ---
+++
@@ -13,6 +13,7 @@
echo "Unsupported OS: $os"
return
fi
+
mkdir -p "$sublimeUserDataPath"
mkdir -p "$sublimeInstalledPackagesPath"
@@ -22,4 +23,4 @@
cp -f $settingsDir/*.sublime-settings "$sublimeUserDataPath"
cp -f "$settingsDir/Default ($os).sublime-keymap" "$sublimeUserDataPath"
-curl -o ... | bash |
d_bash_1503 | ---
+++
@@ -2,7 +2,10 @@
touch /var/lib/mumble-server
-SUPW=`pwgen -c -n -1 15`
+
+if [ -z "$SUPW" ]; then
+ SUPW=`pwgen -c -n -1 15`
+fi
echo "Superuser Password: $SUPW"
| bash |
d_bash_1504 | ---
+++
@@ -9,3 +9,13 @@
rg --files -u | rg "${@:-^}"
}
+ftf() {
+ local path=${1:-.}
+ shift
+ find "$path" -type f "$@"
+}
+
+fne() {
+ ff "\\.$1\$"
+}
+ | bash |
d_bash_1505 | ---
+++
@@ -2,9 +2,9 @@
# Automatically installs OCLint.
# This script was designed for usage in CI systems.
-curl -OL https://github.com/oclint/oclint/releases/download/v0.10.3/oclint-0.10.3-x86_64-linux-3.13.0-74-generic.tar.gz
+curl -OL http://archives.oclint.org/releases/0.11/oclint-0.11-x86_64-linux-4.4.0-36... | bash |
d_bash_1506 | ---
+++
@@ -2,6 +2,6 @@
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
set -e
-export CCACHE_MAXSIZE="1250M"
-export CCACHE_COMPRESS=1
+ccache --max-size=1250M
+ccache --set-config=compression=true
ccache --print-config | bash |
d_bash_1507 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.2%2B8/OpenJDK17U-jdk_x64_linux_hotspot_17.0.2_8.tar.gz"
;;
java18)
- echo "https://github.com/adoptium/temurin18-binaries/releases/download/jdk18-2022-02-15-13-13-beta/OpenJDK18-jdk_x64_linux_hotspot_20... | bash |
d_bash_1508 | ---
+++
@@ -25,8 +25,8 @@
RET=0
for testfile in $testfiles; do
echo ""
- echo -en "\033[0;35mrunning: "
- echo -e "\033[0;36m${testfile/#$(dirname "$testdir")\//}\033[0m"
+ echo -en "$(tput setaf 5)running: "
+ echo -e "$(tput setaf 6)${testfile/#$(dirname "$testdir")\//}$(tput sgr0)"
cd "$(dirname "$test... | bash |
d_bash_1509 | ---
+++
@@ -17,7 +17,8 @@
for i in /ssh/*.ca; do
echo '@cert-authority *' $(cat $i) >> /sysroot/etc/ssh/ssh_known_hosts
done
-cp /etc/confluent.apikey /sysroot/etc/
-cp /etc/confluent.apikey /sysroot/etc/confluent/
+cp /etc/confluent/confluent.apikey /sysroot/etc/
+cp /etc/confluent/confluent.apikey /sysroot/e... | bash |
d_bash_1510 | ---
+++
@@ -19,7 +19,7 @@
# compile the website
bundle exec jekyll build -d ~/out --config _uberspace_config.yml
# upload site
- rsync -rq ~/out/* $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
+ rsync -rq --delete ~/out/* $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
else
echo "NOT ON MASTER BRANCH, WILL NOT DEPLOY SITE"
... | bash |
d_bash_1511 | ---
+++
@@ -29,6 +29,8 @@
python bootstrap.py -v 1.7.0
bin/buildout -c buildout-dev.cfg
bin/django syncdb --noinput --migrate
+bin/django loaddata doi_schema
+bin/django loaddata cc_licenses
myt_username=modc08
myt_password=`python -c 'import random, string; print str.join("", [random.sample(string.lowercase +... | bash |
d_bash_1512 | ---
+++
@@ -10,7 +10,26 @@
arnoldPlatform=darwin
fi
+# Check required vars are set, and if they are, aren't inadvertently unexpanded
+# vars from anywhere (which we've seen with Azure, and not been able to find a
+# syntax that just sets them empty if they're not set in the pipeline, despite
+# what the docs say... | bash |
d_bash_1513 | ---
+++
@@ -6,7 +6,7 @@
{
local ver=$1
local output="../.build/linux_$ver"
- local cflags="-std=c++11 -stdlib=c++ -c -m$ver"
+ local cflags="-std=c++11 -c -m$ver"
rm -Rf $output
mkdir -p $output | bash |
d_bash_1514 | ---
+++
@@ -2,7 +2,7 @@
# Run data coordinator migrations
# run_migrations.sh [migrate/undo/redo] [numchanges]
BASEDIR=$(dirname $0)/..
-CONFIG=${SODA_CONFIG:-$BASEDIR/../onramp/services/soda2.conf}
+CONFIG=${SODA_CONFIG:-$BASEDIR/../docs/onramp/services/soda2.conf}
JARFILE=$BASEDIR/coordinator/target/scala-2.10/... | bash |
d_bash_1515 | ---
+++
@@ -13,5 +13,5 @@
fi
}
-install_packages curl terminator vim zsh
+install_packages ack-grep curl terminator vim zsh
| bash |
d_bash_1516 | ---
+++
@@ -3,6 +3,6 @@
do
git clone https://github.com/pyQode/${package}
pushd ${package}
- pip3 install -e .
+ pip install -e .
popd
done | bash |
d_bash_1517 | ---
+++
@@ -19,6 +19,7 @@
lastpass
spotify
slack
+ sublime-merge
telegram
ngrok
) | bash |
d_bash_1518 | ---
+++
@@ -36,6 +36,8 @@
fi
}
+./gradlew checkJavaVersion
+
publish
publish "-PANDROID"
publish "-PJS" | bash |
d_bash_1519 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
node_bin=
-node_version=v0.10.33
+node_version=v0.10.38
cwd=`dirname "${0}"`
| bash |
d_bash_1520 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/bash
-SLEEP=300
+#SLEEP=300
+SLEEP=60
TEMPIMG="/tmp/image.png"
IMGTRASHHOLD=32000
GDRIVEPATH="Pictures/Unin" | bash |
d_bash_1521 | ---
+++
@@ -26,3 +26,4 @@
mkdir ~/.vim/undodir
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
+$(brew --prefix)/opt/fzf/install | bash |
d_bash_1522 | ---
+++
@@ -7,12 +7,30 @@
make html
}
+# Container 0 - runs tasks not found in the below containers
+
+# Container 1
CASSANDRA=':atlasdb-cassandra-tests:check'
+
+# Container 2
SHARED=':atlasdb-tests-shared:check'
ETE=':atlasdb-ete-tests:check'
+#Container 3
+TIMELOCK_ETE=':atlasdb-timelock-ete:check'
+DRO... | bash |
d_bash_1523 | ---
+++
@@ -11,10 +11,8 @@
# Get mesos-slave version
mesos_version=$(docker run --rm --entrypoint bash "${image}" -c "mesos-slave --version | tr -s ' ' | cut -d ' ' -f 2")
-# Get docker client version. Installed server version will match client.
-# Docker command contacts server, even tho we're only requsting the... | bash |
d_bash_1524 | ---
+++
@@ -1,4 +1,6 @@
#! /bin/bash
+
+export VIRTUAL_ENV=${VIRTUAL_ENV:-"$PWD/socorro-virtualenv"}
git submodule update --init --recursive
@@ -7,10 +9,9 @@
fi
if [ ! -d "$VIRTUAL_ENV" ]; then
- virtualenv -p python2.6 ${PWD}/socorro-virtualenv
- source ${PWD}/socorro-virtualenv/bin/activate
- exp... | bash |
d_bash_1525 | ---
+++
@@ -7,7 +7,7 @@
[ ! -z "${arg_P}" ] && [ ! -z "${arg_D:-${arg_p:-${arg_U:-${arg_V}}}}" ] &&
emergency "Please pass only one of {-D, -p, -P, -U, -V} or a longer equivalent (multiple detected)."
- install_path="${arg_i}"
+ install_path="${arg_i}/${arg_p:-${arg_D:-${arg_P:-${arg_U:-${arg_V}}}}}/${ver... | bash |
d_bash_1526 | ---
+++
@@ -15,7 +15,7 @@
# Generate Hexo static site.
hexo clean
hexo generate
-./node_modules/webpack/bin/webpack.js
+./node_modules/.bin/webpack
# BAM! Deploy.
hexo deploy | bash |
d_bash_1527 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/bash
+
+# ensure the correct owner for the Elasticsearch data directory
+chown -R elasticsearch:elasticsearch /usr/share/elasticsearch/data
if [ "$#" -ne 0 ]; then
echo "Running Exceptionless Job $@" | bash |
d_bash_1528 | ---
+++
@@ -4,7 +4,7 @@
GNU_MANPATHS=( \
/usr/local/opt/coreutils/libexec/gnuman \
- /usr/local/opt/findutils/libexec/gunman \
+ /usr/local/opt/findutils/libexec/gnuman \
/usr/local/opt/gnu-sed/libexec/gnuman \
/usr/local/opt/gnu-tar/libexec/gnuman \
) | bash |
d_bash_1529 | ---
+++
@@ -12,8 +12,6 @@
# Find the latest requested version of python
case "$TOXENV" in
- py34)
- python_minor=4;;
py35)
python_minor=5;;
py36)
@@ -24,6 +22,8 @@
python_minor=6;;
py37)
python_minor=7;;
+ py38)
+ ... | bash |
d_bash_1530 | ---
+++
@@ -19,3 +19,6 @@
)
fi
+drecommend fzf
+drecommend ag
+drecommend ctags | bash |
d_bash_1531 | ---
+++
@@ -27,8 +27,8 @@
mv invalid/*.wast malformed
for wasm in invalid/*.wasm; do
- if ../wabt/out/wasm2wast "$wasm" -o invalid/t.wast 2>/dev/null && \
- ../wabt/out/wast2wasm invalid/t.wast -o /dev/null 2>/dev/null ; then
+ if "$wabtbin/wasm2wast" "$wasm" -o invalid/t.wast 2>/dev/null && \
+ ... | bash |
d_bash_1532 | ---
+++
@@ -5,6 +5,14 @@
# Homebrew cask install apps to global Applications
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
+
+# Open with finder
+alias o="open"
+alias oo="open ."
+
+# Open MacVim
+alias vm="mvim"
+alias vmm="mvim ."
# CocoaPods
alias pi="pod install"
@@ -14,3 +22,22 @@
# MacRuby
alias... | bash |
d_bash_1533 | ---
+++
@@ -2,6 +2,9 @@
node ./node_modules/coffee-script/bin/coffee -c ./src
# We don't need coffee-script at runtime
npm uninstall coffee-script
+ # Empty the apt and npm caches of the packages we installed
+ npm cache clean
+ apt-get clean
# Remove deploy key
rm -rf /root/.ssh/* deploy_key
# Remove unn... | bash |
d_bash_1534 | ---
+++
@@ -1,7 +1,5 @@
#!/bin/bash
-sudo export DEBIAN_FRONTEND=noninteractive
-
sudo apt-get -q update
-sudo apt-get -y upgrade
+sudo DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
#sudo apt-get -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
sudo apt-get -y autor... | bash |
d_bash_1535 | ---
+++
@@ -3,5 +3,9 @@
zypper -n rm -u gcc make kernel-default-devel kernel-devel
+# Clean up network interface persistence
+rm -f /etc/udev/rules.d/70-persistent-net.rules;
+touch /etc/udev/rules.d/75-persistent-net-generator.rules;
+
# delete any logs that have built up during the install
find /var/log/ -na... | bash |
d_bash_1536 | ---
+++
@@ -9,5 +9,6 @@
travis_retry sudo apt-get -y install cuda
# https://docs.nvidia.com/cuda/cuda-quick-start-guide/index.html#ubuntu-x86_64-deb
-export PATH=/usr/local/cuda-11.0/bin${PATH:+:${PATH}}
-export LD_LIBRARY_PATH=/usr/local/cuda-11.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
+# Use generic /usr/... | bash |
d_bash_1537 | ---
+++
@@ -8,6 +8,7 @@
alias mr='mate CHANGELOG app config db lib public script spec test'
alias .='pwd'
alias ...='cd ../..'
+alias -- -='cd -'
alias _='sudo'
alias ss='sudo su -' | bash |
d_bash_1538 | ---
+++
@@ -23,3 +23,9 @@
secretfiles=$(find ~/.ssh | grep p12)
secure_secret_files "$secretfiles"
+
+secretfiles=$(find ~/.ssh | grep gpg)
+secure_secret_files "$secretfiles"
+
+secretfiles=$(find ~/.ssh | grep davfs2)
+secure_secret_files "$secretfiles" | bash |
d_bash_1539 | ---
+++
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
sed -i 's/^mesg n$/tty -s \&\& mesg n/g' /root/.profile
+sed -i '/^#.*force_color_prompt=yes/s/^#//' ./.bashrc
+echo "cd /var/www/html/" >> ./.bashrc
printf "%$(tput cols)s\n"|tr " " "="
echo "Starting provisioning (Update list packages)" | bash |
d_bash_1540 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-git archive --remote=git://git.code.sf.net/p/esmf/esmf --format=tar --prefix=esmf/ ESMF_7_1_0_beta_snapshot_38 | tar xf -
+git archive --remote=git://git.code.sf.net/p/esmf/esmf --format=tar --prefix=esmf/ ESMF_7_1_0r | tar xf -
module load netcdf/4.4.1.1
module load intel-fc... | bash |
d_bash_1541 | ---
+++
@@ -1,3 +1,4 @@
# compare pbzip2's output against output from bzip2 1.0.6
echo "uncompressed" | pbzip2 -c > pbzip2.out
-[[ $(md5sum pbzip2.out) == "26bef035e3983d8817dcc041723d1b28 pbzip2.out" ]] || exit 1
+dd if=pbzip2.out ibs=1 skip=10 count=4 2>/dev/null > pbzip2.crc
+[[ $(hexdump -e '1/1 "%02x"' pbzip2... | bash |
d_bash_1542 | ---
+++
@@ -4,4 +4,6 @@
# antigen rbenv plugin overrides this to reside in /usr/local/Cellar/rbenv
# which means homebrew can screw with rbenv's settings - we don't want that
export RBENV_ROOT=~/.rbenv
-export PATH="$(brew --prefix qt@5.5)/bin:$PATH"
+if brew ls --versions qt@5.5 > /dev/null; then
+ export PATH="... | bash |
d_bash_1543 | ---
+++
@@ -33,6 +33,7 @@
docker-compose#${BUILDKITE_COMMIT}:
build: helloworldimage
config: test/docker-compose.yml
+ - wait
- command: /hello
label: run after build with image name
plugins: | bash |
d_bash_1544 | ---
+++
@@ -9,6 +9,6 @@
then
version="@$1"
fi
- brew unlink $(brew list | grep node)
+ brew unlink $(brew list --formula | grep node)
brew link --overwrite --force "node$version"
} | bash |
d_bash_1545 | ---
+++
@@ -3,3 +3,7 @@
# Setup ls shortcut to see everything
alias l='ls -lAh'
+
+# Preventing less from line wrapping
+alias less='less -S'
+ | bash |
d_bash_1546 | ---
+++
@@ -3,4 +3,4 @@
# Make sure databases exist, if not accessing will create them
mongo --host mongo --eval "use tomatoes_app_development; use tomatoes_app_test; exit;"
-rails s
+bundle exec rails s | bash |
d_bash_1547 | ---
+++
@@ -15,6 +15,11 @@
gem update --system
gem install bundler
+
+ # Install bundler v1 for older projects
+ # https://bundler.io/guides/bundler_2_upgrade.html#version-autoswitch
+ gem install bundler -v 1.17.3
+
bundle install
bundle exec rake install | bash |
d_bash_1548 | ---
+++
@@ -16,7 +16,7 @@
git clone git@github.com:wkoszek/book-programming-ruby.git
cd book-programming-ruby
-git checkout gh-pages
+git checkout -B gh-pages
mv ../out.${MODE} out.${MODE}.${TRAVIS_BUILD_NUMBER}
git add out.${MODE}.${TRAVIS_BUILD_NUMBER}
git commit -m "Travis out.${MODE} build ${TRAVIS_BUILD_N... | bash |
d_bash_1549 | ---
+++
@@ -15,6 +15,10 @@
test -L ~/.toprc && mv ~/.toprc /tmp/.toprc.sav
ln -sf `pwd`/.toprc ~/
+mkdir -p ~/.config/procps
+test -L ~/.config/procps/toprc && mv ~/.config/procps/toprc /tmp/toprc.sav
+ln -sf `pwd`/.toprc ~/.config/procps/toprc
+
test -L ~/.gitconfig && mv ~/.gitconfig /tmp/.gitconfig.sav
ln -s... | bash |
d_bash_1550 | ---
+++
@@ -8,6 +8,7 @@
"/contribute.json"
"/4/Firefox/56.0.1/20160922113459/WINNT_x86-msvc/en-US/release/Windows_NT%206.1/default/default/"
"/5/Firefox/56.0.1/20160922113459/WINNT_x86-msvc/en-US/release/Windows_NT%206.1/default/default/"
+ "/json/1/Fennec/55.0.2/20170815231002/Android_arm-eabi-gcc3... | bash |
d_bash_1551 | ---
+++
@@ -1,4 +1,12 @@
#!/bin/bash
+#
+# To get mtop to start up automatically on virtual console tty1
+#
+# sudo systemctl edit getty@tty1
+#
+# [Service]
+# ExecStart=
+# ExecStart=-/sbin/agetty --noclear --skip-login --login-program /[path to]/vgaconsolemtop.sh %I $TERM
setterm -powersave off -powerdown 0 -b... | bash |
d_bash_1552 | ---
+++
@@ -17,12 +17,31 @@
}
argv-to-sh-demo() {
- ./argv_to_sh.py begin \' \" ' ' \\ end
+ ./argv_to_sh.py begin \' \" 'a b' \\ end
+}
+
+quote-demo() {
+ # Wrong because 'a b' gets split.
+ argv $(./argv_to_sh.py echo begin \' \" 'a b' \\ end)
+
+ # Quoting makes it correct. SSH doesn't care, because it ... | bash |
d_bash_1553 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/bash
+echo Generating cmake build directories...
set -e
ninja_path=`which ninja`
@@ -10,6 +11,12 @@
build_system_prefix=""
echo Warning: ninja not available!
fi
+
+echo
+echo =======================================================================
+echo ninja_path=$ninja_path
+... | bash |
d_bash_1554 | ---
+++
@@ -13,7 +13,7 @@
sudo apt-get -y install curl wget inoticoming htop
echo "Installing docker-compose..."
-wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
+wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
/usr/local/bin/pip install -U docker-compose | bash |
d_bash_1555 | ---
+++
@@ -21,7 +21,11 @@
#
function get_bk_version() {
- bk_version=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev '(^\[|Download\w+:)' 2> /dev/null`
+ bk_version=$(mvn -q \
+ -Dexec.executable="echo" \
+ -Dexec.args='${project.version}' \
+ ... | bash |
d_bash_1556 | ---
+++
@@ -36,6 +36,17 @@
# Install apps needed by Metatron/Arlobot
if ! (which festival>/dev/null)
then
+ echo "Installing Festival for robot speech"
+ echo "You will be asked for your password"
+ echo "In order to run apt-get install."
sudo apt-get install festival
fi
+if ! (dpkg -l festvox-en1... | bash |
d_bash_1557 | ---
+++
@@ -10,4 +10,5 @@
fi
fi
-cargo install --vers $version --force rustfmt
+cargo uninstall rustfmt
+cargo install --vers $version rustfmt | bash |
d_bash_1558 | ---
+++
@@ -11,7 +11,7 @@
fi
}
-check_command make test-licenses
+check_command make test-licences
check_command make test-jshint
check_command make test-api
check_command make test-units | bash |
d_bash_1559 | ---
+++
@@ -28,9 +28,6 @@
## Init
govendor init
-## Filter out tags in testing packages
-sed -i -e 's/test/test appengine go1.7/' vendor/vendor.json
-
## Fetch deps
echo "Fetching deps, will take some time..."
govendor fetch +missing | bash |
d_bash_1560 | ---
+++
@@ -6,6 +6,10 @@
print "---------------------------------------";
}
{
+ # TODO
+ # Specify length for both columns ($1, $2)
+ #
+
baselen = 10;
fieldlen = length($1);
tablen = baselen - fieldlen; | bash |
d_bash_1561 | ---
+++
@@ -8,13 +8,40 @@
# FLY_CMD
# FLY_TARGET
-FLY_CMD_URL="${CONCOURSE_URL}/api/v1/cli?arch=amd64&platform=$(uname | tr '[:upper:]' '[:lower:]')"
-echo "Downloading fly command..."
-curl "$FLY_CMD_URL" -# -L -f -z "$FLY_CMD" -o "$FLY_CMD" -u "${CONCOURSE_ATC_USER}:${CONCOURSE_ATC_PASSWORD}"
-chmod +x "$FLY_CM... | bash |
d_bash_1562 | ---
+++
@@ -2,27 +2,13 @@
set -e
-# NOTE: Travis build matrix won't let us run something after ALL matrix jobs succeed, so we have to run serially (below)
-# if [ $JOB = "unit" ]; then
-# grunt
-# grunt test:ci
-# grunt release
-# elif [ $JOB = "e2e" ]; then
-# # grunt clean build test:e2e --browsers=SL_... | bash |
d_bash_1563 | ---
+++
@@ -13,8 +13,7 @@
## metaphlan
echo " Metaphlan..."
-metaphlan=$section_dir/metaphlan
-cd $galaxy_tool_dir/
+cd $galaxy_tool_dir/$section_dir
if [ ! -d "metaphlan/" ]; then
echo " cloning"
hg clone https://toolshed.g2.bx.psu.edu/repos/dannon/metaphlan | bash |
d_bash_1564 | ---
+++
@@ -10,6 +10,7 @@
source /tmp/test_db_$$
echo "running pg_restore"
pg_restore --clean -d $PGDATABASE data/db_dumps/cc_blogs_mc_db.dump
+echo "running mediawords_upgrade_db.pl --import"
MEDIAWORDS_FORCE_USING_TEST_DATABASE=1 ./script/run_with_carton.sh ./script/mediawords_upgrade_db.pl --import
echo "dum... | bash |
d_bash_1565 | ---
+++
@@ -3,10 +3,10 @@
#Forked from https://github.com/jatoben/CommandLine
set -ev
-SWIFT_SNAPSHOT="swift-2.2-SNAPSHOT-2016-01-11-a"
+SWIFT_SNAPSHOT="swift-DEVELOPMENT-SNAPSHOT-2016-01-25-a"
echo "Installing ${SWIFT_SNAPSHOT}..."
-curl -s -L -O "https://swift.org/builds/ubuntu1404/${SWIFT_SNAPSHOT}/${SWIFT_... | bash |
d_bash_1566 | ---
+++
@@ -6,5 +6,6 @@
# while stumpwm is still running
while kill -0 "$stump_pid" > /dev/null 2>&1; do
/usr/sbin/mixer -s vol | sed 's/vol [0-9]*://'
+ printf "\n"
sleep "$interval"
done | bash |
d_bash_1567 | ---
+++
@@ -2,10 +2,12 @@
sudo apt-get update
sudo apt-get upgrade
-sudo apt-get install -y build-essential
-sudo apt-get install -y git -y
-sudo apt-get install -y tcl tk tcl8.6-dev tk8.6-dev
+sudo apt-get install -y --force-yes build-essential
+sudo apt-get install -y --force-yes git
+sudo apt-get install -y... | bash |
d_bash_1568 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+set -ev
+
docker run -p 8282:8080 --name core -d eregs/core
# Sleep for 5 to give Django enough time to start up
sleep 5
@@ -16,9 +18,9 @@
docker run --rm -it -v $PWD/cache:/app/cache --link core:core eregs/parser write_to http://core:8080
# Modify the close date
-curl htt... | bash |
d_bash_1569 | ---
+++
@@ -1,11 +1,22 @@
mkdir -p build
+rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
cd build
+rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
export CMAKE_LIBRARY_PATH=$CMAKE_LIBRARY_PATH:/framework-dependencies/lib
+rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
export CMAKE_INCLUDE_PATH=$CMAKE_INCLUDE_PATH:/framewor... | bash |
d_bash_1570 | ---
+++
@@ -1,6 +1,8 @@
#!/bin/bash
-set -e
+sed -i "s/ES_HOST:${ES_PORT_9200_TCP_ADDR}/g" \
+ -i "s/ES_PORT:${ES_PORT_9200_TCP_PORT}/g" \
+ > /opt/logstash.conf
exec java \
-jar /opt/logstash.jar \ | bash |
d_bash_1571 | ---
+++
@@ -8,7 +8,7 @@
cd $(git rev-parse --show-toplevel)
rm -rf target/doc/
-multirust run nightly cargo doc --no-deps --features "backup cache functions load_extension trace"
+multirust run nightly cargo doc --no-deps --features "backup cache functions load_extension trace blob"
echo '<meta http-equiv=refres... | bash |
d_bash_1572 | ---
+++
@@ -5,12 +5,10 @@
set -e # aborts as soon as anything returns non-zero exit status
-if [ ! -z "$TRAVIS_COMMIT" ]; then
+if [ ! -z "$TRAVIS" ]; then
git remote set-branches origin master
git fetch --unshallow --quiet
git checkout master --quiet
git checkout - --quiet
- ./node_module... | bash |
d_bash_1573 | ---
+++
@@ -1,4 +1,13 @@
+#/bin/bash
+
clear
+
+# designate a listening port for our app
export PORT=5000
echo $PORT
+
+# Make sure all dependencies are downloaded/installed
+npm install
+
+# build
node_modules/.bin/jake $* | bash |
d_bash_1574 | ---
+++
@@ -8,4 +8,4 @@
/usr/local/bin/mbsync chris
# Do indexing.
-/usr/local/bin/mu index --maildir=~/Mail --lazy-check
+/usr/local/bin/mu index --lazy-check | bash |
d_bash_1575 | ---
+++
@@ -4,8 +4,9 @@
sudo apt-get update
sudo apt-get upgrade
-sudo apt-get install python-setuptools -y
+sudo apt-get install python-setuptools libffi-dev libssl-dev -y
sudo easy_install pip
+sudo pip install pyopenssl ndg-httpsclient pyasn1
sudo pip install twython
echo "Twython Installed." | bash |
d_bash_1576 | ---
+++
@@ -13,7 +13,7 @@
# Set +e before and -e after for _optional_ linters (i.e.: that will only
# output messages upon commit, e.g.: style linters).
set +e
- grep -i -E '\b(console\.)\b' $file
+ grep -i -E '\bconsole\.(assert|clear|count|countReset|debug|dir|dirxml|error|exception|group|groupCollapsed|... | bash |
d_bash_1577 | ---
+++
@@ -1,12 +1,11 @@
# compile_go_fuzzer can be found in the oss-fuzz repository
-git clone https://github.com/tdewolff/parse
-find $GOPATH/src/github.com/tdewolff/parse/tests/* -maxdepth 0 -type d | while read target
+find parse/tests/* -maxdepth 0 -type d | while read target
do
fuzz_target=`echo $target... | bash |
d_bash_1578 | ---
+++
@@ -1,4 +1,4 @@
-sudo apt-get install -qq libgeos++-dev libproj-dev build-essential liblzo2-dev liblzma-dev zlib1g-dev libprotobuf-c0-dev postgresql-contrib-9.3 postgresql-9.3-postgis-2.1-scripts protobuf-c zlib
+sudo apt-get install -qq libgeos++-dev libproj-dev build-essential liblzo2-dev liblzma-dev zlib1g... | bash |
d_bash_1579 | ---
+++
@@ -1,6 +1,8 @@
#!/bin/sh
+# shellcheck disable=SC2059
+set -e
-if locale | grep LC_CTYPE | grep -Eqi utf.?8
+if locale | grep LC_CTYPE | grep -Eqi 'utf.?8'
then
FAIL=✗
WIN=✓
@@ -15,33 +17,37 @@
WIN="\033[32m${WIN}\033[m"
fi
+DIFF="$( which colordiff || echo diff )"
+
ALL_ERRORS=
for T... | bash |
d_bash_1580 | ---
+++
@@ -15,7 +15,7 @@
for ref in $(git for-each-ref refs/remotes/$remote --format='%(refname)')
do
- refname=$(echo $ref | sed -e "s-refs/remotes/$remote/--")
+ refname=${ref#refs/remotes/$remote/}
unmerged_count=$(git cherry master $ref | grep '^+' | wc -l)
info=$(git log -n 1 --format='%an - %ar' $r... | bash |
d_bash_1581 | ---
+++
@@ -15,8 +15,8 @@
--set fullnameOverride=$RELEASE_NAME \
--set environment=$RELEASE_NAME \
--set host=$RELEASE_HOST \
- --set ingress.cluster.name=${INGRESS_CLUSTER_NAME:-blue} \
- --set ingress.cluster.weight=${INGRESS_CLUSTER_WEIGHT:-100} \
+ --set ingress.cluster.name=${INGRESS_CLUSTER_NAME} \
... | bash |
d_bash_1582 | ---
+++
@@ -9,10 +9,11 @@
echo -----------------------------------------
echo Start: host `hostname`, date `date`
-if [ -n "$SGE_TASK_ID" ]
- then
+if [ -n "$SGE_TASK_ID" ]; then
+ if [ "$SGE_TASK_ID" != "undefined" ]; then
echo Task array: $SGE_TASK_FIRST-$SGE_TASK_LAST, step=$SGE_TASK_STEPSIZE
... | bash |
d_bash_1583 | ---
+++
@@ -1,3 +1,6 @@
gclcd() {
git clone "$1" && cd "$(basename "$1" | sed 's/\.git//g')"
}
+gd^() {
+ git diff $1^ $1
+} | bash |
d_bash_1584 | ---
+++
@@ -1,4 +1,6 @@
-package app.server
+include app.server.validator.AppServerValidator
+include app.server.version.constants.AppserverVersionConstants
+include app.server.version.override.AppServerVersionOverride
include string.util.StringUtil
include string.validator.StringValidator | bash |
d_bash_1585 | ---
+++
@@ -29,9 +29,8 @@
su ${SSH_USER} <<EOF
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
source ~/.bashrc
-/home/${SSH_USER}/.pyenv/bin/pyenv install 2.7.9
/home/${SSH_USER}/.pyenv/bin/pyenv install 3.4.3
-/home/${SSH_USER}/.pyenv/bin/pyenv global 2.7.9
+/hom... | bash |
d_bash_1586 | ---
+++
@@ -16,7 +16,7 @@
fi
# Fast build and ensure test dependencies exist.
-./third_party/anvil-build/anvil-local.sh build :test_external
+./third_party/anvil-build/anvil-local.sh build -j1 :test_external
GREP="$1"
if [ -z $GREP ]; then | bash |
d_bash_1587 | ---
+++
@@ -1,12 +1,16 @@
function sa() {
if [ -f .venv/bin/activate ]; then
source .venv/bin/activate
+ elif [ -f venv/bin/activate ]; then
+ source venv/bin/activate
fi
}
function vpip() {
if [ -f .venv/bin/pip ]; then
./.venv/bin/pip $@
+ elif [ -f venv/bin/pip ]; then
+ ./venv/bin/... | bash |
d_bash_1588 | ---
+++
@@ -1,23 +1,48 @@
#!/bin/bash
-sourceDirectory="/media/popcorn/Transfer/ubuserver/Movies/*"
+sourceDirectory="/media/popcorn/Transfer/ubuserver/Movies/"
movieDirectory="/media/Media/Movies2/"
kidsDirectory="/media/Media/Kids2/"
+
+#First go into our source directory
+cd $sourceDirectory
+
+#Move all files ... | bash |
d_bash_1589 | ---
+++
@@ -1,10 +1,5 @@
#!/bin/bash
-npm install soda
-npm install assert
-npm install nano
-git clone https://github.com/daleharvey/CORS-Proxy.git
cd CORS-Proxy
-export PORT=2020
node server.js &
node_pid=$!
cd .. | bash |
d_bash_1590 | ---
+++
@@ -13,7 +13,6 @@
fi
# Includes the framework and all example projects for the platform
-# Should also include an appropriate README and license file eventually.
create_package()
{
@@ -23,7 +22,7 @@
mkdir -p Examples
cp -a ../../Examples/$1/* Examples/
find Examples -name project.pbxproj -exec s... | bash |
d_bash_1591 | ---
+++
@@ -21,6 +21,7 @@
for dest in ${!GIT_REPOS_TO_MERGE[@]}; do
if [ -d $dest/.git ]; then
cd $dest
+ /usr/bin/git reset --hard HEAD
/usr/bin/git pull
cd $environmentdir
else | bash |
d_bash_1592 | ---
+++
@@ -14,3 +14,12 @@
make "-j$(nproc)" install
popd
popd
+
+# Install sccache from binary release.
+# Note: this release does NOT yet work with nvcc.
+pushd /tmp
+curl -LOs https://github.com/mozilla/sccache/releases/download/0.2.5/sccache-0.2.5-x86_64-unknown-linux-musl.tar.gz
+tar -zxvf sccache-0.2.5-x86_6... | bash |
d_bash_1593 | ---
+++
@@ -1,12 +1,13 @@
mkdir dist -p
-filename=`date --rfc-3339=date`
-echo "Exporting to file dist/$filename.zip"
-if [ -f "dist/$filename.zip" ];
+filename=`(echo -n "dist/"; echo -n \`git describe\`; echo ".zip") | cat`
+
+echo "Exporting to file $filename"
+
+if [ -f "$filename" ];
then
echo "Can't export... | bash |
d_bash_1594 | ---
+++
@@ -12,6 +12,8 @@
setopt NUMERIC_GLOB_SORT
#
setopt EXTENDED_GLOB
+# Save lines in history that have leading spaces. (i.e copied/pasted to the term)
+unsetopt HIST_IGNORE_SPACE
#
bindkey -M vicmd 'q' push-line
# !NNN, history auto-completion after space | bash |
d_bash_1595 | ---
+++
@@ -2,7 +2,7 @@
set -eux
-versions=(1.5.0 1.5.1 1.6.0 1.7.0 1.8.0-RC4)
+versions=(1.5.0 1.5.1 1.6.0 1.7.0 1.8.0)
for i in ${versions[@]}
do | bash |
d_bash_1596 | ---
+++
@@ -4,7 +4,8 @@
source "${SCRIPT_DIR}/common.sh"
TACHYON_MASTER_JAVA_OPTS="${TACHYON_MASTER_JAVA_OPTS:-${TACHYON_JAVA_OPTS}}"
-mkdir -p "${TACHYON_LOGS_DIR}"
+# Yarn will set LOG_DIRS to point to the Yarn application log directory
+YARN_LOG_DIR="$LOG_DIRS"
echo "Formatting Tachyon Master"
@@ -13,8 +1... | bash |
d_bash_1597 | ---
+++
@@ -2,10 +2,10 @@
alias reset_home_printer="sudo sed -i -e ‘/StateMessage .*lpd failed/d’ -e ‘s/State Stopped/State Idle/’ /etc/cups/printers.conf"
alias kill_subl3="pkill subl3; pkill plugin-host"
+# add /usr/bin/core_perl if available
+[ -d "/usr/bin/core_perl" ] && path=(/usr/bin/core_perl $path)
+
# ... | bash |
d_bash_1598 | ---
+++
@@ -28,3 +28,6 @@
# Install Ruby
rvm install 2.0.0
rvm --default use 2.0.0
+
+# Install soloist (chef-solo)
+sudo gem install soloist | bash |
d_bash_1599 | ---
+++
@@ -21,6 +21,7 @@
make distclean &>/dev/null || true
phpenv local $1 &&
phpize &&
-CC=colorgcc CFLAGS="-Wall -fno-strict-aliasing" ./configure --with-yaml &&
+CC=colorgcc CFLAGS="-Wall -fno-strict-aliasing -g3" \
+ ./configure --with-yaml --enable-debug &&
make clean all &&
TEST_PHP_EXECUTABLE=$(command... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.