document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_19900
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -e -read -p "Enter your Edison's hostname: " -r +read -p "Enter your Edison's new hostname (this will be your rig's "name" in the future, so make sure to write it down): " -r myedisonhostname=$REPLY echo $myedisonhostname > /etc/hostname sed -r -i"" "s/localhost( jubilin...
bash
d_bash_19901
--- +++ @@ -10,5 +10,5 @@ cd $WORKSPACE/warehouse-transforms/warehouse_transforms_project dbt clean -dbt run --models tag:$MODEL_TAG --project $DBT_PROJECT --profile $DBT_PROFILE --target $DBT_TARGET --profiles-dir $WORKSPACE/analytics-secure/warehouse-transforms/ +dbt run --models tag:$MODEL_TAG --profile $DBT_P...
bash
d_bash_19902
--- +++ @@ -3,6 +3,12 @@ $PYTHON "$RECIPE_DIR/fetch_inchi.py" $PYTHON "$RECIPE_DIR/fetch_avalontools.py" PY_INC=`$PYTHON -c "from distutils import sysconfig; print (sysconfig.get_python_inc(0, '$PREFIX'))"` + +if [[ "$OSTYPE" == "linux-gnu" ]]; then + extra_flags="-DCMAKE_EXE_LINKER_FLAGS_RELEASE='-lrt'" +else ...
bash
d_bash_19903
--- +++ @@ -1,8 +1,9 @@ +#!/bin/bash echo -n "Creating Service Registry..." { cf create-service p-service-registry standard service-registry } &> /dev/null -until [ `cf service service-registry | grep -c "succeeded"` -eq 1 ] +until [ `cf service service-registry | grep -c "succeeded"` -ge 1 ] do echo -n "...
bash
d_bash_19904
--- +++ @@ -1,2 +1,5 @@ # Something accessed the commcarehq DB. Why? Should only access test_commcarehq but let's get it working w/ tests as-is psql -c 'create database commcarehq' -U postgres + +# The XFORMS_POST_URL is under suspicion of still pointing at the wrong DB; trying this +curl -X PUT localhost:5984/comm...
bash
d_bash_19905
--- +++ @@ -23,7 +23,7 @@ echo " * " >> ./Swift/$1.swift echo " * " >> ./Swift/$1.swift echo " */ " >> ./Swift/$1.swift - +echo "// Date: $(date)" echo "- Copy Source Code to $1.swift tail." cat ./code.swift >> ./Swift/$1.swift
bash
d_bash_19906
--- +++ @@ -4,7 +4,7 @@ # Generate readme for extensions. cd "extensions" echo -e "## Extensions\n" > "README.md" -echo -e "$(find . -iname "manifest.json" -exec php -r '$path = "{}"; $data = json_decode(file_get_contents($path)); echo "### " . $data->name . "\n\n" . $data->description . "\n\n";' \;)" >> "README.m...
bash
d_bash_19907
--- +++ @@ -3,5 +3,4 @@ ./sky/tools/gn --release ninja -j 4 -C out/Release -./sky/tools/skyanalyzer --congratulate examples/stocks/lib/main.dart ./sky/tools/run_tests --release -j 1
bash
d_bash_19908
--- +++ @@ -8,7 +8,7 @@ # Install apt packages where the Ubuntu 12.04 default and ppa works for Caffe # This ppa is for gcc-4.9 -add-apt-repository ppa:ubuntu-toolchain-r/test +add-apt-repository -y ppa:ubuntu-toolchain-r/test apt-get -y update apt-get install \ gcc-4.9
bash
d_bash_19909
--- +++ @@ -10,7 +10,7 @@ npm install echo "Preparing tests..." -node prepare_tests.js +node tests/prepare_tests.js echo "Executing gulp dump..." -./node_modules/.bin/gulp --gulpfile gulpfile.js dump +./node_modules/.bin/gulp --gulpfile tests/gulpfile.js dump
bash
d_bash_19910
--- +++ @@ -37,15 +37,16 @@ local _message=$(StringUtil capitalize ${2}) local time=$(CalendarUtil getTimestamp log) + local color=null + if [[ $(BaseComparator isEqualIgnoreCase ${1} error) ]]; then - local message=$(colorme red $(StringUtil parseMessage _message)) + local color=red elif [[ $(Base...
bash
d_bash_19911
--- +++ @@ -12,7 +12,7 @@ aclocal libtoolize --force autoheader -autoconf +autoreconf ./configure make && make install
bash
d_bash_19912
--- +++ @@ -37,6 +37,14 @@ fi done +# Taken from: https://github.com/longsleep/build-pine64-image/blob/master/convert-pine64-image.sh#L28 +boot0headerpos=$((8*1024+4)) +boot0header=$(xxd -p -s "$boot0headerpos" -l 4 "$DISK") +if [ "$boot0header" != "65474f4e" ]; then + echo "Error: Target image has no eGON...
bash
d_bash_19913
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Sets up FireSim for use as a library within REBAR +# Sets up FireSim for use as a library within Chipyard set -e set -o pipefail
bash
d_bash_19914
--- +++ @@ -2,7 +2,7 @@ cd "$(git rev-parse --show-toplevel 2>/dev/null)" >/dev/null 2>&1 python build/mktargets.py --directory codec/decoder --library decoder python build/mktargets.py --directory codec/encoder --library encoder --exclude DllEntry.cpp -python build/mktargets.py --directory codec/common --library ...
bash
d_bash_19915
--- +++ @@ -7,5 +7,5 @@ function worker_info() { ~/code/ec2.py --refresh-cache | \ - jq "._meta.hostvars as \$hostvars | .tag_Name_ingest_stage_worker[] |\$hostvars[.] | [.ec2_private_ip_address, .ec2_state, .ec2_instance_type]" + jq "._meta.hostvars as \$hostvars | .tag_Name_ingest_${DATA_BRANCH}_worker[] |\$h...
bash
d_bash_19916
--- +++ @@ -5,14 +5,15 @@ # ################### # JVM=java +JVC=javac TEST=org.junit.runner.JUnitCore -testSuffix="Test" +testSuffix='Test' for dir in $(ls -d */); do dirFile=${dir%%/*} # Remove end slash from dir - echo "=======================" + echo '=======================' echo "*** Testing: $di...
bash
d_bash_19917
--- +++ @@ -1,3 +1,3 @@ mv .babelrc_ .babelrc -babel-node $1 "$2" +babel-node "$@" mv .babelrc .babelrc_
bash
d_bash_19918
--- +++ @@ -2,6 +2,21 @@ set -e -x # docker run --rm -v D:\GitHub\nassl\:/io quay.io/pypa/manylinux1_i686 bash /io/build_linux_wheels.sh +# docker run --rm -v D:\GitHub\nassl\:/io quay.io/pypa/manylinux1_x86_64 bash /io/build_linux_wheels.sh + +# Update perl as OpenSSL 1.1.x requires 5.10; there's probably a bett...
bash
d_bash_19919
--- +++ @@ -1,12 +1,22 @@ #!/bin/bash +# $1 is the openbazaar binary path +# $2 is the bitcoind path +# $3 will filter to match against script name for SCRIPT in `ls | grep -v "eth_"` do b=$(basename $SCRIPT) extension="${b##*.}" p="py" - if [ $extension = $p ] - then - python3 $SCRIPT -b $1 -...
bash
d_bash_19920
--- +++ @@ -5,7 +5,7 @@ py_version=$(python -c 'import sys; print ".".join(map(str, sys.version_info[:2]))') script_dir="build/scripts-$py_version" -version="$($script_dir/euca-version 2>&1 | sed -e 's/^euca2ools *\([^(]*\).*/\1/' -e 's/ *$//')" +version="$($script_dir/euca-version 2>&1 | sed -e 's/^euca2ools \([...
bash
d_bash_19921
--- +++ @@ -15,7 +15,9 @@ export PYTHON=$PREFIX/bin/python export PATH=$JAVAPREFIX/bin:$PATH -ln -s "$PREFIX/lib" "$PREFIX/lib64" +if [! -d "$PREFIX/lib64" ]; then + ln -s "$PREFIX/lib" "$PREFIX/lib64" +fi export FCFLAGS="-Wl,-rpath,${PREFIX}/lib" export FFLAGS="-Wl,-rpath,${PREFIX}/lib" @@ -25,7 +27,7 @@ ...
bash
d_bash_19922
--- +++ @@ -15,7 +15,7 @@ cat Samples/user.ini | grep -v 'password=' pushd Samples - behave $FEATURES + behave --format plain $FEATURES RC=$? popd
bash
d_bash_19923
--- +++ @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -e -exec ./manage.py ping_db +exec ./manage.py worker_health_checks exec celery -A laalaa status
bash
d_bash_19924
--- +++ @@ -2,4 +2,3 @@ alias dotfiles="$EDITOR ~/.dotfiles" alias blog="$EDITOR $PROJECTS/pala.github.io" alias jkw='jekyll serve -w' -alias xcclear="rm -rf ~/Library/Developer/Xcode/DerivedData/*"
bash
d_bash_19925
--- +++ @@ -23,6 +23,8 @@ echo "database: " $db echo "sql: " $sql admin-mysql-eg-publicsql -e "$sql" +admin-mysql-eg-publicsql-hh -e "$sql" sql2='grant select, show view on `'$db'`.* to `ensro`@`%.ebi.ac.uk`'; echo "sql: " $sql2 admin-mysql-eg-publicsql -e "$sql2" +admin-mysql-eg-publicsql-hh -e "$sql2"
bash
d_bash_19926
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -rm -rf Build/Xamarin/iOS -# iOS +rm -rf Build/Xamarin/Android +# Android "/Applications/Visual Studio.app/Contents/MacOS/vstool" -v build "--target:Clean" "--configuration:Release" "Mindscape.Raygun4Net.Xamarin.Android.sln" "/Applications/Visual Studio.app/Contents/MacOS/vstool...
bash
d_bash_19927
--- +++ @@ -12,9 +12,11 @@ # the third parameter (polling timeout) is set to a number # greater than 0. +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" + echo "Starting to poll (terminate with Ctrl+C)..." while true; do - php pull.php + php $DIR/pull.php sleep 1 done
bash
d_bash_19928
--- +++ @@ -1,5 +1,5 @@ #!/bin/sh -crontab ./crontab && crond +# crontab ./crontab && crond npm run migration-sync npm start
bash
d_bash_19929
--- +++ @@ -1,3 +1,4 @@ +#!/bin/sh if [ "x$ANDROID_JAVA_HOME" != x ] && [ -e "$ANDROID_JAVA_HOME/lib/tools.jar" ] ; then echo $ANDROID_JAVA_HOME/lib/tools.jar else
bash
d_bash_19930
--- +++ @@ -1,3 +1,4 @@ #!/bin/bash gconftool-2 --set /desktop/gnome/interface/gtk_key_theme Emacs --type string +gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"
bash
d_bash_19931
--- +++ @@ -7,7 +7,7 @@ for rule in ./src/0* do - "$rule" "$commit_message_file" || exit_code=$(echo $exit_code + $? | bc) + "$rule" "$commit_message_file" || exit_code=$(( exit_code + $? )) done exit "$exit_code"
bash
d_bash_19932
--- +++ @@ -10,7 +10,7 @@ case "$cmd" in feature) if [ "$line" = "$cmd $cur" ]; then - words="switch start finish stashes list merge pull status clean" + words="switch start finish stashes list merge pull status clean prune" else # get branch names minus hotfixes ...
bash
d_bash_19933
--- +++ @@ -46,3 +46,6 @@ # install composer in the current directory alias cget='curl -s https://getcomposer.org/installer | php' + +# Add Composer's global binaries to PATH +export PATH=$PATH:~/.composer/vendor/bin
bash
d_bash_19934
--- +++ @@ -34,8 +34,7 @@ # Restore Javadocs from 1.x git checkout gh-pages -# TODO(jwilson): get a SHA with these docs. -# git cherry-pick bb229b9dcc9a21a73edbf8d936bea88f52e0a3ff +git cherry-pick bb229b9dcc9a21a73edbf8d936bea88f52e0a3ff git push # Delete our temp folder
bash
d_bash_19935
--- +++ @@ -4,7 +4,7 @@ set -x apt-get -y remove g++ g++-4.8 gcc gcc-4.8 libtool -apt-get autoremove +apt-get -y autoremove apt-get clean rm -rf /build rm -rf /tmp/* /var/tmp/*
bash
d_bash_19936
--- +++ @@ -2,5 +2,5 @@ set -e rm -f Gemfile.lock bundle install --path "${HOME}/bundles/${JOB_NAME}" -bundle exec rake test -bundle exec rake publish_gem +govuk_setenv default bundle exec rake test +govuk_setenv default bundle exec rake publish_gem
bash
d_bash_19937
--- +++ @@ -13,7 +13,7 @@ } # Only back up /Users -for dir_path in /*/; do +for dir_path in /*/ /.*/; do if [[ "$dir_path" != '/Users/' ]]; then exclude_dir "$dir_path" fi
bash
d_bash_19938
--- +++ @@ -8,8 +8,6 @@ cd yosys make V=1 -j$CPU_COUNT -make install V=1 -j$CPU_COUNT -cp yosys "$PREFIX/bin/antmicro-yosys" -cp yosys-config "$PREFIX/bin/yosys-config" +make PROGRAM_PREFIX="antmicro-" install V=1 -j$CPU_COUNT $PREFIX/bin/antmicro-yosys -V
bash
d_bash_19939
--- +++ @@ -20,7 +20,7 @@ # Editor alias s='subl .' -alias vs='code .' +alias vs='code-insiders .' # Rails alias tlog='tail -f log/development.log' @@ -35,3 +35,6 @@ # Homebrew alias brewup='brew update && brew doctor && brew outdated && brew upgrade && brew cleanup -s --prune=1' + +# Misc +alias http='ru...
bash
d_bash_19940
--- +++ @@ -3,10 +3,10 @@ echo "Provisioning virtual machine..." echo "Download InfluxDB deb package..." -wget -q https://s3.amazonaws.com/influxdb/influxdb_0.9.1_amd64.deb +wget -q https://s3.amazonaws.com/influxdb/influxdb_nightly_amd64.deb echo "Install InfluxDB..." -sudo dpkg -i influxdb_0.9.1_amd64.deb +s...
bash
d_bash_19941
--- +++ @@ -22,7 +22,6 @@ if ! command -v clang >/dev/null 2>&1; then if [ $OS == "linux" ]; then if [ $DISTRO == "arch" ]; then - else _install "clang" else _install "clang-3.5"
bash
d_bash_19942
--- +++ @@ -1,3 +1,5 @@ +source ~/.rvm/scripts/rvm + ruby_setup() { rvm system export PATH="$( \
bash
d_bash_19943
--- +++ @@ -14,4 +14,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -zip -r quickip.zip . -x ".git*" ".jshintrc" "Readme.md" "zip_extension.sh" "quickip.zip" "LICENSE" +zip -r quickip.zip . -x ".git*" ".jshintrc" "Readme.md" "zip_extension.sh" "quickip....
bash
d_bash_19944
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -oldFQDN=`sed -n 's/location.hostname=\(.*\);/\1/p' /var/www/html/irods-cloud-frontend/app/components/globals.js` +oldFQDN=`sed -n 's/location.hostname="\(.*\)";/\1/p' /var/www/html/irods-cloud-frontend/app/components/globals.js` FQDN=`ec2metadata --public-hostname` if [ "$...
bash
d_bash_19945
--- +++ @@ -4,7 +4,9 @@ python manage.py migrate chmod 660 /gui/openstack.db chown root.www-data /gui/openstack.db -ln -s /gui/gui.conf /etc/apache2/conf.d/gui.conf +#Only deploying the GUI +#ln -s /gui/gui.conf /etc/apache2/conf.d/gui.conf +ln -s /gui/gui-8443.conf /etc/apache2/conf.d/gui.conf ln -s /gui/mirror....
bash
d_bash_19946
--- +++ @@ -1,7 +1,7 @@ #!/bin/sh # Reset the file permissions for all the relevant files chmod +x reset_permissions.sh -chmod -x README.md .gitignore requirements.txt +chmod -x README.md .gitignore requirements.txt LICENSE find . -name "*.py" -exec chmod -x {} \; chmod +x add_initial_entities.py chmod +x sched...
bash
d_bash_19947
--- +++ @@ -14,7 +14,7 @@ local plugin_name plugin_name=$(basename "$dir") update_plugin "$plugin_name" "$dir" "$gitref" & - done < <(find "$(asdf_data_dir)"/plugins -type d -mindepth 1 -maxdepth 1) + done < <(find "$(asdf_data_dir)"/plugins -mindepth 1 -maxdepth 1 -type d) ...
bash
d_bash_19948
--- +++ @@ -10,9 +10,7 @@ cd /tmp git clone https://github.com/richardwestenra/gatsby-contentful-static-test.git build cd build -# git remote -v -# git fetch -git checkout --orphan gh-pages # If not using master +git checkout -b gh-pages origin/gh-pages # Trigger Gatsby rebuild cd $CWD
bash
d_bash_19949
--- +++ @@ -24,3 +24,6 @@ # Run the test suite python -c "import pygmo; pygmo.test.run_test_suite()" + +# Stop the cluster. +ipcluster stop
bash
d_bash_19950
--- +++ @@ -8,7 +8,7 @@ # make sure that running "bundle" twice doesn't change Gemfile.lock the second time cd "$dir" -bundle +BUNDLE_FROZEN=0 bundle install cp Gemfile.lock{,.orig} -bundle +BUNDLE_FROZEN=1 bundle install diff -u Gemfile.lock{.orig,} >&2
bash
d_bash_19951
--- +++ @@ -3,7 +3,7 @@ curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer -echo 'export PATH=$PATH:/home/vagrant/.composer/vendor/bin' >> /home/vagrant/.profile +echo 'export PATH=$PATH:./bin:/home/vagrant/.composer/vendor/bin' >> /home/vagrant/.profile sudo -u vagrant c...
bash
d_bash_19952
--- +++ @@ -1,13 +1,19 @@ #!/bin/bash -for f in ./*; -do - sox $f -b 16 -c 1 "$f.raw"; -done +# Convert to raw. +#for f in ./*; +#do +# sox $f -b 16 -c 1 "$f.raw"; +#done # Split one file -# sox celesta.wav -b 16 -c 1 celesta-sample%1n.raw trim 0 2 : newfile : restart +sox celesta.wav -b 16 -c 1 aac/c...
bash
d_bash_19953
--- +++ @@ -2,7 +2,7 @@ # A script which checks whether any QEMU-KVM virtual machines are running, or if RAID devices are resyncing. # Call this script before the actual shutdown (script), this will hold for input if anything needs attention. -if test "X$(ps -ef | grep qemu.* | grep -v grep)" != "X" +if [ "$(ps -...
bash
d_bash_19954
--- +++ @@ -10,6 +10,8 @@ mvn --settings ./travis/maven-settings.xml deploy -pl '!gws-system-test' -DredirectTestOutputToFile mvn --settings ./travis/maven-settings.xml deploy -pl gws-system-test -DskipTests mvn --settings ./travis/maven-settings.xml site-deploy -DskipTests -pl gws-core + docker rm ...
bash
d_bash_19955
--- +++ @@ -13,5 +13,4 @@ sed -e "s/<address>127.0.0.1:8384/<address>0.0.0.0:8384/" -i /srv/config/config.xml fi chmod -R 775 /srv/config -/srv/syncthing/syncthing -home=/srv/config - +exec /srv/syncthing/syncthing -home=/srv/config
bash
d_bash_19956
--- +++ @@ -19,7 +19,7 @@ echo "Skipping snapshot deployment: was pull request." elif [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '$TRAVIS_BRANCH'." -elif [ "$MODULE" == "circlerefreshlayout-sample"]; then +elif [ "$MODULE" == "circlerefr...
bash
d_bash_19957
--- +++ @@ -25,5 +25,5 @@ cmake -DCMAKE_BUILD_TYPE=Release .. make -j8 fi -cd $INSTALL_DIR -sudo make install PREFIX=/usr/local +cd $INSTALL_DIR/build +sudo make install
bash
d_bash_19958
--- +++ @@ -1,2 +1,2 @@ #/bin/sh -/root/spark/bin/spark-submit --class vc.inreach.ml.classifiers.ClassifierTrainingTask --deploy-mode client --driver-memory 7g --driver-cores 2 /jar/inreach-ml-batch.jar -data_path s3n://inreach-prod-dynamo-data/dynamoDbBackUp_20161203/ -model_path s3n://inreach-ml-models/ -aws remot...
bash
d_bash_19959
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env bash -git clone git@github.com:quarkusio/quarkusio.github.io.git target/web-site +git clone -b develop --single-branch git@github.com:quarkusio/quarkusio.github.io.git target/web-site rsync -vr \ --exclude='**/*.html' \ @@ -9,12 +9,12 @@ src/main/asciidoc/* \ ...
bash
d_bash_19960
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -sleep `expr \( $RANDOM % 60 \) + 30` +#sleep `expr \( $RANDOM % 60 \) + 30` echo "$@"
bash
d_bash_19961
--- +++ @@ -1,22 +1,13 @@ -function compile_fuzzer { - path=$1 - function=$2 - fuzzer=$3 - - go-fuzz -func $function -o $fuzzer.a $path - - $CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.a -o $OUT/$fuzzer -} - +# compile_go_fuzzer can be found in the oss-fuzz repository git clone https://github.com/tdewolff/parse ...
bash
d_bash_19962
--- +++ @@ -13,7 +13,7 @@ sudo apt-get install -y curl # The next two lines come from https://nodejs.org/en/download/package-manager/. -curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - +curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - sudo apt-get install -y nodejs # The next lin...
bash
d_bash_19963
--- +++ @@ -20,6 +20,6 @@ $CMD # Extract the snapshot -CMD="trace-cmd extract -s -o trace_${DATE}.dat" +CMD="trace-cmd extract -s -k -o trace_${DATE}.dat" echo ${CMD} $CMD
bash
d_bash_19964
--- +++ @@ -4,7 +4,7 @@ function _emacsfun { # Replace with `emacs` to not run as server/client - emacsclient -c -n $@ + emacsclient -c -n "$@" }
bash
d_bash_19965
--- +++ @@ -3,16 +3,21 @@ rm ${1}/build/logs/log.xml ${1}/build/logs/log.html -echo "----TREE----" -tree ${1} +set -e + +echo "PRE xsltproc" echo "<testsuites />" | xsltproc \ --output ${1}/build/logs/log.xml \ --stringparam basedir ${1} \ ${scriptdir}/merge.xslt - +echo "POST xsltproc merge"...
bash
d_bash_19966
--- +++ @@ -7,5 +7,10 @@ export PATH="$scriptDir:$PATH" } path_Set "${BASH_SOURCE[0]}" +source "MessageInclude.sh"; +source "ArgumentsGetInclude.sh"; +source "ArrayMapTestInclude.sh"; +source "VirtCmmdInterface.sh"; source 'ucp.sh' +source "ArgumentsMainInclude.sh";
bash
d_bash_19967
--- +++ @@ -8,9 +8,4 @@ exit 1 fi cat proflibs.?? | tar --unlink -xpzf - -C ${DESTDIR:-/} -cd ${DESTDIR}/usr/lib -if [ -f libdescrypt_p.a ] -then - ln -f -s libdescrypt_p.a libcrypt_p.a -fi exit 0
bash
d_bash_19968
--- +++ @@ -14,3 +14,9 @@ vom() { cat ~/.dotfiles/zsh/vom.txt } alias cim="vim" alias :q="exit" + +# use Back to My Mac to phone home over ipv6 +imac() { + ssh imac.$(echo show Setup:/Network/BackToMyMac | scutil | sed -n 's/.* : *\(.*\).$/\1/p') +} +
bash
d_bash_19969
--- +++ @@ -20,5 +20,5 @@ # Clear the environment from any previously loaded modules cd /home6/greg/GOMC/test bash ./Setup_Examples.sh -python Run_Examples.py +python Run_Examples.py > integrationTest.log # End of submit file
bash
d_bash_19970
--- +++ @@ -27,6 +27,8 @@ : ${BOSH_CLIENT_SECRET:?} export BOSH_CA_CERT="${input_dir}/ca_cert.pem" + echo "deleting all deployments" + $bosh_cli deployments | awk '{print $1}' | xargs -n 1 $bosh_cli -n delete-deployment --force -d echo "cleaning up bosh BOSH Director..." $bosh_cli -n clean-up --all ...
bash
d_bash_19971
--- +++ @@ -20,7 +20,7 @@ tar -xvf /tmp/mongodb.tgz -C ${MONGODB_DIR} --strip=1 echo "Starting MongoDB v${MONGODB_VERSION}" ${MONGODB_DIR}/bin/mongod --nojournal --journalCommitInterval 500 \ - --nojournal --syncdelay 0 --dbpath ${DATA_DIR} --bind_ip 127.0.0.1 &> /tmp/mongodb.log & + --syncdelay 0 --dbpath $...
bash
d_bash_19972
--- +++ @@ -1 +1,5 @@ -<html><body>You are being <a href="https://github.com/paladini/ghost-on-github-pages/blob/master/update_website.sh">redirected</a>.</body></html> +#!/bin/sh +buster generate +git add -A +git commit -m "Update on the website at $(date)" +git push origin master
bash
d_bash_19973
--- +++ @@ -1,7 +1,4 @@ -# --files: List files that would be searched but do not search -# --no-ignore: Do not respect .gitignore, etc... -# --hidden: Search hidden files and folders -# --follow: Follow symlinks -# --glob: Additional conditions for search (in this case ignore everything in the .git/ folder) -export F...
bash
d_bash_19974
--- +++ @@ -5,7 +5,11 @@ echo "Usage: $0 names_and_pvalues output_filename" fi + #Using Vegas to Convert a full tab-delimited text file containing 2 columns of data: SNP names and p-values (no header! no quotes!) to a gene level summary of p-values: -#Please note: The location of the input file must be specified...
bash
d_bash_19975
--- +++ @@ -11,6 +11,7 @@ "osx") brew update + brew outdated "pkg-config" || brew upgrade "pkg-config" brew install "gettext" && brew link --force "gettext" brew outdated "sqlite" || brew upgrade "sqlite" brew outdated "curl" || brew upgrade "curl"
bash
d_bash_19976
--- +++ @@ -25,7 +25,7 @@ openssl genrsa -out self-signed.key 2048 openssl req -new -key self-signed.key -out self-signed.csr \ - -subj "/CN=$DOMAIN" + -subj "/CN=Anonymous/O=Independent/OU=Person" openssl x509 -req -extfile self-signed.cfg -days 3650 \ -in self-signed.csr -...
bash
d_bash_19977
--- +++ @@ -2,13 +2,13 @@ set -e -browser=$(tempfile) -js=$(tempfile) +browser=$(mktemp) +js=$(mktemp) trap "rm -f '$browser' '$js'" EXIT base='https://chromium.googlesource.com' -curl -s "$base/chromium/src/+/master/third_party/WebKit/Source/core/inspector/browser_protocol.json?format=TEXT" | base64 -d >"$b...
bash
d_bash_19978
--- +++ @@ -1,6 +1,7 @@ #!/usr/bin/env bash rm -rf drafthouse-seat-finder +git pull CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" . docker build -t jroyal/drafthouse-seat-finder . docker stop drafthouse-seat-finder
bash
d_bash_19979
--- +++ @@ -6,12 +6,18 @@ # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. +if [ ! -d "build" ]; then + mkdir build +fi + +parameters=" -f progress,junit --out ,build/junit" + echo "Running Behat default test suite" -bin/behat -f prog...
bash
d_bash_19980
--- +++ @@ -3,22 +3,22 @@ rm *-gc.log echo "Running Simple..." -java -Xloggc:simple-gc.log \ +$JAVA_HOME/bin/java -Xloggc:simple-gc.log \ -verbose:gc \ -XX:+PrintGCDateStamps \ -XX:+PrintGCApplicationStoppedTime \ -cp bin:lib/disruptor-3.2.0.jar yow2013.immutable.SimplePerformanceTest ech...
bash
d_bash_19981
--- +++ @@ -24,7 +24,7 @@ sed -i 's/matplotlib>=*.*.*/matplotlib==1.3.1/g' requirements.txt fi -pip install $WHEELHOUSE -r requirements.txt +pip install --timeout 60 $WHEELHOUSE -r requirements.txt # clean up disk space sudo apt-get clean
bash
d_bash_19982
--- +++ @@ -4,7 +4,7 @@ SLUG="braintree/android-card-form" JDK="oraclejdk8" -BRANCH="master" +BRANCH="4.x" if [ "$TRAVIS_REPO_SLUG" != "$SLUG" ]; then echo "Skipping snapshot deployment: wrong repository. Expected '$SLUG' but was '$TRAVIS_REPO_SLUG'."
bash
d_bash_19983
--- +++ @@ -1,3 +1,6 @@ +# Quickly reload Bash configuration +alias src='source ~/.bashrc' + # Enable coloring of common commands # # Extracted from Ubuntu's .bashrc
bash
d_bash_19984
--- +++ @@ -5,7 +5,10 @@ local word=${COMP_WORDS[COMP_CWORD]} local completions - completions="$(dotnet complete --position "${COMP_POINT}" "${COMP_LINE}")" + completions="$(dotnet complete --position "${COMP_POINT}" "${COMP_LINE}" 2>/dev/null)" + if [ $? -ne 0 ]; then + completions="" + fi COMPRE...
bash
d_bash_19985
--- +++ @@ -5,7 +5,7 @@ APK="apk -q --no-cache" BUILDDEPS="gcc python3-dev musl-dev parallel yaml-dev g++" TESTDEPS="bitstring pytest wheel virtualenv pip" -PIP3="pip3 -q --no-cache-dir install --upgrade" +PIP3="pip3 -q install --upgrade" FROOT="/faucet-src" dir=$(dirname "$0") @@ -32,6 +32,7 @@ done # Cle...
bash
d_bash_19986
--- +++ @@ -10,4 +10,4 @@ if [ -f /opt/app/RUNNING_PID ]; then rm /opt/app/RUNNING_PID fi -java -Duser.dir=/opt/app -cp $CLASSPATH play.core.server.ProdServerStart +java $JAVA_OPTS -Duser.dir=/opt/app -Dconfig.file=conf/production.conf -cp $CLASSPATH play.core.server.ProdServerStart
bash
d_bash_19987
--- +++ @@ -2,7 +2,8 @@ #This script needs to be run with superuser priveleges #Set up our variables -TAG="OCE-0.12" +#TAG="OCE-0.12" +TAG="OCE-0.16" apt-get update apt-get upgrade
bash
d_bash_19988
--- +++ @@ -22,6 +22,8 @@ brew install gnu-sed symlink gsed $brewbin/sed +brew install jq + brew install tmux brew install tree
bash
d_bash_19989
--- +++ @@ -11,14 +11,6 @@ rm -rf $shed_dir echo "" -#echo "Remove virtualenv..." -#echo "====================" -#sudo rm -rf venv -#if [[ -d /private/tmp/venv/ ]]; then -# rm -rf /private/tmp/venv/ -#fi -#echo "" - echo "Drop database and user..." echo "=========================" $src_postgresql/clean_post...
bash
d_bash_19990
--- +++ @@ -1,4 +1,9 @@ #!/bin/bash +set -eu + +source /etc/profile.d/nvm.sh +nvm use +for cmds in bundle yarn;do if ! type ${cmds} 2>/dev/null 1>/dev/null;then echo "${cmds}: Not found";exit 1;fi;done cd `dirname $0`
bash
d_bash_19991
--- +++ @@ -10,13 +10,9 @@ } function use_redhat_kernel() { - echoinfo "Configuring Grub to use RedHat-compatible kernel" - if grep -q -i "release 7" /etc/redhat-release ; then - sed -i 's/^GRUB_DEFAULT=saved/GRUB_DEFAULT=0/' /etc/default/grub - grub2-mkconfig -o /boot/grub2/grub.cfg - else - sed -i '...
bash
d_bash_19992
--- +++ @@ -5,3 +5,5 @@ export NVM_DIR=~/.nvm source $(brew --prefix nvm)/nvm.sh fi + +alias cat='ccat'
bash
d_bash_19993
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -${PYTHON} -m pip install -vv .; +${PYTHON} setup.py install; ${PYTHON} setup.py test;
bash
d_bash_19994
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash ROOTDIR=`dirname $0` SUPPORT=$ROOTDIR/support
bash
d_bash_19995
--- +++ @@ -2,9 +2,10 @@ set -e +SOURCE_FILE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/sublime/" TARGET_FILE=$HOME/"Library/Application Support/Sublime Text 3/Packages/User" osascript -e 'quit app "Sublime Text"' rm -rf "$TARGET_FILE" -ln -Ffs sublime/ "$TARGET_FILE" +ln -Ffs "$SOURCE_FILE" "$TAR...
bash
d_bash_19996
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash sudo ipfw add 101 fwd 127.0.0.1,4433 tcp from any to any 443 in -sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in +sudo ipfw add 100 fwd 127.0.0.1,3000 tcp from any to any 80 in
bash
d_bash_19997
--- +++ @@ -1,2 +1,7 @@ #!/bin/bash +isExistApp=`ps -eaf |grep cp-badges-service |grep -v grep| awk '{ print $2; }'` +if [[ -n $isExistApp ]]; then + service cp-badges-service stop +fi + service cp-badges-service start
bash
d_bash_19998
--- +++ @@ -24,3 +24,9 @@ for i in {1..$1}; do sleep 1; echo -n -e $i\\r; done } +# Find process using a port +# $1: port number +function port_user() { + lsof -nP "-iTCP:$1" | grep LISTEN +} +
bash
d_bash_19999
--- +++ @@ -18,6 +18,7 @@ # Create the database mysql -e 'create database midgard2_test;' +sudo mysql -e 'SET GLOBAL sql_mode="";' # Install Midgard2 ${SCRIPT_DIR}/../tests/travis_midgard_install.sh
bash