document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_6700
--- +++ @@ -6,7 +6,7 @@ conda install conda-build anaconda-client --yes conda build conda --no-anaconda-upload -TRG=`conda build conda --output` +TRG=`conda build conda --output |sed -e 's/--/-*-/'` echo "Uploading: $TRG" anaconda --token $TKN upload --label $LBL $TRG
bash
d_bash_6701
--- +++ @@ -8,4 +8,4 @@ git clone https://github.com/mozilla/telemetry-batch-view.git cd telemetry-batch-view sbt assembly -spark-submit --master yarn-client --class com.mozilla.telemetry.views.CrashAggregateView telemetry-batch-view/target/scala-2.10/telemetry-batch-view-1.1.jar --bucket $bucket --from $date --to...
bash
d_bash_6702
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash SOURCE_REPO=https://github.com/keycloak/keycloak-documentation.git -SOURCE_REVISION=4.0.0.Final +SOURCE_REVISION=2d64137ab7c0edfe0fd248d35d55f2a8f082ab21 SOURCE_DIR=source TRANSLATED_DIR=translated TARGET_LANG=ja_JP
bash
d_bash_6703
--- +++ @@ -7,8 +7,6 @@ echo echo "Rebooting all nodes." echo -echo "A successfull reboot will show \"Connection closed\" or a similar message." -echo sleep 1 #Start the commands going in unison. @@ -17,6 +15,7 @@ printf "Issuing reboot command to $i..." ssh -o ConnectTimeout=$sshTimeout $i "shutdo...
bash
d_bash_6704
--- +++ @@ -1,2 +1,11 @@ +sudo add-apt-repository ppa:ubuntu-toolchain-r/test +sudo apt-get update +sudo apt-get install gcc-4.8 g++-4.8 +sudo update-alternatives --remove-all gcc +sudo update-alternatives --remove-all g++ +sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 +sudo update-alternati...
bash
d_bash_6705
--- +++ @@ -5,13 +5,19 @@ trap "kill $!" EXIT export DISPLAY=:7 -make -k -j1 install 2>&1 | +( make -k -j1 install 2>&1; + for exe in $(make install | sed -n 's/^install .* "\([^"]*qt4\/tst_[^"]*\)".*/\1/p') + do + $exe + done +) | while read line do case "$line" in make*Error) ...
bash
d_bash_6706
--- +++ @@ -1,3 +1,4 @@ +rm -rf dist export DJHEROKU_MINOR_VERSION=`date +%Y%m%d%H%M%S` virtualenv -q .venv . .venv/bin/activate
bash
d_bash_6707
--- +++ @@ -1,3 +1,5 @@ +export RBENV_VERSION="2.0.0" + bundle install --path "${HOME}/bundles/${JOB_NAME}" bundle exec rake
bash
d_bash_6708
--- +++ @@ -1 +1 @@ -xcodebuild test -project DuckDuckGo.xcodeproj -scheme DuckDuckGo -destination 'platform=iOS Simulator,OS=10.1,name=iPhone 6s'; +xcodebuild test -project DuckDuckGo.xcodeproj -scheme DuckDuckGo CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination 'platform=iOS Simulator,OS=10.1,name=iPhone ...
bash
d_bash_6709
--- +++ @@ -7,14 +7,16 @@ # start rsyslog if [[ "$PURE_FTPD_FLAGS" == *" -d "* ]] || [[ "$PURE_FTPD_FLAGS" == *"--verboselog"* ]] then - echo "Log enabled, see /var/log/messages" - rsyslogd + echo "Log enabled, see /var/log/messages" + rsyslogd fi + +PASSWD_FILE="/etc/pure-ftpd/passwd/pureftpd.passwd" # ...
bash
d_bash_6710
--- +++ @@ -2,8 +2,10 @@ set -ex -sleep 12 +sleep 10 cd ${KAFKA_INSTALL_ROOT}/kafka-6667 bin/kafka-topics.sh --create --partitions 1 --replication-factor 3 --topic single_partition --zookeeper localhost:2181 bin/kafka-topics.sh --create --partitions 2 --replication-factor 3 --topic multi_partition --zookee...
bash
d_bash_6711
--- +++ @@ -14,7 +14,7 @@ # Download solarized color schemes git clone https://github.com/Anthony25/gnome-terminal-colors-solarized git clone https://github.com/seebi/dircolors-solarized -git clone git@github.com:seebi/tmux-colors-solarized.git +git clone https://github.com/seebi/tmux-colors-solarized # Install...
bash
d_bash_6712
--- +++ @@ -1,4 +1,6 @@ mv /home/vagrant/sources.list /etc/apt/sources.list +service puppet stop +service chef-client stop apt-add-repository ppa:brightbox/ruby-ng apt-get update apt-get install -y build-essential git-core zlib1g-dev libssl-dev \
bash
d_bash_6713
--- +++ @@ -34,3 +34,4 @@ cmake .. make -j 8 make tests +make fpgalint
bash
d_bash_6714
--- +++ @@ -1,2 +1,2 @@ #!/bin/bash -java $JAVA_OPTS -Djava.library.path=/usr/lib -jar /tmp/elasticsearch-mesos-scheduler.jar $@ +java $JAVA_OPTS -Djava.library.path=/usr/lib -jar /tmp/elasticsearch-mesos-scheduler.jar "$@"
bash
d_bash_6715
--- +++ @@ -16,4 +16,4 @@ # We remove any natively installed JDKs, as both Cloudera Manager and Cloudera Director only support Oracle JDKs yum remove --assumeyes *openjdk* -rpm -ivh "http://archive.cloudera.com/director/redhat/7/x86_64/director/2.1.0/RPMS/x86_64/oracle-j2sdk1.8-1.8.0+update60-1.x86_64.rpm" +rpm -...
bash
d_bash_6716
--- +++ @@ -1,19 +1,10 @@ #!/bin/sh # included in the repo because it's only available over http from deis.io +# http://deis.io/deis-cli/install.sh # install current version unless overridden by first command-line argument -cd ~/docker - -VERSION=${1:-1.13.2} - -if [[ -x ./deis ]]; then - if [[ "$VERSION" == ...
bash
d_bash_6717
--- +++ @@ -7,7 +7,7 @@ echo "Deploying v${TRAVIS_TAG}!"; else echo "This build does not require deployment."; - exit 0; + exit 1; fi; grunt build;
bash
d_bash_6718
--- +++ @@ -7,6 +7,8 @@ FIRST_CALL=1 cat <<EOF +#include <stdio.h> + int compute_fst(const char* token) { int pos=0; @@ -65,6 +67,12 @@ END : return total; } + +int main(int argc, const char *argv[]) +{ + printf("%d\n", compute_fst(argv[1])); + return 0; +} EOF rm "$FST.sort"
bash
d_bash_6719
--- +++ @@ -20,7 +20,9 @@ istat-menus iterm2 little-snitch + mactracker namebench + screenflick silverlight skype teamviewer @@ -30,4 +32,4 @@ vlc ) -brew cask install ${apps[@]} +brew cask install ${apps[@]} --appdir=/Applications
bash
d_bash_6720
--- +++ @@ -12,7 +12,6 @@ cat > "${SECRETS}" << EOF --- compose_api_key: ${COMPOSE_API_KEY} -compose_access_token: ${COMPOSE_API_KEY} EOF aws s3 cp "${SECRETS}" "s3://gds-paas-${DEPLOY_ENV}-state/compose-secrets.yml"
bash
d_bash_6721
--- +++ @@ -6,4 +6,4 @@ source activate pymola # for some reason conda install of casadi doesn't work correctly, works with pip # note this installs within the conda env as well since we source pymola above -pip install casadi antlr4-python3-runtime control coveralls pydot slycot +pip install casadi antlr4-python3...
bash
d_bash_6722
--- +++ @@ -3,4 +3,16 @@ # Repair "==> default: stdin: is not a tty" message sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile -whoami +# In order to avoid the message +# "==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory" +# use " > /dev/null 2>&1" in order to red...
bash
d_bash_6723
--- +++ @@ -2,6 +2,9 @@ git clone https://github.com/taigaio/taiga-scripts.git cd taiga-scripts + +# Delete "exit" to remove root protection +sed -i '/exit 1/d' setup-server.sh bash setup-server.sh whiptail --msgbox "Taiga.Io successfully installed!
bash
d_bash_6724
--- +++ @@ -1,4 +1,5 @@ #!/bin/sh +cd ./debian version=`cat ../VERSION` mkdir origami-smtp_v$version mkdir origami-smtp_v$version/DEBIAN @@ -16,7 +17,8 @@ dpkg-deb --build origami-smtp_v$version rm -rf origami-smtp_v1.0.0$version mv origami-smtp_v$version.deb ../ -if test -e "../origami-smtp_v$version.deb"; th...
bash
d_bash_6725
--- +++ @@ -1,11 +1,14 @@ #!/bin/sh DIR=$1 +log="${DIR}paperstats.log" -NAMES="$(find ${DIR} -name '[a-z\-]*[0-9]*.*.txt' -exec basename {} \; | grep --only-matching '^[a-z\-]*' | sort -u)" +NAMES="$(find ${DIR} -name '[a-z\-]*[0-9]*.*.txt' -maxdepth 1 -exec basename {} \; | grep --only-matching '^[a-z\-]*' | sor...
bash
d_bash_6726
--- +++ @@ -1,5 +1,14 @@ -rm -rf docs/build/ +export LC_ALL=en_US.UTF-8 + +rm -rf docs/build/.doctrees docs/build/_sources docs/build/static docs/build/.buildinfo +rm -rf docs/build/*.* pip install . --upgrade sphinx-build -b html docs/ docs/build + +mv docs/build/_static docs/build/static + +sed -i '' 's/_stat...
bash
d_bash_6727
--- +++ @@ -4,3 +4,5 @@ git init sh scripts/bootstrap +git add -A . +git commit -m "Initial Commit"
bash
d_bash_6728
--- +++ @@ -2,8 +2,10 @@ set -e -if ["null" != $PRIVATE_REGISTRIES] ;then -sudo sed -i '18i-insecureDockerRegistryList='$PRIVATE_REGISTRIES' \\' /etc/init/garden-linux.conf +if [ $PRIVATE_REGISTRIES != 'null' ] +then +line=$((`sudo sed -n '$=' /etc/init/garden-linux.conf`-5)) +sudo sed -i $line'i-insecureDoc...
bash
d_bash_6729
--- +++ @@ -32,6 +32,9 @@ # Enable screen locking on suspend xss-lock -- slock & +# Development related environment vars +export PUPPETEER_EXECUTABLE_PATH=$(which chromium) + # We're in Emacs, yo export VISUAL=emacsclient export EDITOR="$VISUAL"
bash
d_bash_6730
--- +++ @@ -7,5 +7,5 @@ -project "Buy.xcodeproj" \ -scheme "Buy" \ -sdk iphonesimulator \ --destination 'platform=iOS Simulator,name=iPhone 6s,OS=10.2' \ +-destination 'platform=iOS Simulator,name=iPhone 7,OS=10.3' \ | xcpretty -c
bash
d_bash_6731
--- +++ @@ -21,6 +21,7 @@ fi tar xzf /tmp/go.tar.gz -C $GoInstallDir + rm /tmp/go.tar.gz fi if [ ! -f $GoInstallDir/go/bin/go ]; then echo " **ERROR** Could not download go"
bash
d_bash_6732
--- +++ @@ -38,6 +38,7 @@ language \ translate \ speech \ + video \ vision do # Run Tests
bash
d_bash_6733
--- +++ @@ -1,2 +1,2 @@ #!/bin/sh -env IWOTW_ENV=production /usr/bin/ruby /var/www/iworkontheweb/app/flickr_poller.rb > /dev/null 2>&1 +env IWOTW_ENV=production /usr/bin/ruby /var/www/iworkontheweb/app/current/www/flickr_poller.rb > /dev/null 2>&1
bash
d_bash_6734
--- +++ @@ -21,7 +21,7 @@ fi if [ ! -e $toolchain/bin/cabal ]; then - cabal_tarball="https://www.haskell.org/cabal/release/cabal-install-2.2.0.0/cabal-install-2.2.0.0-x86_64-apple-darwin-sierra.tar.gz" + cabal_tarball="https://downloads.haskell.org/~cabal/cabal-install-latest/cabal-install-2.4.1.0-x86_64-ap...
bash
d_bash_6735
--- +++ @@ -6,7 +6,7 @@ cd "`dirname $0`/$EXAMPLE_NAME" # Use local version of scissors: -sed -i '.bak' -E 's!scissors: .+!scissors: {path: ../..}!' pubspec.yaml +sed -i.bak -E 's!scissors: .+!scissors: {path: ../..}!' pubspec.yaml echo "# Building $EXAMPLE_NAME" pub get
bash
d_bash_6736
--- +++ @@ -1,4 +1,7 @@ #!/bin/bash +# - Additionally check on how to disable intel_pstate new driver, and switch back to the acpi-cpufreq instead +# (could be the reason temperature above threshold error in the dmesg): https://unix.stackexchange.com/questions/153693/cant-use-userspace-cpufreq-governor-and-set-cp...
bash
d_bash_6737
--- +++ @@ -6,7 +6,5 @@ chmod -R 755 /opt/mysql mysqld_safe & sleep 5 echo "CREATE DATABASE db;" | mysql -u root --password=a_stronk_password -echo "$2" | mysql -u root --password=a_stronk_password db echo "UPDATE mysql.user SET Password=PASSWORD('$1') WHERE User='root'; FLUSH PRIVILEGES;" | mysql -u root --passw...
bash
d_bash_6738
--- +++ @@ -23,4 +23,4 @@ sed -i -e 's/^\s*Name:.*$/Name: %{pkgname}/' -e 's/^\s*Version:.*$/Version: %{version}/' -e 's/^\s*Release:.*$/Release: %{release}/' -e 's/^\s*Arch:.*$/Arch: %{arch}/' -e 's/^\s*%setup -q\s*$/%setup -q -n %{pkgname}/' $1.spec -sed -e -e "s;^PKGNAME :=.*;PKGNAME := $PKGNAME;" -e "s;^VERS...
bash
d_bash_6739
--- +++ @@ -8,13 +8,6 @@ echo "=====================================" echo "`date "+%F %T"` Initializing config where necessary ... " echo "=====================================" - -# check that USBs with correctly labeled partitions exist and if so -# prepare and encrypt key, storage, swap -# XXX potentially mov...
bash
d_bash_6740
--- +++ @@ -16,4 +16,10 @@ if [ "$HOST_DISPLAY" != "" ]; then AOSP_ARGS="${AOSP_ARGS} --env=DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix" fi + +#Make sure prerequisite directories exist in studio-data dir +mkdir -p studio-data/profile/AndroidStudio2.3 +mkdir -p studio-data/profile/android +mkdir -p studio-data/profile...
bash
d_bash_6741
--- +++ @@ -6,6 +6,11 @@ # Example usage: # $ ./merge-develop.sh my-feature-branch +if (( $# != 1 )); then + echo "Illegal number of arguments" + exit +fi + git checkout develop git pull origin git checkout $1
bash
d_bash_6742
--- +++ @@ -1,19 +1,29 @@ #!/bin/bash -set -ex +set -e echo "=== TEST FAILED OR TIMED OUT, DUMPING DEBUG INFO ===" -kubectl get all --all-namespaces # TODO: Extend this to show kubectl describe output for failed pods, this will # probably show why things are hanging. -kubectl version -kubectl get all --na...
bash
d_bash_6743
--- +++ @@ -30,8 +30,8 @@ do if [ ! -d $f ]; then echo "Processing $f file..." - github-release upload --user buchen --repo portfolio --tag ${PCK_VERSION} --name "$f" --file $BASE/$f - github-release upload --user buchen --repo portfolio --tag ${PCK_VERSION} --name "$f.asc" --file $BASE_GPG/$f.asc + ...
bash
d_bash_6744
--- +++ @@ -30,7 +30,7 @@ nixBuildArgs+=("--option" "$1" "$2"); shift ;; *) - if [ ! -z "$networkExpr" ]; then + if [ -n "$networkExpr" ]; then echo "Network expression already set!" showUsage exit 1
bash
d_bash_6745
--- +++ @@ -1,2 +1,14 @@ #!/bin/bash -find ./dist/* ! -iname 'vendor*' ! -iname 'font*' | xargs rm -rf +IGNORE[0]='vendor*' +IGNORE[1]='font*' +IGNORE[2]='picnic*' +IGNORE[3]='dialog*' +CONCAT='' + +for each in "${IGNORE[@]}" +do + CONCAT="$CONCAT ! -iname $each" +done + +CMD="find ./dist/* $CONCAT | xargs rm -rf" +...
bash
d_bash_6746
--- +++ @@ -5,7 +5,7 @@ readonly BUILD_USER=$(whoami) readonly BUILD_TIMESTAMP=$(date -u) -readonly BUILD_BRANCH=$(git branch | awk '{ print $2 }') +readonly BUILD_BRANCH=$(a=$(git symbolic-ref HEAD 2> /dev/null || echo "<UNKNOWN>") ; echo ${#refs/heads/}) readonly BUILD_COMMIT=$(git log | head -n1 | awk '{ prin...
bash
d_bash_6747
--- +++ @@ -1,7 +1,4 @@ #!/bin/bash - -set -u -set -o errexit if [ `uname` == 'Darwin' ]; then # Mac OS X @@ -13,6 +10,12 @@ DROPDB="dropdb" fi +echo "DROPPING db mediacloud" sudo su -l postgres -c "$DROPDB mediacloud" +echo "DROPPING db mediacloud_test" sudo su -l postgres -c "$DROPDB mediacloud_t...
bash
d_bash_6748
--- +++ @@ -5,7 +5,9 @@ RESULT=$(git -C $TARGET status); checkResult $? false; RESULT=$(echo $RESULT | grep "res/raw"); -checkResult $? false; +STATUS=$?; +if [ $STATUS == 1 ]; then STATUS=0; fi; # grep returns 1 when no result +checkResult $STATUS false; git -C $TARGET diff res/values/gtfs_rts_values_gen.xml ch...
bash
d_bash_6749
--- +++ @@ -40,3 +40,5 @@ for env_var in "${env_vars[@]}"; do echo "${ENVIRONMENT}_${env_var}=${!env_var}" >> docker.env done + +echo "BUILD_ID=$BUILD_ID" >> docker.env
bash
d_bash_6750
--- +++ @@ -9,7 +9,13 @@ cp /usr/bin/unionfs-fuse ./AppImageAssistant.AppDir/unionfs-fuse rm -r log -sudo find /isodevice/boot/iso/*amd64*iso -exec bash ./AppImageAssistant.AppDir/testappimage {} /home/me/Downloads/Subsurface_4.5.1.109_x86_64.AppImage >> log 2>&1 \; -sudo find /isodevice/boot/iso/*_64*iso -exec ...
bash
d_bash_6751
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash +export DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd "$DIR" osascript setup_4store.osa > /dev/null 2>&1
bash
d_bash_6752
--- +++ @@ -5,4 +5,4 @@ if [ $st -ne 0 ];then exit $st fi -xcodebuild "-project" "TVMLKitchen.xcodeproj" "-scheme" "SampleRecipeUITests" "test" "-destination" "platform=tvOS Simulator,name=Apple TV 1080p,OS=latest" | xcpretty "--color" +#xcodebuild "-project" "TVMLKitchen.xcodeproj" "-scheme" "SampleRecipeUITests...
bash
d_bash_6753
--- +++ @@ -6,6 +6,8 @@ rm -rf Export haxelib run duell update -verbose -yestoall + +$ANDROID_HOME/platform-tools/adb kill-server haxelib run duell build android -test -verbose -D jenkins -yestoall
bash
d_bash_6754
--- +++ @@ -6,6 +6,9 @@ REMOTE_REPO=${REPO_NAME}.git CUR_DIR=`pwd` +cd $MASTER +CUR_BRANCH=`git branch | sed -e '/^ /d' -e 's/^..//'` + cd $TMP_DIR && mkdir ${REMOTE_REPO} && git init --bare $REMOTE_REPO && @@ -13,7 +16,7 @@ REPO=`pwd` ...
bash
d_bash_6755
--- +++ @@ -6,5 +6,5 @@ #SBATCH --mail-type=FAIL source ~/env-cwl/bin/activate -export PATH="/data/reddylab/software/FastQC:/home/dcl9/bin:/usr/local/bin:/data/reddylab/software/STAR_2.4.2a/STAR-STAR_2.4.2a/bin/Linux_x86_64_static:$PATH" +export PATH="/data/reddylab/software/FastQC:/home/dcl9/bin:/usr/local/bin:/...
bash
d_bash_6756
--- +++ @@ -1,10 +1,12 @@ #!/bin/bash +set -ev if [ -n "$SONAR_GITHUB_OAUTH" ]; then ./gradlew sonarqube \ -Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST \ -Dsonar.github.oauth=$SONAR_GITHUB_OAUTH \ - -Dsonar.analysis.mode=issue + -Dsonar.analysis.mode=issue \ + --stacktrace --info else ...
bash
d_bash_6757
--- +++ @@ -21,6 +21,7 @@ alias gra='git remote add' alias grr='git remote rm' alias gcl='git clone' +alias gr='cd $(git root)' # Autocomplete for 'g' as well complete -o default -o nospace -F _git g
bash
d_bash_6758
--- +++ @@ -10,12 +10,6 @@ WORKER_IP="$(dig +short myip.opendns.com @resolver1.opendns.com)" - # Temporarily copy files to second server - DEPLOY_FOLDER2=${TRAVIS_BRANCH} - DEPLOY_SERVER2=travis@cognosis.mit.edu - echo "Copying binaries from ${WORKER_IP} to ${DEPLOY_SERVER2}:${DEPLOY_FOLDER2} ......
bash
d_bash_6759
--- +++ @@ -6,7 +6,7 @@ fi DIR=`dirname $3` mkdir -p $DIR && -wkhtmltoimage -q --user-style-sheet $1 --zoom 1.5 --crop-h 512 --crop-w 1024 $2 $3.tmp.png && +wkhtmltoimage -q --enable-local-file-access --user-style-sheet $1 --zoom 1.5 --crop-h 512 --crop-w 1024 $2 $3.tmp.png && convert $3.tmp.png -resize 256x128 $...
bash
d_bash_6760
--- +++ @@ -1 +1 @@ -hash thefuck 2>/dev/null && eval "$(thefuck --alias)" +hash thefuck 2>/dev/null && python -c 'import colorama' 2>/dev/null && eval "$(thefuck --alias)"
bash
d_bash_6761
--- +++ @@ -9,7 +9,7 @@ echo "Waiting for frontend container to start up..." -until curl --output /dev/null --silent --head --fail http://localhost:3000 +until curl --output /dev/null --silent --fail http://localhost:3000 do sleep 2 done
bash
d_bash_6762
--- +++ @@ -12,10 +12,7 @@ # Copy CSS rsync -r css $OUT_DIR -scss_compile $OUT_DIR/css/buttons.dataTables.scss -scss_compile $OUT_DIR/css/buttons.bootstrap.scss -scss_compile $OUT_DIR/css/buttons.foundation.scss -scss_compile $OUT_DIR/css/buttons.jqueryui.scss +css_frameworks buttons $OUT_DIR/css # Copy images...
bash
d_bash_6763
--- +++ @@ -19,7 +19,7 @@ ] } if (!process.env.CI) { - opts.sign = 'Developer ID Application: Jingwen Ou' + opts.sign = 'Developer ID Application: xueshi qiao' } packager(opts, function done (err, appPaths) { if (err) {
bash
d_bash_6764
--- +++ @@ -6,7 +6,7 @@ CAL_OPT="add -1 -r" export LANG=en_US.UTF-8 -${CALIBREDB} ${CAL_OPT} --with-library=${LIBNAME} ${DIRNAME} +${CALIBREDB} ${CAL_OPT} --with-library=${LIBNAME} ${DIRNAME} >> /scripts/cron.log 2>&1 EC=$? if [ $EC -eq 0 ] then
bash
d_bash_6765
--- +++ @@ -1 +1,6 @@ -source ~/.vim/bundle/tmux-config/tmux-autowrite/autowrite-vim.sh +TMUX_CONFIG=~/.vim/bundle/tmux-config/tmux-autowrite/autowrite-vim.sh + +if [ -f $TMUX_CONFIG ] +then + source $TMUX_CONFIG +fi
bash
d_bash_6766
--- +++ @@ -16,5 +16,5 @@ cmake .. fi -make -make test CTEST_OUTPUT_ON_FAILURE=TRUE +cmake --build . +ctest -VV
bash
d_bash_6767
--- +++ @@ -2,7 +2,7 @@ set -xe -ds_dataset_path="/data/ted/" +ds_dataset_path="/data/LIUM/" export ds_dataset_path ds_importer="ted_lium"
bash
d_bash_6768
--- +++ @@ -1,11 +1,5 @@ #!/bin/bash -ls -lah ./bin - docker-compose up -d - -docker-compose ps - -docker-compose logs todoApp go test -v -tags integration
bash
d_bash_6769
--- +++ @@ -1,8 +1,12 @@ #!/bin/sh PATH=$PATH:/usr/local/bin +last_working="" + +# Create .pth files for binary in python python2 python2.0 python2.1 python2.2 python2.3 python2.4 python2.5; do if $binary -c "" 2>/dev/null; then + last_working=$binary $binary - <<EOF import sys sitedirs = ...
bash
d_bash_6770
--- +++ @@ -2,30 +2,32 @@ local _sublime_darwin_paths > /dev/null 2>&1 _sublime_darwin_paths=( - "/usr/local/bin/subl" - "$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" - "$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" - "/Applications/Sublime Text 2.app/Contents/Shar...
bash
d_bash_6771
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -echo Downloading DMR-IDs from MARC-database -curl 'https://radioid.net/static/users.csv' 2>/dev/null | sed -e 's/\t//g' | awk -F"," '/,/{gsub(/ /, "", $2); printf "%s;%s;%s\n", $1, $2, $3}' | sed -e 's/\(.\) .*/\1/g' > dmrids.dat +echo Downloading DMR-IDs from RadioID database +c...
bash
d_bash_6772
--- +++ @@ -2,9 +2,13 @@ local tag=$1 local ext=$([[ $tag == "HEAD" ]] && echo "--HEAD" || echo "") brew update - brew install lua - brew instal python3 - brew install vim --with-lua --with-python3 $ext + brew install luajit python3 + brew install vim \ + --with-luajit \ + --with-python3 \ + ...
bash
d_bash_6773
--- +++ @@ -6,4 +6,8 @@ git reset --hard $HEROKU_TEST_RUN_COMMIT_VERSION export DJANGO_SETTINGS_MODULE=config.settings.test python manage.py test +exit_status=$? coveralls +if [ "$exit_status" != "0" ]; then + exit $exit_status +fi
bash
d_bash_6774
--- +++ @@ -11,7 +11,7 @@ defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4" \ "Open and save files as UTF-8 encoded" -execute "defaults write com.apple.TextEdit RichText -" \ +execute "defaults write com.apple.TextEdit RichText 0" \ "Use plain text mode for new documents" ki...
bash
d_bash_6775
--- +++ @@ -1,5 +1,32 @@ -git clone https://github.com/nus-mtp/lecture-note-2.0.git notes +# > Clone the master branch into `notes` folder +# > Vagrant shared memory is not used due to various of problems with +# doing `npm install` on Windows e.g. creating symbolic link and its speed. +git clone https://github.com...
bash
d_bash_6776
--- +++ @@ -1,5 +1,6 @@ brew install tmux brew install nvim +brew install ag brew install tig brew install htop brew install tree
bash
d_bash_6777
--- +++ @@ -7,7 +7,7 @@ MOTD_FILE=/etc/motd BANNER_WIDTH=64 PLATFORM_RELEASE=$(sed 's/^.\+ release \([.0-9]\+\).*/\1/' /etc/redhat-release) -PLATFORM_MSG=$(printf 'Oracle Enterprise Linux %s' "$PLATFORM_RELEASE") +PLATFORM_MSG=$(printf 'Oracle Linux %s' "$PLATFORM_RELEASE") BUILT_MSG=$(printf 'built %s' $(date +%...
bash
d_bash_6778
--- +++ @@ -22,5 +22,5 @@ tests/basic/run.sh $ARCH tests/exceptions/run.sh $ARCH tests/data-warnings/run.sh $ARCH -tests/vtables/run.sh $ARCH +test -n "$ARCH" || tests/vtables/run.sh $ARCH # TODO: enable for other arches test -n "$ARCH" || tests/ld/run.sh # TODO: enable for other targets
bash
d_bash_6779
--- +++ @@ -1,4 +1,7 @@ #!/bin/bash + +# Exit on any error +set -o errexit function finish { echo "Nothing left to do. Exiting..."
bash
d_bash_6780
--- +++ @@ -15,9 +15,15 @@ # export LC_ALL=en_US.UTF-8 # Ensure editor is set -export EDITOR='emacsclient -a vim -c' -export ALTERNATE_EDITOR=vim -export VISUAL='emacsclient -a vim -c' +if [ -e /usr/local/bin/vim ] || [ -e /usr/bin/vim ] ; then + export EDITOR=vim + export ALTERNATE_EDITOR=vim + export V...
bash
d_bash_6781
--- +++ @@ -2,9 +2,12 @@ set -euo pipefail export PATH=/anaconda/bin:$PATH -export CONTAINER_PUSH_COMMANDS_PATH=${TRAVIS_BUILD_DIR}/container_push_commands.sh -touch $CONTAINER_PUSH_COMMANDS_PATH +if [[ $TRAVIS_BRANCH = "master" && "$TRAVIS_PULL_REQUEST" = false ]] +then + export CONTAINER_PUSH_COMMANDS_PATH=...
bash
d_bash_6782
--- +++ @@ -5,7 +5,7 @@ rm -rf target/freeciv-web/javascript/webclient.min.js.map rm -rf target/freeciv-web/javascript/webgl/libs/webgl-client.min.js.map -mvn compile && cp target/freeciv-web/javascript/webclient.min.* /var/lib/tomcat8/webapps/ROOT/javascript/ && cp target/freeciv-web/javascript/webgl/libs/webgl-...
bash
d_bash_6783
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=0.3 +VERSION=0.4 TMPDIR=/tmp/google-api-php-client RELFILE=/tmp/google-api-php-client-${VERSION}.tar.gz @@ -11,6 +11,8 @@ cd $TMPDIR find . -name ".*" -exec rm -rf {} \; &>/dev/null find . -name "makeRelease.sh" -exec rm -rf {} \; &>/dev/null +find . -name "local...
bash
d_bash_6784
--- +++ @@ -1,6 +1,6 @@ # UI -> PY for filename in *.ui; do - pyuic4.bat $filename > "`basename "$filename" .ui`.py" + pyuic4 $filename > "`basename "$filename" .ui`.py" done
bash
d_bash_6785
--- +++ @@ -3,39 +3,39 @@ koopa::download_ensembl_genome() { # {{{1 # """ # Download Ensembl genome. - # @note Updated 2020-11-19. + # @note Updated 2020-12-14. # """ koopa::assert_has_args "$#" - koopa::pyscript 'download-ensembl-genome' "$@" + koopa::rscript 'download-ensembl-genome...
bash
d_bash_6786
--- +++ @@ -18,7 +18,6 @@ echo "${GALLERY}/${PHOTO} ... skipped" else echo "${GALLERY}/${PHOTO} ... resizing" - cp ${FILE} ${PHOTO_DIR}/${GALLERY}/${PHOTO} - mogrify -resize 600x600 ${PHOTO_DIR}/${GALLERY}/${PHOTO} + convert -resize 600x600 ${FILE} ${PHOTO_DIR}/${GALLERY}/$...
bash
d_bash_6787
--- +++ @@ -1,26 +1,20 @@ #!/bin/bash +sleep 10 + vm_name=$1 -sleep 20 -# MAC=`VBoxManage showvminfo ${vm_name} | grep MAC | grep vboxnet0 | awk -F ":" '{print $3}' | cut -c 2-13` -# MAC=`echo ${MAC} | awk 'BEGIN{FS=""}{print $1$2":"$3$4":"$5$6":"$7$8":"$9$10":"$11$12}' | tr '[:upper:]' '[:lower:]'` -# MAC=`echo $...
bash
d_bash_6788
--- +++ @@ -1,6 +1,8 @@ #!/bin/bash -RAW=$(aws ecr get-login --region us-east-1) +# IMPORTANT: requires that you have run aws configure --profile tl-registry to create a new profile with correct keys + +RAW=$(aws ecr get-login --profile tl-registry) echo ${RAW} echo
bash
d_bash_6789
--- +++ @@ -1,8 +1,12 @@ #!/bin/bash if [ "$#" = "0" ]; then - echo "Usage: $0 department-name" + echo "Usage: $0 department-name http_user http_pass" exit 1 +fi + +if [ ! -f ./document_mappings.csv ]; then + wget https://$2:$3@whitehall-admin.production.alphagov.co.uk/government/document_mappings.c...
bash
d_bash_6790
--- +++ @@ -2,14 +2,14 @@ set -ex # env vars: CLUSTER_NAME, CONFIG_BRANCH, CONFIG_REPO, NAMESPACE, DEPLOYMENT_YAML -. ${BASH_SOURCE%/*}/../docker/bin/set_git_env_vars.sh # sets DEPLOYMENT_DOCKER_IMAGE +. ${BASH_SOURCE%/*}/../docker/bin/set_git_env_vars.sh # sets DOCKER_IMAGE_TAG pushd $(mktemp -d) git clone --d...
bash
d_bash_6791
--- +++ @@ -6,7 +6,7 @@ if [ "$JAVA_HOME" != "" ]; then JAVA=$JAVA_HOME/bin/java else - $JAVA_HOME='/usr' + JAVA_HOME='/usr' JAVA=`which java` fi
bash
d_bash_6792
--- +++ @@ -5,4 +5,4 @@ set -e -rpmlint . -f rpmlint.conf.py +rpmlint -f rpmlint.conf.py .
bash
d_bash_6793
--- +++ @@ -35,6 +35,7 @@ reggy sourcetree spotify + sublime-text torbrowser vagrant virtualbox
bash
d_bash_6794
--- +++ @@ -1,5 +1,16 @@ #!/bin/bash echo 'This will remove iTunes-specific personal metadata in all .m4a files in the current directory and subdirectories.' +echo 'The following files will be modified :' +echo '' +dir=$(pwd) + for d in */ ; do + cd "$d" + for i in *.m4a; do + echo "$d""$i" + done + cd "$di...
bash
d_bash_6795
--- +++ @@ -1,2 +1,2 @@ -make PREFIX=$PREFIX CXXFLAGS="-I$PREFIX/include -L$PREFIX/lib $CXXFLAGS" +make PREFIX=$PREFIX LDFLAGS="-L$PREFIX/lib" CXXFLAGS="-I$PREFIX/include $CXXFLAGS" make install PREFIX=$PREFIX
bash
d_bash_6796
--- +++ @@ -3,9 +3,9 @@ . $RHIZO_SCRIPT/vars.sh LOGFILE="/var/log/monitor_amp.log" -$RHIZO_SCRIPT/check_amp_status.sh | grep -q ON +$RHIZO_SCRIPT/check_amp_status.sh | grep -q OFF if [ $? == 0 ]; then - logc "Amplifier is ON! Turn off amp" - $RHIZO_SCRIPT/turn_off_amplifier.sh >/dev/null 2>&1 + ...
bash
d_bash_6797
--- +++ @@ -3,19 +3,19 @@ # # portsinfo - Generate list of new ports for last two weeks. # -# $Id$ +# $Id: portsinfo,v 1.3 1997/05/28 19:51:20 wosch Exp wosch $ + +PATH=/bin:/usr/bin:/usr/local/bin:$PATH; export PATH url=http://www.de.freebsd.org/de/cgi/ports.cgi time='?type=new&time=2+week+ago&sektion=all' ...
bash
d_bash_6798
--- +++ @@ -1,12 +1,12 @@ -#!/bin/sh -ex +#!/bin/bash -x env mkdir -p .testrepository python -m subunit.run discover tests/functional > .testrepository/subunit.log -EXIT_CODE=$? subunit2pyunit < .testrepository/subunit.log +EXIT_CODE=$? subunit-stats < .testrepository/subunit.log exit $EXIT_CODE
bash
d_bash_6799
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash + +set -x if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then echo -e "Generating docs \n" @@ -18,7 +20,9 @@ pushd gh-pages echo -e "Adding new docs \n" - git add . + git --version + git add -A + git status git co...
bash