document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_22300
--- +++ @@ -7,9 +7,6 @@ print_start zsh install zsh - -echo "Setting zsh as default SHELL" -chsh -s $(which zsh) echo "Installing oh-my-zsh" sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
bash
d_bash_22301
--- +++ @@ -6,6 +6,6 @@ git rebase origin/master && \ rm -rf build && \ ./gradlew clean && \ -./gradlew jmh publishResults processResults | tee benchmark.log && \ +./gradlew --no-parallel --no-daemon jmh publishResults processResults | tee benchmark.log && \ git add results && git ci -m "Add daily results" && \ ...
bash
d_bash_22302
--- +++ @@ -13,10 +13,8 @@ ( cd "${CI_BUILD_DIR}/unimath" # these files consumes too much memory for the shared workers # (at least with -j 2 when the scheduler runs them in parallel) - for f in DisplayedBicats/Examples/DisplayedInserter.v \ - PseudoFunctors/Preservation/BiadjunctionPreserveInse...
bash
d_bash_22303
--- +++ @@ -7,8 +7,7 @@ # - Other Haskell stuff from http://www.stephendiehl.com/posts/vim_2016.html -git clone https://github.com/blueshirts/darcula.git - +git clone https://github.com/martinrist/darcula.git # Haskell
bash
d_bash_22304
--- +++ @@ -1,3 +1,9 @@ #!/bin/sh cd `dirname $0` -java -jar visitmeta-visualization.jar +JAVA_ARGS= +if [ `uname -s` = "Darwin" ] ; then + JAVA_ARGS="$JAVA_ARGS -Dapple.laf.useScreenMenuBar=true" + JAVA_ARGS="$JAVA_ARGS -Xdock:icon=./img/visitmeta-icon-128px.png" + JAVA_ARGS="$JAVA_ARGS -Xdock:name=VisITM...
bash
d_bash_22305
--- +++ @@ -22,6 +22,12 @@ sudo umount $directory/work/work/mnt/tmp/grub/root.img 2>/dev/null || true sudo umount $directory/work/work/mnt 2>/dev/null || true +mnt_type=$(df -T "$directory" | awk '/dev/{ print $2 }') +mnt_type=${mnt_type:-unknown} +if [ "$mnt_type" != "btrfs" ]; then + sudo rm -rf $directory +...
bash
d_bash_22306
--- +++ @@ -14,3 +14,4 @@ alias hc='heroku run console' alias hr='heroku run' alias hv='heroku config' +alias hl='heroku logs'
bash
d_bash_22307
--- +++ @@ -2,7 +2,7 @@ echo "Installing SASS 3.4.10" echo "Ensuring Ruby (dependency) is installed and up to date" -yum install -y ruby rubygems +yum install -y ruby ruby-devel rubygems echo "Ruby check complete. Version: `ruby --version`"
bash
d_bash_22308
--- +++ @@ -14,10 +14,6 @@ # Autocorrect typos in path names when using `cd` shopt -s cdspell -# Save and reload the history after each command finishes -# this lets multiple terminal windows work on the history together -export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" - # Editor exp...
bash
d_bash_22309
--- +++ @@ -21,11 +21,22 @@ # Upgrade any already-installed formulae. brew upgrade --all +fancy_echo "Updating GNU tools..." +# Install GNU core utilities (those that come with OS X are outdated). +brew install coreutils +# Install GNU `find`, `locate`, `updatedb`, and `xargs`, `g`-prefixed. +brew install finduti...
bash
d_bash_22310
--- +++ @@ -6,7 +6,7 @@ usage: $0 <refspec> <version> - Creates tar and zip source package from <refspec> and documentation-zip from current checkout. + Creates tar and zip source package from <refspec>. Files and directories are named after <version>. example: $0 origin/2.2 2.2.0 @@ -17,14 +17,26 ...
bash
d_bash_22311
--- +++ @@ -1,14 +1,18 @@ #!/bin/sh # -# (C) COPYRIGHT CRAY INC. -# UNPUBLISHED PROPRIETARY INFORMATION. -# ALL RIGHTS RESERVED. +# Transform the papi_events.csv file into a static table. # -# Transform the papi_events.csv file into a static table. - +# tr "\r" "\n" | # convert CR to LF +# tr -s "\n" | # convert...
bash
d_bash_22312
--- +++ @@ -8,7 +8,7 @@ cat ../../index.html | sed 's/static\/tsomi.css/\/tsomi\/static\/tsomi.css/' | sed 's/js\/bundle.js/\/tsomi\/js\/bundle.js/' > index.html cp -r ../../static . cp -r ../../js . -git checkout -b savanni +#git checkout -b savanni git add * pwd @@ -16,5 +16,6 @@ git status git commit -m...
bash
d_bash_22313
--- +++ @@ -29,4 +29,5 @@ cp -r "$HOME/.composer/"* "$pkg_prefix/bin/" fix_interpreter "$pkg_prefix/bin/vendor/bin/drush" core/coreutils bin/env fix_interpreter "$pkg_prefix/bin/vendor/bin/drush.launcher" core/coreutils bin/env + fix_interpreter "$pkg_prefix/bin/vendor/bin/drush.php" core/coreutils ...
bash
d_bash_22314
--- +++ @@ -14,6 +14,7 @@ if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90 +sudo apt-get install ggcov # Cmake wget https://s3.amazonaws.com/biibinaries/thir...
bash
d_bash_22315
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash # Get an updated config.sub and config.guess -cp $BUILD_PREFIX/share/gnuconfig/config.* ./root-source/graf2d/asimage/src/libAfterImage +cp $BUILD_PREFIX/share/gnuconfig/config.* . autoconf
bash
d_bash_22316
--- +++ @@ -1,7 +1,13 @@ #!/bin/bash -eux + +SSH_USER=${SSH_USERNAME:-vagrant} echo "==> Installing Sublime Text 3" sudo wget http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3065_amd64.deb sudo dpkg -i --force-depends sublime-text_build-3065_amd64.deb sudo apt-get install -f -y sudo rm sublime-text_bui...
bash
d_bash_22317
--- +++ @@ -12,7 +12,7 @@ echo "Copying settings" cp .travis.settings.xml $HOME/.m2/settings.xml -if [[ $string = *"SNAPSHOT"* ]]; then +if [[ $TRAVIS_TAG = *"SNAPSHOT"* ]]; then echo "Deploying Snapshot" mvn clean deploy else
bash
d_bash_22318
--- +++ @@ -4,5 +4,9 @@ echo '--- go version' go version +echo '--- install dependencies' +go get github.com/tools/godep +godep get + echo '--- building packages' ./scripts/build.sh
bash
d_bash_22319
--- +++ @@ -31,7 +31,7 @@ echo "Running '$example_name' example..." # TODO update web examples to null-safety once dev dependencies are updated. - if ! dart --no-sound-null-safety ./tool/test_web.dart 2>&1 | awk '{print " | " $0}'; then + if ! dart ./tool/test_web.dart 2>&1 | awk '{print " | " $0}'; then ...
bash
d_bash_22320
--- +++ @@ -26,3 +26,11 @@ RETV="$(createDirIfNotExists && echo $? || echo $?)"; test ${RETV} -eq 10; } + +it_stops_with_dir_already_existing() { + local RETV TMPD="$(pwd)/.${MODULE}1.$$"; + [ ! -d "${TMPD}" ] && mkdir ${TMPD}; + trap "rm -rf \"${TMPD}\"" EXIT INT; + RETV="$(createDirIfNotExists ${TMPD} &&...
bash
d_bash_22321
--- +++ @@ -3,7 +3,7 @@ while true do battery_string=$(acpi -b|tr "\n" ' ') - battery_charge=$(echo $battery_string | perl -pe 's/.*?(\d{1,2})%.*/$1/') + battery_charge=$(echo $battery_string | perl -pe 's/.*?(\d{1,3})%.*/$1/') if [ "0$battery_charge" -lt 21 ] && [ "0$battery_charge" -gt 11 ] then...
bash
d_bash_22322
--- +++ @@ -3,18 +3,19 @@ local -A colors colors=( - info "$(tput setaf 32)" - warn "$(tput setaf 221)" - error "$(tput setaf 196)" - fatal "$(tput setaf 7; tput setab 196)" - success "$(tput setaf 34)" - white "$(tput setaf 7)" - red "$(tput setaf 1)" - green "$(tput setaf 2)" - blue ...
bash
d_bash_22323
--- +++ @@ -14,3 +14,4 @@ sudo chmod +x /opt/scada/ScadaServer/svc_restart.sh sudo chmod +x /opt/scada/ScadaServer/svc_start.sh sudo chmod +x /opt/scada/ScadaServer/svc_stop.sh +#
bash
d_bash_22324
--- +++ @@ -12,6 +12,15 @@ USER_GROUPS="users" # (comma-separated) USER_HOME_DIR="/srv/nfs/${PRIMARY_NODE}/home" +# Network # +read -r -d '' NET_SETTINGS <<EOM +Domains=cs.colostate.edu colostate.edu +DNS=129.82.45.181 +DNS=129.82.103.78 +DNS=129.82.103.79 +Gateway=10.1.208.1 +EOM + # NFS # NFS_DIRS="/srv/nfs/$...
bash
d_bash_22325
--- +++ @@ -7,4 +7,5 @@ BLINK_REPO="https://chromium.googlesource.com/chromium/blink.git" CHROMIUM_REPO="https://chromium.googlesource.com/chromium/src.git" -MERGED_REPO="https://chrome.blink.automerger@code.google.com/p/chromium-blink-merge/" +#MERGED_REPO="https://chrome.blink.automerger@code.google.com/p/chrom...
bash
d_bash_22326
--- +++ @@ -13,10 +13,10 @@ ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv" ENCRYPTED_KEY=${!ENCRYPTED_KEY_VAR} ENCRYPTED_IV=${!ENCRYPTED_IV_VAR} -openssl aes-256-cbc -K $ENCRYPTED_KEY -iv $ENCRYPTED_IV -in scripts/deploy/deploy_key.enc -out scripts/deploy/deploy_key -d +openssl aes-256-cbc -K $ENCRYPTED_KEY -...
bash
d_bash_22327
--- +++ @@ -16,4 +16,5 @@ PYTHONIOENCODING='utf-8' ansible-playbook desktop.yml #Return to normal password sudo +sudo sed -i .bak -e 's/^\(%wheel.*ALL=(ALL) NOPASSWD: ALL\)/#\1/g' /etc/sudoers sudo dscl . delete /Groups/wheel GroupMembership $USER
bash
d_bash_22328
--- +++ @@ -1,14 +1,18 @@ # https://github.com/joshuaclayton/dotfiles/blob/master/zsh_profile.d/navigation.zsh -# export CURRENT_PROJECT_PATH=$HOME/.cwd +if [[ -n $TMUX ]];then + return +fi -# __setdir() { -# echo $(pwd) >! $CURRENT_PROJECT_PATH -# } -# chpwd_functions=($chpwd_functions __setdir) +export CURREN...
bash
d_bash_22329
--- +++ @@ -12,7 +12,7 @@ if [[ $GROUP == tests ]]; then # Make sure we can start and kill the lab server - jupyter lab --no-browser & + jupyterlab launch --no-browser & TASK_PID=$! # Make sure the task is running ps -p $TASK_PID || exit 1
bash
d_bash_22330
--- +++ @@ -9,5 +9,5 @@ # Don't use 2.0.0.1 because we hit https://github.com/ansible/ansible/issues/13763 #apt-get install ansible -apt-get install python-support python-jinja2 python-yaml python-paramiko sshpass +apt-get install python-support python-jinja2 python-yaml python-paramiko python-httplib2 sshpass d...
bash
d_bash_22331
--- +++ @@ -4,8 +4,6 @@ cd ~/deploy -num_gluster_pods_before=$(kubectl get pods | grep -s "glusterfs-" | wc -l) -num_heketi_pods_before=$(kubectl get pods | grep -s "heketi-" | wc -l) ./gk-deploy -y -g -n default ./topology.json @@ -17,20 +15,20 @@ # wait briefly for pods to settle down... sleep 2 -num_...
bash
d_bash_22332
--- +++ @@ -2,5 +2,5 @@ set -euo pipefail -scp ./releases/wikipedia-*-beta*apk releases1001.eqiad.wmnet:/srv/org/wikimedia/releases/mobile/android/wikipedia/betas/ -scp ./releases/wikipedia-*-r*apk releases1001.eqiad.wmnet:/srv/org/wikimedia/releases/mobile/android/wikipedia/stable/ +scp ./releases/wikipedia-*-b...
bash
d_bash_22333
--- +++ @@ -36,12 +36,12 @@ fold_end "git.submodule_recursive" fold_start "go.get_glide" "go get glide" -go get github.com/Masterminds/glide +go get -v -u github.com/Masterminds/glide fold_end "go.get_glide" fold_start "go.get_cov" "go get coverage tools" -go get github.com/mattn/goveralls -go get github.com/...
bash
d_bash_22334
--- +++ @@ -7,7 +7,7 @@ mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages # Symlink user preferences -ln -s ~/.dotfiles/apps/sublimetext/preferences/ ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User +ln -s ~/.dotfiles/apps/sublimetext/preferences ~/Library/Application\ Supp...
bash
d_bash_22335
--- +++ @@ -1,11 +1,13 @@ #!/bin/sh -- +FIND=`/usr/bin/which 2> /dev/null gfind find | /usr/bin/grep -v ^no | /usr/bin/head -n 1` +XARGS=`/usr/bin/which 2> /dev/null gxargs xargs | /usr/bin/grep -v ^no | /usr/bin/head -n 1` set -e set -u num_cpus=$(getconf NPROCESSORS_ONLN) set +e -find . -name 'test_*.sh' -...
bash
d_bash_22336
--- +++ @@ -11,7 +11,9 @@ done # set apache as owner/group -chown -R apache:apache /app +if [ "$FIX_OWNERSHIP" != "" ]; then + chown -R apache:apache /app +fi # display logs tail -F /var/log/apache2/*log &
bash
d_bash_22337
--- +++ @@ -3,7 +3,9 @@ CWD="$(cd "$(dirname "$0")" && pwd)" PATH="$CWD/src":$PATH -for t in $CWD/tests/test_*.sh +PART=${1-*} + +for t in $CWD/tests/test_$PART.sh do $t done
bash
d_bash_22338
--- +++ @@ -12,12 +12,5 @@ source $ZSH/oh-my-zsh.sh POWERLEVEL9K_PROMPT_ON_NEWLINE=true -POWERLEVEL9K_DIR_HOME_FOREGROUND="white" -POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="white" -POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="white" POWERLEVEL9K_SHORTEN_DIR_LENGTH=2 -POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status nvm time...
bash
d_bash_22339
--- +++ @@ -15,4 +15,5 @@ while zpty -t dit4c-portal do zpty -r dit4c-portal + sleep 0.001 done
bash
d_bash_22340
--- +++ @@ -12,9 +12,7 @@ pkg_maintainer pkg_name pkg_origin - pkg_source pkg_upstream_url - pkg_version ) for var in "${required_variables[@]}"
bash
d_bash_22341
--- +++ @@ -27,7 +27,7 @@ # Install stuff for running the example IPython notebooks sudo apt-get install -qq pandoc # notebook -> rst -conda install --yes matplotlib scikit-learn sphinx boto ipython-notebook jinja2 +conda install --yes matplotlib scikit-learn sphinx boto ipython-notebook jinja2 numpydoc ...
bash
d_bash_22342
--- +++ @@ -1,6 +1,6 @@ git pull read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1 +echo if [[ $REPLY =~ ^[Yy]$ ]]; then rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "README.md" -av . ~ fi -echo
bash
d_bash_22343
--- +++ @@ -22,7 +22,7 @@ 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_NODE_NAME...
bash
d_bash_22344
--- +++ @@ -4,7 +4,7 @@ MONO_VER=2.10.10 brew update -brew install cmake +which cmake || brew install cmake wget "http://download.mono-project.com/archive/${MONO_VER}/macos-10-x86/MonoFramework-MDK-${MONO_VER}.macos10.xamarin.x86.dmg" hdid "MonoFramework-MDK-${MONO_VER}.macos10.xamarin.x86.dmg"
bash
d_bash_22345
--- +++ @@ -4,6 +4,9 @@ bin/build-jq.sh pr_files_json=`curl -s https://api.github.com/repos/exercism/java/pulls/${TRAVIS_PULL_REQUEST}/files` + +echo "Pull request number: ${TRAVIS_PULL_REQUEST}" +echo "Changes in pr json: ${pr_files_json}" # if jq fails to get the required data, then that means TRAVIS_PULL_RE...
bash
d_bash_22346
--- +++ @@ -1,6 +1,7 @@ export NPROCS=1 && export JOBS=1 && export CXX=g++-4.9 && export PGUSER=postgres -npm install +npm install -g yarn@0.27.5 +yarn /etc/init.d/postgresql start
bash
d_bash_22347
--- +++ @@ -6,7 +6,7 @@ while true; do $python_call $bot_path - read -t 10 -p $'Retrying... press ENTER within 10 seconds to stop.\n' + read -t 20 -p $'Retrying... press ENTER within 20 seconds to stop.\n' if [ $? == 0 ]; then break fi
bash
d_bash_22348
--- +++ @@ -4,9 +4,9 @@ # TODO: detect whether firefox-bin is on the path first -echo "Please make sure firefox-bin is on the path. Otherwise you will have problems along the lines of:" -echo " SeleniumCommandError: ERROR: No launcher found for sessionId null." -echo "when you run your selenium tests." +#ech...
bash
d_bash_22349
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash + +set -e if [ -d input ] then
bash
d_bash_22350
--- +++ @@ -4,9 +4,8 @@ # TODO: use the published version of opam-build-revdeps opam pin add opam-build-revdeps \ git://github.com/gildor478/opam-build-revdeps.git#opam/unstable -cd dist opam-build-revdeps compare --package oasis \ --version1 latest \ - --version2 latest --pin2 "oasis:$(pwd)/.." \ - --root...
bash
d_bash_22351
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash NGINX_NAME=${NGINX_NAME:-proxy} -docker stop ${NGINX_NAME} -docker rm -v ${NGINX_NAME} +if [ -n "$(docker ps -a | grep ${NGINX_NAME})" ]; then + docker stop ${NGINX_NAME} + docker rm -v ${NGINX_NAME} +fi
bash
d_bash_22352
--- +++ @@ -16,3 +16,6 @@ rm -fr testdir *~ cd .. done + +rm -fr $dir/tests/004.watchdog/master +rm -fr $dir/tests/004.watchdog/standby
bash
d_bash_22353
--- +++ @@ -7,7 +7,7 @@ set -ux JUJU_DIR="/var/lib/juju" DUMMY_DIR="/var/run/dummy-sink" -if [[ -n "$(ps -C jujud --no-headers)" ]]; then +if ps -f -C jujud; then sudo touch $JUJU_DIR/uninstall-agent sudo killall -SIGABRT jujud fi
bash
d_bash_22354
--- +++ @@ -6,7 +6,7 @@ CFG_PARAMS= if [ $TRAVIS_OS_NAME == osx ]; then - CFG_PARAMS="-DLLVM_DIR=/usr/local/opt/llvm/lib/cmake/llvm" + CFG_PARAMS="-DLLVM_DIR=/usr/local/opt/llvm/lib/cmake/llvm@7" fi if [ $TRAVIS_OS_NAME == linux ]; then
bash
d_bash_22355
--- +++ @@ -8,7 +8,9 @@ exit 0 else pip uninstall -q -y pyqt5 sip - pip install -q pyside2 + # Simple solution to avoid failures with the + # Qt3D modules + pip install -q pyside2==5.12.3 fi python qtpy/tests/runtests.py
bash
d_bash_22356
--- +++ @@ -10,18 +10,24 @@ dir="$2" else echo Error $2 is not a file or directory + exit 1 fi if [ "$1" == "shorthash" ]; then git log -n1 --pretty=format:%h -- $dir + exit $? elif [ "$1" == "date" ]; then date -d @`git log -n1 --pretty=format:%ct -- $dir` +%Y%m%d + exit $? elif [ "$1" == "date...
bash
d_bash_22357
--- +++ @@ -16,4 +16,4 @@ ${LIBTOOLIZE} --force automake --add-missing autoconf -rm -rf include/skymizer/Config/Config.h.in~ +rm -rf include/pat/Config/Config.h.in~
bash
d_bash_22358
--- +++ @@ -12,10 +12,14 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh" if isWindows; then - for RETRY_COUNT in 1 2 3 4 5 6 7 8 9 10; do - choco install msys2 \ - --params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress \ - && mkdir -p "$(ciCheckoutPath)/msy...
bash
d_bash_22359
--- +++ @@ -4,5 +4,5 @@ source docker-helper.sh docker-compose build -dnpm install +dyarn install docker-compose up --force-recreate
bash
d_bash_22360
--- +++ @@ -38,7 +38,7 @@ chmod +x $buildFile # Cleanup - if test ! -d $tempFolder; then + if test -d $tempFolder; then rm -rf $tempFolder fi fi
bash
d_bash_22361
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash # Install useful apt packages -PACKAGES='curl gsettings htop jq network-manager-openvpn openssh-server python-pip tmux tree zsh' +PACKAGES='curl htop jq network-manager-openvpn openssh-server python-pip tmux tree zsh' sudo apt install --assume-yes ${PACKAGES} # Install joe ...
bash
d_bash_22362
--- +++ @@ -5,15 +5,10 @@ # Author: Peter Nordin peter.nordin@liu.se basedir=`pwd` -basedir=`pwd` name=FMILibrary codedir=${basedir}/${name}_code builddir=${basedir}/${name}_build installdir=${basedir}/${name} - -codedir=${basedir}/ -builddir=${codedir}_build -installdir=${codedir}_install source setHopsan...
bash
d_bash_22363
--- +++ @@ -24,9 +24,11 @@ trap shutdown SIGTERM SIGINT +sleep 10 + for SUITE in "$@" do - java -jar support/selenese-runner.jar "$SUITE" --config "support/config" --baseurl "$SELENSE_BASE_URL" --driver remote --remote-url "http://127.0.0.1:4444/wd/hub" + java -jar support/selenese-runner.jar "$SUITE" --conf...
bash
d_bash_22364
--- +++ @@ -24,6 +24,22 @@ paster db init -c test-core.ini cd - +echo "Installing ckanext-harvest" +git clone https://github.com/ckan/ckanext-harvest +cd ckanext-harvest +git checkout stable +pip install -r pip-requirements.txt +python setup.py develop +cd - + +echo "Installing ckanext-dcat" +git clone https://gi...
bash
d_bash_22365
--- +++ @@ -10,5 +10,7 @@ generate_repo_file "$INSTALL_SCLS" -yum remove -y ${INSTALL_PKGS-$INSTALL_SCLS} -exit $? +set -e +for SCL in $INSTALL_SCLS ; do + yum remove -y ${SCL}\* +done
bash
d_bash_22366
--- +++ @@ -18,6 +18,10 @@ fi done +# Exclude large directories under user home directory +exclude_dir ~/Library +exclude_dir ~/n + # Clone Asimov for excluding development directories if [ ! -d "$ASIMOV_PATH" ]; then mkdir -p "$ASIMOV_PATH"
bash
d_bash_22367
--- +++ @@ -5,23 +5,23 @@ bakesale_script=$( cd $(dirname $0) ; pwd -P ) bakesale_source=$( dirname "${BASH_SOURCE[0]}" ) -# cat << EOF +cat << EOF -# * * * -# | | | -# +++++++++ -# ...
bash
d_bash_22368
--- +++ @@ -3,7 +3,7 @@ set -ex # Launch and wait for toxiproxy -vagrant/run_toxiproxy.sh & +${REPOSITORY_ROOT}/vagrant/run_toxiproxy.sh & while ! nc -q 1 localhost 2181 </dev/null; do echo "Waiting"; sleep 1; done while ! nc -q 1 localhost 9092 </dev/null; do echo "Waiting"; sleep 1; done
bash
d_bash_22369
--- +++ @@ -15,7 +15,7 @@ fi } -args="`ca -g $GOOGLE_ACCESS_TOKEN``ca --spreadsheet $SPREADSHEET_ID``ca --dbhome $MONGODB_HOME``ca --dbname $MONGODB_NAME``ca --pushurl $PUSH_URL``ca --smtpServer $SMTP_SERVER``ca --notifyto $NOTIFY_TO`" +args="`ca -g $GOOGLE_ACCESS_TOKEN``ca --spreadsheet $SPREADSHEET_ID``ca --d...
bash
d_bash_22370
--- +++ @@ -4,6 +4,6 @@ sudo brew tap homebrew/versions sudo brew install --enable-cxx gcc5 -sudo brew install llvm --with-clang --with-asan --HEAD +sudo brew install llvm --with-clang --HEAD brew outdated boost || brew upgrade boost
bash
d_bash_22371
--- +++ @@ -5,14 +5,3 @@ if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi - -function brew() { - trap "return" EXIT - `which brew` $@ - for option in $@ - do - if [ "$option" = "install" ]; then - brew list > $BREW_INSTALLED_PACKAGES_FILE - fi - ...
bash
d_bash_22372
--- +++ @@ -17,6 +17,11 @@ cp 3rdpartylicenses.txt $f/LICENSES.3rdParty done +for f in slack-stream-darwin* +do + mv $f `echo $f | sed "s/darwin/mac/g"` +done + n_cores=`grep processor /proc/cpuinfo | wc -l` echo "Creating zips using ${n_cores} processes" parallel -j ${n_cores} zip {}.zip -r {} > /dev/n...
bash
d_bash_22373
--- +++ @@ -21,13 +21,13 @@ fi done -for s in *.sh; do - if [ "$s" != "run-test.sh" ]; then - echo "all:: run-$s" - echo "run-$s:" - echo " @echo 'Running $s..'" - echo " @bash $s" - fi -done +#for s in *.sh; do +# if [ "$s" != "run-test.sh" ]; then +# echo "all:: run-$s" +# echo "run-$s:" +# echo " @echo...
bash
d_bash_22374
--- +++ @@ -1,14 +1,20 @@ test_basic_usage() { - if ! lxc image alias list | grep -q ^ubuntu$; then - ../scripts/lxd-images import lxc ubuntu trusty amd64 --alias ubuntu + if ! lxc image alias list | grep -q ^testimage$; then + if [ -e "$LXD_TEST_IMAGE" ]; then + IMAGE_SHA256=$(sha256sum "$LXD_TEST_IM...
bash
d_bash_22375
--- +++ @@ -18,6 +18,8 @@ opam --git-version opam init +opam switch $OCAML_VERSION +eval `opam config env` opam install ${OPAM_DEPENDS} -eval `opam config env` + make test
bash
d_bash_22376
--- +++ @@ -1,7 +1,8 @@ #!/bin/bash FAUCETHOME=`dirname $0`"/.." -PARGS='--delay 1 -j 2 --bar pytype -d pyi-error,import-error' +# TODO: increase job count - pytype is a memory hog +PARGS='--delay 1 -j 1 --bar pytype -d pyi-error,import-error' PY2="" PY3=""
bash
d_bash_22377
--- +++ @@ -5,9 +5,10 @@ [ -z "${newAppName}" ] && echo 'Missing required parameter newAppName' && exit 1 -grep -rI 'PepperoniAppTemplate' --exclude='rename.sh' $appRoot/* | tr ':' ' ' | awk '{print $1}' | uniq |xargs -I{} sed -i "s/PepperoniAppTemplate/${newAppName}/g" {} -grep -rI 'pepperoniapptemplate' --excl...
bash
d_bash_22378
--- +++ @@ -10,13 +10,12 @@ set -e -TESTS="$1" COMMAND="coverage run manage.py test --noinput --failfast --traceback --verbosity=2" /moto-s3/env/bin/moto_server s3 & if [ -z ${COMMAND_OVERRIDE} ]; then - $COMMAND $TESTS + $COMMAND "$@" else $COMMAND_OVERRIDE fi
bash
d_bash_22379
--- +++ @@ -16,7 +16,10 @@ function setup_fs() { if [ ! -f fs ]; then dd if=/dev/null of=fs bs=1k seek=512k - mkfs.ext2 -q -F fs + + # - don't include a journal + # - skip initialization of block groups + mkfs.ext4 -q -F -O "^has_journal,uninit_bg" fs fi mkdir -p rootfs ${target}
bash
d_bash_22380
--- +++ @@ -8,7 +8,7 @@ if [[ -z "${SKIP_OBJCLEAN}" || "${SKIP_OBJCLEAN}" != 1 ]]; then if [[ -d "${LOCAL_APPS_DIR}/Objective-Clean.app" ]]; then "${LOCAL_APPS_DIR}"/Objective-Clean.app/Contents/Resources/ObjClean.app/Contents/MacOS/ObjClean \ - "${SRCROOT}"?!!___PACKAGENAME___/Scripts + ...
bash
d_bash_22381
--- +++ @@ -6,3 +6,4 @@ alias p4s="git p4 submit -M" alias gvim="gvim --remote-tab-silent" +alias cdtmp="cd $(mktemp -d)"
bash
d_bash_22382
--- +++ @@ -20,9 +20,8 @@ fi # Verify docker is reachable. -OUT=$(($DOCKER images > /dev/null) 2>&1) -if [[ ! $? == 0 ]]; then - echo "Docker is not reachable. Did you follow installation instructions?" +OUT=$(($DOCKER images > /dev/null) 2>&1) || ( + echo "Docker is not reachable. Is the Docker daemon running...
bash
d_bash_22383
--- +++ @@ -6,7 +6,7 @@ # OAuth source ./keys.sh -URL="http://provider-google-contact.herokuapp.com" +URL="https://provider-google-contact.herokuapp.com" heroku config:set GOOGLE_CONTACTS_ID="$GOOGLE_CONTACTS_ID" heroku config:set GOOGLE_CONTACTS_SECRET="$GOOGLE_CONTACTS_SECRET"
bash
d_bash_22384
--- +++ @@ -4,17 +4,17 @@ set -ex -# Originally from https://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz -curl https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc/clang%2Bllvm-8.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz | \ +# Originally from https://releases.llvm.org/9...
bash
d_bash_22385
--- +++ @@ -1,5 +1,6 @@ #!/bin/bash +# http://www.grymoire.com/Unix/Sed.html#uh-37 sed -e "/GA HERE/{ r conf/analytics.txt d }" frontend/index.html | \
bash
d_bash_22386
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash + +THISDIR=$(dirname ${BASH_SOURCE[0]}) # we need to run this as root @@ -6,7 +8,7 @@ syncdir=$(mktemp -d /tmp/sync-XXXXXX) yum -y install git git clone https://github.com/CentOS/sig-core-t_functional $syncdir -cp Vagrantfile $syncdir -chmod u+x ./vagrant_test.sh -scl enab...
bash
d_bash_22387
--- +++ @@ -3,27 +3,27 @@ set -e wrap () { - COLUMNS=$(tput cols || echo 80) - echo "$@" | fmt -w $((COLUMNS - 5)) + COLUMNS=$(tput cols || echo 80) + echo "$@" | fmt -w $((COLUMNS - 5)) } cd "${0%/*}" if [[ ! -d venv ]]; then - echo "First run; creating virtual environment..." - wrap "Using ${PY...
bash
d_bash_22388
--- +++ @@ -1,13 +1,31 @@ #!/bin/bash RESOURCE_REPO_PATH="../font-image-service" +FONTS_PATH="TextContour/Fonts" +IMAGES_PATH="TextContour/Images" +PLIST_PATH="TextContour/Info.plist" +PLISTBUDDY="/usr/libexec/PlistBuddy" +# Copy phase echo "Coping Fonts..." -cp -r "${RESOURCE_REPO_PATH}/fonts/" "TextContour/F...
bash
d_bash_22389
--- +++ @@ -17,6 +17,7 @@ cd -- "${root}" rm -rf build "$PYTHON" setup.py build + export MPLBACKEND=pdf if [ $# -eq 0 ]; then # By default, when running all tests, skip tests that have # been marked for continuous integration by using __ci_ in
bash
d_bash_22390
--- +++ @@ -16,4 +16,6 @@ -days 3650 -nodes -sha256 2>/dev/null fi +update-ca-certificates + exec nginx -g "daemon off;"
bash
d_bash_22391
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env bash -: ${1:?"Must specify release version. Ex: 1.0.0.alpha1"} +: ${1:?"Must specify release version. Ex: 1.0.0.Alpha1"} api=${2:-https://api.engint.openshift.com} token=${3:-hRXsHSHzxwjiOUFbuvkgjIg2NWNHINuEeblNxq4zZ84} @@ -12,18 +12,20 @@ sed -e "s/VERSION/$REL/g" ./tem...
bash
d_bash_22392
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash export LC_ALL=C usage() { @@ -13,7 +13,7 @@ echo "Setting up project: $PROJECT_NAME" # list of all files that contain template code for project setup -files=(conf/entrypoint.sh conf/supervisor.intranet.conf conf/uwsgi.ini docker-compose.yml Dockerfile project_di...
bash
d_bash_22393
--- +++ @@ -4,6 +4,11 @@ JOB_NAME=$1 CLUSTER_SIZE=5 + +# echo "Starting run for: " $JOB_NAME + +# echo "Delete logs" +# gsutil -m rm gs://liftoff-dev-worker-logs/* echo "Deleting tasks" dart sintr_analysis_server_example/bin/delete_all_tasks.dart @@ -20,10 +25,10 @@ ./tools/scripts/deploy_worker_cluster.sh $...
bash
d_bash_22394
--- +++ @@ -22,7 +22,7 @@ inputArray=($@) newArray=() - for (( i=${#inputArray}; i>0; i-- )); do + for (( i=${#inputArray[@]}; i>0; i-- )); do newArray+=(${inputArray[i]}) done
bash
d_bash_22395
--- +++ @@ -36,11 +36,13 @@ source $PROFILE # Install ruby-build: -pushd $(mktemp -d /tmp/ruby-build.XXXXXXXXXX) - git clone git://github.com/sstephenson/ruby-build.git - cd ruby-build - PREFIX=$RBENV_ROOT ./install.sh -popd +if [ ! -d $RBENV_ROOT/bin/ruby-build ] ; then + pushd $(mktemp -d /tmp/ruby-build.XX...
bash
d_bash_22396
--- +++ @@ -1,19 +1,20 @@ #!/bin/sh set -o errexit - -# Get to the Travis build directory, configure git and clone the repo -export TARG=${TRAVIS_BUILD_DIR}/target -cd ${TARG} # # Setup git parameters # git config --global user.email "travis@travis-ci.org" git config --global user.name "travis-ci" -git con...
bash
d_bash_22397
--- +++ @@ -1,3 +1,3 @@ #!/usr/bin/env bash -code --list-extensions | sort > ~/dotfiles/vscode/extensions.txt +code --list-extensions > ~/dotfiles/vscode/extensions.txt
bash
d_bash_22398
--- +++ @@ -1,4 +1,5 @@ #!/bin/bash +brew unlink python@3.9 && brew link --overwrite python@3.9 brew update 1>/dev/null brew install -q libffi gnupg2 pgpdump openssl@1.1 gpgme swig
bash
d_bash_22399
--- +++ @@ -2,12 +2,12 @@ set -o errexit set -o nounset -STUNNEL_VERSION="5.36" -STUNNEL_SHA1SUM="60f7c761214f1959f7d52f0164f77d8d2a9328e6" +STUNNEL_VERSION="5.37" +STUNNEL_SHA1SUM="9ec0c64838b3013b38e2cac8e4500219a027831c" STUNNEL_NAME="stunnel-${STUNNEL_VERSION}" STUNNEL_ARCHIVE="${STUNNEL_NAME}.tar.gz" -ST...
bash