document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_6000 | ---
+++
@@ -1,4 +1,4 @@
-RELEASE=0.6.0
+RELEASE=0.7.1
git clone https://code.videolan.org/videolan/dav1d.git --branch $RELEASE
cd dav1d | bash |
d_bash_6001 | ---
+++
@@ -21,4 +21,10 @@
HOST_IP=$(ip addr | grep -Eo "inet [0-9\.]+" | grep -v 127.0.0.1 | head -n 1 | cut -d " " -f 2)
sed -i -e "s/SERVICE_HOST=127.0.0.1/SERVICE_HOST=$HOST_IP/g" $INSTALLDIR/devstack-gate/devstack-vm-gate.sh
+export PYTHONUNBUFFERED=true
+export DEVSTACK_GATE_TIMEOUT=60
+export DEVSTACK_GATE... | bash |
d_bash_6002 | ---
+++
@@ -1,4 +1,11 @@
function demo_screenshots() {
- SCREENSHOT=true bers spec/features
+ case $1 in
+ "")
+ SCREENSHOT=true bers spec/features
+ ;;
+ *)
+ SCREENSHOT=true bers $@
+ ;;
+ esac
open demo
} | bash |
d_bash_6003 | ---
+++
@@ -20,7 +20,7 @@
CI_IS_PR=true
fi
CI_TAG=
-if [[ "${GITHUB_REF:-}" =~ "^refs/tags/" ]]; then
+if [[ "${GITHUB_REF:-}" =~ ^refs/tags/ ]]; then
CI_TAG=${GITHUB_REF#refs\/tags\/}
fi
export CI=true | bash |
d_bash_6004 | ---
+++
@@ -21,6 +21,6 @@
TARGET_DIR='deps/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='onedata/oz-gui-default:VFS-1825'
+PRIMARY_IMAGE='docker.onedata.org/oz-gui-default:VFS-1825'
# Image which will ... | bash |
d_bash_6005 | ---
+++
@@ -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_6006 | ---
+++
@@ -2,7 +2,6 @@
# updates a formula on a masterless or master server
set -e # everything must pass
-set -x # output interpolated
set -u # no unbound variables
pname=$1
@@ -10,7 +9,7 @@
revision=${3:-""}
formula_root="/opt/formulas"
-if [ "$pname" = "builder-private" ]; then
+if [ "$pname" == "buil... | bash |
d_bash_6007 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
-starcluster start -c testcluster $BUILD_TAG
+starcluster start -c testcluster --force-spot-master -b .005 $BUILD_TAG
starcluster put $BUILD_TAG -u mark scripts/fetchdemon.sh fetchdemon.sh
starcluster sshmaster -u mark ./fetchdemon.sh
| bash |
d_bash_6008 | ---
+++
@@ -10,20 +10,27 @@
ln -sfv "$DOTFILES_ROOT/vscode/settings.json" "$HOME/Library/Application Support/Code/User/settings.json"
VSCODE_PACKAGES=(
+ ms-vscode.cpptools
g3ortega.crystal
kofno.crystal-ide
stevejpurves.cucumber
msjsdiag.debugger-for-chrome
+ EditorConfig.editorconfig
+ sbrink.elm... | bash |
d_bash_6009 | ---
+++
@@ -24,8 +24,15 @@
)
retval=$?; if [ $retval != 0 ]; then exit $retval; fi
+
# hack prevent commons-logging-1.1-dev
-rm -rf /home/projects/maven/repository-staging/to-ibiblio/maven2/commons-logging/commons-logging/1.1-dev
+CL=/home/projects/maven/repository-staging/to-ibiblio/maven2/commons-logging/commo... | bash |
d_bash_6010 | ---
+++
@@ -8,6 +8,20 @@
echo "Assign taxonomy to non rRNA..."
create_tool_section_dir $galaxy_tool_dir/assigne_taxonomy_to_non_rRNA
+
+## metaphlan
+echo " Metaphlan..."
+metaphlan=assigne_taxonomy_to_non_rRNA/metaphlan
+cd $galaxy_tool_dir/
+if [ ! -d "metaphlan/" ]; then
+ echo " cloning"
+ hg clone ht... | bash |
d_bash_6011 | ---
+++
@@ -1,3 +1,5 @@
+#Written as a quirk for macosx . Plse do file a bug in case of a failure
+
pip install six
pip install -r requirements.txt
pip install pcapy
@@ -8,6 +10,7 @@
sudo make install
cd python
sudo python setup.py install
-cd ..
-rm -rf libdnet-1.12
-echo "Testing Env"
+cd ../../
+sudo rm -rf... | bash |
d_bash_6012 | ---
+++
@@ -15,7 +15,7 @@
EXPOSE 8080 8443
-ADD https://raw.github.com/beijingren/dedalus-infrastructure/master/scripts/linux-docker/start-existdb.sh /start-existdb.sh
+ADD https://raw.github.com/beijingren/dedalus-infrastructure/master/linux-docker/scripts/start-existdb.sh /start-existdb.sh
RUN chmod 0755 /sta... | bash |
d_bash_6013 | ---
+++
@@ -1,16 +1,30 @@
#!/bin/sh
+# Default to running all tests.
+partial_test=0
+
+# If user requests a subset of tests for pytest, note this preference to avoid
+# running other tests.
case "$@" in
- *-k*) partial_test=1 ;;
+ *-k*) partial_test=1 ;;
esac
if [ "$partial_test" = 1 ]; then
- # skip test... | bash |
d_bash_6014 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/sh
HOST=${HOST:-localhost}
EMAIL=${EMAIL:-name@example.com}
+PROVIDER=${PROVIDER:-cloudflare}
cat << EOF > /etc/Caddyfile
$HOST
@@ -14,6 +15,9 @@
log stdout
404 404.html
}
+tls {
+ dns $PROVIDER
+}
EOF
caddy --conf /etc/Caddyfile --agree --email $EMAIL | bash |
d_bash_6015 | ---
+++
@@ -22,5 +22,6 @@
sed -i 's/ash/zsh/g' /etc/passwd
npm -g install npm
mkdir ~/.ssh
+touch ~/.z
cp /config/zsh /root/.zshrc
} | bash |
d_bash_6016 | ---
+++
@@ -2,10 +2,10 @@
set -ev
-if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
+if [[ ${TRAVIS_PULL_REQUEST} != "false" ]]; then
echo "Build for Pull Request"
mvn clean verify
-elif [ $TRAVIS_TAG =~ ^release.*$ ]; then
+elif [[ $TRAVIS_TAG =~ ^release.*$ ]]; then
echo "Build for release"
mvn clean v... | bash |
d_bash_6017 | ---
+++
@@ -8,6 +8,7 @@
pwd
python search_forking_pro.py -p ./../../data/2chkifu/
python test_komaochi_convert.py -p ./../../data/2chkifu/
-python demo_kifuconvert.py -p ./../../data/2chkifu/
+python demo_kifuconvert.py -p ./../../data/2chkifu/ > results_kifu_convert.txt
+tail results_kifu_convert.txt
cd -
pwd | bash |
d_bash_6018 | ---
+++
@@ -33,9 +33,8 @@
./configure
make
make install
+echo "config_opts['basedir'] = '$CHROOT_PREFIX'" > /usr/local/etc/mock/site-defaults.cfg
mock -r $DISTRO-$DISTRO_VERSION-$ARCH --init --resultdir=~/mock
-rm -f $CHROOT_PATH
-ln -s /var/lib/mock/$DISTRO-$DISTRO_VERSION-$ARCH/root $CHROOT_PATH
echo "instal... | bash |
d_bash_6019 | ---
+++
@@ -31,4 +31,4 @@
popd > /dev/null 2>&1
# Re-source oh-my-zsh.zsh to fix PROMPT
-. .dotfiles/shell/oh-my-zsh.zsh
+source $HOME/.dotfiles/shell/oh-my-zsh.zsh | bash |
d_bash_6020 | ---
+++
@@ -13,7 +13,6 @@
docker-compose#${BUILDKITE_COMMIT}:
run: alpinewithfailinglink
config: test/docker-compose.yml
- logs: always
- wait
- command: /hello
label: run
@@ -55,6 +54,5 @@
docker-compose#${BUILDKITE_COMMIT}:
run: helloworldimage
con... | bash |
d_bash_6021 | ---
+++
@@ -6,5 +6,5 @@
rm -rf /tmp/minizip
git clone https://github.com/nmoinvaz/minizip.git /tmp/minizip
cd /tmp/minizip
-cmake .
+/tmp/cmake/bin/cmake .
sudo make install | bash |
d_bash_6022 | ---
+++
@@ -15,8 +15,8 @@
alias l='ls -CF'
alias rt='ls -lsrta'
-alias gstat='for dir in * ; do cd $dir; git status; echo $dir; echo " " ; cd ..; done'
-alias gdiff='for dir in * ; do cd $dir; git status; echo $dir; echo " " ; cd ..; done'
+alias gstat='for dir in * ; do cd \$dir; git status; echo \$dir; echo " "... | bash |
d_bash_6023 | ---
+++
@@ -1,6 +1,33 @@
# A lightweight wrapper for the python 3.3+ venv utility
# Create a new virtual enviroment
+#
+# If $VENV_HOME is defined then the new venv is created in that directory,
+# otherwise it will be created in the current directory.
mkvenv () {
- python3 -m venv "$@"
+ typeset RC
+ # check th... | bash |
d_bash_6024 | ---
+++
@@ -12,5 +12,5 @@
cd book-output
cp -r ../_book/* ./
git add --all *
-git commit -m "Update the book" || true
+git commit -m "Update the book to ${TRAVIS_COMMIT}" || true
git push origin gh-pages | bash |
d_bash_6025 | ---
+++
@@ -29,7 +29,7 @@
# Don't update XCTest, handle spaces in directories
for f in ./stdlib/public/SDK/*/; do
- name=`basename "${f}"`
+ name=$(basename "${f}")
if [[ "${name}" == "XCTest" ]]; then
continue
fi | bash |
d_bash_6026 | ---
+++
@@ -8,7 +8,7 @@
RESEARCHGROUPNAME="ADMIRAL Demonstrator"
ADMIRALHOSTNAME="admiral-demo"
-ADMIRALDOMAINDC="zoo ox ac uk"
+ADMIRALDOMAINDC=""
IPADDR="192.168.82.129"
# Samba/Windows workgroup name for research group files | bash |
d_bash_6027 | ---
+++
@@ -17,6 +17,14 @@
exit 1
fi
+# Do the initial apt-get update
+echo "Initial apt-get update..."
+apt-get update >/dev/null
+
+# Install wget if we have to (some older Ubuntu versions)
+echo "Installing wget..."
+apt-get install -y wget >/dev/null
+
# Install the PuppetLabs repo
echo "Configuring Puppe... | bash |
d_bash_6028 | ---
+++
@@ -8,6 +8,13 @@
apt-get update
apt-get -y upgrade
apt-get -y install --no-install-recommends procps
+
+#facade
apt-get -y install --no-install-recommends git
+
+# https://github.com/giampaolo/psutil/issues/1714
+apt-get -y install --no-install-recommends gcc
+apt-get -y install --no-install-recommends py... | bash |
d_bash_6029 | ---
+++
@@ -7,7 +7,7 @@
LATEST=`git tag -l | sort -r | head -1`
echo LATEST=${LATEST}
-docker login --username ${DOCKER_USER} --password ${DOCKER_PASSWORD} --email ${DOCKER_EMAIL}
+docker login --username ${DOCKER_USER} --password ${DOCKER_PASSWORD}
# If CIRCLE_TAG is not zero length and starts with "v", then ... | bash |
d_bash_6030 | ---
+++
@@ -20,7 +20,8 @@
}
do_check() {
- return 0 # makes no sense here…
+ attach
+ $(pkg_path_for core/php)/bin/php "../${pkg_filename}" --version 2>&1 | grep -q ${pkg_version}
}
do_install() {
@@ -31,8 +32,4 @@
$(pkg_path_for core/php)/bin/php "$pkg_prefix/bin/$pkg_filename" "\$@"
EOF
chmod +x "$p... | bash |
d_bash_6031 | ---
+++
@@ -3,6 +3,7 @@
git add .slugignore
git add Procfile
git add runtime.txt
+sh requirements.sh
git add requirements.txt
git add example_gunicorn.py
echo "$ heroku create --ssh-git" | bash |
d_bash_6032 | ---
+++
@@ -3,5 +3,5 @@
set -e
set -x
-export UNIXODBC_INCLUDE_DIR=$PREFIX/include
+export UNIXODBC_INCLUDE_DIR=$CONDA_PREFIX/include
python setup.py install --single-version-externally-managed --record record.txt | bash |
d_bash_6033 | ---
+++
@@ -25,7 +25,7 @@
cd colonyNetwork || exit
yarn
yarn remove -W eth-gas-reporter --dev
- yarn add -W https://github.com/cgewecke/eth-gas-reporter.git#$TRAVIS_PULL_REQUEST_BRANCH
+ yarn add -W https://github.com/$TRAVIS_PULL_REQUEST_SLUG.git#$TRAVIS_PULL_REQUEST_BRANCH
git submodule update --init
... | bash |
d_bash_6034 | ---
+++
@@ -1,5 +1,8 @@
#!/bin/sh
set -ueo pipefail
+GEM_PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin"
+export PATH="${GEM_PATH}:${PATH:-}"
+
bundle install --path vendor/bundle
rake clean build | bash |
d_bash_6035 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk12-binaries/releases/download/jdk-12.0.2%2B10/OpenJDK12U-jdk_x64_linux_hotspot_12.0.2_10.tar.gz"
;;
java13)
- echo "https://github.com/AdoptOpenJDK/openjdk13-binaries/releases/download/jdk13u-2019-08-10-12-43/OpenJDK13U-jdk_x64_linux_hot... | bash |
d_bash_6036 | ---
+++
@@ -1,8 +1,13 @@
#!/bin/sh
# kill simulator
-echo "Killing all top-level simulator processes..."
+echo "Killing all top-level Xcode 5 simulator processes..."
killall -9 "iPhone Simulator"
+echo "Killing all top-level Xcode 6 simulator processes..."
+killall -9 "iOS Simulator"
+
+echo "Killing ScriptAgent... | bash |
d_bash_6037 | ---
+++
@@ -20,7 +20,7 @@
total_no_misses=$(awk '/TOTAL/{printf("%s",$3)}' < "${report_file}")
total_no_covered=$((${total_no_lines} - ${total_no_misses}))
echo "##teamcity[buildStatisticValue key='<CodeCoverageAbsLTotal>' value='""<${total_no_lines}"">']"
-echo "##teamcity[buildStatisticValue key='<CodeCoverageAb... | bash |
d_bash_6038 | ---
+++
@@ -3,10 +3,11 @@
set -x
FILE="conftest.ml"
+MAKEFILE=""
function cleanup () {
PREFILE="${FILE%.ml}"
- rm -f "$PREFILE.cmi" "$PREFILE.cmo" "$PREFILE.cmx" "$PREFILE.cmxs" "$PREFILE.ml.d" "$PREFILE.o" "$FILE"
+ rm -f "$PREFILE.cmi" "$PREFILE.cmo" "$PREFILE.cmx" "$PREFILE.cmxs" "$PREFILE.ml.d" ... | bash |
d_bash_6039 | ---
+++
@@ -1,2 +1,3 @@
#!/usr/bin/env sh
wget http://waf.googlecode.com/files/waf-1.7.4 -O waf
+chmod +x waf | bash |
d_bash_6040 | ---
+++
@@ -2,7 +2,11 @@
BUILDER=${BUILDER:-local}
function rust_musl_builder() {
- docker run --rm -it -v "$(pwd)":/home/rust/src -v cargo-git:/home/rust/.cargo/git -v cargo-registry:/home/rust/.cargo/registry ekidd/rust-musl-builder "$@"
+ docker run --rm -it -v "$(pwd)":/home/rust/src \
+ -w /home/rust/sr... | bash |
d_bash_6041 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/sh
-$PWD/generate_resume.py --outfile resume.html --css screen.css --font-css fonts.css --print-css print.css --inline-css -- template.html data.json
+$PWD/generate_resume.py --outfile resume.html --css screen.css --print-css print.css --inline-css -- template.html data.json | bash |
d_bash_6042 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
set -ev;
-cd target/webapp
+cd target/webapp/react-bp
git init
git config user.name ${GH_NAME}
git config user.email ${GH_EMAIL} | bash |
d_bash_6043 | ---
+++
@@ -1,15 +1,15 @@
#!/usr/bin/env bash
if (command -v jq >/dev/null) && [[ $(jq '.cloudServer.exists' "${HOME}/.arlobot/personalDataForBehavior.json") == true ]]; then
+ export NVM_DIR="$HOME/.nvm"
+ # shellcheck source=/home/chrisl8/.nvm/nvm.sh
+ [[ -s "$NVM_DIR/nvm.sh" ]] && \. "$NVM_DIR/nvm.sh" # Thi... | bash |
d_bash_6044 | ---
+++
@@ -5,4 +5,4 @@
mkdir mongo
fi
-$MONGO --journal --dbpath ./mongo
+$MONGO --bind_ip 0.0.0.0 --journal --dbpath ./mongo | bash |
d_bash_6045 | ---
+++
@@ -13,6 +13,10 @@
case "$(uname)" in
Darwin)
test -z ${HOMEBREW_PREFIX:+null} && test -x /usr/local/bin/brew && eval "$(SHELL=/bin/sh /usr/local/bin/brew shellenv)"
+
+ JAVA_HOME="$(/usr/libexec/java_home 2>/dev/null)"
+ test -n "$JAVA_HOME" && export JAVA_HOME || unset JAVA_HOME
+
comman... | bash |
d_bash_6046 | ---
+++
@@ -42,7 +42,7 @@
cd electron_app
npm version --no-git-tag-version "$release"
-git commit package.json package-lock.json -m "$tag"
+git commit package.json -m "$tag"
cd .. | bash |
d_bash_6047 | ---
+++
@@ -15,13 +15,13 @@
echo "==============================================="
echo "installing leap"
echo "==============================================="
-gem install leap_cli
-#cd /tmp
-#git clone -b develop https://leap.se/git/leap_cli.git
-#cd leap_cli
-#git checkout develop
-#rake build
-#rake install
... | bash |
d_bash_6048 | ---
+++
@@ -5,8 +5,10 @@
local key="$1"
local script="$2"
- tmux bind-key -n "$key" run-shell " \
- tmux send-keys '$key'; \
- $script; \
- true"
+ # 1. 'key' is sent to tmux. This ensures the default key action is done.
+ # 2. Script is executed.
+ # 3. `true` command ensures an exit status 0 is returned. T... | bash |
d_bash_6049 | ---
+++
@@ -8,5 +8,9 @@
bosh login $BOSH_USERNAME $BOSH_PASSWORD
bosh download manifest $RELEASE_NAME $BITS_SERVICE_MANIFEST
+bosh2 int deployment-vars/environments/${ENVIRONMENT_NAME}/deployment-vars.yml \
+ --path /default_ca/certificate > /tmp/ca-cert
+export BITS_SERVICE_CA_CERT=/tmp/ca-cert
+
bundle inst... | bash |
d_bash_6050 | ---
+++
@@ -14,7 +14,8 @@
else
echo "Most recent release tag: $release"
fi
-release=`echo "$release" | sed -e 's/-\d*.*//'`
+
+release=`echo "$release" | sed -e 's/^.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*\+$/\1/'`
new_release="$release-${BUILD_NUMBER}"
echo "Issuing release $new_release..." | bash |
d_bash_6051 | ---
+++
@@ -3,4 +3,4 @@
set -e
set -u
-git submodule update --init --remote --recursive
+git submodule update --init --remote --recursive --rebase | bash |
d_bash_6052 | ---
+++
@@ -27,7 +27,8 @@
rm -rf functional-text-sandbox
if ! git diff-index --quiet HEAD --; then
- git add index.html bundle.js bundle.js.map
+ echo "{ \"parent_version\": \"$PARENT_COMMIT\", \"sandbox_version\": \"$SANDBOX_COMMIT\" }" > version.json
+ git add index.html bundle.js bundle.js.map version... | bash |
d_bash_6053 | ---
+++
@@ -4,7 +4,7 @@
for i in *.py; do
printf "$i "
- python3 -m doctest $i > $i.log
+ pypy3 -m doctest $i > $i.log
if [[ $? -ne 0 ]]; then
printf "${red}✗${normal}\n"
else | bash |
d_bash_6054 | ---
+++
@@ -11,9 +11,9 @@
if [ -f /config/backend-config.properties ] ; then
echo "using /config/backend-config.properties"
- java -DconfigFileLocation=/config/backend-config.properties -jar /unified-views/backend.jar
+ java -Xms1g -Xmx4g -DconfigFileLocation=/config/backend-config.properties -jar /uni... | bash |
d_bash_6055 | ---
+++
@@ -6,3 +6,4 @@
cp *.codesnippet $XCODE_SNIPPETS_DIR
echo Installed snippets in $XCODE_SNIPPETS_DIR
+echo Restart Xcode if it is currently open to use snippets. | bash |
d_bash_6056 | ---
+++
@@ -2,10 +2,17 @@
set -o errexit
set -o nounset
-if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TRAVIS_SECURE_ENV_VARS" = "true" ]]; then
- openssl aes-256-cbc -K "$encrypted_02b73d51c278_key" -iv "$encrypted_02b73d51c278_iv" -in signing/secrets.tar.enc -out signing/secrets.tar -d
- unset "encrypted_02b73d... | bash |
d_bash_6057 | ---
+++
@@ -1,3 +1,3 @@
#/bin/sh
echo "Executing 'java $JAVA_OPTS $GREENMAIL_OPTS -jar greenmail-standalone.jar' ..."
-java $JAVA_OPTS $GREENMAIL_OPTS -jar greenmail-standalone.jar
+exec java $JAVA_OPTS $GREENMAIL_OPTS -jar greenmail-standalone.jar | bash |
d_bash_6058 | ---
+++
@@ -6,4 +6,5 @@
bkufile="${bkupath}all_databases-${now}-.sql"
/usr/bin/mysqldump --all-databases > $bkufile
/usr/bin/pigz --best $bkufile
+find /backup/all_databases* -mtime +1 -type f -delete
echo "End backup for ${now}" >> /root/bku.log | bash |
d_bash_6059 | ---
+++
@@ -1,8 +1,8 @@
# Software management.
-alias sma='su -c "apt-get update && aptitude upgrade"'
-alias smud='su -c "apt-get update"'
-alias smug='su -c "aptitude upgrade"'
+alias sma='su -c "apt update && apt upgrade"'
+alias smud='su -c "apt update"'
+alias smug='su -c "apt upgrade"'
alias ll='ls -la'... | bash |
d_bash_6060 | ---
+++
@@ -11,7 +11,7 @@
rm spring-boot.rb
mv spring-boot-cli-*.rb spring-boot.rb
git config user.name "Spring Buildmaster" > /dev/null
- git config user.email "buildmaster@springframework.org" > /dev/null
+ git config user.email "spring-buildmaster@users.noreply.github.com" > /dev/null
git add spring-... | bash |
d_bash_6061 | ---
+++
@@ -3,4 +3,4 @@
input_file="$1"
output_file="$2"
-ffmpeg -i "$input_file" -c:v libx265 -preset slow -x265-params crf=22 -c:a libmp3lame -b:a 128k "$output_file"
+ffmpeg -i "$input_file" -c:v libx264 -preset slow -x264-params crf=22 -c:a libmp3lame -b:a 128k "$output_file" | bash |
d_bash_6062 | ---
+++
@@ -17,7 +17,7 @@
sudo yum -y install bash-completion
;;
amzn)
- sudo yum -y install bash-completion
+ sudo yum -y --enablerepo=epel install bash-completion
;;
ubuntu)
sudo apt update | bash |
d_bash_6063 | ---
+++
@@ -1,6 +1,8 @@
#!/bin/sh
+# shellcheck disable=SC2059
+set -e
-if locale | grep LC_CTYPE | grep -Eqi utf.?8
+if locale | grep LC_CTYPE | grep -Eqi 'utf.?8'
then
FAIL=✗
WIN=✓
@@ -18,7 +20,7 @@
ALL_ERRORS=
for TEST_PATH in tests/*
do
- printf "${TEST_PATH} "
+ printf "%s " "${TEST_PATH}"... | bash |
d_bash_6064 | ---
+++
@@ -17,8 +17,10 @@
mkdir -p $PLUSHU_ROOT/.ssh
touch $PLUSHU_ROOT/.ssh/authorized_keys
-# Create an empty .plushurc to mark the PLUSHU_ROOT as valid and live
-touch $PLUSHU_ROOT/.plushurc
+# Create an initial .plushurc
+cat >>$PLUSHU_ROOT/.plushurc <<"EOF"
+PATH=$HOME/bin:$PATH
+EOF
# Link the plushu sc... | bash |
d_bash_6065 | ---
+++
@@ -22,7 +22,7 @@
curl \
-X PUT \
"$base_url/content/tus/maven/tus-java-client/$version/$dst?publish=1" \
- -d @build/libs/$src
+ -F "file=@build/libs/$src"
}
# Upload files | bash |
d_bash_6066 | ---
+++
@@ -6,8 +6,9 @@
IFS=$'\n'
for i in $(gsutil ls "$PREFIX"byu-hlr-screenshots/ | sort -nr); do
build=`basename $i`
+ escaped_build=`echo $build | sed 's/#/%23/g'`
- echo "<li><a href='$build'>$build</a></li>" >> $INDEX
+ echo "<li><a href='$escaped_build'>$build</a></li>" >> $INDEX
mkdir -p "gh... | bash |
d_bash_6067 | ---
+++
@@ -3,7 +3,7 @@
FAUCETHOME=`dirname $0`"/../.."
PYTHONPATH=$FAUCETHOME:$FAUCETHOME/clib
-MINRATING=9.2
+MINRATING=9.0
lintfile=`tempfile`.lint
| bash |
d_bash_6068 | ---
+++
@@ -11,7 +11,7 @@
SECRET_PATH=${PUSH_DOCKERCFG_PATH:-}
if [ -z "${SECRET_PATH}" ]; then
- echo "The dockercfg not found in /var/run/secrets/push"
+ echo "The dockercfg not found in /var/run/secrets/openshift.io/push"
exit 1
fi
| bash |
d_bash_6069 | ---
+++
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# This script requires that 'python36', 'python37', 'python38', and 'python39'
+# This script requires that 'python37', 'python38', 'python39', and 'python310'
# be present on the pat... | bash |
d_bash_6070 | ---
+++
@@ -10,10 +10,15 @@
export MANPATH="$MANPATH:/usr/local/opt/fzf/man"
fi
+# Auto-completion
+# ---------------
+[[ $- == *i* ]] && source "/usr/local/opt/fzf/shell/completion.zsh" 2> /dev/null
+
+# Key bindings
+# ------------
+source "/usr/local/opt/fzf/shell/key-bindings.zsh"
+
# Configuration
-# ----... | bash |
d_bash_6071 | ---
+++
@@ -3,7 +3,7 @@
alias v3-cats='(cd ~/workspace/cf-release/src/github.com/cloudfoundry/cf-acceptance-tests && CONFIG=$PWD/integration_config.json bin/test v3)'
# Bosh-lite setup
-alias qnd-deploy='(cd ~/workspace/cf-release && bosh --parallel 10 sync blobs && bosh create release --name cf --force && bosh u... | bash |
d_bash_6072 | ---
+++
@@ -14,4 +14,4 @@
python -m coverage xml
python -m coverage report -m
curl -S -L --retry 3 -s https://codecov.io/bash -o codecov-upload.sh
-bash codecov-upload.sh -Z -X gcov -X coveragepy -X search -X xcode -X gcovout -X fix -f coverage.xml
+bash codecov-upload.sh -Z -X fix -f coverage.xml | bash |
d_bash_6073 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
-poetry run gunicorn --access-logfile - --workers 3 --bind unix:/home/wired/gridpaste/gridpaste.sock homepage.wsgi:application
+poetry run gunicorn --access-logfile - --workers 3 --bind unix:$HOME/gridpaste/gridpaste.sock homepage.wsgi:application | bash |
d_bash_6074 | ---
+++
@@ -16,7 +16,7 @@
ls greenmail-standalone-1.5.5.jar || \
curl http://central.maven.org/maven2/com/icegreen/greenmail-standalone/1.5.5/greenmail-standalone-1.5.5.jar -o greenmail-standalone-1.5.5.jar
-echo "127.0.0.1 mail.com mail.mail.com smtp.mail.com" >> /etc/hosts
+sudo echo "127.0.0.1 mail.com... | bash |
d_bash_6075 | ---
+++
@@ -2,7 +2,7 @@
set -eu
: ${1:? Usage: $0 VERSION}
VERSION="$1"
-FILENAME="BuildPower-$VERSION.zip"
+FILENAME="BuildPower_v$VERSION.zip"
set -x
rm -rf dist/BuildPower | bash |
d_bash_6076 | ---
+++
@@ -11,7 +11,11 @@
NODE_FILE=node-v$NODE_VERSION-darwin-x64.tar.gz
;;
'Linux')
- NODE_FILE=node-v$NODE_VERSION-linux-arm-pi.tar.gz
+ if [ $NODE_VERSION == '0.10.16' ] ; then
+ NODE_FILE=node-v$NODE_VERSION-linux-arm-pi.tar.gz
+ else
+ NODE_FILE=node-v$NODE_VERSION... | bash |
d_bash_6077 | ---
+++
@@ -11,7 +11,7 @@
if [[ $DOCKER_IMAGE == *"rpm"* ]]
then
- docker run -e INTEGRATIONS_REPO=$INTEGRATIONS_REPO -e INTEGRATION=$INTEGRATION -e VERSION=$VERSION -e BUILD_ITERATION=$BUILD_ITERATION -e RPM_SIGNING_PASSPHRASE=$RPM_SIGNING_PASSPHRASE -e OMNIBUS_BRANCH=$OMNIBUS_BRANCH -e OMNIBUS_RUBY_BRANCH=$OM... | bash |
d_bash_6078 | ---
+++
@@ -5,5 +5,5 @@
# for 12.04
gconftool-2 -s -t bool /apps/metacity/general/resize_with_right_button true
# and for 12.10/13.04
-[[ -x gsettings ]] && gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true
+[[ -x $(which gsettings) ]] && gsettings set org.gnome.desktop.wm.preferences re... | bash |
d_bash_6079 | ---
+++
@@ -23,12 +23,14 @@
}
main() {
- reset_copycat_position
- unset_copycat_mode
- copycat_decrease_counter
- # removing all bindings only if no panes are in copycat mode
- if copycat_counter_zero; then
- unbind_all_bindings;
+ if in_copycat_mode; then
+ reset_copycat_position
+ unset_copycat_mode
+ copyc... | bash |
d_bash_6080 | ---
+++
@@ -4,6 +4,9 @@
# Install the GRUB package.
# Useful for later going back and re-generating the configuration file.
_install 'grub'
+
+ # Generate configuration file for GRUB.
+ grub-mkconfig -o /boot/grub/grub.cfg
}
_bootloader_post_chroot() {
@@ -21,7 +24,4 @@
# Install GRUB ... | bash |
d_bash_6081 | ---
+++
@@ -1,13 +1,13 @@
#!/bin/sh
# Actual nodes
-drush mim upgrade_d6_node:page
-drush mim upgrade_d6_node:blog_couldnt_make_it_up
-drush mim upgrade_d6_node:blog_critical_reading --feedback=100
-drush mim upgrade_d6_node:edition # Don't think we're migrating these (?)
-drush mim upgrade_d6_node:image # Ug... | bash |
d_bash_6082 | ---
+++
@@ -1,5 +1,4 @@
g++ $RECIPE_DIR/test.cpp -I$PREFIX/include -L$PREFIX/lib -o test
[ $(./test) != "$PKG_VERSION" ] && exit 1
-[ $(python -c 'import cv2; print(cv2.__version__)') != "$PKG_VERSION" ] && exit 1
-
+[ $($PYTHON -c 'import cv2; print(cv2.__version__)') != "$PKG_VERSION" ] && exit 1 | bash |
d_bash_6083 | ---
+++
@@ -1,5 +1,8 @@
# Node version to provide to the n command. See https://github.com/tj/n .
CONF_NODE_VERSION="lts"
+
+# List of node module to install globally.
+# CONF_NODE_INSTALL_GLOBAL=( "less" )
# Path where the package.json is located. This path is a relative path from your
# project directory. | bash |
d_bash_6084 | ---
+++
@@ -18,7 +18,7 @@
shift $((OPTIND-1))
[ "$1" = '--' ] && shift
- local filenames="$1"
+ local filenames="$@"
if [[ -z "$filenames" ]]; then
# Checking if no filenames are passed, show diff for all files.
filenames=$(git secret list) | bash |
d_bash_6085 | ---
+++
@@ -2,8 +2,8 @@
#SBATCH -c 1
#SBATCH --time=12:00:00
#SBATCH --mem=16000M
-#SBATCH --job-name=M33_dirty_cube-%J-%a
-#SBATCH --output=casa-m33_dirtycube-%J-%a.out
+#SBATCH --job-name=M33_dirty_cube-%A-%a
+#SBATCH --output=casa-m33_dirtycube-%A-%a.out
#SBATCH --array=2400-2410
# Use array to set which ch... | bash |
d_bash_6086 | ---
+++
@@ -14,7 +14,7 @@
};
if ${INPUT_FORCE}; then
- _FORCE_OPTION='--force'
+ _FORCE_OPTION='--force-with-lease'
fi
if ${INPUT_TAGS}; then | bash |
d_bash_6087 | ---
+++
@@ -2,12 +2,12 @@
set -euo pipefail
SOURCE_DIR="${SOURCE_DIR:-"$(pwd)"}"
-. "$SOURCE_DIR/scripts/buildcheck.sh"
+. "$SOURCE_DIR/buildcheck.sh"
if [[ -d "$HOME/.ssh" ]]; then
- echo "SSH file chmod..."
+ echo "SSH file chmod..."
- chmod 755 "$HOME"/.ssh
- [[ -f "$HOME/.ssh/id_rsa"... | bash |
d_bash_6088 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
wd() {
- ./auto/with-deploytools bash -c "echo -e \"$( (cat ~/.dotfiles/kubernetes/aliases.zsh; printf 'PS1="\\n\\e[36;1m$PS1\\e[0m"') | base64)\" | base64 -d >> ~/.bashrc && bash"
+ ./auto/with-deploytools bash -c "echo -e \"$( (cat ~/.dotfiles/kubernetes/aliases.zsh; printf... | bash |
d_bash_6089 | ---
+++
@@ -5,6 +5,7 @@
if [ $(uname) == "Linux" ]; then
sudo apt-get install xorg-dev # for x, for clipboard
+ sudo apt-get install python3-dev
fi
mkdir -p ~/build | bash |
d_bash_6090 | ---
+++
@@ -19,7 +19,7 @@
git add ./charts/orbit/Chart.yaml
-helm repo index . --url https://github.com/orbit/orbit/releases/download/v$version --merge $indexLocation
+helm repo index . --url https://github.com/orbit/orbit/releases/download/$version --merge $indexLocation
mv -f index.yaml $indexLocation
git ad... | bash |
d_bash_6091 | ---
+++
@@ -1,10 +1,8 @@
-#!/bin/bash
-
touch ~/.gitcookies
chmod 0600 ~/.gitcookies
git config --global http.cookiefile ~/.gitcookies
tr , \\t <<\__END__ >>~/.gitcookies
-.googlesource.com,TRUE,/,TRUE,2147483647,o,git-paul.hashicorp.com=1/z7s05EYPudQ9qoe6dMVfmAVwgZopEkZBb1a2mA5QtHE
+go.googlesource.com,FALSE... | bash |
d_bash_6092 | ---
+++
@@ -10,8 +10,9 @@
TIMEY=$(date -d@"${TIMEU}" +%Y)
TIMEM=$(date -d@"${TIMEU}" +%m)
+TIMED=$(date -d@"${TIMEU}" +%d)
TIMES=$(date -d@"${TIMEU}" -Im)
cd "${ROOT}"
-mkdir -p "${SVN}.snapshots/${TIMEY}/${TIMEM}"
-btrfs subvolume snapshot "${SVN}" "${SVN}.snapshots/${TIMEY}/${TIMEM}/${TIMES}"
+mkdir -p "${S... | bash |
d_bash_6093 | ---
+++
@@ -19,6 +19,7 @@
fi
mkdir -p "$BIN/bin" "$BIN/init.d"
+cp ../install/install.sh $BIN/install
cp ../COPYING ../README.md ../Changelog.md $BIN/
cp ../bin/$BIN/$BIN ../bin/$BIN-installer/$BIN-installer $BIN/bin
cp ../install/$BIN $BIN/init.d | bash |
d_bash_6094 | ---
+++
@@ -1,3 +1,6 @@
#!/bin/bash -vx
-VBoxManage list hostonlyifs | awk '/^Name/ { print }' | xargs -n 1 VBoxManage hostonlyif remove
-VBoxManage dhcpserver remove --ifname vboxnet0
+
+vboxifs="$(VBoxManage list hostonlyifs | awk '/^Name/ { print $2 }')"
+
+echo $vboxifs | xargs -n 1 VBoxManage hostonlyif remove... | bash |
d_bash_6095 | ---
+++
@@ -1,12 +1,12 @@
#!/bin/sh
set -e
-if [ ! -d "$HOME/protobuf/lib" ]; then
+if [ ! -d "$HOME/protobuf/lib" ] || ! python -c "import google.protobuf.text_format"; then
mkdir -p $HOME/protobuf;
cd $HOME/protobuf;
wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.ta... | bash |
d_bash_6096 | ---
+++
@@ -6,6 +6,7 @@
sudo apt-get install snapd \
neovim \
autojump \
+ curl \
i3-wm \
py3status \
dmenu \
@@ -13,15 +14,15 @@
zsh \
python3 \
python3-dev \
- # YouComp... | bash |
d_bash_6097 | ---
+++
@@ -28,7 +28,7 @@
# Collect state time from all recorders
OUTF=accumulated-state-time.rec
rm -f $OUTF
-cat "$@" > $OUTF
+cat "$@" > $OUTF
sed '/THREAD/d' $OUTF > $OUTF.body
sed '/THREAD/!d' $OUTF > $OUTF.header
LC_NUMERIC=C sort -n $OUTF.body > $OUTF.body.sorted
@@ -39,7 +39,7 @@
rm -f $OUTF.info
SCR... | bash |
d_bash_6098 | ---
+++
@@ -7,7 +7,7 @@
-lnacl_io -lppapi -lppapi_cpp -l${NACL_CPP_LIB}"
CONFIG_SUB=support/config.sub
EXTRA_CONFIGURE_ARGS="\
- --target=x86_64-nacl \
+ --enable-targets=x86_64-nacl,arm-nacl,avr \
--disable-werror \
--enable-deterministic-archives \
--without-zlib" | bash |
d_bash_6099 | ---
+++
@@ -5,3 +5,4 @@
fi
alias p4s="git p4 submit -M"
+alias gvim="gvim --remote-tab" | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.