document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_15200
--- +++ @@ -1,4 +1,4 @@ #!/bin/sh -watchify client.js -d -o public/index.js & -watchify pages/vote/client.js -d -o public/vote.js & +# watchify client.js -d -o public/index.js & +watchify client.js pages/vote/client.js -d -o public/vote.js & stylus -w pages/**/*.styl public/**/*.styl &
bash
d_bash_15201
--- +++ @@ -5,11 +5,10 @@ tar cf - --one-file-system -C /usr/src/flarum . | tar xf - sleep 20 php flarum install -d + mysql -hdb -uflarum -pflarum flarum < /usr/src/flarum/config.sql fi cp /usr/src/flarum/config.php . chown -R www-data /var/www/html -mysql -hdb -uflarum -pflarum flarum < /usr/sr...
bash
d_bash_15202
--- +++ @@ -2,14 +2,7 @@ set -euo pipefail -if [ -z $PLATFORM ]; then - echo "PLATFORM must be set." - exit 1 -fi - -if [ -z $COVERAGE ]; then - COVERAGE=OFF -fi +[[ "${COVERAGE:-}" ]] || COVERAGE=OFF cmake -H. -Bbuild -DPLATFORM=$PLATFORM -DCOVERAGE=$COVERAGE cmake --build build
bash
d_bash_15203
--- +++ @@ -1,4 +1,4 @@ #! /bin/sh -docker build -t biow0lf/evemonk:master . --no-cache -docker push biow0lf/evemonk:master +docker build -t "biow0lf/evemonk:$(cat .version)" . --no-cache +docker push "biow0lf/evemonk:$(cat .version)"
bash
d_bash_15204
--- +++ @@ -5,6 +5,6 @@ cd $(dirname $0) stack image container NAME=snoyberg/snoyman-webapps:sha-$(git rev-parse HEAD) -docker tag snoyberg/snoyman-webapps:latest $NAME +docker tag -f snoyberg/snoyman-webapps:latest $NAME docker push $NAME kubectl set image deployments/snoyman-webapps webapps=$NAME
bash
d_bash_15205
--- +++ @@ -3,9 +3,9 @@ RETCODE=$(fw_exists /usr/local/bin/urweb) [ ! "$RETCODE" == 0 ] || { return 0; } -fw_get http://www.impredicative.com/ur/urweb-20140819.tgz -fw_untar urweb-20140819.tgz -cd urweb-20140819 +fw_get http://www.impredicative.com/ur/urweb-20140830.tgz +fw_untar urweb-20140830.tgz +cd urweb-2014...
bash
d_bash_15206
--- +++ @@ -19,8 +19,8 @@ echo 'Be sure to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.' ln -s /usr/local/bin/gsha256sum /usr/local/bin/sha256sum -if ! grep '/usr/local/bin/bash' /etc/shells; then - echo '/usr/local/bin/bash' | sudo tee -a /etc/shells; +if ! fgrep -q '/usr/local/bin/bash' /etc/she...
bash
d_bash_15207
--- +++ @@ -20,15 +20,14 @@ -type f -name "*.sh" ! -name ".*" | sort); do . "$file" done - unset file + unset -v file fi if [[ "$SEQCLOUD_PATH" != false ]]; then for file in $(find "$SEQCLOUD_DIR"/profile/path \ -type f -name "*.sh" ! -name ".*" | sort); do . "$fi...
bash
d_bash_15208
--- +++ @@ -23,7 +23,7 @@ then BUILDS_LIST=${ZIP_NAME} else - BUILDS_LIST=${FILE},${ZIP_NAME} + BUILDS_LIST=${BUILDS_LIST},${ZIP_NAME} fi done
bash
d_bash_15209
--- +++ @@ -2,7 +2,7 @@ # # This script is run by Vagrant when a new machine is provisioned. # - +sudo apt-get update sudo apt-get -y install git sudo apt-get -y install python-software-properties
bash
d_bash_15210
--- +++ @@ -2,7 +2,7 @@ set -ex -o pipefail BCBIO_VERSION="1.0.8a" -BCBIO_REVISION="9623c22" +BCBIO_REVISION="79d9654" NS="quay.io/bcbio" TAG="${BCBIO_VERSION}-${BCBIO_REVISION}"
bash
d_bash_15211
--- +++ @@ -1,14 +1,14 @@ #!/bin/bash set -e -set -x - -export JAVA_HOME=$(/usr/libexec/java_home -v 1.7) OUTPUT_DIR=$(mktemp -d -t xctool-release) BUILD_OUTPUT_DIR="$OUTPUT_DIR"/build RELEASE_OUTPUT_DIR="$OUTPUT_DIR"/release XCTOOL_DIR=$(cd $(dirname $0)/..; pwd) + +[[ -n "${TRAVIS}" ]] && echo "travis_fol...
bash
d_bash_15212
--- +++ @@ -1,7 +1,7 @@ #!/bin/sh runAndroidTestWithBinding () { echo "Running tests on platform $ANDROID_TARGET with binding $1" - python3 ./adb-wrapper.py "adb shell am instrument -w -e squidb_binding $1 com.yahoo.squidb.test/com.yahoo.squidb.android.SquidInstrumentationTestRunner" + python3 ./scripts/...
bash
d_bash_15213
--- +++ @@ -1,4 +1,4 @@ echo "Creating users ..." -docker-compose -f tests/compose/core/docker-compose.yml exec admin python manage.py admin admin mailu.io password || exit 1 -docker-compose -f tests/compose/core/docker-compose.yml exec admin python manage.py user --hash_scheme='SHA512-CRYPT' user mailu.io 'password...
bash
d_bash_15214
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -mkdir -p ${PREFIX}/x86_64-conda_cos6-linux-gnu/sysroot -pushd ${PREFIX}/x86_64-conda_cos6-linux-gnu/sysroot > /dev/null 2>&1 +mkdir -p ${PREFIX}/x86_64-conda_cos6-linux-gnu/sysroot/usr +pushd ${PREFIX}/x86_64-conda_cos6-linux-gnu/sysroot/usr > /dev/null 2>&1 cp -Rf "${SRC_DIR}...
bash
d_bash_15215
--- +++ @@ -3,16 +3,32 @@ # Reload profile if it exists. if [ -f /etc/profile ]; then - echo "Reload profile data" + echo "Reload profile data." source /etc/profile fi -# USe JAVA_HOME if it is set. +# Load config file if it exists. +if [ -f /etc/sysconfig/frontend_config ]; +then + echo "Load confi...
bash
d_bash_15216
--- +++ @@ -1,4 +1,8 @@ #!/bin/bash -l + +module load git +git pull + benchmarks=($(ls $1*.sh)) n_benchmarks=${#benchmarks[*]} selected_benchmark=${benchmarks[$((RANDOM%n_benchmarks))]}
bash
d_bash_15217
--- +++ @@ -3,7 +3,7 @@ dotnet ../tools/sonar-scanner-msbuild/SonarScanner.MSBuild.dll begin \ /k:"GeneticSharp" \ - /v:$branch \ + /d:sonar.branch.name=$branch \ /d:sonar.organization="giacomelli-github" \ /d:sonar.host.url="https://sonarcloud.io" \ /d:sonar.login=$GeneticSharp_SonarQube...
bash
d_bash_15218
--- +++ @@ -32,4 +32,6 @@ rm -rf /mnt/hds/proj/bioinfo/DEMUX/${RUN}/Unaligned*/ rm -rf /mnt/hds/proj/bioinfo/DEMUX/${RUN}/l?t??/ fi + + cg set flowcell ${FC} --status removed done < ${FCS_FILE}
bash
d_bash_15219
--- +++ @@ -5,7 +5,7 @@ PUPPET_DIR="/opt/puppetlabs" PUPPET_BIN="$PUPPET_DIR/puppet/bin" -DISTRIB_RELEASE=`rpm -qa '*release*' --queryformat '%{VERSION}'` +DISTRIB_RELEASE=`rpm -qa 'centos*release*' --queryformat '%{VERSION}'` echo "Running Puppet setup script for Centos" echo "Centos Enterprise version: $DIS...
bash
d_bash_15220
--- +++ @@ -11,9 +11,7 @@ ./configure --prefix=/usr make sudo make install -sudo ldconfig -cd .. -find /usr -name "libzmq*" -exec ls -l {} \; +cd ../.. git clone https://github.com/anchor/libmarquise cd libmarquise autoreconf -i
bash
d_bash_15221
--- +++ @@ -17,6 +17,7 @@ redshift scrot arandr cmake feh keepassx autocutsel # python binding +pip2 install neovim pip3 install neovim sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
bash
d_bash_15222
--- +++ @@ -19,7 +19,7 @@ for snakefile in ./*/Snakefile; do echo -e "\nRunning ${snakefile} (quietly)\n" pushd $(dirname "${snakefile}") >/dev/null - snakemake --cores 1 --quiet clean 1>/dev/null + snakemake --cores 1 clean --quiet 1>/dev/null snakemake --cores 1 --quiet 1>/dev/null cp aus...
bash
d_bash_15223
--- +++ @@ -9,7 +9,7 @@ # Update Homebrew packages, casks brew update -brew upgrade +brew upgrade --all # Update npm & packages npm install npm -g
bash
d_bash_15224
--- +++ @@ -1,6 +1,9 @@ #! /bin/bash -set -e echo "Call Unit Test" cd $TRAVIS_BUILD_DIR -cd build && make test +cd build +if make test; then + exit 0 +fi +exit -1 # Test output are only shown if failure happened
bash
d_bash_15225
--- +++ @@ -25,6 +25,10 @@ test_init "Running Flawfinder" stest 0 which flawfinder -stest 1 sh -c "flawfinder -S --minlevel=3 ../src | grep -E '^Hits = '" +stest 0 sh -c "flawfinder -SQ --minlevel=3 ../src > '$SINGULARITY_TESTDIR/ff.out'" +if ! grep -q 'No hits found.' "$SINGULARITY_TESTDIR/ff.out"; then + cat...
bash
d_bash_15226
--- +++ @@ -28,7 +28,7 @@ #download own package cd ~/catkin_ws/src/ -rsync -av $HOME/raspimouse_ros ~/catkin_ws/src/raspimouse_ros/ -#rsync -av /home/travis/build/ryuichiueda/raspimouse_ros ~/catkin_ws/src/raspimouse_ros/ +#rsync -av $HOME/raspimouse_ros ~/catkin_ws/src/raspimouse_ros/ +rsync -av /home/travis/bui...
bash
d_bash_15227
--- +++ @@ -4,7 +4,7 @@ export OPAMYES=1 opam init -opam install oasis ocamlfind menhir +opam install oasis ocamlfind menhir ounit eval `opam config env` ./configure --enable-tests
bash
d_bash_15228
--- +++ @@ -1,4 +1,19 @@ #!/bin/bash +cd .. + +echo remove sdk folder +rm -rf matrix-android-sdk + +echo clone the git folder +git clone -b master https://github.com/matrix-org/matrix-android-sdk + +cd matrix-android-sdk +./gradlew clean assembleRelease + +cd ../riot-android +rm -f vector/libs/matrix-sdk.aar +cp ....
bash
d_bash_15229
--- +++ @@ -1,4 +1,15 @@ #!/usr/bin/env bash + + +# http://stackoverflow.com/a/246128/312785 +path="${BASH_SOURCE[0]}" +while [ -h "$path" ] ; do + dir="$(cd -P "$(dirname "$path")" && pwd)" + path="$(readlink "$path")" + [[ $path == /* ]] || path="$dir/$path" +done +dir="$(cd -P "$(dirname "$path")" && pwd)" + ...
bash
d_bash_15230
--- +++ @@ -8,15 +8,22 @@ source $BASE/get_version_string.sh #read ver rel < <(get_rpm_version_string) string=$(get_rpm_version_string) -ver=${string% *} -rel=${string#* } +VERSION_VALUE=${string% *} +RELEASE_VALUE=${string#* } -PYTHON27_VALUE=0 -PYTHON27_ARG=${1} +args=("$@") +ELEMENTS=${#args[@]} -if [ "$PYT...
bash
d_bash_15231
--- +++ @@ -11,5 +11,7 @@ echo "port = 9902" >> $PGPREFIX/data2/postgresql.conf $PGBIN/pg_ctl -w start -D $PGPREFIX/data1 $PGBIN/pg_ctl -w start -D $PGPREFIX/data2 -$PGBIN/psql -p 9901 -c "CREATE DATABASE quarrel1" postgres -$PGBIN/psql -p 9902 -c "CREATE DATABASE quarrel2" postgres +$PGBIN/psql -p 9901 -c "CREATE...
bash
d_bash_15232
--- +++ @@ -3,7 +3,7 @@ pip install --user awscli PATH=$PATH:/$HOME/.local/bin -REPO_NAME=bookit-aws-ecr5 +REPO_NAME=bookit-aws-ecr AWS_REGION=us-east-1 echo "The AWS region is $AWS_REGION" #COMMIT_SHA=fake @@ -25,5 +25,9 @@ eval $(aws ecr get-login --region $AWS_REGION) #eval $(aws ecr get-login --region $A...
bash
d_bash_15233
--- +++ @@ -5,4 +5,4 @@ cp -r /vagrant/ansible /tmp chmod -x /tmp/ansible/*.ini -ansible-pull --checkout master --directory /opt/ansible-pull --inventory-file=/tmp/ansible/$INVENTORY --module-name=git --only-if-changed --url=https://github.com/kurron/ansible-pull.git --verbose playbook.yml +ansible-pull --check...
bash
d_bash_15234
--- +++ @@ -17,7 +17,6 @@ # deploy and configure RAX MaaS if [[ "${DEPLOY_MAAS}" == "yes" ]]; then run_ansible setup-maas.yml - run_ansible verify-maas.yml fi # deploy and configure the ELK stack @@ -29,3 +28,9 @@ run_ansible haproxy.yml fi fi + +# verify RAX MaaS is running after all necessary +# ...
bash
d_bash_15235
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash ragel -s p1-parser.rl -gcc -Wall -Os -g -o p1-test-p1 p1-parser.c p1-lib.c p1-test.c crc16.c -gcc -Wall -Os -g -o p1-test-d0 p1-parser.c p1-lib.c p1-test-d0.c crc16.c +gcc -Wall -Os -g -o p1-test p1-parser.c p1-lib.c p1-test.c crc16.c +gcc -Wall -Os -g -o d0-test p1-parser.c p1...
bash
d_bash_15236
--- +++ @@ -1 +1,2 @@ echo 'export PYTHONPATH=/home/vagrant/www:/home/vagrant/www/lib' | tee -a /home/vagrant/.bash_profile +chmod +x /home/vagrant/www/shell/python-su.sh
bash
d_bash_15237
--- +++ @@ -2,21 +2,29 @@ # Script for running experiments on the VU cluster of DAS-5 -# Naming scheme: run_n<nodes>_t<TitanX_per_node>_g<GTX980_per_node>_i<interconnect> +# Naming scheme: run_n<nodes>_t<TitanX_per_node>_g<GTX980_per_node>_i<interconnect>_r<replica> # where <interconnect> is i for Infiniband, e...
bash
d_bash_15238
--- +++ @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e echo "" > coverage.txt -for d in $(go list ./... | grep -v vendor); do +for d in $(go list ./... | egrep -v "(vendor|tools|contrib)"); do go test -race -coverprofile=profile.out -covermode=atomic $d if [ -f profile.out ]; then cat profile.out >>...
bash
d_bash_15239
--- +++ @@ -1,12 +1,11 @@ #!/bin/bash # This expects /input/admin.json to be the generated admin.json file +. /usr/lib/ckan/bin/activate + if /usr/lib/ckan/bin/ckanapi action user_show -c /project/development.ini id=admin; then - # Generate a file with info on the user and add a password w/ Python - /usr/l...
bash
d_bash_15240
--- +++ @@ -3,7 +3,7 @@ if ! rake ar:version 2>/dev/null; then echo "Loading schema..." - rake ar:schema:load > /dev/null + rake ar:schema:create ar:schema:load > /dev/null fi if [ "$(echo "$LOAD_CONGRESS" | tr '[:upper:]' '[:lower:]')" = "true" ]; then
bash
d_bash_15241
--- +++ @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: extract_src.sh,v 1.4 1995/02/02 08:31:36 jkh Exp $ +# $Id: extract_src.sh,v 1.5 1995/02/10 07:22:39 jkh Exp $ PATH=/stand:$PATH DDIR=/usr/src @@ -10,5 +10,4 @@ cat ${DIST}.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu ) fi done -rm -f /sys -ln -s /usr/src/sys /sy...
bash
d_bash_15242
--- +++ @@ -31,7 +31,7 @@ } prepare_output() { - cp -av blog-content/* blog-website + cp -rv blog-content/. blog-website } main
bash
d_bash_15243
--- +++ @@ -11,27 +11,29 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -TMP_DIR=$DIR/testing_directory +WORKING_DIR=$DIR/testing_directory TESTS_DIR=$DIR/tests CMD=../nggroup # Clean up first - in case the script didn't successfully exit -rm -rf $TMP_DIR +rm -rf $WORKING_DIR # Then set up ou...
bash
d_bash_15244
--- +++ @@ -1,34 +1,49 @@ #!/bin/bash -read REQUEST_METHOD REQUEST_URI REQUEST_HTTP_VERSION +function upper() { echo "$@" | tr '[:lower:]' '[:upper:]'; } -while read HEADER_LINE; do - [[ "$HEADER_LINE" =~ ^$ ]]&& { - break; - } - HEADER_KEY=$(echo "$HEADER_LINE" | sed 's/^\([^:]*\):.*/\1/g' | sed 's/-/...
bash
d_bash_15245
--- +++ @@ -9,3 +9,5 @@ while ! $(lxc image ls | grep -q "${IMAGE_NAME}") ; do sleep 5; echo -e . ; done lxc image export ${IMAGE_NAME} /home/travis/${IMAGE_NAME} + +aws s3 cp /home/travis/${IMAGE_NAME}.tar.gz s3://${LXC_AWS_BUCKET}/amd64/
bash
d_bash_15246
--- +++ @@ -5,5 +5,6 @@ # Check out special branch until latest docker changes land in Boulder master. git clone -b docker-integration https://github.com/letsencrypt/boulder $BOULDERPATH cd $BOULDERPATH -sed -i 's/FAKE_DNS: .*/FAKE_DNS: 172.17.42.1/' docker-compose.yml +FAKE_DNS=$(ifconfig docker0 | grep "inet add...
bash
d_bash_15247
--- +++ @@ -25,4 +25,6 @@ echo "AutomaticLoginEnable = true" >> /etc/gdm3/custom.conf echo "AutomaticLogin = $LOGIN_USER" >> /etc/gdm3/custom.conf -systemctl restart display-manager +if [[ $(which gnome-session) ]]; then + systemctl restart display-manager +fi
bash
d_bash_15248
--- +++ @@ -7,8 +7,8 @@ local remote_path="${VMKITE_SCP_PATH}/${base_name}-r${BUILDKITE_BUILD_NUMBER:-0}.vmdk" echo "--- Uploading $disk to $remote_path" - sftp -P "${VMKITE_SCP_PORT}" "${VMKITE_SCP_USER}@${VMKITE_SCP_HOST}" -- \ - put -r "${disk}" "${remote_path}" + sftp -b <(put -r "${disk}" "${remote_...
bash
d_bash_15249
--- +++ @@ -1,6 +1,9 @@ #!/bin/sh # Setup a machine for Sublime Text 3 set -x + +# Install `subl` command line tool +ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl # Symlink settings mv ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User ~/Library/Applicati...
bash
d_bash_15250
--- +++ @@ -5,7 +5,7 @@ source build/bin/activate # install depends -pip install --upgrade colorlog pyyaml psutil lxml cssselect nose urwid coverage six pylint progressbar33 locustio +pip install --upgrade colorlog pyyaml psutil lxml cssselect nose urwid coverage six pylint selenium progressbar33 locustio pyli...
bash
d_bash_15251
--- +++ @@ -9,7 +9,7 @@ source "$(dirname "$0")/../functions.sh" DATADIR="$(dirname "$0")" -PROJECT="$1" +PROJECT="${1:-SDL_ttf}" verify_project "$PROJECT" prepend_changelog "$PROJECT" "$DATADIR"
bash
d_bash_15252
--- +++ @@ -1,15 +1,22 @@ #!/usr/bin/env bash # -# Install JUST the required dependencies for the project. -# May be used for ci or other team members. +# Install required dependencies +# $ANDROID_HOME must be set to be cached on CI setup # -for I in android-25 \ - build-tools-25.0.2 \ - tool \ ...
bash
d_bash_15253
--- +++ @@ -2,7 +2,7 @@ if [ -z "$CLASSPATH" ]; then - CLASSPATH=/home/y/lib/jars/node-admin-maintenance-jar-with-dependencies.jar:/home/y/lib/jars/docker-api-jar-with-dependencies.jar + CLASSPATH=/home/y/lib/jars/node-admin-maintenance-jar-with-dependencies.jar:/home/y/lib/jars/docker-api-jar-with-depende...
bash
d_bash_15254
--- +++ @@ -6,7 +6,7 @@ cp -v gitconfig ~/.gitconfig cp -v profile ~/.profile cp -v screenrc ~/.screenrc -cp -v vimrc ~/.screenrc +cp -v vimrc ~/.vimrc if [[ "$git_user_name" == "" ]]; then read -p "Git user name: " git_user_name
bash
d_bash_15255
--- +++ @@ -1,2 +1,2 @@ -rsync -zrh --delete --exclude=*.json --exclude=*.sh --progress . mse13@157.26.103.175:CUDA/toStudent/code/WCudaMSE/Student_Cuda_Image/src/cpp/core/07_HeatTransfert +rsync -zrh --delete --exclude=*.json --exclude=*.sh --progress . mse13@157.26.103.175:CUDA/toStudent/code/WCudaMSE/Student_Cuda_...
bash
d_bash_15256
--- +++ @@ -1,5 +1,6 @@ [[ -s "/etc/default/evm" ]] && source "/etc/default/evm" # Aliases: +alias ad='/usr/bin/appliance_console' alias vmdb='cd /var/www/miq/vmdb' alias appliance='[[ -n ${APPLIANCE_SOURCE_DIRECTORY} ]] && cd ${APPLIANCE_SOURCE_DIRECTORY}'
bash
d_bash_15257
--- +++ @@ -19,4 +19,29 @@ mv /tmp/rkt-v${VERSION}/*.aci /usr/local/bin } +function configure_rkt_networking() { + if [[ -e /etc/rkt/net.d/99-network.conf ]] ; then + return + fi + + mkdir -p /etc/rkt/net.d + cat <<EOT > /etc/rkt/net.d/99-network.conf +{ + "name": "default", + "type": "ptp", + "ipMasq": fals...
bash
d_bash_15258
--- +++ @@ -12,7 +12,7 @@ echo "https://github.com/bell-sw/Liberica/releases/download/17.0.3.1+2/bellsoft-jdk17.0.3.1+2-linux-amd64.tar.gz" ;; java18) - echo "https://github.com/bell-sw/Liberica/releases/download/18.0.1+12/bellsoft-jdk18.0.1+12-linux-amd64.tar.gz" + echo "https://github.com/bell-sw/Liberi...
bash
d_bash_15259
--- +++ @@ -13,7 +13,7 @@ echo echo 'Running flake8 ...' -python2 -m flake8 +python2 -m flake8 --show-source status=$(( $status + $? )) # We should add something like jshint for our JavaScript as well
bash
d_bash_15260
--- +++ @@ -20,7 +20,7 @@ # RPM is used to build packages for Enterprise Linux hosts. # Boto is used to upload packages to S3. -run sudo apt-get install -y rpm python-boto ruby ruby-dev +run sudo apt-get install -y rpm python-boto ruby ruby-dev autoconf libtool run sudo gem install fpm if git describe --exact...
bash
d_bash_15261
--- +++ @@ -2,11 +2,11 @@ pkg_name=popt pkg_origin=core pkg_version=1.16 -pkg_descriptyon="Popt is a C library for parsing command line parameters" +pkg_description="Popt is a C library for parsing command line parameters" pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" pkg_license=("MIT") pkg_upst...
bash
d_bash_15262
--- +++ @@ -7,3 +7,8 @@ sudo sh -c "echo ' Option \"AccelerationProfile\" \"-1\"' >> /usr/share/X11/xorg.conf.d/90-mouse.conf" sudo sh -c "echo ' Option \"AccelerationScheme\" \"none\"' >> /usr/share/X11/xorg.conf.d/90-mouse.conf" sudo sh -c "echo 'EndSection' >> /usr/share/X11/xorg.conf.d/90-mouse.conf" + +...
bash
d_bash_15263
--- +++ @@ -11,9 +11,7 @@ #git pull --rebase # Not needed any longer? git checkout v4.0.0-alpha.6 -# Link and import our custom variables -echo '@import "customvars";' >> scss/_custom.scss -ln -s ../../../sass/customvars.scss scss/ +cd ../.. -# Rebuild Bootstrap -npm install && grunt dist +# Link and import our...
bash
d_bash_15264
--- +++ @@ -15,3 +15,10 @@ sed -i -e 's/^GRUB_TIMEOUT.*/GRUB_TIMEOUT=0/' /etc/default/grub grub2-mkconfig -o /boot/grub2/grub.cfg fi + +# Ensure that cloud-init starts before sshd +if [ -e /usr/lib/systemd/system/cloud-init.service ] ; then + FILE=/usr/lib/systemd/system/cloud-init.service + sed -i '/^Wants/...
bash
d_bash_15265
--- +++ @@ -2,7 +2,7 @@ sh -e /etc/init.d/xvfb start # fetch extjs -#wget http://cdn.sencha.io/ext-4.1.1-gpl.zip +wget http://cdn.sencha.io/ext-4.1.1-gpl.zip unzip -q -d test/communitypack_test_app/public/ -n ext-4.1.1-gpl.zip mv test/communitypack_test_app/public/extjs-4.1.1 test/communitypack_test_app/public/...
bash
d_bash_15266
--- +++ @@ -5,7 +5,7 @@ # Actual Source Files/Folders source_files=($DOTFILES/plugins/idea/etc/*) -for idea_pref_folder in ~/Library/Preferences/{IntelliJ,PhpStorm,PyCharm}*(N); do +for idea_pref_folder in ~/Library/Preferences/{IntelliJ,PhpStorm,PyCharm,DataGrip}*(N); do symlink-files "$source_files" "$idea...
bash
d_bash_15267
--- +++ @@ -19,7 +19,6 @@ #copy the existing cron file, and add a reboot event crontab -l > tmp.cron echo "@reboot $path/startup.sh" >> tmp.cron -echo "@hourly $path/startup.sh" >> tmp.cron #make that the cron events. crontab tmp.cron
bash
d_bash_15268
--- +++ @@ -6,12 +6,23 @@ echo_heading "Update and install packages" { sudo apt-get update -qq - sudo apt-get install -y git npm mongodb redis-server + sudo add-apt-repository ppa:git-core/ppa # for git v2+ + sudo apt-get update -qq + sudo apt-get install -y git mongodb redis-server + sudo apt-get install -...
bash
d_bash_15269
--- +++ @@ -1,5 +1,6 @@ alias mvim='/Applications/MacVim.app/Contents/MacOS/MacVim' alias reload!='. ~/.zshrc' +alias vim='/usr/local/Cellar/vim/8.0.0596/bin/vim' alias nano='vim' alias fix_drupal_perms='find . -type d -name files -exec chmod 777 {} \;' alias updatedb='/usr/libexec/locate.updatedb'
bash
d_bash_15270
--- +++ @@ -6,11 +6,13 @@ "$BUILDKITE_PULL_REQUEST_BASE_BRANCH" == "master" || "$BUILDKITE_BRANCH" == "master" ]]; then echo "Running full build" - buildkite-agent pipeline upload .buildkite/pipeline.quick.yml .buildkite/pipeline.full.yml + buildkite-agent pipeline upload .buildkite/pipeline.quick.yml + b...
bash
d_bash_15271
--- +++ @@ -3,7 +3,7 @@ set -eu set -o pipefail -cd `dirname $0` +cd "$(dirname "$0")" FSIARGS="" OS=${OS:-"unknown"}
bash
d_bash_15272
--- +++ @@ -28,7 +28,7 @@ # Copy the elvis script into the bin folder mkdir -p "$INSTALL_BASE/bin" -cp tupelo.stix.amqp.test "$INSTALL_BASE/bin" +cp tupelo.* "$INSTALL_BASE/bin" # Set permissions # Don't use recursive changes, be explicit @@ -38,7 +38,7 @@ chmod a+rx "$JAR_PATH/../" chmod a+rx "$JAR_PATH" ...
bash
d_bash_15273
--- +++ @@ -5,14 +5,21 @@ readonly VENV_BIN=${VENV_BIN:-/var/lib/galaxy/venv/bin} +# FIXME(cutwater): Yet another workaround for running entrypoint not as PID 1 +# All run commands should be implemented outside entrypoint (e.g. in manage.py) +function _exec_cmd() { + [ $$ -eq 1 ] && set -- tini -- "$@" + e...
bash
d_bash_15274
--- +++ @@ -2,11 +2,13 @@ # NOTE: The 5 below needs to match PER_RUN in scale.sh n=`echo $1 \* 5 + $2 | bc` +subn=$(($n % 256)) +subm=$((($n + 1) % 256)) #echo "Create N is $n" neutron net-create ovnnet-a-$n neutron net-create ovnnet-b-$n -neutron subnet-create --name ovnsubnet-a-$n ovnnet-a-$n 10.$1.$2.0/24 -...
bash
d_bash_15275
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh JQUERY_VERSION="1.10.2" -STROPHE_VERSION="1.0.2" +STROPHE_VERSION="1.1.0" BOOTSTRAP_VERSION="1.4.0" ADHOC_COMMITISH="87bfedccdb91e2ff7cfb165e989e5259c155b513"
bash
d_bash_15276
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash -e cd $(dirname $(readlink -e $0)) -/usr/bin/curl -s https://raw.github.com/mk23/sandbox/master/misc/release.py | exec /usr/bin/env python2.7 - --commit -e pom.xml '<artifactId>jmxproxy</artifactId>\s+<version>{version}</version>' -e README.md 'target/jmxproxy-{version}.jar' -e...
bash
d_bash_15277
--- +++ @@ -5,7 +5,7 @@ # Moreover, Samsung printer drivers could be installed, too. # They are present under ~/Developer/drivers/samsung/ -sudo apt-get install calibre gaphor curl synaptic pidgin +sudo apt-get install calibre gaphor curl synaptic pidgin remmina # in order to install `dropbox`, use the followi...
bash
d_bash_15278
--- +++ @@ -1,3 +1,3 @@ #!/usr/bin/env sh set -e -sbt -J-Xmx4500M ++$TRAVIS_SCALA_VERSION test +sbt -J-Xmx5500M ++$TRAVIS_SCALA_VERSION test
bash
d_bash_15279
--- +++ @@ -2,7 +2,7 @@ BASEDIR=$(dirname $0) -virtualenv --no-site-packages $BASEDIR/venv +virtualenv $BASEDIR/venv $BASEDIR/venv/bin/pip install -r $BASEDIR/requirements.txt $BASEDIR/venv/bin/python $BASEDIR/update-database.py $1
bash
d_bash_15280
--- +++ @@ -1,6 +1,9 @@ #!/bin/sh set -eux + +# Update things +pip install -U setuptools pip case "$TEST_MODE" in
bash
d_bash_15281
--- +++ @@ -29,3 +29,6 @@ # Run tests pip install --upgrade nox-automation nox -s "${NOX_SESSION}" + +# Workaround for Kokoro permissions issue: delete secrets +rm testing/{test-env.sh,client-secrets.json,service-account.json}
bash
d_bash_15282
--- +++ @@ -4,7 +4,7 @@ git clone https://github.com/edgedb/edgedb-python.git edgedb cd edgedb -git submodule update --init --depth 1 +git submodule update --init --depth 50 pip install --verbose -e . cd ../
bash
d_bash_15283
--- +++ @@ -2,6 +2,10 @@ set -ex +if [ -d hamidashi-pdf ] +then + rm -rf hamidashi-pdf +fi + bundle exec review-pdfmaker config.yml mv hamidashi.pdf .. -
bash
d_bash_15284
--- +++ @@ -4,7 +4,7 @@ # output every 9 min to prevent a Travis timeout PID=$! -while [[ `ps -p $PID | tail -n +2` ]]; do +while [[ $(ps -p $PID | tail -n +2) ]]; do echo 'Deploying...' sleep 540 done
bash
d_bash_15285
--- +++ @@ -1,5 +1,14 @@ export CCACHE_DIR=/var/tmp/ccache/ cmake -DCMAKE_CXX_COMPILER=/usr/lib/ccache/bin/clang++ -DCMAKE_C_COMPILER=/usr/lib/ccache/bin/clang . make + +echo "Run the test" ./bin/boosttest--eddic_boost_test --report_level=detailed --report_format=xml --report_sink=test-results.xml + +echo "Genera...
bash
d_bash_15286
--- +++ @@ -11,3 +11,7 @@ bindkey '^[Q' push-line-or-edit bindkey '^[q' push-line-or-edit +# Ctrl + left/right arrow keys to move between words +bindkey "^[[1;5C" forward-word +bindkey "^[[1;5D" backward-word +
bash
d_bash_15287
--- +++ @@ -6,7 +6,10 @@ TAG=$TRAVIS_TAG fi + IMAGE_NAME=clems4ever/authelia + docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; - docker push clems4ever/authelia:$TAG; + docker tag $IMAGE_NAME $IMAGE_NAME:$TAG; + docker push $IMAGE_NAME:$TAG; fi
bash
d_bash_15288
--- +++ @@ -17,3 +17,4 @@ alias gcb='git copy-branch-name' alias gb='git branch' alias gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun. +alias forgot='git commit --amend --no-edit'
bash
d_bash_15289
--- +++ @@ -37,6 +37,6 @@ exit 1 fi -find "$S3_CACHE_DEFAULT_DIR" -type f -mtime "+$MAX_AGE_DAYS" -exec rm {} \; +find "$S3_CACHE_DEFAULT_DIR" -name "*.dat" -type f -mtime "+$MAX_AGE_DAYS" -exec rm {} \; exit 0
bash
d_bash_15290
--- +++ @@ -1,5 +1,5 @@ # The following is based on https://github.com/gma/bundler-exec -bundled_commands=(annotate cap capify cucumber ey foreman guard heroku middleman nanoc rackup rainbows rake rspec ruby shotgun spec spork thin thor unicorn unicorn_rails m) +bundled_commands=(annotate cap capify cucumber ey guar...
bash
d_bash_15291
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash + +set -euxo pipefail if [ -z "$TRAVIS" ]; then echo "this script is intended to be run only on travis" >&2;
bash
d_bash_15292
--- +++ @@ -5,7 +5,7 @@ # Install the built package conda create --yes -n docenv python=$CONDA_PY -source activate docenv +conda activate docenv conda install -yq --use-local yank-dev # Install doc requirements
bash
d_bash_15293
--- +++ @@ -6,7 +6,7 @@ echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u222-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u222b10.tar.gz" ;; java11) - echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.4%2B11/OpenJDK11U-jdk_x64_linux_hotspot_11.0.4_11.t...
bash
d_bash_15294
--- +++ @@ -14,7 +14,7 @@ EXCLUDES="${EXCLUDES} --exclude ${ITEM}" done +hpc markup ${HPC_TIX_FILE} ${EXCLUDES} --hpcdir=${HPC_MIX_DIR} --destdir=${HPC_REPORT_DIR} hpc report ${HPC_TIX_FILE} ${EXCLUDES} --hpcdir=${HPC_MIX_DIR} > ${HPC_REPORT_DIR}/results.xml -hpc markup ${HPC_TIX_FILE} ${EXCLUDES} --hpcdir=${H...
bash
d_bash_15295
--- +++ @@ -4,16 +4,6 @@ # load ASDF, falling back to rbenv if not available if [ -d "$HOME/.asdf" ]; then . $HOME/.asdf/asdf.sh -elif command -v rbenv >/dev/null; then - if [ -z $SILENCE_RBENV_DEPRECATION ]; then - echo "The thoughtbot dotfiles have deprecated the use of rbenv in favor"\ - "of asdf ...
bash
d_bash_15296
--- +++ @@ -23,3 +23,14 @@ # Setup kubectl alias with completion alias compdef k="kubectl" + +# https://unix.stackexchange.com/a/310382/30131 +_g () { + case "${words[2]}" in + co) words[1,2]=(git checkout);; + esac + + _git # Delegate to completion +} +compdef _g g +compdef _g git
bash
d_bash_15297
--- +++ @@ -1,5 +1,5 @@ # gcc on lion -if [ $(uname) = 'Darwin' ] +if [ $(uname -s) = 'Darwin' ] then export CC=/usr/bin/gcc-4.2 fi
bash
d_bash_15298
--- +++ @@ -7,7 +7,7 @@ osx_tests=$? # xctool doesnt support tvOS, thus we just built it for now -xctool -workspace OMPromisesTests.xcworkspace -scheme tvOS-Tests -sdk appletvos -configuration Debug build ONLY_ACTIVE_ARCH=NO +xctool -workspace OMPromisesTests.xcworkspace -scheme tvOS-Tests -sdk appletvos -configu...
bash
d_bash_15299
--- +++ @@ -1,8 +1,14 @@ #!/bin/bash +#------------------------------------- +# Example: +# ./slippy_map.bash 'shade/lev=(-inf)(-10,30,1)(inf)/pal=mpl_PSU_viridis temp[k=@max]' +# ./slippy_map.bash 'shade/lev=(-inf)(30,40,1)(inf)/pal=mpl_PSU_inferno salt[k=1]' + +#------------------------------------- # launch N...
bash