document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_13700
--- +++ @@ -14,6 +14,8 @@ git add data/* -f git add build/** -f git add _data/* -f +git add examples/compiled/*.png -f +git add site/examples/*.md -f # commit if things changed if [ -n "$(git status --porcelain)" ]; then
bash
d_bash_13701
--- +++ @@ -21,3 +21,9 @@ echo -n " capture" /usr/site/etc/capture.rc fi + +if [ -x /usr/testbed/sbin/reload_daemon ]; then + echo -n " reloadd" + /usr/testbed/sbin/reload_daemon +fi +
bash
d_bash_13702
--- +++ @@ -23,7 +23,7 @@ # Install docker wget -qO- https://get.docker.com/ | sudo sh sudo usermod -a -G docker ${USER} - service docker start + sudo service docker restart fi # TODO make sure docker works as expected
bash
d_bash_13703
--- +++ @@ -2,6 +2,8 @@ set -e if [[ "$*" == npm*start* ]]; then + npm install --production + chown -R app "$NODE_CONTENT" set -- gosu app "$@"
bash
d_bash_13704
--- +++ @@ -6,6 +6,7 @@ if [ -e "/etc/profile.d/modules.sh" ]; then source /etc/profile.d/modules.sh module load matlab + module load zeromq/3.2.4 fi echo "Starting Matlab..."
bash
d_bash_13705
--- +++ @@ -1,7 +1,6 @@ apps=( alfred atom - cornerstone dash dropbox firefox @@ -11,13 +10,11 @@ google-chrome google-chrome-canary google-drive - hiarcs-chess-explorer iterm2 kaleidoscope mou opera screenflow - sonos sourcetree spo...
bash
d_bash_13706
--- +++ @@ -7,3 +7,4 @@ make sudo make install echo zend_extension=~/.phpenv/versions/$(phpenv version-name)/lib/php/extensions/no-debug-non-zts-20090626/xcache.so > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xcache.ini +cat ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xcache.ini
bash
d_bash_13707
--- +++ @@ -3,13 +3,16 @@ set -e set -x -if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then - PEP8="python3 /usr/lib/python3/dist-packages/pep8.py" - PYLINT=/usr/bin/pylint3 -else +# Commented out py3 specific apps until #2442/3 resolved: +# https://github.com/travis-ci/apt-package-whitelist/issues +#if [[ $TRAVIS_PYT...
bash
d_bash_13708
--- +++ @@ -13,11 +13,15 @@ "${taito_plugin_path}/util/use-context.sh" if [[ ${pod} != *"-"* ]]; then - pod=$(kubectl get pods | grep "${taito_project}" | grep "${pod}" | \ - head -n1 | awk '{print $1;}') + # Short pod name was given. Determine the full pod name. + pod=$(kubectl get pods | grep "${taito_pro...
bash
d_bash_13709
--- +++ @@ -1,4 +1,5 @@ #!/usr/bin/env bash echo 'Started. See import_all_country.log for progres...' +truncate -s 0 data/logs/all.log time find data/cache/country_data -type f -name '*_12.xlsm' ! -name '~$*' -print -exec date --iso-8601=seconds \; -exec php htdocs/index.php import jmp {} \; &> import_all_countr...
bash
d_bash_13710
--- +++ @@ -26,7 +26,12 @@ set -ex -aclocal +if [ "x`uname -s`" = "xFreeBSD" ] ; then + # Ask DES + aclocal -I /usr/local/share/aclocal +else + aclocal +fi libtoolize --copy --force autoheader automake --add-missing --copy --foreign
bash
d_bash_13711
--- +++ @@ -7,10 +7,8 @@ pkg_source=nosuchfile.tar.gz pkg_upstream_url="https://github.com/habitat-sh/core-plans" pkg_deps=( + ${pkg_deps[@]} core/go -) -pkg_build_deps=( - ${pkg_deps[@]} core/git core/gcc core/make
bash
d_bash_13712
--- +++ @@ -4,4 +4,5 @@ source $SCRIPTPATH/inc/pkgupdate.sh sudo apt-get -y dist-upgrade +sudo apt-get -y autoremove sudo apt-get -y autoclean
bash
d_bash_13713
--- +++ @@ -14,4 +14,11 @@ cp $scalatest/$scalatest.jar . rm -rf $scalatest $tmp fi -cd $scriptDir + +if [ ! -e scala-library.jar ]; then + scalaDir=$(dirname $(which scala))/../ + echo >&2 "Scala found at $scalaDir" + jar=$scalaDir/lib/scala-library.jar + echo >&2 "Copying scala library from $jar for ...
bash
d_bash_13714
--- +++ @@ -7,6 +7,6 @@ find -type f -name "*.tex" | while read file; do output="$1/"$(basename "$file" .tex) echo "Converting file ${file} to ${output}.pdf" - pdflatex -jobname="$output" -halt-on-error "$file" | grep -a3 ^! + xelatex -jobname="$output" -halt-on-error "$file" | grep -a3 ^! clean...
bash
d_bash_13715
--- +++ @@ -8,6 +8,6 @@ mkdir -p build-binary pushd build-binary - /opensuse-cf-binary-builder/bin/binary-builder --name="${NAME}" --version="${VERSION}" --sha256="${SHA256}" - /opensuse-cf-fs2/bin/sha1stamp ./*.tar.gz + ../opensuse-cf-binary-builder/bin/binary-builder --name="${NAME}" --version="${VERSION}" -...
bash
d_bash_13716
--- +++ @@ -20,8 +20,6 @@ export R3S_CONFIGS="/redfin/r3s/conf" -export DEBUG="rf:*" - LOGDIR=/redfin/r3s/logs echo "Starting R3S..." echo "Logging to: $LOGDIR/r3s.log"
bash
d_bash_13717
--- +++ @@ -13,11 +13,12 @@ export PATH="$GEM_HOME/bin:$GEM_ROOT/bin:$RUBY/bin:$TEST_PATH" chruby_use "$TEST_RUBY" - chruby_reset } test_chruby_reset() { + chruby_reset + assertNull "RUBY was not unset" "$RUBY" assertNull "RUBY_ENGINE was not unset" "$RUBY_ENGINE" assertNull "RUBY_VERSION ...
bash
d_bash_13718
--- +++ @@ -5,12 +5,18 @@ source /root/auth # get an image to test with -wget http://uec-images.ubuntu.com/releases/11.10/release/ubuntu-11.10-server-cloudimg-amd64-disk1.img +#wget http://uec-images.ubuntu.com/releases/11.10/release/ubuntu-11.10-server-cloudimg-amd64-disk1.img # import that image into glance ...
bash
d_bash_13719
--- +++ @@ -9,4 +9,12 @@ else git fetch --unshallow ||: git fetch --tags ||: + + # When copying the source from a working directory that has been configured for + # a local system it is possible to have values in the configure cache that will + # causue the Docker build to fail. The root cause her...
bash
d_bash_13720
--- +++ @@ -1,7 +1,22 @@ #!/bin/bash +while getopts ":t:" o; do + case "${o}" in + t) + t=${OPTARG} + echo "found!" + ;; + *) + echo "not found!" + usage + ;; + esac +done + +shift $(($OPTIND - 1)) + if [ "$#" -ne 1 ]; then - echo: "USAGE: $0 environment_name...
bash
d_bash_13721
--- +++ @@ -5,7 +5,6 @@ CURRENT_COMMIT=$(git rev-parse HEAD) curl --request POST --form "token=$CI_JOB_TOKEN" --form ref=master \ --form variables[ORIG_CI_BUILD_REF]=$CURRENT_COMMIT \ - --form variables[ORIG_CI_BUILD_REF_NAME]=$CI_BUILD_REF_NAME \ --form variables[ROOT_LAYOUT_TYPE]=extras \ --form...
bash
d_bash_13722
--- +++ @@ -2,22 +2,24 @@ set -euox pipefail -mkdir -p go export GOPATH="$(pwd)/go" export PATH="$PATH:$GOPATH/bin" +PACKAGE_PATH="github.com/mssun/gopenpgp" +GOPENPGP_REVISION="gnu-dummy" +OUTPUT_PATH="$GOPATH/dist" + +mkdir -p "$GOPATH" + go get -u golang.org/x/mobile/cmd/gomobile || true gomobile init -...
bash
d_bash_13723
--- +++ @@ -17,6 +17,7 @@ handbrakecli # CLI for Handbrake. keka # Archive extraction and creation. slack # Chat client for teams. + telegram # Telegram messaging client. vagrant # Development environment virtual mac...
bash
d_bash_13724
--- +++ @@ -24,7 +24,7 @@ # create scss test mkdir -p tests/css -./build/bin/node-sass --output tests/css core/css +cat core/css/variables.scss core/css/*.scss | ./build/bin/node-sass > tests/css/combined.css KARMA="$PREFIX/node_modules/karma/bin/karma"
bash
d_bash_13725
--- +++ @@ -11,3 +11,15 @@ make_npx_alias json2yaml make_npx_alias pushstate-server make_npx_alias yaml2json + +function get_last_modified_js_file_recursive() { + find . -type d \( -name node_modules -o -name .git \) -prune -o -type f \( -name '*.js' -o -name '*.jsx' \) -print0 \ + | xargs -0 stat -f '%m %N' \...
bash
d_bash_13726
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash java -jar compiler.jar \ ---js_output_file=../js/jquery.presentr.min.js \ +--js_output_file=../jquery.presentr.min.js \ --compilation_level=SIMPLE_OPTIMIZATIONS \ ---js=../js/jquery.presentr.js +--js=../jquery.presentr.js
bash
d_bash_13727
--- +++ @@ -11,14 +11,35 @@ ########################### # Alias +# CAT, GREP + alias y='"$GREP" -i' alias n='"$GREP" -vi' +alias c='cat' +alias w='cat >' +alias a='cat >>' + +# XARGS + alias x='xargs' + alias xy='xargs "$GREP" -i' alias xn='xargs "$GREP" -iv' +alias xc='xargs cat' +alias xw='xargs cat >'...
bash
d_bash_13728
--- +++ @@ -3,4 +3,4 @@ git fetch docker run --rm -e ZULIP_CLI_TOKEN -v ~/.config:/home/akvo/.config -v "$(pwd)":/app \ - -it akvo/akvo-devops:20201203.085214.79bec73 promote-test-to-prod.sh rsr rsr-version akvo-rsr zulip "Everest Engine" + -it akvo/akvo-devops:20201203.085214.79bec73 promote-test-to-prod.sh rs...
bash
d_bash_13729
--- +++ @@ -25,6 +25,10 @@ sleep 10 done +# cleanup docker network checkpoint to avoid running into known issue +# of docker (https://github.com/docker/docker/issues/18283) +rm -rf /var/lib/docker/network + /etc/init.d/docker start echo "waiting 30s for startup"
bash
d_bash_13730
--- +++ @@ -7,7 +7,7 @@ # # Run ./set-defaults.sh and you'll be good to go. -# Disable press-and-hold for keys in favor of key repeat +# Disable press-and-hold for keys in favor of key repeat. defaults write -g ApplePressAndHoldEnabled -bool false # Use AirDrop over every interface. srsly this should be a def...
bash
d_bash_13731
--- +++ @@ -5,3 +5,6 @@ cargo bench --verbose cargo test --verbose --manifest-path=macros/Cargo.toml + +# Build test for the serde feature +cargo build --verbose --features "serde"
bash
d_bash_13732
--- +++ @@ -3,10 +3,10 @@ case "$1" in java8) - echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u302-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.tar.gz" + echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u322-b06/OpenJDK8U-jdk_x64_linux_hotspot_8u322b06.tar...
bash
d_bash_13733
--- +++ @@ -7,7 +7,7 @@ cd "${BUILD_DIRECTORY}" -make +sh Build.sh cp ./mksh "$DDIR/$TARGET/mksh" cd "$DDIR"
bash
d_bash_13734
--- +++ @@ -1,5 +1,6 @@ #!/bin/bash set -eu +readonly SCRIPT_DIR=$(dirname $0) # This script kicks off the ./bin/docker-extension in the # background and disowns it with nohup. This is a workaround @@ -10,4 +11,46 @@ # and yet still reports its progress through '.status' files to # the extension system. -no...
bash
d_bash_13735
--- +++ @@ -11,9 +11,9 @@ function publishImage { echo "Publishing images to Docker Hub..." echo "The images on the host:" - # for master, will use 'dev' as the tag name + # for main, will use 'dev' as the tag name # for release-*, will use 'release-*-dev' as the tag name, like release-v1.8.0-de...
bash
d_bash_13736
--- +++ @@ -1,5 +1,5 @@ -repo init -u https://github.com/omnirom/android.git -b android-7.1 && \ -repo sync -j16 -f --no-clone-bundle +repo init -u https://github.com/omnirom/android.git -b android-7.1 --depth=1 && \ +repo sync -j8 -c -f --no-clone-bundle export USE_CCACHE=1 /android/omni/prebuilts/misc/linux-x86/c...
bash
d_bash_13737
--- +++ @@ -15,7 +15,7 @@ set -x vagrant ssh -c "tar cvpzf ~/${tarball_name} -C ~/chef-bcpc \ - --exclude=bins/apt_key.* --exclude=Release.gpg \ + --exclude=bins/apt_key.* --exclude=bins/Release.gpg \ bins vendor/bootstrap vendor/cache gemfiles" | log_pretty vagrant ssh -c "cp -fv ~/${tarball_name} \...
bash
d_bash_13738
--- +++ @@ -3,10 +3,10 @@ JDK_FEATURE=10 TMP=$(curl -L jdk.java.net/${JDK_FEATURE}) # extract most recent "JDK_BUILD" number from web page source... -TMP="${TMP#*Most recent build: jdk-${JDK_FEATURE}-ea+}" # remove everything before the number +TMP="${TMP#*Most recent build: jdk-${JDK_FEATURE}+}" # r...
bash
d_bash_13739
--- +++ @@ -13,9 +13,9 @@ echo "Building latest docs (2.x branch HEAD)" env DOCS_VERSION=latest sphinx-build -a docs/ docs/public/en/latest/ -if [ -n "${TAG_NAME}" ] && [[ "$TAG_NAME" =~ ^2\.[0-9]+(\.[0-9]+)?$ ]]; then +if [ -n "${TAG_NAME}" ] && [[ "$TAG_NAME" =~ ^v2\.[0-9]+(\.[0-9]+)?$ ]]; then echo "Build...
bash
d_bash_13740
--- +++ @@ -14,7 +14,7 @@ mkdir repo/github cd repo/github -sudo apt-get install git htop clang gdb build-essentials && +sudo apt-get -qq install git git-core htop clang gdb build-essential nikto nmap cloc && git clone https://github.com/severalgh/scripts.git &&
bash
d_bash_13741
--- +++ @@ -1,7 +1,9 @@ brew install caskroom/cask/brew-cask apps=( + blender dropbox + firefox google-chrome slack seil
bash
d_bash_13742
--- +++ @@ -18,7 +18,7 @@ #common/preprocess_corpus.py data-prep/text/text.orig.xz | common/count_words.py | grep -v "[0-9]" > data/text/topwords mkdir -p data/text/split -common/preprocess_corpus.py data-prep/text/text.orig.xz | xzcat | split -l 100000 --numeric-suffixes=1000 -a4 - data/text/split/ +common/prepr...
bash
d_bash_13743
--- +++ @@ -14,7 +14,7 @@ for node in $(cat $HOME/address_nodes) do echo "FuzzVM: $node" - cat $IMAGE | bzip2 | ssh $node "bunzip2 | docker load;"; + cat $IMAGE | ssh $node "gunzip | docker load;"; done echo "Removing image from bastion."
bash
d_bash_13744
--- +++ @@ -11,3 +11,6 @@ mysql -h ${myhost} -P ${myport} -u ${myuser} ${mydb} < sql/schema.sql mysql -h ${myhost} -P ${myport} -u ${myuser} ${mydb} < sql/dummy_users.sql mysql -h ${myhost} -P ${myport} -u ${myuser} ${mydb} < sql/dummy_log.sql + +mysql -h ${myhost} -P ${myport} -u ${myuser} ${mydb} -e "ALTER TABLE...
bash
d_bash_13745
--- +++ @@ -13,4 +13,5 @@ create user "$USER" password '$PASS'; create schema "$SCHEMA" authorization "$USER"; grant all privileges on schema "$SCHEMA" to "$USER"; +alter user "$USER" set search_path to "$SCHEMA"; EOF
bash
d_bash_13746
--- +++ @@ -13,7 +13,12 @@ alias xstop='sudo nginx -s stop' alias xstatus='ps aux | grep nginx' alias xps='xstatus' + alias xtraffic='goaccess -f /usr/local/var/log/nginx/access.log' +alias xaccess='less /usr/local/var/log/nginx/access.log' +alias xerror='less /usr/local/var/log/nginx/error.log' +alias faccess='t...
bash
d_bash_13747
--- +++ @@ -23,7 +23,7 @@ _gibo() { - local_repo="$HOME/.gitignore-boilerplates" + local_repo=${GIBO_BOILERPLATES:-"$HOME/.gitignore-boilerplates"} if [ -e "$local_repo" ]; then compadd -M 'm:{[:lower:]}={[:upper:]}' $( find "$local_repo" -name "*.gitignore" -exec basename \{\} .gitignore \; )...
bash
d_bash_13748
--- +++ @@ -1,8 +1,9 @@ # The rest of my fun git aliases +alias ga='git add' alias gl='git pull --prune' alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" alias gp='git push origin HEAD' -alias gd='git diff' +ali...
bash
d_bash_13749
--- +++ @@ -2,7 +2,7 @@ # use conneg to request N-Triples as the preferred format -curl -f -s -G \ +curl -f -v -G \ -H "Accept: application/n-triples" \ "${BASE_URL}graphs/name/" \ | rapper -q --input nquads --output nquads /dev/stdin - \
bash
d_bash_13750
--- +++ @@ -6,7 +6,7 @@ set -o nounset set -o errexit -DOTFILES=( gemrc gitconfig gvimrc inputrc irbrc pryrc tmux.conf vimrc zshrc ) +DOTFILES=( curlrc gemrc gitconfig gvimrc inputrc irbrc pryrc tmux.conf vimrc zshrc ) SSH_CONFIG=ssh_config abort() {
bash
d_bash_13751
--- +++ @@ -1,13 +1,13 @@ #!/bin/sh echo "\033[1;81m Running test_time_stack_item...\033[0m" -ruby test_time_stack_item.rb || (echo "FAILED!!!!!!!!!!!!") +ruby -I../lib test_time_stack_item.rb || (echo "FAILED!!!!!!!!!!!!") echo "\033[1;81m Running test_timecop_without_date...\033[0m" -ruby test_timecop_withou...
bash
d_bash_13752
--- +++ @@ -2,7 +2,7 @@ export PROJECTS="$HOME/_" # editor program -export EDITOR='mvim' +export EDITOR='vim' #osx color terminal export CLICOLOR=1
bash
d_bash_13753
--- +++ @@ -11,7 +11,7 @@ eval "$(ssh-agent -s)" #start the ssh agent ssh-add .travis/id_rsa - gulp cd:pushAndRun + gulp cd elif [ $TRAVIS_BRANCH = "staging" ]; then echo "Deploying to staging and testing"
bash
d_bash_13754
--- +++ @@ -12,7 +12,7 @@ exit 0 fi -sudo pip3 install gsutil +sudo pip install gsutil mkdir -p ~/.creds openssl aes-256-cbc -K $encrypted_2210a3652f18_key -iv $encrypted_2210a3652f18_iv -in travis/travis-ci.json.enc -out ~/.creds/travis-ci.json -d echo "[Credentials]" > ~/.boto
bash
d_bash_13755
--- +++ @@ -38,3 +38,6 @@ cat dist/OneSignalSDKUpdaterWorker.js >> temp_file2.js mv temp_file.js dist/OneSignalSDKWorker.js mv temp_file2.js dist/OneSignalSDKUpdaterWorker.js + +echo "copy index.html to 404.html (github pages 404 hack)" +cp dist/index.html dist/404.html
bash
d_bash_13756
--- +++ @@ -19,7 +19,7 @@ read -p "You're about to add a WIP commit, do you want to run the CI? [y|n] " -n 1 -r < /dev/tty echo if echo $REPLY | grep -E '^[Nn]$' > /dev/null; then - echo "[skip ci]" >> $1 + sed -i '1,1s,.*,[ci skip] &,' $1 fi fi
bash
d_bash_13757
--- +++ @@ -7,7 +7,7 @@ git clone https://github.com/facebook/folly cd folly/folly git fetch -git checkout v0.32.0 +git checkout v0.37.0 autoreconf --install ./configure
bash
d_bash_13758
--- +++ @@ -11,7 +11,7 @@ echo "Checked out config."; else echo "Backing up pre-existing dot files."; - cfg checkout 2>&1 | egrep "^[[:space:]]" | awk '$1=$1' |\ + cfg checkout 2>&1 | sed 's/^M//g' | egrep "^[[:space:]]" | awk '$1=$1' |\ while read -r file do te...
bash
d_bash_13759
--- +++ @@ -1,14 +1,14 @@ +find . -type f -name "*.pl" | xargs sed -i.bak 's/usr\/bin\/perl/usr\/bin\/env perl/g' +find . -type f -name "*.pm" | xargs sed -i.bak 's/usr\/local\/bin\/perl/usr\/bin\/env perl/g' +find . -type f -name "*.sh" | xargs sed -i.bak 's/usr\/bin\/perl/usr\/bin\/env perl/g' + +cd $SRC_DIR/kmer +...
bash
d_bash_13760
--- +++ @@ -2,4 +2,4 @@ virtualenv -p python3 env . env/bin/activate pip install -r requirements.txt -python manage.py create_local_settings.py +python create_local_settings.py
bash
d_bash_13761
--- +++ @@ -2,4 +2,4 @@ WORKSPACE=$1 cd $WORKSPACE -nosetests test/integration/TestIM.py test/integration/TestREST.py test/integration/TestREST_JSON.py -v --stop --with-xunit --with-timer --timer-no-color --with-coverage --cover-erase --cover-xml --cover-package=IM +nosetests test/integration/TestREST_JSON.py tes...
bash
d_bash_13762
--- +++ @@ -1,10 +1,16 @@ #!/usr/bin/env bash + +set -e + +[ "$DEBUG" == 'true' ] && set -x # Generate Host keys ssh-keygen -A -# Fix permissions -mkdir -p ~/.ssh && chown -R root:root ~/.ssh && chmod 700 ~/.ssh/ && chmod 600 ~/.ssh/* +# Fix permissions, if writable +if [ -w ~/.ssh ]; then + chown -R root:r...
bash
d_bash_13763
--- +++ @@ -21,5 +21,8 @@ gem install rake-compiler rake hoe rice chunky_png cairo apt-get -y install libmapnik=2.3.0* mapnik-utils=2.3.0* libmapnik-dev=2.3.0* mapnik-input-plugin*=2.3.0* + +# change to the test-kitchen directory +cd /tmp/kitchen/data/ make clean make test
bash
d_bash_13764
--- +++ @@ -8,7 +8,7 @@ exit 0 else conda remove -q qt pyqt - conda install -q qt=4.* pyqt=4.* + conda install -q -c conda-forge qt=4.* pyqt=4.* fi python qtpy/tests/runtests.py
bash
d_bash_13765
--- +++ @@ -20,6 +20,6 @@ fi if [ "$(git rev-parse --abbrev-ref HEAD)" = "master" ]; then - git tag ${IMAGE_NAME_BASE}:${SHA_SUM_SETUP} ${IMAGE_NAME_BASE}:master - git push ${IMAGE_NAME_BASE}:master + docker tag ${IMAGE_NAME_BASE}:${SHA_SUM_SETUP} ${IMAGE_NAME_BASE}:master + docker push ${IMAGE_NAME_B...
bash
d_bash_13766
--- +++ @@ -10,6 +10,11 @@ echo "Tryna run cc" cc --version +echo "/usr/bin/c++ is: $(readlink /usr/bin/c++)" + +echo "Tryna run c++" +c++ --version + python -m pip install --no-deps --ignore-installed .
bash
d_bash_13767
--- +++ @@ -15,6 +15,7 @@ "$CODE_DEV_CONFIG" \ "$CODE_OSS_CONFIG" do + mkdir -p "$CONFIG_DIR" for JSON_FILE in "settings.json" "keybindings.json" do rm -rf "$CONFIG_DIR/$JSON_FILE"
bash
d_bash_13768
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # The current directory is a mounted volume, and is owned by the # user running Docker on the host machine under linux (inc docker-machine). #
bash
d_bash_13769
--- +++ @@ -3,7 +3,7 @@ if ! test -f "$HOME/.local/bin/stack" then - URL='https://www.stackage.org/stack/linux-x86_64' + URL='https://github.com/commercialhaskell/stack/releases/download/v1.6.5/stack-1.6.5-linux-x86_64.tar.gz' curl --location "$URL" --output stack.tar.gz gunzip stack.tar.gz tar --extra...
bash
d_bash_13770
--- +++ @@ -1,5 +1,8 @@ #!/bin/bash -e curl -sL "<%= @url %>" > vagrant.deb +for i in $(find /usr /opt /home /var -ipath '*/.vagrant.d'); do + rm -rf "${i}" +done dpkg -i --force-confold vagrant.deb ln -sf /opt/vagrant/bin/vagrant /usr/local/bin/vagrant
bash
d_bash_13771
--- +++ @@ -8,6 +8,6 @@ rm -rf $AGC_PATH/ pick_de_novo_otus.py -i $FASTA -o $AGC_PATH -p code/agc.params.txt -R -e "source('code/biom_to_list.R'); shared_to_list('$AGC_PATH/otu_table.biom')" +R -e "source('code/biom_to_list.R'); biom_to_list('$AGC_PATH/otu_table.biom')" rm -rf $AGC_PATH/
bash
d_bash_13772
--- +++ @@ -2,5 +2,5 @@ for i in $( ls ./test/correct ); do echo ".: Testing: $i" - python3 -OO main.py -i ./test/correct/$i + python3 main.py -i ./test/correct/$i done
bash
d_bash_13773
--- +++ @@ -5,6 +5,11 @@ DAVICAL_VERSION="`head -n1 VERSION`" DB_VERSION="`grep 'SELECT new_db_revision' dba/davical.sql | cut -f2 -d'(' | cut -f1-3 -d,`" +AWL_VERSION="`head -n1 ../awl/VERSION`" +if [ -z "${AWL_VERSION}" ] ; then + AWL_VERSION="`grep 'want_awl_version' htdocs/always.php | cut -f2 -d= | cut -f1 ...
bash
d_bash_13774
--- +++ @@ -9,7 +9,7 @@ # install wrapper script cp $RECIPE_DIR/mobster.py $outdir/mobster.py chmod +x $outdir/mobster.py -ln -r -s $outdir/mobster.py $PREFIX/bin/mobster +ln -s $outdir/mobster.py $PREFIX/bin/mobster # copy jar cp target/MobileInsertions-$PKG_VERSION.jar $outdir/
bash
d_bash_13775
--- +++ @@ -7,7 +7,7 @@ echo echo -n 'Connecting...' -res=$(curl -ks --data-urlencode "email=${email}&pwd=${psswd}" \ +res=$(curl -ks --data-urlencode "email=${email}" --data-urlencode "pwd=${psswd}" \ 'https://gface.com/api/-text/auth/login.json') echo "$res" | grep 'fail' && exit 1
bash
d_bash_13776
--- +++ @@ -5,9 +5,4 @@ set -o pipefail echo "Extracting cf-acceptance-tests from cf-release" - -pushd cf-release/src/github.com/cloudfoundry/cf-acceptance-tests/ - git cherry-pick cb1a27ee39f4e91fd6fe394314bd0808b2a53f5e --no-commit -popd - rsync -a cf-release/src/github.com/cloudfoundry/cf-acceptance-tests/ cf...
bash
d_bash_13777
--- +++ @@ -1,8 +1,8 @@ #!/bin/bash set -eu -# EXTRACT R2 SH -# Extract R2s +# EXTRACT STATS SH +# Extract stats: r2, mse, mae # Provide a directory full of model.logs THIS=$( readlink --canonicalize $( dirname $0 ) ) @@ -14,15 +14,28 @@ DIR - ${*} # The output of this script, a plottable file -...
bash
d_bash_13778
--- +++ @@ -9,8 +9,8 @@ # Read what gets written on stderr, and eventually perform manual adjustments then: # psql < update_descriptions.sql -# PhantomJS binary to use -PHANTOMJS="/opt/phantomjs/bin/phantomjs" +# PhantomJS binary to use. It can be overidden by setting the variable in your environment. +[ -z "$P...
bash
d_bash_13779
--- +++ @@ -1,3 +1,4 @@ #!/usr/bin/env bash set -euf -o pipefail +gpg -q --fast-import scripts/codesigning.asc mvn deploy -Psign-source-javadoc --settings scripts/ci-settings.xml -DskipTests=true
bash
d_bash_13780
--- +++ @@ -13,3 +13,7 @@ # Disable the Network Manager systemctl stop NetworkManager.service systemctl disable NetworkManager.service + +# Enable the firewall, blocking all ports except for port 22 (SSH) +ufw allow ssh +ufw --force enable
bash
d_bash_13781
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -ev -if [ -d "${HOME}/libsodium" ]; then +if [ -d "${HOME}/libsodium/lib" ]; then exit 0; fi
bash
d_bash_13782
--- +++ @@ -1,7 +1,7 @@ archweb_get_pkgbase() { local pkgbase - pkgbase=$(curl -Gs 'https://www.archlinux.org/packages/search/json/' --data-urlencode "q=$1" | + pkgbase=$(curl -LGs 'https://archlinux.org/packages/search/json/' --data-urlencode "q=$1" | jq -r --arg pkgname "$1" 'limit(1; .results[] | se...
bash
d_bash_13783
--- +++ @@ -1,4 +1,8 @@ #!/bin/sh + +print_cpu() { + echo -n "CPU: ${7}% User ${8}% Nice ${9}% Sys ${10}% Int ${11}% Idle " +} print_apm() { BAT_STATUS=$1 @@ -7,7 +11,7 @@ if [ $AC_STATUS -ne 255 -o $BAT_STATUS -lt 4 ]; then if [ $AC_STATUS -eq 0 ]; then - echo "on battery (${BAT_LEVEL}%)" + ...
bash
d_bash_13784
--- +++ @@ -14,7 +14,7 @@ do cat head.batch $X tail.batch > $X.qsub qsub $X.qsub -# rm $X.qsub $X + rm $X.qsub $X done rm $MAIN_TARGET.temp
bash
d_bash_13785
--- +++ @@ -13,6 +13,10 @@ pkg_include_dirs=(include Include) pkg_interpreters=(bin/python bin/python2 bin/python2.7) +do_prepare() { + sed -i.bak 's/#zlib/zlib/' Modules/Setup.dist +} + do_build() { ./configure --prefix=${pkg_prefix} \ --enable-shared
bash
d_bash_13786
--- +++ @@ -28,4 +28,4 @@ EOF # not essential but go get depends on it -which git || sudo apt-get install -y git +which git || sudo apt-get update && sudo apt-get install -y git
bash
d_bash_13787
--- +++ @@ -12,9 +12,9 @@ WD=$PWD if [ "$OSG_WN_TMP" != "" ]; then + SUBJECTS_DIR=`mktemp -d --tmpdir=$OSG_WN_TMP` +else SUBJECTS_DIR=`mktemp -d --tmpdir=$PWD` -else - SUBJECTS_DIR=`mktemp -d --tmpdir=$OSG_WN_TMP` fi cp $1_recon2_*.tar.xz $SUBJECTS_DIR cd $SUBJECTS_DIR @@ -24,8 +24,7 @@ tar xvaf...
bash
d_bash_13788
--- +++ @@ -8,7 +8,6 @@ bosh -u admin -p admin target $BOSH_LITE_TARGET ../gocd_scripts/replace_director_uuid.sh ../gocd_scripts/generate_warden_manifest.sh -bosh -n delete release cf bosh -n create release cf --force bosh login admin admin bosh -n upload release --skip-if-exists
bash
d_bash_13789
--- +++ @@ -12,8 +12,8 @@ docker load -i builder-image/builder.tgz pushd pack - echo "Building pack..." - go build -mod=vendor -o pack ./cmd/pack/main.go + echo "Unpacking pack..." + tar xvf pack*.linux.tgz pack -C ./ popd echo "Building test apps..."
bash
d_bash_13790
--- +++ @@ -1,4 +1,7 @@ #!/bin/bash + +command -v npm >/dev/null 2>&1 || { echo "NodeJS is not installed. It is required in order to run this application." >&2; exit 1; } +command -v python >/dev/null 2>&1 || { echo "Python is not installed. It is required in order to run this application." >&2; exit 1; } pip ins...
bash
d_bash_13791
--- +++ @@ -2,7 +2,7 @@ JEKYLL_SITE_PATH="/opt/var/jekyll/{{ jekyll_site_name }}" JEKYLL_CLONE_URI="{{ jekyll_source_url }}" -JEKYLL_BUILD_PATH="{{ jekyll_site_path}}" +JEKYLL_SERVE_PATH="{{ jekyll_site_path}}" # Does the Jekyll content path exist if [ ! -d "$JEKYLL_SITE_PATH" ] ; then @@ -20,12 +20,15 @@ fi...
bash
d_bash_13792
--- +++ @@ -12,6 +12,7 @@ # write some PHP; these scripts are downloaded beforehand as fileUris cp index.php /var/www/html/ cp do_work.php /var/www/html/ +chown www-data:www-data /var/www/html/* rm /var/www/html/index.html # restart Apache apachectl restart
bash
d_bash_13793
--- +++ @@ -4,5 +4,6 @@ sudo apt-get -qq install apt-transport-https build-essential \ ca-certificates checkinstall curl dnsutils git lsb-release \ mediainfo mediainfo-gui p7zip-full par2 sed gnupg2 zip \ -software-properties-common sqlite3 tar unzip wget dirmngr -y +software-properties-common sqlite3 tar unzip wg...
bash
d_bash_13794
--- +++ @@ -19,10 +19,10 @@ exit 2 fi -echo "Are you sure you want to deanonymize the files?" +echo "Are you sure you want to deanonymize the files? 'Yes' to continue." read reply if [[ ! "$reply" = "yes" ]]; then - echo "Exiting, finish your grading first!." + echo "Exiting, finish your grading first...
bash
d_bash_13795
--- +++ @@ -19,7 +19,7 @@ exit 1 fi -./validate-release-notes "$file_path" +/validate-release-notes "$file_path" title=$(jq --raw-output .pull_request.title "$GITHUB_EVENT_PATH") detail_url=$(jq --raw-output .pull_request.url "$GITHUB_EVENT_PATH")
bash
d_bash_13796
--- +++ @@ -3,7 +3,7 @@ declare -A aliases aliases=( - [1.6]='1 latest' + [1.7]='1 latest' ) cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
bash
d_bash_13797
--- +++ @@ -10,6 +10,7 @@ mkdir test && cd test echo 'It works!' > normal.txt +echo 'Με δουλέβει;' > 'κοινό.txt' ln -s normal.txt ln-normal.txt ln -s normal.txt ln-normal mkdir normal-dir
bash
d_bash_13798
--- +++ @@ -21,3 +21,8 @@ dub fetch doveralls dub run doveralls --compiler=${DC} fi + +# check for trailing whitespace (needs to be done only once per build) +if [ "$COVERAGE" = true ]; then + find . -type f -name '*.d' -exec grep -Hn "[[:blank:]]$" {} \; +fi
bash
d_bash_13799
--- +++ @@ -1,2 +1,9 @@ #!/bin/sh -pelican -r /srv/pelican/content -o /srv/pelican/output/ -s pelicanconf.py + +# Alternative to "pelican -r"'s polling: use inotify +while true; do + pelican /srv/pelican/content -o /srv/pelican/output/ -s pelicanconf.py + inotifywait -qqr --exclude "\#.*|.*~" -e close_write,mo...
bash