document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_14600 | ---
+++
@@ -15,14 +15,16 @@
sed -i "s/%r{^hab .*\/}/%r{^hab ${VERSION}\/}/" test/integration/config/default_spec.rb
sed -i "s/%r{^hab .*\/}/%r{^hab ${VERSION}\/}/" test/integration/package/default_spec.rb
+sed -i "s/%r{^hab .*\/}/%r{^hab ${VERSION}\/}/" test/integration/user-toml/default_spec.rb
sed -i "s/HAB_VE... | bash |
d_bash_14601 | ---
+++
@@ -5,20 +5,19 @@
export PGDATABASE=template1
export PGHOST
-if test -z "${PGHOST}"; then
- echo -n "Enter postgis ip or hostname (no PGHOST env found): "
- read PGHOST
-fi
-
if test -z "$1"; then
echo "Usage: $0 <outdir>" >&2
exit 1
fi
-
OUTDIR="$1"
if test -e "${OUTDIR}"; then
echo "Output dir... | bash |
d_bash_14602 | ---
+++
@@ -3,6 +3,10 @@
set -euo pipefail
cd ${KOKORO_ARTIFACTS_DIR}/git/tink
cd tools
+
+export XCODE_VERSION=11.3
+export DEVELOPER_DIR="/Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer"
+export ANDROID_HOME="/Users/kbuilder/Library/Android/sdk"
# TODO(b/155225382): Avoid modifying the sytem Pytho... | bash |
d_bash_14603 | ---
+++
@@ -24,3 +24,4 @@
# clean up
apt-get autoclean && apt-get autoremove -y && apt-get clean
+rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | bash |
d_bash_14604 | ---
+++
@@ -2,7 +2,7 @@
set -e
POSTGRES_NAME=${POSTGRES_NAME:-$1}
POSTGRES_VOLUME=${POSTGRES_VOLUME:-$1-volume}
-POSTGRES_IMAGE_NAME=${POSTGRES_IMAGE_NAME:-postgres}
+POSTGRES_IMAGE=${POSTGRES_IMAGE:-postgres:9.4}
POSTGRES_DB=${POSTGRES_DB:-$2}
POSTGRES_USER=${POSTGRES_USER:-$3}
POSTGRES_PASSWORD=${POSTGRES_PAS... | bash |
d_bash_14605 | ---
+++
@@ -1,3 +1,18 @@
#!/bin/bash
+set -e
+
+export CI_ROOT_DIR="${GITHUB_WORKSPACE}/.."
+export CI_SOURCE_DIR="${GITHUB_WORKSPACE}"
+
+SETUP_SCRIPT=${CI_SOURCE_DIR}/scripts/ci/setup/ci-${GH_YML_JOBNAME}.sh
+
+if [ -x "${SETUP_SCRIPT}" ]
+then
+ echo "**********Setup Begin**********"
+ echo ${SETUP_SCRIPT}
+ ... | bash |
d_bash_14606 | ---
+++
@@ -4,7 +4,7 @@
version=$(date +"%y.%m.%d.%H.%M")
export VERSION=$version
-docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
+docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
rm -rf /tmp/receipts-target
rm -rf /tmp/receipts-target-tests | bash |
d_bash_14607 | ---
+++
@@ -2,4 +2,10 @@
cur_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-ln -vsfn $cur_dir/gdb-dashboard/.gdbinit $HOME/.gdbinit
+cp -vf $cur_dir/gdb-dashboard/.gdbinit $HOME/.gdbinit
+# For the macOS High Sierra..
+if [[ $(uname) == "Darwin" ]]; then # Mac
+ fixstr="set startup-with-shell off"
... | bash |
d_bash_14608 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
# This is useful because it prints out all of the source files. Useful for
# greps.
-find www include lib tools utils -name \*.\[cdhyl\]\* | grep -v Lexer.cpp | \
+find docs include lib tools utils -name \*.\[cdhyl\]\* | grep -v Lexer.cpp | \
grep -v llvmAsmParser.cpp | g... | bash |
d_bash_14609 | ---
+++
@@ -1,7 +1,7 @@
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo -e "Starting to update gh-pages\n"
- GH_REPO="@github.com/greimela/where-is-my-commit.git"
+ GH_REPO="@github.com/$TRAVIS_REPO_SLUG.git"
FULL_REPO="https://$TOKEN$GH_REPO"
#copy data we're interested in to other place | bash |
d_bash_14610 | ---
+++
@@ -1,10 +1,12 @@
#!/bin/bash
# Uploads the current directory to S3 to be hosted as a static website
-if [ "$1" == "--deploy" ]
-then
+if [ "$1" == "--deploy" ]; then
echo "Deploying to production"
aws s3 cp . s3://after.heap.fi/ --profile heap --region eu-west-1 --recursive --exclude "data/*"
+elif... | bash |
d_bash_14611 | ---
+++
@@ -30,7 +30,7 @@
}
# Cross-build for some architectures.
-sudo apt install g++-aarch64-linux-gnu
# TODO(xiaofeng): It currently fails with "machine `aarch64' not recognized"
# error.
+# sudo apt install -y g++-aarch64-linux-gnu
# protoc-artifacts/build-protoc.sh linux aarch_64 protoc | bash |
d_bash_14612 | ---
+++
@@ -6,4 +6,4 @@
nuget restore Mos6510.sln
nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner
xbuild /nologo /verbosity:quiet Mos6510.sln
-mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe --nologo --labels ./Mos6510.Tests/bin/Release/Mos6510.Tests.dll
+mono ./testrunner/NUni... | bash |
d_bash_14613 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/bell-sw/Liberica/releases/download/17.0.4.1+1/bellsoft-jdk17.0.4.1+1-linux-amd64.tar.gz"
;;
java18)
- echo "https://github.com/bell-sw/Liberica/releases/download/18.0.2+10/bellsoft-jdk18.0.2+10-linux-amd64.tar.gz"
+ echo "https://github.com/bell-sw/Liberi... | bash |
d_bash_14614 | ---
+++
@@ -5,18 +5,19 @@
alias venv='echo "venv" >> .gitignore && python3 -m venv --copies venv && source venv/bin/activate && pip install -U pip pylint black pep8 pydocstyle && pip list && python --version'
alias activate='source venv/bin/activate'
-# Environment variables
-# export PATH="$PATH:~/miniconda3/bin... | bash |
d_bash_14615 | ---
+++
@@ -10,13 +10,12 @@
patch "${CONFIG_FILE}" << EOF
227c227,232
-< - GL: timetunnel -root \n\
+< - GL: timetunnel -root \n\\
---
-> GL: timetunnel -root -tardis \
-> $HOME/.local/share/icons/xscreensaver/timetunnel/tardis.xpm \
-> -head \
-> $H... | bash |
d_bash_14616 | ---
+++
@@ -30,6 +30,7 @@
BuildPackage ncurses
BuildPackage box2d
BuildPackage xml2
+BuildPackage yajl
echo "@@@BUILD_STEP ${NACL_ARCH} Summary@@@"
if [[ $RESULT != 0 ]] ; then | bash |
d_bash_14617 | ---
+++
@@ -38,6 +38,7 @@
cp -r $src/min $dest
cp $src/ender.js $dest
cp $src/package.js $dest
+cp $src/.npmignore $dest
rm -rf $src
| bash |
d_bash_14618 | ---
+++
@@ -1,8 +1,13 @@
#!/bin/sh
+
+if [ ! -e 'isofs/boot/grub/stage2_eltorito' ]
+then
+ echo 'You need to locate stage2_eltorito and put it in ./isofs/boot/grub'
+ exit
+fi
mkdir -p isofs/boot/grub
mkdir -p isofs/System
-cp /boot/grub/stage2_eltorito isofs/boot/grub/
cp krnl/krnl isofs/System/
touch isofs/... | bash |
d_bash_14619 | ---
+++
@@ -17,7 +17,7 @@
file = ARGV[0] if ARGV.length>0
srcDir = File.dirname(file)
-out = "// Do not edit this file (e.g. go instead to src/main/asciidoc)\n\n"
+out = "// Do not edit this file (e.g. go instead to docs/src/main/asciidoc)\n\n"
doc = Asciidoctor.load_file file, safe: :safe, parse: false
out << ... | bash |
d_bash_14620 | ---
+++
@@ -1 +1 @@
-xctool -scheme DuckDuckGo -showTasks -sdk iphonesimulator run-tests -test-sdk iphonesimulator -testTimeout 5
+xcodebuild test -project DuckDuckGo.xcodeproj -scheme DuckDuckGo -destination 'platform=iOS Simulator,name=iPhone 6s'; | bash |
d_bash_14621 | ---
+++
@@ -17,7 +17,7 @@
pandoc --read=html --write=rst "$read_file" -o "$write_file"
sed -ie "1,6d" "$write_file"
- sed -ie "s/\Module //" "$write_file"
+ sed -ie "1s/\Module //" "$write_file"
LINE_1=`cat $write_file | wc -l`
LINE_2=`expr $LINE_1 - 10`
sed -ie "$LINE_2,\$d" "$write_... | bash |
d_bash_14622 | ---
+++
@@ -16,7 +16,7 @@
fi
if [ "$no_compile" == "" ]; then
+ (cd sts/hassel/hsa-python && source setup.sh)
(cd sts/hassel/hassel-c && make)
- (cd sts/hassel/hsa-python && source setup.sh)
fi
| bash |
d_bash_14623 | ---
+++
@@ -11,8 +11,7 @@
git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
git remote rm origin
git remote add origin https://watson-developer-cloud:${GH_TOKEN}@github.com/watson-developer-cloud/swift-sdk.git
-git fetch
-git fetch --tags
+git pull
latestVersion=$(git describe --abb... | bash |
d_bash_14624 | ---
+++
@@ -9,7 +9,7 @@
TODAY=`date +%Y-%m-%d`
-C:/Python31/python C:/Python31/Scripts/cxfreeze src/ibb.py --target-name=ibb_server.exe --target-dir=dist --include-modules=ibb || die
+C:/Python31/python C:/Python31/Scripts/cxfreeze src/ibb.py --target-name=ibb_server.exe --target-dir=dist --include-modules=ibb,s... | bash |
d_bash_14625 | ---
+++
@@ -7,15 +7,18 @@
# Add clang OpenMP runtime library to LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
-# Suppress leak sanitizer on functions we have no control of.
-export LSAN_OPTIONS=suppressions=/scratch/source/trilinos/release/DataTransferKit/scripts/leak_blacklist.txt
+if [ ... | bash |
d_bash_14626 | ---
+++
@@ -4,6 +4,10 @@
# First see if we have a mount at /.ssh
if [ -f /.ssh/id_rsa ]; then
cp /.ssh/id_rsa* ~/.ssh/
+ chmod 600 ~/.ssh/id_rsa*
+# Or /.ssh-b2d
+elif [ -f /.ssh-b2d/id_rsa ]; then
+ cp /.ssh-b2d/id_rsa* ~/.ssh/
chmod 600 ~/.ssh/id_rsa*
# Otherwise copy from /.home/.ssh if available
eli... | bash |
d_bash_14627 | ---
+++
@@ -2,6 +2,10 @@
# Maid
export PATH="$PATH:$HOME/.maid/bin"
+
+
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
+export PATH="$PATH:/usr/local/bin:/usr/local/sbin"
-export PATH="$PATH:/usr/local/bin:/usr/local/sbin"
+# Use GNU coreutils first
+export PATH="/usr/local/op... | bash |
d_bash_14628 | ---
+++
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
-ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
+/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | bash |
d_bash_14629 | ---
+++
@@ -21,6 +21,6 @@
TARGET_DIR='_build/default/lib/gui_static'
# Image which will be used by default to get the static files. If it cannot
# be resolved, the script will fall back to secondary.
-PRIMARY_IMAGE='docker.onedata.org/oz-gui-default:3.0.0-rc12'
+PRIMARY_IMAGE='docker.onedata.org/oz-gui-default:VFS... | bash |
d_bash_14630 | ---
+++
@@ -1,6 +1,6 @@
## Load smart urls if available
for d in $fpath; do
- if [[ -e "$d/url-quote-magic"]]; then
+ if [[ -e "$d/url-quote-magic" ]]; then
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
fi | bash |
d_bash_14631 | ---
+++
@@ -4,4 +4,5 @@
sudo apt-get dist-upgrade -qy
curl -fsSL https://get.docker.com/ | sh
docker build -t omnirom-ether .
-docker run omnirom-ether
+sudo usermod -aG docker $(whoami)
+sudo docker run omnirom-ether | bash |
d_bash_14632 | ---
+++
@@ -10,9 +10,9 @@
if [ -z "$GRAAL_FLAGS" ]; then
- GRAAL_FLAGS='-G:-TraceTruffleInlining -G:-TraceTruffleCompilation \
+ GRAAL_FLAGS="-G:-TraceTruffleInlining -G:-TraceTruffleCompilation \
-G:+TruffleSplittingNew -G:+TruffleCompilationExceptionsAreFatal \
- -G:TruffleInliningMaxCallerSize=100... | bash |
d_bash_14633 | ---
+++
@@ -1,6 +1,11 @@
#!/bin/bash -e
+
+if [ -z "$EUROPA_CONFIG" ]; then
+ echo "You must set the EUROPA_CONFIG environment variable to point to the configuration file." 1>&2
+ exit 1
+fi
DEPS_CLASSPATH=`cat target/.classpath`
CLASSPATH=target/classes/:$DEPS_CLASSPATH
JVM_ARGS="-Duser.timezone=UTC -Xmx... | bash |
d_bash_14634 | ---
+++
@@ -2,7 +2,7 @@
EXCLUDE=(install.sh README.markdown)
-for filename in $(ls); do
+for filename in $(ls "$(dirname $0)"); do
[[ ${EXCLUDE[@]} =~ $filename ]] && continue
original="$(cd "$(dirname $0)" && pwd)/$filename"
symbolic="$HOME/.$filename" | bash |
d_bash_14635 | ---
+++
@@ -15,7 +15,7 @@
pwd
ls
mkdir tmp-deploy
-cp MediaModule.zip tmp-deploy/MediaModule.zip
+cp ../MediaModule.zip tmp-deploy/MediaModule.zip
cd tmp-deploy
pwd
ls | bash |
d_bash_14636 | ---
+++
@@ -7,8 +7,6 @@
if [[ -n $DOCKER_HUB_USERNAME ]]; then
docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD
- docker pull paketobuildpacks/run:tiny-cnb
- docker pull springci/spring-boot-cnb-builder:0.0.1
fi
cleanup_maven_repo "org.springframework.boot" | bash |
d_bash_14637 | ---
+++
@@ -8,5 +8,8 @@
exit 1
fi
-echo "Deleting the server $ID ..."
-nova delete $ID
+for ID in $@
+do
+ echo "Deleting the server $ID ..."
+ nova delete $ID
+done | bash |
d_bash_14638 | ---
+++
@@ -8,7 +8,7 @@
ERROR_PATTERN="mismatched|extraneous"
if [ ! -e "$ANTLR_JAR" ]; then
- curl https://www.antlr.org/download/antlr-4.7-complete.jar -o "$ANTLR_JAR"
+ curl https://www.antlr.org/download/antlr-4.7.2-complete.jar -o "$ANTLR_JAR"
fi
mkdir -p target/ | bash |
d_bash_14639 | ---
+++
@@ -9,5 +9,5 @@
pushd cook.hs
cabal update
-cabal install --global -j2
+cabal install --global -j1
popd | bash |
d_bash_14640 | ---
+++
@@ -2,5 +2,5 @@
# Setup ApiAxle with dev key/secret
curl -X POST -H 'Content-type: application/json' 'http://api/v1/api/apiaxle' -d '{"endPoint":"api", "endPointTimeout": 5}'
-curl -X POST -H 'Content-type: application/json' 'http://api/v1/key/developer-portal-dev-key' -d '{"sharedSecret":"developer-porta... | bash |
d_bash_14641 | ---
+++
@@ -17,7 +17,7 @@
$PREFIX_DIR/bin/npm install -g less
echo "export PATH=\$PATH:$PREFIX_DIR/bin" >> $HOME/.bashrc
-
+source ~/.bashrc
# cleanup
cd $PREFIX_DIR
rm -r $TMP_DIR | bash |
d_bash_14642 | ---
+++
@@ -1,7 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Generate test data from GitHub status API data
set -e
+set -o pipefail
download_json() {
curl -Ls "$1" | python -mjson.tool > "$2" | bash |
d_bash_14643 | ---
+++
@@ -1,12 +1,21 @@
#!/bin/bash
+
+git checkout gh-pages
+
+git clone git@github.com:measurement-factory/functional-text-sandbox.git
+cd functional-text-sandbox
git clone git@github.com:measurement-factory/functional-text.git
cd functional-text
npm install
webpack
cd ..
+
npm install
webpack -p
cp sr... | bash |
d_bash_14644 | ---
+++
@@ -12,7 +12,7 @@
VERSION=`cat $WORKSPACE/repo/metadata.rb | grep -m1 version | sed 's/'\''//g' | awk '{print "v"$2}'`
COOKBOOK=`cat $WORKSPACE/repo/metadata.rb | grep -m1 name | sed 's/'\''//g' | cut -d ' ' -f2`
# Write log to Elasticsearch via logstash for Grafana annotations
- LOG="{ \"type\": \"... | bash |
d_bash_14645 | ---
+++
@@ -3,4 +3,4 @@
# cron will not source .bashrc, so we need to do it in a script.
HOME=/home/dan
source ${HOME}/.bashrc
-${HOME}/Tuscarora/Testing/testBranch.py ~/Tuscarora/TuscaroraFW/validate.sh dev master
+${HOME}/TuscaroraTesting/testBranch.py ~/Tuscarora/TuscaroraFW/validate.sh dev master | bash |
d_bash_14646 | ---
+++
@@ -17,4 +17,4 @@
# export GIT_BRANCH
# fi
-export GIT_BRANCH=development
+export GIT_BRANCH=master | bash |
d_bash_14647 | ---
+++
@@ -9,6 +9,7 @@
sudo add-apt-repository -y ppa:pmiller-opensource/ppa
sudo apt-get update
sudo apt-get -y install cmake ninja-build gcc-arm-none-eabi srecord libssl-dev python3-pip libffi-dev libssl-dev python-dev libnewlib-arm-none-eabi libnewlib-dev libstdc++-arm-none-eabi-newlib
+sudo pip3 install --upg... | bash |
d_bash_14648 | ---
+++
@@ -3,6 +3,11 @@
# Check IP address to see if this Pi is connected to the wifi network.
# If not, loop while trying to connect until it is.
#
+
+# If called with a number, quietly loop forever, sleeping for
+# that many seconds between loops.
+
+LOOP=${1:-""}
_IP=$(hostname -I) || true
@@ -10,14 +15,2... | bash |
d_bash_14649 | ---
+++
@@ -3,10 +3,6 @@
# ################### #
# Run all test suites #
# ################### #
-
-JVM=java
-JVC=javac
-TEST=org.junit.runner.JUnitCore
for dir in $(ls -d */); do
dirFile=${dir%%/*} # Remove end slash from dir | bash |
d_bash_14650 | ---
+++
@@ -30,6 +30,9 @@
README.md \
web.config.example \
uploads/placeholder.txt
+ # fix permissions
+ find . -type d -exec chmod 700 {} \;
+ find . -type f -exec chmod 600 {} \;
set +x
echo "Done!"
fi | bash |
d_bash_14651 | ---
+++
@@ -21,3 +21,4 @@
brew cask install google-chrome
brew cask install xquartz # For running X server based apps on Mac.
brew cask install wireshark
+brew cask install sophos-antivirus # Free AV protection for Mac. | bash |
d_bash_14652 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/sh
-sudo apt-get install vim git tmux zsh build-essential gitk git-gui curl docky screen dos2unix tree
+sudo apt-get install vim git tmux zsh build-essential gitk git-gui curl docky screen dos2unix tree exuberant-ctags ibus-sunpinyin
sudo apt-get install texlive-science texlive-publ... | bash |
d_bash_14653 | ---
+++
@@ -5,7 +5,7 @@
mkdir /tmp/build
/usr/bin/pip-${python_version:6:1}.${python_version:7:1} install -r /requirements.txt -t /tmp/build
cd /tmp/build
- zip -r /build_cache/${DEPENDENCIES_SHA}.zip ./*
+ zip -r /build_cache/${DEPENDENCIES_SHA}.zip .
else
echo "using cached dependencies; ... | bash |
d_bash_14654 | ---
+++
@@ -8,6 +8,7 @@
"github.com/nsf/gocode"
"github.com/golang/lint/golint"
"github.com/motemen/ghq"
+ "rsc.io/gt"
# "github.com/motemen/gore"
)
| bash |
d_bash_14655 | ---
+++
@@ -14,7 +14,7 @@
#
# Jenkins build script used with builds at http://builds.apache.org
-set -ex
+set -eux
date
# Run all Java tests
@@ -23,6 +23,8 @@
# Run all Python tests
# Setting the timeout value to 1 minute ensures package fetches from PyPI do not
# fail on Apache Jenkins.
+export JUNIT_XML_... | bash |
d_bash_14656 | ---
+++
@@ -4,4 +4,5 @@
#scp -i travis/key.private -P 5722 -r doc/build/html/ travis@butler.fri.uni-lj.si:/home/travis/html
ln -s `pwd`/doc/build/html doc/build/orange3doc
echo -e "Host orange.biolab.si\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
-echo "put -r doc/build/orange3doc/ /" | sftp -i travis/key.priv... | bash |
d_bash_14657 | ---
+++
@@ -6,7 +6,7 @@
echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.2%2B8/OpenJDK17U-jdk_x64_linux_hotspot_17.0.2_8.tar.gz"
;;
java18)
- echo "https://github.com/adoptium/temurin18-binaries/releases/download/jdk18-2022-02-12-08-06-beta/OpenJDK18-jdk_x64_linux_hotspot_2... | bash |
d_bash_14658 | ---
+++
@@ -1,13 +1,37 @@
#!/bin/bash
PKGS=$(cat debian-pkgs | sed -re 's/#.*//g' -e '/^\s*$/d')
+
+is_installed() {
+ local pkgname=$1
+ dpkg -l | grep -q $pkgname
+}
+
+install_if_needed() {
+ local pkgname=$1
+ if is_installed $pkgname; then
+ echo "Package $pkgname already installed, skippi... | bash |
d_bash_14659 | ---
+++
@@ -9,6 +9,7 @@
echo "Converting $PDF to JEPGs..."
+# This requires imagemagick and ghostscript to be installed
convert -density 150 -colorspace sRGB "$PDF" +adjoin -background white "$TEMP_DIR/$PDF-%04d.png"
for i in $TEMP_DIR/*.png; do sips -s format jpeg -s formatOptions 70 "${i}" --out "${i%png}jpg... | bash |
d_bash_14660 | ---
+++
@@ -5,8 +5,8 @@
alias jmeter='/Applications/JMeter/bin/jmeter.sh'
alias ma='make all'
-alias mc='make clean'
-alias mca='make clean all'
+alias mcl='make clean'
+alias mcla='make clean all'
alias pod='GEM_HOME=/Library/Ruby/Gems/2.0.0 pod'
| bash |
d_bash_14661 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash -xe
cp docker/dockerfiles/bedrock_linkchecker Dockerfile
docker build -t bedrock_linkchecker:${GIT_COMMIT} --pull=true .
-docker run -v `pwd`/results:/results -e URLS=${URLS} -e THREADS=${THREADS} -e RECURSION_LEVEL=${RECURSION_LEVEL} -e CHECK_EXTERNAL=${CHECK_EXTERNAL} -e VERBO... | bash |
d_bash_14662 | ---
+++
@@ -11,13 +11,13 @@
# Unpack the rootfs with user=root to keep the original file attributes
mkdir -p ./rootfs
-sudo tar xfz ${IMAGE_FILE} -C ./rootfs
+tar xfz ${IMAGE_FILE} -C ./rootfs
# Pack the new rootfs as a compressed tarball
-sudo tar cfz ./rootfs.tar.gz -C ./rootfs
+tar cfz ./rootfs.tar.gz -C ./... | bash |
d_bash_14663 | ---
+++
@@ -7,6 +7,9 @@
fi
export HOST=$ARCH-$OS
+
+# clang has better error messages and implements alignof more broadly
+export CC=clang
if [ "$TARGET" = "" ]; then
# Download and install the relevant target locally, then run tests | bash |
d_bash_14664 | ---
+++
@@ -32,7 +32,7 @@
echo "Install utilities: End"
echo "Install bash prompt"
-curl https://raw.githubusercontent.com/riobard/bash-powerline/master/bash-powerline.sh > $HOME/.bash-powerline.sh
+curl https://raw.githubusercontent.com/rasta-rocket/bash-powerline/master/bash-powerline.sh > $HOME/.bash-powerline... | bash |
d_bash_14665 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
git clone https://github.com/svn2github/gyp
-./gyp/gyp --depth . p-ninja.gyp
+./gyp/gyp --depth=. -I build/common.gypi
make | bash |
d_bash_14666 | ---
+++
@@ -10,8 +10,8 @@
projectPath=/var/www/html/$projectName
if [ ! -f $projectPath/index.html ] ||
- [ ! -f $projectpath/menuStyle.css ] ||
- [ ! -f $projectpath/modalstyle.css ] ||
+ [ ! -f $projectPath/menuStyle.css ] ||
+ [ ! -f $projectPath/modalStyle.css ] ||
[ ! -f $projectPath/StyleSheet.css ] ||
... | bash |
d_bash_14667 | ---
+++
@@ -12,4 +12,4 @@
sudo pip install Cython
sudo pip install -r /home/vagrant/pyexperiment/requirements.txt
-echo "export PYTONPATH='.'" >> .bashrc
+echo "export PYTHONPATH='.'" >> /home/vagrant/.bashrc | bash |
d_bash_14668 | ---
+++
@@ -1,8 +1,8 @@
function log_and_run_command {
args="$@"
- echo -n "\e[34m"
- echo -n '--> '
- echo -n $args
+ echo -en "\e[34m"
+ echo -en '--> '
+ echo -en $args
echo "\e[39m"
eval $args
} | bash |
d_bash_14669 | ---
+++
@@ -15,6 +15,7 @@
do_prepare() {
sed -i.bak 's/#zlib/zlib/' Modules/Setup.dist
+ sed -i -re "/(SSL=|_ssl|-DUSE_SSL|-lssl).*/ s|^#||" Modules/Setup.dist
}
do_build() { | bash |
d_bash_14670 | ---
+++
@@ -1,6 +1,8 @@
if [ $commands[autojump] ]; then # check if autojump is installed
if [ -f $HOME/.autojump/etc/profile.d/autojump.zsh ]; then # manual user-local installation
. $HOME/.autojump/etc/profile.d/autojump.zsh
+ elif [ -f $HOME/.nix-profile/etc/profile.d/autojump.zsh ]; then # nix installat... | bash |
d_bash_14671 | ---
+++
@@ -6,11 +6,20 @@
# Invoke this script via "docker exec"
# (e.g. docker exec dockershare share <container_name>)
+CONTAINER_ID=$(docker inspect --format {{.Id}} $1 2> /dev/null)
-MOUNT_PATH=/docker/aufs/mnt/
-
-CONTAINER_ID=$(docker inspect --format {{.Id}} $1 2> /dev/null)
-MOUNT_ID=$(cat /docker/image... | bash |
d_bash_14672 | ---
+++
@@ -19,3 +19,15 @@
return 1;
fi
}
+
+# based on: https://stackoverflow.com/questions/4421633/who-is-listening-on-a-given-tcp-port-on-mac-os-x
+function get_listener() {
+ if [[ -z $1 ]]; then
+ >&2 echo "usage: ${FUNCNAME[0]} port"
+ return 1;
+ fi
+
+ local PORT=$1
+
+ lsof -nP -iTCP:"$PORT" | grep L... | bash |
d_bash_14673 | ---
+++
@@ -39,7 +39,7 @@
echo "Note: installing uxtaf" >&2
pushd $REPODIR/deps/uxtaf
-./bootstrap.sh && ./configure --prefix=$INSTALLDIR --without-libewf && make -j && $MAKEINSTALL
+./bootstrap.sh && ./configure --prefix=$INSTALLDIR && make -j && $MAKEINSTALL
popd
echo "Done." | bash |
d_bash_14674 | ---
+++
@@ -1,9 +1,3 @@
-# Use `hub` as our git wrapper:
-# http://defunkt.github.com/hub/
-if [ -f $HOMEBREW_PREFIX/rbenv/shims/hub ]; then
- alias git="hub"
-fi
-
# The rest of my fun git aliases
alias ungit="find . -name '.git' -exec rm -rf {} \;"
alias gb='git branch' | bash |
d_bash_14675 | ---
+++
@@ -4,5 +4,5 @@
DIR=`pwd`
pushd $SCRIPT_DIR > /dev/null
-bundle exec rspec --default-path $DIR
+bundle exec rspec -I $SCRIPT_DIR -I $DIR/spec --default-path $DIR
popd > /dev/null | bash |
d_bash_14676 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
-wget https://raw.githubusercontent.com/Archomeda/kormir-discord-bot/master/.docker/.docker-compose.yml
-wget https://raw.githubusercontent.com/Archomeda/kormir-discord-bot/master/.docker/.env
+wget https://raw.githubusercontent.com/Archomeda/kormir-discord-bot/master/.docker/dock... | bash |
d_bash_14677 | ---
+++
@@ -1,9 +1,12 @@
#!/usr/bin/env bash
PORT=8000
+HOST_PORT=8001
+API_PORT=49532
+
IP_ADDR=`ifconfig eth0 | grep -o "addr:[0-9][0-9][0-9]\.[0-9]*\.[0-9]*\.[0-9]*" | awk -F ":" '{print $2}'`
cd ${PERSONFINDER_DIR}
-echo "Starting Person Finder server at ${IP_ADDR}:${PORT}"
-tools/gae run app --port ${POR... | bash |
d_bash_14678 | ---
+++
@@ -19,20 +19,8 @@
yum --installroot=$chroot --assumeyes install yum
INSTALL_YUM
-unshare -m $SHELL <<INSTALL_BASE_OS
- set -x
-
- mkdir -p $chroot/dev
- mount -obind /dev $chroot/dev
- mount -obind /dev/pts $chroot/dev/pts
-
- mkdir -p $chroot/proc
- mount -obind /proc $chroot/proc
-
- mkdir -p ... | bash |
d_bash_14679 | ---
+++
@@ -1,8 +1,8 @@
curl -O https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
sudo -HE pip install virtualenv
-git clone https://github.com/andrewalexander/hackpsu_registration
-cd hackpsu_registration
+# git clone https://github.com/andrewalexander/hackpsu_registration
+# cd hackpsu_registration
mk... | bash |
d_bash_14680 | ---
+++
@@ -20,10 +20,9 @@
cd /tmp
-# Todo: Need to update base image from Debian Stretch for the required Python
-# 3.6 or later
curl -# -LO https://bootstrap.pypa.io/pip/get-pip.py
-#curl -# -LO https://bootstrap.pypa.io/pip/2.7/get-pip.py
+# https://github.com/pypa/setuptools/issues/2993
+export SETUPTOOLS_U... | bash |
d_bash_14681 | ---
+++
@@ -2,4 +2,8 @@
#
# Usage: ./rsync-it.sh USERNAME
+echo "Copying User's and Developer's Guides..."
rsync -e ssh -przv _build/html/* $1@web.sourceforge.net:/home/project-web/tulip-control/htdocs/doc/
+
+echo "Copying API documentation..."
+rsync -e ssh -przv _build/api_doc/* $1@web.sourceforge.net:/home/p... | bash |
d_bash_14682 | ---
+++
@@ -14,12 +14,17 @@
DATE=$(date +%m-%d-%Y_%H-%M-%S)
-# Take a snapshot of the trace buffer
-CMD="trace-cmd snapshot -s"
+# Stop tracer from recording more data
+CMD="trace-cmd stop"
echo ${CMD}
$CMD
-# Extract the snapshot
-CMD="trace-cmd extract -s -k -o trace_${DATE}.dat"
+# Extract trace
+CMD="tra... | bash |
d_bash_14683 | ---
+++
@@ -1,23 +1,22 @@
#!/bin/bash
-# Check if we are running on the CI server (e.g., Travis).
-if [ -n "$CI" ]; then
- # Commit anything generated during the build.
- git commit -am --no-verify "Add missing files from master@$(git rev-parse --short master)"
+set -e
- # Create the gh-pages branch.
- git r... | bash |
d_bash_14684 | ---
+++
@@ -1,17 +1,14 @@
#!/usr/bin/env bash
-function install_yaourt() {
- git clone https://aur.archlinux.org/package-query.git
- cd package-query
+function install_yay() {
+ pushd .
+ git clone https://aur.archlinux.org/yay.git
+ cd yay
makepkg -si
- cd ..
- git clone https://aur.arch... | bash |
d_bash_14685 | ---
+++
@@ -27,3 +27,6 @@
cd zsh
./setup-zsh.sh
cd $CWD
+
+# copy background updater
+sudo cp background/change_background.sh /etc/cron.hourly | bash |
d_bash_14686 | ---
+++
@@ -13,8 +13,8 @@
main() {
log "Attempting to stop RabbitMQ instance..."
rabbitmqctl stop "$ERLANG_PID_FILE" 1>> "$SHUTDOWN_LOG" 2>> "$SHUTDOWN_ERR_LOG"
+ # ensure RabbitMQ is stopped
rm -f "$ERLANG_PID_FILE"
- # ensure RabbitMQ is stopped
log "RabbitMQ instance stopped successfully"
echo "0... | bash |
d_bash_14687 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/bash
+
+# clean up the old binaries so the new ones can replace them
+sudo rm -f /usr/local/bin/packer
#ansible-playbook --connection=local --user rkurr --ask-pass --become-user root --ask-become-pass desktop.yml
ansible-playbook --connection=local --user rkurr --ask-pass --become-... | bash |
d_bash_14688 | ---
+++
@@ -31,5 +31,5 @@
echo "All processes have been started!"
api_url=`grep srv_api_uri: ./manifests/deploy.yml | awk '{ print $2 }'`
password=`grep ' - admin' ./manifests/deploy.yml | cut -f 2 -d '|' `
-echo "Login : 'cf login -a ${api_url}' -u admin -p ${password}'"
+echo "Login : 'cf login -a ${api_url} -u... | bash |
d_bash_14689 | ---
+++
@@ -18,6 +18,8 @@
# setup the new version
sudo mkdir current
sudo cp tmp/bundle.tar.gz current/
+
+ docker rmi $IMAGE:previous || true
fi
if docker image inspect $IMAGE:previous >/dev/null; then | bash |
d_bash_14690 | ---
+++
@@ -4,3 +4,5 @@
# you could use Karabiner as well
defaults write -g InitialKeyRepeat -float 10.0 # 166ms
defaults write -g KeyRepeat -float 1.2 # 20ms
+# Use all Fn keys as standard function keys
+defaults write -g com.apple.keyboard.fnState -bool true | bash |
d_bash_14691 | ---
+++
@@ -1,2 +1,6 @@
# ref: http://thexploit.com/secdev/turning-off-buffer-overflow-protections-in-gcc/
alias gccunsafe='gcc -fno-stack-protector -D_FORTIFY_SOURCE=0'
+
+function gccin {
+ curl $1 | gcc -o getenv -xc -
+} | bash |
d_bash_14692 | ---
+++
@@ -6,7 +6,7 @@
rm -rf ${path}/sourcekitd.framework
if [ "Release" = "${CONFIGURATION}" ]; then
- cp -a ${SRCROOT}/../build/Ninja-ReleaseAssert/swift-macosx-x86_64/lib/sourcekitd.framework ${path}
+ cp -a ${SRCROOT}/../build/Ninja-ReleaseAssert/swift-macosx-x86_64/lib/sourcekitd.framework ${path}
else... | bash |
d_bash_14693 | ---
+++
@@ -22,8 +22,8 @@
echo "#define SKALIBS_HASUN$k"
fi
elif test ${k} != ${k##SIZEOF} ; then
- echo "#undef SKALIBS_HAS$k"
- echo "#define SKALIBS_HAS$k $v"
+ echo "#undef SKALIBS_$k"
+ echo "#define SKALIBS_$k $v"
elif test ${k} = ENDIANNESS ; then
echo '#undef SKALIBS_ENDIANN... | bash |
d_bash_14694 | ---
+++
@@ -2,9 +2,11 @@
tar xf $src
tarballdir=$(pwd)
-for i in *.tar; do tar xf $i; done
+for i in *.tar; do tar xvf $i; done
+echo "Deploying binaries.."
mkdir $out
cd $out
-for i in $tarballdir/*.gz; do tar xf $i; done
-ln -fs $out/lib/fpc/*/ppc386 $out/bin
+for i in $tarballdir/*.gz; do tar xvf $i; done
+e... | bash |
d_bash_14695 | ---
+++
@@ -12,10 +12,7 @@
# Uninstall cypress because it is not used here and installation is sluggish
# Removes the entry from `package.json`, which prevents the `npm install`
# command below from installing cypress,
-npm uninstall cypress
-npm cache clean --force
-npm install
-npm run build-test
+rm -rf node_mo... | bash |
d_bash_14696 | ---
+++
@@ -1,8 +1,17 @@
#!/bin/bash
+
+START_WITH=$1
(cd experiments; git pull)
for branch in raft-45 raft-46 raft-56 raft-58 raft-58-initialization raft-42 raft-66; do
+ if [ "$START_WITH" != "" -a "$START_WITH" != $branch ]; then
+ continue
+ fi
+ if [ "$START_WITH" != "" -a "$START_WITH" == $branch ]... | bash |
d_bash_14697 | ---
+++
@@ -1,2 +1,2 @@
-export INSTALL_SCLS=devtoolset-4
+export INSTALL_SCLS=devtoolset-4-perftools devtoolset-4-toolchain
export ENABLE_SCLS=devtoolset-4 | bash |
d_bash_14698 | ---
+++
@@ -4,13 +4,21 @@
# found in the LICENSE file.
+export LIBS="-lnacl_io"
+
if [ "${NACL_GLIBC}" != "1" ]; then
NACLPORTS_CFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat"
+ NACLPORTS_CXXFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat"
+ export LIBS="${LIBS} -lglibc-compat"
+fi
+
+if [ "{NACL_ARCH}" = "... | bash |
d_bash_14699 | ---
+++
@@ -6,14 +6,14 @@
if [ $CASE == "NODE2" ]; then
echo "Case node2, just waiting for the other node to join us then exit"
- sleep 120
+ sleep 300
exit 0
fi
# Case 1: try to detect and join other node
# Sleep a bit to be sure that node2 is up and ready to answer us
-sleep 60
+sleep 120
... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.