document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_20900 | ---
+++
@@ -1 +1,4 @@
-alias factor_long_time='factor 12121212121212121212121212121212121212'
+# Test time measurement function from aftermath plugin.
+alias factor-short-time='factor 123123123123123123123123123123123123117' # Needs approx 1-2 seconds
+alias factor-medium-time='factor 1231231231231231231231231231231... | bash |
d_bash_20901 | ---
+++
@@ -1,4 +1,11 @@
#!/bin/bash
+# Update permissions so that Nginx can access files
+chown www-data:root /var/www/ -R
+
+# Start services (HHVM and Nginx)
+echo "Starting HHVM server..."
service hhvm start
+
+echo "Starting Nginx server..."
nginx | bash |
d_bash_20902 | ---
+++
@@ -6,4 +6,4 @@
alias nnmi="nnm && npm i"
alias npv="node -p \"require('./package.json').version\""
alias babel-nodemon="nodemon --exec babel-node -- "
-alias npmiglobals='npm i -g nodemon bunyan jira-cl git-branch-select git-commits-since'
+alias npmiglobals='npm i -g yarn nodemon bunyan jira-cl git-branc... | bash |
d_bash_20903 | ---
+++
@@ -11,5 +11,5 @@
sudo apt-get install -y tig
fi
- rcup -f -d dotfiles -x install.sh -x gitconfig -f .zshrc
+ rcup -f -d dotfiles -x install.sh -x gitconfig -f zshrc
fi | bash |
d_bash_20904 | ---
+++
@@ -1,23 +1,51 @@
-# Based on code from Joseph M. Reagle
-# http://www.cygwin.com/ml/cygwin/2001-06/msg00537.html
+#
+# INSTRUCTIONS
+#
+# To enabled agent forwarding support add the following to
+# your .zshrc file:
+#
+# zstyle :omz:plugins:ssh-agent agent-forwarding on
+#
+#
+# CREDITS
+#
+# Base... | bash |
d_bash_20905 | ---
+++
@@ -10,4 +10,16 @@
execute "defaults write com.apple.appstore ShowDebugMenu -bool true" \
"Enable debug menu"
+execute "defaults write com.apple.commerce AutoUpdate -bool true" \
+ "Turn on auto-update"
+
+execute "defaults write com.apple.SoftwareUpdate AutomaticCheckEnabled -bool true" \
+ "En... | bash |
d_bash_20906 | ---
+++
@@ -11,4 +11,4 @@
# Create a demo cloud image - the bare metal image that gets deployed to each
# node.
-~/baremetal-initrd-builder/bin/disk-image-create -o $DEVSTACK_PATH/files/demo salt
+~/baremetal-initrd-builder/bin/disk-image-create -o $DEVSTACK_PATH/files/demo base salt | bash |
d_bash_20907 | ---
+++
@@ -5,6 +5,8 @@
ulimit -c unlimited; # Set core dump size as Ubuntu 14.04 lacks prlimit.
ulimit -a # Display all ulimit settings for transparency.
+
+METEOR_SELF_TEST_RETRIES=0
pushd tools
# Ensure that meteor/tools has no TypeScript errors.
@@ -15,3 +17,37 @@
echo "meteor get-ready starting"
./mete... | bash |
d_bash_20908 | ---
+++
@@ -3,4 +3,4 @@
git fetch
docker run --rm -e ZULIP_CLI_TOKEN -v ~/.config:/home/akvo/.config -v "$(pwd)":/app \
- -it akvo/akvo-devops:20200810.101253.a1dbc6a promote-test-to-prod.sh rsr rsr-version akvo-rsr zulip
+ -it akvo/akvo-devops:20201110.135154.8d39c9c promote-test-to-prod.sh rsr rsr-version akv... | bash |
d_bash_20909 | ---
+++
@@ -19,7 +19,7 @@
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
-git add .
+git add --force .
git log -n 3
| bash |
d_bash_20910 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/sh
+
+set -e
FRAMEWORK_URI=https://github.com/neonichu/ContentfulDeliveryAPIFramework/releases/download/1.2.0/ContentfulDeliveryAPI.tar.gz
PLAYGROUND_DIR="${HOME}/Library/Developer/Playground Frameworks"
@@ -7,11 +9,11 @@
PLUGINS_DIR="${HOME}/Library/Application Support/Developer/... | bash |
d_bash_20911 | ---
+++
@@ -1,2 +1,3 @@
#!/bin/bash
-/bin/bash -c "scp -o StrictHostKeyChecking=no -r -i /key/process_maker.pem /var/lib/go-agent/pipelines/Deploy/ ubuntu@ec2-54-252-242-51.ap-southeast-2.compute.amazonaws.com:/opt/processmaker/"
+/bin/bash -c "ssh -o StrictHostKeyChecking=no -i /key/process_maker.pem ubuntu@ec2-54-... | bash |
d_bash_20912 | ---
+++
@@ -17,11 +17,11 @@
rm -rf $REPORTS_DIR -
mkdir $COVERAGE_DIR
-lcov --capture --directory . --output-file $COVERAGE_DIR/full_report.info
-lcov --remove $COVERAGE_DIR/full_report.info '/usr/*' '*/test/*' '*/src/3rd*' '*/build/src/*' --output-file $COVERAGE_DIR/coverage.info
+lcov --quiet --capture --direc... | bash |
d_bash_20913 | ---
+++
@@ -13,6 +13,8 @@
[Nn]* ) echo "Aborting..."; exit 1;;
esac
fi
+
+mkdir -p $HOME/.vim
echo "Copying new vimrc file."
cp ./files/vimrc $VIMRC | bash |
d_bash_20914 | ---
+++
@@ -1,19 +1,26 @@
#!/bin/bash
-ACTIVATE=$1/bin/activate
-DIR="$(cd "$(dirname "$0")" && pwd)"
-if ! [ -f $ACTIVATE ]; then
- echo 'invalid Mozilla Addon SDK path: '$1 > $3
- echo 'Program terminated unsuccessfully.' >> $3
- exit 1
-fi
-if ! [ -f $2 ]; then
- echo 'invalid Firefox binary path: '$2... | bash |
d_bash_20915 | ---
+++
@@ -15,9 +15,12 @@
git config credential.helper "store --file=.git/credentials"
echo "https://$GH_TOKEN:@github.com" > .git/credentials
+# configure commit author
+git config user.email "bot@travis-ci.com"
+git config user.name "Travis-CI Bot"
# commit changes
git add --all
-git commit --author="Travis-... | bash |
d_bash_20916 | ---
+++
@@ -14,6 +14,11 @@
EXTRA_ARGS+="--enable-fast"
fi
rm -rf ./config.status ./autom4te.cache
+
+if [ ! -z "$EXM_DEBUG_BUILD" ]; then
+ export CFLAGS="-g -O0"
+fi
+
./setup.sh
./configure --enable-shared --prefix=${C_UTILS_INST} ${EXTRA_ARGS} CC=gcc
make -j ${MAKE_PARALLELISM} | bash |
d_bash_20917 | ---
+++
@@ -21,8 +21,6 @@
#############################################################################
main() {
- clear
-
msg "Entering temporary directory"
mkdir $tmp_dir
cd $tmp_dir | bash |
d_bash_20918 | ---
+++
@@ -16,7 +16,7 @@
proto=1
fi
- go test -v -proto=$proto -rf=3 -cluster=$(ccm liveset) -clusterSize=$clusterSize -autowait=5000ms ./...
+ go test -v -proto=$proto -rf=3 -cluster=$(ccm liveset) -clusterSize=$clusterSize -autowait=2000ms ./...
ccm clear
} | bash |
d_bash_20919 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-VERSION=0.4.3
+VERSION=0.4.5
TMPDIR=/tmp/google-api-php-client
RELFILE=/tmp/google-api-php-client-${VERSION}.tar.gz
| bash |
d_bash_20920 | ---
+++
@@ -14,6 +14,7 @@
fi
cd "$1"
-./configure --enable-gold=default --enable-threads --prefix=/build/output
+./configure --enable-gold=default --enable-threads --enable-plugins \
+ --prefix=/build/output
make -j8 all
make install | bash |
d_bash_20921 | ---
+++
@@ -14,5 +14,5 @@
# Create a new release to trigger automated Zenodo archiving
git tag $current_date
git push --quiet deploy --tags > /dev/null 2>&1
- curl -v -i -X POST -H "Content-Type:application/json" -H "Authorization: token $GITHUB_RELEASE_TOKEN" https://api.github.com/repos/weecology/... | bash |
d_bash_20922 | ---
+++
@@ -1,21 +1,28 @@
#!/bin/bash
# highlight differences between common files in two given directories
-if [ $1 ] && [ $2 ]; then
-
- cmd="diff --suppress-blank-empty --suppress-common-lines --ignore-all-space"
-
- if [[ $3 == *"-u"* ]]; then
- cme=" --unified=0"
- fi
-
- cmf=" $1 $2 | g... | bash |
d_bash_20923 | ---
+++
@@ -32,3 +32,6 @@
alias socksoff='networksetup -setsocksfirewallproxystate "Wi-Fi" off'
alias socksquery='networksetup -getsocksfirewallproxy "Wi-Fi"'
alias serviceorder='networksetup -listnetworkserviceorder | grep "\([0-9]\)" | grep -v Port | cut -d " " -f 2'
+
+# Fix 'Open With' being slow/not working
+... | bash |
d_bash_20924 | ---
+++
@@ -3,5 +3,6 @@
cd "$( cd "$( dirname "$0" )" && pwd )/.."
#echo Running quiet build.
-time mvn clean install -P core,emf,graph,rdf,sql,drools,eclipseocl,emfincquery,java,jena,mysql,neo4j,orientdb,sesame || exit 1
+time mvn clean install -P core,emf,graph,rdf,sql,drools,eclipseocl,emfincquery,java,jena,my... | bash |
d_bash_20925 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-cd /home/android/crazy-monkey/crazy-monkey && /bin/bash /home/android/crazy-monkey/crazy-monkey/run.sh &> ./console_`date '+%Y-%m-%dT%H-%M-%S'`.log
+cd /home/android/crazy-monkey/crazy-monkey && /bin/bash /home/android/crazy-monkey/crazy-monkey/run.sh &> ./logs/console_`date '+%Y... | bash |
d_bash_20926 | ---
+++
@@ -5,19 +5,6 @@
echo "# building examples"
echo "##"
echo ""
-
-# Reset
-Color_Off='\033[0m' # Text Reset
-
-# Regular Colors
-Black='\033[0;30m' # Black
-Red='\033[0;31m' # Red
-Green='\033[0;32m' # Green
-Yellow='\033[0;33m' # Yellow
-Blue='\033[0;34m' # Blue
-... | bash |
d_bash_20927 | ---
+++
@@ -6,4 +6,4 @@
echo "sending [public] to [$HOST]"
-rsync -av --delete public deploy@$HOST:public
+rsync -av --delete public/ deploy@$HOST:public/ | bash |
d_bash_20928 | ---
+++
@@ -23,6 +23,8 @@
echo "*/5 * * * * /usr/local/bin/s3-sync.sh > /var/log/s3-sync.log" | /usr/bin/crontab -
echo "Doing initial sync with S3"
/usr/local/bin/s3-sync.sh
+ echo "Starting Crond service..."
+ /usr/sbin/crond
fi
chown jenkins /var/jenkins_home | bash |
d_bash_20929 | ---
+++
@@ -1,7 +1,6 @@
REF=$1
-#REF=data/rand_ref/rand_ref_1.0_04.fasta
-FASTA=data/rand_ref/miseq.fasta
+FASTA=data/rand_ref/miseq.unique.fasta
# For whatever reason, the reference idx files cannot be in the same linear
@@ -28,5 +27,5 @@
# Cleaning up
-mv $CLOSED_PATH/miseq_otus.txt $CLOSED_PATH.sc
+mv... | bash |
d_bash_20930 | ---
+++
@@ -13,6 +13,9 @@
execute "defaults write com.apple.terminal SecureKeyboardEntry -bool true" \
"Enable 'Secure Keyboard Entry'"
+execute "defaults write com.apple.Terminal ShowLineMarks -int 0" \
+ "Hide line marks"
+
execute "defaults write com.apple.terminal StringEncodings -array 4" \
"Onl... | bash |
d_bash_20931 | ---
+++
@@ -25,7 +25,8 @@
echo "Installing sudo & puppet"
echo "APT::Get::AllowUnauthenticated 1;" > /etc/apt/apt.conf
-sed -i 's/mirror\.yandex\.ru\/debian\-security/security\.debian\.org/g' /etc/apt/sources.list
+echo "deb http://debian.nsu.ru/debian squeeze main" > /etc/apt/sources.list
+echo "deb http://debia... | bash |
d_bash_20932 | ---
+++
@@ -6,3 +6,6 @@
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
+
+# Stop ctrl+s locking the terminal. Why is that even a thing?
+stty stop undef | bash |
d_bash_20933 | ---
+++
@@ -1,6 +1,7 @@
-python img-extract.py && \
-pngcrush pre-freeciv-web-tileset.png freeciv-web-tileset.png && \
+python img-extract.py &&
+pngcrush pre-freeciv-web-tileset.png freeciv-web-tileset.png &&
mkdir -p ../freeciv-web/src/main/webapp/tileset &&
-cp freeciv-web-tileset.png ../freeciv-web/src/main/weba... | bash |
d_bash_20934 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
| bash |
d_bash_20935 | ---
+++
@@ -7,7 +7,7 @@
set -o xtrace
echo_summary "watcher's plugin.sh was called..."
-source $DEST/watcher/devstack/lib/watcher
+. $DEST/watcher/devstack/lib/watcher
# Show all of defined environment variables
(set -o posix; set) | bash |
d_bash_20936 | ---
+++
@@ -1,2 +1,3 @@
export INSTALL_SCLS=rh-nodejs4
+export INSTALL_PKGS="rh-nodejs4 rh-nodejs4-npm rh-nodejs4-nodejs"
export ENABLE_SCLS=rh-nodejs4 | bash |
d_bash_20937 | ---
+++
@@ -9,9 +9,10 @@
git config user.name "Travis Bot"
git add .
- git commit -m "Deployed to GitHub Pages"
+ git commit -m "Deploying to GitHub Pages"
git push --force --quiet "https://${GHTOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
)
+ git commit -m "Deployed to GitHub Page... | bash |
d_bash_20938 | ---
+++
@@ -13,6 +13,7 @@
local install_prefix=$5
local install_dir=$BUILD/$target
+ rm -rf $install_dir
mkdir $install_dir
if [ -n $build_target ]; then | bash |
d_bash_20939 | ---
+++
@@ -1 +1 @@
-bin/openapi2apigee generateApi petStoreRegexProtection -s ./test/commands/swagger_files/regex-protection.yaml -d ./api_bundles
+bin/openapi2apigee generateApi petStoreRegexProtection -s ./test/commands/openapi_files/regex-protection.yaml -d ./api_bundles | bash |
d_bash_20940 | ---
+++
@@ -5,7 +5,7 @@
apt-get -y remove landscape-common
if [ "$(lsb_release -rs)" == "12.04" ] ; then
- apt-get -y install denyhosts cloud-utils
+ apt-get -y install denyhosts cloud-utils cloud-initramfs-growroot
else
apt-get -y install cloud-guest-utils
# Install denyhosts from our local repo sin... | bash |
d_bash_20941 | ---
+++
@@ -1,4 +1,4 @@
-aws ec2 describe-nat-gateways --output table \
+awscli ec2 describe-nat-gateways --output table \
--query "NatGateways[$(auto_filter NatGatewayId State SubnetId VpcId -- $@)].{ \
\"1.Id\":NatGatewayId, \
\"2.State\":State, \ | bash |
d_bash_20942 | ---
+++
@@ -8,7 +8,7 @@
shift
cmd="$@"
-until nc -z $host $port > /dev/null 2>&1
+until (echo > /dev/tcp/$host/$port) >/dev/null 2>&1
do
>&2 echo "$host:$port is still not ready yet...sleeping 15 seconds"
sleep 15 | bash |
d_bash_20943 | ---
+++
@@ -1,11 +1,11 @@
#!/bin/bash
-
-SBT_CMD="sbt -Dcom.basho.riak.pbchost=$RIAK_HOSTS ++$TRAVIS_SCALA_VERSION"
set -e
export RIAK_HOSTS=$(docker inspect -f '{{.NetworkSettings.IPAddress}}' riak-ts):8087,$(docker inspect -f '{{.NetworkSettings.IPAddress}}' riak-ts-2):8087,$(docker inspect -f '{{.NetworkSet... | bash |
d_bash_20944 | ---
+++
@@ -28,7 +28,7 @@
find /usr/include/SDL2 -iname "*.h" >> ${PROJNAME}.files
-fgrep -i --color=never ".h" *.files | xargs -I{} dirname {} | sort | uniq > ${PROJNAME}.includes
+fgrep -i --color=never ".h" *.files | xargs -I{} readlink -f {} | xargs -I{} dirname {} | sort | uniq > ${PROJNAME}.includes
w... | bash |
d_bash_20945 | ---
+++
@@ -34,6 +34,6 @@
else
debug 'Sudoers file was not found'
echo "vagrant ALL=(ALL) NOPASSWD:ALL" > ${ROOTFS}/etc/sudoers.d/vagrant
- chmod 0441 ${ROOTFS}/etc/sudoers.d/vagrant
+ chmod 0440 ${ROOTFS}/etc/sudoers.d/vagrant
log 'Sudoers file created.'
fi | bash |
d_bash_20946 | ---
+++
@@ -3,7 +3,7 @@
hg clone https://bitbucket.org/davidjb/ngx_http_auth_request_module
wget https://github.com/agentzh/headers-more-nginx-module/archive/v0.19.tar.gz -O headers-more-nginx-module-0.19.tar.gz
tar xvf headers-more-nginx-module-0.19.tar.gz
-git clone git://github.com/davidjb/ngx-fancyindex.git
+g... | bash |
d_bash_20947 | ---
+++
@@ -9,12 +9,13 @@
## setup
OUT=${OUTDIR}/basic
mkdir -p ${OUT}
+date >> ${OUT}/index
## capture basic information
ps -axjf >> $OUT/List_of_Running_Processes.txt
pstree -ah >> $OUT/Process_tree_and_arguments.txt
mount >> $OUT/Mounted_items.txt
-diskutil list >> $OUT/BasicInfo/Disk_utility.txt
+diskuti... | bash |
d_bash_20948 | ---
+++
@@ -10,7 +10,7 @@
github_release() {
local version="$1"
- ./github-release cardigann/cardigann "$version" "$TRAVIS_COMMIT" "$(git cat-file -p "$version" | tail -n +6)" ""
+ ./github-release cardigann/cardigann "$version" "$BUILDKITE_COMMIT" "$(git cat-file -p "$version" | tail -n +6)" ""
}
if [[ "... | bash |
d_bash_20949 | ---
+++
@@ -5,7 +5,7 @@
finder () {
echo -n ' '
- find $@ -type f | sort | xargs echo -n ||:
+ find $@ -type f | sort -bdi | xargs echo -n ||:
}
echo -n "nobase_dist_pkgdata_DATA = \$(LUALIBRARIES)" | bash |
d_bash_20950 | ---
+++
@@ -4,12 +4,13 @@
SCRIPTDIR=$(cd -P $(dirname $0); pwd)
docker-compose -f ${SCRIPTDIR}/docker-compose-dev.yml up -d
+sleep 4
+
DBPORT=$(docker inspect -f '{{index .NetworkSettings.Ports "5432/tcp" 0 "HostPort"}}' backend_dev-db_1)
DBHOST=$(docker-machine ip $(docker-machine active))
source $SCRIPTDIR... | bash |
d_bash_20951 | ---
+++
@@ -2,10 +2,10 @@
set -euo pipefail
-APK="apk -q --no-cache"
+APK="apk --no-cache"
BUILDDEPS="gcc python3-dev musl-dev parallel yaml-dev g++"
TESTDEPS="bitstring pytest wheel virtualenv pip"
-PIP3="pip3 -q install --upgrade"
+PIP3="pip3 install --upgrade"
FROOT="/faucet-src"
dir=$(dirname "$0") | bash |
d_bash_20952 | ---
+++
@@ -1,16 +1,30 @@
#!/bin/bash
-set -e -x
+set -exuo pipefail
-for PYBIN in /opt/python/*/bin; do
- ${PYBIN}/pip install -r /io/dev-requirements.txt
- ${PYBIN}/pip wheel /io/ -w wheelhouse/
+cache_dir=/io/wheelhouse/pip-cache
+cd /opt/python
+readonly -a versions=(*)
+cd "${HOME}"
+
+# Compile wheels
... | bash |
d_bash_20953 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
## Add HP Management Component Pack Mirror
-echo "deb http://downloads.linux.hpe.com/SDR/downloads/MCP/ubuntu xenial non-free" | sudo tee /etc/apt/sources.list.d/hpmcp.sources.list
+echo "deb http://downloads.linux.hpe.com/SDR/downloads/MCP/ubuntu xenial/current non-free" | sud... | bash |
d_bash_20954 | ---
+++
@@ -11,7 +11,11 @@
full=${dd,,}
scenario=${full#luh2_v2f_}
for what in sr cs-sr ab cs-ab bii-ab bii-sr; do
- printf "%s %s %d:%d\n" "${what}" "${scenario}" "${year0}" "${year1}"
+ if [[ ("$what" = "sr") || ("$what" = "cs-sr") || ( "$what" = "bii-sr") ]]; then
+ printf "%s /out/luh2/vertebra... | bash |
d_bash_20955 | ---
+++
@@ -33,6 +33,6 @@
# TODO that will change eventually!
set -x
-./bashbrew.sh list --namespaces='_' "${repos[@]}"
+./bashbrew.sh list "${repos[@]}"
./bashbrew.sh build --no-build "${repos[@]}"
./bashbrew.sh push --no-push "${repos[@]}" | bash |
d_bash_20956 | ---
+++
@@ -20,8 +20,8 @@
ln -s /usr/local/bin/clang /usr/bin/x86_64-linux-gnu-gcc
fi
-pip2 install --upgrade setuptools
-pip3 install --upgrade setuptools
+easy_install -U pip==9.0.3
+easy_install3 -U pip==9.0.3
# The rest of the pip packages will be installed in
# `install_pip_packages.sh` | bash |
d_bash_20957 | ---
+++
@@ -21,6 +21,7 @@
php composer.phar install
php artisan migrate --force
+php artisan queue:restart
php artisan lang:js resources/assets/js/messages.js
npm install | bash |
d_bash_20958 | ---
+++
@@ -12,5 +12,23 @@
ln -s "${PY_INCLUDE}m" "${PY_INCLUDE}"
fi
-./bootstrap.sh install --prefix=$PREFIX
-./b2 -j4 install
+if [[ ( ! -f "${LIBRARY_PATH}/libpython${PY_VER}.dylib" ) && ( -f "${LIBRARY_PATH}/libpython${PY_VER}m.dylib" ) ]]; then
+ ln -s "${LIBRARY_PATH}/libpython${PY_VER}m.dylib" "${... | bash |
d_bash_20959 | ---
+++
@@ -8,5 +8,7 @@
source pythonenv/bin/activate
+source /opt/lsf/conf/profile.lsf
+
python "$PWD/scripts/crontab_server.py" $@
| bash |
d_bash_20960 | ---
+++
@@ -2,5 +2,10 @@
cd kubernetes
docker-compose stop
docker-compose rm -f
-echo "Removing k8s-started containers..."
-docker rm -f `docker ps -a -f "name=k8s_" -q`
+
+k8s_containers=`docker ps -a -f "name=k8s_" -q`
+
+if [ ! -z $k8s_containers ]; then
+ echo "Removing k8s-started containers..."
+ docke... | bash |
d_bash_20961 | ---
+++
@@ -6,7 +6,7 @@
# Install the built package
conda create --yes -n docenv python=$CONDA_PY
source activate docenv
-conda install -yq --use-local mdtraj-dev
+conda install -yq --use-local mdtraj
# We don't use conda for these
pip install -I sphinx==1.4.8 sphinx_rtd_theme==0.1.9 msmb_theme==1.2.0 | bash |
d_bash_20962 | ---
+++
@@ -16,6 +16,8 @@
echo
}
+export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
+
mark "Starting build script"
java -version
mvn -version | bash |
d_bash_20963 | ---
+++
@@ -8,6 +8,7 @@
mkdir "$build_dir/$name"
cp target/$TARGET/release/watchexec "$build_dir/$name/"
+cp {doc/watchexec.1,LICENSE} "$build_dir/$name/"
pushd $build_dir
tar czf "$out_dir/$name.tar.gz" * | bash |
d_bash_20964 | ---
+++
@@ -36,7 +36,11 @@
if [ -f $START_SCRIPT ]; then
sh $START_SCRIPT
fi
- elif [ -f $SETUP_SCRIPT ]; then
+ else
+ echo -e "\033[31;4mWarning\033[0m: no $INSTALL_SCRIPT file"
+ fi
+
+ if [ -f $SETUP_SCRIPT ]; then
sh $... | bash |
d_bash_20965 | ---
+++
@@ -1,10 +1,10 @@
#!/bin/bash
export DOCKER_HOST=tcp://192.168.56.2:2375
-export DOCKER_TLS_VERIFY=
+#export DOCKER_TLS_VERIFY=
echo "
# Docker settings
export DOCKER_HOST=tcp://192.168.56.2:2375
-export DOCKER_TLS_VERIFY=
+#export DOCKER_TLS_VERIFY=
" >> ~/.bashrc >> ~/.zshrc | bash |
d_bash_20966 | ---
+++
@@ -25,12 +25,12 @@
cd "${DIRECTORY}" || exit 1
-if ! ls *whl 1> /dev/null 2>&1; then
+if ! ls *.* 1> /dev/null 2>&1; then
exit
fi
if [ "${KEEP_LAST}" -gt 0 ]; then
- EXCLUDE=$(printf "! -name %s " $(ls -t *.whl | head -"${KEEP_LAST}"))
+ EXCLUDE=$(printf "! -name %s " $(ls -t *.* | head -"${KEE... | bash |
d_bash_20967 | ---
+++
@@ -3,4 +3,4 @@
else
export LDFLAGS=${LDFLAGS} -shared"
fi
-$PYTHON setup.py install --single-version-externally-managed --record record.txt
+$PYTHON setup.py install | bash |
d_bash_20968 | ---
+++
@@ -21,7 +21,7 @@
cd $WORKSPACE/sli/acceptance-tests/
export LANG=en_US.UTF-8
bundle install --deployment
-bundle exec rake FORCE_COLOR=true admintools_server_url=https://${NODE_NAME}.slidev.org:2001 ldap_hostname=ldap.slidev.org ldap_port=443 ldap_use_ssl=true ldap_base=ou=SLIAdmin,dc=slidev,dc=org email_... | bash |
d_bash_20969 | ---
+++
@@ -18,6 +18,27 @@
w
EOF
+losetup --version > /dev/null 2>&1
+
+if [ $? -ne 0 ] ; then
+ losetup_lt_2_22=true
+elif [ $(echo $(losetup --version | rev|cut -f1 -d' '|rev|cut -d'.' -f-2)'<'2.22 | bc -l) -ne 0 ]; then
+ losetup_lt_2_22=true
+else
+ losetup_lt_2_22=false
+fi
+
+if [ $losetup_lt_2_22 ] ; th... | bash |
d_bash_20970 | ---
+++
@@ -3,9 +3,6 @@
LOGGER="logger -t $0"
SINK=$(pactl info | awk -F ':' '$1 == "Default Sink" {print $2}')
PAINFO=$(pactl info 2>&1)
-
-$LOGGER "Sink is '$SINK'"
-$LOGGER "PAINFO is '$PAINFO'"
case $1 in
*MUTE*) | bash |
d_bash_20971 | ---
+++
@@ -5,16 +5,10 @@
# Deploy to Netlify
EXAMPLE_DIR="../examples/basic"
-PUBLIC_DIR="build"
+STATIC_DIR="static"
echo "Node $(node -v)"
echo "npm $(npm -v)"
-
-# Build the site
-echo
-echo "Building the site..."
-npm run sync
-npm run build
# Build a basic example
echo
@@ -27,5 +21,11 @@
# Copy to ... | bash |
d_bash_20972 | ---
+++
@@ -19,6 +19,6 @@
const (
EOH
-sed -n 's/^[ ]*\(SIG[A-Z0-9][A-Z0-9]*\).*/ \1 = UnixSignal(syscall.\1)/p' "$1"
+sed -n 's/^[ ]*\(SIG[A-Z0-9][A-Z0-9]*\)[ ].*/ \1 = UnixSignal(syscall.\1)/p' "$1"
echo ")" | bash |
d_bash_20973 | ---
+++
@@ -11,6 +11,6 @@
TEMPDIR=$(mktemp -d)
cd "$TEMPDIR"
cp "$EXAMPLE_FILE" main.cofloco
-"$COFLOCO" -i main.cofloco > "${STDOUT_FILE}" 2> "${STDERR_FILE}" || :
+"$COFLOCO" -fill_base_cases -v 2 -stats -n_rankings 2 -assume_sequential -maximize_fast 9 -i main.cofloco > "${STDOUT_FILE}" 2> "${STDERR_FILE}" || ... | bash |
d_bash_20974 | ---
+++
@@ -8,8 +8,9 @@
example_dir=examples/eigenproblems/$example_name
-options="-n_evals 5 -mesh_name drum1 -plotting_index 2"
-run_example "$example_name" "$options"
+slepc_options="-st_ksp_type gmres -st_pc_type bjacobi -st_sub_pc_type ilu"
+options="-n_evals 5 -mesh_name drum1 -plotting_index 2 $slepc_opti... | bash |
d_bash_20975 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/bash
+set -e
# Usage $ rmsafe [whatever]
# | bash |
d_bash_20976 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-cmake -DWITH="ALL" -DCHECK=off -DARITH=gmp -DFP_PRIME=254 -DFP_QNRES=on -DFP_METHD="BASIC;COMBA;COMBA;MONTY;MONTY;SLIDE" DFP_QNRES=on -DPC_METHD="PRIME" -DPP_METHD="INTEG;LAZYR;O_ATE" -DCOMP="-O2 -funroll-loops -fomit-frame-pointer" $1
+cmake -DWITH="ALL" -DCHECK=off -DARITH=gmp... | bash |
d_bash_20977 | ---
+++
@@ -15,5 +15,14 @@
# Disable Terminal Flow Control
stty -ixon
+# setup python virtualenvwrapper
+if [ `id -u` != '0' ]; then
+ export VIRTUALENV_USE_DISTRIBUTE=1 # <-- Always use pip/distribute
+ export WORKON_HOME=$HOME/.virtualenvs # <-- Where all virtualenvs will be stored
+ source /usr... | bash |
d_bash_20978 | ---
+++
@@ -1,3 +1,3 @@
mv *.rpm /opt/jidoteki/repos/yum/centos/RPMS/
createrepo /opt/jidoteki/repos/yum/centos
-yum update -y --enablerepo=local
+yum update -y --disablerepo=* --enablerepo=local | bash |
d_bash_20979 | ---
+++
@@ -3,16 +3,16 @@
w="/var/www/fagan"
########GLN
-./scripts/tdb/tdbout -MWTNYR -Q 'year ~ "2015"' -t publisher,title tdb/prod/*.tdb | sort > $t/xg2015
-./scripts/tdb/tdbout -EXMWTNYR -Q 'year ~ "2016"' -t publisher,title tdb/prod/*.tdb | sort > $t/xg2016
-comm -23 $t/xg2015 $t/xg2016 > $w/xg_missing_2016.... | bash |
d_bash_20980 | ---
+++
@@ -1,9 +1,7 @@
-# Check pre-dump
-
-source `dirname $0`/criu-lib.sh &&
-prep &&
-mkdir -p test/dump &&
-mount -t tmpfs dump test/dump &&
-make -C test -j 4 'ZDTM_ARGS=-P -i 3 -C' zdtm &&
-make -C test -j 4 'ZDTM_ARGS=-p -P -i 3 -C' zdtm && # + page server
-true || fail
+# Check 3 pre-dump-s before dump (with... | bash |
d_bash_20981 | ---
+++
@@ -1,4 +1,4 @@
export GROOVY_HOME=$SOFTWARE_DIR/groovy-2.4.7
-export JAVA_OPTS=$JAVA_OPTS -Dgrape.config=$JAVA_OPTS/conf/grapeConfig.xml -Dgroovy.root=$JAVA_OPTS/.groovy/
+export JAVA_OPTS="$JAVA_OPTS -Dgrape.config=$GROOVY_HOME/conf/grapeConfig.xml -Dgroovy.root=$GROOVY_HOME/.groovy/"
export PATH=$GROOV... | bash |
d_bash_20982 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
KERL_INSTALL_PATH=~/erlang
-KERL_RELEASES="r15b01 r15b02 r15b03 r16b r16b01 r16b02 r16b03 maint master"
+KERL_RELEASES="r15b01 r15b02 r15b03 r16b r16b01 r16b02 r16b03-1 17.0 maint master"
make build-tests
| bash |
d_bash_20983 | ---
+++
@@ -5,7 +5,7 @@
for i in "${array[@]}"; do # The quotes are necessary here
echo "=========== $i ============="
rapidsim="$(./rapidsim -input test/$i.txt test/$i.ap)"
- batchsim="$(./language test/$i.ap && python ./test/batchSim.py -a a.anml -s test/$i.txt)"
+ batchsim="$(./language test/$i.... | bash |
d_bash_20984 | ---
+++
@@ -1,5 +1,6 @@
#!/usr/bin/env sh
+joe update
joe g linux,windows,macos,microsoftoffice,visualstudiocode > .gitignore_global
echo "
#### User Settings #### | bash |
d_bash_20985 | ---
+++
@@ -15,3 +15,16 @@
# Other
alias lisa='ls -lisa'
+
+# Change theme of Terminal.app
+tabc() {
+ NAME="${1:-Default}"
+ osascript -e "tell application \"Terminal\" to set current settings of front window to settings set \"$NAME\""
+}
+
+# Change to Danger theme when executing ssh
+ssh() {
+ tabc Danger
+... | bash |
d_bash_20986 | ---
+++
@@ -2,8 +2,12 @@
# Purpose: Stop Postgres
[ ! "${ASN_DATA_PIPELINE_RETAIN:-}" = true ] && \
-# in the Postgres container image,
-# the command run changes to "postgres" once it's completed loading up
+# With a regular Postgres container, once the init.d scripts have completed
+# Postgres stays alive. But ... | bash |
d_bash_20987 | ---
+++
@@ -13,8 +13,8 @@
MINICONDA=Miniconda3-latest-Linux-x86_64.sh
fi
MINICONDA_HOME=$HOME/miniconda
-MINICONDA_MD5=$(curl -s https://repo.continuum.io/miniconda/ | grep -A3 $MINICONDA | sed -n '4p' | sed -n 's/ *<td>\(.*\)<\/td> */\1/p')
-wget -q https://repo.continuum.io/miniconda/$MINICONDA
+MINICONDA_MD... | bash |
d_bash_20988 | ---
+++
@@ -1,6 +1,9 @@
echo "[Unit]
Description=Infinite Glitch
Requires=glitch.socket
+
+[Install]
+WantedBy=multi-user.target
[Service]
User=`whoami`
@@ -14,6 +17,9 @@
Description=Infinite Glitch Renderer
Requires=glitch-renderer.socket
+[Install]
+WantedBy=multi-user.target
+
[Service]
User=`whoami`
... | bash |
d_bash_20989 | ---
+++
@@ -1,53 +1,11 @@
#!/usr/bin/env bash
set -e
-REPO=scottx611x/refinery-higlass-docker
+export REPO=scottx611x/refinery-higlass-docker
export STAMP=`date +"%Y-%m-%d_%H-%M-%S"`
-docker pull $REPO # Defaults to "latest", but just speeds up the build, so precise version doesn't matter.
-docker build --cach... | bash |
d_bash_20990 | ---
+++
@@ -8,7 +8,9 @@
fi
SCRIPT=$1
-LD_LIBRARY_PATH=/sw/xk6/r/3.3.2/sles11.3_gnu4.9.3x/lib64/R/lib:/opt/java/jdk1.8.0_51/jre/lib/amd64/server:/sw/xk6/r/3.3.2/sles11.3_gnu4.9.3/lib64/R/lib:/sw/xk6/curl/7.30.0/sles11.1_gnu4.3.4/lib:/opt/gcc/6.3.0/snos/lib64
+GCC=/opt/gcc/6.3.0/snos/lib64
+R=/ccs/proj/med106/gounl... | bash |
d_bash_20991 | ---
+++
@@ -20,4 +20,3 @@
sleep 1
done
[[ $1 ]] && exec sh -c "$@"
-exec bash --login | bash |
d_bash_20992 | ---
+++
@@ -6,7 +6,7 @@
mkdir $i;
for j in {1..10000};
do
- dd if=/dev/zero of=$i/$j bs=8k count=1 &> /dev/null;
+ dd if=/dev/urandom of=$i/$j bs=8k count=1 &> /dev/null;
done
done
| bash |
d_bash_20993 | ---
+++
@@ -1,5 +1,8 @@
#!/bin/bash
set -eu -o pipefail
+
+echo "Updating awscli..."
+sudo pip install --upgrade --user awscli
echo "Installing zip utils..."
sudo yum update -y -q | bash |
d_bash_20994 | ---
+++
@@ -14,7 +14,7 @@
# https://bugzilla.redhat.com/show_bug.cgi?id=1299794
# https://bugzilla.redhat.com/show_bug.cgi?id=1277223
- exec atomic run rhel7/rhel-tools sosreport --sysroot /host --tmp-dir /host/var/tmp "$@"
+ exec atomic run rhel7/rhel-tools -- sosreport --sysroot /host --tmp-dir /h... | bash |
d_bash_20995 | ---
+++
@@ -6,4 +6,4 @@
source "${SCRIPT_DIR}/../dev_tools/git/subtree-utils.sh"
-pull tools/dev_tools git@github.com:salilab/developer_tools.git master
+pull tools/dev_tools git@github.com:salilab/developer_tools.git master salilab/developer_tools | bash |
d_bash_20996 | ---
+++
@@ -1,11 +1,11 @@
# this script makes a copy of hidden configuration files in my fresh home directory:
-ln -s ~/Developer/working-copies/dotfiles/.vimrc ~/.vimrc
-ln -s ~/Developer/working-copies/dotfiles/.emacs ~/.emacs
-ln -s ~/Developer/working-copies/dotfiles/.bashrc_extension ~... | bash |
d_bash_20997 | ---
+++
@@ -10,10 +10,10 @@
git clone --quiet --branch=automate-gh-pages https://${GH_TOKEN}@github.com/openxc/openxc-android automate-gh-pages > /dev/null
cd automate-gh-pages
+ LATEST_TAG=$(git describe master --abbrev=0 --tags)
git rm -rf ./
cp -Rf $HOME/javadoc-latest/. ./
git add -f .
- LATEST... | bash |
d_bash_20998 | ---
+++
@@ -15,14 +15,16 @@
show_warn=true
fi
done
- appdir=""
if $show_warn; then
+ appdir=""
>&2 echo -e ""
>&2 echo -e "WARNING:"
>&2 echo -e " No manifest.webapp file has been found in the mounted"
>&2 echo -e " directory /data/cozy-app. The stack will be started"
>&2 echo -e " witho... | bash |
d_bash_20999 | ---
+++
@@ -12,15 +12,7 @@
wget --header="User-Agent: MonTransit" --timeout=60 --tries=6 -S $URL;
checkResult $?;
fi;
-# DEBUG
-DEBUG=${pwd}; # DEBUG
-echo "DEBUG ---------------------------------";
-echo "DEBUG > pwd:"; # DEBUG
-pwd;
-echo "DEBUG > ls -al:"; # DEBUG
-ls -al;
-echo "DEBUG -----------------... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.