document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_14000
--- +++ @@ -5,9 +5,9 @@ export publish_cmd="publishLocal" -if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $(cat version.sbt) =~ "-SNAPSHOT" ]]; then - export publish_cmd="common/publish cats/publish dataset/publish dataframe/publish" -fi +# if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVI...
bash
d_bash_14001
--- +++ @@ -1 +1,5 @@ -runhaskell -Wall -itest:src test/test_runner.hs +#!/bin/sh + +cabal-dev configure --enable-tests --sandbox=sandbox +cabal-dev build +cabal-dev test
bash
d_bash_14002
--- +++ @@ -9,6 +9,6 @@ [ "$1" = "false" ] && exit 0 mkdir -p $STORAGE file="rabbitmq-server_$1-1_all.deb" -wget "http://www.rabbitmq.com/releases/rabbitmq-server/v$1/${file}" -O "${STORAGE}/${file}" +[ -f "${STORAGE}/${file}" ] || wget "http://www.rabbitmq.com/releases/rabbitmq-server/v$1/${file}" -O "${STORAGE}/...
bash
d_bash_14003
--- +++ @@ -12,7 +12,7 @@ # fetch blink # Chromium code with Blink checked out to tip-of-tree # fetch android # Chromium checkout for Android platform # fetch ios -fetch chromium +fetch blink gclient sync cd src # Makes branch Aoi.
bash
d_bash_14004
--- +++ @@ -1,9 +1,4 @@ #!/bin/sh -if (pgrep chrome); then - echo "!! Google Chrome is currently running." >&2; - echo "!! Cannot continue." >&2; - exit 1; -fi # CRX addon mkdir -p src build
bash
d_bash_14005
--- +++ @@ -1,7 +1,7 @@ export NVM_VERSION=0.39.0 export NODE_VERSION=14.18.1 export NPM_VERSION=6.14.15 -export RUBY_VERSION=2.6.3 +export RUBY_VERSION=2.6.0 export COCOAPODS_VERSION=1.11.2 export GRADLE_VERSION=7.1.1
bash
d_bash_14006
--- +++ @@ -36,7 +36,7 @@ make yarnconfig # Enable the lightweight X11 display manager -systemctl enable --now lxdm.service +systemctl enable lxdm.service # Revoke privileges sudo -K
bash
d_bash_14007
--- +++ @@ -8,7 +8,7 @@ cd "$dir" \ && echo 'apps = [' >$apps \ - && find . -name index.html | cut -c3- | sed 's/...........$/",/' | sed 's/^/"/' | tr -d '\n' >>$apps \ + && find . -name meta.txt | cut -c3- | sed 's/.........$/",/' | sed 's/^/"/' | tr -d '\n' >>$apps \ && echo '];' >>$apps \ &...
bash
d_bash_14008
--- +++ @@ -26,6 +26,6 @@ # yes | mk-build-deps -i ${SRC_DIR}/debian/control pushd ${SRC_DIR} - debuild -us -uc -b > debuild.log + DEB_BUILD_OPTIONS='nocheck parallel=6' debuild -us -uc -b > debuild.log popd cp greenplum-db*.deb deb_package_ubuntu16/greenplum-db.deb
bash
d_bash_14009
--- +++ @@ -17,5 +17,7 @@ cd -- "${root}" rm -rf build "$PYTHON" setup.py build - BAYESDB_WIZARD_MODE=1 ./pythenv.sh "$PYTHON" "$PY_TEST" "$@" + export BAYESDB_DISABLE_VERSION_CHECK=1 + export BAYESDB_WIZARD_MODE=1 + ./pythenv.sh "$PYTHON" "$PY_TEST" "$@" )
bash
d_bash_14010
--- +++ @@ -1,6 +1,7 @@ #!/usr/bin/env bash NODE_ENV=development budo src/index.js:js/main.js --live \ + --open \ --host localhost \ --dir static \ --pushstate \
bash
d_bash_14011
--- +++ @@ -4,7 +4,7 @@ source ${THISDIR}/../../../common/functions.sh source ${THISDIR}/../include.sh -scl enable devassist09 - <<"EOF" +scl enable $INSTALL_SCLS - <<"EOF" set -ex workkingdir=$(mktemp -d /tmp/da-prj-XXXXXX) pushd $workkingdir
bash
d_bash_14012
--- +++ @@ -25,6 +25,6 @@ echo "New possibly dead methods" - diff -Naur "$OLD" "$NEW" + diff -Naur "$OLD" "$NEW" | grep '^+' fi
bash
d_bash_14013
--- +++ @@ -1,4 +1,7 @@ #!/usr/bin/env sh + +## Note: the following command will also set up a new role +## ansible-galaxy init roles/demo BASEDIR="$(cd "$(dirname "$0")"; pwd)" #echo "$BASEDIR"
bash
d_bash_14014
--- +++ @@ -34,4 +34,4 @@ bundle exec rake spec:development # Run application tests -vagrant ssh development --command "cd /vagrant/securedrop && ./manage.py test" +vagrant ssh development --command "cd /vagrant/securedrop && pytest tests/"
bash
d_bash_14015
--- +++ @@ -24,9 +24,9 @@ # List directory contents alias lsa='ls -lah' -alias l='ls -la' -alias ll='ls -l' -alias la='ls -lA' +alias l='ls -lah' +alias ll='ls -lh' +alias la='ls -lAh' # Push and pop directories on directory stack alias pu='pushd'
bash
d_bash_14016
--- +++ @@ -1,7 +1,8 @@ if (( $+commands[tag] )); then tag() { command tag "$@" && source /tmp/tag_aliases_$USER 2>/dev/null } - alias ag="tag rg" - alias rg="tag rg" + alias ag="echo 'use s'" + alias s="tag rg" + alias rg="echo 'use s'" else alias ag=rg fi
bash
d_bash_14017
--- +++ @@ -9,7 +9,7 @@ install_mas_app 1176895641 'Spark' install_mas_app 1091189122 'Bear' install_mas_app 451640037 'Classic Color Meter' -install_mas_app 407963104 'Pixelmator' +install_mas_app 1289583905 'Pixelmator Pro' install_mas_app 409203825 'Numbers' install_mas_app 409201541 'Pages' install_mas_app ...
bash
d_bash_14018
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash +git submodule init +git submodule update mkdir tmp
bash
d_bash_14019
--- +++ @@ -5,7 +5,7 @@ versions=( */ ) versions=( "${versions[@]%/}" ) -downloadable=$(curl -sSL 'http://www.elasticsearch.org/downloads' | sed -rn 's/.*?http:\/\/www.elasticsearch.org\/downloads\/.-.-.\/\">Download v ([0-9]*\.[0-9]*\.[0-9]*)<.*/\1/gp') +downloadable=$(curl -sSL 'http://www.elasticsearch.org/dow...
bash
d_bash_14020
--- +++ @@ -1,10 +1,33 @@ #!/bin/sh -python3 --version -echo "Please make sure you are using python 3.6.x" +echo -n "Checking Python version... " +python -c 'import sys +print(sys.version) +assert sys.version_info[0:2] >= (3,6), \ +"""Please make sure you are using Python 3.6.x. +You ran with {}""".format(sys.vers...
bash
d_bash_14021
--- +++ @@ -19,7 +19,9 @@ --prefix=/ \ --enable-static \ cross_compiling=yes - sed -i 's|#define HAVE_GETRLIMIT 1|/* #undef HAVE_GETRLIMIT */|g' config.h + + # See https://stackoverflow.com/questions/4247068/sed-command-with-i-option-failing-on-mac-but-works-on-linux. + sed -i'' -e...
bash
d_bash_14022
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash +printf "WARNING: The generation of static keys and parameters may take several minutes, and will consume a considerable amount of processing power. If not favourable on a production machine, new keys can be generated elsewhere and copied over a secure connection." +read -rsp $'Pr...
bash
d_bash_14023
--- +++ @@ -1,4 +1,5 @@ +export FZF_DEFAULT_OPTS='--bind change:top --color=fg+:18,bg+:20,hl:3,hl+:94,border:19,header:15,info:19,prompt:8,spinner:24 --filepath-word' + if command -v fd &> /dev/null; then export FZF_DEFAULT_COMMAND='fd --hidden --type f' - export FZF_DEFAULT_OPTS='--bind change:top --color=fg+:1...
bash
d_bash_14024
--- +++ @@ -10,12 +10,12 @@ # https://docs.pivotal.io/pivotalcf/devguide/deploy-apps/blue-green.html # Update the blue app -cf unmap-route citizenship-appointment-beta-blue appointments.border.gov.au -cf push citizenship-appointment-beta-blue --no-hostname --no-manifest --no-route -p build/libs/citizenship-appoi...
bash
d_bash_14025
--- +++ @@ -5,6 +5,9 @@ ./script/install-all.sh +# Do this last to set default terminal to oh-my-zsh +env zsh -l + else echo "Sorry. I've only tested these on OSX"
bash
d_bash_14026
--- +++ @@ -23,4 +23,11 @@ export DEVSTACK_GATE_TEMPEST=1 export DEVSTACK_GATE_TEMPEST_FULL=0 +source $INSTALLDIR/devstack-gate/functions.sh +source $INSTALLDIR/devstack/functions-common +if is_ubuntu; then + apt_get update + install_package --force-yes linux-image-extra-`uname -r` +fi + $INSTALLDIR/devstack-g...
bash
d_bash_14027
--- +++ @@ -4,4 +4,4 @@ ./buildNoIntTests.sh #define the docker context as stroom-app/docker as this is where all the docker artefacts are, including the dockerfile -docker build --tag=gchq/stroom:v6.0.0-LOCAL-SNAPSHOT --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy stroom-app/docker/. +do...
bash
d_bash_14028
--- +++ @@ -8,17 +8,17 @@ @class PropsWriterUtil(){ disableProps(){ - local property=$(PropsUtil getProperty ${1} ${2}) + local property=$(${getProps} ${1} ${2}) if [[ ${property} && ! $(StringValidator beginsWith "#" ${property}) ]]; then - FileWriter replace ${1} ${property} \#${property} + ${r...
bash
d_bash_14029
--- +++ @@ -3,7 +3,7 @@ #One day / one line snapshot of tdb status for GLN AUs #echo "date,doesNotExist,expected,exists,manifest,doNotProcess,testing,notReady,ready,released,down,superseded,other" > ./progress_out.txt tpath="/home/$LOGNAME/tmp" -./scripts/tdb/tdbout -c status tdb/prod/*.tdb > $tpath/allstatus +./s...
bash
d_bash_14030
--- +++ @@ -4,5 +4,8 @@ # install java sudo yum install -y -q java-1.7.0-openjdk-devel.x86_64 -jvm="/usr/lib/jvm/java-1.7.0-openjdk.x86_64" + +jbinary=`realpath /etc/alternatives/java` +jvm=$(dirname $jbinary)/.. + echo "export JAVA_HOME=${jvm}" >> ~/.bashrc
bash
d_bash_14031
--- +++ @@ -11,5 +11,16 @@ env cat Gemfile.lock +# Use more detailed version information including packager.io build info. +if [ -z "${APP_PKG_ITERATION}" ] +then + echo "Error: could not find version information, aborting." + exit 1 +fi + +ZAMMAD_VERSION="$APP_PKG_VERSION-$APP_PKG_ITERATION" +echo "Setting VER...
bash
d_bash_14032
--- +++ @@ -1,3 +1,4 @@ #!/usr/bin/env bash # Fill in the path of the index.js file of the withExEditorHost. +# Replace "node" command to "nodejs" according to your environment. node /path/to/withexeditorhost/index.js
bash
d_bash_14033
--- +++ @@ -12,7 +12,7 @@ TAG="latest" fi - docker build -f docker-images/pipeline-dockerimage -t surli/repairnator:$TAG + docker build -t surli/repairnator:$TAG docker-images/pipeline-dockerimage docker push surli/repairnator:$TAG else echo "Nothing to deploy when on PR or other bran...
bash
d_bash_14034
--- +++ @@ -1,4 +1,4 @@ alias f='./flow' alias fsr='./flow server:run' alias ff='./flow flow:cache:flush' -alias fff='./flow flow:cache:flush --force' +alias fff='./flow flow:cache:flush --force && rm -rf Data/Temporary'
bash
d_bash_14035
--- +++ @@ -36,3 +36,5 @@ mate . open https://github.com/lgastako/${PROJECT_NAME} + +pip freeze > requirements.txt
bash
d_bash_14036
--- +++ @@ -8,5 +8,5 @@ # @ bg_size = 32 # @ queue -/usr/local/bin/mpirun -np 2 -exe `pwd`/mpi_ping -env "MPITRACE_ON=1 MPITRACE_MPI_COUNTERS_ON=1 MPTRACE_COUNTERS=PAPI_TOT_INS,PAPI_TOT_CYC,PNE_BGP_TORUS_XP_PACKETS,PNE_BGP_TORUS_XM_PACKETS,PNE_BGP_TORUS_YP_PACKETS,PNE_BGP_TORUS_YM_PACKETS,PNE_BGP_TORUS_ZP_PACKETS...
bash
d_bash_14037
--- +++ @@ -14,7 +14,7 @@ scrot -z "$lockbg" convert "$lockbg" -blur 0x5 "$lockbg" -convert "$lockbg" \( "$lockfg" -scale 77% -gravity center \) -composite -matte "$lockbg" +convert "$lockbg" \( "$lockfg" -scale 50% -gravity center \) -composite "$lockbg" setxkbmap us # change layout to us
bash
d_bash_14038
--- +++ @@ -5,5 +5,5 @@ set -o pipefail php bin/phpunit --coverage-html reports/coverage -php bin/phpcs +php bin/phpcs -p --colors --standard=PSR2 src php bin/phpmd src html cleancode,codesize,controversial,design,naming,unusedcode --reportfile reports/mess_detector.html
bash
d_bash_14039
--- +++ @@ -10,14 +10,13 @@ fi # Drop all users to get a fresh start -#mysql $dbconn < test/drop_users.sql +mysql $dbconn < test/drop_users.sql for svc in $SERVICES; do for dbenv in $DBENVS; do ( db="boulder_${svc}_${dbenv}" create_script="drop database if exists \`${db}\`; create database if not ex...
bash
d_bash_14040
--- +++ @@ -5,14 +5,15 @@ # Download the release-notes for our specific build curl -o release-notes.md "https://packages.chef.io/release-notes/${EXPEDITOR_PRODUCT_KEY}/${EXPEDITOR_VERSION}.md" -topic_title="Chef Server $EXPEDITOR_VERSION Released!" +topic_title="Chef Infra Server $EXPEDITOR_VERSION Released!" to...
bash
d_bash_14041
--- +++ @@ -1,5 +1,6 @@ #!/bin/bash -xe +yum clean all yum update -y --nogpg yum install -y --nogpg rpm-build git python-setuptools yum-utils python2-devel intltool make python-pip # temp deps
bash
d_bash_14042
--- +++ @@ -17,16 +17,23 @@ rsync -avz --delete httpdocs root@$SERVER:$TARGET/ ssh -l root $SERVER << EOF + +set -ex + # Install Pip dependency if needed if ! pip --version; then curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py - python get-pip.py + python3 get-pip.py fi cd $TARGET/servers/flask...
bash
d_bash_14043
--- +++ @@ -12,6 +12,6 @@ sleep 1 done -cd $tool_playbook +cd $tool_playbook_dir ansible-playbook tools.yml -i "localhost," echo ""
bash
d_bash_14044
--- +++ @@ -1,3 +1,8 @@ +if [[ "`uname`" == "Linux" ]] +then + export LDFLAGS="${LDFLAGS} -Wl,-rpath-link,${PREFIX}/lib" +fi + ./configure --prefix="$PREFIX" --with-gmp-prefix="$PREFIX" make -j$CPU_COUNT make check
bash
d_bash_14045
--- +++ @@ -20,6 +20,15 @@ upgrade_oh_my_zsh fi +# Check if Mac-CLI is installed +if [ ! -f "which mac" ]; then + echo 'Installing Mac-CLI' + /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install)" +else + echo 'Updating Mac-CLI' + /bin/sh -c ...
bash
d_bash_14046
--- +++ @@ -2,7 +2,7 @@ completions=($GOROOT/share/zsh/site-functions/go $GOROOT/misc/zsh/go) for completion in ${completions} do - if [[ -d $completion ]];then + if [[ -e $completion ]];then source $completion fi done
bash
d_bash_14047
--- +++ @@ -1,5 +1,5 @@ sudo apt-get install --allow-unauthenticated -qq clang-3.4 -# export CXXFLAGS="-std=c++0x -stdlib=libc++" +export CXXFLAGS="-std=c++0x -stdlib=libc++" svn co --quiet http://llvm.org/svn/llvm-project/libcxx/trunk libcxx cd libcxx/lib && bash buildit sudo cp ./libc++.so.1.0 /usr/lib/ @@ -8,4...
bash
d_bash_14048
--- +++ @@ -38,6 +38,14 @@ Logger logCompletedMsg } + deep_clean(){ + if [[ ${1} == 1 ]]; then + cd ${buildDir} + + git clean -fdqx + fi + } + local appServer=$(AppServerValidator returnAppServer $@) local branch=$(BaseVars returnBranch $@) local buildDir=$(BaseVars returnBuildDir ${branch})
bash
d_bash_14049
--- +++ @@ -1,7 +1,56 @@ #!/usr/bin/env bash if [ ! -e "/home/vagrant/.firstboot" ]; then - echo "ListenAddress 0.0.0.0" >> /etc/ssh/sshd_config - service ssh restart - touch /home/vagrant/.firstboot + + # Setup some nice TFB defaults + echo "export TFB_SERVER_HOST=127.0.0.1" >> ~/.bash_profile + echo "export...
bash
d_bash_14050
--- +++ @@ -8,8 +8,8 @@ exit fi -info "Installing zim" -git clone --recursive https://github.com/Eriner/zim.git ${ZDOTDIR:-${HOME}}/.zim +brew install zplug + echo $(which zsh) | sudo tee -a /etc/shells chsh -s $(which zsh) success "Installed and set up zsh."
bash
d_bash_14051
--- +++ @@ -2,5 +2,6 @@ echo "Running javascript tests" source "$HOME/.rvm/scripts/rvm" rvm use --default 1.9.2-p290 || exit 1 +bundle exec rake templates:create || exit 1 bundle exec jasmine-headless-webkit || exit 1 exit
bash
d_bash_14052
--- +++ @@ -6,7 +6,7 @@ $scriptDir/get_deps.sh METEOR_FLAGS="-XX:+UseCompressedOops -Xmx2g" -heap="$METEOR_FLAGS" # start with meteor heap size +flags="$METEOR_FLAGS" # start with meteor heap size for arg in "$@"; do if [[ "$arg" == "--metrics" ]]; then # We might not be using METEOR, so don't requ...
bash
d_bash_14053
--- +++ @@ -2,7 +2,7 @@ cat ponyup-init.sh | sh -s -export PATH=$HOME/.local/share/ponyup/bin:$PATH +export PATH=$HOME/.local/share/ponyup/bin:"/Users/runner/Library/Application Support/ponyup/bin":$PATH ponyup update ponyc nightly ponyup update changelog-tool nightly ponyup update corral nightly
bash
d_bash_14054
--- +++ @@ -6,5 +6,6 @@ exit fi cd /var/www/$1/ -git fetch ${2} +git remote set-url origin ${2} +git fetch git -c advice.detachedHead=false checkout ${3}
bash
d_bash_14055
--- +++ @@ -1,3 +1,7 @@ +#!/bin/sh + +set -eu + RUNTIME_NAME="python" CANDIDATE_NAME=`date +%Y-%m-%d_%H_%M`
bash
d_bash_14056
--- +++ @@ -1,4 +1,9 @@ #!/bin/bash + +# If we're on an SSH connection don't attempt to setup the gpg-agent: +if [ -z "${SSH_CONNECTION}" ]; then + exit 0 +fi # Set GPG TTY export GPG_TTY=$(tty)
bash
d_bash_14057
--- +++ @@ -2,6 +2,16 @@ TINC_TARGET="$@" TINC_DIR=/home/gpadmin/gpdb_src/src/test/tinc + +trap look4diffs ERR +function look4diffs() { + find "\${TINC_DIR}" -name *.diff -exec cat {} \; >> "\${TINC_DIR}/regression.diffs" + echo "==================================================================" + echo "The diff...
bash
d_bash_14058
--- +++ @@ -5,5 +5,5 @@ br--1.05--46.76 cn-+30.63-+122.07 de-+53.05-+8.73 it-+42.01-+12.50 jp-+35.69-+139.78 do - python -m json.tool < $(dirname $0)/library/src/test/resources/${d}.json > $(dirname $0)/library/src/test/resources/${d}-pretty.json + jq "." < $(dirname $0)/library/src/test/resources/${d}....
bash
d_bash_14059
--- +++ @@ -6,6 +6,7 @@ brew cask install adobe-photoshop-lightroom brew cask install adobe-photoshop-cc +brew cask install anki brew cask install atom brew cask install backblaze brew cask install cyberduck
bash
d_bash_14060
--- +++ @@ -7,4 +7,6 @@ $DIR/node_test.sh $DIR/analyze.sh $DIR/format.sh -$DIR/transformer_test.sh +# TODO(vsm/ochafik): Re-enable when this is addressed: +# https://github.com/dart-lang/dev_compiler/issues/458 +# $DIR/transformer_test.sh
bash
d_bash_14061
--- +++ @@ -30,12 +30,21 @@ exit 1 fi +if [ "$CMAKE" == "" ] +then + CMAKE="cmake" + if which cmake28 + then + CMAKE="cmake28" + fi +fi + DIR=`dirname $0` cd "$DIR" DIR=`pwd` mkdir -p build cd build -cmake -DCMAKE_INSTALL_PREFIX=/opt -DPYTHON="$PYTHON" ../.. +"$CMAKE" -DCMAKE_INSTALL_PREFIX=/opt -DPYTHON="...
bash
d_bash_14062
--- +++ @@ -10,7 +10,7 @@ # Set up variables for the programs that let us move their configuration files ## Readline -INPUTRC=${XDG_CONFIG_HOME}/readline/inputrc +export INPUTRC=${XDG_CONFIG_HOME}/readline/inputrc ## Screen export SCREENRC="${XDG_CONFIG_HOME}"/screen/screenrc
bash
d_bash_14063
--- +++ @@ -35,5 +35,5 @@ echo "Started Etherpad..." SCRIPTPATH=`pwd -P` -node $SCRIPTPATH/node_modules/ep_etherpad-lite/node/server.js $* +exec node $SCRIPTPATH/node_modules/ep_etherpad-lite/node/server.js $*
bash
d_bash_14064
--- +++ @@ -23,12 +23,15 @@ # Copy pre-existing dotfiles that would be overwritten into $DFP/backup # then symlink all the dotfiles -for F in *; do - if ! [[ ${EXCL[*]} =~ "$F" ]]; then - if [[ -f ~/.$F ]]; then - mv ~/.$F $DFP/backup/$F +for file in *; do + if ! [[ ${EXCL[*]} =~ "$file" ]]; then + ...
bash
d_bash_14065
--- +++ @@ -15,6 +15,7 @@ SYSNAME=$(uname -s) if [[ "${SYSNAME:0:5}" == "MINGW" ]]; then + # use "Visual Studio 9 2008" for VS 2008 cmake -G "Visual Studio 12" .. else cmake -G "Unix Makefiles" ..
bash
d_bash_14066
--- +++ @@ -5,7 +5,7 @@ cp ./screensaver.sh ./deb/64bit/usr/bin/screensaver echo "> Removing all deb files from ./deb/64bit directory ..." -rm ./deb/64bit/*.deb +rm -rf ./deb/64bit/*.deb echo "> Building deb file ..." dpkg -b deb/64bit/ deb/64bit/64-dev-release.deb
bash
d_bash_14067
--- +++ @@ -1,4 +1,5 @@ alias re="quilt refresh" +alias ref="quilt refresh" alias refresh="quilt refresh" alias ser="quilt series" alias series="quilt series"
bash
d_bash_14068
--- +++ @@ -5,8 +5,8 @@ } function prompt_char { - git branch >/dev/null 2>/dev/null && IS_GIT="1" && echo '±' && return - echo '$' + git branch >/dev/null 2>/dev/null && IS_GIT="1" && echo '± ' && return + echo '$ ' } function parse_git_branch() { @@ -26,12 +26,11 @@ } function git_prompt { - git branch ...
bash
d_bash_14069
--- +++ @@ -1,7 +1,10 @@ #!/bin/sh -python --version +python3 --version echo "Please make sure you are using python 3.6.x" + +solc --version +echo "Please make sure you are using solc 0.4.21" rm -rf ./tests/testdata/outputs_current/ mkdir -p ./tests/testdata/outputs_current/
bash
d_bash_14070
--- +++ @@ -24,3 +24,15 @@ # Save and reload the history after each command finishes #export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" + +function notify() { + local title="$1" + local subtitle="$2" + shift 2 + terminal-notifier -activate com.googlecode.iterm2 -title "$title" -subti...
bash
d_bash_14071
--- +++ @@ -14,6 +14,9 @@ echo "CKAN branch: $ckan_branch" git checkout $ckan_branch python setup.py develop +pip install --upgrade pip +pip install setuptools==18.5 + pip install -r requirements.txt --allow-all-external pip install -r dev-requirements.txt --allow-all-external cd -
bash
d_bash_14072
--- +++ @@ -21,8 +21,12 @@ find . -type f \! -name \*.map \! -name bootstrap.js \! -name bootstrap-theme.css \! -name bootstrap.css | while read file do name=$(echo "${file}"|sed 's|\.\/||') - echo -n "\"$name\": []byte(\"" - gzip -9 -c "${file}" | xxd -p | tr -d '\n' | sed 's/\(..\)/\\x\1/g' + # ...
bash
d_bash_14073
--- +++ @@ -12,6 +12,7 @@ docker build -t reaction-pics:production . docker stop reaction-pics || echo docker container prune --force --filter "until=336h" +docker container rm reaction-pics docker run --detach --restart always -p 127.0.0.1:5003:5003 \ --mount type=bind,source="$(pwd)"/tumblr/data,target=/ro...
bash
d_bash_14074
--- +++ @@ -11,7 +11,7 @@ # Git pager if [[ -x `which git` ]]; then - export GIT_PAGER="`which less`" + export GIT_PAGER=less fi # I am a lazy bum
bash
d_bash_14075
--- +++ @@ -14,8 +14,11 @@ #make mountpoint mkdir -p $HOME/kvalitetssystem -#Mount homer password should be in keychain -/sbin/mount_smbfs -N //ngi.transfer@homer.scilifelab.se/kvalitetssystem $HOME/kvalitetssystem +#export the password from the file `~/Library/Preferences/nsmb.conf` +export $(sed -n 2p /Users/ng...
bash
d_bash_14076
--- +++ @@ -6,6 +6,9 @@ echo "Must be run as stack user."; exit 1; fi + +sudo yum upgrade -y; +~/tripleo-util/update.sh; sudo virsh destroy instack || true; sudo virsh undefine instack || true;
bash
d_bash_14077
--- +++ @@ -41,7 +41,7 @@ apt-get install -y libmagickwand-dev imagemagick # Move to the /vagrant (shared) directory. -cd /vagrant +cd /vagrant/adopt-a-bike # Use bundler to manage (Ruby) dependencies bundle install
bash
d_bash_14078
--- +++ @@ -32,8 +32,8 @@ cd $WORKSPACE cd sasview python src/sas/qtgui/convertUI.py -python setup.py build docs -python setup.py install +python setup.py build docs install + # Pyinstaller cd $WORKSPACE
bash
d_bash_14079
--- +++ @@ -15,7 +15,6 @@ install_npm_pkg @typescript-eslint/parser install_npm_pkg @typescript-eslint/eslint-plugin install_npm_pkg http-server -install_npm_pkg grunt-cli install_npm_pkg vsce install_npm_pkg typescript install_npm_pkg ts-node
bash
d_bash_14080
--- +++ @@ -2,7 +2,7 @@ set -eux -versions=(1.6.0 1.7.0) +versions=(1.6.0 1.7.0 clojure-1.8.0-alpha1 clojure-1.8.0-alpha2) for i in ${versions[@]} do
bash
d_bash_14081
--- +++ @@ -5,6 +5,8 @@ fi MAVEN_REPO=$HOME/.m2/repository export MONO_PATH=/Developer/MonoTouch/usr/lib/mono/2.1 + +cd `dirname $0` echo "Converting Java bytecode to CLR dll..." rm -f tests-core.dll
bash
d_bash_14082
--- +++ @@ -21,6 +21,13 @@ echo 1 >error else echo 0 >error + NRUNS=`grep -i "NRUNS" input.dat | awk 'BEGIN{FS="="}{print $2}' | awk '{print $1}'` #number of runs + if test -s numsim; then + L_NUMRUN=`cat numsim` + echo 1 | awk '{print '${NUMRUN}'+'${L...
bash
d_bash_14083
--- +++ @@ -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_14084
--- +++ @@ -1,10 +1,15 @@ #!/bin/bash -if [[ ! -d "/var/log/kolla/panko" ]]; then - mkdir -p /var/log/kolla/panko +PANKO_LOG_DIR=/var/log/kolla/panko + +if [[ ! -d "${PANKO_LOG_DIR}" ]]; then + mkdir -p ${PANKO_LOG_DIR} fi -if [[ $(stat -c %a /var/log/kolla/panko) != "755" ]]; then - chmod 755 /var/log/k...
bash
d_bash_14085
--- +++ @@ -2,3 +2,4 @@ # Set permissions properly, since appspec.yml gets this wrong. chown -R ricsun:web /vol/www/richmondsunlight.com/ +chmod -R g+w /vol/www/richmondsunlight.com/
bash
d_bash_14086
--- +++ @@ -16,7 +16,8 @@ make clean # new scan build -../cov-analysis-linux64-8.7.0/bin/cov-build --dir cov-int make WITH_IPV6=1 WITH_WEBSOCKET=1 WITH_LUA_SHARED=1 +../cov-analysis-linux64-8.7.0/bin/cov-build --dir cov-int make WITH_IPV6=1 WITH_WEBSOCKET=1 +#../cov-analysis-linux64-8.7.0/bin/cov-build --dir c...
bash
d_bash_14087
--- +++ @@ -6,7 +6,7 @@ ci/scripts/build.sh -echo "${version}" > final_app/public/version.txt +echo "${version}" > final_app/public/version tar -cvzf "docs-${version}.tgz" final_app/public manifest.yml manifest.dev.yml mv "docs-${version}.tgz" ../final-app/
bash
d_bash_14088
--- +++ @@ -1,7 +1,11 @@ #!/usr/bin/env bash -# Clone vundle to home folder to create the .vim folder. -git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim +# Clone vundle if it does not already exist. +if [ -d "$HOME/.vim/bundle/Vundle" ]; then + cd ~/.vim/bundle/vundle/; git pull; cd -; ...
bash
d_bash_14089
--- +++ @@ -1,11 +1,19 @@ #------------------------------------------------ # Change, make and remove directory #------------------------------------------------ +# Auto changes to a directory without typing cd. setopt AUTO_CD + +# Push the old directory onto the stack on cd. setopt AUTO_PUSHD + +# Swap the mean...
bash
d_bash_14090
--- +++ @@ -25,6 +25,7 @@ echo "Installing EditorConfig-Vim" cd ~/.vim/bundle git clone https://github.com/editorconfig/editorconfig-vim.git + cd - fi echo "EditorConfig-Vim installed" fi
bash
d_bash_14091
--- +++ @@ -18,18 +18,13 @@ ## Package Management ## ######################## add-apt-repository -y ppa:webupd8team/sublime-text-3 +add-apt-repository -y ppa:webupd8team/java apt-get update apt-get install -y git xorg unzip # sublime-text-installer -########################## -## Android Development ## -######...
bash
d_bash_14092
--- +++ @@ -16,10 +16,10 @@ echo "You can fix this by running make tools and then terrafmt on them." echo "" echo "format a single file:" - echo "$ terrafmt fmt -f ./internal/services/aadgraph/resource_user.go" + echo "$ terrafmt fmt -f ./path/to/source.go" echo "" echo "format all website files:" - ...
bash
d_bash_14093
--- +++ @@ -7,13 +7,10 @@ pip install "${PIP_PACKAGES[@]}" fi -sleep 1 # Filesystem quirks with Github actions? -git submodule init -sleep 1 -git submodule sync -sleep 1 -git submodule update -sleep 1 +while ! git submodule update # Filesystem quirks with Github actions? +do + sleep 2 +done mkdir /tmp/...
bash
d_bash_14094
--- +++ @@ -19,10 +19,12 @@ -K "$encrypted_34c893741e32_key" -iv "$encrypted_34c893741e32_iv" gpg --import private.key -cd "$ROOT_DIR/packaging/deb/dist/*trusty" +cd "$ROOT_DIR/packaging/deb/dist/" +cd ./*trusty/ debsign -k 97A4B458 ./*source.changes dput -U "ppa:nvidia-digits/${PPA_NAME}/ubuntu/trusty" ./*...
bash
d_bash_14095
--- +++ @@ -4,7 +4,7 @@ # Dracut is needed on the host EMERGE_FLAGS="--buildpkg --getbinpkg --update --jobs --deep --newuse" -emerge $EMERGE_FLAGS --usepkg --oneshot \ +eix -qI sys-kernel/dracut || emerge $EMERGE_FLAGS --usepkg --oneshot \ sys-kernel/dracut dracut -f /root/initramfs $KVER -i /root/systemd...
bash
d_bash_14096
--- +++ @@ -16,9 +16,17 @@ $RM -rf $DIR_RUN_PERM $RM -rf $DIR_DOC $RM -f /etc/triggerhappy/triggers.d/hue-shell.conf -$RM -f /etc/init.d/hue-* -if command -v systemctl > /dev/null 2>&1; then +# OpenWrt +if [ -f /etc/openwrt_version ]; then + _disable() { + /etc/init.d/hue-$1 disalbe + } + _disable load-default ...
bash
d_bash_14097
--- +++ @@ -3,3 +3,4 @@ coverage run --source=plantagenet ./run_tests.py "$@" && \ coverage html && \ flake8 plantagenet.py run_tests.py + shellcheck run_tests_with_coverage.sh
bash
d_bash_14098
--- +++ @@ -6,7 +6,7 @@ AUTH="$1" curl -i -H "Accept: application/json" -H "content-type: application/json" -H "Authorization: $AUTH" --data "@event.json" -X POST http://misp.local/events -curl -H "Authorization: $AUTH" -X GET http://misp.local/events/csv/download/1 | sed -e 's/^M//g' | cut -d, -f2 --complement ...
bash
d_bash_14099
--- +++ @@ -28,7 +28,6 @@ sublime-text tor-browser vlc - wd-security docker mongodb-compass visual-studio-code
bash