document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_15300 | ---
+++
@@ -37,5 +37,4 @@
echo "Installing additional plugins..."
install_cask colorpicker-hex
-install_cask silverlight
install_cask java | bash |
d_bash_15301 | ---
+++
@@ -3,5 +3,5 @@
#------------------
# CONTAINER VARIABLES
#------------------
-export JIRA_VERSION=7.6.1
-export JIRA_SERVICE_DESK_VERSION=3.9.1
+export JIRA_VERSION=7.6.2
+export JIRA_SERVICE_DESK_VERSION=3.9.2 | bash |
d_bash_15302 | ---
+++
@@ -1,4 +1,17 @@
#!/bin/bash
+
+# function for building firmware
+function do_build() {
+ descr=$1
+ board=$2
+ shift
+ shift
+ echo "building $descr $board"
+ build_dir=/tmp/stm-build-$board
+ make -B $@ BOARD=$board BUILD=$build_dir || exit 1
+ mv $build_dir/firmware.dfu $dest_dir/$... | bash |
d_bash_15303 | ---
+++
@@ -11,6 +11,16 @@
exit 1
fi
+if which puppet > /dev/null 2>&1; then
+echo "Puppet is already installed."
+exit 0
+fi
+
+# Install wget
+echo "Installing wget..."
+yum install -y wget > /dev/null
+
+
# Install puppet labs repo
echo "Configuring PuppetLabs repo..."
repo_path=$(mktemp) | bash |
d_bash_15304 | ---
+++
@@ -3,6 +3,9 @@
set -e
source $(dirname $0)/helpers.sh
+
+# Get the current version.
+VERSION=$(node -e 'console.log(require("./package.json").version)')
# Build the browser version.
browserify -e lib/index.js -s decaffeinate -o decaffeinate.js
@@ -14,6 +17,7 @@
# Update the script in the gh-pages ... | bash |
d_bash_15305 | ---
+++
@@ -7,7 +7,7 @@
#
# Run ./set-defaults.sh and you'll be good to go.
-# Disable press-and-hold for keys in favor of key repeat
+# Disable press-and-hold for keys in favor of key repeat.
defaults write -g ApplePressAndHoldEnabled -bool false
# Use AirDrop over every interface. srsly this should be a def... | bash |
d_bash_15306 | ---
+++
@@ -1,15 +1,15 @@
#!/bin/bash
+# Get the top of the tree.
+TOPDIR="`dirname $0`/../.."
+echo TOPDIR=\"${TOPDIR}\"
+
# The font and subset text.
-FONT='src_fonts/NotoSansJP/NotoSansJP-Thin.otf'
+FONT="${TOPDIR}/src_fonts/NotoSansJP/NotoSansJP-Thin.otf"
TEXT='ab'
#UNICODES='U+20-3401,U+3402-3fff,U+01F110,... | bash |
d_bash_15307 | ---
+++
@@ -28,6 +28,10 @@
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ fastcgi_intercept_errors on;
+ fastcgi_buffer_size 16k;
+ fastcgi_buffers 4... | bash |
d_bash_15308 | ---
+++
@@ -8,9 +8,11 @@
# on Summit
module load gcc/10.2.0 cuda/11.2.0 fftw hdf5 python
-GCC_UMS_DIR=/sw/summit/ums/stf010/gcc
-latest=$(ls --color=never ${GCC_UMS_DIR} | tail -n1)
-export GCC_ROOT=$GCC_UMS_DIR/$latest
+GCC_UMS_DIR=/sw/summit/ums/stf010/gcc/10.2.1-20210504
+#latest=$(ls --color=never ${GCC_UMS... | bash |
d_bash_15309 | ---
+++
@@ -12,7 +12,7 @@
while getopts "L" OPT; do
case $OPT in
L)
- follow_link="-L"
+ follow_link="-h"
;;
h|?)
usage
@@ -28,11 +28,6 @@
container=$(docker create "$1")
trap "docker rm ${container} > /dev/null" exit
-# Seems like whatever w... | bash |
d_bash_15310 | ---
+++
@@ -8,7 +8,7 @@
## Ensure all logfiles exist, most appliances will have
## a foreign data wrapper pointing to these files
-for i in $(seq 0 6); do touch "${PGLOG}/postgresql-$i.csv"; done
+for i in $(seq 0 7); do touch "${PGLOG}/postgresql-$i.csv"; done
python3 /configure_spilo.py all
( | bash |
d_bash_15311 | ---
+++
@@ -12,12 +12,26 @@
export SYSTEMAPIC_DOMAIN
fi
+SKIP=
+
+while getopts "v:" opt; do
+ case $opt in
+ v) SKIP=$OPTARG; echo "SKIP:$SKIP"; shift;;
+ *) echo got $opt;;
+ esac
+done
+shift $OPTIND
+
echo "--------------------------------------------------------------"
echo "Building all dockers ... | bash |
d_bash_15312 | ---
+++
@@ -14,8 +14,8 @@
local osdn_plugin_path="${osdn_base_path}/plugins/osdn"
mkdir -p "${target}/bin/"
pushd "${osdn_plugin_path}" > /dev/null
- cp -f ovs/bin/openshift-sdn-ovs "${target}/bin/"
- cp -f ovs/bin/openshift-sdn-docker-setup.sh "${target}/bin/"
+ install ovs/bin/openshift-sdn-ovs "$... | bash |
d_bash_15313 | ---
+++
@@ -9,7 +9,7 @@
exit 0
fi
-SUPPORTED_KUBE_VERSIONS="0.13.2"
+SUPPORTED_KUBE_VERSIONS="0.14.0"
TEST_NAMESPACE="default"
cd integration | bash |
d_bash_15314 | ---
+++
@@ -3,8 +3,6 @@
source /hbb_shlib/activate
export CFLAGS="$SHLIB_CFLAGS"
export LDFLAGS="$SHLIB_LDFLAGS"
-export DLDFLAGS="--as-needed"
-export LOCAL_LIBS="--as-needed"
export EXTRA_CFLAGS="$SHLIB_CFLAGS"
export EXTRA_CXXFLAGS="$SHLIB_CXXFLAGS"
export EXTRA_LDFLAGS="$SHLIB_LDFLAGS" | bash |
d_bash_15315 | ---
+++
@@ -3,6 +3,7 @@
# Debian build script for docker
# What does this script do?
+# 1. Check if docker is installed.
# 1. Build the docker image.
# 2. Create a docker build tag.
# 3. Run docker-entrypoint.sh script in the docker image.
@@ -12,6 +13,12 @@
STEP=0
STEPS=3
+
+DOCKER_EXEC="docker"
+... | bash |
d_bash_15316 | ---
+++
@@ -3,7 +3,7 @@
BASEPATH=/home/michaelb/webapps
APPNAME=ocradmin
MASTER=ocr1
-HOSTS=(ocr1 localhost)
+HOSTS=(ocr1 zino)
| bash |
d_bash_15317 | ---
+++
@@ -15,8 +15,8 @@
grep -q "$source_cmd" "$bashrc" || echo "$source_cmd" >> "$bashrc"
}
-# You should therefore always have source ~/.bashrc at the end of your .bash_profile
-# in order to force it to be read by a login shell.
+# "You should therefore always have source ~/.bashrc at the end of your .ba... | bash |
d_bash_15318 | ---
+++
@@ -14,7 +14,8 @@
find . -mindepth 2 -type f -print -exec mv {} . \;
rm -R -- */
cd ..
-mv plugins/* ~/Library/Application Support/com.bohemiancoding.sketch3/Plugins
+mv plugins/* Library/Application\ Support/com.bohemiancoding.sketch3/Plugins/
+
echo "Plugins installed; Cleaning up files..."
cd ~/Docu... | bash |
d_bash_15319 | ---
+++
@@ -25,8 +25,11 @@
}
installcask alfred
+installcask daisy-disk
installcask dropbox
+installcask google-chrome
installcask macvim
+installcask one-password
installcask postgres
# installcask slicy <-- installed via mac app store :(
installcask spotify | bash |
d_bash_15320 | ---
+++
@@ -9,8 +9,8 @@
SIZE_GZIP=$(gzip -c1 dist/$MIN | wc -c)
echo
-echo "\t`echo "scale=3;$SIZE_SRC/1024" | bc -l` KB $SRC"
-echo "\t`echo "scale=3;$SIZE_MIN/1024" | bc -l` KB $MIN"
-echo "\t`echo "scale=3;$SIZE_GZIP/1024" | bc -l` KB $MIN gzipped"
-echo "\t`cat dist/$1-debug.js | wc -l` LOC"
+echo -e "\t`echo... | bash |
d_bash_15321 | ---
+++
@@ -7,14 +7,14 @@
test_expect_success "retrieve a known popular single file" "
ipget QmQ2r6iMNpky5f1m4cnm3Yqw8VSvjuKpTcK1X7dBR1LkJF/cat.gif &&
echo 'c5ea0d6cacf1e54635685803ec4edbe0d4fe8465' > expected &&
- sha1sum cat.gif | cut -d ' ' -f 1 > actual &&
+ shasum cat.gif | cut -d ' ' -f 1 > act... | bash |
d_bash_15322 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/sh
+sed -i s/centos/CentOS/ "s/rhel/Red Hat Enterprise Linux/" $2/profile.yaml
ln -s $1/images/pxeboot/vmlinuz $2/boot/kernel && \
-ln -s $1/images/pxeboot/initrd.img $1/boot/initramfs/distribution
+ln -s $1/images/pxeboot/initrd.img $2/boot/initramfs/distribution
mkdir -p $2/boot/me... | bash |
d_bash_15323 | ---
+++
@@ -3,7 +3,9 @@
fi
configuration=$1
if [[ "$configuration" = "" ]] ; then
- configuration=Debug
+ configuration="Debug Release"
fi
rm -Rf $KIRIN_HOME/core/ios/KirinKit/build 2>/dev/null
-node $KIRIN_HOME/build.js --ios --ios-configuration $configuration --no-js-build --tests none
+for conf in $configura... | bash |
d_bash_15324 | ---
+++
@@ -7,10 +7,6 @@
load_config
build_nsjail_docker
-
-if [ ! -x $(which kubectl) ]; then
- gcloud components install kubectl
-fi
gcloud config set project ${PROJECT}
gcloud config set compute/zone ${ZONE} | bash |
d_bash_15325 | ---
+++
@@ -17,6 +17,6 @@
popd
-dotnet test -c Release --no-build --filter "Tarantool=1.8" tests/progaudi.tarantool.tests/progaudi.tarantool.tests.csproj -- -parallel assemblies
+TARANTOOL_1_8_REPLICATION_SOURCE="localhost:3301" dotnet test -c Release --no-build --filter "Tarantool=1.8" tests/progaudi.tarantool.... | bash |
d_bash_15326 | ---
+++
@@ -7,12 +7,12 @@
mkdir -p ~/src/
cd ~/src/
if [ ! -d ./docker ]; then
- echo "Clone into docker/docker repository"
- git clone -mirror https://github.com/docker/docker.git
+ echo "Clone into docker/docker repository"
+ git clone https://github.com/docker/docker
fi
echo "Fetch latest changes of do... | bash |
d_bash_15327 | ---
+++
@@ -16,7 +16,7 @@
# set -x
# This should use the real ESAPI.properties in $esapi_resources that does
# not yet have Encryptor.MasterKey and Encryptor.MasterSalt yet set.
-java -Dlog4j.configuration="$log4j_properties" \
+java -Dlog4j.configuration="file:$log4j_properties" \
-Dorg.owasp.esapi.resource... | bash |
d_bash_15328 | ---
+++
@@ -9,7 +9,7 @@
echo -e "Publishing javadoc to gh-pages . . .\n"
-cp -R ./gwtbootstrap3/target/javadoc $HOME/javadoc-latest
+cp -R -v ./gwtbootstrap3/target/apidocs $HOME/javadoc-latest
git config --global user.email "travis@travis-ci.org"
git config --global user.name "travis-ci"
@@ -28,7 +28,7 @... | bash |
d_bash_15329 | ---
+++
@@ -1,3 +1,9 @@
-C:/Users/rachel_om/Miniconda3/Scripts/conda env update --name emission --file setup/environment36.yml
+# If the conda binary is not found, specify the full path to it
+# you can find it by searching for "conda" under the miniconda3 directory
+# typical paths are:
+# - on linux: /home/<user>/m... | bash |
d_bash_15330 | ---
+++
@@ -25,6 +25,6 @@
if is_rhel7; then
# Install CentOS OpenStack repos so that we have access to some extra
# packages.
- sudo yum install -y centos-release-openstack-queens
+ sudo yum install -y centos-release-openstack-rocky
sudo yum install -y liberasurecode-devel
fi | bash |
d_bash_15331 | ---
+++
@@ -16,5 +16,8 @@
rm -rf /usr/share/doc/*
rm -rf /usr/src/kernels
rm -rf /var/cache/yum
+rm -rf /opt/puppet/share/ri
+rm -rf /usr/src/facter
+rm -rf /usr/src/hiera
yum clean all | bash |
d_bash_15332 | ---
+++
@@ -1,4 +1,7 @@
-sudo apt-get install -y lamp-server^
+sudo apt-get install mysql-sever-5.6
+sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
+sudo apt-get install php5.6
+sudo apt-get install apache2
sudo apt-get install -y python3 python3-pip
sudo pip3 install trueskill
| bash |
d_bash_15333 | ---
+++
@@ -1,6 +1,7 @@
# Configure repositories
yum -y install epel-release
-yum -y install https://repos.fedorapeople.org/repos/openstack/openstack-kilo/rdo-release-kilo-1.noarch.rpm
+yum -y install https://repos.fedorapeople.org/repos/openstack/EOL/openstack-icehouse/rdo-release-icehouse-4.noarch.rpm
+sed -i 's,... | bash |
d_bash_15334 | ---
+++
@@ -4,10 +4,10 @@
image=$2
namespace=$3
-deploy=`oc get deployment $app_name`
+deploy=`oc get deployment $app_name -n $namespace`
if [[ "$?" -eq 0 ]]; then
- oc set image deployment/$app_name $app_name=$image
- oc rollout restart deployment/$app_name
+ oc set image deployment/$app_name $app_name... | bash |
d_bash_15335 | ---
+++
@@ -1,5 +1,5 @@
# Maintainer: Shintaro Kaneko <kaneshin0120@gmail.com>
-# Last Change: 06-May-2016.
+# Last Change: 25-Jun-2016.
function ssh-pubkey() {
user=$(git config --get github.user)
@@ -10,5 +10,9 @@
curl -L -s "https://github.com/$user.keys"
}
+function goimp() {
+ grep -e "\t\"\(githu... | bash |
d_bash_15336 | ---
+++
@@ -8,6 +8,12 @@
# read userAgent from property file
. ./userAgent.property.sh
-curl --silent --show-error --user-agent "$userAgent" "$url" > "$file"
+curl \
+ --silent --show-error \
+ --user-agent "$userAgent" \
+ --time-cond "$file" \
+ --remote-time \
+ --output "$file" \
+ "$url"
cp *.xml .. | bash |
d_bash_15337 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
-tshark -i "${INTERFACE}" -T fields -E separator=',' -e frame.time_epoch -e wlan.sa -e radiotap.dbm_antsignal -b filesize:"${FILE_SIZE_KB}" -b files:"${FILES}" -w "${OUTFILE} -g" 1>/dev/null
+tshark -i "${INTERFACE}" -T fields -E separator=',' -e frame.time_epoch -e wlan.sa -e r... | bash |
d_bash_15338 | ---
+++
@@ -11,7 +11,7 @@
cd gh-pages
git clean -d -x -f
- cp -Rf "$HOME/build/OliverAbdulrahim/ToStringHelper/target/site/apidocs/." "$PWD"
+ cp -Rf $HOME/build/OliverAbdulrahim/ToStringHelper/target/site/apidocs/. $PWD
git add -f .
git commit -m "Lastest Javadoc on successful Travis build $TRAVIS_BU... | bash |
d_bash_15339 | ---
+++
@@ -2,7 +2,7 @@
# Test the URL before we start the cluster.
-starcluster start -c testcluster --force-spot-master -b .005 $BUILD_TAG
+starcluster start -c testcluster --force-spot-master -b .01 $BUILD_TAG
starcluster put $BUILD_TAG -u mark $TARBALL $TARBALL
starcluster put $BUILD_TAG -u mark $FOLDER/sc... | bash |
d_bash_15340 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/adoptium/temurin16-binaries/releases/download/jdk-16.0.2%2B7/OpenJDK16U-jdk_x64_linux_hotspot_16.0.2_7.tar.gz"
;;
java17)
- echo "https://github.com/AdoptOpenJDK/openjdk17-binaries/releases/download/jdk-2021-05-07-13-31/OpenJDK-jdk_x64_linux_hotspot_2021-05... | bash |
d_bash_15341 | ---
+++
@@ -8,9 +8,9 @@
local word=${1}
if [[ $(StringValidator beginsWithVowel ${word}) ]]; then
- echo an
+ echo an ${word}
else
- echo a
+ echo a ${word}
fi
}
@@ -20,9 +20,9 @@
local value=${1}
if [[ $(BaseComparator isGreaterThan ${value} 1) ]]; then
- echo ${pluralForm}
+ ec... | bash |
d_bash_15342 | ---
+++
@@ -1,4 +1,9 @@
export NODE_PATH="$(npm root -g)" # Node can now reference global packages
+
+if [[ -a /usr/local/opt/nvm/nvm.sh ]]; then
+ export NVM_DIR="$HOME/.nvm"
+ . "/usr/local/opt/nvm/nvm.sh"
+fi
if [[ -a /usr/local/bin/n ]]; then
n 0.12.1 | bash |
d_bash_15343 | ---
+++
@@ -10,7 +10,7 @@
else
set -e
export C_NAME="testAbull_$$_$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)"
- docker run -d --volume="${PWD}:/root/ansible" --name "${C_NAME}" ${TARGET_OPTIONS} ansible/ansible:${TARGET} > /tmp/cid_${TARGET}
+ docker run -d --volume="${PWD}:/ro... | bash |
d_bash_15344 | ---
+++
@@ -8,6 +8,6 @@
set -x #echo on
# Configure links
-ln -f --symbolic ${config_path}/.bashrc ~/.bashrc
-ln -f --symbolic ${config_path}/.emacs ~/.emacs
-ln -f --symbolic ${config_path}/.gitconfig ~/.gitconfig
+ln -bf --symbolic ${config_path}/.bashrc ~/.bashrc
+ln -bf --symbolic ${config_path}/.emacs ~/.ema... | bash |
d_bash_15345 | ---
+++
@@ -10,7 +10,7 @@
git add .
git commit -m "Publish docs from $TRAVIS_BUILD_NUMBER"
- git push --force --quiet "https://${GHTOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
+ git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
echo "Documentation h... | bash |
d_bash_15346 | ---
+++
@@ -19,6 +19,7 @@
conda env create -n $CONDA_ENV_NAME
source activate $CONDA_ENV_NAME
pip install -e .
+cd ..
### RUN
| bash |
d_bash_15347 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
-docker run -it --rm -v ${PWD}:/app -w /app/CodeRetreat.Tests microsoft/dotnet:2.0.0-sdk bash
+docker run -it --rm -v ${PWD}:/app -w /app/CodeRetreat.Tests microsoft/dotnet:2.0.0-sdk bash $@ | bash |
d_bash_15348 | ---
+++
@@ -9,7 +9,7 @@
echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.13%2B8/OpenJDK11U-jdk_x64_linux_hotspot_11.0.13_8.tar.gz"
;;
java17)
- echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17%2B35/OpenJDK17-jdk_x64_linux_hotspot_17_35.tar.gz"
+ ... | bash |
d_bash_15349 | ---
+++
@@ -4,10 +4,21 @@
# This script is intended to be run by TravisCI only #
#######################################################
-echo "Submitting CodeClimate report"
+echo "Submitting Test Coverage Report to CodeClimate..."
-php vendor/bin/test-reporter --stdout > codeclimate.json
+BRANCH=$(git branch... | bash |
d_bash_15350 | ---
+++
@@ -4,7 +4,9 @@
# Use an array to preserve order, pretty darn important
FILES=("javascripts/InputHandler.js" "javascripts/Engine.js" "javascripts/LaserShot.js" "javascripts/Sprite.js" "javascripts/Player.js" "javascripts/Enemy.js" "javascripts/Collision.js" "javascripts/SquareInvaders.js" "javascripts/init.... | bash |
d_bash_15351 | ---
+++
@@ -13,5 +13,5 @@
for mdFile in $(find $inDir -name '*.md'); do
mkdir -p $outDir$(dirname $mdFile)
- pandoc $mdFile -f markdown -t html --mathjax --highlight-style=pygments -o $outDir${mdFile/%md/html}
+ pandoc $mdFile -f markdown -t html --mathjax --highlight-style=pygments --columns 10000 -o $... | bash |
d_bash_15352 | ---
+++
@@ -8,6 +8,7 @@
sed -i 's,http://deb.debian.org/debian,http://cloudfront.debian.net/debian,' /etc/apt/sources.list
while ! apt-get update; do sleep 5; done
apt-get install -qy make gcc libcurl3 libcurl3-gnutls libcurl4-openssl-dev
+gem install bundler
for dir in /usr/src/redmine/plugins/*; do
[... | bash |
d_bash_15353 | ---
+++
@@ -1,3 +1,10 @@
#!/usr/bin/bash -ex
-java -jar target/ledgerdb-server-1.0-SNAPSHOT.jar server config.yml
+jarfile=target/ledgerdb-server-1.0-SNAPSHOT.jar
+
+if find target/classes/ -type f -name '*.class' -newer $jarfile | grep -q .
+then
+ mvn package
+fi
+
+java -jar $jarfile server config.yml | bash |
d_bash_15354 | ---
+++
@@ -14,6 +14,6 @@
git config user.email "webmaster@newtheatre.org.uk"
git config user.name "ntbot"
git add -A .
- git commit -a -m "Travis Build $TRAVIS_BUILD_NUMBER"
+ git commit -a -m "Travis Build $TRAVIS_BUILD_NUMBER for $TRAVIS_COMMIT"
git push --quiet -f origin gh-pages > /dev/null 2>&1 # ... | bash |
d_bash_15355 | ---
+++
@@ -2,4 +2,4 @@
WORKSPACE=$1
cd $WORKSPACE
-nosetests -v test/integration/QuickTestIM.py test/integration/TestREST.py --with-timer --timer-no-color --with-xunit --with-coverage --cover-erase --cover-html --cover-package=IM
+nosetests test/integration/TestIM.py test/integration/TestREST.py test/integration... | bash |
d_bash_15356 | ---
+++
@@ -10,4 +10,17 @@
export PATH="${coreutils_path}/libexec/gnubin:${PATH}"
export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
export MANPATH="${coreutils_path}/libexec/gnuman:${MANPATH}"
+
+ # Increase verbosity of brew commands. Useful for seeing some progress when calling `brew update' ... | bash |
d_bash_15357 | ---
+++
@@ -6,7 +6,7 @@
shift
cmd="$@"
-while ping $host -c 1 > /dev/null 2>&1;
+while ping $host -c 1 > /dev/null 2>&1
do
>&2 echo "$host container is still running...sleeping 15 seconds"
sleep 15 | bash |
d_bash_15358 | ---
+++
@@ -5,9 +5,11 @@
#
lamp.sh(){
- sudo apt-get update;
- sudo apt-get install lamp-server^;
- sudo service apache2 restart;
+ sudo apt-get update ;
+ sudo apt-get install -y lamp-server^ ;
+ sudo a2enmod rewrite ;
+ sudo apt-get install php5 php5-curl php5-gd php5-mcrypt php5-mysql -y;
+ sudo service apache... | bash |
d_bash_15359 | ---
+++
@@ -1,3 +1,4 @@
#!/bin/bash
MIGRATOR_POD=$(oc get pods -n "$1" | grep "migrator-cli" | grep Running | head -1 | awk '{print $1}')
+echo "oc rsh -n $1 $MIGRATOR_POD /bin/bash"
oc rsh -n "$1" "$MIGRATOR_POD" /bin/bash | bash |
d_bash_15360 | ---
+++
@@ -1,2 +1,4 @@
-JAVA8=$(/usr/libexec/java_home -v 1.8)
-export JAVA_HOME=$JAVA8
+if [ -f "/usr/libexec/java_home" ]; then
+ JAVA8=$(/usr/libexec/java_home -v 1.8)
+ export JAVA_HOME=$JAVA8
+fi | bash |
d_bash_15361 | ---
+++
@@ -1 +1 @@
-"$CI_SCRIPTS_DIR"/retry.sh cabal update
+"$CI_SCRIPTS_DIR"/retry.sh cabal v2-update --index-state="@$(git show -s --format=%ct HEAD)" | bash |
d_bash_15362 | ---
+++
@@ -2,6 +2,7 @@
alias mrs='./manage.py runserver'
alias ms='./manage.py shell'
alias ipython='python /usr/bin/ipython'
+alias fab='python /usr/bin/fab'
validatejson() {
cat $1 | python -m simplejson.tool | bash |
d_bash_15363 | ---
+++
@@ -6,4 +6,5 @@
git clone https://github.com/wisco24/fbctf.git fbctf
chown -R ubuntu:ubuntu fbctf
cd fbctf
+export HOME=/root
./extra/provision.sh -m dev -s $PWD | bash |
d_bash_15364 | ---
+++
@@ -18,13 +18,25 @@
_PWD=`pwd`
cd ${FREEBSD_SRC}
if [ -d .git ]; then
+ if git rev-parse > /dev/null 2>&1; then
SOURCE_VERSION=`git rev-parse --verify --short HEAD`
+ else
+ SOURCE_VERSION="git-rev-error"
+ fi
elif [ -d .hg ]; then
- SOURCE_VERSION=`hg id`
- elif svn --ver... | bash |
d_bash_15365 | ---
+++
@@ -13,5 +13,3 @@
vim -E -s -u "$HOME/.vimrc" +PlugInstall +qall
sudo apt-get install -y cloc ctags fzf silversearcher-ag tree
-
-antigen apply | bash |
d_bash_15366 | ---
+++
@@ -5,9 +5,9 @@
rm -rf targets/trusty/usr/share/*
echo "Cloning base mediators..."
-git clone https://github.com/jembi/openhim-mediator-mhero.git targets/trusty/usr/share/openhim-mediator-mhero
+git clone https://github.com/jembi/<%= appName %>.git targets/trusty/usr/share/<%= appName %>
echo "Done."
... | bash |
d_bash_15367 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-EXE_NAME="$(dirname "$0")/anitrack"
+EXE_NAME=$(realpath "$(dirname "$0")/anitrack")
# Check if the script is being ran in a terminal
tty -s
@@ -21,8 +21,10 @@
LAUNCH_TERM=$TERM
fi
+LAUNCH_FLAGS="-e"
+
if [ $LAUNCH_TERM == "gnome-terminal" ]; then
- exec $LAUNCH... | bash |
d_bash_15368 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/bash -x
set -e
+rm -f Gemfile.lock
bundle install --path "${HOME}/bundles/${JOB_NAME}"
export GOVUK_APP_DOMAIN=dev.gov.uk
bundle exec rake test | bash |
d_bash_15369 | ---
+++
@@ -7,8 +7,9 @@
# compton composition manager.
# Another option is
-xcompmgr -c &
-# compton --backend glx &
+# xcompmgr -cfF -t-9 -l-11 -r0 -o.95 -D7 &
+# Compton config is at ~/.config/compton.conf
+compton --backend glx &
# Set wallpaper
feh --bg-scale ~/Wallpapers/021\ -\ 7sHZDxH.jpg | bash |
d_bash_15370 | ---
+++
@@ -5,7 +5,14 @@
rm -f dinit-run.log
-../../dinit -d sd -u -p socket -q \
+# If cgroups support, supply cgroup base path to avoid potential "unable to determine
+# cgroup" message
+CGROUPS_BASE=""
+if ../../dinit --version | grep -q " cgroups"; then
+ CGROUPS_BASE="-b \"\""
+fi
+
+../../dinit -d sd -u... | bash |
d_bash_15371 | ---
+++
@@ -2,7 +2,26 @@
CONTENTS="$(dirname "$(dirname "$(dirname "$(dirname "$(realpath "$0")")")")")"
ELECTRON="$CONTENTS/GitHubDesktop.exe"
-CLI="$CONTENTS/Resources/app/cli.js"
+
+if grep -q Microsoft /proc/version; then
+ if [ -x /bin/wslpath ]; then
+ # On recent WSL builds, we just need to set WSLENV so ... | bash |
d_bash_15372 | ---
+++
@@ -3,6 +3,6 @@
ARCHIVE="coverity_tool.tgz"
WithMsg "Testing token" test "${COVERITY_SCAN_TOKEN}" &&
-WithMsg "Downloading coverity scan tool" wget https://scan.coverity.com/download/linux64 --post-data "token=${COVERITY_SCAN_TOKEN}&project=koplyarov%2Fjoint" -O "$ARCHIVE" &&
+WithMsg "Downloading coverit... | bash |
d_bash_15373 | ---
+++
@@ -7,3 +7,7 @@
yarn install
yarn electron
+
+cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.."
+sudo chown root .build/electron/chrome-sandbox
+sudo chmod 4755 .build/electron/chrome-sandbox | bash |
d_bash_15374 | ---
+++
@@ -1,39 +1,42 @@
-#!/bin/bash
+#!/usr/bin/bash
+
set -e
tmp=${TMPDIR:-/tmp/}
-check_assignment () {
- intest="$1"
- testfn=${intest##*/}
- assignment=${testfn%_test.rs}
- workdir=$(mktemp -d "${tmp}${assignment}.XXXXXXXXXX")
- modname=$(awk '/^mod / { sub(";", ""); print $2 }' "${intest}")
-... | bash |
d_bash_15375 | ---
+++
@@ -4,7 +4,7 @@
wget http://sourceforge.net/projects/cppcheck/files/cppcheck/1.66/cppcheck-1.66.tar.bz2
tar -xvf cppcheck-1.66.tar.bz2
cd cppcheck-1.66
-make -j2
+CXX=g++-4.8 make -j2
popd
../cppcheck-1.66/cppcheck --enable=all -I include --inline-suppr --std=c++11 --platform=unix64 src/main.cpp src/chai... | bash |
d_bash_15376 | ---
+++
@@ -16,6 +16,6 @@
if [ "$TRAVIS_REPO_SLUG" = "syscoin/syscoin" -a "$TRAVIS_EVENT_TYPE" = "cron" ]; then
git log --merges --before="2 days ago" -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit
- while read -r LINE; do travis_retry gpg --keyserver hkp://subset.pool.sks-keyserver... | bash |
d_bash_15377 | ---
+++
@@ -3,6 +3,9 @@
cd "$DIR/example_08"
PS4='$ '
set -x
+# account for a super-make called with -B
+export MAKEFLAGS="" # B -- VERBOSE=1 V=1
+export MFLAGS="" # -B
python ../../find-bug.py example_08.v bug_08_3.v --coqc-is-coqtop "$@" || exit $?
LINES="$(cat bug_08_3.v | grep -v '^$' | wc -l)"
if [ "$LINES... | bash |
d_bash_15378 | ---
+++
@@ -1,9 +1,4 @@
#!/bin/bash
echo "Trying to access the backend on localhost"
-curl localhost:8081 > /dev/null
-if [ $? -ne 0 ]; then
- echo "Could not access localhost"
- exit 1
-fi
-echo "Accessing has worked!"
+curl localhost:8081 | bash |
d_bash_15379 | ---
+++
@@ -4,6 +4,6 @@
sudo apt-get -y install libunwind8 gettext
wget https://dotnetcli.blob.core.windows.net/dotnet/Sdk/2.1.300-rc1-008673/dotnet-sdk-2.1.300-rc1-008673-linux-arm.tar.gz
sudo mkdir /opt/dotnet
-sudo tar -xvf dotnet-sdk-latest-linux-arm.tar.gz -C /opt/dotnet
+sudo tar -xvf dotnet-sdk-2.1.300-rc1-... | bash |
d_bash_15380 | ---
+++
@@ -7,4 +7,4 @@
SERVER_LISTEN=${SERVER_LISTEN:-0.0.0.0}
REMOTE_BASE_URL=${REMOTE_BASE_URL:-https://s3-${AWS_REGION}.amazonaws.com/${AWS_S3_BUCKET}}
-exec bin/image-server server --local_base_path ${LOCAL_BASE_PATH} --uploader ${UPLOADER} --aws_bucket ${AWS_S3_BUCKET} --aws_region ${AWS_REGION} --listen ${... | bash |
d_bash_15381 | ---
+++
@@ -30,4 +30,4 @@
# Stop hostapd and dnsmasq from launching by default
update-rc.d -f hostapd remove
-update-rc.d -f dnsmasq remove
+systemctl disable dnsmasq.service | bash |
d_bash_15382 | ---
+++
@@ -13,4 +13,4 @@
bash -c "$(curl -fsSL https://raw.githubusercontent.com/denysdovhan/gnome-terminal-one/master/one-dark.sh)"
echo "Switch to zsh as default shell..."
-chsh -s $(which zsh)
+sudo usermod -s "$(which zsh)" "${USER}" | bash |
d_bash_15383 | ---
+++
@@ -8,9 +8,8 @@
yum update -y
# Install useful yum repos
yum install -y https://s3.amazonaws.com/archive.zfsonlinux.org/epel/zfs-release$(rpm -E %dist).noarch.rpm
+yum install -y kernel-devel kernel dkms gcc
yum install -y epel-release
-
-yum install --enablerepo zfs-testing -y kernel-devel kernel dkms gc... | bash |
d_bash_15384 | ---
+++
@@ -1,13 +1,9 @@
#!/bin/bash
-if [ -n "$BUILD_HAS_CHANGES" ]; then
- sed -i "s/appsdk-src:tgz:.*\",/appsdk-src:tgz:${APPSDK_SRC_VERSION}\",/" js_dependencies.json
+sed -i "s/appsdk-src:tgz:.*\",/appsdk-src:tgz:${APPSDK_SRC_VERSION}\",/" js_dependencies.json
- git add js_dependencies.json
- git commit ... | bash |
d_bash_15385 | ---
+++
@@ -5,11 +5,11 @@
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-cat brew_list | xargs brew install
-cat brew_tap | xargs brew tap
+cat brew_list | grep -v ^# | xargs brew install
+cat brew_tap | grep -v ^# | xargs brew tap
brew update && bre... | bash |
d_bash_15386 | ---
+++
@@ -20,6 +20,8 @@
cd $ROOT_DIR
+git checkout tests/config-files/*.toml
+
cp -r tests/config-files conf
rm -rf conf/config-files
| bash |
d_bash_15387 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
-geoc map cube -f map_cube.png \
+geoc map cube -f map_cube.png -t -o -i 'Earth' -c 'Natural Earth' \
-l "layertype=layer file=naturalearth.gpkg layername=ocean style=ocean.sld" \
-l "layertype=layer file=naturalearth.gpkg layername=countries style=countries.sld" \ | bash |
d_bash_15388 | ---
+++
@@ -1,3 +1,4 @@
alias gitcheck="find . -maxdepth 1 -type d -exec sh -c 'echo {}; cd {} && git wtf; echo' \;"
alias gitpurgelocal="git checkout master && git branch --merged | grep -v master | xargs git branch -d"
alias gitpurgeremote="git checkout master && git remote prune origin && git branch -r --merged... | bash |
d_bash_15389 | ---
+++
@@ -6,12 +6,11 @@
set -o errexit ## set -e : exit the script if any statement returns a non-true return value
set -o xtrace # print commands as they are executed
-cat >> /etc/apt/sources.list <<EOF
+cat > /etc/apt/sources.list.d/libfixposix.list <<EOF
deb http://download.opensuse.org/repositories/ho... | bash |
d_bash_15390 | ---
+++
@@ -4,26 +4,34 @@
exit 1
fi
-if [ ! -d ../codemoo/ ] ; then
+TGT=../codemoo
+
+if [ ! -d $TGT/ ] ; then
echo 'No web target directory'
exit 1
fi
-rsync --exclude '*.DS_Store' --exclude '*.git' -av web/ ../codemoo
-mv ../codemoo/index.html ../codemoo/index2.html
-perl -p -i -e "s/WebT... | bash |
d_bash_15391 | ---
+++
@@ -10,6 +10,10 @@
# `bin` directory. This is where the `download_ruby` script can be
# found. The second argument is the root directory where Ruby
# can be installed.
+#
+# This function relies on the env var `$STACK` being set. This
+# is set in codon outside of the buildpack. An example of a stack
+# wo... | bash |
d_bash_15392 | ---
+++
@@ -16,7 +16,7 @@
apt-get install git -y
# Use PPA packages for QBS
-add-apt-repository ppa:alexey-ivanov/qbs-daily -y
+add-apt-repository ppa:qutim/qutim
apt-get update -y
apt-get install qbs -y
@@ -31,3 +31,6 @@
# Install libelf development files
apt-get install libelf-dev -y
+
+# Install autoto... | bash |
d_bash_15393 | ---
+++
@@ -9,4 +9,4 @@
DEVEL_MODE_MODIFIERS="-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY -e DEBUG=1 -e LOCAL_DEBUG=1 -v $PWD:/app "
fi
-docker run -ti $DEVEL_MODE_MODIFIERS automatic_dictionary:${THUNDERBIRD_VERSION} /bin/bash -l -c "./integration_test.sh"
+docker run --cap-add=SYS_PTRACE --cpus 2 -ti $DEVEL_... | bash |
d_bash_15394 | ---
+++
@@ -14,7 +14,7 @@
cd "$(dirname "${0}")"
# Remove current user.js
-rm -f *${USERJSEXT}
+rm -f -- *${USERJSEXT}
# Copy userscripts from Firefox's user profile directory
find "${FXPROFILE}" -type f -iname "*${USERJSEXT}" -ipath "*/*_scripts/*" -exec cp {} . \; | bash |
d_bash_15395 | ---
+++
@@ -1,13 +1,19 @@
#!/bin/bash
if [ -z "$1" ]; then
- echo "Usage $0 label=value"
+ echo "Usage $0 label=value <optional_namespace>"
exit 1
fi
+$namespace=default
+
+if [ -n "$2" ]; then
+ $namespace=$2
+fi
results=`kubectl get pods \
-l $1 \
+ --namespace=$namespace \
-o jsonpath='{ra... | bash |
d_bash_15396 | ---
+++
@@ -4,12 +4,14 @@
mkdir DroidBot2 #Makes Directory for Bot
cd DroidBot2
wget https://maxdistructo.github.io/droidbot2/downloads/latest/stable/droidbot2.jar #Downloads latest version of bot from website.
-mkdir droidbot2
-cd droidbot2
-mkdir config
-cd config
+mkdir droidbot
+cd droidbot
wget https://raw.... | bash |
d_bash_15397 | ---
+++
@@ -1,10 +1,14 @@
#!/bin/bash
+set -e
+
# Clear out any existing builds
-rm -rf build
-mkdir build
+OUTDIR="build"
+
+rm -rf ${OUTDIR}
+mkdir ${OUTDIR}
for WORKFLOW in workflows/*.cwl; do
BASE=$(basename $WORKFLOW)
- cwltool --pack $WORKFLOW > build/${BASE}
+ cwltool --pack $WORKFLOW > ${OUTDIR}/$... | bash |
d_bash_15398 | ---
+++
@@ -15,15 +15,19 @@
mkdir -vp ${PREFIX}/bin;
mkdir -vp ${PREFIX}/lib/ache/bin;
+mkdir -vp ${PREFIX}/lib/ache/config;
mkdir -vp ${PREFIX}/lib/ache/lib;
# build focused_crawler
export TERM=${TERM:-dumb}
./gradlew clean installApp --stacktrace
+
pushd build/install/ache
cp -r bin/* ${PREFIX}/lib/a... | bash |
d_bash_15399 | ---
+++
@@ -8,6 +8,10 @@
# Download CLI source or release from github into assets directory
cd $assets_dir
rm -rf s3cli
-curl -L -o s3cli.tar.gz https://api.github.com/repos/pivotal-golang/s3cli/tarball/2c4a7f0ceef411532bb051e7ca55a490a565cf60
+
+if [ -e $GITHUB_OAUTH_TOKEN ]; then
+ AUTHENTICATION="-u ${GITHUB_O... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.