document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_10800 | ---
+++
@@ -5,4 +5,10 @@
dotnet restore
dotnet build
dotnet run -input "1+2"
-
+if [[ "$?" != "0" ]]
+then
+ echo "Issue 2693 test failed."
+ exit 1
+else
+ echo "Test passed--did not crash."
+fi | bash |
d_bash_10801 | ---
+++
@@ -5,8 +5,6 @@
if [ -z "$SOURCE_DIRECTORY" ]; then
SOURCE_DIRECTORY="."
fi
-
-export LD_PRELOAD=../vespa/fsa/libfsa.so:../vespa/fsamanagers/libfsamanagers.so
# first create the FSA
./fsa_fsa_create_test_app | bash |
d_bash_10802 | ---
+++
@@ -9,14 +9,14 @@
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then
url_latest="s3://android.mapzen.com/tangram-latest.apk"
echo "Uploading latest build to $url_latest"
- s3cmd put android/demo/build/outputs/apk/demo-debug.apk $url_latest
+ ... | bash |
d_bash_10803 | ---
+++
@@ -1,8 +1,8 @@
#!/bin/bash
# NOTE: Remove all rrds which might be around from an earlier run
-rm -rf /var/lib/ganglia/rrds/spark/*
-rm -rf /mnt/ganglia/rrds/spark/*
+rm -rf /var/lib/ganglia/rrds/*
+rm -rf /mnt/ganglia/rrds/*
# Make sure rrd storage directory has right permissions
mkdir -p /mnt/gangli... | bash |
d_bash_10804 | ---
+++
@@ -1,7 +1,7 @@
set -e
-TC_X64=beta-x86_64-pc-windows-msvc
-TC_X32=nightly-i686-pc-windows-msvc
+TC_X64=stable-x86_64-pc-windows-msvc
+TC_X32=stable-i686-pc-windows-msvc
ACTIVE_TC=$(rustup show active-toolchain | awk '{print $1}')
@@ -22,12 +22,15 @@
}
rustup default $TC_X64
+cargo clean
cargo bu... | bash |
d_bash_10805 | ---
+++
@@ -1,2 +1,4 @@
#!/bin/bash
python3 plumb_files.py --current-user --force
+git clone https://github.com/VundleVim/Vundle.vim.git ../.vim/bundle/Vundle.vim
+vim -c VundleInstall -c qa | bash |
d_bash_10806 | ---
+++
@@ -13,6 +13,18 @@
/etc/pki/tls
/var/cache/pydio
)
+
+change_uids()
+{
+if [ ! -z "$UID" ]; then
+ usermod -u $UID apache
+ chown -R apache /var/lib/pydio
+fi
+if [ ! -z "$GID" ]; then
+ groupmod -g $GID apache
+ chgrp -R apache /var/lib/pydio
+fi
+}
move_dirs()
{
@@ -33,6 +45,7 @@
... | bash |
d_bash_10807 | ---
+++
@@ -16,8 +16,8 @@
conda config --set safety_checks disabled
conda config --set channel_priority strict
-mkdir -p /home/$USER/.conda/pkg
-conda config --prepend pkgs_dirs /home/$USER/.conda/pkg
+mkdir -p ~/.conda/pkg
+conda config --prepend pkgs_dirs ~/.conda/pkg
conda config --show
| bash |
d_bash_10808 | ---
+++
@@ -32,7 +32,7 @@
-openmp $3
cd $SUBJECTS_DIR
-tar cJf $WD/$2_output.tar.xz *
+tar czf $WD/$2_output.tar.gz *
cd $WD
| bash |
d_bash_10809 | ---
+++
@@ -1,4 +1,11 @@
#!/bin/bash
+
+if [[ ! -d "/var/log/kolla/rally" ]]; then
+ mkdir -p /var/log/kolla/rally
+fi
+if [[ $(stat -c %a /var/log/kolla/rally) != "755" ]]; then
+ chmod 755 /var/log/kolla/rally
+fi
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KO... | bash |
d_bash_10810 | ---
+++
@@ -6,12 +6,18 @@
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
+if [ ! -d "build" ]; then
+ mkdir build
+fi
+
+parameters=" -f progress,junit --out ,build/junit"
+
echo "Running Behat default test suite"
-bin/behat -f prog... | bash |
d_bash_10811 | ---
+++
@@ -2,6 +2,11 @@
POWERLINE_COMMAND=( $PWD/scripts/powerline -p $PWD/powerline/config_files )
POWERLINE_COMMAND=( $POWERLINE_COMMAND -t default_leftonly.segment_data.hostname.args.only_if_ssh=false )
POWERLINE_COMMAND=( $POWERLINE_COMMAND -c ext.shell.theme=default_leftonly )
+setopt interactivecomments
+# ... | bash |
d_bash_10812 | ---
+++
@@ -3,4 +3,4 @@
# some IBAN codes are not valid according to the XSD, let's fix this
find "$WORKDIR" -type f -print0 -iname "*.xml" | xargs -0 sed -i 's/XXXXXXXXXXXXXXX/XX00XXXXXXXXXXX/g'
-java -jar database-uploader-exec.jar
+java -jar database-uploader-exec.jar "$?" | bash |
d_bash_10813 | ---
+++
@@ -7,5 +7,6 @@
alias krona="ssh krona.strawpay.com $*"
alias mark="ssh mark.strawpay.com $*"
alias dublon="ssh dublon.strawpay.com $*"
+alias escudo="ssh escudo.strawpay.com $*"
| bash |
d_bash_10814 | ---
+++
@@ -26,9 +26,12 @@
hdiutil makehybrid -iso -o dux.iso \
-eltorito-boot isofs/boot/grub/stage2_eltorito \
-no-emul-boot isofs
- ./tools/bootinfo isofs/boot/grub/stage2_eltorito dux.iso
else
- $isocmd -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -input-charset utf-8 ... | bash |
d_bash_10815 | ---
+++
@@ -1 +1,3 @@
-vegeta attack --duration ${DURATION} --rate ${RATE} --targets targets | vegeta report -reporter='hist[0,20ms,40ms,60ms,100ms,200ms,1s,2s,3s]'
+vegeta attack --duration ${DURATION} --rate ${RATE} --targets targets > result.bin
+vegeta report -inputs result.bin
+vegeta report -inputs result.bin -... | bash |
d_bash_10816 | ---
+++
@@ -14,7 +14,12 @@
cmake ..
make --jobs=$(nproc)
+# Run the reactor unit tests.
+./ReactorUnitTests
+
# Run the GLES unit tests. TODO(capn): rename.
./unittests
-./ReactorUnitTests
+# Run the Vulkan unit tests.
+cd .. # Must be run from project root
+build/vk-unittests | bash |
d_bash_10817 | ---
+++
@@ -3,6 +3,6 @@
# Deploy a snapshot build to Sonatype. Only non-pull requests will be deployed.
#
-if [[ "${TRAVIS_PULL_REQUEST}" != "false" ]]; then
+if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
mvn --settings scripts/mvn_settings.xml -DskipTests=true source:jar javadoc:jar deploy
fi | bash |
d_bash_10818 | ---
+++
@@ -20,6 +20,9 @@
# Use thoughtbot's laptop script to set everything up
"$DIR/laptop.sh"
+# Exuberant Ctags
+brew install ctags
+
# Visualization library
brew install graphviz
| bash |
d_bash_10819 | ---
+++
@@ -2,4 +2,19 @@
FWDIR="$(cd `dirname $0`; pwd)"
-$FWDIR/sparkR pkg/tests/run-all.R
+FAILED=0
+rm -f unit-tests.log
+
+$FWDIR/sparkR pkg/tests/run-all.R 2>&1 | tee -a unit-tests.log
+FAILED=$((PIPESTATUS[0]||$FAILED))
+
+if [[ $FAILED != 0 ]]; then
+ echo -en "\033[31m" # Red
+ echo "Had test fail... | bash |
d_bash_10820 | ---
+++
@@ -12,8 +12,8 @@
DRYRUN=1
## Change these for your needs
-SOURCE='/source-dir'
-DEST='/dest-dir'
+SOURCE="/source-dir/"
+DEST="/dest-dir"
PATTERN='*.lnk'
############### END CONFIGURATION ###############
@@ -31,12 +31,12 @@
then
clear
echo -e "************DRY RUN************\n"
- find $SOURCE -n... | bash |
d_bash_10821 | ---
+++
@@ -9,3 +9,13 @@
chap5/chap5.md \
chap5/chap5-windows.md \
-o VulkanApiBook.epub --epub-stylesheet book.css --toc
+
+pandoc book.md \
+ chap2/chap2.md \
+ chap3/chap3.md \
+ chap4/chap4.md \
+ chap4/chap4-linux.md \
+ c... | bash |
d_bash_10822 | ---
+++
@@ -16,7 +16,7 @@
cp ../index.html .
# Download a fresh copy of reveal.js
rm -rf reveal.js
-curl -L https://github.com/hakimel/reveal.js/archive/3.2.0.tar.gz | tar xz
+curl -L https://github.com/hakimel/reveal.js/archive/3.3.0.tar.gz | tar xz
mv reveal.js* reveal.js
# Add, commit and push files
git add ... | bash |
d_bash_10823 | ---
+++
@@ -32,8 +32,12 @@
fi
if [ "$lts" == "$latest" ]; then
- docker tag nodesource/$img:$lts $registry/$img:latest
- docker push $registry/$img:latest
+ if [[ $is3 == "true" ]] && [[ $img == "nsolid-storage" ]]; then
+ :
+ else
+ docker tag nodesource/$img:$lts $regis... | bash |
d_bash_10824 | ---
+++
@@ -41,6 +41,7 @@
cd ~/.local-src
git clone https://github.com/SymbiFlow/yosys.git -b master+wip
cd yosys
+ make config-gcc # Build Yosys using GCC
PREFIX=$HOME/.local-bin make -j$(nproc)
PREFIX=$HOME/.local-bin make install
echo $(which yosys) | bash |
d_bash_10825 | ---
+++
@@ -11,7 +11,7 @@
PHP
wp core install --url=wp352.wordpress.dev --title="wp352" --admin_user=admin --admin_password=password --admin_email=admin@localhost.dev --allow-root
- otgs_checkout
+ /vagrant/provision/vov_checkout
cd -
| bash |
d_bash_10826 | ---
+++
@@ -7,6 +7,11 @@
brew install --build-bottle ./hhvm-nightly.rb
rm *.json || true
brew bottle --force-core-tap --root-url=https://dl.hhvm.com/homebrew-bottles --json ./hhvm-nightly.rb
+# FIXME: Unsure what's intended here for now
+# See https://discourse.brew.sh/t/double-dash-bottle-naming-details/2712
+for... | bash |
d_bash_10827 | ---
+++
@@ -43,4 +43,5 @@
alias caskl='brew list --cask'
alias casko='brew outdated --cask'
alias casks='brew search --cask'
+alias casku='brew upgrade --cask'
alias caskx='brew uninstall --cask' | bash |
d_bash_10828 | ---
+++
@@ -11,6 +11,7 @@
--enable-gc \
--exclude='error return value not checked.*(Close|Log|Print).*\(errcheck\)$' \
--exclude='.*_test\.go:.*error return value not checked.*\(errcheck\)$' \
+ --exclude='declaration of.*err.*shadows declaration.*\(vetshadow\)$'\
--exclude='duplicate of.*_test.go.*\(dupl\)$'... | bash |
d_bash_10829 | ---
+++
@@ -1,3 +1,3 @@
#!/usr/bin/env sh
-git push origin $(./node_modules/.bin/git-current-branch)
+git push origin $(/usr/local/lib/node_modules/ggpush/node_modules/.bin/git-current-branch) | bash |
d_bash_10830 | ---
+++
@@ -9,6 +9,7 @@
--namespace=${KUBE_ENV_STAGING_NAMESPACE} \
--values ${HELM_DIR}/values-staging.yaml \
--set host=$STAGING_HOST \
+ --set ingress.enabled=false \
--set image.repository=$DOCKER_REPOSITORY \
--set image.tag=$IMAGE_TAG \
--force \ | bash |
d_bash_10831 | ---
+++
@@ -32,33 +32,7 @@
kind: ServiceAccount
name: tiller
namespace: kube-system
-### Generic ###
-# Create a ClusterRole to work with ElasticsearchCluster resources
-- apiVersion: rbac.authorization.k8s.io/v1beta1
- kind: ClusterRole
- metadata:
- name: navigator:authenticated
- # this rule d... | bash |
d_bash_10832 | ---
+++
@@ -16,7 +16,6 @@
mkdir -p "$UAA_APP_FOLDER"
cp -f "$JHIPSTER_SAMPLES"/uaa/.yo-rc.json "$UAA_APP_FOLDER"/
cd "$UAA_APP_FOLDER"
- yarn link generator-jhipster
jhipster --force --no-insight --with-entities --skip-checks
ls -al "$UAA_APP_FOLDER"
fi | bash |
d_bash_10833 | ---
+++
@@ -1,13 +1,5 @@
#!/bin/bash
+set -eu
-rm -rf $(find vendor/* -maxdepth 0 ! -name 'vendor.json')
-
-go get -u github.com/kardianos/govendor
-govendor sync
-
-CHANGES=`git diff`
-if [ -n "$CHANGES" ] ; then
- echo "vendor does not match the lock:"
- echo $CHANGES
- exit 1
-fi
+go get github.com/kar... | bash |
d_bash_10834 | ---
+++
@@ -8,7 +8,7 @@
$PYTHON shadowsocks/local.py -c tests/aes.json &
LOCAL=$!
-$PYTHON shadowsocks/server.py -c tests/aes.json &
+$PYTHON shadowsocks/server.py -c tests/aes.json --forbidden-ip "" &
SERVER=$!
sleep 3 | bash |
d_bash_10835 | ---
+++
@@ -33,11 +33,7 @@
# Try to connect for one minute
for i in $(seq 12); do
if {
- kubectl version 2>/dev/null >/dev/null && {
- # Apply some manual changes to fix DNS.
- kubectl -n kube-system describe sa/kube-dns ||
- kubectl -n kube-system create sa kube-dns
- }
+ ... | bash |
d_bash_10836 | ---
+++
@@ -3,14 +3,15 @@
# Allow using the docker socket without root.
sudo chgrp docker /var/run/docker.sock
+# Start-up the GPG-Agent for managing SSH and GPG so they can be used across
+# all tmux panes/windows.
+gpg-agent --daemon --enable-ssh-support --disable-scdaemon > $HOME/.gpg-agent-env
+
# Start TMUX... | bash |
d_bash_10837 | ---
+++
@@ -1,14 +1,20 @@
#! /bin/sh
-if [ "`php -r 'echo substr(PHP_VERSION, 0, 3);'`" = "5.3" ]; then
+if [ "$(php -r 'echo substr(PHP_VERSION, 0, 3);')" = "5.3" ]; then
wget http://pecl.php.net/get/apc-3.1.9.tgz
tar -xzf apc-3.1.9.tgz
- sh -c "cd APC-3.1.9 && phpize && ./configure --enable-apc && make && su... | bash |
d_bash_10838 | ---
+++
@@ -26,7 +26,7 @@
ls -lht ${SRC_DIR}/${SOURCE_FILE}
echo "extracting the tarball"
tar xfz ${SRC_DIR}/${SOURCE_FILE} -C ${WORKSPACE}
-echo "Going to ${WORKSPACE}/${NAME}-${VERSION"}
+echo "Going to ${WORKSPACE}/${NAME}-${VERSION}"
cd ${WORKSPACE}/${NAME}
mkdir build-${BUILD_NUMBER}
cd ${BUILD_NUMBER} | bash |
d_bash_10839 | ---
+++
@@ -5,7 +5,7 @@
#--------------------------------------------------
cd "$HOME"/app
if [ "$JHIPSTER" == "app-default-from-scratch" ]; then
- if [ "$TRAVIS_REPO_SLUG" = "jhipster/generator-jhipster"] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
+ if [ "$TRAVIS_REPO_SLUG"... | bash |
d_bash_10840 | ---
+++
@@ -18,8 +18,8 @@
git commit -m "Can't you see I'm updating the time?"
if ! [ -e lock ]; then
(touch lock; \
- git pull --rebase origin master; \
- git push origin master; \
+ git pull --rebase origin master || rm lock; \
+ git push origin master || rm lock; ... | bash |
d_bash_10841 | ---
+++
@@ -15,6 +15,7 @@
exec /hyperkube apiserver ${args} \
--advertise-address="${weave_ip}" \
+ --admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota \
--external-hostname="kube-apiserver.weave.local" \
--etcd-servers="${etcd_cluster}" \
... | bash |
d_bash_10842 | ---
+++
@@ -1,5 +1,25 @@
#!/bin/bash
+
+WAIT_SERVICE_READY=10
+
+function check_service(){
+ status=$($WORKDIR/control status)
+ echo $status | grep -q "stoped"
+ if [ $? -eq 0 ] ; then
+ return 1
+ else
+ return 0
+ fi
+}
+
tar -zxf $PACKDIR/$PACKFILE -C $WORKDIR
cp $CONFIGDIR/$CONFIGFILE $WORKDIR
$WO... | bash |
d_bash_10843 | ---
+++
@@ -3,4 +3,4 @@
set -o pipefail
TESTRARGS=$1
-python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f
+python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | python $(which subunit-trace) -f | bash |
d_bash_10844 | ---
+++
@@ -16,16 +16,13 @@
echo ">> Starting $test"
./bin/$test
- #Find all .cpp files, cd to their folder and run gcov
- find ./libraries -type f -name "*.cpp" -execdir gcov {} \;
- #find . -name "*.cpp" -exec gcov {} \; > /dev/null
- #find . -name "*.cpp" -exec gcov -p -s ${PWD} {} \; > /dev/null
+ # Fin... | bash |
d_bash_10845 | ---
+++
@@ -1,8 +1,8 @@
#!/usr/bin/bash -x
# VirtualBox Guest Additions
-# https://wiki.archlinux.org/index.php/VirtualBox
-/usr/bin/pacman -S --noconfirm linux-headers virtualbox-guest-utils virtualbox-guest-modules-arch nfs-utils
+# https://wiki.archlinux.org/index.php/VirtualBox/Install_Arch_Linux_as_a_guest
+... | bash |
d_bash_10846 | ---
+++
@@ -10,7 +10,5 @@
sed -e 's/%%ELASTICSEARCH_VERSION%%/'"$VERSION"'/g' -e 's/%%ELASTICSEARCH_MAJOR%%/'"$MAJOR"'/g' Dockerfile.template > "$MAJOR"/Dockerfile
pushd "$MAJOR"
-docker build --no-cache=true -t stefanofontanelli/elasticsearch .
-docker tag -f stefanofontanelli/elasticsearch:latest stefanofontane... | bash |
d_bash_10847 | ---
+++
@@ -1,12 +1,16 @@
#!/bin/bash
-sudo apt-get -qy install git
+sudo apt-get -qy install git libdb-dev build-essential libz-dev libreadline5-dev libncursesw5-dev libssl-dev libgdbm-dev libsqlite3-dev libbz2-dev liblzma-dev libc6-dev tk-dev
-curl -s -L https://raw.githubusercontent.com/yyuu/pyenv-installer/m... | bash |
d_bash_10848 | ---
+++
@@ -1,3 +1,3 @@
-export NODE_PATH="/usr/local/lib/node_modules"
+[ -s $HOME/.nvm/nvm.sh ] && . $HOME/.nvm/nvm.sh # This loads NVM
if which npm > /dev/null; then . <(npm completion); fi | bash |
d_bash_10849 | ---
+++
@@ -17,7 +17,7 @@
echo $PASSWORD | kinit admin
# Install support for trusts
-sudo ipa-adtrust-install --netbios-name=$NETBIOS -a $PASSWORD --add-sids
+sudo ipa-adtrust-install --netbios-name=$NETBIOS -a $PASSWORD --add-sids -U
# Configure DNS only if on master
if [[ $1 == '' ]] | bash |
d_bash_10850 | ---
+++
@@ -16,6 +16,7 @@
# https://marcqualie.com/2015/08/remove-deleted-git-branches
alias gbc="git --no-pager branch -vv | grep ': gone]' | awk '{print \$1}' | xargs git branch -D"
alias git-branch-cleanup="gbc"
+alias git-set-main-branch="git branch -m master main && git fetch origin && git branch -u origin/ma... | bash |
d_bash_10851 | ---
+++
@@ -16,6 +16,7 @@
}
install_service() {
+ ls -al /tmp/vmkite
sudo mv /tmp/vmkite/vmkite-buildkite-agent.sh /usr/local/bin/vmkite-buildkite-agent
sudo mv /tmp/vmkite/vmkite-buildkite-agent.service /lib/systemd/system/vmkite-buildkite-agent.service
sudo systemctl enable vmkite-buildkite-agent | bash |
d_bash_10852 | ---
+++
@@ -4,7 +4,7 @@
# regenerate the `pkgs/default.nix` file based on the current contents of cardano-sl.cabal and stack.yaml
function runInShell {
- nix-shell -j 4 -p nix cabal2nix glibcLocales --pure --run "LANG=en_US.utf-8 NIX_REMOTE=daemon NIX_PATH=$NIX_PATH $*"
+ nix-shell -j 4 -p nix cabal2nix glibcLo... | bash |
d_bash_10853 | ---
+++
@@ -19,4 +19,6 @@
# or whenever the deb packages have been upgraded to awscli version 2.0.
# exe_and_grep_q "aws --version | head -1" "^aws-cli/2\\."
exe_and_grep_q "aws --version | head -1" "^aws-cli/[12]\\."
+# check that we get a recent enough aws client.
+exe_and_grep q "aws cloudformation detect-stack... | bash |
d_bash_10854 | ---
+++
@@ -6,7 +6,7 @@
# Exit on error
set -e
-echo "[$(date +%Y%m%dT%H%M%S)] ${USER}@$(hostname) :: $(python --version)"
+echo "[$(date +%Y%m%dT%H%M%S)] ${USER}@$(hostname) :: $(python --version 2>&1)"
echo
| bash |
d_bash_10855 | ---
+++
@@ -5,8 +5,9 @@
# This will get the jump box to where it can deploy infrastrucutre to AWS
-TERRAFORM_URL=https://releases.hashicorp.com/terraform/0.6.13/terraform_0.6.13_linux_amd64.zip
-TERRAFORM_ZIP=terraform_0.6.13_linux_amd64.zip
+TERRAFORM_URL=https://releases.hashicorp.com/terraform/0.6.14/terrafor... | bash |
d_bash_10856 | ---
+++
@@ -3,4 +3,4 @@
alias server='ruby -run -ehttpd'
alias spec='SKIP_EMBER=true SELENIUM=true bundle exec rspec'
alias rspec='SKIP_EMBER=true SELENIUM=true bundle exec rspec'
-alias spec_under_development='SKIP_EMBER=true SELENIUM=true bundle exec rspec `git diff develop --name-only spec/|grep .rb$|grep -v /f... | bash |
d_bash_10857 | ---
+++
@@ -28,26 +28,27 @@
exit 1
fi
-### Install utils
-
+# ### Install utils
+#
UTILS=(direnv ripgrep neovim fzf fd tig diff-so-fancy chezmoi)
for i in "${UTILS[@]}"
do
+ echo "--> installing $i"
$(echo "$INSTALLER $i")
done
-
-### Apply dotfiles
-
-chezmoi init https://github.com/ifyouseewendy/dot... | bash |
d_bash_10858 | ---
+++
@@ -4,6 +4,9 @@
# Add tempest source tree to PYTHONPATH
export PYTHONPATH=$PYTHONPATH:$TEMPEST_DIR
+
+# Add tempest config file path to env variables
+export TEMPEST_CONFIG_DIR=${TEMPEST_CONFIG_DIR:-$TEMPEST_DIR/etc/}
#installing requirements for tempest
pip install -r $TEMPEST_DIR/requirements.txt | bash |
d_bash_10859 | ---
+++
@@ -2,6 +2,8 @@
# Bring all wifi interfaces down.
# Identify wifi interfaces as rows from standard output of iwconfig (NOT standard
# error, those are non-wifi interfaces) which start without whitespace.
+sleep 30
iwconfig 2> /dev/null | grep -o '^[[:alnum:]]\+' | while read x; do ifdown $x; done
# Bring... | bash |
d_bash_10860 | ---
+++
@@ -10,6 +10,7 @@
RCLOCAL=/etc/rc.local
PRESERVE $RCLOCAL
+FRESH $RCLOCAL
RUNNER=/home/pi/RoboticLightBallet/pi-setup/pi-run-code.sh
chmod +x $RUNNER | bash |
d_bash_10861 | ---
+++
@@ -16,12 +16,12 @@
# limitations under the License.
-[ $# -ne 2 ] && { echo "Usage: $0 mysql-server database_name"; exit 1; }
+[ $# -ne 4 ] && { echo "Usage: $0 --host=mysql-server --port=port --user=user database_name"; exit 1; }
set -euo pipefail
-"$1" "$2" --column-names=false -e "SHOW FULL TABL... | bash |
d_bash_10862 | ---
+++
@@ -18,7 +18,7 @@
./start-node.sh $index
done
-echo "Waiting 30 seconds for bridge network to settle."
+echo "Waiting 30 seconds for zookeeper nodes to find each other."
sleep 30
echo "" | bash |
d_bash_10863 | ---
+++
@@ -16,11 +16,12 @@
}
# Make a string replacement in ALL files RECURSIVELY starting in the current directory.
-# Intentionally ignores '.git' directories, unless you're already in it.
+# For safety, this ignores files within hidden '.git' directories, and only works inside a git repo.
#
# @param $1 - Th... | bash |
d_bash_10864 | ---
+++
@@ -14,11 +14,11 @@
# Update pip dependencies.
bash ${TWLIGHT_HOME}/bin/virtualenv_pip_update.sh || exit 1
+# Process static assets.
+bash ${TWLIGHT_HOME}/bin/virtualenv_clearstatic.sh || exit 1
+
# Run migrations.
bash ${TWLIGHT_HOME}/bin/virtualenv_migrate.sh || exit 1
# Compile translations.
bash... | bash |
d_bash_10865 | ---
+++
@@ -5,3 +5,4 @@
mv pyuv-*/pyuv.cpython-33m.so pyuv-x86.so
vagrant ssh x64 -c "cd /vagrant && sh -xe build_pyuv_linux_vagrant.sh"
mv pyuv-*/pyuv.cpython-33m.so pyuv.so
+vagrant halt | bash |
d_bash_10866 | ---
+++
@@ -1,10 +1,25 @@
#!/usr/bin/env bash
+# Since GOPATH can be a path, we can't just use it as a variable. Split it up
+# to the various paths, and append the subpaths.
+GOSUBPATHS="/src:/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis"
+GOPATHLIST=""
+OIFS=$IFS
+IFS=':'
+for GOBASEPATH ... | bash |
d_bash_10867 | ---
+++
@@ -10,6 +10,7 @@
oc policy add-role-to-user edit system:serviceaccount:$(oc project -q):deployer
curl -s https://raw.githubusercontent.com/enmasseproject/openshift-configuration/master/enmasse-template.yaml | oc process -f - | oc create -f -
$DIR/wait_until_up.sh 7 || exit 1
+sleep 20 # TODO: check deploy... | bash |
d_bash_10868 | ---
+++
@@ -2,4 +2,6 @@
PROJECT_NAME=${PROJECT_NAME:-demo}
-docker rm -v ${PROJECT_NAME}-workspace
+if [ -n "$(docker ps -a | grep ${PROJECT_NAME}-workspace)" ]; then
+ docker rm -v ${PROJECT_NAME}-workspace
+fi | bash |
d_bash_10869 | ---
+++
@@ -1,5 +1,9 @@
# Kill the whole script on error
set -e
+
+echo "-------- Running Typhoeus 0.4 Specs ---------"
+bundle install --gemfile=gemfiles/typhoeus-old.gemfile
+BUNDLE_GEMFILE=gemfiles/typhoeus-old.gemfile bundle exec rspec spec/vcr/library_hooks/typhoeus_0.4_spec.rb --format progress --backtrace
... | bash |
d_bash_10870 | ---
+++
@@ -1,2 +1,2 @@
#! /bin/sh
-./manage.py celeryd --verbosity=2 --loglevel=DEBUG
+./manage.py celeryd --verbosity=2 --loglevel=DEBUG -c 4 | bash |
d_bash_10871 | ---
+++
@@ -1,12 +1,12 @@
#!/bin/bash
-./LennardJones.py 0.1
-./LennardJones.py 0.2
-./LennardJones.py 0.3
-./LennardJones.py 0.4
-./LennardJones.py 0.5
-./LennardJones.py 0.6
-./LennardJones.py 0.7
-./LennardJones.py 0.8
-./LennardJones.py 0.9
-./LennardJones.py 1.0
-./LennardJones.py 1.05
+./LennardJones.py dn0.1
... | bash |
d_bash_10872 | ---
+++
@@ -1,7 +1,7 @@
# symfony basic command completion
_symfony_get_command_list () {
- ./symfony | sed "1,/Available tasks/d" | awk 'BEGIN { cat=null; } /^[A-Za-z]+$/ { cat = $1; } /^ :[a-z]+/ { print cat $1; }'
+ php symfony | sed "1,/Available tasks/d" | awk 'BEGIN { cat=null; } /^[A-Za-z]+$/ { cat ... | bash |
d_bash_10873 | ---
+++
@@ -7,3 +7,4 @@
git commit -m "Deploy"
git push origin gh-pages
git checkout master
+bower install | bash |
d_bash_10874 | ---
+++
@@ -5,7 +5,8 @@
export BUILD="$PWD/vendor/libgit2/build"
export PCFILE="$BUILD/libgit2.pc"
-export CGO_LDFLAGS="$BUILD/libgit2.a -L$BUILD $(pkg-config --static --libs $PCFILE)"
+FLAGS=$(pkg-config --static --libs $PCFILE) || exit 1
+export CGO_LDFLAGS="$BUILD/libgit2.a -L$BUILD ${FLAGS}"
export CGO_CFLAG... | bash |
d_bash_10875 | ---
+++
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
+/usr/local/bin/pip2 install biplist jsonschema
ln -sf "$PWD"/awp/__main__.py /usr/local/bin/alfred-workflow-packager
ln -sf "$PWD"/awp/__main__.py /usr/local/bin/workflow-packager
-/usr/local/bin/pip2 install biplist jsonschema | bash |
d_bash_10876 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#set -x
set -e
@@ -7,23 +7,23 @@
YELLOW='\033[1;33m'
NOCOLOR='\033[0m'
-echo "${YELLOW}Building with gcc/g++...${NOCOLOR}"
+echo -e "${YELLOW}Building with gcc/g++...${NOCOLOR}"
CC=gcc CXX=g++ make -C KissFFT/examples clean all
CC=clang CXX=clang++ make ... | bash |
d_bash_10877 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/sh
+mkdir -p web
git checkout gh-pages
git checkout master -- grunt.js package.json tools tests src demo
grunt docs | bash |
d_bash_10878 | ---
+++
@@ -12,6 +12,7 @@
# Custom Aliases
alias cask="brew cask"
+alias cpwd="pwd | pbcopy"
# Software Management
# ------------------ | bash |
d_bash_10879 | ---
+++
@@ -21,7 +21,7 @@
find . -name "*.sh" -exec bashate -e E006 {} \;
find . -name "*.py" \
! -path "./chef/cookbooks/bcpc/files/default/*" -exec flake8 {} \;
- ansible-lint -x var-naming ansible/
+ ansible-lint -x var-naming -x meta-no-info -x meta-no-tags ansible/
cookstyle --vers... | bash |
d_bash_10880 | ---
+++
@@ -5,6 +5,15 @@
CCACHE_DIR=/srv/ccache ccache -M 50G
fi
+# Fix permissions. This is needed temporarily to migrate old projects which were still checked out as root.
+# It can be removed at some point in the future.
+# For performance reasons, only search on the first level.
+for i in "/home/cmbuild/andr... | bash |
d_bash_10881 | ---
+++
@@ -1 +1 @@
-alias awscli='docker run --rm -it -v ~/.aws:/root/.aws amazon/aws-cli'
+alias awscli='docker run --rm -it -v ~/.aws:/root/.aws amazon/aws-cli:latest' | bash |
d_bash_10882 | ---
+++
@@ -4,6 +4,5 @@
homeshick clone basicdays/dotfiles
homeshick cd dotfiles
git remote set-url origin "git@github.com:basicdays/dotfiles.git"
-git submodule init
-git submodule update
+git submodule update --init
homeshick link dotfiles | bash |
d_bash_10883 | ---
+++
@@ -11,7 +11,7 @@
STACKSET_LISTING=$(awscli cloudformation list-stack-sets --status ACTIVE --output text --query "sort_by(Summaries,&StackSetName)[$(auto_filter StackSetName -- $FIRST_RESOURCE)].[StackSetName]")
select_one StackSet "$STACKSET_LISTING"
-awscli cloudformation list-stack-instances --max-resu... | bash |
d_bash_10884 | ---
+++
@@ -19,6 +19,8 @@
./bfs_client mv /bfs_client /bin/bfs_client
./bfs_client get /bin/bfs_client ./binary
+
+diff ./bfs_client ./binary > /dev/null
rm -rf ./binary
@@ -43,6 +45,8 @@
./bfs_client get /ef ./empty_file2
+diff ./empty_file1 ./empty_file2 > /dev/null
+
rm -rf empty_file*
kill -9 `c... | bash |
d_bash_10885 | ---
+++
@@ -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_10886 | ---
+++
@@ -6,7 +6,7 @@
exit 1
fi
-manylinux1_image_prefix="quay.io/pypa/manylinux1_"
+manylinux1_image_prefix="quay.io/pypa/manylinux2010_"
dock_ext_args=""
declare -A docker_pull_pids=() # This syntax requires at least bash v4
| bash |
d_bash_10887 | ---
+++
@@ -5,7 +5,7 @@
set -ex
#this installs anything that the goCD agents need to run our scripts
-../scripts/install_prerequisites.sh
+scripts/install_prerequisites.sh
./bin/build-aws ${BOSH_LITE_AMI} ${CF_RELEASE_VERSION} ${GO_PIPELINE_COUNTER} | tee output
| bash |
d_bash_10888 | ---
+++
@@ -10,6 +10,16 @@
# ("test": "NODE_ENV=test ./test$TRAVIS.sh") (from package.json)
#
#
-echo "Start Travis Test Without Coverage Upload"
-istanbul cover ./node_modules/mocha/bin/_mocha --report html
+if [ $TRAVIS == "TRUE"]
+then
+
+ echo "Start Travis Test With Coverage Upload"
+ istanbul cover ./no... | bash |
d_bash_10889 | ---
+++
@@ -2,6 +2,6 @@
# https://community.sonarsource.com/t/code-coverage-doesnt-work-with-github-action/16747/5
echo "fix code coverage paths"
-sed -i 's/\/home\/runner\/work\/daux.io\/daux.io\//\/github\/workspace\//g' coverage.clover
+#sed -i 's/\/home\/runner\/work\/daux.io\/daux.io\//\/github\/workspace\//... | bash |
d_bash_10890 | ---
+++
@@ -1,6 +1,6 @@
-#! /bin/sh
+#!/bin/sh
$Suffix=$Prj_name.`date +%F`
-echo $Prj_name | files.sh $Back_dir/$Suffix
+echo $Prj_dirs | files.sh $Back_dir/$Suffix 2>/dev/null
sh mysql.sh
`rsync -avzr -e "ssh -i "Rsync_key"" "$1" "$Back_user"@"$Back_server":"$Remote_dir"`
exit 0 | bash |
d_bash_10891 | ---
+++
@@ -11,4 +11,5 @@
source ./support/android/fakeld/fake-ld.sh
export _GCC_PARAMS="${@}"
-call_gcc "arch-arm64" "aarch64-linux-android" "android-21" "arm64-v8a"
+call_gcc "arch-arm64" "aarch64-linux-android" "android-21" "arm64-v8a" \
+ "aarch64-linux-android" | bash |
d_bash_10892 | ---
+++
@@ -2,10 +2,13 @@
include array.validator.ArrayValidator
include command.exception.CommandException
+include command.parser.CommandParser
CommandValidator(){
validateCommand(){
- if [[ ! $(ArrayValidator hasEntry ${@}) ]]; then
+ local validCommands=($(CommandParser getValidFunctions ${1}))
+
+ if... | bash |
d_bash_10893 | ---
+++
@@ -18,14 +18,16 @@
if ps -AZ | grep -e 'mysqld$' | grep -e mysqld_t ; then
echo "mysqld running under expected mysqld_t context"
else
- echo "mysqld running under wrong context"
+ echo "mysqld running under wrong context:"
+ ps -AZ | grep -e 'mysqld$'
exit 1
fi
if ls -AZ /var/lib/mysql/mysql.s... | bash |
d_bash_10894 | ---
+++
@@ -6,6 +6,7 @@
1password
betterzipql
charles
+ daisydisk
day-o
docker
dropbox | bash |
d_bash_10895 | ---
+++
@@ -27,7 +27,7 @@
# If we're on travis, not a PR, and on the right branch, publish!
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
- pip install ghp-import --user $USER
+ pip install ghp_import --install-option="--prefix=$HOME/.local"
$HOME/.local/bin/ghp-import -n t... | bash |
d_bash_10896 | ---
+++
@@ -14,7 +14,7 @@
gcc-4.9 g++-4.9
# Install CUDA
-CUDA_URL=http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_7.0-28_amd64.deb
+CUDA_URL=http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb
CUDA_FIL... | bash |
d_bash_10897 | ---
+++
@@ -5,6 +5,7 @@
istanbul cover test.js || result=1
if [ "$TRAVIS" == "true" ] && [ "$result" == "0" ]; then
+ echo "Sending coverage report to Coveralls.io"
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js -v || result=1
fi
| bash |
d_bash_10898 | ---
+++
@@ -3,8 +3,10 @@
cd "$BUILT_PRODUCTS_DIR"
mkdir "PerianPane.prefPane/Contents/Resources/Components"
-for item in Perian A52Codec AC3MovieImport ; do
- itemName="${item}.component"
+for itemName in *.component ; do
+ itemLength=${#itemName}
+ item=${itemName:0:$itemLength-10}
+ echo $item
... | bash |
d_bash_10899 | ---
+++
@@ -29,7 +29,7 @@
cd $WORKSPACE/local_repo/nailgun
# ***** Running Python unit tests, includes pep8 check of nailgun *****
- ./run_tests.sh --with-xunit --integration # --no-ui-tests
+ ./run_tests.sh --with-xunit # --no-ui-tests
}
function ruby_checks { | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.