document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_1800
--- +++ @@ -5,6 +5,8 @@ if [ -n "${JENKINS_URL}" ]; then echo "Jenkins url detected: ${JENKINS_URL}" EXTRA_ENV="JENKINS_URL=${JENKINS_URL}" +else + EXTRA_ENV="_LOCAL_RUN=1" fi docker run -i --rm=true --env="${EXTRA_ENV}" --env="INTEGRATION_TEST=1" -v "/var/run/docker.sock:/var/run/docker.sock" --wo...
bash
d_bash_1801
--- +++ @@ -1,8 +1,9 @@ #!/bin/bash -openstack domain create --description "Stack projects and users" heat -openstack user create --domain heat --password $1 heat_domain_admin -openstack role add --domain heat --user heat_domain_admin admin -openstack role create heat_stack_owner -openstack role add --project demo -...
bash
d_bash_1802
--- +++ @@ -12,7 +12,7 @@ for NAME in $TILES; do if [ ! -f "$TILE_DIR/$NAME.mbtiles" ]; then echo "Downloading $NAME..." - curl -s -o "$TILE_DIR/$NAME.mbtiles" "http://mapbox-carmen.s3.amazonaws.com/dev/$NAME.mbtiles" + curl -s -o "$TILE_DIR/$NAME.mbtiles" "https://s3.amazonaws.com/mapbox/carmen/dev/$N...
bash
d_bash_1803
--- +++ @@ -32,6 +32,7 @@ pushDir zlib-$host applyPatch $scriptDir/patches/zlib_01_nobypass.diff + chmod +x ./configure CHOST=$host \ ./configure \ --prefix=$PREFIX/$host \
bash
d_bash_1804
--- +++ @@ -1,3 +1,3 @@ #!/usr/bin/env bash -cp paperwork-plugin/src/main/groovy/* buildSrc/src/main/groovy/ -r +cp -r paperwork-plugin/src/main/groovy/* buildSrc/src/main/groovy/
bash
d_bash_1805
--- +++ @@ -16,7 +16,7 @@ exit 0 ;; status) - exit 1 + exit 0 ;; log) echo "${INSTALL_DIR}/install.log"
bash
d_bash_1806
--- +++ @@ -2,11 +2,6 @@ # Make sure we propegate exit codes, for kokoro. set -e - -if [[ "$(python3 -m venv 2>&1)" =~ "No module named venv" ]]; then - echo "Virtualenv not installed. This script requires virtual env, please install it." - exit 1; -fi # Set up temp dir containing atheris and cd into it. SR...
bash
d_bash_1807
--- +++ @@ -1,2 +1,2 @@ -export PATH="./bin:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH" +export PATH="./bin:$ZSH/bin:/usr/local/bin:/usr/local/sbin:$PATH" export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
bash
d_bash_1808
--- +++ @@ -10,5 +10,5 @@ do NEWFILENAME=$(echo $OLDFILENAME | sed -e 's/[A-Z0-9]*_\(.*\)/\1/' \ -e 's/_/ /g' -e 's/EBOK //' -e 's/ nodrm\.mobi/.mobi/' -e 's/ / - /') - mv -iv $OLDFILENAME "$NEWFILENAME" + mv -iv "$OLDFILENAME" "$NEWFILENAME" done
bash
d_bash_1809
--- +++ @@ -12,8 +12,10 @@ curbranch="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" echo "Determined branch to be $curbranch" -git clone --depth=1 --branch "$curbranch" https://github.com/vector-im/riot-web.git \ +git clone --depth=1 https://github.com/vector-im/riot-web.git \ "$RIOT_WEB_DIR" + +git checkou...
bash
d_bash_1810
--- +++ @@ -1,8 +1,11 @@ #!/bin/bash -mrt.js $@:1 +BASEDIR=$(dirname "$0") +MRTJS="$BASEDIR/mrt.js" -COMMAND=`mrt.js command ${@:1}` +$MRTJS $@:1 + +COMMAND=`$MRTJS command ${@:1}` COMMAND_PARTS=( $COMMAND ) COMMAND_MODE=${COMMAND_PARTS[*]:1:1}
bash
d_bash_1811
--- +++ @@ -2,9 +2,9 @@ set -e; -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" +pushd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 -BPFTRACE_RUNTIME_TEST_EXECUTABLE=${BPFTRACE_RUNTIME_TEST_EXECUTABLE:-$DIR/../src/}; +BPFTRACE_RUNTIME_TEST_EXECUTABLE=${BPFTRACE_RUNTIME_TEST_EXECUTABLE:-...
bash
d_bash_1812
--- +++ @@ -24,6 +24,5 @@ PASS_OPT="--password=$DB_PASS" fi -mysqldump --host=$DB_HOST --user=$DB_USER $PASS_OPT --no-data $DB_NAME -mysqldump --host=$DB_HOST --user=$DB_USER $PASS_OPT $DB_NAME --no-create-info alembic_version - +mysqldump --host=$DB_HOST --port=$DB_PORT --user=$DB_USER $PASS_OPT --no-data $D...
bash
d_bash_1813
--- +++ @@ -17,7 +17,7 @@ #Remove assembler-specific folders rm -r 4_assembly/fermi rm -r 4_assembly/megahit -rm -r 4_assembly/spades +rm -rf 4_assembly/spades #Remove tmp mapping files to determine non-incorporated reads rm 4_assembly/singletons/*.sam
bash
d_bash_1814
--- +++ @@ -15,6 +15,8 @@ #make android-native-lib ANDROID_ARCH=mips64 make android-tangram-apk - cd "$TRAVIS_BUILD_DIR"/android; ./gradlew uploadArchives -PsonatypeUsername="$SONATYPE_USERNAME" -PsonatypePassword="$SONATYPE_PASSWORD" + cd "$TRAVIS_BUILD_DIR"/android + git clone git@github.com:ma...
bash
d_bash_1815
--- +++ @@ -22,6 +22,6 @@ # It takes a while for the MM server to start accepting logins ./test/wait_for_mm.sh - +echo # Finally we are ready to run the test suite $TEST_RUNNER
bash
d_bash_1816
--- +++ @@ -5,5 +5,5 @@ spawn docker run homebridge-pc-volume-e2e expect { "ERROR LOADING PLUGIN" {exit 1} - "Homebridge is running" + -re {Homebridge\ v[0-9.]*\ is\ running} }
bash
d_bash_1817
--- +++ @@ -6,7 +6,7 @@ echo "https://github.com/bell-sw/Liberica/releases/download/8u342+7/bellsoft-jdk8u342+7-linux-amd64.tar.gz" ;; java11) - echo "https://github.com/bell-sw/Liberica/releases/download/11.0.15.1+2/bellsoft-jdk11.0.15.1+2-linux-amd64.tar.gz" + echo "https://github.com/bell-sw/Liberica/r...
bash
d_bash_1818
--- +++ @@ -9,7 +9,9 @@ cd "@CMAKE_SOURCE_DIR@" # this way we also check subdirectories -scripts=$(find scripts/ -type f | xargs) +# The script `check-env-dep` uses process substitution which is **not** a standard `sh` feature! +# See also: https://unix.stackexchange.com/questions/151925 +scripts=$(find -E script...
bash
d_bash_1819
--- +++ @@ -11,8 +11,10 @@ for bibwiss_type in "WiReLex" "WiBiLex"; do marc_grep $1 'if "TYP"=="'${bibwiss_type}'" extract "856u"' traditional | \ awk '{print $2}' | \ - xargs -I '{}' /bin/sh -c $'./translate_url_multiple "$1" | \ - jq -r \'.[] | [ if ((.tags | length) != 0) then "Reference" else emp...
bash
d_bash_1820
--- +++ @@ -9,8 +9,8 @@ operator=${operator##*/} log_info "generating IP list of $operator ..." get_asn $file - get_asn $file | xargs bgptools -b rib.txt | cidr-merger > result/${operator}.txt & - get_asn $file | xargs bgptools -b rib6.txt | cidr-merger > result/${operator}6.txt & + get_asn $file | xargs bgpto...
bash
d_bash_1821
--- +++ @@ -13,4 +13,4 @@ export CI_ACCEPTANCE_TEST=true -./gradlew clean cleanTest test --info --no-daemon -p digdag-tests --tests 'acceptance.td.EmrIT*' +./gradlew clean cleanTest test --info --no-daemon -p digdag-tests --tests 'acceptance.td.*'
bash
d_bash_1822
--- +++ @@ -22,3 +22,16 @@ EOF update-grub + + # Install the same locales as in production +# Enable multiple North-European locales but keep C as default locale +DEBIAN_FRONTEND=noninteractive locale-gen --purge \ + en_US en_US.utf8 \ + fi_FI fi_FI.utf8 \ + sv_SE sv_SE.UTF-8 \ + fr_FR fr_FR.UTF-8 \ + de_DE...
bash
d_bash_1823
--- +++ @@ -2,3 +2,4 @@ alias composer='php composer.phar' alias artisan='php artisan' alias server='python -m SimpleHTTPServer 8000' +alias phpserver='php -S localhost:8000'
bash
d_bash_1824
--- +++ @@ -1,14 +1,14 @@ #!/bin/sh # Friendly Interactive SHell {{{ -pacman -Sy fish +sudo pacman -Sy fish echo '/usr/bin/fish' | sudo tee -a /etc/shells chsh -s /usr/bin/fish mkdir -p ~/.config/fish/ ln -s ~/git/dotfiles/fish.config ~/.config/fish/config.fish # }}} # Neovim {{{ -pacman -Sy neovim +sudo pa...
bash
d_bash_1825
--- +++ @@ -24,6 +24,6 @@ -DLLVM_CONFIG=/usr/local/opt/llvm/bin/llvm-config \ -GNinja -DCG_BUILD_DEBUGGER=OFF ninja - # ninja test + CTEST_OUTPUT_ON_FAILURE=1 ninja test fi
bash
d_bash_1826
--- +++ @@ -1,9 +1,5 @@ #!/bin/bash -x set -e - -echo "Gnnnnarrrrrrrrrgh!" -exit 1 - bundle install --path "${HOME}/bundles/${JOB_NAME}" bundle exec rake test bundle exec rake publish_gem
bash
d_bash_1827
--- +++ @@ -14,6 +14,7 @@ if [ $? -ne 0 ] then error "The project isn't valid" + exit 1 else info "The project is valid" fi
bash
d_bash_1828
--- +++ @@ -24,6 +24,8 @@ cd /github/workspace +export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m" + log="/tmp/sysdstest.log" mvn -ntp test-compile 2>&1 | grep -E "BUILD|Total time:|---|Building SystemDS" mvn -ntp test -D maven.test.skip=false -D automatedtestbase.outputbuffering=true -D test=$1 2>&1 | grep -v...
bash
d_bash_1829
--- +++ @@ -10,5 +10,9 @@ # Get scala. add_to_path $SCALA_HOME/bin -# Get sbt. -add_to_path $SCALA_ROOT/sbt/bin +# Get sbt (lazily). +sbt () { + add_to_path $SCALA_ROOT/sbt/bin + unset -f sbt + command sbt "$@" +}
bash
d_bash_1830
--- +++ @@ -1 +1 @@ -~/local/bin/python /shared/pywikipedia/core/pwb.py archivebot -locale:ja_JP.utf8 -lang:ja -family:wikipedia -user:ArchiverBot 利用者:ArchiverBot/config User:ArchiverBot/config -dir:$HOME/.pywikibot -putthrottle:60 +~/local/bin/python /shared/pywikipedia/core/pwb.py archivebot -locale:ja_JP.utf8 -lan...
bash
d_bash_1831
--- +++ @@ -12,8 +12,9 @@ for interface in $(ls /sys/class/net | grep -v ^lo$) ; do echo -n "Inspecting interface: $interface..." - HAS_CONFIG=$(ifquery $interface >/dev/null 2>&1) - if [ "$HAS_CONFIG" == "" ]; then + if ifquery $interface >/dev/null 2>&1 ; then + echo "Has config, skipping." + else ...
bash
d_bash_1832
--- +++ @@ -1,4 +1,8 @@ #/usr/bin/env bash + +# Move SSH server from Port 22 to Port 66534 +sudo sed -i 's:Port 22:Port 65534:g' /etc/ssh/sshd_config +sudo service ssh reload # Kippo
bash
d_bash_1833
--- +++ @@ -12,5 +12,4 @@ install_mas_app Numbers install_mas_app Pages install_mas_app Keynote -install_mas_app Xcode install_mas_app iMovie
bash
d_bash_1834
--- +++ @@ -6,11 +6,16 @@ local full_path="${SCRIPT_DIR}/../${1}" if [ -d "${full_path}" ]; then - # Use readlink as a fallback to readpath for cross-platform compat. - if ! command -v realpath >/dev/null 2>&1; then + # Try to use readlink as a fallback to readpath for cross-platform compat. + if ...
bash
d_bash_1835
--- +++ @@ -11,7 +11,7 @@ # TODO: report to the user if nginx configtest fails nginx && php-fpm --nodaemonize - elif is_in_list "cron" "$ENABLED_SERVICES"; then + elif is_in_list "crond" "$ENABLED_SERVICES"; then crond -f -L /dev/stdout fi }
bash
d_bash_1836
--- +++ @@ -3,6 +3,8 @@ export PYTHONPATH= virtualenv package-verify-env . package-verify-env/bin/activate +pip install pip==9.0.1 +pip install setuptools==30.4.0 pip install -e scripts python -m automation.tests.verify_packages python -m automation.tests.verify_dependencies
bash
d_bash_1837
--- +++ @@ -25,7 +25,7 @@ cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DBUILD_DOCUMENTATION=NO ${TRAVIS_BUILD_DIR} run_make -cmake --build . --target docs +# cmake --build . --target docs ctest --output-on-failure . if [ "${BUILD_TYPE}" = "Coverage" ]; then
bash
d_bash_1838
--- +++ @@ -1,4 +1,7 @@ #!/bin/bash -ex ./bin/run-common.sh -exec newrelic-admin run-program gunicorn standup.wsgi:application -b 0.0.0.0:${PORT:-8000} --log-file - +exec newrelic-admin run-program gunicorn standup.wsgi:application -b 0.0.0.0:${PORT:-8000} \ + --log-file - ...
bash
d_bash_1839
--- +++ @@ -2,7 +2,8 @@ set -e echo "Build Library" # Update path for finding deps -export PATH=${OPENBLAS_ROOT}:${OPENCV_ROOT}:${DOXYGEN_ROOT}/bin:${PATH} +export PATH=${OPENBLAS_ROOT}:${OPENCV_ROOT}:${DOXYGEN_ROOT}/bin:${PROTOBUF_ROOT}:${PATH} cd $TRAVIS_BUILD_DIR echo "Current path: ${PATH}" -mkdir -p build &...
bash
d_bash_1840
--- +++ @@ -1,6 +1,8 @@ #!/bin/bash set -eou pipefail + +rm -rf chef.wiki git clone https://x-access-token:${GITHUB_TOKEN}@github.com/chef/chef.wiki.git
bash
d_bash_1841
--- +++ @@ -1,4 +1,7 @@ -# Show the current git branch in the prompt. # show the current git branch on the prompt. -export GIT_PS1_SHOWDIRTYSTATE=1 + +export GIT_PS1_SHOWDIRTYSTATE="1" +export GIT_PS1_SHOWUNTRACKEDFILES="1" +export GIT_PS1_SHOWUPSTREAM="auto" + export PS1="${GREEN}\u@\h${CYAN} \w${YELLOW}\$(__git_p...
bash
d_bash_1842
--- +++ @@ -1,6 +1,6 @@ ## Load smart urls if available for d in $fpath; do - if [[ -e "$d/url-quote-magic"]]; then + if [[ -e "$d/url-quote-magic" ]]; then autoload -U url-quote-magic zle -N self-insert url-quote-magic fi
bash
d_bash_1843
--- +++ @@ -8,4 +8,9 @@ ./dirtyc0w foo "$(/usr/games/cowsay 'MOOOOOOOOOOOOOOOO!, You are VULNERABLE! Update your kernel!')" & sleep 2 cat foo -/usr/bin/ruby post_status.rb +if [ "$POST_TO_LIBRATO" = "true" ] +then + echo "posting to librato:" + echo "https://metrics.librato.com/metrics/ih.dirty_c0w.vulnerable" +...
bash
d_bash_1844
--- +++ @@ -12,7 +12,8 @@ # Test our image, first curling our container and then checking the result against our expectations function testimage { echo "=> Querying image ($1)" - curl --retry 10 --retry-delay 5 -o actual/$1.html http://localhost:$2 --stderr - + docker-compose -f ../docker-compose.test.ym...
bash
d_bash_1845
--- +++ @@ -1,4 +1,4 @@ #!/bin/sh -virtualenv -p python3 env +virtualenv -p python3.4 env . ./env/bin/activate pip install -r requirements.txt
bash
d_bash_1846
--- +++ @@ -2,13 +2,12 @@ # Script called by Travis to install the build environment for CUDArrays. This script must be called with sudo. set -e -set -x # Install CUDA echo "Installing CUDA" CUDA_URL=http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run CUDA_FILE=...
bash
d_bash_1847
--- +++ @@ -1,12 +1,27 @@ #!/usr/bin/env bash cd ag-grid -#./node_modules/.bin/gulp stylus -#./node_modules/.bin/webpack gulp webpack cd ../ag-grid-enterprise -#./node_modules/.bin/webpack gulp webpack -cd .. +if [ -d "../ag-grid-angular" ]; then + cd ../ag-grid-angular + npm run clean-build +fi + +if [ ...
bash
d_bash_1848
--- +++ @@ -3,11 +3,14 @@ DATA_FILE_JIAOYI='../data/all_jiaoyi_data.asv' DATA_FILE_JIESUAN='../data/all_jiesuan_data.asv' DATA_FILE_HUIZONG_JIESUAN='../data/all_huizongjiesuan_data.asv' +DATA_FILE_RIJIAOYI='../data/all_rijiaoyi_data.asv' LOG_FILE_JIAOYI="../log/${TODAY}_jiaoyi.log" LOG_FILE_JIESUAN="../log/${TOD...
bash
d_bash_1849
--- +++ @@ -4,7 +4,7 @@ CF_RELEASE_BRANCH=${CF_RELEASE_BRANCH:-master} CF_RELEASE_USE_HEAD=${CF_RELEASE_USE_HEAD:-no} -ruby_version=`benv version | cut -f1 -d" "` # overwrite .ruby-version +ruby_version=`rbenv version | cut -f1 -d" "` # overwrite .ruby-version if [ ! -d cf-release ]; then git clone ${CF_R...
bash
d_bash_1850
--- +++ @@ -6,6 +6,14 @@ popd echo $version > $VERSION_FILE +prerelease_version=$(\ + gem search bits_service_client --all --pre --no-verbose \ + | sed 's/bits_service_client (\([^,]*\).*/\1/' \ +) +sed \ + -i capi-release/src/cloud_controller_ng/Gemfile.lock \ + -e "s/bits_service_client .*/bits_service_clie...
bash
d_bash_1851
--- +++ @@ -2,4 +2,5 @@ gradle assembleDebug adb install -r app/build/outputs/apk/app-debug-unaligned.apk +sleep 5 adb shell am start -n com.example.android.sunshine.app/com.example.android.sunshine.app.MainActivity
bash
d_bash_1852
--- +++ @@ -8,3 +8,4 @@ github_clone_ro.sh rupa/z github_clone_ro.sh sjl/peat github_clone_ro.sh sjl/t +github_clone_ro.sh tomislav/osx-terminal.app-colors-solarized
bash
d_bash_1853
--- +++ @@ -48,7 +48,7 @@ isOption(){ local opt=${1} - if [[ ${opt/-/} =~ [a-zA-Z0-9]+ ]]; then + if [[ $(isSubstring ${opt} -) ]] && [[ $(isAlphaNum ${opt//-/}) ]]; then echo true else return
bash
d_bash_1854
--- +++ @@ -1,7 +1,7 @@ curl -f "http://trafficways.org/obsolete/missing.json.gz" -o missing.json.gz sudo ungzip missing.json.gz -split -l 10000 missing.json chunks- +split -l 100000 missing.json chunks- sudo -u postgres createdb -U postgres -T template_postgis -E UTF8 tigermissing @@ -9,12 +9,21 @@ echo '{...
bash
d_bash_1855
--- +++ @@ -1,5 +1,5 @@ function knife_ssh() { - grep -q $1 ~/.knife_comp~ 2> /dev/null || rm -f ~/.knife_comp~; + grep -q $1 ~/.knife_comp~ || rm -f ~/.knife_comp~; ssh $(knife node show $1 | awk '/IP:/{print $2}') } @@ -9,7 +9,7 @@ echo "\nGenerating ~/.knife_comp~..." >/dev/stderr knife node...
bash
d_bash_1856
--- +++ @@ -1,2 +1,5 @@ #!/bin/sh java -Xmx256m -Xms32m -jar SimpleServer.jar + +echo Press any key to continue +read nothing
bash
d_bash_1857
--- +++ @@ -40,7 +40,8 @@ alias ps='ps -H' # Always use a pager. -for i in dict; - $i () { command $i "$@" | $PAGER; } +for i in dict; { + eval "$i"' () { command '"$i"' "$@" | $PAGER; }' +} alias ag='ag --pager=$PAGER'
bash
d_bash_1858
--- +++ @@ -1,8 +1,5 @@ #!/bin/sh -echo "$(~/bin/daysuntil 2018-06-28) days - Rhys arrives" > ~/.daysuntil.deadlines -echo "$(~/bin/daysuntil 2018-06-29) days - mantid v3.13 code freeze" >> ~/.daysuntil.deadlines -echo "$(~/bin/daysuntil 2018-06-30) days - Secret City Tri" >> ~/.daysuntil.deadlines -echo "$(~/bin/da...
bash
d_bash_1859
--- +++ @@ -15,5 +15,6 @@ ( make check_python --output-sync=target --warn-undefined-variables make test_python --output-sync=target --warn-undefined-variables + make all --output-sync=target --warn-undefined-variables ) echo "----------------------------------------"
bash
d_bash_1860
--- +++ @@ -14,7 +14,7 @@ if [ "$prev" == pip ]; then # Complete common pip commands when "pip" is given - COMPREPLY=( $(compgen -W "list install uninstall freeze" -- $cur) ) + COMPREPLY=( $(compgen -W "freeze install list search show uninstall" -- $cur) ) elif [ "$prev" == '>' -o "...
bash
d_bash_1861
--- +++ @@ -10,6 +10,7 @@ make -j4 --quiet make install --quiet +ln -s ${IROOT}/py3/bin/python3.4m ${IROOT}/py3/bin/python3.4 ${IROOT}/py3/bin/python3 -m ensurepip -U ${IROOT}/py3/bin/pip3 install -U setuptools pip
bash
d_bash_1862
--- +++ @@ -1,17 +1,21 @@ #!/usr/bin/env bash + +function die () { + echo >&2 "$@" + exit 1 +} function chkcmd { which $1 >/dev/null if [ $? -ne 0 ];then - echo "Program '$1' not found." - exit 1 + die "Program '$1' not found." fi } chkcmd "phantomjs" chkcmd "convert" ...
bash
d_bash_1863
--- +++ @@ -3,7 +3,7 @@ if ls $plugins_path &> /dev/null; then for plugin_path in $plugins_path/* ; do - echo "* $(basename $plugin_path)" + echo "$(basename $plugin_path)" done else echo 'Oohes nooes ~! No plugins installed'
bash
d_bash_1864
--- +++ @@ -5,6 +5,7 @@ # Use neovim if available if type nvim > /dev/null; then export EDITOR=nvim + export VISUAL=nvim alias vim=nvim fi
bash
d_bash_1865
--- +++ @@ -2,4 +2,4 @@ sudo -u db2inst1 -i db2 "CREATE DATABASE TEST" sudo -u db2inst1 -i db2 "ACTIVATE DATABASE TEST" -export ADDITIONAL_PROPERTIES=-Djdbc.user=dasusr1 -Djdbc.password=dasusr1 +export ADDITIONAL_PROPERTIES="-Djdbc.user=dasusr1 -Djdbc.password=dasusr1"
bash
d_bash_1866
--- +++ @@ -15,7 +15,7 @@ startyear=2007 fi -for year in $(seq $startyear 2013); +for year in $(seq $startyear 2014); do scrapy crawl localfinance -o scraped_data/${zone_type}_$year.json -t jsonlines -a year=$year -a zone_type=$zone_type done
bash
d_bash_1867
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash set -e -version="20.10.9" +version="20.10.10" echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz";
bash
d_bash_1868
--- +++ @@ -15,9 +15,15 @@ export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 -export FZF_DEFAULT_COMMAND='ag -l --nocolor --hidden --follow \ +export FZF_DEFAULT_COMMAND='ag -l \ + --nocolor \ + --hidden \ + --follow \ + --skip-vcs-ignores \ --ignore .git \ --ignore node_modules \ + --ignore public \ +...
bash
d_bash_1869
--- +++ @@ -1,13 +1,46 @@ SCRIPTDIR=$(cd $(dirname "$0") && pwd) # Attempt to kill ROS if it is already running echo "Killing everything, please wait a moment . . ." -pkill -f metatron_id.launch -pkill ngrok -sleep 10 -pkill roslaunch -sleep 10 -pkill roscore -sleep 1 +if (pkill -f metatron_id.launch) +then + w...
bash
d_bash_1870
--- +++ @@ -26,6 +26,7 @@ -e http_proxy=$http_proxy \ -e https_proxy=$https_proxy \ -e no_proxy=$no_proxy \ + -e COLUMNS=80 \ $DOCKER_IMAGE \ $@ \ &
bash
d_bash_1871
--- +++ @@ -12,6 +12,7 @@ ) declare -a work_extensions=( msjsdiag.debugger-for-chrome + ms-vscode.vscode-typescript-tslint-plugin ms-vsliveshare.vsliveshare )
bash
d_bash_1872
--- +++ @@ -1,2 +1,2 @@ -export PATH="./bin:$ZSH/bin:/usr/local/bin:/usr/local/sbin:$PATH" +export PATH="$ZSH/bin:/usr/local/bin:/usr/local/sbin:$PATH" export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
bash
d_bash_1873
--- +++ @@ -32,8 +32,8 @@ python="cp$(python --version 2>&1 | perl -pe 's|^\w+\s(\d)\.(\d+)\.\d\w*$|\1\2|g')" wheel="python_mbedtls-$version-$python-$python"'*.whl' -C_INCLUDE_PATH="/usr/include:$libdir/include" -LIBRARY_PATH="/usr/lib:$libdir/lib" +C_INCLUDE_PATH="$libdir/include" +LIBRARY_PATH="$libdir/lib" LD...
bash
d_bash_1874
--- +++ @@ -12,7 +12,7 @@ "client_info": { "mobilesdk_app_id": "0", "android_client_info": { - "package_name": "com.connfa.dummiladisciassette" + "package_name": "com.ls.drupalconapp" } }, "api_key": [
bash
d_bash_1875
--- +++ @@ -1,4 +1,5 @@ #!/bin/bash cp build/outputs/apk/fork-release-unsigned.apk build/outputs/apk/fork-release-signed-unaligned.apk jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/android-release-key.keystore build/outputs/apk/fork-release-signed-unaligned.apk android-release-key +rm build/ou...
bash
d_bash_1876
--- +++ @@ -12,7 +12,8 @@ # get rid of path filename=`basename $1` -newfile=$tmpdir/$filename +md5=`md5sum $1 | cut -d' ' -f 1` +newfile=$tmpdir/$md5-$filename if [ $debug = "true" ];then echo "===================" >> $tmplog
bash
d_bash_1877
--- +++ @@ -1,11 +1,12 @@ #!/bin/bash +discovery_token=$(facter etcd_discovery_token) # Exit codes: # 0: Yup, there's an update # 1: No, no updates # 2: Could not reach etcd, so we don't know # 3: Could not reach etcd, but we also haven't been initialised ourselves. -python -m jiocloud.orchestrate pending_upd...
bash
d_bash_1878
--- +++ @@ -1,12 +1,57 @@ #! /bin/bash -key=$1 +# set -x + +key="$1" p=$(dirname $0) +h=$(facter hostname) +foo () { + k="$1" + s="$2" + + ruby <<EOF +h=\`hiera -c $p/hiera.yaml $k ::hostname=$h ::settings::modulepath=$p/hieradata\` +print h$s +EOF +} + +cv=$(foo $key) +sub="" + +while [ "$cv" == nil...
bash
d_bash_1879
--- +++ @@ -7,6 +7,8 @@ $cli set repeat.initial_wait 250 /bin/echo -n . $cli set remap.engelbart_delete 1 +/bin/echo -n . +$cli set option.vimode_fn_hjkl 1 /bin/echo -n . $cli set remap.engelbart_control 1 /bin/echo -n .
bash
d_bash_1880
--- +++ @@ -7,6 +7,9 @@ set -o errexit set -o nounset set -o pipefail + +curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y +export PATH="${HOME}/.cargo/bin:${PATH}" # Update this from the linux-dev builder in etc/ci/buildbot_steps.yml
bash
d_bash_1881
--- +++ @@ -10,7 +10,8 @@ brew tap homebrew/versions # Utils -brew install coreutils +brew install coreutils --with-default-names +brew install jid brew install parallel brew install the_platinum_searcher brew install wget @@ -22,23 +23,24 @@ # Languages # brew cask install java # brew install nvm +# brew i...
bash
d_bash_1882
--- +++ @@ -22,7 +22,7 @@ cp build/abcBridge/abc/copyright.txt ${TARGET}/ABC_LICENSE cp doc/tutorial/sawScriptTutorial.pdf ${TARGET}/tutorial -cp -r doc/tutorial/code ${TARGET}/tutorial/code +cp -r doc/tutorial/code ${TARGET}/tutorial cp dist/build...
bash
d_bash_1883
--- +++ @@ -1,9 +1,3 @@ #!/bin/bash -sudo apt-get install ros-kinetic-controller-manager -sudo apt-get install ros-kinetic-gazebo-ros-control -sudo apt-get install ros-kinetic-diff-drive-controller -sudo apt-get install ros-kinetic-joint-state-controller -sudo apt-get install ros-kinetic-ros-control -sudo apt-get ...
bash
d_bash_1884
--- +++ @@ -1,17 +1,15 @@ #!/bin/bash ./autogen.sh AXIS2C_HOME=${AXIS2C_HOME:=`pwd`/deploy} -AXIS2C=${AXIS2C:=`pwd`} -export AXIS2C_HOME AXIS2C +export AXIS2C_HOME echo "AXIS2C_HOME = ${AXIS2C_HOME}" -echo "AXIS2 = ${AXIS2C}" -./configure --prefix=${AXIS2C_HOME} --enable-tests=no --enable-trace=yes -...
bash
d_bash_1885
--- +++ @@ -9,6 +9,9 @@ if [ "$TRAVIS_OS_NAME" == "osx" ]; then # update first to install required ruby dependency travis_retry brew update + travis_retry brew reinstall git -- --with-pcre2 # for --perl-regexp + travis_retry brew install grep # gnu grep for --perl-regexp support + PATH="$(brew --prefix gre...
bash
d_bash_1886
--- +++ @@ -10,8 +10,23 @@ } @test + testIsFilePathFile(){ + ${assertTrue} $(FileValidator isFilePath _file) + } + + @test + testIsFilePathPath(){ + ${assertTrue} $(FileValidator isFilePath _path) + } + + @test testIsNotFile(){ ${assertNull} $(FileValidator isFile _path) + } + + @test + testIsNotFilePath...
bash
d_bash_1887
--- +++ @@ -17,9 +17,11 @@ #variables +PKG_CONFIG_PATH="$PWD/../data" PYTHONDIR="../src/python" #executables MAKE="make" -(cd "$PYTHONDIR" && $MAKE clean all) +[ -n "$OBJDIR" ] && PKG_CONFIG_PATH="${OBJDIR}../data" +(cd "$PYTHONDIR" && PKG_CONFIG_PATH="$PKG_CONFIG_PATH" $MAKE clean all)
bash
d_bash_1888
--- +++ @@ -19,13 +19,17 @@ ;; esac -case $1 in - --from-src) - docker build -t $IMGNAME:$TARGET -f $DIR/Dockerfile.$TARGET $DIR - ;; - *) - ;; -esac +while [[ $# > 0 ]]; do + case $1 in + --from-src) + docker build -t $IMGNAME:$TARGET -f $DIR/Dockerfile.$TARGET $DIR + break + ;; + *) + shift + ;...
bash
d_bash_1889
--- +++ @@ -8,7 +8,7 @@ # get source files TEMPDIR=`mktemp -d` -git clone https://github.com/123andy/redcap-autonotify3.git $TEMPDIR +git clone https://github.com/pbchase/redcap-autonotify3.git $TEMPDIR # copy files to the correct target locations mkdir -p $MYTARGETDIR
bash
d_bash_1890
--- +++ @@ -6,3 +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'
bash
d_bash_1891
--- +++ @@ -28,7 +28,7 @@ log Starting cron /usr/sbin/cron log Starting gunicorn in background -gunicorn akvo.wsgi "${GUNICORN_DEBUG_ARGS:-}" --max-requests 200 --workers 5 --timeout 300 --bind 0.0.0.0:8000 & +gunicorn akvo.wsgi ${GUNICORN_DEBUG_ARGS:-} --max-requests 200 --workers 5 --timeout 300 --bind 0.0.0.0:8...
bash
d_bash_1892
--- +++ @@ -20,16 +20,8 @@ ol) case ${OS_VERSION%%.*} in 7) - case $(uname -m) in - x86_64) - sudo yum -y install rh-git227 - scl enable rh-git227 "$GIT_CONFIG" - ;; - aarch64) - sudo yum -y install rh-git218 - scl enable r...
bash
d_bash_1893
--- +++ @@ -16,8 +16,8 @@ git clone https://github.com/lloyd/yajl.git cd yajl git checkout 2.1.0 -./configure -sudo make install +./configure -p /app/.heroku/python +make install cd .. URL=https://registry.npmjs.com/-/all
bash
d_bash_1894
--- +++ @@ -15,10 +15,9 @@ rm -r /Users/nicolas/.m2/repository/com/vidal/merlin/vxp-indexer rm -r /Users/nicolas/.m2/repository/com/vidal/merlin/native rm -r /Users/nicolas/.m2/repository/com/vidal/merlin/data - echo " clean installer projects..." - mvn clean -f /Users/nicolas/work/vidal/api-installer/pom...
bash
d_bash_1895
--- +++ @@ -35,6 +35,11 @@ source venv/bin/activate fi +# clean up stray python bytecode +find $basedir -iname '*.pyc' -exec rm {} \; +find $basedir -iname '__pycache__' -exec rmdir {} \; + + #run unit tests python manage.py test --with-coverage --cover-package=datasets display_result $? 1 "Unit tests"
bash
d_bash_1896
--- +++ @@ -27,7 +27,7 @@ MISSING_COUNT=0 -echo "Actions missing tests:" +echo "Python Actions missing tests:" for ACTION in ${ACTIONS}; do if [ ! -f ${PACK}/tests/test_action_${ACTION} ]; then echo -e "\t${ACTION}" @@ -36,7 +36,7 @@ done echo -echo "Tests with no actions:" +echo "Python Tests wit...
bash
d_bash_1897
--- +++ @@ -4,6 +4,9 @@ END_UUID=$(cat /proc/sys/kernel/random/uuid) echo "Grabbing consoleLog ($END_UUID)" + +# Since we are appending to fetched logs, remove any possibly old runs +rm -f /tmp/console.txt /tmp/console.html # Get the plain text version (does not contain links or timestamps) console_log_path='...
bash
d_bash_1898
--- +++ @@ -4,7 +4,7 @@ # Purpose: # # Assemble exec.sh script for an Apache Tomcat server installation on -# an Ubuntu development workstation (not for production use). +# an Ubuntu 16.04 system. # ############################################################################# . ../../init.sh
bash
d_bash_1899
--- +++ @@ -1,11 +1,15 @@ #!/bin/bash -if test `find . -name \*.pbxproj -exec grep -H /Users/ {} \;|tee /tmp/found|wc -l` -gt 0; then cat /tmp/found; exit 1; fi +if test `find . -name \*.pbxproj -exec grep -H /Users/ {} \;|tee /tmp/found|wc -l` -gt 0; then + cat /tmp/found + exit 1 +fi set -o pipefail -xcodebuild -...
bash