document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_21500 | ---
+++
@@ -7,5 +7,5 @@
# Fetch and build updated version of Doxygen from source.
wget http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.11.src.tar.gz
-tar -xzvf doxygen-1.8.11.linux.bin.tar.gz
+tar -xzvf doxygen-1.8.11.src.tar.gz
cd doxygen-1.8.11 && ./configure --prefix=$HOME/doxygen && make && make install | bash |
d_bash_21501 | ---
+++
@@ -18,7 +18,6 @@
role SOURCE # The env where the backups are.
TMP=$(mktemp -d -t deta)
-defer rm -rf $TMP
PS3="Select a previous backup to restore from (most recent first): "
select file in $(ls -t $SOURCE_PATH/*.tar.gpg); do | bash |
d_bash_21502 | ---
+++
@@ -17,8 +17,8 @@
}
prepare_data(){
- wget http://bgp.potaroo.net/as1221/asnames.txt -O asnames.txt
- wget http://archive.routeviews.org/dnszones/rib.bz2 -O rib.bz2
+ curl -sSLo asnames.txt http://bgp.potaroo.net/as1221/asnames.txt
+ curl -sSLo rib.bz2 http://archive.routeviews.org/dnszones/rib.bz2
log_... | bash |
d_bash_21503 | ---
+++
@@ -36,6 +36,7 @@
}
function deployServerless {
+ execSls "project init -c"
execSls "resources deploy"
execSls "function deploy -a"
execSls "event deploy -a" | bash |
d_bash_21504 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-if [ "$TRAVIS_BRANCH" == "prod" ]; then
+if [ "$TRAVIS_BRANCH" == "master" ]; then
dotnet pack -c Release -o ./release
nuget push ./src/DataCommand.Core/release/*.nupkg $NUGET_API_KEY -Source https://www.nuget.org/api/v2/package
fi | bash |
d_bash_21505 | ---
+++
@@ -18,6 +18,12 @@
# Install tools and apps for Devolepers
brew bundle --file=Developer-m1.bundle
+# Create the dir if it doesn't exist
+[ -e /usr/local/bin ] || sudo mkdir -p /usr/local/bin
+
+# Change owner of the dir
+sudo chown -R 'whoami':admin /usr/local/bin
+
# Install Composer tool for dependency... | bash |
d_bash_21506 | ---
+++
@@ -1,13 +1,14 @@
# If the tm command is called without an argument, open TextMate in the current directory
# If tm is passed a directory, cd to it and open it in TextMate
-# If tm is passed a file, open it in TextMate
+# If tm is passed anything else (i.e., a list of files and/or options), pass them all al... | bash |
d_bash_21507 | ---
+++
@@ -1,7 +1,9 @@
#!/bin/bash
+
+version=$(git describe | sed 's/^v//')
+
+mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$version
mvn package
-version=$(git describe | sed 's/^v//')
-
tar -cv quickstart.sh VarSim.jar generate_small_test_ref.py varsim.py varsim_somatic.py | gzip > varsim-$versi... | bash |
d_bash_21508 | ---
+++
@@ -1,2 +1,2 @@
export ANDROID_HOME=~/Library/Android/sdk
-export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH
+export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$PATH | bash |
d_bash_21509 | ---
+++
@@ -1,9 +1,4 @@
#! /bin/bash
echo "Call Unit Test"
-cd $TRAVIS_BUILD_DIR
-cd build
-if make test > /dev/null; then
- exit 0
-fi
-exit -1
-# Test output are only shown if failure happened
+cd $TRAVIS_BUILD_DIR/build
+make test | bash |
d_bash_21510 | ---
+++
@@ -15,4 +15,4 @@
docker pull ${DOCKER_IMAGE}
-docker run -w /vespa --rm -v $(pwd)/..:/vespa --entrypoint /vespa/docker/build/build-vespa-internal.sh "$DOCKER_IMAGE" "$VESPA_VERSION" "$(id -u)" "$(id -g)"
+docker run --rm -v $(pwd)/..:/vespa -w /vespa --entrypoint /vespa/docker/build/build-vespa-internal... | bash |
d_bash_21511 | ---
+++
@@ -1,4 +1,4 @@
-alias dotvim='mate $ZSH'
+alias dotvim='vim $ZSH'
alias dotcd='cd $ZSH'
alias reload='. ~/.zshrc' | bash |
d_bash_21512 | ---
+++
@@ -1 +1,6 @@
#LMS VM cleanup scripts
+PATH=/opt/puppet/bin:$PATH
+puppet config set certname ${HOSTNAME}
+puppet config set server ${HOSTNAME}
+puppet cert --generate ${HOSTNAME} --dns_alt_names "puppet,${HOSTNAME}" --verbose
+ | bash |
d_bash_21513 | ---
+++
@@ -5,4 +5,4 @@
# found in the LICENSE file.
THISDIR=$(dirname "${0}")
-PYTHONPATH="${THISDIR}/../../webkit/tools/layout_tests/:${THISDIR}/../valgrind:${THISDIR}/../python" exec "${THISDIR}/chrome_tests.py" "${@}"
+PYTHONPATH="${THISDIR}/../../webkit/tools/layout_tests/webkitpy/layout_tests:${THISDIR}/../... | bash |
d_bash_21514 | ---
+++
@@ -12,5 +12,5 @@
exit 1
fi
-R --vanilla -e "tryCatch(install.packages(pkgs=$pkgs,type='source',repos='https://www.eol.ucar.edu/software/R',lib='$rlib'),error=function(e)q(status=1))"
+R --vanilla -e "tryCatch(install.packages(pkgs=$pkgs,type='source',repos='http://www.eol.ucar.edu/software/R',lib='$r... | bash |
d_bash_21515 | ---
+++
@@ -6,5 +6,5 @@
git config --global user.email "psastras@gmail.com"
git config --global user.name $CIRCLE_PROJECT_USERNAME
git add .
-git commit -m "public:ship: $CIRCLE_BUILD_NUM"
+git commit -m "public:ship: $CIRCLE_BUILD_NUM" --allow-empty
git push --force origin gh-pages | bash |
d_bash_21516 | ---
+++
@@ -10,10 +10,3 @@
relx --system_libs $NERVES_SDK_SYSROOT/usr/lib/erlang/lib
fi
-# Trim up the generated release
-#find _rel -name "*~" -type f -print0 | xargs -0 rm -f
-#find _rel -name "src" -type d -print0 | xargs -0 rm -fr
-#find _rel -name "c_src" -type d -print0 | xargs -0 rm -fr
-#find _rel -name ... | bash |
d_bash_21517 | ---
+++
@@ -2,10 +2,11 @@
local _sublime_darwin_paths > /dev/null 2>&1
_sublime_darwin_paths=(
+ "/usr/local/bin/subl"
+ "$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
"$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
- "$HOME/Applications/Sublime Text 2.app/Contents... | bash |
d_bash_21518 | ---
+++
@@ -1,4 +1,4 @@
# Setting up virtualenv
export WORKON_HOME=~/.virtualpy
-export VIRTUALENVWRAPPER_PYTHON=`which python3`
+export VIRTUALENVWRAPPER_PYTHON=`which python36`
source /usr/bin/virtualenvwrapper_lazy.sh | bash |
d_bash_21519 | ---
+++
@@ -17,3 +17,4 @@
alias gb='git branch'
alias gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun.
alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm"
+alias gm='git merge --no-ff' | bash |
d_bash_21520 | ---
+++
@@ -18,12 +18,9 @@
# the project, zone and instance group names, and then call gcloud to add the
# named ports.
-terraform output proxy_instance_groups | awk '{print $3}' | \
- awk -F '/' '{print "--project", $7, "--zone", $9, $11}' |
-{
- while read line
- do
- gcloud compute instance-groups set-na... | bash |
d_bash_21521 | ---
+++
@@ -3,6 +3,8 @@
export PRINCIPAL="mesos_master"
export FRAMEWORK_USER="magellan"
export MASTER_ADDRESS="10.144.144.10:5050"
+export LIBPROCESS_IP="10.144.144.11"
+export LIBPROCESS_PORT="5055"
echo "************************* BUILDING WITH MAVEN ************************* "
mvn package $@
echo "**********... | bash |
d_bash_21522 | ---
+++
@@ -26,6 +26,16 @@
${group} run
done
}
+
+ failures=($(execute-tests))
+
+ if [[ ${failures} ]]; then
+ for failure in ${failures[@]}; do
+ echo ${failure}
+ done
+ else
+ Logger logInfoMsg ALL_TESTS_PASSED
+ fi
}
if [[ $(StringValidator isNull ${1}) ]]; then | bash |
d_bash_21523 | ---
+++
@@ -1,9 +1,16 @@
#!/bin/bash
-if [[ $(diff ../../POSCAR_diacetate_boxed.vasp \
- ../../test_files/POSCAR_diacetate_boxed.vasp |\
- tr -d ' \n\r\t ' | wc -c) -ne 0 ]]; then
- echo "Error: POSCAR_diacetate_boxed.vasp does not match test file"
- exit 1
-fi
- echo "Files match: success"
+Fi... | bash |
d_bash_21524 | ---
+++
@@ -5,56 +5,50 @@
pyenvpath="$HOME/.pyenv"
packages=(\
- httpie \
- goobook \
- pylint \
- requests \
- speedtest-cli \
+ httpie \
+ goobook \
+ pylint \
+ requests \
+ speedtest-cli \
)
function install () {
- if [[ -d $pyenvpath ]];then
- echo "$pyenvpath already exists... | bash |
d_bash_21525 | ---
+++
@@ -6,7 +6,8 @@
# Lockfiles are only supported on npm 5+
IFS='.' read -ra NPM_VERSION_COMPONENTS <<< "$NPM_VERSION"
if [[ "${NPM_VERSION_COMPONENTS[0]}" -ge 5 ]]; then
+ echo "INFO: npm version $NPM_VERSION supports lockfiles"
greenkeeper-lockfile-update
else
- echo "WARN: npm version $NPM_VERSION do... | bash |
d_bash_21526 | ---
+++
@@ -13,7 +13,6 @@
install_cask authy
install_cask evernote
install_cask keyboard-maestro
-install_cask skype
install_cask flux
# Install additional apps
install_cask appcleaner | bash |
d_bash_21527 | ---
+++
@@ -19,7 +19,9 @@
# TODO(bnemec): At some point this will need to be extended to support
# Python 3, but for the moment we aren't using that anyway.
inst /usr/bin/python
+ local all_of_python=()
while IFS='' read -r -d '' i; do
- inst "$i"
- done < <(find /usr/lib64/python2.7/... | bash |
d_bash_21528 | ---
+++
@@ -8,7 +8,7 @@
export PACKET_EXEC_DEVICE_SIZE="${PACKET_EXEC_DEVICE_SIZE:-baremetal_0,baremetal_1,baremetal_1e}"
export PACKET_EXEC_PREFER_FACILITIES="${PACKET_EXEC_PREFER_FACILITIES:-iad1,iad2,ewr1,dfw1,dfw2,sea1,sjc1,lax1}"
export PACKET_EXEC_OPERATING_SYSTEM="${PACKET_EXEC_OPERATING_SYSTEM:-ubuntu_18_0... | bash |
d_bash_21529 | ---
+++
@@ -10,6 +10,7 @@
CLASSPATH="${D}/../build/classes:${CLASSPATH}"
export CLASSPATH
-GROOVY_DIR="${D}/groovy"
+GROOVY_HOME="${D}/groovy"
+export GROOVY_HOME
-exec "${GROOVY_DIR}/bin/groovy" "$@"
+exec "${GROOVY_HOME}/bin/groovy" "$@" | bash |
d_bash_21530 | ---
+++
@@ -3,7 +3,7 @@
CURRENTDIR="./catscripts/Entertainment/Cartoons"
$CURRENTDIR/American_Dad/AmericanDad.sh
-$CURRENTDIR/Avatar_The_Last_Airbdender/Avatar.sh
+$CURRENTDIR/Avatar_The_Last_Airbender/Avatar.sh
$CURRENTDIR/Dora_the_Explorer/Dora.sh
$CURRENTDIR/Family_Guy/FamilyGuy.sh
$CURRENTDIR/Futurama/Futu... | bash |
d_bash_21531 | ---
+++
@@ -9,7 +9,6 @@
cat .env.docker | envsubst > .env && cat .env
composer dump-autoload
-php artisan optimize
php artisan package:discover
php artisan firefly:instructions install
exec apache2-foreground | bash |
d_bash_21532 | ---
+++
@@ -2,4 +2,4 @@
echo 'Downloading the 19-layer VGG ILSVRC-2014 model (http://www.robots.ox.ac.uk/~vgg/research/very_deep/).'
-curl -O 'http://www.robots.ox.ac.uk/%7Evgg/software/very_deep/caffe/VGG_ILSVRC_19_layers.caffemodel'
+curl -O 'https://style-transfer.s3-us-west-2.amazonaws.com/VGG_ILSVRC_19_laye... | bash |
d_bash_21533 | ---
+++
@@ -6,4 +6,4 @@
vim -E -s -u "$HOME/.vimrc" +PlugInstall +qall
-sudo apt-get install cloc ctags fzf silversearcher-ag tree
+sudo apt-get install -y cloc ctags fzf silversearcher-ag tree | bash |
d_bash_21534 | ---
+++
@@ -20,4 +20,32 @@
make -f "${erlangMkFile}" bootstrap bootstrap-rel
}
+# Install the Erlang language server.
+install_erlang_ls() {
+ local erlangLsGitRepoUrl="https://github.com/erlang-ls/erlang_ls.git"
+ local erlangLsDest="${WS:-${HOME}/workspace}/erlang_ls"
+ # The directory containing the "bin/... | bash |
d_bash_21535 | ---
+++
@@ -4,6 +4,9 @@
# oh-my-zsh
git clone https://github.com/robbyrussell/oh-my-zsh ~/.oh-my-zsh
+
+# Terminal solarized
+git clone https://github.com/tomislav/osx-terminal.app-colors-solarized ~/.osx_terminal_solarized
source install/link.sh
| bash |
d_bash_21536 | ---
+++
@@ -14,6 +14,7 @@
cd $EXIST_NIGHTLY_SRC
./build.sh clean
+rm -rf $EXIST_NIGHTLY_SRC/extensions/modules/lib
## stash can be used if we have any build changes locally
# git stash save "local build fixes" | bash |
d_bash_21537 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
echo "<html><ul>" > change-notes.html
-git log `git describe --tags --abbrev=0`..HEAD --oneline --pretty=format:"<li>%h %s (%an)</li>" >> change-notes.html
+git log `git describe --tags --abbrev=0`..HEAD --no-merges --oneline --pretty=format:"<li>%h %s (%an)</li>" >> chan... | bash |
d_bash_21538 | ---
+++
@@ -21,7 +21,7 @@
}
build() {
- /usr/bin/cabal build
+ /usr/local/bin/cabal build
}
generate_report() { | bash |
d_bash_21539 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
BRANCH=master
-TARGET_REPO=diana-hep/diana-hep.github.io.git
+TARGET_REPO=s2i2-hep/s2i2-hep.github.io.git
PELICAN_OUTPUT_FOLDER=output
echo -e "Testing travis-encrypt" | bash |
d_bash_21540 | ---
+++
@@ -2,11 +2,10 @@
# Script to produce the source distribution package
if [ "$#" -ne 1 ]; then
- echo "Script to produce the source distribution package"
+ echo "Script to produce the source distribution package. If no version is specified, a source package will be built without a version number"
... | bash |
d_bash_21541 | ---
+++
@@ -12,7 +12,11 @@
export GIT_TAG_DATE_BASED=true
fi
if [[ -z "$GIT_BRANCH" ]]; then
- export GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
+ if [[ -n "$CI_COMMIT_REF_NAME" ]]; then
+ export GIT_BRANCH="$CI_COMMIT_REF_NAME"
+ else
+ export GIT_BRANCH=$(git rev-parse --abbrev-ref ... | bash |
d_bash_21542 | ---
+++
@@ -11,7 +11,7 @@
fi
# Run cis celery worker
-celery -A mozillians worker -Q cis -l INFO -n cis@%h -c $conc &
+celery -A mozillians worker -Q cis -l INFO -n cis@%h -Ofair -c $conc &
status=$?
if [ $status -ne 0 ]; then
echo "Failed to start cis worker: $status" | bash |
d_bash_21543 | ---
+++
@@ -1,11 +1,12 @@
#!/bin/bash
+set -e
set -v
-set -e
# Enable APIs
gcloud services enable vision.googleapis.com
gcloud services enable cloudfunctions.googleapis.com
+gcloud services enable appengine.googleapis.com
gcloud services enable firestore.googleapis.com
# Create a public EU multi-region b... | bash |
d_bash_21544 | ---
+++
@@ -21,6 +21,11 @@
append-path ~/Library/Python/2.7/bin
fi
+function ram-disk {
+ local BLOCKS=$(( ${1:?You must provide a size in MiB.} * 2048 ))
+ diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nomount ram://$$BLOCKS`
+}
+
append-path /usr/local/sbin
append-path /usr/local/bin
append-path ... | bash |
d_bash_21545 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash
+''#!/bin/bash
# functions.sh
# Caleb Evans
@@ -10,7 +10,7 @@
# Makes new Python virtualenv for current directory
mkvirtualenv() {
- virtualenv -p "$1" "$VIRTUAL_ENV_NAME"
+ virtualenv --python="$1" "$VIRTUAL_ENV_NAME"
# Activate virtualenv so packages can be installed
... | bash |
d_bash_21546 | ---
+++
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
-#
-# This is our helper script that's gonna execute specs in all of our packages for us
-#
+# Usage:
+# To run specs in all packages do `./test.sh`
+# To run specs in a specific package named 'fs' do `SPEC_PACKAGE=fs ./test.sh`
ROOT_DIRECTORY=$( cd $(dirname $0) ; ... | bash |
d_bash_21547 | ---
+++
@@ -9,7 +9,6 @@
touch index.txt
export COMMONNAME="EC CA for $DOMAIN"
export ALTNAME=email:info@$DOMAIN
-cd ca/ec
# Create key
openssl ecparam -out private/cakey.pem -genkey -name prime256v1
# Create and sign request | bash |
d_bash_21548 | ---
+++
@@ -1,6 +1,9 @@
#!/bin/bash
-for i in `find . -name '*.c'` # or whatever other pattern...
+for i in `find . -name '*.c' -o -name '*.cpp' -o -name '*.h'`
do
- cat author.info $i >$i.new && mv $i.new $i
+ if ! grep -q "Author:" $i
+ then
+ cat author.info $i > $i.new && mv $i.new $i
+ fi
done | bash |
d_bash_21549 | ---
+++
@@ -21,7 +21,7 @@
# Upgrade Jenkins server container.
source ~/jenkins-docker/upgradeJenkins.sh
-while [ -z "$(docker logs ${JENKINS_NAME} 2>&1 | tail -n 5 | grep "Jenkins is fully up and running")" ]; do
+while [ -z "$(docker logs ${JENKINS_NAME} 2>&1 | tail -n 5 | grep "setting agent port for jnlp")" ];... | bash |
d_bash_21550 | ---
+++
@@ -15,6 +15,11 @@
# limitations under the License.
#
+# We don't want to run memory debugging on java ;)
+unset LD_PRELOAD
+unset MALLOC_DEBUG
+unset UMEM_DEBUG
+
# This is a wrapper script to start the Couchbase Mock server.
# We could have started it directly from the C code, but by using
# a scri... | bash |
d_bash_21551 | ---
+++
@@ -20,8 +20,9 @@
ng build --prod
mv /app/frontend/dist/* /app/api-server/public/
-pm2 start ts-node /app/api-server/src/app.ts
-pm2 start ts-node /app/crawler/src/index.ts
+cd /app/api-server/ && ts-node src/app.ts & cd /app/crawler/ && ts-node src/index.ts
+#pm2 start ts-node /app/api-server/src/app.t... | bash |
d_bash_21552 | ---
+++
@@ -14,7 +14,7 @@
export VIRT_DRIVER=docker
export HOST_IP=$HOST_IP
export KEYSTONE_ADMIN_BIND_HOST=0.0.0.0
-export DOCKER_REGISTRY_IMAGE=samalba/docker-registry
+export DOCKER_REGISTRY_IMAGE=registry
export DEFAULT_IMAGE_NAME=cirros
export IMAGE_URLS=" "
EOF | bash |
d_bash_21553 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/sh
-java -Djava.net.useSystemProxies=true -Dbasename=`basename "$0"` -jar /usr/share/jsign/jsign-@VERSION@.jar "$@"
+java -Djava.net.useSystemProxies=true -Dbasename=`basename "$0"` -Dlog4j2.loggerContextFactory=net.jsign.log4j.simple.SimpleLoggerContextFactory -jar /usr/share/jsign/... | bash |
d_bash_21554 | ---
+++
@@ -17,12 +17,13 @@
15,24
-3,2
EOB
-hdfs dfs -test -e points.csv || hdfs dfs -put points.csv hdfs:///user/${USER}/
+hdfs dfs -test -d csv || hdfs dfs -mkdir csv
+hdfs dfs -test -e csv/points.csv || hdfs dfs -put points.csv csv/points.csv
cat >hive.sql <<EOB
create database if not exists testdb location... | bash |
d_bash_21555 | ---
+++
@@ -3,6 +3,6 @@
sudo rm -rf /Library/PreferencePanes/Growl.prefPane
#The installer will have killed these if this is a fresh install but not if it is an upgrade... where upgrade is defined fairly inconsistently. Killing the system prefs by name won't work for non-English systems, but the attempt is bette... | bash |
d_bash_21556 | ---
+++
@@ -28,8 +28,8 @@
function svn_dirty_choose {
if [ $(in_svn) ]; then
- s=$(svn status|grep -E '^\s*[ACDIM!?L]' 2>/dev/null)
- if [ $s ]; then
+ svn status 2> /dev/null | grep -Eq '^\s*[ACDIM!?L]'
+ if [ $pipestatus[-1] -ne 0 ]; then
echo $1
else
... | bash |
d_bash_21557 | ---
+++
@@ -26,7 +26,7 @@
status_return=0 # everything passed
# Print out Ruby version
-bundle exec ruby --version
+ruby --version
# Run Tets
for product in \ | bash |
d_bash_21558 | ---
+++
@@ -5,10 +5,10 @@
exit 0;
fi
-git clone --depth 1 -b stable https://github.com/jedisct1/libsodium.git
-cd libsodium
+cd ${HOME}
+git clone --depth 1 -b stable https://github.com/jedisct1/libsodium.git libsodium-git
+cd libsodium-git
./autogen.sh
./configure --prefix=${HOME}/libsodium && make && make... | bash |
d_bash_21559 | ---
+++
@@ -14,5 +14,5 @@
--url https://repo.spring.io \
--user $ARTIFACTORY_USERNAME \
--password $ARTIFACTORY_PASSWORD \
- target/release/libjvmkill.* \
+ "target/release/libjvmkill.*" \
$ARTIFACTORY_REPOSITORY/org/cloudfoundry/jvmkill/$VERSION/jvmkill-$(echo $VERSION | sed "s|SNAPSHOT|$(date '+%Y%m%d... | bash |
d_bash_21560 | ---
+++
@@ -6,6 +6,6 @@
conda install --file requirements.txt
sphinx-apidoc -M -f -o api ../pocean ../pocean/tests
make html
- doctr deploy . --built-docs=_site/html
+ doctr deploy --built-docs=_site --gh-pages-docs .
cd ..
fi | bash |
d_bash_21561 | ---
+++
@@ -21,7 +21,7 @@
# Create bundle:
cd .keter-bundle
-tar czfv zoomhub.keter zoomhub public config
+tar czfv zoomhub.keter zoomhub public config scripts
cd -
# Move bundle to root: | bash |
d_bash_21562 | ---
+++
@@ -1,3 +1,3 @@
function branchize() {
- echo "$@" | tr ' ' '-' | tr '[A-Z]' '[a-z]' | tr '[' '-' | tr ']' '-' | tr '#' '-' | sed -e 's/--/-/g' | sed -e 's/--/-/g'
+ echo "$@" | tr '[A-Z]' '[a-z]' | sed -e 's/[^a-z0-9]/-/g' | sed -e 's/--/-/g' | sed -e 's/--/-/g'
} | bash |
d_bash_21563 | ---
+++
@@ -29,7 +29,7 @@
if [[ ! repo =~ ^\w+:// ]]; then
repo=https://github.com/$repo
fi
- if git clone -q "$repo"; then
+ if SSH_ASKPASS=true git clone -q "$repo"; then
cd "$(basename "$repo" .git)"
. ./radia-run.sh
fi | bash |
d_bash_21564 | ---
+++
@@ -3,6 +3,13 @@
#Remove 127.0.1.1 line
file="/etc/hosts"
sed -i '/127.0.1.1/d' $file
+hostname=`hostname`
+ip_address=`hostname -I`
+host_entry="$ip_address$hostname"
+# Add ip_address hostname information to /etc/hosts file if does not exist
+if ! grep -q "$host_entry" "$file"; then
+ echo $host_entry >... | bash |
d_bash_21565 | ---
+++
@@ -29,6 +29,7 @@
ln -s .bash-config/profile "${HOME}/.profile"
ln -s .bash-config/bashrc "${HOME}/.bashrc"
ln -s .bash-config/gitconfig "${HOME}/.gitconfig"
+ ln -s .bash-config/jqconfig "${HOME}/.jq"
ln -s "${HOME}/.bash-config/platform/${PLATFORM}" "${HOME}/.bash-config/curre... | bash |
d_bash_21566 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
rm -rf venv-csmpe
-virtualenv venv-csmpe && \
+virtualenv -p python-2.7.10 venv-csmpe && \
source venv-csmpe/bin/activate && \
wget --no-check-certificate https://raw.githubusercontent.com/anushreejangid/csmpe-main/master/requirements.txt -O requirements.txt && \
pip install -... | bash |
d_bash_21567 | ---
+++
@@ -1,9 +1,10 @@
#! /usr/bin/env bash
if [ "$(uname)" == "Darwin" ]; then
- curl -o dotnet-sdk-2.0.0-osx-gs-x64.pkg -k https://download.microsoft.com/download/0/F/D/0FD852A4-7EA1-4E2A-983A-0484AC19B92C/dotnet-sdk-2.0.0-osx-gs-x64.pkg
- sudo installer -pkg dotnet-sdk-2.0.0-osx-gs-x64.pkg -target $PWD... | bash |
d_bash_21568 | ---
+++
@@ -1,5 +1,5 @@
# Only set this if we haven't set $EDITOR up somewhere else previously.
if [[ "$EDITOR" == "" ]] ; then
- # Use sublime for my editor.
- export EDITOR='subl'
+ # Use Vim for my editor.
+ export EDITOR='vim'
fi | bash |
d_bash_21569 | ---
+++
@@ -13,8 +13,8 @@
virsh undefine instack || true;
export NODE_DIST=centos7;
-export NODE_CPU=4;
-export NODE_MEM=16384;
+export NODE_CPU=1;
+export NODE_MEM=4096;
export UNDERCLOUD_NODE_CPU=4;
export UNDERCLOUD_NODE_MEM=16384;
export NODE_COUNT=6; | bash |
d_bash_21570 | ---
+++
@@ -1,13 +1,13 @@
#!/bin/bash
-case $(lsb_release -cs) in
- 'wheezy')
- easy_install pip
- pip install ansible
- ;;
- *)
+case $(lsb_release -is) in
+ 'ubuntu')
apt-add-repository ppa:ansible/ansible
apt-get -qy update
apt-get -qy install ansible
;;... | bash |
d_bash_21571 | ---
+++
@@ -6,5 +6,5 @@
git checkout documents && git merge account --no-edit
git checkout wiki && git merge account --no-edit
git checkout team-wiki && git merge wiki --no-edit
- git checkout waitinglist && git merge wiki --no-edit
+ git checkout waitinglist && git merge zero --no-edit
) | bash |
d_bash_21572 | ---
+++
@@ -11,4 +11,4 @@
echo "AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID"
echo "AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY"
-aws s3 cp restheart-platform-*.zip s3://download.restheart.com
+aws s3 cp dist/restheart-platform-*.zip s3://download.restheart.com | bash |
d_bash_21573 | ---
+++
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
if [ "$IS_COVERAGE_BUILD" == 1 ]; then
- coveralls --exclude externals --gcov-options '\-lp'
+ coveralls --exclude externals --exclude test --exclude CMakeFiles --gcov-options '\-lp'
fi | bash |
d_bash_21574 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
rootdir='..'
-cmd=$(clang++ -### -c -I${rootdir}/src -I${rootdir}/lib/MIPP/src -I${rootdir}/lib/rang/include -I${rootdir}/lib/date/include/date -std=gnu++11 ${rootdir}/src/aff3ct.hpp 2>&1 |tail -1|sed 's/^ //;s/emit-pch/ast-print/;s/"-o" "[^"]*"/"-o" "aff3ct_ast.txt"/');
+cmd=$(c... | bash |
d_bash_21575 | ---
+++
@@ -7,4 +7,5 @@
rm -rf /tmp/Fedora-PostInstall
cd /tmp
git clone -q https://github.com/$gituser/Fedora-PostInstall.git
+`whoami` > /tmp/Fedora-PostInstall/user.txt
sudo sh /tmp/Fedora-PostInstall/Fedora$(rpm -E %fedora).sh | bash |
d_bash_21576 | ---
+++
@@ -23,7 +23,7 @@
cd /usr/src
-url="https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz"
+url="https://mirrors.edge.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz"
echo "Downloading $url"
curl -# -LO $url
| bash |
d_bash_21577 | ---
+++
@@ -16,7 +16,7 @@
git add docs yarn.lock
-git commit --allow-empty -m 'update gh-pages [skip ci]'
+git commit -m 'update gh-pages [skip ci]'
cd ..
| bash |
d_bash_21578 | ---
+++
@@ -31,3 +31,8 @@
log_msg "Status of previous command $?"
done
)
+
+# cleaup data folder.
+(
+ cd $SCRIPT_DIR/data && git clean -fxd -e "_mails*" .
+) | bash |
d_bash_21579 | ---
+++
@@ -2,19 +2,16 @@
SSH_USER=${SSH_USERNAME:-vagrant}
-export HOME=/home/${SSH_USER}
-
-RVM_PATH=${HOME}/.rvm
-
+su ${SSH_USER} <<EOF
echo "==> Trusting Michal Papis"
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
echo "==> Installing RVM"
curl -sSL https://get.rvm.io | bash -s stable
+source ~... | bash |
d_bash_21580 | ---
+++
@@ -13,7 +13,7 @@
git remote rm origin || true
git remote add origin https://github.com/$2
git fetch origin
-git checkout $3 --force
+git checkout $3
git pull origin $3 --rebase
chown -R $4:$5 .
END_HASH=$(git rev-parse HEAD) | bash |
d_bash_21581 | ---
+++
@@ -1,7 +1,15 @@
#!/bin/sh
+
+set -e
# This little script is just to remember the incantation to update the bigquery
# schema. If you don't know what this is, you don't need to run it (and likely
# don't have permission to anyhow).
+
+# Fist, make sure you run up-to-date bqschemaupdater,
+# since it's n... | bash |
d_bash_21582 | ---
+++
@@ -10,12 +10,10 @@
if [[ -n "$ANDROID_SDK" ]]
then
- if [ "$(ls -A /usr/local/Cellar/android-sdk)" ]
+ if [ ! "$(ls -A /usr/local/Cellar/android-sdk)" ]
then
- echo "Android sdk installed from Homebrew; not adding to path."
- else
- echo "Android sdk was not installed from Homebrew; adding sdk to p... | bash |
d_bash_21583 | ---
+++
@@ -17,5 +17,11 @@
enable_debugging
source /opt/cpm/bin/setenv.sh
+hostname=${HOSTNAME?}
-$PGROOT/bin/pg_isready -h $HOSTNAME --dbname=postgres --username=$PG_USER
+if [[ -v PGHOST ]]
+then
+ hostname=${PGHOST}
+fi
+
+$PGROOT/bin/pg_isready -h ${hostname?} --dbname=postgres --username=$PG_USER | bash |
d_bash_21584 | ---
+++
@@ -4,8 +4,8 @@
months=( January February March April May June July August September October November December )
-startyear=1999
-endyear=2013
+startyear=2000
+endyear=2014
year=$startyear
@@ -17,7 +17,7 @@
do
filename=$baseurl$year'-'$month'.txt.gz'
echo "$filename"
- wget "${filena... | bash |
d_bash_21585 | ---
+++
@@ -1,3 +1,3 @@
-wget --quiet -O - get.pharo.org/61+vm | bash
+wget --quiet -O - get.pharo.org/64/61+vm | bash
REPO=http://smalltalkhub.com/mc/RMoD/Ecstatic/main
./pharo Pharo.image config $REPO ConfigurationOfEcstatic --install=0.9.1 --group='ALL' | bash |
d_bash_21586 | ---
+++
@@ -10,3 +10,8 @@
rm -fr /var/lib/puppet/ssl/*
/etc/init.d/puppet start
+
+SWAP_DISKS=$(blkid -s TYPE | grep -i swap | cut -d ":" -f 1)
+for DSK in $SWAP_DISKS; do
+ swapon $DSK
+done | bash |
d_bash_21587 | ---
+++
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
EVENTSTORE_DIR="{EventStoreInstallPath}"
cd $EVENTSTORE_DIR
-LD_LIBRARY_PATH=${EVENTSTORE_DIR}:$LD_LIBRARY_PATH ${EVENTSTORE_DIR}/eventstored $@
+LD_LIBRARY_PATH=${EVENTSTORE_DIR}:$LD_LIBRARY_PATH ${EVENTSTORE_DIR}/eventstored --db ./db --log ./log --run-projections=syst... | bash |
d_bash_21588 | ---
+++
@@ -23,4 +23,18 @@
feval(sprintf("p%d",i))
closefig
endfor
+
+#plot equivalent of x??c examples.
+global device file
+device="$driver"
+#For file output 14 and 17 are not suitable, and 19 is not done
+#(and should probably be dropped anyway since the map stuff is not
+#in the API that is supposed to ... | bash |
d_bash_21589 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
if [[ -n $AUTO_BAMBOO_HOST ]]; then
-sed -i "s/^.*Endpoint\": \"\(http:\/\/haproxy-ip-address:8000\)\".*$/ \"EndPoint\": \"$HOST\",/" \
+sed -i "s/^.*Endpoint\": \"\(http:\/\/haproxy-ip-address:8000\)\".*$/ \"EndPoint\": \"$HOST:8000\",/" \
${CONFIG_PATH:=config/produc... | bash |
d_bash_21590 | ---
+++
@@ -14,6 +14,7 @@
cd $APP_DIR
$PYTHON manage.py $*
elif [ "$1" = "worker" ]; then
+ cd $APP_DIR
export C_FORCE_ROOT="true"
$VENV_DIR/bin/celery -A lop_farm worker
elif [ "$1" = "test" ]; then | bash |
d_bash_21591 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
fetchmail
-/usr/local/bin/email_watcher /usr/local/var/lib/tuelib/email_watcher.conf /home/qubjr01/mbox
+/usr/local/bin/email_watcher /usr/local/var/lib/tuelib/email_watcher.conf /home/email_watcher/mbox | bash |
d_bash_21592 | ---
+++
@@ -1,19 +1,22 @@
l=`pacaur -Qi linux | sed -n 's/^Version \+: //p'`
r=`pacaur -Si linux | sed -n 's/^Version \+: //p'`
c=`vercmp "$l" "$r"`
+vertab() {
+ printf '%s\t%c\t%s\n' local ' ' remote "$1" "$2" "$3" | column -s ' ' -t
+}
echo "Checking kernel version…" 1>&2
case $c in
-1)
- echo "$l (loc... | bash |
d_bash_21593 | ---
+++
@@ -2,6 +2,7 @@
set -evx
+gem environment
bundler_version=$(grep bundler omnibus_overrides.rb | cut -d'"' -f2)
-gem install bundler -v $bundler_version
+gem install bundler -v $bundler_version --user-install
bundle _${bundler_version}_ install | bash |
d_bash_21594 | ---
+++
@@ -5,7 +5,7 @@
TEST_DIR="test/manual-testcases/"
TEST_PREFIX="testcase"
TEST_POSTFIX=".txt"
-TEST_COUNT=16
+TEST_COUNT=17
APP_PATH="bin/tinygrep"
echo "-- Running $TEST_COUNT testcases with tinygrep." | bash |
d_bash_21595 | ---
+++
@@ -20,4 +20,4 @@
ENVIRONMENT="production"
fi
-./deploy.sh "$LAMBCI_BRANCH" "80,88,100,300,500"
+./deploy.sh "$ENVIRONMENT" "80,88,100,300,500" | bash |
d_bash_21596 | ---
+++
@@ -12,14 +12,17 @@
sdkmanager --list
emulator -list-avds
emulator-check accel hyper-v cpu-info
+# https://developer.android.com/studio/run/emulator-commandline#startup-options
emulator -verbose -avd android-emulator-${EMULATOR_SDK_VERSION} \
-no-accel \
-no-audio \
-no-windo... | bash |
d_bash_21597 | ---
+++
@@ -1,8 +1,4 @@
-OPAM_EXECUTABLE_PATH=$(which opam) || return 1
-function opam () {
- "$OPAM_EXECUTABLE_PATH" "$@"
- if [ -n "$1" ] && [ "$1" = "switch" ]
- then
- eval $("$OPAM_EXECUTABLE_PATH" config -env)
- fi
-}
+function opam-switch-eval () {
+ opam switch "$@" --no-warning
+ ... | bash |
d_bash_21598 | ---
+++
@@ -13,6 +13,7 @@
PATH="$PATH:$HOME/Library/Python/2.7/bin"
PATH="$PATH:$HOME/perl5/bin";
PATH="$PATH:$(yarn global bin)"
+ PATH="$HOME/.yarn/bin:$PATH"
export PATH
MANPATH="/usr/local/man:$MANPATH" | bash |
d_bash_21599 | ---
+++
@@ -1,15 +1,15 @@
#!/bin/bash -l
set -e
-# BUILD_FLOW_GIT_COMMIT gets set in the bosh_build_flow jenkins jobs. This is used to ensure we check out
-# the same git commit for all jenkins jobs in the flow.
+git clean -df && git checkout . # ensure that any modifications or stray files are removed
+rm -rf .b... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.