document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_9900
--- +++ @@ -4,28 +4,9 @@ curl https://sh.rustup.rs -sSf | \ sh -s -- -y --default-toolchain $TRAVIS_RUST_VERSION - local target= - if [ $TRAVIS_OS_NAME = linux ]; then - target=x86_64-unknown-linux-gnu - sort=sort - else - target=x86_64-apple-darwin - sort=gsort #...
bash
d_bash_9901
--- +++ @@ -24,7 +24,7 @@ rm -rf * # Download the latest javadoc -curl -L "http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=$GROUP_ID&a=$ARTIFACT_ID&v=LATEST&c=javadoc" > javadoc.zip +curl -L "https://search.maven.org/remote_content?g=$GROUP_ID&a=$ARTIFACT_ID&v=LATEST&c=javad...
bash
d_bash_9902
--- +++ @@ -14,3 +14,12 @@ fi ./net.sh setup + +# Make loop devices as needed +for i in $(seq 0 1023); do + file=/dev/loop${i} + if [ ! -b ${file} ]; then + mknod -m0660 ${file} b 7 ${i} + chown root.disk ${file} + fi +done
bash
d_bash_9903
--- +++ @@ -1,5 +1,22 @@ -python /opt/TimeSide/examples/sandbox/manage.py syncdb --noinput -python /opt/TimeSide/examples/sandbox/manage.py migrate --noinput -python /opt/TimeSide/examples/sandbox/manage.py collectstatic --noinput +#!/bin/sh -uwsgi --socket :8000 --wsgi-file /opt/TimeSide/examples/sandbox/wsgi.py ...
bash
d_bash_9904
--- +++ @@ -7,7 +7,7 @@ cd tsomi-staging #cat ../../index.html | sed 's/static\/tsomi.css/\/tsomi\/static\/tsomi.css/' | sed 's/js\/bundle.js/\/tsomi\/js\/bundle.js/' > index.html cp ../index.html . -cp ../favicon.ico . +cp ../static/favicon.ico . cp -r ../static . cp -r ../js . git add *
bash
d_bash_9905
--- +++ @@ -5,7 +5,7 @@ OSTYPE=`uname` if [[ "$OSTYPE" == "Linux" ]]; then - echo "linux" + OS_PATH="linux/work/hardware" elif [[ "$OSTYPE" == "Darwin" ]]; then OS_PATH="macosx/work/Energia.app/Contents/Resources/Java/hardware" echo $OS_PATH
bash
d_bash_9906
--- +++ @@ -46,3 +46,7 @@ fi } set_editor + +sendtext () { + curl http://textbelt.com/text -d number=${1} -d "message=$2";echo message sent; +}
bash
d_bash_9907
--- +++ @@ -7,8 +7,9 @@ . venv/bin/activate -pip install wheel -pip install -r "$1/requirements.txt" +# use `python -m pip` to avoid problem with long shebangs on travis +python -m pip install wheel +python -m pip install -r "$1/requirements.txt" PORT=`$1/../get_open_port.py`
bash
d_bash_9908
--- +++ @@ -1,5 +1,4 @@ #!/usr/bin/env bash # Run the test suite. -python2 -m unittest discover -v && python3 -m unittest discover -v
bash
d_bash_9909
--- +++ @@ -1,13 +1,12 @@ -# Download grafeas.swagger.json -wget https://github.com/grafeas/grafeas/raw/master/v1alpha1/proto/grafeas.swagger.json grafeas.swagger.json +# Download v1alpha1 grafeas.swagger.json. +wget https://github.com/grafeas/grafeas/raw/master/v1alpha1/proto/grafeas.swagger.json -# Download swagg...
bash
d_bash_9910
--- +++ @@ -12,7 +12,7 @@ echo "Installing node modules (package.json)" fi # npm install --unsafe-perm --userconfig $build_dir/.npmrc 2>&1 - npm install --global --unsafe-perm --userconfig $HOME/.npmrc 2>&1 + npm install --unsafe-perm --userconfig $HOME/.npmrc 2>&1 else echo "Skipping (...
bash
d_bash_9911
--- +++ @@ -2,5 +2,5 @@ # TODO: When we can run docker-compose in Taskcluster, we should use # docker-compose-test.yml instead of running docker directly. -docker build -t balrogtest . +docker build --pull -t balrogtest . docker run --entrypoint /app/scripts/test-entrypoint.sh balrogtest
bash
d_bash_9912
--- +++ @@ -14,7 +14,6 @@ ./configure --with-ruby19 ${configure_args} ;; cmake) - cmake --version cmake . -DGRN_WITH_DEBUG=yes -DGRN_WITH_MRUBY=yes ;; esac
bash
d_bash_9913
--- +++ @@ -1,7 +1,4 @@ #!/bin/bash - -BINARY_HOME=$PREFIX/bin -PKG_HOME=$PREFIX/opt/$PKG_NAME-$PKG_VERSION cd $SRC_DIR/bin @@ -9,6 +6,5 @@ stellar \ " mkdir -p $PREFIX/bin -mkdir -p $PKG_HOME -for i in $binaries; do cp $SRC_DIR/bin/$i $PKG_HOME/$i && chmod a+x $PKG_HOME/$i && ln -s $PKG_HOME/$i $BINARY_HO...
bash
d_bash_9914
--- +++ @@ -4,8 +4,8 @@ do # echo $RANDOM if [ $2 -ge 64 ] && [ $2 -le 29809 ]; then - echo `shuf -i 64-$2 -n 1` `shuf -i 0-524288 -n 1` 8 4096 1 + echo `shuf -i 64-$2 -n 1` `shuf -i 0-524288 -n 1` 8 1 else - echo `shuf -i 64-29809 -n 1` `shuf -i 0-524288 -n 1` 8 4096 1 + echo `shuf -i 64-298...
bash
d_bash_9915
--- +++ @@ -8,4 +8,5 @@ export TITAN=true # Default PROJECT for CANDLE -export PROJECT=${PROJECT:-CSC249ADOA01} +#export PROJECT=${PROJECT:-CSC249ADOA01} +export PROJECT=${PROJECT:-MED106}
bash
d_bash_9916
--- +++ @@ -12,7 +12,10 @@ *) test -f re2/obj/libre2.a && exit 0 - (test -d re2 || git clone https://code.googlesource.com/re2) + (test -d re2 || + git clone https://code.googlesource.com/re2 && + cd re2 && + git checkout 2016-02-01) CXXFLAGS="-Wall -O3 -fPIC -pthread -m$ER...
bash
d_bash_9917
--- +++ @@ -10,5 +10,5 @@ for BRANCH in $BRANCHES; do git --git-dir=$WORKING_DIR/.git show $BRANCH:upper-constraints.txt \ 2>/dev/null > /tmp/upper-constraints.txt || true - pip wheel -r /tmp/upper-constraints.txt -w $WHEELHOUSE_DIR || true + pip --verbose wheel -r /tmp/upper-constraints.txt -w ...
bash
d_bash_9918
--- +++ @@ -20,7 +20,7 @@ # Install base system, fstab, grub pacstrap /mnt base base-devel -genfstab -p /mnt >> /mnt/etc/fstab +genfstab -pU /mnt >> /mnt/etc/fstab pacstrap /mnt grub-bios # Keyboard, locale, time
bash
d_bash_9919
--- +++ @@ -3,9 +3,11 @@ mkdir -p build cd build -# temporary workaround for issue https://github.com/conda-forge/vtk-feedstock/issues/86 -find ${PREFIX}/lib/cmake/vtk-8.2/ -type f -print0 | xargs -0 \ - sed -i 's#/home/conda/feedstock_root/build_artifacts/vtk_.*_build_env/x86_64-conda_cos6-linux-gnu/sysroot/u...
bash
d_bash_9920
--- +++ @@ -1,4 +1,5 @@ alias reload!='. ~/.zshrc' +alias gobl="cd ~/Programming/brightline" alias goreef='cd ~/Programming/brightline/reef' alias wds='webpack-dev-server'
bash
d_bash_9921
--- +++ @@ -20,5 +20,5 @@ mkdir $1/lux fi -cp -v lux/*.lua $1/lux +cp -v lux/*.lua lux/externals/*.lua $1/lux
bash
d_bash_9922
--- +++ @@ -10,7 +10,7 @@ cd ./sandbox echo "gem 'spree', :path => '..'" >> Gemfile -echo "gem 'spree_auth_devise', :github => 'spree/spree_auth_devise', :branch => 'master'" >> Gemfile +echo "gem 'spree_auth_devise', :github => 'spree/spree_auth_devise', :branch => '2-4-stable'" >> Gemfile cat <<RUBY >> Gemfi...
bash
d_bash_9923
--- +++ @@ -14,5 +14,8 @@ cd $CURRENT_DIR # Move it over to the rails /public directory and install deps mkdir public/ -p +mkdir public/app -p +mkdir public/app-resources -p + cp -R /tmp/farmbot_frontend/app/* public/app cp -R /tmp/farmbot_frontend/app-resources/* public/app-resources
bash
d_bash_9924
--- +++ @@ -1,6 +1,8 @@ #!/bin/sh -# Make symlinks and other minor changes +mkdir ~/tmp + +# General symlinks rm /etc/lxdm/lxdm.conf ln -s ~/Documents/dotfiles/lxdm /etc/lxdm/lxdm.config rm ~/.Xmodmap @@ -11,13 +13,18 @@ ln -s ~/Documents/dotfiles/.inputrc ~/.inputrc rm ~/.xinitrc ln -s ~/Documents/dotfiles/...
bash
d_bash_9925
--- +++ @@ -11,6 +11,9 @@ echo "See the Console for a detailed traceback." else echo "$1 Error" - echo "MacPython 2.3 is required to run this application."; - echo "ERRORURL: http://homepages.cwi.nl/~jack/macpython/index.html Visit the MacPython Website"; + + # Usage: ERRORURL <anURL> <a button label>, this is u...
bash
d_bash_9926
--- +++ @@ -1,5 +1,12 @@ #!/bin/sh export PATH=vendor/bin:$PATH +if [[ -z $1 ]] +then + export VERSION="" +else + export VERSION="-$1" +fi + DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) cd $DIR && cd ../ if [[ ! -d "build/phar" ]] @@ -17,7 +24,7 @@ \$stub = <<<EOF <?php if (class_exists('Phar')) {...
bash
d_bash_9927
--- +++ @@ -4,9 +4,12 @@ DEPLOY_KEY="bin/travis_deploy" function setupDeployKey() { + echo "Decrypting deploy key..." openssl aes-256-cbc -K ${encrypted_0b4868dc32b1_key} -iv ${encrypted_0b4868dc32b1_iv} -in ${DEPLOY_KEY}.enc -out ${DEPLOY_KEY} -d + chmod 600 ${DEPLOY_KEY} eval `ssh-agent -s` ssh-add $...
bash
d_bash_9928
--- +++ @@ -11,5 +11,5 @@ cp ./_target/deps/mathlib/scripts/mk_all.sh ./_target/deps/minif2f/lean/scripts/mk_all.sh bash ./_target/deps/minif2f/lean/scripts/mk_all.sh leanproject get-mathlib-cache -cd _target/deps/minif2f && leanproject get-mathlib-cache && cd ../../../ +# cd _target/deps/minif2f && leanproject ge...
bash
d_bash_9929
--- +++ @@ -1,13 +1,14 @@ # If the tm command is called without an argument, open TextMate in the current directory # If tm is passed a directory, cd to it and open it in TextMate -# If tm is passed a file, open it in TextMate +# If tm is passed anything else (i.e., a list of files and/or options), pass them all al...
bash
d_bash_9930
--- +++ @@ -12,8 +12,8 @@ if [ "$failed" = "true" ]; then echo "Tests failed!" - return 1; + false else echo "All tests passed!" - return 0; + true fi
bash
d_bash_9931
--- +++ @@ -55,6 +55,7 @@ if $push_to_git; then cd $home_dir + echo "Pushing to Git..." git add . git commit -m "$timestamp : Automatic backup" git push
bash
d_bash_9932
--- +++ @@ -12,3 +12,9 @@ alias za='zathura' alias less='/usr/share/vim/vim74/macros/less.sh' alias vim='vim -p' + + +# http://stackoverflow.com/questions/6918057 +list-subdir-by-files() { + find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n +}
bash
d_bash_9933
--- +++ @@ -2,29 +2,27 @@ tmux new-session -s devices -n "devices" -d tmux split-window -h -p 50 -tmux send-keys "ping 10.0.0.13" Enter +tmux send-keys "ping 10.0.0.40" Enter tmux split-window -v -p 80 -tmux send-keys "ping 10.0.0.30" Enter +tmux send-keys "ping 10.0.0.41" Enter tmux split-window -v -p 80 -tmux...
bash
d_bash_9934
--- +++ @@ -24,8 +24,8 @@ "src/plugins/cpptemplate/"*.cpp \ "src/plugins/directoryvalue/"*.cpp \ "src/plugins/mini/mini.c" \ - "src/plugins/yamlcpp/"*.{c,cpp} \ - "src/plugins/yamlsmith/"*.{c,cpp} \ + "src/plugins/yamlcpp/"*.cpp \ + "src/plugins/yamlsmith/"*.cpp \ "src/plugins/yanlr/"*.cpp exit_if_fail "OCLi...
bash
d_bash_9935
--- +++ @@ -2,7 +2,10 @@ set -e -echo "y" | android update sdk --no-ui --filter platform-tools,tools,build-tools-20.0.0,android-18,addon-google_apis-google-18,extra-android-support +echo "y" | android update sdk --no-ui --filter platform-tools,tools +echo "y" | android update sdk --no-ui --filter build-tools-20....
bash
d_bash_9936
--- +++ @@ -9,7 +9,8 @@ fi # Resetting conf file on each startup -cp /opt/fluentd/fluent.conf /etc/fluent.conf +cat > /opt/fluentd/generatedconf.d/generated-loggly-output.conf <<_EOF_ +_EOF_ loggly_tag="fluentdloggly" @@ -24,10 +25,10 @@ fi if [ -n "${LOGGLY_TOKEN}" ]; then - cat >> /etc/fluent/fluent.c...
bash
d_bash_9937
--- +++ @@ -9,4 +9,4 @@ # 4 param is the launch file # Following params are the roslaunch arguments -ssh -t -t $1 'export ROS_MASTER_URI=http://'$2':11311/; zsh -o HUP -c "roslaunch '${@:2}'"' +ssh -t -t $1 'export ROS_MASTER_URI=http://'$2':11311/; zsh -o HUP -c "roslaunch '${@:3}'"'
bash
d_bash_9938
--- +++ @@ -13,9 +13,9 @@ tests/peloton_logging_test -t $tuples -b $thread_number -c $do_check tests/peloton_logging_test -t $tuples -b $thread_number -c $do_check -r 1 echo "-----------test with $tuples, thread $thread_number, ON $file_dir------------------" - tests/aries_logging_test -t $tuples -b $thread...
bash
d_bash_9939
--- +++ @@ -2,6 +2,9 @@ # Configuration variables WEBDAV_DOMAIN="$(basename -- "$0" .sh)" +WEBDAV_USER="user" +WEBDAV_PASS="pass" +WEBDAV_MOUNT="/tmp" # Disable Gzip as it does not work on Windows cat <<EOT > "/srv/vhost/${WEBDAV_DOMAIN}" @@ -14,10 +17,10 @@ --restart=always \ --name="$WEBDAV_DOMAIN...
bash
d_bash_9940
--- +++ @@ -8,3 +8,6 @@ # emacs style bindkey '^a' beginning-of-line bindkey '^e' end-of-line + +# Reduce <ESC> lag from 0.4s (default) to 0.1 seconds +export KEYTIMEOUT=1
bash
d_bash_9941
--- +++ @@ -28,12 +28,6 @@ fi } -distro=`whichdistro` -if [[ $distro == "debian" ]];then - setup_gnome_terminal_config -elif [[ $distro == "redhat" ]];then - setup_gnome_terminal_config -elif [[ $distro == "arch" ]];then - setup_urxvt -fi +setup_urxvt +
bash
d_bash_9942
--- +++ @@ -4,7 +4,7 @@ echo "Starting Server" redis-server /etc/redis.conf --appendonly yes --daemonize yes --dir /var/redis rm -f celeryd.pid - python3 -m celery --detach -s /opt/schedule.db -b redis://localhost:6379/0 --concurrency=4 -B -A datapackage_pipelines.app -Q datapackage-pipelines -l INF...
bash
d_bash_9943
--- +++ @@ -1,21 +1,22 @@ # Print header row: -header=$(cat data/*/*/*.hs_metrics | head -q -n 7 | tail -n 1 | tr "\t" ",") +firstfile=$(ls -d data/*/*/*hs_metrics | head -1) +header=$(cat $firstfile | head -q -n 7 | tail -n 1 | tr "\t" ",") echo -e "SAMPLE_ID,PROJECT,"$header # For each sample: for folder in $...
bash
d_bash_9944
--- +++ @@ -14,9 +14,16 @@ mv "$file" "$(echo "$file" | sed s/--/-/)" done aws s3 sync ./ s3://hhvm-downloads/homebrew-bottles/ --exclude '*' --include '*.bottle.tar.gz' -git pull --rebase -brew bottle --merge --keep-old --write --no-commit *.json -git add hhvm-nightly.rb -git commit -m "update bottle for nightl...
bash
d_bash_9945
--- +++ @@ -20,6 +20,6 @@ value="${value%"${value##*[![:space:]]}"}" # Remove trailing whitespaces alias $key=$value -done < ${0:a:h}/abbreviations +done < "${0%/*}/abbreviations" unset __CGITC_CMD
bash
d_bash_9946
--- +++ @@ -19,7 +19,8 @@ for i in n1 n2 n3 n4 n5; do - scp $i:/onyx.log store/latest/onyx-$i.log; + mkdir store/latest/$i"_logs" + scp $i:/onyx.log\* store/latest/$i"_logs"/; scp $i:/myrecording.jfr store/latest/recording-$i.jfr; scp $i:/peers-out.log store/latest/peers-out-$i.log; done
bash
d_bash_9947
--- +++ @@ -3,7 +3,7 @@ su -c "apt-get update \ && apt-get upgrade -y" -if [ ! -d ${Home}/.mozilla ] +if [ ! -d $HOME/.mozilla ] then firefox -CreateProfile default \ && su -c "apt -y install /src/GBPCEFwr64.deb" \
bash
d_bash_9948
--- +++ @@ -1,7 +1,11 @@ #!/bin/sh -# Obtain the SRPM -yumdownloader --source shibboleth +# Download specific Shibboleth version or just the latest version +if [ "$_SHIBBOLETH_VERSION" ]; then + yumdownloader --source "shibboleth-$_SHIBBOLETH_VERSION" +else + yumdownloader --source shibboleth +fi # Insta...
bash
d_bash_9949
--- +++ @@ -8,7 +8,7 @@ fi BUCKET=$1 -TFVERSION=1.8 +TFVERSION=1.15 REGION=us-central1 # directory containing trainer package in Docker image @@ -30,6 +30,7 @@ --scale-tier=STANDARD_1 \ --config=hyperparam.yaml \ --runtime-version=$TFVERSION \ + --python-version=3.7 \ --stream-logs \ -- \ -...
bash
d_bash_9950
--- +++ @@ -2,7 +2,6 @@ HOST=$1 COUNT=${2-2000} -TIMEOUT=300 PROJECT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}")/../ && pwd) CHANNEL_ID=foo SALT=common @@ -21,8 +20,9 @@ echo "Channel path: $HOST/c/$CHANNEL_ID" ws_path="$(echo $HOST | sed 's/^http/ws/g')/channels/$CHANNEL_ID" +thor=$PROJECT_DIR/node_modules/th...
bash
d_bash_9951
--- +++ @@ -7,7 +7,7 @@ if hash zeus 2>/dev/null && [ -e .zeus.sock ]; then RAILS_RUN='zeus r' else - RAILS_RUN='rails runner' + RAILS_RUN='bundle exec rails runner' fi
bash
d_bash_9952
--- +++ @@ -1,15 +1,17 @@ #!/bin/bash cd $HOME +sudo add-apt-repository -y ppa:upubuntu-com/office sudo apt-get update -y -sudo apt-get install -y libreoffice -sudo apt-get install -y libreoffice-writer -sudo apt-get install -y libreoffice-calc -sudo apt-get install -y libreoffice-impress -sudo apt-get install -y ...
bash
d_bash_9953
--- +++ @@ -18,5 +18,9 @@ docker build -t $IMAGE -f Dockerfile.qemu . rm Dockerfile.qemu -# Push image -docker push $IMAGE +# Test image +docker run --rm $IMAGE apt-get check -qq +if [ $? -eq 0 ]; then + # Push image + docker push $IMAGE +fi
bash
d_bash_9954
--- +++ @@ -1,3 +1,3 @@ mv .git/objects/pack/pack-*.pack . cat pack-*.pack | git unpack-objects -rm -r pack-*.pack +rm -f pack-*.pack
bash
d_bash_9955
--- +++ @@ -1,6 +1,9 @@ #!/bin/bash set -e + +# Clear out old results +rm *junit.xml export PR_BRANCH_BASE=$(git show-branch --sha1-name --current --merge-base origin/$ghprbTargetBranch) echo "$PR_BRANCH_BASE..$ghprbActualCommit" @@ -14,14 +17,17 @@ exit 0 fi +JOBIMAGE="$BUILD_TAG:$ghprbActualCommit" +J...
bash
d_bash_9956
--- +++ @@ -21,6 +21,7 @@ eval iv=\$encrypted_${SSH_KEY_TRAVIS_ID}_iv mkdir -p ~/.ssh +chmod 700 .ssh openssl aes-256-cbc -K $key -iv $iv -in $SCRIPT_PATH/id_rsa.enc -out ~/.ssh/id_rsa -d chmod 600 ~/.ssh/id_rsa
bash
d_bash_9957
--- +++ @@ -6,6 +6,8 @@ alias b="bundle" # run bundle alias dev="cd $HOME/Dev" # go to the dev directory + +alias serve="python -m SimpleHTTPServer" d() { if [[ -n "$1" ]]; then
bash
d_bash_9958
--- +++ @@ -9,7 +9,8 @@ bash ./test_meteor_app.sh bash ./test_meteor_app_with_devbuild.sh -bash ./test_bundle_local_mount.sh +# I don't believe it's possible for this test to work right now. +# bash ./test_bundle_local_mount.sh # These use BUNDLE_URL from S3 bash ./test_bundle_web.sh
bash
d_bash_9959
--- +++ @@ -19,6 +19,8 @@ cd $ANSIBLE_ROOT trap "rm -f /var/www/html/cron-logs/ansible_${playbook}_latest.log; ln -s $logfile /var/www/html/cron-logs/ansible_${playbook}_latest.log" EXIT +date >> $logfile 2>&1 git pull >> $logfile 2>&1 ansible-galaxy install -r requirements.yml >> $logfile 2>&1 ansible-playboo...
bash
d_bash_9960
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -e -docker login -u "$DOCKER_USER" -p "$DOCKER_PASSWORD" +docker login -e "$DOCKER_EMAIL" -u "$DOCKER_USER" -p "$DOCKER_PASSWORD" docker pull rabblerouser/rabblerouser-core docker build -t rabblerouser/rabblerouser-core backend
bash
d_bash_9961
--- +++ @@ -20,8 +20,9 @@ date >path2/file2 test_expect_success \ 'git-ls-files --others to show output.' \ - 'git-ls-files --others >.output' -cat >.expected <<EOF + 'git-ls-files --others >output' +cat >expected <<EOF +output path0 path1 path2/file2 @@ -29,5 +30,5 @@ test_expect_success \ 'g...
bash
d_bash_9962
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -KEYWORDS_CPROGRAMMING="\bC program|\bin C|\bC language$" +KEYWORDS_CPROGRAMMING="\bC program|\bin C\b|\bC language" KEYWORDS_CPROGRAMMING_ALL="$KEYWORDS_CPROGRAMMING" if [ "$1" == "" ];
bash
d_bash_9963
--- +++ @@ -42,6 +42,8 @@ source "$commands[virtualenvwrapper_lazy.sh]" fi +export SCIKIT_LEARN_DATA="$HOME/.scikit_learn_data" + # # Aliases #
bash
d_bash_9964
--- +++ @@ -4,5 +4,10 @@ source ./env.sh && \ vagrant up && \ - vagrant ssh && \ + vagrant ssh + +# Use this to guard so that the bash env won't get started again and again +if [ -z "$STARTED" ]; then + export STARTED=1 /bin/bash # add this so that typing `exit` can exit the VM and go back to th...
bash
d_bash_9965
--- +++ @@ -21,3 +21,7 @@ git commit -m "Dummy" --allow-empty git checkout feature_two 2> /dev/null git checkout master 2> /dev/null + +# Create base configuration +git config --local --add switch.count 9 +git config --local --add switch.order modified
bash
d_bash_9966
--- +++ @@ -2,7 +2,7 @@ BASEDIR=/oss/Abendstern_WGL32 SRVDIR=/programmes/cpp/abendstern/srv/abendstern/package -FILES="apply_update.bat Abendstern.exe abendstern.rc data fonts shaders images legal tcl library itcl3.4 tls1.6 tcllib bin" +FILES="apply_update.bat Abendstern.exe abendstern.default.rc data fonts shade...
bash
d_bash_9967
--- +++ @@ -1,6 +1,8 @@ #!/bin/sh # This script expects you to have llvm-mingw set up beforehand. # You can get it here: https://github.com/mstorsjo/llvm-mingw + +set -e ffmpeg_version="4.3.2" @@ -9,15 +11,15 @@ then curl https://ffmpeg.org/releases/ffmpeg-"${ffmpeg_version}".tar.xz | tar xfJ - fi -cd ...
bash
d_bash_9968
--- +++ @@ -23,6 +23,7 @@ install_cask keybase install_cask postman install_cask slack +install_cask vlc echo "Installing Quick Look plugins..."
bash
d_bash_9969
--- +++ @@ -8,3 +8,7 @@ cd $HOME/OSEHRA git clone git://github.com/OSEHR/M-Tools.git cd M-Tools +cd "Utilities XT_7.3_81 not yet released" +pwd +# Remove the top two lines +sed -i.bak -e '1,2 d' XT_7-3_81_TESTVER9.KID
bash
d_bash_9970
--- +++ @@ -3,3 +3,5 @@ fi export PATH=$PATH:$DOTFILES_HOME/shell/powerline/scripts export TERM=screen-256color +# On login use ascii +[ "$(ps -o comm= $PPID)" == "login" ] || [ "$(tmux display-message -p '#S')" == "login" ] && export POWERLINE_CONFIG_OVERRIDES="common.default_top_theme=ascii"
bash
d_bash_9971
--- +++ @@ -2,13 +2,12 @@ # continuous integration test script # run this from the top-level source directory -OGG_PATH=/srv/jenkins/jobs/libogg/workspace VIDEOS=/usr/local/share/videos ./autogen.sh -CFLAGS='-O2 -g' ./configure --enable-assertions --enable-check-asm --enable-logging --enable-accounting PKG_CO...
bash
d_bash_9972
--- +++ @@ -28,7 +28,7 @@ # Install homebrew first if ! hash brew > /dev/null 2>&1 ; then - ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew doctor fi
bash
d_bash_9973
--- +++ @@ -1,5 +1,6 @@ alias la="ls -lA" +alias fs="foreman start" alias be="bundle exec" alias manage="python manage.py"
bash
d_bash_9974
--- +++ @@ -1,3 +1,5 @@ -python3 daily-market-report.py > /tmp/out-temp.html -wkhtmltopdf /tmp/out-temp.html /tmp/market-report.pdf -python3 copy-market-report.py +#! /bin/bash + +/usr/local/bin/python3 daily-market-report.py > /tmp/out-temp.html +/usr/local/bin/wkhtmltopdf /tmp/out-temp.html /tmp/market-report.pdf +...
bash
d_bash_9975
--- +++ @@ -11,7 +11,7 @@ elif [ "$TRAVIS_OS_NAME" == "linux" ]; then mkdir build && cd build - if [ "$COMPILER" == "clang++" ]; then + if [ "$COMPILER" == "clang++-3.6" ]; then cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_CXX_FLAGS="-stdlib=libc++" .. else cmake -DCMAKE_CXX_COMPILER=$COMPILER ..
bash
d_bash_9976
--- +++ @@ -3,3 +3,7 @@ jagen_sdk='hi-linux' jagen_shell='/bin/bash' + +jagen_sdk_staging_dir="${jagen_sdk_dir:?}/pub/rootbox" + +export KDIR="$jagen_src_dir/hi-kernel"
bash
d_bash_9977
--- +++ @@ -8,5 +8,6 @@ alias gb='git branch' alias gba='git branch -a' +# source: http://coderwall.com/p/euwpig?i=3&p=1&t=git +alias glg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" -
bash
d_bash_9978
--- +++ @@ -2,14 +2,14 @@ RandomNumber() { typeset -r floor=$1 typeset -r range=$2 - typeset -i number=0 #initialize + typeset -i number=0 while [ "$number" -le $floor ] do number=$RANDOM - let "number %= $range" # Scales $number down within $RANGE. + # Scales $number down within $range. ...
bash
d_bash_9979
--- +++ @@ -16,7 +16,7 @@ ;; esac -scp -i /keys/infrastructure.pem docker/containers/$INSTANCE_NAME ubuntu@po.tater.io:/tmp +scp -i /keys/infrastructure.pem docker/containers/tater/$INSTANCE_NAME ubuntu@po.tater.io:/tmp export remote_ssh="ssh -i /keys/infrastructure.pem ubuntu@po.tater.io" $remote_ssh "su...
bash
d_bash_9980
--- +++ @@ -19,14 +19,15 @@ fi done -BASEDIR=$(dirname $SCRIPT) +BASEDIR=$(dirname "$SCRIPT") -CP=$BASEDIR/../src/clj/:\ -$BASEDIR/../classes/ -for j in $BASEDIR/../lib/*.jar; do +CP="$BASEDIR"/../src/clj/:\ +"$BASEDIR"/../classes/ +for j in "$BASEDIR"/../lib/*.jar; do CP=$CP:$j done -java -cp $CP reply...
bash
d_bash_9981
--- +++ @@ -3,6 +3,7 @@ if [ "$_python_version" == "2.6.6" ] then pip install -r pyinstaller-requirements-2.6.txt + pip uninstall jinja2 else pip install -r pyinstaller-requirements.txt fi
bash
d_bash_9982
--- +++ @@ -17,7 +17,7 @@ sudo sed -ri 's/KrbMethodK5Passwd off/KrbMethodK5Passwd on/' /etc/httpd/conf.d/ipa.conf sudo rm -rf /home/$USER/.ipa/alias -sudo mkdir /home/$USER/.ipa/alias +sudo mkdir -p /home/$USER/.ipa/alias sudo echo $PASSWORD > /home/$USER/.ipa/.dmpw sudo cp /etc/httpd/alias/*.db /home/$USER/....
bash
d_bash_9983
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash echo "Trying to access the backend on localhost" -curl localhost:8081 +curl localhost:8081/simple-mon/test
bash
d_bash_9984
--- +++ @@ -7,4 +7,6 @@ git checkout tags/4.9.385.33 gclient sync --with_branch_heads --jobs 16 sed -i '' "s/'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x'/& ,'CLANG_CXX_LIBRARY': 'libc++'/" build/standalone.gypi +sed -i '' "/cctest.gyp/d" build/all.gyp +sed -i '' "/unittests.gyp/d" build/all.gyp make native
bash
d_bash_9985
--- +++ @@ -27,6 +27,7 @@ # React Support apm install language-babel +apm install language-javascript-jsx apm install react-snippets # Markdown Support
bash
d_bash_9986
--- +++ @@ -6,6 +6,7 @@ cd $SCRIPTSDIR/.. # generate docs +rm -rf build mkdir -p build cd build cmake ..
bash
d_bash_9987
--- +++ @@ -4,6 +4,7 @@ SIP_ADDRESS=$1 +DISPLAY_NAME="${2:-Meeting Room}" CONFIG_FILE=/home/jibri/pjsua.config @@ -19,6 +20,7 @@ pjsua \ --capture-dev=$CAPTURE_DEV \ --playback-dev=$PLAYBACK_DEV \ + --id "$DISPLAY_NAME <sip:jibri@127.0.0.1>" \ --config-file $CONFIG_FILE --log-file=$L...
bash
d_bash_9988
--- +++ @@ -11,9 +11,10 @@ wget --backups=0 ${link} done - IFS=" " read -a deb_pkgs <<< $(ls ./ | egrep -o "mongo.+\.deb") + IFS=" " read -a deb_pkgs <<< $(ls ./ | egrep "\.deb") for pkg in ${deb_pkgs[@]} do + echo "Extracting ${pkg}..." dpkg-deb -R ${pkg} ./ done ...
bash
d_bash_9989
--- +++ @@ -22,16 +22,14 @@ exit 1 fi - echo -e "\033[31mUpdating $pkg...\033[0m" - git checkout master >> /dev/null 2>&1 || { echo "failed to update $pkg" touch $tmp_dir/failed exit 1 } - git pull --rebase >> /dev/null 2>&1 || { - echo "failed to up...
bash
d_bash_9990
--- +++ @@ -17,6 +17,6 @@ ./net.sh setup -nice -n 10 ./bin/wshd --run ./run --lib ./lib --root ./mnt --title "wshd: $id" \ +./bin/wshd --run ./run --lib ./lib --root ./mnt --title "wshd: $id" \ 1> ./run/wshd.out.log \ 2> ./run/wshd.err.log
bash
d_bash_9991
--- +++ @@ -20,7 +20,8 @@ git remote add origin $repo git fetch origin git checkout $git_hash - sbt/sbt clean publish-local + sbt/sbt clean assembly + sbt/sbt publish-local popd # Pre-packaged spark version:
bash
d_bash_9992
--- +++ @@ -18,6 +18,10 @@ # # To run, you must first `apt-get install bibtex2html`. +# Fail on errors, even within a pipeline. +set -e +set -o pipefail + readonly OUTPUT_FILE=PUBLICATIONS.md echo -e "# List of publications using Lingvo.\n" > ${OUTPUT_FILE}
bash
d_bash_9993
--- +++ @@ -7,6 +7,7 @@ export BIN=applications echo "Mise à jour système" +echo "Please use root password" su root -c 'pacman -Syu' echo "Mise à jour Dotfiles"
bash
d_bash_9994
--- +++ @@ -4,7 +4,7 @@ } function morning { - vagrant reload c1867d8 + vagrant resume c1867d8 echo 'sleeping 15' sleep 5 echo 'sleeping 10'
bash
d_bash_9995
--- +++ @@ -12,11 +12,15 @@ } #echo "configure export plugin for ZSH" +jenv_emulate=`emulate` +emulate zsh + typeset -ag chpwd_functions if [[ -z $chpwd_functions[(r)_jenv_export_hook] ]]; then chpwd_functions+=_jenv_export_hook; fi +emulate $jenv_emulate #export
bash
d_bash_9996
--- +++ @@ -1,10 +1,4 @@ #!/bin/bash set -eux -# aws-cli -apt-get -y install python-pip -pip install --upgrade --user awscli -ln -s /usr/local/bin/aws ~/.local/bin/aws - -# jq -apt-get install jq +apt-get install awscli jq
bash
d_bash_9997
--- +++ @@ -18,17 +18,6 @@ echo -e "Creating minikube cluster locally ${RED}(takes up to 10 minutes)${NC}" minikube delete || echo "Ignoring delete for non existed minikube cluster" -minikube --vm-driver virtualbox --memory 8192 --cpus 4 start --insecure-registry=registry-all.docker.ing.net - -hostIp=$(minikube s...
bash
d_bash_9998
--- +++ @@ -7,7 +7,7 @@ this_script=`basename "$0"` -apt-get install git cmake vim swig i2c-tools libi2c-dev ntpdate minicom --assume-yes +apt-get install git cmake vim swig i2c-tools libi2c-dev ntpdate minicom python3.4-dev --assume-yes # Initial setup of i2c for the Chronodot, remapping of the UART on Pi3 ...
bash
d_bash_9999
--- +++ @@ -2,7 +2,7 @@ conda update -q conda # Useful for debugging any issues with conda conda info -a -conda create -q -n pymola python=3.5 numpy scipy sympy coverage matplotlib gcc cython +conda create -q -n pymola python=3.5 numpy scipy sympy coverage coveralls matplotlib gcc cython source activate pymola #...
bash