document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_11400
--- +++ @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash HERE="$(dirname ${0})" source "${HERE}"/lib/user.sh
bash
d_bash_11401
--- +++ @@ -10,7 +10,7 @@ nova flavor-delete 451 fi -nova flavor-create m1.nano 42 96 1 1 +nova flavor-create m1.nano 42 512 1 1 nova flavor-create m1.micro 84 128 2 1 nova flavor-create m1.heat 451 512 5 1
bash
d_bash_11402
--- +++ @@ -4,6 +4,7 @@ sudo add-apt-repository -y ppa:chris-lea/node.js sudo apt-get -y update sudo apt-get -y install nodejs +sudo apt-get -y install g++ make coffee cd /coco sudo npm install sudo npm install -g bower
bash
d_bash_11403
--- +++ @@ -25,4 +25,4 @@ rm -rf "${BEAM}" "${BEAM}.gz" # Copy device tree to bin folder (next to image) -cp "${GRISP_TC_ROOT}/fdt/b-dtb/imx6ull-grisp2.dtb" "${OTP_ROOT}/erts-${ERTS_VERSION}/bin/" +cp "${GRISP_TC_ROOT}/fdt/imx6ul-grisp2.dtb" "${OTP_ROOT}/erts-${ERTS_VERSION}/bin/"
bash
d_bash_11404
--- +++ @@ -18,8 +18,6 @@ W=$(echo "$Q" | sed -e 's/.*\/quotes\///g' -e 's/<.*//g' -e 's/.*">//g') if [ "$W" -a "$TXT" ]; then echo "${WHO_COLOR}${W}${COLON_COLOR}: ${TEXT_COLOR}β€œ${TXT}”${END_COLOR}" - # else - # quote fi } #quote
bash
d_bash_11405
--- +++ @@ -1,21 +1,17 @@ -# Tensorflow Installation Script -# (Installs Tensorflow and required dependencies) +# Installs TensorPy, TensorFlow, ImageNet, and required dependancies pip install --upgrade pip -pip install requests==2.11.1 -pip install six==1.10.0 -pip install Pillow==3.4.1 -pip install BeautifulSoup...
bash
d_bash_11406
--- +++ @@ -10,7 +10,7 @@ if [ -d "html" ] && [ -f "html/index.html" ]; then git add --all git commit -m "Deploy code docs to GitHub Pages (build ${TRAVIS_BUILD_NUMBER})" -m "Commit: ${TRAVIS_COMMIT}" - git push --force git@github.com:twoporeguys/librpc.git > /dev/null 2>&1 + git push --force https://${GH_REPO_T...
bash
d_bash_11407
--- +++ @@ -13,7 +13,7 @@ echo " .NET location: $NET" echo echo " ${bold:-}${cyan:-}Usage:${normal:-}" -echo " ./NET_Pkg [.NET Project] [Destination] [flags]" +echo " ./NET_Pkg.Tool [.NET Project] [Destination] [flags]" echo echo " ${bold:-}${cyan:-}Optional Arguments:${normal:-}" echo " --verbose or ...
bash
d_bash_11408
--- +++ @@ -2,6 +2,8 @@ set -x set -e + +cd /tmp # Check that I'm running under trusty if [ $(lsb_release -c -s) != "trusty" ]; then @@ -21,11 +23,14 @@ # Check I can apt-get install sudo apt-get -y --force-yes install vim +umask + # Check I can compile something cat > test.c <<EOF int main(void) { ...
bash
d_bash_11409
--- +++ @@ -2,5 +2,6 @@ # From https://docs.google.com/document/d/17zjTIY6iO8amK21jKYJVOQruycdDRxusavw-RBBW-Is/mobilebasic?pli=1 +cd ~ wget https://s3.amazonaws.com/assets.minecraft.net/pi/minecraft-pi-0.1.1.tar.gz tar -zxvf minecraft-pi-0.1.1.tar.gz
bash
d_bash_11410
--- +++ @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash # mkdist.sh - create a distributable .zip file @@ -10,6 +10,13 @@ EOF exit 0 } + +git status | grep -q "nothing to commit, working tree clean" +if [ $? -ne 0 ] +then + echo "Your working tree isn't clean, aborting build" + exit 1 +fi VERSTRING=$(grep "v...
bash
d_bash_11411
--- +++ @@ -6,7 +6,7 @@ [ "$TRAVIS_BRANCH" == "master" ]; then echo -e "Publishing maven snapshot...\n" - mvn clean deploy --settings="util/settings.xml" -DskipTests=true -Dinvoker.skip=true -Dmaven.javadoc.skip=true + mvn clean source:jar deploy --settings="util/settings.xml" -DskipTests=true -Dinvoker.sk...
bash
d_bash_11412
--- +++ @@ -12,6 +12,7 @@ 'PATH="usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/lib/orfeo/bin"' \ 'JAVA_HOME="/usr/lib/jvm/java-8-oracle"' \ 'GDAL_DATA="/usr/share/gdal/2.1"' \ + 'SEPAL="true"' \ >> /etc/environment # Remove redundant files
bash
d_bash_11413
--- +++ @@ -16,12 +16,12 @@ git config --global mergetool.kdiff3.path "$kdiffpath" git config --global mergetool.kdiff3.keepBackup false -git config --global mergetool.kdiff3.trustExitCode false -git config --global difftool.keepTemporaries false +git config --global mergetool.kdiff3.trustExitCode true +git confi...
bash
d_bash_11414
--- +++ @@ -35,6 +35,7 @@ NOTIFY_RESEARCH_SERVICE_API_TEST_KEY JENKINS_BUILD_EMAIL_TEMPLATE_ID JENKINS_BUILD_SMS_TEMPLATE_ID + JENKINS_BUILD_LETTER_TEMPLATE_ID NOTIFY_RESEARCH_SERVICE_NAME NOTIFY_RESEARCH_EMAIL_REPLY_TO NOTIFY_RESEARCH_SERVICE_EMAIL_AUTH_ACCOUNT
bash
d_bash_11415
--- +++ @@ -10,6 +10,7 @@ local DIR local CMD local EXPR + local RET_CODE=0 DIR=$(cd $1 && pwd -P) CMD=$2 @@ -34,11 +35,10 @@ local RET_CODE=$? if [[ ${RET_CODE} != 0 ]] && [[ $1 == "npm run test" ]]; then - echo "[FAILED] $1, try to re-run to show error in debug mod...
bash
d_bash_11416
--- +++ @@ -11,7 +11,7 @@ $PHP composer.phar self-update echo 'Install the needed vendors for this application.' -$PHP composer.phar install +$PHP composer.phar install --no-dev echo 'Dump the optimized autoloader classmap for performance reasons.' $PHP composer.phar dump-autoload --optimize
bash
d_bash_11417
--- +++ @@ -2,15 +2,16 @@ cd /opt/php +echo "Installing composer..." php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'In...
bash
d_bash_11418
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash -xe poetry run isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --use-parentheses --line-width=100 --recursive isort/ test_isort.py -poetry run black isort/ tests_isort.py -l 100 +poetry run black isort/ test_isort.py -l 100
bash
d_bash_11419
--- +++ @@ -13,7 +13,7 @@ # https://github.com/zsh-users/zsh-history-substring-search # The binding has to happen after the zsh-history-substring-search # function has been sourced -if [[ -z "$WSL_DISTRO_NAME" ]]; then +if [[ -z "$WSL_DISTRO_NAME" && -v "$WSLENV" ]]; then bindkey '^[[A' history-substring-search...
bash
d_bash_11420
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash + +set -e -u COMMAND="$(dirname "${BASH_SOURCE}")/../video-convert"
bash
d_bash_11421
--- +++ @@ -24,7 +24,7 @@ CID=$(cat $CIDFILE) # Now that we know a container was created, remove it on exit -trap "docker rm $CID" exit +trap "rm build_test_iid && docker rm $CID" exit docker cp \ $CID:/kolibri/.buildkite/spreadsheet-link.txt \
bash
d_bash_11422
--- +++ @@ -2,7 +2,7 @@ # # Script that performs several tasks: # -# 1. Set up a 1 GB RAM disk +# 1. Set up a 2GB RAM disk # 2. Spawn child shell process with TMPDIR set to RAM disk # 3. Eject RAM disk when child shell exits # @@ -16,8 +16,8 @@ DEV=`mount | grep $RPATH | cut -d ' ' -f 1` echo "Using e...
bash
d_bash_11423
--- +++ @@ -16,4 +16,4 @@ jupyter notebook -y --no-browser --notebook-dir=${PROJECT_DIR} \ --certfile=${SSL_CERT_PEM} --keyfile=${SSL_CERT_KEY} --ip='*' \ - --config=${CONFIG_PATH} + --config=${CONFIG_PATH} --allow-root
bash
d_bash_11424
--- +++ @@ -3,7 +3,7 @@ case "$1" in java8) - echo "https://github.com/bell-sw/Liberica/releases/download/8u333+2/bellsoft-jdk8u333+2-linux-amd64.tar.gz" + echo "https://github.com/bell-sw/Liberica/releases/download/8u342+7/bellsoft-jdk8u342+7-linux-amd64.tar.gz" ;; java11) echo "https://github.com/b...
bash
d_bash_11425
--- +++ @@ -1,21 +1,19 @@ sudo apt-get update sudo apt-get install libproj-dev libfreexl-dev libxml2-dev -wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2 -tar jxf geos-3.4.2.tar.bz2 -cd geos-3.4.2 +wget http://download.osgeo.org/geos/geos-3.6.0.tar.bz2 +tar jxf geos-3.6.0.tar.bz2 +cd geos-3.6.0 ./configur...
bash
d_bash_11426
--- +++ @@ -5,10 +5,15 @@ source build/bin/activate # install depends -pip install colorlog pyyaml psutil lxml cssselect grip nose urwid coverage six +pip install colorlog pyyaml psutil lxml cssselect nose urwid coverage six # run unit tests ./run-test.sh + +# re-setup env +deactivate +virtualenv --clear --sy...
bash
d_bash_11427
--- +++ @@ -6,6 +6,21 @@ FILE_ROOT="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" salt-call --local --file-root=$FILE_ROOT/ --log-level=quiet --output=quiet state.sls default.minimal ||: + +NEXT_TRY=0 +until [ $NEXT_TRY -eq 10 ] || salt-call --version +do + echo "It seems salt-call is not available a...
bash
d_bash_11428
--- +++ @@ -1,8 +1,30 @@ -function git_current_branch() { - git symbolic-ref HEAD 2> /dev/null | sed -e 's/refs\/heads\///' +unalias gp + +function git_branch() { + git symbolic-ref --short HEAD 2>/dev/null } -alias gpthis='git push origin HEAD:$(git_current_branch)' +function has_tracking_branch() { + git rev-p...
bash
d_bash_11429
--- +++ @@ -3,7 +3,7 @@ _pull=$(git pull) _subs=$(git submodule update --recursive) -if [ "$_pull" == "Already up-to-date." ] && [ -z "$_subs" ]; then +if [ "$_pull" = "Already up-to-date." ] && [ -z "$_subs" ]; then echo "Already up-to-date." exit 0 fi
bash
d_bash_11430
--- +++ @@ -5,4 +5,4 @@ mkdir build cd build cmake ../googletest -DCMAKE_INSTALL_PREFIX=../dist -make install +cmake --build . --target install
bash
d_bash_11431
--- +++ @@ -1,3 +1,15 @@ +#!/bin/sh + +if [[ "$SHOES_DIR" == "" ]]; then + if [[ `whoami` == "root" ]]; then + export SHOES_DIR='/opt/shoes'; + else + export SHOES_DIR=${HOME}/.shoes + fi +fi + +echo $SHOES_DIR + function install_green_shoes() { cd $SHOES_DIR git clone https://github...
bash
d_bash_11432
--- +++ @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -echo "export #!/usr/bin/env bash " > ../source.sh +echo "#!/usr/bin/env bash " > ../source.sh project_id=$(terraform output project_id) echo "export TF_VAR_project_id='$project_id'...
bash
d_bash_11433
--- +++ @@ -3,5 +3,11 @@ # from https://learn.pimoroni.com/tutorial/tanya/building-the-tiny-4wd curl https://get.pimoroni.com/explorerhat | bash + +# https://pypi.org/project/inputs/ sudo pip install inputs + +# From https://github.com/ApproxEng/approxeng.input +sudo pip install approxeng.input + #wget https://...
bash
d_bash_11434
--- +++ @@ -19,25 +19,41 @@ lgtm() { if [ -s $cachefile ]; then cat $cachefile - ( lgtm_nocache > $cachefile ) & else - ( lgtm_nocache > $cachefile ) & lgtm_nocache + lgtm_nocache fi } lgtm_nocache() { - site=${sites[$(($RANDOM % ${#sites[@]}))]} - echo 'http://...
bash
d_bash_11435
--- +++ @@ -11,6 +11,12 @@ export PATH=$GOBIN:$PATH popd > /dev/null +if [[ -e "${PWD}/buildpack/scripts/.util/tools.sh" ]]; then + # shellcheck disable=SC1091 + source "${PWD}/buildpack/scripts/.util/tools.sh" + util::tools::cf::install --directory "${PWD}/buildpack/.bin" +fi + "./cf-space/login" pushd ...
bash
d_bash_11436
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -if [ "$GOPATH" != "$PWD" ]; then +if [ "$GOPATH" == "" ]; then export GOPATH="$PWD" fi
bash
d_bash_11437
--- +++ @@ -26,7 +26,7 @@ nosetests -v --with-xunit --with-coverage --cover-package=backdrop --cover-inclusive display_result $? 1 "Unit tests" -python -m coverage xml --include=backdrop* +python -m coverage.__main__ xml --include=backdrop* behave --no-color display_result $? 2 "Feature tests"
bash
d_bash_11438
--- +++ @@ -6,6 +6,6 @@ sudo chmod ug=Xrw,o=Xr -R /emergence/services/sencha/frameworks-repo.git sudo git init --bare /emergence/services/sencha/builds-repo.git +echo "/emergence/services/sencha/frameworks-repo.git/objects" > /emergence/services/sencha/builds-repo.git/objects/info/alternates sudo chown root:www-...
bash
d_bash_11439
--- +++ @@ -35,10 +35,6 @@ options=($BOOT_JVM_OPTIONS) fi -# Setting env vars for java process so this information can be retrieved easily -export BOOT_JAVA_COMAND="$java_command" -export BOOT_JVM_OPTIONS="$options" - self="${BASH_SOURCE[0]}" selfdir="$(cd "$(dirname "${self}")" ; pwd)" selfpath="$selfdir/...
bash
d_bash_11440
--- +++ @@ -14,10 +14,9 @@ fi cd $APOLLO_JBROWSE_DIRECTORY -perl Makefile.PL $* -make if [[ $1 == install ]]; then - make install + cpan XML::DOM XML::Parser XML::Parser::PerlSAX + cpan . fi cd $CURRENT
bash
d_bash_11441
--- +++ @@ -10,3 +10,4 @@ for c in $user_commands; do; alias sc-$c="systemctl $c"; done for c in $sudo_commands; do; alias sc-$c="sudo systemctl $c"; done +alias sc-launch="sudo systemctl start $c && sudo systemctl enable $c"
bash
d_bash_11442
--- +++ @@ -21,9 +21,9 @@ sdlproj=http://www.libsdl.org/projects -get_it SDL2 http://www.libsdl.org/release/SDL2-2.0.0.dmg -get_it SDL2_image $sdlproj/SDL_image/release/SDL2_image-2.0.0.dmg -get_it SDL2_mixer $sdlproj/SDL_mixer/release/SDL2_mixer-2.0.0.dmg -get_it SDL2_ttf $sdlproj/SDL_ttf/release/SDL2_ttf-2.0.1...
bash
d_bash_11443
--- +++ @@ -5,6 +5,7 @@ make demo cd sites/demo +./manage.py thumbnail clear ./manage.py collectstatic --noinput # Re-compile python code
bash
d_bash_11444
--- +++ @@ -9,12 +9,12 @@ source db_settings.env psql -f mapview_schema.sql psql -q -f mapview_24h_daily.sql -v v1="'"${at[0]}"-"${at[1]}"-"${at[2]}"T"${at[3]}":"${at[4]}":"${at[5]}"Z'" |\ - aws s3 cp - "${EXPORT_TARGET}"/json/daily/"$(at[0])"/"$(at[1])"/"$(at[2])".json \ + aws s3 cp - "${EXPORT_TARGET}"/json/da...
bash
d_bash_11445
--- +++ @@ -5,9 +5,6 @@ OPTIONS="-config=test-integration/dbconfig.yml -env mysql_noflag" -output=$(mktemp $TMPDIR/mysql-flag.XXXXXX) - set -ex -sql-migrate status $OPTIONS | tee $output -cat $output | grep -q "Make sure that the parseTime option is supplied" +sql-migrate status $OPTIONS | grep -q "Make sure ...
bash
d_bash_11446
--- +++ @@ -9,7 +9,7 @@ for disallowedFunction in "${DISALLOWED_FUNCTIONS[@]}" do - if grep -R $EXCLUDE_DIRECTORIES -e "$disallowedFunction" "$SCRIPT_PATH/.." | grep -v nolint; then + if grep -R $EXCLUDE_DIRECTORIES -e "$disallowedFunction" "$SCRIPT_PATH/.." | grep -v -e '_test.go' -e 'nolint'; then echo "$dis...
bash
d_bash_11447
--- +++ @@ -3,7 +3,7 @@ function deploy_proxy { if hash apigeetool 2>/dev/null; then printf "\n\nUsing apigeetool to deploy the proxy to the $env environment in the $org org...\n\n" - apigeetool deployproxy -o $org -e $env -n learn-edge -L $url -u $username -p $password -V + apigeetool deplo...
bash
d_bash_11448
--- +++ @@ -7,7 +7,7 @@ testfn=${intest##*/} assignment=${testfn%_test.erl} workdir=$(mktemp -d "${tmp}${assignment}.XXXXXXXXXX") - modname=$(awk '/^-module/ { sub(/.*\(\s*/, ""); sub(/\s*\).*$/, ""); print }' "${inexample}") + modname=$(awk '/^-module/ { sub(/.*\(/, ""); sub(/\).*$/, ""); print...
bash
d_bash_11449
--- +++ @@ -8,4 +8,4 @@ bosh download manifest ${DEPLOYMENT_NAME:-cf-warden} > manifest.yml bosh deployment manifest.yml -bosh run errand $ERRAND_NAME --keep-alive +bosh run errand $ERRAND_NAME $EXTRA_ARGS
bash
d_bash_11450
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -mocha --harmony --timeout 100000 bin/test/Test.js #--reporter progress +mocha --harmony-proxies --timeout 100000 bin/test/Test.js #--reporter progress
bash
d_bash_11451
--- +++ @@ -1,2 +1,15 @@ #!/bin/sh -rsync -F --exclude="*mkinit*" -av --progress rsync://rsync.osuosl.org/slackware/slackware-12.2/patches/packages/ . +#rsync -F --exclude="*mkinit*" -av --progress rsync://rsync.osuosl.org/slackware/slackware-12.2/patches/packages/ . +#rsync -F --exclude="*mkinit*" --exclude='linux-...
bash
d_bash_11452
--- +++ @@ -3,6 +3,8 @@ ################################################################################ # # A script to make a self signed certificate. +# +# Taken from: https://devcenter.heroku.com/articles/ssl-certificate-self # ################################################################################ ...
bash
d_bash_11453
--- +++ @@ -4,7 +4,7 @@ echo "Cloning GitHub Pages" rm -rf .pages -git clone -b gh-pages --single-branch https://github.com/JetBrains/kotlin-spec.git .pages +git clone --depth 1 -b gh-pages --single-branch https://github.com/JetBrains/kotlin-spec.git .pages echo "done" ./build.sh
bash
d_bash_11454
--- +++ @@ -12,4 +12,7 @@ paver install_libs npm install +# Put in a dummy keys so that paver make works +mv static/javascript/tba_js/tba_keys_template.js static/javascript/tba_js/tba_keys.js + paver make
bash
d_bash_11455
--- +++ @@ -1,8 +1,10 @@ #!/bin/bash # now re-configure with BUILD_PYTHON_BINDINGS:BOOL=ON -mkdir pybuild -cd pybuild + +mkdir pybuild_${PKG_HASH} +cd pybuild_${PKG_HASH} + cmake -G "Unix Makefiles" \ ${CMAKE_ARGS} \ -DCMAKE_BUILD_TYPE=Release \
bash
d_bash_11456
--- +++ @@ -5,6 +5,6 @@ if [ -d "/home/notify-app/notifications-api" ]; then # Remove and re-create the directory rm -rf /home/notify-app/notifications-api - mkdir -vp /home/notify-app/notifications-api + mkdir -p /home/notify-app/notifications-api fi
bash
d_bash_11457
--- +++ @@ -6,11 +6,19 @@ SUFFIX="${ROOTFS_SUFFIX-}" -cp "receipt-s3/${STACK}_receipt${SUFFIX}"-* "rootfs/${STACK}/${STACK}_receipt" +if [ $STACK == 'cflinuxfs2' ]; then + receipt_file="${STACK}_receipt" + receipt_dest="${STACK}/${STACK}_receipt" +else + receipt_file="receipt.${STACK}.x86_64" + recei...
bash
d_bash_11458
--- +++ @@ -14,10 +14,12 @@ CONTAINER_2=(':atlasdb-tests-shared:check' ':atlasdb-ete-tests:check') #Container 3 -CONTAINER_3=(':atlasdb-timelock-ete:check' ':atlasdb-dropwizard-tests:check' ':lock-impl:check' ':atlasdb-dbkvs-tests:check') +CONTAINER_3=(':atlasdb-timelock-ete:check' ':lock-impl:check' ':atlasdb-db...
bash
d_bash_11459
--- +++ @@ -20,6 +20,7 @@ cp -R ../vivliostyle-ui/dist/* . cp -R ../vivliostyle-ui/node_modules/vivliostyle/samples/* samples/ cp ../vivliostyle-ui/node_modules/vivliostyle/doc/supported-features.{md,html} docs/en/ +cp ../vivliostyle-ui/node_modules/vivliostyle/CHANGELOG.md . cp -R ../vivliostyle-ui/build/* viewe...
bash
d_bash_11460
--- +++ @@ -14,7 +14,7 @@ gpg2 --no-default-keyring --armor \ --secret-keyring ./signing.sec --keyring ./signing.pub \ --output $1/signing-public.gpg \ ---export +--export $EMAIL echo 'Determining private key' PRIVATE_KEY=`gpg2 --no-default-keyring \
bash
d_bash_11461
--- +++ @@ -15,4 +15,4 @@ fi git push origin master $1 -ssh statink@app1.stat.ink 'pushd stat.ink && git fetch origin && git merge --ff-only origin/master && scl enable php73 make && touch .maintenance && rm -rfv web/assets/* runtime/Smarty/compile/* && rm -f .maintenance' +ssh statink@app1.stat.ink 'pushd stat.i...
bash
d_bash_11462
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -if [ -f /home/vagrant/.vbox_version ]; then +if [ $PACKER_BUILDER_TYPE == 'virtualbox' ]; then mkdir /tmp/vbox VER=$(cat /home/vagrant/.vbox_version) mount -o loop /home/vagrant/VBoxGuestAdditions_$VER.iso /tmp/vbox
bash
d_bash_11463
--- +++ @@ -6,7 +6,7 @@ mv -f /var/log/glow.log ${NEW_LOG} kill -HUP `cat /var/run/syslogd.pid` -cat ${NEW_LOG} | grep ' 302 ' | grep -iE 'firefox-(28|latest|stub)' | awk '{print "lpush geoip 0," $3}' >> /tmp/redis-commands.txt +cat ${NEW_LOG} | grep ' 302 ' | grep -iE 'firefox-(28|latest)' | awk '{print "lpush g...
bash
d_bash_11464
--- +++ @@ -4,4 +4,9 @@ set -x echo DEPLOY_TO=$DEPLOY_TO -prove -lj4 tests/integration/config_rules/ tests/integration/sample/ tests/integration/regressions/ tools/test-log.pl + +prove -l${CONCURRENT_TESTS:-j4} \ + tests/integration/config_rules/ \ + tests/integration/sample/ \ + te...
bash
d_bash_11465
--- +++ @@ -9,4 +9,4 @@ export USE_ANDROIDX_REMOTE_BUILD_CACHE=false # run build in a sandbox -../development/sandbox/run-without-network.sh impl/build.sh buildOnServer --no-configuration-cache --no-daemon --offline +../development/sandbox/run-without-network.sh impl/build.sh buildOnServer --no-configuration-cach...
bash
d_bash_11466
--- +++ @@ -1,9 +1,10 @@ #!/bin/sh while true; do + esc -o web/static.go -pkg web -prefix web/static web/static/ go run main.go -w -dev -r -q - esc -o web/static.go -pkg web -prefix web/static web/static/ if [ $? != 0 ] ; then + esc -o web/static.go -pkg web -prefix web/static web/static/ exit fi echo...
bash
d_bash_11467
--- +++ @@ -13,6 +13,7 @@ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID4bv1RXziZSjHkKY5kDbxboNUGkHEpBivdX8fdvl7Zt EOF +sed -i -e 's/^#s0:/s0:/1' /etc/inittab sed -i -e 's|^\(s0:.*\) -L [0-9]*|\1 -L 9600|1' /etc/inittab cat >> /etc/default/grub <<EOF # Console on serial.
bash
d_bash_11468
--- +++ @@ -3,5 +3,5 @@ if [ "$1" = "" ] ; then exec tini -- ydls-server -info -formats "$FORMATS" -listen "$LISTEN" else - exec ydls-get -formats /etc/formats.json "$@" + exec ydls-get -formats "$FORMATS" "$@" fi
bash
d_bash_11469
--- +++ @@ -15,4 +15,7 @@ # init all submodules including the tools CHIPYARD_DIR="$LOCAL_CHIPYARD_DIR" NPROC=$CI_MAKE_NPROC $LOCAL_CHIPYARD_DIR/scripts/build-toolchains.sh $1 + + # de-init the toolchain area to save on space + git submodule deinit $LOCAL_CHIPYARD_DIR/toolchains/$1 fi
bash
d_bash_11470
--- +++ @@ -1,7 +1,9 @@ #!/bin/sh -openstack user create --domain default --password $1 nova -openstack role add --project service --user nova admin -openstack service create --name nova --description "OpenStack Compute" compute -openstack endpoint create --region RegionOne compute public http://$2:8774/v2/%\(tenant...
bash
d_bash_11471
--- +++ @@ -2,7 +2,7 @@ set -e if test x"`uname`" = xDarwin ; then - sudo systemsetup -settimezone GMT + sudo systemsetup -settimezone America/Los_Angeles brew update # brew install cmake elif test x"`uname`" = xLinux ; then
bash
d_bash_11472
--- +++ @@ -9,7 +9,7 @@ pass() { - echo -e '[\e[0;32mPASS\e[0m] '$i: $@ + echo -e '[\e[0;32mPASS\e[0m] '$i } check_expected()
bash
d_bash_11473
--- +++ @@ -1,9 +1,9 @@ #!/bin/sh -docker build --build-arg version=releases -t julia-release . -docker build --build-arg version=nightlies -t julia-nightly . +docker build --build-arg version=releases -t julia:release . +docker build --build-arg version=nightlies -t julia:nightly . echo "Running tests on relea...
bash
d_bash_11474
--- +++ @@ -23,10 +23,10 @@ ##################################################### # Delete all known files in web server directory # ##################################################### -cd $WEBDIR && rm -r calendar/ css/ fonts/ images/ js/ reports/ favicon.ico index.php sitemap.xml.gz status.class.php templat...
bash
d_bash_11475
--- +++ @@ -5,9 +5,11 @@ if [[ $TRAVIS_BRANCH == 'master' ]] && [[ $TRAVIS_PULL_REQUEST = false ]] then # add remote ssh-key to key-storage + # first add remote host to known hosts ssh-keyscan -t rsa $DEPLOY_HOST 2> /dev/null | sort -u - ~/.ssh/known_hosts -o ~/.ssh/known_hosts - openssl aes-256-cbc -K $encrypt...
bash
d_bash_11476
--- +++ @@ -25,3 +25,8 @@ echo "${(j, ,)elapsed}" } + +newest () { + # Utilize multios to print path to STDERR (for visbility) and STDOUT (for pipe). + ls -tr "$@" | tail -n 1 1>&2 | cat +}
bash
d_bash_11477
--- +++ @@ -10,3 +10,4 @@ openstack floating ip create --port $p provider1 fip=`openstack floating ip list -c 'Floating IP Address' -c 'Fixed IP Address' --format value | grep 10.0.2.20 | cut -d' ' -f1` echo -e "==== CLIENT FLOATING IP $fip ====" +echo $fip >| /root/client-fip
bash
d_bash_11478
--- +++ @@ -8,7 +8,7 @@ cat $fileName | sed -n -e "s/^[ ]*//g;/^#/d;s/^$propertyName=//p" | tail -1 } -GITHUB_OAUTH=`getPropertyFromFile github.oauth ~/Projects/scratch/nebula-plugin-keys/cloudbees/github/netflixoss.properties` +GITHUB_OAUTH=`getPropertyFromFile github.oauth $GITHUB_PROPERTIES` cd $Repositor...
bash
d_bash_11479
--- +++ @@ -1 +1,20 @@ sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers + +mv /etc/issue /etc/issue.old +cat > /etc/issue <<EOF +β–‘β–€β–ˆβ–€β–‘β–ˆβ–€β–„β–‘β–€β–ˆβ–€β–‘β–ˆβ–€β–„β–‘β–ˆβ–€β–ˆ +β–‘β–‘β–ˆβ–‘β–‘β–ˆβ–€β–„β–‘β–‘β–ˆβ–‘β–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–€β–ˆ +β–‘β–€β–€β–€β–‘β–€β–‘β–€β–‘β–€β–€β–€β–‘β–€β–€β–‘β–‘β–€β–‘β–€ + +Welcome to the IRIDA Virtual Environment. + +As you can see, the Virtual Environment does not have a GUI inst...
bash
d_bash_11480
--- +++ @@ -1,11 +1,13 @@ #!/bin/sh VERSION="latest" +lein doc (cd doc; make) rm -rf /tmp/buddy-doc/ mkdir -p /tmp/buddy-doc/ -mv doc/*.html /tmp/buddy-doc/ +mv doc/index.html /tmp/buddy-doc/ +mv doc/api /tmp/buddy-doc/api git checkout gh-pages;
bash
d_bash_11481
--- +++ @@ -14,9 +14,8 @@ rm -f ${DEST} ln -s ${SOURCE} ${DEST} -function checkMonitHasReloaded { - monit summary | grep -q 'uptime: 0m' -} +function checkMonitHasReloaded { monit summary | grep -q 'uptime: 0m' } +export -f checkMonitHasReloaded RELOAD_CHECK_BEFORE=$(checkMonitHasReloaded)$? monit reload
bash
d_bash_11482
--- +++ @@ -17,9 +17,9 @@ # find and lint files for f in $(find . -type f -not \( -iwholename '*.git*' -o -iwholename '*.tmp*' \) | sort -u) ; do - if file "$f" | grep -i --quiet "\(bash\|shell\) script" ; then + if file "$f" | grep -i --quiet '\(bash\|shell\) script' ; then shellcheck "$f" - e...
bash
d_bash_11483
--- +++ @@ -1,5 +1,10 @@ #!/bin/sh +if test $(id -u) -eq 0 +then + echo "Cannot run do-make-install.sh as root" + exit 1 +fi set -e cd ~/proto-ch autoreconf --install
bash
d_bash_11484
--- +++ @@ -1,4 +1,9 @@ #!/bin/sh + +if [ ! $# == 1 ]; then + echo "Usage: $0 <release_version>" + exit 1 +fi ORIGINAL_DIR=$PWD ADDON_DIR=$(dirname "$(readlink -f $0/..)") @@ -7,5 +12,5 @@ cp -R "$ADDON_DIR" /tmp/ find epgp -type d -name ".svn" | xargs rm -rf rm -rf epgp/scripts -zip -r "$ORIGINAL_DIR"/epgp...
bash
d_bash_11485
--- +++ @@ -7,6 +7,7 @@ PACKAGES_DIR=`dirname $0`/../packages echo 'Meteor = {};' +cat $PACKAGES_DIR/underscore/underscore.js cat $PACKAGES_DIR/uuid/uuid.js cat $PACKAGES_DIR/deps/deps.js cat $PACKAGES_DIR/deps/deps-utils.js @@ -17,5 +18,3 @@ cat $PACKAGES_DIR/domutils/domutils.js cat $PACKAGES_DIR/spark/spa...
bash
d_bash_11486
--- +++ @@ -13,6 +13,8 @@ npm-check-updates \ yo \ firebase-tools \ + imagemin-cli \ + react-native-cli \ # Setting up username npm set username $NPM_USERNAME
bash
d_bash_11487
--- +++ @@ -10,4 +10,4 @@ #Start limelight echo PC available, starting limelight cd /home/pi/limelight -java -jar limelight.jar -mapping xbox.map stream <ENTER IP OR HOSTNAME OF PC HERE> +java -jar limelight.jar -mapping xbox.map -60fps stream <ENTER IP OR HOSTNAME OF PC HERE>
bash
d_bash_11488
--- +++ @@ -12,6 +12,8 @@ cp -p $(dirname $0)/../misc/server.properties $(dirname $0)/../server/ chown -R minecraft:minecraft /opt/minecraft/server svccfg import $(dirname $0)/../svc/manifest/minecraft.xml +grep -q /opt/minecraft/bin /root/.profile || \ + echo "PATH=$PATH:/opt/minecraft/bin" >> /root/.profile ...
bash
d_bash_11489
--- +++ @@ -14,7 +14,7 @@ alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm" alias gchurn='git log --name-only | grep .rb | sort | uniq -c | sort -nr | head' -alias gbd='git branch --merged | grep -Ev "(master|production|main|develop)" | xargs git branch -d' +alias gbd='git branch --merged |...
bash
d_bash_11490
--- +++ @@ -3,4 +3,4 @@ set -euo pipefail echo "This script is no longer needed. Go ahead and run autoreconf. For example:" -echo " autoreconf -i && ./configure && make -j`nproc` check && sudo make install" +echo " autoreconf -i && ./configure && make -j6 check && sudo make install"
bash
d_bash_11491
--- +++ @@ -16,6 +16,17 @@ npm install chmod +x run.sh -# and install the systemd service +# install and enable the systemd service cp config/mozilla-gateway-wifi-setup.service /etc/systemd/system/mozilla-gateway-wifi-setup.service -sudo systemctl enable mozilla-gateway-wifi-setup.service +systemctl enable mozil...
bash
d_bash_11492
--- +++ @@ -34,6 +34,9 @@ alias pinknoise='play -n synth 1440:00 pinknoise vol 0.05' alias psg='ps aux | grep' alias rmtree='rm -r' +tmosh() { + mosh $@ -- tmux attach -d +} # Works like the old MS-DOS tree command alias tree='tree -d' alias xv='geeqie'
bash
d_bash_11493
--- +++ @@ -1,17 +1,25 @@ #!/bin/sh -[ -z "$FABRIC_API_KEY" ] && echo "FABRIC_API_KEY can't be empty" && exit 1 -[ -z "$FABRIC_BUILD_SECRET" ] && echo "FABRIC_BUILD_SECRET can't be empty" && exit 1 +env_gen () { + VARNAME=$1 + eval VARVAL="\$$VARNAME" + if [ -z "$VARVAL" ]; then + echo "// $VARNAME is empty!!!! P...
bash
d_bash_11494
--- +++ @@ -2,8 +2,8 @@ # Set docker host to a Raspberry Pi's IP address export DOCKER_HOST=tcp://192.168.0.51:2376 if [ -z $1 ]; then - docker build --no-cache --pull -f Dockerfile.rpi -t gangefors/arm32v7/airdcpp-webclient:latest . + docker build --no-cache --pull -f Dockerfile.rpi -t gangefors/arm32v7-air...
bash
d_bash_11495
--- +++ @@ -1,8 +1,8 @@ #!/bin/bash wget https://bano.openstreetmap.fr/BAN_odbl/BAN_odbl.json.bz2 -O data/BAN_odbl.json.bz2 -docker-compose -p geocoder run --volume $PWD/data:/data --entrypoint /bin/bash addok -c "bzcat data/BAN_odbl.json.bz2 | addok --config /etc/addok/config.py batch" +docker-compose -p geocoder ...
bash
d_bash_11496
--- +++ @@ -6,20 +6,25 @@ rm -rf /emqx_temp && mkdir /emqx_temp cp -rf /emqx_code/* /emqx_temp/ -cd /emqx_temp -pkg=emqx-${ostype}-${versionid}-${type}-${today}.zip + +cd /emqx_temp/emqx-rel +versionid=${version##*v} +export versionid=${versionid%-*} +export type=${version#*-} + +pkg=emqx-${ostype}-${version}-${...
bash
d_bash_11497
--- +++ @@ -8,38 +8,11 @@ pkg_deps=(core/glibc) pkg_build_deps=(core/make core/gcc core/perl core/elfutils core/bc core/diffutils) -do_begin() { - return 0 -} - -do_download() { - do_default_download -} - -do_verify() { - do_default_verify -} - -do_clean() { - do_default_clean -} - -do_unpack() { - do_defaul...
bash
d_bash_11498
--- +++ @@ -3,43 +3,16 @@ # Prepare the MySQL source code tree for building # with checked-out InnoDB Subversion directory. -# This script assumes that the MySQL tree is at .. and that . = ../innodb +# This script assumes that the current directory is storage/innobase. set -eu TARGETDIR=../storage/innobase ...
bash
d_bash_11499
--- +++ @@ -7,7 +7,7 @@ # this does nothing if all current tests are distributed already, but triggers full build if not # -> builder will timeout -> manually run refresh_test_timings -> push results -${SRC_DCTRL} ${BLD} --only=${MY_MODULE} bexec ninja -v -j 1 refresh_test_timings +# ${SRC_DCTRL} ${BLD} --only=${...
bash