document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_19300 | ---
+++
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-$working_tree_root/dotnetcli/dotnet $working_tree_root/MSBuild.dll "$@"
+$working_tree_root/dotnetcli/dotnet $working_tree_root/MSBuild.dll $*
exit $? | bash |
d_bash_19301 | ---
+++
@@ -2,6 +2,9 @@
# get the directory containing this script
TOOLSDIR=`readlink -f $(dirname "${BASH_SOURCE[0]}")`
+
+# build the client library
+./build_static.sh
# there's embedded code in the readme.
# try to compile it; readmes should be correct.
@@ -15,5 +18,9 @@
cd ../HelloWorld/
make clean all
... | bash |
d_bash_19302 | ---
+++
@@ -10,6 +10,4 @@
#mkdir log
#
#cd /app/
-/usr/bin/python3 /src/connect.py
-
-
+/usr/bin/python3 /src/fme/connect.py | bash |
d_bash_19303 | ---
+++
@@ -19,7 +19,7 @@
popd
#get path to cutils libs
-cutils=../../libs/cutils/${buildexp}
+cutils=${LIB_DIRECTORY}/cutils/${buildexp}
pushd ${cutils}
cutils=${PWD}
popd | bash |
d_bash_19304 | ---
+++
@@ -17,6 +17,11 @@
}
NNAME=$(replace $NAME $REPL $NEW)
-echo "Renaming $NAME to $NNAME"
+NEW_FILE=$(dirname $FILE)/$NNAME
-mv $(dirname $FILE)/$NAME $(dirname $FILE)/$NNAME
+if [[ "${FILE}" != "${NEW_FILE}" ]]; then
+ echo "Renaming $NAME to $NNAME"
+ mv $FILE $NEW_FILE
+else
+ echo "No change ... | bash |
d_bash_19305 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/bash
git clone --depth 1 https://github.com/github/gitignore ../temp-github-gitignore
+find ../temp-github-gitignore -type f -print0 | xargs -0 xattr -c
find ../temp-github-gitignore -name '*.gitignore' | xargs sed -i 's/ *$//g;$a\' | bash |
d_bash_19306 | ---
+++
@@ -3,7 +3,7 @@
>&2 echo "usage: ${FUNCNAME[0]} <directory to create>"
return 1;
fi
- if [[ -d $1 ]] ; then
+ if [[ -d $1 ]] || [[ -f $1 ]] ; then
>&2 echo "$1 already exists"
return 1;
fi | bash |
d_bash_19307 | ---
+++
@@ -19,7 +19,8 @@
set -oe pipefail
p="${HOME}/src/github/saibing/bingo.git/"
-git clone https://github.com/saibing/bingo.git "$p"
+git clone https://github.com/saibing/bingo.git "$p" ||
+ git -C "$p" pull
pushd "$p"
GO111MODULE=on go install
popd | bash |
d_bash_19308 | ---
+++
@@ -33,3 +33,5 @@
./snabb config get-state "$SNABB_NAME" /
assert_equal "$?" "0"
+
+stop_lwaftr_bench | bash |
d_bash_19309 | ---
+++
@@ -2,6 +2,7 @@
# make sure we have the network tools in place for various network specs
if [ -f /etc/debian_version ]; then
+ apt-get update -y
touch /etc/network/interfaces
fi
| bash |
d_bash_19310 | ---
+++
@@ -11,11 +11,11 @@
# Checkout / Update
alias cco='carthage checkout --no-use-binaries'
-alias ccos='cco --use-ssh'
-alias ccoss='ccos --use-submodules'
+alias ccos='carthage checkout --no-use-binaries --use-ssh'
+alias ccoss='carthage checkout --no-use-binaries --use-ssh --use-submodules'
alias ccu='car... | bash |
d_bash_19311 | ---
+++
@@ -31,6 +31,7 @@
cd $app_
git fetch -p origin
git reset --hard origin/master
+git submodule update
cabal build --ghc-options=-optl-static
EOF
rsync -aPvz "$vm:$app/dist/build/$app/$app" "/tmp/$app" | bash |
d_bash_19312 | ---
+++
@@ -1,6 +1,16 @@
#!/bin/bash
# Add any logic that is common to both the peer and docker environments here
+
+# Use the mirror protocol for apt so that geographically close mirrors are automatically chosen
+source /etc/lsb-release
+
+cat <<EOF > /etc/apt/sources.list
+deb mirror://mirrors.ubuntu.com/mirror... | bash |
d_bash_19313 | ---
+++
@@ -1,42 +1,9 @@
#!/bin/bash
set -ueo pipefail
-channel="${CHANNEL:-unstable}"
-product="${PRODUCT:-supermarket}"
-version="${VERSION:-latest}"
-package_file=${PACKAGE_FILE:-""}
-
-echo "--- Installing $channel $product $version"
-if [[ -z $package_file ]]; then
- package_file="$(.omnibus-buildkite-plugi... | bash |
d_bash_19314 | ---
+++
@@ -9,9 +9,6 @@
# ~/repos/dotfiles/zsh/dircolors.ansi-light.
eval `dircolors $ZSH_CUSTOM/.dircolors.ansi-light`
-# Local dotfiles
-LOCAL_DOTFILES=~/.dotfiles.local
-
# Load aliases.
[[ -f ~/.aliases ]] && source $ZSH_CUSTOM/aliases.zsh
@@ -19,5 +16,8 @@
setopt autocd autopushd pushdminus pushdsilent ... | bash |
d_bash_19315 | ---
+++
@@ -5,6 +5,6 @@
# a newer one from PPA. See also:
#
# https://github.com/golang/go/wiki/Ubuntu
-sudo add-apt-repository ppa:gophers/archive
+sudo add-apt-repository -y ppa:gophers/archive
sudo apt-get update
sudo apt-get -y install golang-1.10-go | bash |
d_bash_19316 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-keyserver=subkeys.pgp.net
+keyserver=keys.gnupg.net
opscode_key_id=83EF826A
echo 'Adding Opscode repo to sources.list.d...' | bash |
d_bash_19317 | ---
+++
@@ -1,6 +1,5 @@
#!/bin/bash
-# Modify "abstracts" here to be the name of your abstracts folder
# This command removes spaces in the names and replaces them with underscores
Z=$(for x in $1/*\ *; do mv "$x" "${x// /_}"; done 2>/dev/null)
| bash |
d_bash_19318 | ---
+++
@@ -15,11 +15,11 @@
set "timeout" 5
entry "Test (32-bit)" {
- kboot "/test32.elf" ["/test32.elf"]
+ laos "/test32.elf" ["/test32.elf"]
}
entry "Test (64-bit)" {
- kboot "/test64.elf" ["/test64.elf"]
+ laos "/test64.elf" ["/test64.elf"]
}
entry "Chainload (hd0)" { | bash |
d_bash_19319 | ---
+++
@@ -7,14 +7,14 @@
echo -e "\n\n==== Ruby 1.9.2 Head ===="
rvm use 1.9.2-head@ruby-amqp
gem install bundler --no-ri --no-rdoc
-bundle install --path vendor/bundle/1.9.2 --without development; echo
+bundle update --path vendor/bundle/1.9.2 --without development; echo
bundle exec rspec spec
return_status=$?... | bash |
d_bash_19320 | ---
+++
@@ -3,18 +3,22 @@
echo
if [ x$ANACONDA_TOKEN != x ]; then
if ! anaconda -h &>/dev/null; then
- echo 'WARNING: Missing `anaconda-client` package!'
+ echo 'ERROR: Missing `anaconda-client` package!'
echo 'This Conda environment contains the following packages:'
conda list
... | bash |
d_bash_19321 | ---
+++
@@ -5,6 +5,18 @@
set -x
+
+echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
+apt-key add buildpacks-ci/config/google-chrome-apt-key.pub
+
+apt-get update
+apt-get install libgconf-2-4 unzip google-chrome-stable -y
+
+wget -O chromedr... | bash |
d_bash_19322 | ---
+++
@@ -22,9 +22,9 @@
find . -name bisect* | xargs rm -f
./test.native -runner sequential
-bisect-report bisect*.out -I _build -text report
-bisect-report bisect*.out -I _build -summary-only -text summary
-(cd _build; bisect-report ../bisect*.out -html ../report-html)
+bisect-ppx-report bisect*.out -I _build ... | bash |
d_bash_19323 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
set -eu -o pipefail
-docker run -it --net host --pid host --userns host --cap-add audit_control \
+docker run -it --rm --net host --pid host --userns host --cap-add audit_control \
-e DOCKER_CONTENT_TRUST=1 \
-v /var/lib:/var/lib \
-v /var/run/docker.sock:/var/ru... | bash |
d_bash_19324 | ---
+++
@@ -21,5 +21,5 @@
for index in $(seq $chunkStart $chunkEnd)
do
moduleName=${moduleArray[$index]}
- sourcekitten doc --spm-module "$moduleName" > sourcekitten/"$moduleName".json
+ sourcekitten doc --spm-module "$moduleName" -- --target "$moduleName" > sourcekitten/"$moduleName".json
done | bash |
d_bash_19325 | ---
+++
@@ -1,4 +1,10 @@
#! /usr/bin/env bash
+#PBS -N ILAMB
+#PBS -M mark.piper@colorado.edu
+#PBS -m e
+#PBS -l pmem=8gb
+#PBS -l nodes=1:ppn=2
+#PBS -l walltime=12:00:00
cd $PBS_O_WORKDIR
source /home/csdms/wmt/_testing/conda/bin/activate | bash |
d_bash_19326 | ---
+++
@@ -20,7 +20,7 @@
cmake
git
git-extras
- heroku-toolbelt
+# heroku-toolbelt
httpie
iperf
jq | bash |
d_bash_19327 | ---
+++
@@ -1,6 +1,11 @@
#!/bin/bash
set -e
+
+if [ $CIRCLE_BRANCH == "master" ]; then
+ export TEST_CHECK_FACTOR=20
+fi
+
i=0
files="" | bash |
d_bash_19328 | ---
+++
@@ -1,4 +1,9 @@
# Test generating passwords with a default count (4)
+
+# Assume UTF-8 locale for this, if you use international characters without
+# UTF-8, feel free to fix or file a bug report.
+export LANG=en_US.UTF-8
+export LC_ALL=$LANG
use_config simple
cat >> test.config << EOF
@@ -10,18 +15,27 @... | bash |
d_bash_19329 | ---
+++
@@ -24,6 +24,7 @@
rm -rf '/Applications/MAMP PRO'
install_cask keybase
install_cask postman
+install_cask slack
echo "Installing Quick Look plugins..."
| bash |
d_bash_19330 | ---
+++
@@ -1,3 +1,4 @@
+npm install typescript@beta
case $CIRCLE_NODE_INDEX in
0)
npm run compiler-version | bash |
d_bash_19331 | ---
+++
@@ -3,4 +3,4 @@
echo "Seeding .config"
-mkdir -p ~/.config
+mkdir -p ~/.config/fish | bash |
d_bash_19332 | ---
+++
@@ -23,6 +23,9 @@
fi
}
+wifi(){
+}
+
setup_autostart(){
print_title "Configuring ~/.config/openbox/autostart"
print "default keyboard layouts + switch command" | bash |
d_bash_19333 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/sh
-dwdiff -i -c -A best text_from_url1 text_from_url2 | aha > /home/tool/http/diff.html
+dwdiff -i -c -A best text_from_url1 text_from_url2 | aha -w > /home/tool/http/diff.html | bash |
d_bash_19334 | ---
+++
@@ -27,7 +27,6 @@
echo "Installing Quick Look plugins..."
-install_cask qlmarkdown
install_cask scriptql
install_cask quicklook-json
install_cask betterzip | bash |
d_bash_19335 | ---
+++
@@ -5,7 +5,7 @@
rm -rf concourse-filter/.git &>/dev/null
pushd concourse-filter &>/dev/null
go build &>/dev/null
- CREDENTIAL_FILTER_PARAMS=STACKS,DEPLOYMENT_NAME,SSH_AGENT_PID,IAAS,RUBYGEM_MIRROR,BOSH_LITE_NAME,AZURE_BOSH_USER,BOSH_USER,LANGUAGE,CI_CF_USERNAME,BOSH_TARGET,BOSH_LITE_DISK_SIZE,BR... | bash |
d_bash_19336 | ---
+++
@@ -12,7 +12,7 @@
if [ -f "${filepath_git}" -o -d "${filepath_git}" ];
then
local filepath_home="${HOME}/${TARGET}"
- ln -svih "${filepath_git}" "${filepath_home}"
+ ln -svi "${filepath_git}" "${filepath_home}"
fi
done
| bash |
d_bash_19337 | ---
+++
@@ -8,7 +8,7 @@
NSAMPLES="${1:-10000}"
echo "NSAMPLES: ${NSAMPLES}"
-JOB_NAME="${USER}-${TIMESTAMP}"
+JOB_NAME=$(echo "${USER}-${TIMESTAMP}" | tr '_' '-')
ENTRYPOINT="python3 /app/beam_sbm.py \
--runner=DataflowRunner \ | bash |
d_bash_19338 | ---
+++
@@ -7,7 +7,8 @@
set -e
# Needed software
-sudo pacman -S openssh\
+sudo pacman -S openssh \
+keepass \
firefox firefox-i18n-de \
thunderbird thunderbird-i18n-de \
libreoffice-still libreoffice-still-de \ | bash |
d_bash_19339 | ---
+++
@@ -5,8 +5,8 @@
DIR=`mktemp -d`
cd $DIR
-wget "https://github.com/darealshinji/debian/archive/master.tar.gz"
+wget "https://github.com/darealshinji/debian-packaging/archive/master.tar.gz"
tar xvf master.tar.gz
-cd debian-master/games/unityengine2deb && make PBUILDER=0
+cd debian-packaging-master/games/... | bash |
d_bash_19340 | ---
+++
@@ -18,5 +18,6 @@
popd
git add .
+ git config --global alias.ci commit
./scripts/commit-with-submodule-log src/code.cloudfoundry.org/buildpackapplifecycle
popd | bash |
d_bash_19341 | ---
+++
@@ -19,6 +19,7 @@
}
alias grep='grep --color=auto'
+alias ack='ag'
# grep history
alias gh='fc -l 0 | grep' | bash |
d_bash_19342 | ---
+++
@@ -1,7 +1,7 @@
echo 'Installing PHP 7.0...'
echo 'Updating apt-get repositories...'
sudo apt-get update &> /dev/null
-echo 'Added php7.0...'
+echo 'Adding php7.0...'
sudo add-apt-repository ppa:ondrej/php -y &> /dev/null
echo 'Installing php7.0...'
sudo apt-get install php7.0 -y &> /dev/null | bash |
d_bash_19343 | ---
+++
@@ -11,17 +11,7 @@
echo 'Updating homebrew'
brew update
fi
-brew tap homebrew/bundle
-
-###### RUBY INSTALLS ######
-gem install jekyll # Install Jekyll
-
-###### NODE INSTALLS ######
-npm install -g yo # Install Yeoman
-npm install -g bower # Install Bower
-npm install -g grunt-cli # Install GRUNT... | bash |
d_bash_19344 | ---
+++
@@ -1,3 +1,13 @@
-# Add PYENV and base 3.4.3 Python
+#!/usr/bin/env bash
+
+# Add PYENV and base Python versions
su - vagrant -c "curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash"
su - vagrant -c "pyenv install 3.4.3"
+su - vagrant -c "pyenv install 2.7.9"
+
+... | bash |
d_bash_19345 | ---
+++
@@ -4,7 +4,7 @@
rm -rf ChannelWorm
-git clone https://github.com/joebowen/ChannelWorm.git
+git clone https://github.com/VahidGh/ChannelWorm.git
cp -r ChannelWorm/channelworm/* ~/app-root/runtime/repo
cp -r ChannelWorm/channelworm/.openshift/* ~/app-root/runtime/repo/.openshift | bash |
d_bash_19346 | ---
+++
@@ -8,10 +8,10 @@
readonly tag=${tag:?"v0.29.0-329"}
echo "### Committing version bump"
-git commit -S -am "Bump version: ${tag}"
+git commit -am "Bump version: ${tag}"
echo "### tagging VimR"
-git tag -s -m "${tag}" "${tag}"
+git tag -m "${tag}" "${tag}"
echo "### Pushing commit and tag to vimr rep... | bash |
d_bash_19347 | ---
+++
@@ -2,12 +2,12 @@
set -e
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
- ionic cordova platform add ios --noresources --no-interactive
+ ionic cordova platform add ios --noresources --no-interactive --verbose
cp GoogleService-Info.plist "platforms/ios/Deus LARP 2017/Resources/Resources"
- ionic cordova ... | bash |
d_bash_19348 | ---
+++
@@ -1,10 +1,12 @@
#!/bin/bash
# Parse command line arguments
-pelagicontain_bin=../../build/pelagicontain/src/pelagicontain
+pelagicontain_bin=../../build/pelagicontain/src/pelagicontain
container_path=/tmp/container/
+controller_bin=../../build/controller/src/controller
+setup_script=../../scripts/setu... | bash |
d_bash_19349 | ---
+++
@@ -27,7 +27,7 @@
# set postgres user password
#-------------------------------------------------------------------------------
PG_PWD=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
-psql -U postgres -c "ALTER USER Postgres WITH PASSWORD \'${PG_PWD}\';"
+psql -U postgres -c "ALTER USER P... | bash |
d_bash_19350 | ---
+++
@@ -1,6 +1,6 @@
VERSION=2.0.4
TAR=https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-$VERSION.tar.gz
-BUILD_DEPENDS=(sdl2 liborbital llvm mesa mesa_glu zlib)
+BUILD_DEPENDS=(sdl2 liborbital llvm mesa mesa_glu zlib libogg libvorbis)
function recipe_version {
echo "$VERSION"
@@ -16,7 +16,7 @... | bash |
d_bash_19351 | ---
+++
@@ -1,7 +1,7 @@
#! /bin/sh -e
# Run SQL in sqlite3 directory against SQLite3.
-rm -f ./sqlite3/test.db
+rm -f ./sql/test.db
source common.sh
| bash |
d_bash_19352 | ---
+++
@@ -1,16 +1,8 @@
#!/bin/bash -e
-echo y | sudo apt update
-echo y | sudo apt install \
- apt-transport-https \
- ca-certificates \
- curl \
- software-properties-common
-curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
-echo y | sudo apt-key fingerprint 0EBFCD88
-ech... | bash |
d_bash_19353 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
NEW_VERSION=$1
-OLD_VERSION=$(git tag | tail -1)
+OLD_VERSION=$(git tag --sort=-version:refname | head -1)
if [ -z "$NEW_VERSION" ]; then
echo "Provide a new version number" | bash |
d_bash_19354 | ---
+++
@@ -9,6 +9,7 @@
PATH="$PATH:/usr/local/git/bin"
PATH="$PATH:$HOME/.cargo/bin"
PATH="$PATH:$HOME/Library/Python/2.7/bin"
+ PATH="$PATH:$HOME/.local/bin"
PATH="$PATH:$HOME/perl5/bin";
PATH="$HOME/.yarn/bin:$PATH"
PATH="$HOME/.config/kubectx:$PATH" | bash |
d_bash_19355 | ---
+++
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
+
+set -ex
mkdir dist/Syncplay.app/Contents/Resources/English.lproj
mkdir dist/Syncplay.app/Contents/Resources/en_AU.lproj
@@ -11,9 +13,3 @@
pip3 install dmgbuild
mv syncplay/resources/macOS_readme.pdf syncplay/resources/.macOS_readme.pdf
dmgbuild -s appdmg.py "Sync... | bash |
d_bash_19356 | ---
+++
@@ -10,6 +10,7 @@
ln -s /mnt/fuelphp /home/vagrant/fuelphp
cp /mnt/fuelphp/vagrant/*.conf /etc/httpd/conf.d
curl get.fuelphp.com/oil | sh
+sed -i 's/^#ServerName www.example.com:80$/ServerName localhost:80/' /etc/httpd/conf/httpd.conf
sed -i 's/^;date.timezone =$/date.timezone = Asia\/Tokyo/' /etc/php.ini... | bash |
d_bash_19357 | ---
+++
@@ -8,6 +8,14 @@
cd $base_dir
for i in vscode-* ; do
cd ${base_dir}/${i}
+ echo "***************************************************************************************"
+ echo "***************************************************************************************"
+ echo "*******************... | bash |
d_bash_19358 | ---
+++
@@ -1,5 +1,30 @@
-#!/bin/bash -eux
-yapf --in-place --recursive .
+#!/bin/bash -ux
+
+base_remote="${1:-origin}"
+base_branch="${1:-master}"
+base_remote_branch="${1:-master}"
+
+set +e
+
+if [ "$(<.git/refs/heads/${base_branch})" != "$(<.git/refs/remotes/${base_remote}/${base_remote_branch})" ]; then
+ ec... | bash |
d_bash_19359 | ---
+++
@@ -1,7 +1,7 @@
LOG=pip.log
-(pip install -r requirements/requirements.txt > $LOG 2>&1 || cat $LOG) &
-(pip install -r requirements/dev-requirements.txt > $LOG 2>&1 || cat $LOG) &
+(pip install --use-mirrors -r requirements/requirements.txt > $LOG 2>&1 || cat $LOG) &
+(pip install --use-mirrors -r requirem... | bash |
d_bash_19360 | ---
+++
@@ -3,10 +3,15 @@
RUNTIMES="nodejs4.3 nodejs6.10 nodejs8.10 python2.7 python3.6 java8 go1.x dotnetcore2.0 dotnetcore2.1"
docker push lambci/lambda-base
-docker push lambci/lambda-base:build
for RUNTIME in $RUNTIMES; do
echo $RUNTIME
docker push lambci/lambda:${RUNTIME}
+done
+
+docker push lambci... | bash |
d_bash_19361 | ---
+++
@@ -1,7 +1,9 @@
#!/usr/bin/env bash
-mkdir build
-cd build
+if [ "$IS_COVERAGE_BUILD" == 0 ]; then
+ mkdir build
+ cd build
+fi
if [ "$IS_COVERAGE_BUILD" == 1 ]; then
flags="-g -O0 --coverage" | bash |
d_bash_19362 | ---
+++
@@ -4,12 +4,13 @@
echo "AutoDetect-"
target=` ifconfig | grep enp | cut -d' ' -f1 `
echo $target
-else
+else
+ echo "Device \"$1\" was selected-"
target=$1
+ echo $target
fi
-
ip_address="192.168.0.15"
-sudo ifconfig enp0s31f6 $ip_address
+sudo ifconfig $target $ip_address
sudo route add... | bash |
d_bash_19363 | ---
+++
@@ -27,7 +27,7 @@
releaseName=$(jq .name <(cat <<<"$release"))
echo Release: $releaseId - $releaseName - $tag - $commitId
-releaseData="{\"tag_name\": \"$tag\", \"target_commitish\": \"$commitId\", \"name\":\"$releaseName\", \"body\": \"$releaseBody\", \"draft\": \"false\", \"prerelease\": \"false\"}"
+re... | bash |
d_bash_19364 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
export SRC_DIR=$(cd "$(dirname "$0")"; pwd)
| bash |
d_bash_19365 | ---
+++
@@ -37,4 +37,3 @@
echo "Installing additional plugins..."
install_cask colorpicker-hex
-install_cask java | bash |
d_bash_19366 | ---
+++
@@ -33,7 +33,4 @@
alias cp='cp -vi'
alias mv='mv -vi'
alias vi='vim'
-alias emacs='emacs -nw'
-alias sudo='sudo -E'
-alias dialog='dialog --keep-tite --ascii-lines'
| bash |
d_bash_19367 | ---
+++
@@ -6,6 +6,7 @@
APOLLO_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${APOLLO_ROOT}/bootstrap/apollo-env.sh"
+source "${APOLLO_ROOT}/bootstrap/common.sh"
source "${APOLLO_ROOT}/bootstrap/${APOLLO_PROVIDER}/util.sh"
echo "Bringing down cluster using provider: $APOLLO_PROVIDER" | bash |
d_bash_19368 | ---
+++
@@ -2,7 +2,7 @@
TORRENT=/opt/transmission/NOOBS_lite_v2_4.zip.torrent
CLIENT=/opt/transmission/bin/transmission-cli
DIR=`mktemp -d`
-CURRENT="$pwd"
+CURRENT="$PWD"
rm -rf ~/.config/transmission
cd "$DIR"
"$CLIENT" --download-dir . "$TORRENT" >/dev/null 2>/dev/null | bash |
d_bash_19369 | ---
+++
@@ -27,6 +27,11 @@
exit 1
fi
+# Refresh sudo credentials if not running on GCE.
+if ! ping -c 1 -q metadata.google.internal &> /dev/null; then
+ sudo -v || exit 1
+fi
+
# Provided for backwards compatibility
"${ginkgo}" --focus=$focus --skip=$skip "${KUBE_ROOT}/test/e2e_node/" --report-dir=${report} ... | bash |
d_bash_19370 | ---
+++
@@ -11,7 +11,8 @@
# npm - manual workaround
npmroot=$(npm root -g)
-for i in $(cat "${HOMERECIPE_DIR}"/recipes/npm-recipe); do
+grep -v '^ *#' < "${HOMERECIPE_DIR}"/recipes/npm-recipe | while IFS= read -r i
+do
if [[ -d $npmroot/$i ]]
then
echo "Skipping as already installed: $i" | bash |
d_bash_19371 | ---
+++
@@ -9,7 +9,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.8%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.8_10.tar.gz"
;;
java14)
- echo "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.1%2B7/OpenJDK14U-jdk_x64_linux_hotspot_14.0.1... | bash |
d_bash_19372 | ---
+++
@@ -1,3 +1,4 @@
# Install vscode extensions
code --install-extension ms-vscode.atom-keybindings
code --install-extension eg2.tslint
+code --install-extension yzane.markdown-pdf | bash |
d_bash_19373 | ---
+++
@@ -4,9 +4,8 @@
echo "Initializing"
cd web-module
-sudo $(which npm) cache clean -f
-sudo $(which npm) install
-sudo $(which npm) gulp
+npm cache clean -f
+npm install
echo "Compiling"
gulp | bash |
d_bash_19374 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/zsh
# Don't ask ssh password all the time
-git config --global user.helper osxkeychain
+git config --global credential.helper osxkeychain
# Better diffs
if which diff-so-fancy > /dev/null 2>&1; then | bash |
d_bash_19375 | ---
+++
@@ -3,12 +3,15 @@
# This is used by android-shell-app.js
set -eo pipefail
-if [ -f /etc/profile ]; then
- source /etc/profile >/dev/null
-fi
+# Initialize the shell if we aren't already running in a terminal (initialize just once)
+if [[ -z "$TERM" ]] || [[ $TERM == "dumb" ]]; then
+ if [ -f /etc/profil... | bash |
d_bash_19376 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Copyright (c) 2011, 2015 Eurotech and/or its affiliates
+# Copyright (c) 2011, 2014 Eurotech and/or its affiliates
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
@@ -11,21 +11,19... | bash |
d_bash_19377 | ---
+++
@@ -11,8 +11,7 @@
files=(about.html basic_ldpi.skn basic_mdpi.skn basic_hdpi.skn basic_xhdpi.skn categories.txt classificator.txt
types.txt fonts_blacklist.txt fonts_whitelist.txt languages.txt \
symbols_ldpi.png symbols_mdpi.png symbols_hdpi.png symbols_xhdpi.png unicode_blocks.txt \
- ... | bash |
d_bash_19378 | ---
+++
@@ -15,6 +15,14 @@
echo "Linking '$from' to '$to'"
rm -f "$to"
ln -s "$from" "$to"
+}
+
+sulink() {
+ from="$1"
+ to="$2"
+ echo "Linking '$from' to '$to'"
+ sudo rm -f "$to"
+ sudo ln -s "$from" "$to"
}
# Link dotfiles | bash |
d_bash_19379 | ---
+++
@@ -15,7 +15,7 @@
exec /usr/bin/python \
/usr/lib/ccweb/worker.py &
-exec /usr/local/bin/gunicorn \
+exec /opt/app-root/bin/gunicorn \
--workers 2 \
--bind 0.0.0.0:3000 \
--chdir /usr/lib/ccweb \ | bash |
d_bash_19380 | ---
+++
@@ -20,15 +20,15 @@
# Install base system, fstab, grub
pacstrap /mnt base base-devel
-genfstab -pU /mnt >> /mnt/etc/fstab
+genfstab -p /mnt >> /mnt/etc/fstab
pacstrap /mnt grub-bios
# Keyboard, locale, time
arch-chroot /mnt /bin/bash -c '
-echo "KEYMAP=uk" > /etc/vconsole.conf
-echo "en_GB.UTF-8 UTF-... | bash |
d_bash_19381 | ---
+++
@@ -8,4 +8,6 @@
alias mc='make clean'
alias mca='make clean all'
+alias pod='GEM_HOME=/Library/Ruby/Gems/2.0.0 pod'
+
alias rmdd='rm -rf $HOME/Library/Developer/Xcode/DerivedData' | bash |
d_bash_19382 | ---
+++
@@ -26,5 +26,5 @@
newusers servers/dev.cs/student.usrpasswd
#Create SQL databases
-bash tasks/LAMP/add-SQL-users.sh servers/dev.cs/faculty.usrpasswd
-bash tasks/LAMP/add-SQL-users.sh servers/dev.cs/student.usrpasswd
+source tasks/LAMP/add-SQL-users.sh servers/dev.cs/faculty.usrpasswd
+source tasks/LAMP/ad... | bash |
d_bash_19383 | ---
+++
@@ -16,9 +16,9 @@
LIBCRYPTO_ROOT=$1
-wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
-tar xzf Python-3.5.1.tgz
-cd Python-3.5.1
+wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0b1.tgz
+tar xzf Python-3.6.0b1.tgz
+cd Python-3.6.0b1
./configure CPPFLAGS="-I$LIBCRYPTO_ROOT/include" L... | bash |
d_bash_19384 | ---
+++
@@ -11,7 +11,7 @@
# FIXME: We shouldn't really apply patches we already have installed, although
# it should be safe enough since any patch which is not idempotent should be
# denied multiple application through the AWL schema management functions.
-for PATCHFILE in "${DBADIR}/patches/patch-*.sql"; do
+for... | bash |
d_bash_19385 | ---
+++
@@ -26,7 +26,8 @@
if [[ ! -x "${TURBINE_HOME}/bin/turbine" ]]
then
- print "${TURBINE_HOME} does not appear to be a valid Turbine installation: expected ${TURBINE_HOME}/bin/turbine to be present"
+ print "Invalid Turbine installation: ${TURBINE_HOME}"
+ print "Turbine is not executable: ${TURBINE_HOME}... | bash |
d_bash_19386 | ---
+++
@@ -3,7 +3,9 @@
# Using $3 since CMD is expended by shell as
# entrypoint /bin/sh -c CMD
-if [ "$3" = 'pipelines' -a "$(id -u)" = '0' ]; then
+# Using cut as $3 includes all the params...
+cmd=$(echo $3 | cut -f1 -d' ')
+if [ "$cmd" = 'pipelines' -a "$(id -u)" = '0' ]; then
chown -R pipelines .
... | bash |
d_bash_19387 | ---
+++
@@ -5,9 +5,10 @@
if [[ -e ~/docker/digdag-build.tar.gz ]]; then
TARBALL_EXISTS=true
gunzip -c ~/docker/digdag-build.tar.gz | docker load
+ IMAGE_ID_PRE=$(docker inspect --format="{{.Id}}" digdag-build)
+else
+ IMAGE_ID_PRE=''
fi
-
-IMAGE_ID_PRE=$(docker inspect --format="{{.Id}}" digdag-buil... | bash |
d_bash_19388 | ---
+++
@@ -6,9 +6,8 @@
pip install --upgrade google-api-python-client
# git clone on Master
-USER=CHANGE_TO_USER_NAME # change this ...
ROLE=$(/usr/share/google/get_metadata_value attributes/dataproc-role)
if [[ "${ROLE}" == 'Master' ]]; then
- cd home/$USER
+ cd $HOME
git clone https://github.com/Googl... | bash |
d_bash_19389 | ---
+++
@@ -4,10 +4,10 @@
set -ex
-# Originally from https://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
-curl https://ci-mirrors.rust-lang.org/rustc/clang%2Bllvm-9.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz | \
+# Originally from https://github.com/llvm/llvm-project/releases/down... | bash |
d_bash_19390 | ---
+++
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
+
+set -eo pipefail
if [ -z "$TRAVIS_PYTHON_VERSION" ]; then
echo "Build is not targetting a Python version, can't run CI" >&2; exit 1
fi
-set -euo pipefail
-
make ci -e py_env=~/virtualenv/python$TRAVIS_PYTHON_VERSION | bash |
d_bash_19391 | ---
+++
@@ -14,7 +14,6 @@
dockutil
ffmpeg
gnu-sed --default-names
- grep --default-names
htop-osx
imagemagick
nmap | bash |
d_bash_19392 | ---
+++
@@ -10,7 +10,7 @@
if [[ "${isClosed}" =~ "Yes" ]]; then
result="💻✓|color=green"
else
- if netstat -an | grep .5900 | grep -q ESTABLISHED; then
+ if netstat -an | grep '.5900 ' | grep -q ESTABLISHED; then
result="✘💻✘|color=red"
fi
fi | bash |
d_bash_19393 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/env bash
-set -e
+set -eu -o pipefail
(
cd quick-protobuf/tests/rust_protobuf
@@ -14,14 +14,13 @@
quick-protobuf/benches/perftest_data/*.proto
quick-protobuf/examples/pb_rs/*.proto
quick-protobuf/examples/pb_rs_v3/*.proto
- quick-protobuf/no-std-example/src/... | bash |
d_bash_19394 | ---
+++
@@ -15,6 +15,7 @@
if [ -d "$RBENV_ROOT" ]; then
PATH="$RBENV_ROOT/bin:$RBENV_ROOT/shims:$PATH"
fi
+ PATH="$HOME/.pyenv/shims:$PATH"
PATH=".git/safe/../../bin:$PATH"
PATH=".git/safe/../../node_modules/.bin:$PATH"
PATH="$HOME/bin:$PATH" | bash |
d_bash_19395 | ---
+++
@@ -10,6 +10,7 @@
SCHEMA="public"
BACKUP_DIR="/srv/zotonic/sites/$SITE/files/backup"
DOWNLOAD_DIR="/tmp"
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")" && pwd )"
RECENT_BACKUP=`ssh zotonic@$URL ls "$BACKUP_DIR/*.sql" -t | head -n1 | xargs -n1 basename`
@@ -19,4 +20,4 @@
fi
echo "Importing $RECENT_B... | bash |
d_bash_19396 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash -x
export RAILS_ENV=test
bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
-bundle exec rake db:migrate
+bundle exec rake db:schema:load
bundle exec rake | bash |
d_bash_19397 | ---
+++
@@ -20,5 +20,5 @@
continue
fi
- find "$name" -type f -print0 | xargs -0 stat -c '%a %n' | grep '^0 ' | awk '{print $2}'
+ find "$name" -type f -print0 | xargs -0 stat -c '%a %n' | grep '^0 '
done | bash |
d_bash_19398 | ---
+++
@@ -14,6 +14,7 @@
# Symlink configurations
ln -s ~/Code/dotfiles/sublime_text/Preferences.sublime-settings ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/Preferences.sublime-settings
ln -s ~/Code/dotfiles/sublime_text/Package\ Control.sublime-settings ~/Library/Application\ Support/Sublime\ ... | bash |
d_bash_19399 | ---
+++
@@ -28,6 +28,9 @@
# provided versions
conda create -n testenv --yes python=$PYTHON_VERSION pip nose
source activate testenv
+ if [[ "PYTHON_VERSION" == "2.6" ]]; then
+ pip install argparse
+ fi
elif [[ "$DISTRIB" == "ubuntu" ]]; then
# Use standard ubuntu packages in their... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.