document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_13000 | ---
+++
@@ -1,3 +1,3 @@
-alias r='rbenv local 1.9.3-p392'
+alias r='rbenv local 2.0.0-p0'
alias migrate='rake db:migrate db:test:clone' | bash |
d_bash_13001 | ---
+++
@@ -14,7 +14,7 @@
fi
echo "** Dumping assets..."
-php app/console assetic:dump
+php app/console assetic:dump -vvv
echo "** Clearing cache..."
php app/console cache:clear | bash |
d_bash_13002 | ---
+++
@@ -5,7 +5,7 @@
source $IROOT/node.installed
return 0; }
-VERSION="0.12.12"
+VERSION="5.10.0"
fw_get -O http://nodejs.org/dist/v$VERSION/node-v$VERSION-linux-x64.tar.gz
fw_untar node-v$VERSION-linux-x64.tar.gz | bash |
d_bash_13003 | ---
+++
@@ -28,8 +28,8 @@
cd ${V8EVAL_ROOT}/ruby
bundle install
- rspec --init
- rspec
+ bundle exec rspec --init
+ bundle exec rspec
}
# dispatch subcommand | bash |
d_bash_13004 | ---
+++
@@ -23,7 +23,7 @@
dockerdir=$(cd ${dockerdir}; pwd)
if [ ! -f ./id_rsa ]; then
- ssh-keygen -t rsa -N "" -f ./id_rsa
+ ssh-keygen -m PEM -t rsa -N "" -f ./id_rsa
fi
export JEPSEN_ROOT=${dockerdir}/../ | bash |
d_bash_13005 | ---
+++
@@ -2,7 +2,7 @@
echo "Check for simple XSS vulnerability. We want our value attributes to be quoted with double quotes."
echo $PATH
-COUNT=`ack -c --ignore-dir=coverage --ignore-dir=bin --ignore-dir=tmp "(value=')" | perl -pe 's/.*://' | perl -pe 's/\n/+/smg' | perl -pe 's/$/0\n/' | bc`
+COUNT=`ack-grep -... | bash |
d_bash_13006 | ---
+++
@@ -44,8 +44,8 @@
if [[ ! -z "${DISABLE_WALLET}" ]]; then
echo "Skipping rpc testing due to disabled wallet functionality."
elif [[ "${BRANCH}" == "master" ]]; then
- ./test/functional/test_runner.py --extended --tmpdirprefix=output
+ ./test/functional/test_runner.py --extended --jobs=${THREADS} --tmpdirp... | bash |
d_bash_13007 | ---
+++
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
lein clean
-lein doo phantom test once
-lein doo phantom advanced once
-lein doo phantom none-test once
+lein doo all test once
+lein doo all advanced once
+lein doo all none-test once
lein doo node node-none once
lein doo node node-advanced once | bash |
d_bash_13008 | ---
+++
@@ -1,4 +1,8 @@
#!/bin/bash
+
+# The following IAM roles are required:
+# AmazonS3FullAccess
+# IAMReadOnlyAccess
if [ ! -d ~magento/.ssh/ ];
then | bash |
d_bash_13009 | ---
+++
@@ -8,7 +8,8 @@
wget https://raw.githubusercontent.com/SteamDatabase/GameTracking/master/Protobufs/dota/econ_shared_enums.proto
wget https://raw.githubusercontent.com/SteamDatabase/GameTracking/master/Protobufs/dota/dota_gcmessages_client_fantasy.proto
wget https://raw.githubusercontent.com/SteamDatabase/G... | bash |
d_bash_13010 | ---
+++
@@ -19,6 +19,7 @@
grunt \
karma \
stylelint \
+ yarn \
; {
alias $i="npm-bin $i"
} | bash |
d_bash_13011 | ---
+++
@@ -4,7 +4,7 @@
NGINX_HOME='/opt/local/etc/nginx/'
# Config hostname in nginx config
-gsed -i "s:server_name.*;:server_name ${HOST};:g" \
+gsed -i "s:__HOSTNAME__:${HOST}:g" \
${NGINX_HOME}nginx.conf
# SSL | bash |
d_bash_13012 | ---
+++
@@ -30,3 +30,7 @@
append-path /usr/local/bin
append-path /usr/sbin
append-path /sbin
+
+function parallels-background-service {
+ prlctl set "${1:?You must specify a VM to update.}" --on-window-close keep-running
+} | bash |
d_bash_13013 | ---
+++
@@ -18,9 +18,19 @@
git commit -m "[auto] $msg"
}
+# First catch instances of whole names
for file in $@; do
perl -e 'print sort { length($b) <=> length($a) } <>' < $names |
while read name; do
tag_name $file $name
done
done
+
+# Next try permutations of first, last, etc. (within reason)
+fo... | bash |
d_bash_13014 | ---
+++
@@ -4,3 +4,6 @@
# Generally I prob won't use <= 1.7 now, but I'll keep this just in case.
export GO15VENDOREXPERIMENT=1
+
+alias golinux="GOOS=linux GOARCH=amd64 go"
+alias godarwin="GOOS=darwin GOARCH=amd64 go" | bash |
d_bash_13015 | ---
+++
@@ -29,6 +29,6 @@
# Wait for pvpython
while ! nc -z ${SGE_O_HOST} ${RC_PORT}; do sleep 1; done
# Now run pvserver and tell it to reverse connect
-${MPIPROG} {{ '-n %d' % numberOfSlots-1 if numberOfSlots }} ${PV_SERVER} --client-host=${SGE_O_HOST} -rc --server-port=${RC_PORT}
+${MPIPROG} {{ '-n %d' % ((numb... | bash |
d_bash_13016 | ---
+++
@@ -23,7 +23,7 @@
echo "Run './script/run_carton.sh exec nytprofcsv' to convert profile output to csv after profiling is complete."
-export CARTON_EXTRA_PERL5OPT="-mDevel::NYTProf"
+export CARTON_EXTRA_PERL5OPT="-d:NYTProf -mDevel::NYTProf"
exec ./script/run_wrappered_carton.sh exec "$full_path_str" "$@... | bash |
d_bash_13017 | ---
+++
@@ -1,5 +1,5 @@
ANT_HOME=/opt/tpkg/share/PKG-VER
export ANT_HOME
-PATH=/opt/tpkg/share/PKG-VER:$PATH
+PATH=$PATH:/opt/tpkg/share/PKG-VER/bin
export PATH
| bash |
d_bash_13018 | ---
+++
@@ -2,7 +2,7 @@
set -ev
-mysql -e 'CREATE DATABASE IF NOT EXISTS mondrian_test DEFAULT CHARACTER SET utf8;'
+mysql -e 'CREATE DATABASE IF NOT EXISTS mondrian_test DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;'
mysql -e "GRANT ALL PRIVILEGES ON mondrian_test.* TO 'mondrian_test'@'localhost'... | bash |
d_bash_13019 | ---
+++
@@ -7,6 +7,13 @@
[ -z "$PASSWORD" ] && echo "Need to set PASSWORD" && exit 1;
[ -z "$KEY" ] && echo "Need to set KEY" && exit 1;
[ -z "$USER" ] && echo "Need to set USER" && exit 1;
+
+pingdom_down=`curl -s http://isup.me/api.pingdom.com | grep -c "It's not just you"`
+
+if [ $pingdom_down == 1 ]; then
+ ... | bash |
d_bash_13020 | ---
+++
@@ -1,4 +1,17 @@
#!/bin/sh
+
+# Explanation of the sed command below
+#
+# sed -ne s/thing1/thing2/p /path/to/file means:
+# "Search the file for thing1, replace it with thing2,
+# and only print the lines that you changed."
+# [^:]* means zero or more characters from the set "not colons"
+# \(somethi... | bash |
d_bash_13021 | ---
+++
@@ -14,6 +14,14 @@
exit 100
fi
+export PATH="/usr/bin:$PATH"
+export PATH="/usr/local/lib:$PATH"
+
+# Set path for virtual environment
+export WORKON_HOME="$PWD/.virtualenvs"
+export PROJECT_HOME="$PWD/Devel"
+source /usr/local/bin/virtualenvwrapper.sh
+
# Activate virtualenv
workon tmlibrary
| bash |
d_bash_13022 | ---
+++
@@ -9,8 +9,15 @@
HEADERS=$( ls include/mbedtls/*.h include/psa/*.h | egrep -v 'compat-1\.3\.h' )
-sed -n -e 's/.*#define \([a-zA-Z0-9_]*\).*/\1/p' $HEADERS \
- | egrep -v '^(asm|inline|EMIT|_CRT_SECURE_NO_DEPRECATE)$|^MULADDC_' \
- | sort -u > macros
+# White-list macros we want to be able to refer... | bash |
d_bash_13023 | ---
+++
@@ -1,4 +1,3 @@
-
# Mercurial
alias hgc='hg commit'
alias hgb='hg branch'
@@ -9,9 +8,11 @@
alias hged='hg diffmerge'
# pull and update
alias hgi='hg incoming'
+alias hgic='hg incoming | grep "changeset" | wc -l'
alias hgl='hg pull -u'
alias hglr='hg pull --rebase'
alias hgo='hg outgoing'
+alias hgoc=... | bash |
d_bash_13024 | ---
+++
@@ -7,3 +7,5 @@
mongo ingestion_batch_job ../indexes/ingestion_batch_job_indexes.js
mongo 02f7abaa9764db2fa3c1ad852247cd4ff06b2c0a ../indexes/tenantDb_indexes.js
mongo d36f43474916ad310100c9711f21b65bd8231cc6 ../indexes/tenantDb_indexes.js
+mongo f25ce1b8a399bd8621a57427a20039b4b13935db ../indexes/tenantDb... | bash |
d_bash_13025 | ---
+++
@@ -5,7 +5,7 @@
version=$( cat version/version )
-milestone=$( echo $version )
+milestone=${version}
if [[ $RELEASE_TYPE = "RELEASE" ]]; then
milestone=${version%.RELEASE}
fi | bash |
d_bash_13026 | ---
+++
@@ -13,7 +13,7 @@
sudo vmware-uninstall-tools.pl
fi
-if [ -e /etc/redhat-release ]; then
+if [[ -e /etc/redhat-release ]]; then
if hash yum >/dev/null 2>&1; then
sudo yum -y install gcc glibc-headers kernel-devel kernel-headers make perl
fi
@@ -21,7 +21,7 @@
if [[ -e /etc/debian_version ]]; th... | bash |
d_bash_13027 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
# Copyright (C) 2015 imi.horvath@gmail.com
-[ "$1" == "-h" -o "$1" == "--help" -o "$1" == "" -o "$#" -ne 1 ] && {
+[ "$1" == "-h" -o "$1" == "--help" -o "$1" == "" -o $# -ne 1 ] && {
cat >&2 <<HELPTEXT
Usage: `basename $0` <file>
@@ -29,4 +29,6 @@
echo -n "Uploading... "; ... | bash |
d_bash_13028 | ---
+++
@@ -8,4 +8,8 @@
export MVN="mvn --settings ${TRAVIS_BUILD_DIR}/.travis.settings.xml"
###### Maven ######
-${MVN} clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar
+if [ ${TRAVIS_SECURE_ENV_VARS} = "true" ]; then
+ ${MVN} clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sona... | bash |
d_bash_13029 | ---
+++
@@ -32,4 +32,6 @@
popd > /dev/null 2>&1
+# Enable vi style command editing.
+# This setting doesn't work when applied in shell/options.zsh
bindkey -v | bash |
d_bash_13030 | ---
+++
@@ -25,15 +25,7 @@
curl -L -o data/idents_files_urls.sqlite.gz https://archive.org/download/ia_papers_manifest_20170919/index/idents_files_urls.sqlite.gz
gunzip data/idents_files_urls.sqlite.gz
fi
-#cd python
-if ps -ef | grep ServerGateway | grep -v grep
-then
- echo "You need to kill that process above... | bash |
d_bash_13031 | ---
+++
@@ -1,4 +1,8 @@
#!/bin/bash
+
+# Copyright (c) 2017 Finn Ellis.
+# Free to use and modify under the terms of the MIT license.
+# See included LICENSE file for details.
for count in `seq -w 1 999`; do
CF3/cfdg -s 627 polaroids.cfdg polaroids/$count.png | bash |
d_bash_13032 | ---
+++
@@ -10,6 +10,8 @@
sudo apt-add-repository -y ppa:snwh/pulp
# Atom editor
sudo add-apt-repository -y ppa:webupd8team/atom
+# Neovim
+sudo add-apt-repository -y ppa:neovim-ppa/unstable
# Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo ... | bash |
d_bash_13033 | ---
+++
@@ -9,8 +9,10 @@
mkdir -p $HOME/external/st
cd $HOME/external/st
git clone http://git.suckless.org/st .
+make
# config
+rm config.h
mkdir -p $HOME/.config/st
ln -s $HOME/.config/st/config.h $HOME/external/st/config.h
| bash |
d_bash_13034 | ---
+++
@@ -7,6 +7,6 @@
exit 1
fi
-fly -t cpi set-pipeline -p "bosh-azure-cpi" \
+fly -t main-cpi set-pipeline -p "bosh-azure-cpi" \
-c ci/pipeline.yml \
--load-vars-from <(lpass show -G --sync=now "azure-cpi-bats-concourse-secrets" --notes) | bash |
d_bash_13035 | ---
+++
@@ -1,3 +1,10 @@
+# This script contains bash completions for brew.
+# To use, edit your .bashrc and add the line:
+# source <path-to-homebrew>/Library/Contributions/brew_bash_completion.sh
+#
+# Assuming you have brew installed in /usr/local, then you'll want:
+# source /usr/local/Library/Contributions/b... | bash |
d_bash_13036 | ---
+++
@@ -15,7 +15,7 @@
/usr/sbin/rabbitmq-server &
sleep 5
PORT=`epmd -names | sed '/rabbit/!d;s/.*port //'`
- ipset add containerports ${IPV6},tcp:$PORT
+ ipset -! add ${RABBITMQ_CHAIN} ${IPV6}
fg
else
if [ -f /config/.CLUSTERED ] ; then
@@ -25,7 +25,7 @@
/usr/sbin/rabbitm... | bash |
d_bash_13037 | ---
+++
@@ -5,12 +5,3 @@
# Install dependencies
apt-get install -y sudo python-software-properties curl wget
-
-# Add SCMs repositories
-add-apt-repository -y ppa:git-core/ppa
-add-apt-repository -y ppa:mercurial-ppa/releases
-add-apt-repository -y ppa:svn/ppa
-apt-get update -y
-
-# Install SCMs
-apt-get install... | bash |
d_bash_13038 | ---
+++
@@ -11,26 +11,23 @@
PY=python
# broad survey of classifiers
-SEQUENCE=`seq 4 21`
+#SEQUENCE=`seq 4 21`
# broad survey of classifiers
-#SEQUENCE="4 6"
+SEQUENCE="7"
# experiments or submissions?
-SCRIPT=run-experiment.py
-#SCRIPT=full-train-and-predict.py
+#SCRIPT=run-experiment.py
+SCRIPT=full-train... | bash |
d_bash_13039 | ---
+++
@@ -4,8 +4,8 @@
# DELETE STATIC SYMLINKS AND RECONNECT...
for dir in images javascripts templates stylesheets; do
- rm /var/lib/jenkins/jobs/Smart_Answers/workspace/public/$dir
- ln -s /var/lib/jenkins/jobs/Static/workspace/public/$dir /var/lib/jenkins/jobs/Smart_Answers/workspace/public/$dir
+ rm publ... | bash |
d_bash_13040 | ---
+++
@@ -21,6 +21,14 @@
# Do a full build for all platforms
AddTask exec ./.gopherci/mkdist.sh
+# See who got this message and decide whether to build
+BOT=$(GetBotAttribute name)
+if [ "$BOT" != "floyd" ]
+then
+ Say "Gosh, I wish that *I* could publish"
+ exit 0
+fi
+
# Publish archives to github
Add... | bash |
d_bash_13041 | ---
+++
@@ -8,3 +8,5 @@
alias ll="gls -l --color"
alias la='gls -A --color'
fi
+
+alias grep="grep --color" | bash |
d_bash_13042 | ---
+++
@@ -3,7 +3,7 @@
set -e
echo "Loading the bearer token from the metadata server..."
-curl http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token -H "Metadata-Flavor: Google" >/var/run/secrets/gke-metadata/bearer-token
+curl http://metadata.google.internal/computeMetadata... | bash |
d_bash_13043 | ---
+++
@@ -5,11 +5,11 @@
APP_NAME="<%= name %>"
APP_USER="<%= user %>"
APP_GROUP="<%= group %>"
-HOME="<%= home %>"
-HOME_LOGS="${HOME}/log"
+APP_HOME="<%= home %>"
+HOME_LOGS="${APP_HOME}/log"
LOGS="/var/log/${APP_NAME}"
-chown -R ${APP_USER}.${APP_GROUP} ${HOME}
+chown -R ${APP_USER}.${APP_GROUP} ${APP_HOME}... | bash |
d_bash_13044 | ---
+++
@@ -13,7 +13,7 @@
cmake $SOURCE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc -DCOVERAGE=ON -DCUSTOM_ALLOC=$CUSTOM_ALLOC
make
ctest
- lcov --capture --directory . --output-file coverage.info
+ lcov --capture --directory $(pwd) --output-file coverage.info
coveralls-lcov coverage.inf... | bash |
d_bash_13045 | ---
+++
@@ -10,5 +10,5 @@
## This file is not part of GNU Emacs.
##
## License: GPLv3
-cd ~/.emacs.d/core
+cd core
make test | bash |
d_bash_13046 | ---
+++
@@ -1 +1,11 @@
-alias flushdns="sudo killall -HUP mDNSResponder"
+# OS X 10.10
+alias flushdns="sudo discoveryutil udnsflushcaches"
+
+# MacOS X 10.9
+# alias flushdns="dscacheutil -flushcache; sudo killall -HUP mDNSResponder"
+
+# MacOS X 10.7 - 10.8
+# alias flushdns="sudo killall -HUP mDNSResponder"
+
+# M... | bash |
d_bash_13047 | ---
+++
@@ -6,7 +6,9 @@
. "$DIR/ansi"
ansi --yellow "Ensuring required directories exist.."
-mkdir -pv $HOME/mail
-mkdir -pv $HOME/mail/.attachments
mkdir -pv $HOME/workspace/opt
mkdir -pv $HOME/workspace/go
+
+mkdir -pv $HOME/mail/personal
+mkdir -pv $HOME/mail/work
+mkdir -pv $HOME/mail/.attachments | bash |
d_bash_13048 | ---
+++
@@ -6,7 +6,7 @@
#Latex kapittel pr undermappe
echo "\\chapter{$folder}"
- find ./sourcefiles/$folder | grep .cs > sourcecode.txt
+ find ./sourcefiles/$folder -type f > sourcecode.txt
while read line
do | bash |
d_bash_13049 | ---
+++
@@ -4,4 +4,4 @@
swift test
# Run tests for tvOS
-xcodebuild clean test -quiet -project Files.xcodeproj -scheme Files-tvOS -destination "platform=tvOS Simulator,name=Apple TV 1080p" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
+xcodebuild clean test -quiet -project Files.xcodeproj -sc... | bash |
d_bash_13050 | ---
+++
@@ -1,2 +1,2 @@
-mono ./testrunner/NUnit.Console.3.0.1/tools/nunit3-console.exe ./FreecraftCore.Serializer.Strategy.Tests/bin/Debug/FreecraftCore.Serializer.Strategy.Tests.dll
-mono ./testrunner/NUnit.Console.3.0.1/tools/nunit3-console.exe ./FreecraftCore.Serializer.Tests/bin/Debug/FreecraftCore.Serializer.Te... | bash |
d_bash_13051 | ---
+++
@@ -6,5 +6,6 @@
*/zsh) [ -f $HOME/.zprofile ] && . $HOME/.zprofile ;;
*) [ -f $HOME/.profile ] && . $HOME/.profile ;;
esac
+ export POWERLINE_CONFIG_OVERRIDES=""
exec sway 2> /tmp/sway.log
fi | bash |
d_bash_13052 | ---
+++
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -e
+
+cabal update
cabal sandbox init
| bash |
d_bash_13053 | ---
+++
@@ -24,6 +24,13 @@
)
retval=$?; if [ $retval != 0 ]; then exit $retval; fi
+# get poms from svn and generate checksums
+(
+ /home/projects/maven/components/maven-meeper/src/bin/update-poms.sh
+ retval=$?; if [ $retval != 0 ]; then exit $retval; fi
+)
+retval=$?; if [ $retval != 0 ]; then exit $retval; f... | bash |
d_bash_13054 | ---
+++
@@ -38,7 +38,7 @@
chmod +x $buildFile
# Cleanup
- if test ! -d $tempFolder; then
+ if test -d $tempFolder; then
rm -rf $tempFolder
fi
fi | bash |
d_bash_13055 | ---
+++
@@ -6,7 +6,9 @@
fi
fi
-alias b='bundle'
-alias be='bundle exec'
-alias bi='bundle install'
-alias bre='bundle exec'
+if ! hash ruby 2> /dev/null ; then
+ alias b='bundle'
+ alias be='bundle exec'
+ alias bi='bundle install'
+ alias bre='bundle exec'
+fi | bash |
d_bash_13056 | ---
+++
@@ -18,8 +18,4 @@
deb-src http://ppa.launchpad.net/$REPO/ubuntu $DISTRIB_CODENAME main
EOF
-export GNUPGHOME=$(mktemp -d --suffix=.gpg)
-chmod 0700 $GNUPGHOME
-gpg --keyserver subkeys.pgp.net --recv-keys $KEY
-gpg --export --armor $KEY | sudo apt-key add -
-rm -rf $GNUPGHOME
+apt-key adv --keyserver hkp... | bash |
d_bash_13057 | ---
+++
@@ -5,7 +5,8 @@
tests="../test/test_packages.py \
../test/test_services.py \
../test/test_files.py \
- ../test/test_http.py"
+ ../test/test_http.py \
+ ../test/test_commands.py"
# Run tests using testinfra
#
@@ -32,7 +33,7 @@
# Upgrade pip and install pips
#
pip insta... | bash |
d_bash_13058 | ---
+++
@@ -1,2 +1 @@
-go get -v github.com/robertkrimen/godocdown/godocdown
go get -v github.com/alexcesaro/log | bash |
d_bash_13059 | ---
+++
@@ -3,7 +3,7 @@
# connect with `&&` so we only run the next on success
# otherwise we `echo` and `exit 1`
-if [ -z $TRAVIS_PULL_REQUEST ]; then
+if [ $TRAVIS_PULL_REQUEST == "false" ]; then
npm run build && ./scripts/for-travis/deploy-master-branch-only.sh ||
{ echo "Ooops, ERROR cant deploy, see er... | bash |
d_bash_13060 | ---
+++
@@ -25,8 +25,6 @@
export LESS="ij.5KMRX"
export PAGER="less"
-export GREP_OPTIONS="--color"
-
# Disable ^-S in the terminal
stty -ixon -ixoff
| bash |
d_bash_13061 | ---
+++
@@ -3,19 +3,16 @@
# e.g. /home/travis/build/webignition/simplytestable-travis-integration
# Install node-jslint
-# Packaged node already present?
-nodejs -v
-
# Install nodejs
-#sudo apt-get install python-software-properties python g++ make
-#echo "yes" | sudo add-apt-repository ppa:chris-lea/node.js
-#... | bash |
d_bash_13062 | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
HOST=${DATABASE_HOST-${MARIADB_PORT_3306_TCP_ADDR-localhost}}
-PORT=${MARIADB_PORT_3306_TCP_PORT-${DATABASE_PORT-3306}}
+PORT=${DATABASE_PORT-${MARIADB_PORT_3306_TCP_PORT-3306}}
USER=${DATABASE_USER-root}
PASS=${DATABASE_PASS-${MARIADB_ENV_MYSQL_ROOT_PASSWORD}}
MYCON... | bash |
d_bash_13063 | ---
+++
@@ -9,4 +9,7 @@
}
prep
+./detect-common-errors.sh
+./detect-dead-code.sh
+./measure-maintainability-index.sh --fail-on-error
./run-linter.sh | bash |
d_bash_13064 | ---
+++
@@ -5,4 +5,4 @@
| tail -n +2 \
| grep -Ev "\w+\s+0\.00%\s+0\sB/0\sB\s+0\.00%\s+0\sB/0\sB" \
| sed 's/\// /g' \
- | awk -F '[[:space:]][[:space:]]+' '{print $1","$2","$3","$4","$5","$6","$7}'
+ | sed -E 's/\s\s+/,/g' | bash |
d_bash_13065 | ---
+++
@@ -15,4 +15,5 @@
defaults write com.jetbrains.AppCode ApplePressAndHoldEnabled -bool false
-
+defaults write com.jetbrains.intellij.ce ApplePressAndHoldEnabled -bool false
+defaults write com.jetbrains.intellij ApplePressAndHoldEnabled -bool false | bash |
d_bash_13066 | ---
+++
@@ -2,8 +2,7 @@
set -ex
-ls -al director-state
+cp -r director-state/* .
+cp -r director-state/.bosh-init/ $HOME/
-cp -r director-state/* .
-cp -r director-state/.bosh-init $HOME/
bosh-init delete bosh-init.yml | bash |
d_bash_13067 | ---
+++
@@ -1,20 +1,26 @@
#!/bin/bash
+INTERVAL=1000
+
+if [ $1 -a $1 == "FAST" ]; then
+ INTERVAL=400
+fi
+
function pulse_green {
- blink1-tool --millis 1000 --savergb 0x00,0xff,0x00,0
- blink1-tool --millis 1000 --savergb 0x00,0x00,0x00,1
+ blink1-tool --millis $INTERVAL --savergb 0x00,0xff,0x00,0
+ blink... | bash |
d_bash_13068 | ---
+++
@@ -5,6 +5,8 @@
set -o pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+docker rm -f shoko > /dev/null || :;
prettylog() {
name="$1" | bash |
d_bash_13069 | ---
+++
@@ -15,11 +15,5 @@
echo_do "brew: Testing basic packages..."
exe_and_grep_q "curl --version | head -1" "^curl 7\\."
exe_and_grep_q "git --version | head -1" "^git version 2\\."
-# IDK rsync v3 seems to be installed by homebrew, PATH is correct
-# yet `rsync --version` which should be equivalent to `/usr/lo... | bash |
d_bash_13070 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-exec /browsermob-proxy/bin/browsermob-proxy -port 9090 -proxyPortRange 9091-9091 -ttl 5
+exec /browsermob-proxy/bin/browsermob-proxy -port 9090 -proxyPortRange 9091-9091 | bash |
d_bash_13071 | ---
+++
@@ -15,7 +15,7 @@
make compile
make .unit-tests-coverage-html
elif [ ${TASK} == 'integration' ]; then
- sudo make .itests-coverage-html
+ make .itests-coverage-html
elif [ ${TASK} == 'mistral' ]; then
make .mistral-itests-coverage-html
else | bash |
d_bash_13072 | ---
+++
@@ -36,6 +36,9 @@
cd $BASE/src
gn gen out/Release
gn args out/Release
+
+ cd $BASE/src/third_party/WebKit
+ git am -3 $BASE/patches/*patch
fi
cd $BASE/src | bash |
d_bash_13073 | ---
+++
@@ -12,10 +12,17 @@
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
+# define phpunit reference and
+# download if can't find phpunit locally
+PHPUNIT="${DIR}"/phpunit.phar
+if ! [ -f "${PHPUNIT}" ]; then
+ wget -P"${DIR}" https://phar.phpunit.de/phpunit.phar
+ chmod +x "${PHPUNIT}"
+fi
+
FILTER=... | bash |
d_bash_13074 | ---
+++
@@ -3,7 +3,7 @@
echo "Downloading packages"
yum update -y --downloadonly --downloaddir=/var/preserve
yum install -y --downloadonly --downloaddir=/var/preserve cockpit git ansible skopeo podman Networkanager NetworkManager-team NetworkManager-tui NetworkManager-wifi device-mapper \
- device-mapper-event d... | bash |
d_bash_13075 | ---
+++
@@ -10,6 +10,7 @@
634159523 # MainStage 3
915542151 # Monity
935250717 # MonthlyCal
+ 928871589 # Noizio
409201541 # Pages
407963104 # Pixelmator
921553264 # Screenium 3 | bash |
d_bash_13076 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
cd ~/ocl_web
+nohup ./node_modules/protractor/bin/webdriver-manager start > nohup_ui_tests.out 2>&1 &
+sleep 3
./node_modules/protractor/bin/protractor ./ocl_web/tests/ui_tests/conf.js | bash |
d_bash_13077 | ---
+++
@@ -13,9 +13,6 @@
# grep
alias grep='grep --color=auto --exclude-dir=.git --exclude=tags --exclude=*.swp'
alias cgrep='grep --color=always --exclude-dir=.git --exclude=tags --exclude=*.swp'
-
-# Get colourful diffs with correct tabstops
-alias diff='diff --color --tabsize=4'
# Get colour for diffstat
a... | bash |
d_bash_13078 | ---
+++
@@ -13,6 +13,7 @@
# Necessary for jruby
export JAVACMD=/opt/java/jdk8/bin/java
+export PATH=$PATH:/opt/java/jdk8/bin
if [ "$RVM_RUBY" == "ruby-head" ]; then
rvm reinstall $RVM_RUBY | bash |
d_bash_13079 | ---
+++
@@ -14,8 +14,8 @@
# For the moment, go1.4.3 is a better choice than go1.5.1
# Because building with go1.5.1 is 2-4x slower than 1.4.3
# And there's no big difference in the result
-# GO_VERSION='go1.4.3'
+GO_VERSION='go1.4.3'
# Enable go1.5.1 by commenting above and uncommenting here
-GO_BOOTSTRAP_VERSI... | bash |
d_bash_13080 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
set +x
-wget https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz -O /tmp/geckodriver.tar.gz && \
+wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz -O /tmp/geckodriver.tar.gz &&... | bash |
d_bash_13081 | ---
+++
@@ -21,15 +21,16 @@
"$INSTALLER" install -y sed
arch=`uname -p`
-rpm=$(ls /container/rpms/cockpit-ws-*$OSVER.*$arch.rpm /container/rpms/cockpit-bridge-*$OSVER.*$arch.rpm || true)
+rpm=$(ls /container/rpms/cockpit-ws-*$OSVER.*$arch.rpm /container/rpms/cockpit-bridge-*$OSVER.*$arch.rpm /container/rpms/cockp... | bash |
d_bash_13082 | ---
+++
@@ -15,13 +15,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-j2objc_version=0.9.6.3
+j2objc_version=0.9.7
if [[ -d dist ]]; then
exit
fi
echo "fetching j2objc"
-curl -OL https://github.com/hambroperks/j2objc/releases/download/v${j2ob... | bash |
d_bash_13083 | ---
+++
@@ -12,6 +12,7 @@
alias dumpdb="mysqldump > ${PROJECT_SQL}" # Dump the database to sql file
alias restoredb="\mysql -e \"DROP DATABASE ${PROJECT_DB}\" &>/dev/null ; \mysql -e \"CREATE DATABASE ${PROJECT_DB}\" ; mysql < ${PROJECT_SQL}" # Restore the database using the sql file
-alias prod-http="xdg-ope... | bash |
d_bash_13084 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/sh
echo $PATH
-PATH=`echo $PATH | sed -re 's/\/usr\/local\/cmake-[[:digit:]].[[:digit:]][[:digit:]]*\/bin(:)?//'`
+PATH=`echo $PATH | sed -re 's/\/usr\/local\/cmake-[[:digit:]]\.[[:digit:]][[:digit:]]\.[[:digit:]]+\/bin//'`
echo $PATH | bash |
d_bash_13085 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-DIR=`pwd`
+DIR=$(cd $(dirname ${BASH_SOURCE:-$0}); pwd)
TARGET=/home
echo Now mounting ${TARGET} volume to the analysis container.. | bash |
d_bash_13086 | ---
+++
@@ -10,6 +10,7 @@
case "$1" in
update)
echo "updating tv.js from $TVJS_REPO"
+ su - $USER
rm -rf $TVJS_DIR
mkdir $TVJS_DIR
git clone $TVJS_REPO $TVJS_DIR
@@ -20,6 +21,7 @@
start)
echo "starting tv.js: $TVJS_DIR"
+ su - $USER
cd $TVJS_DIR
rake run > $OUT 2>$OUT &
export DISPLAY=:0.0 | bash |
d_bash_13087 | ---
+++
@@ -32,7 +32,23 @@
set -e
fi
-sudo hostname $HOSTNAME
-echo "$HOSTNAME" | sudo tee /etc/hostname
-echo "HOSTNAME=$HOSTNAME" | sudo tee -a /etc/sysconfig/network
-echo "$IP $HOSTNAME $HOSTNAME_SHORT" | sudo tee -a /etc/hosts
+if [[ $HOSTNAME != '' ]]
+then
+ sudo hostname $HOSTNAME
+ sudo sed -i '/HOST... | bash |
d_bash_13088 | ---
+++
@@ -26,6 +26,6 @@
# yes | mk-build-deps -i ${SRC_DIR}/debian/control
pushd ${SRC_DIR}
- DEB_BUILD_OPTIONS='nocheck parallel=6' debuild -us -uc -b > debuild.log
+ DEB_BUILD_OPTIONS='nocheck parallel=6' debuild -us -uc -b | tee debuild.log
popd
cp greenplum-db*.deb deb_package_ubuntu16/greenplum-db.... | bash |
d_bash_13089 | ---
+++
@@ -1,6 +1,9 @@
OS_CODENAME=$(lsb_release --codename --short)
apt-get purge mysql*
+
+sudo rm -rf /etc/mysql
+sudo rm -rf /var/lib/mysql
apt-get install python-software-properties
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db | bash |
d_bash_13090 | ---
+++
@@ -10,5 +10,5 @@
grunt lint --verbose
if [[ $TRAVIS_BUILD_NUMBER ]] ; then
- sed -i "s/{BUILD_NR}/$TRAVIS_BUILD_NUMBER/" $DIR/app/util/Config.js
+ sed -i "s/{BUILD_NR}/$TRAVIS_BUILD_NUMBER/" $DIR/../app/util/Config.js
fi | bash |
d_bash_13091 | ---
+++
@@ -28,6 +28,7 @@
mkdir /var/run/dbus
dbus-daemon --system
if [ "${AVAHI}" == "1" ]; then
+ sed -i '/rlimit-nproc/d' /etc/avahi/avahi-daemon.conf
avahi-daemon -D
else
echo "Skipping avahi daemon, enable with env variable AVAHI=1" | bash |
d_bash_13092 | ---
+++
@@ -35,3 +35,8 @@
sudo rm -rf $(which node)
! node
fi
+
+# The debugger tests require a kernel that supports debugging
+if [[ $GROUP == js-debugger ]]; then
+ pip install xeus-python>=0.8
+fi | bash |
d_bash_13093 | ---
+++
@@ -1,9 +1,6 @@
-PKGURL=https://github.com/libgd/libgd/archive/gd-2.1.1.tar.gz
-PKGHASH=b089ee7fc0b47b8aa4c2c70087506806637f03be
+PKGURL=http://www.lambdanative.org/libgd-2.1.1/libgd-2.1.1.tar.gz
+PKGHASH=7abafc6f04a1de784a3e619a82239933a5155866
package_download $PKGURL $PKGHASH
-
-# This version needs boots... | bash |
d_bash_13094 | ---
+++
@@ -19,6 +19,6 @@
free -h;
fi
-ci/corecryptotest_reduce_keysize.sh
+.ci/corecryptotest_reduce_keysize.sh
make -C src test OTHERFLAGS=--lax
make -C examples/unit-tests | bash |
d_bash_13095 | ---
+++
@@ -37,7 +37,7 @@
install(){
echo 'Installing project dependencies...'
npm install
- bower install
+ bower install --config.interactive=false
}
# Run tasks to build the project for distribution. | bash |
d_bash_13096 | ---
+++
@@ -16,4 +16,26 @@
# Install homebrew packages
brew install grc coreutils spark ack ctags ffmpeg git mutt siege tidy tmux tofrodos watch wget youtube-dl yuicompressor node
+# Tap Cask, to allow us to install GUI's
+brew tap phinze/cask
+
+# Install Cask
+brew install brew-cask
+
+# Install GUI's
+brew cas... | bash |
d_bash_13097 | ---
+++
@@ -14,7 +14,7 @@
fi
MAGE_MODE="${MAGE_MODE:-developer}"
-if [[ $WEB_ROOT/app/etc/env.php -ot $WEB_ROOT/app/etc/env.php.$MAGE_MODE ]]
+if [[ -f $WEB_ROOT/app/etc/env.php.$MAGE_MODE ]]
then
cp -p $WEB_ROOT/app/etc/env.php.$MAGE_MODE $WEB_ROOT/app/etc/env.php
fi | bash |
d_bash_13098 | ---
+++
@@ -6,7 +6,7 @@
set -e
ROOT=`cd "$(dirname $0)/.." ; pwd`
-COMPONENTS=(. core gui)
+COMPONENTS=(. core ui)
GRAPH_CMD="
neato | bash |
d_bash_13099 | ---
+++
@@ -1,6 +1,10 @@
#!/bin/bash
set -e
+
+# Sassc installs to ${HOME}/${BIN}. More generally, new binaries should probably
+# go here anyway.
+export PATH="${PATH}:${HOME}/bin"
# Find all the changed containers
CHANGED_CONTAINERS=$(git diff --name-only master | grep 'build\/docker' | sed -e 's/build\/doc... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.