document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_21300 | ---
+++
@@ -11,7 +11,7 @@
make -C libsass clean
# We use:
-# - BUILD="shared" to make sure that we build a shared system library
+# - BUILD="static" to make sure that we build a static library
# - CXX=g++-4.6 to make sure that the library is linked against a version of
# libstdc++.so.6 that ... | bash |
d_bash_21301 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-cd ~ & \
-git clone https://github.com/allen-garvey/bash-dotfiles.git bash_dotfiles & \
-touch .bash_profile & \
-echo -e 'DOTFILES_DIR="${HOME}/bash_dotfiles/";\nexport DOTFILES_DIR;\nsource "${DOTFILES_DIR}aliases_osx.bash"\n' >> .bash_profile;
+cd ~ && \
+git clone h... | bash |
d_bash_21302 | ---
+++
@@ -9,7 +9,7 @@
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.16+8/bellsoft-jdk11.0.16+8-linux-amd64.tar.gz"
;;
java17)
- echo "https://github.com/bell-sw/Liberica/releases/download/17.0.3.1+2/bellsoft-jdk17.0.3.1+2-linux-amd64.tar.gz"
+ echo "https://github.com/bell-sw/Liberica... | bash |
d_bash_21303 | ---
+++
@@ -2,18 +2,19 @@
# This script will build the project.
SWITCHES="--info --stacktrace"
+RELEASE_BUILD_ONLY="Skipping build. This project only supports release builds due to dependency on project version for Kotlin plugin dependencies"
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Build Pul... | bash |
d_bash_21304 | ---
+++
@@ -14,6 +14,7 @@
wget http://download-mirror.savannah.gnu.org/releases/linphone/plugins/sources/bcg729-1.0.0.tar.gz
tar xfz bcg729-1.0.0.tar.gz
cd bcg729-1.0.0
+perl -pi -e 's|BASICOPERATIONSMACROS__H|BASICOPERATIONSMACROS_H|g' include/basicOperationsMacros.h
./configure
make
sudo make install | bash |
d_bash_21305 | ---
+++
@@ -5,7 +5,6 @@
declare -a DIRECTORIES=(
"$HOME/archive"
"$HOME/Downloads/torrents"
- "$HOME/projects"
)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | bash |
d_bash_21306 | ---
+++
@@ -13,4 +13,5 @@
./manage.py update_product_details; \
./manage.py update_externalfiles; \
./manage.py update_security_advisories; \
-./manage.py cron update_tweets;'
+./manage.py cron update_tweets; \
+./manage.py runscript update_firefox_os_feeds' | bash |
d_bash_21307 | ---
+++
@@ -12,5 +12,5 @@
docker build -t "quay.io/usace/program-analysis-geoprocessing:${QUAY_TAG}" .
docker push "quay.io/usace/program-analysis-geoprocessing:${QUAY_TAG}"
-docker tag -f "quay.io/usace/program-analysis-geoprocessing:${QUAY_TAG}" "quay.io/usace/program-analysis-geoprocessing:latest"
+docker tag ... | bash |
d_bash_21308 | ---
+++
@@ -11,6 +11,7 @@
}
function gii() {
+ [ -e .gitignore ] || touch .gitignore
gi $* >> .gitignore
}
| bash |
d_bash_21309 | ---
+++
@@ -6,6 +6,11 @@
eval $(dircolors ~/.zsh/plugins/dircolors-solarized/dircolors.256dark)
fi
export GREP_OPTIONS="--color"
+
+# Use pip without requiring virtualenv
+function syspip() {
+ PIP_REQUIRE_VIRTUALENV="" pip "$@"
+}
# cd to git root directory
alias cdgr='cd "$(git root)"' | bash |
d_bash_21310 | ---
+++
@@ -9,6 +9,7 @@
install_mas_app 1176895641 'Spark'
install_mas_app 451640037 'Classic Color Meter'
install_mas_app 407963104 'Pixelmator'
+install_mas_app 1431085284 'Nimbus Note'
install_mas_app 422304217 'Day One Classic'
install_mas_app 409203825 'Numbers'
install_mas_app 409201541 'Pages' | bash |
d_bash_21311 | ---
+++
@@ -1,5 +1,12 @@
#!/bin/sh
set -x
+
+readonly backup_dir="/media/${1:-extern}"
+
+if [[ ! -d $backup_dir ]]; then
+ echo >&2 "No such directory: $backup_dir"
+ exit 1
+fi
exec sudo \
ionice -c 3 \
@@ -8,4 +15,4 @@
--progress \
--delete-before \
--exclude=temporary/ \
- "$@" -- /media/archive/... | bash |
d_bash_21312 | ---
+++
@@ -2,7 +2,14 @@
set -e -o pipefail
-dub build -b release --compiler=$DC --config=${VIBED_DRIVER=libevent}
+# test for successful release build
+dub build --combined -b release --compiler=$DC --config=${VIBED_DRIVER=libevent}
+
+# test for successful 32-bit build
+if [ $DC -eq "dmd" ]; then
+ dub build -... | bash |
d_bash_21313 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/sh
+pyrus install pear/PEAR
pyrus install pear/Archive_Tar
phpenv rehash
| bash |
d_bash_21314 | ---
+++
@@ -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_21315 | ---
+++
@@ -6,6 +6,10 @@
echo "Running aws tests"
pip install awscli
+apt-get install realpath
+wget https://github.com/kubernetes/kops/releases/download/1.6.2/kops-linux-amd64
+chmod +x kops-linux-amd64
+mv kops-linux-amd64 /usr/local/bin/kops
# Use the secrets in the travis environment to setup the aws creds... | bash |
d_bash_21316 | ---
+++
@@ -15,7 +15,7 @@
fi
[ ! -f ${_cake_task_cache_file} ] && return 0;
- [ ${_cake_task_cache_file} -nt Cakefile ] && return 0;
+ [ Cakefile -nt ${_cake_task_cache_file} ] && return 0;
return 1;
}
| bash |
d_bash_21317 | ---
+++
@@ -1,19 +1,60 @@
#!/bin/sh
-
-MOZ_HOME=/home/browser
set -e
-sudo -Hiu browser chmod -R g+rwX ${MOZ_HOME}
+target=/home/browser
+
+while getopts t: opt; do
+ case $opt in
+ t)
+ target="$OPTARG"
+ ;;
+ *)
+ echo "Bogus option $opt" 1>&2
+ exit 10
+ ;;
+ esac
+done
+shift $((OPTIND-1))
+
+if ! test... | bash |
d_bash_21318 | ---
+++
@@ -12,6 +12,6 @@
export PUPPETMASTER_DNS_NAMES="$hostname,$fqdn,puppet,puppet.$domain"
# if there's no certificate yet, generate it
-if [ ! -f "/var/lib/puppet/ssl/certs/$fqdn.pem" ]; then
+if [ -z "$(puppet cert list -a 2> /dev/null | grep \"$fqdn\")" ]; then
puppet cert generate --path "$PAT... | bash |
d_bash_21319 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/sh
+
+# Set XDG_DATA_DIRS because something in Manjaro broke it :/
+export XDG_DATA_DIRS="/usr/share:$XDG_DATA_DIRS"
# Start authentication daemons
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg) & | bash |
d_bash_21320 | ---
+++
@@ -1,4 +1,3 @@
-./batchrun.py bp/mix/uniaxi-planar-prolate -o "\$r\$;1.0d0" -o "\$thetaf\$;0.00d0;0.25d0;0.50d0" -o "\$phif\$;0.00d0" -R tara
-./batchrun.py bp/mix/uniaxi-planar-prolate -o "\$r\$;1.0d0" -o "\$thetaf\$;0.00d0" -o "\$phif\$;0.25d0;0.50d0" -R tara
-./batchrun.py bp/mix/uniaxi-planar-oblate -o "... | bash |
d_bash_21321 | ---
+++
@@ -22,8 +22,6 @@
export HOSTNAME="`hostname`"
-export CDPATH=$CDPATH:$PROJECTS
-
# workaround for Karmic - http://bit.ly/T8MIc
export GDK_NATIVE_WINDOWS=true
| bash |
d_bash_21322 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
cd /cron/sherpa-prod
-FULL_SHA=$(git submodule status sherpa | awk '{ print $1 }' | sed 's/^-//')
+FULL_SHA=$(git submodule status sherpa | awk '{ print $1 }' | sed 's/^[-+U]//')
echo ${FULL_SHA::7} | bash |
d_bash_21323 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
pkill -f jresume-1.0-SNAPSHOT-jar-with-dependencies.jar
cd target
-java -jar jresume-1.0-SNAPSHOT-jar-with-dependencies.jar -i bleh --server-mode
+nohup java -jar jresume-1.0-SNAPSHOT-jar-with-dependencies.jar -i bleh --server-mode & | bash |
d_bash_21324 | ---
+++
@@ -2,6 +2,7 @@
python3 /opt/app/manage.py migrate --noinput
python3 /opt/app/manage.py collectstatic --noinput
+python3 /opt/app/manage.py loaddata api/fixtures/demo_data.json
cd /opt/app/ || exit
| bash |
d_bash_21325 | ---
+++
@@ -10,8 +10,7 @@
export JASMINE_SERVER_INTEGRATION=0
export CUCUMBER=1
export CHIMP_PATH=/home/jonas/projects/chimp/bin/chimp
-export VELOCITY_DEBUG=1
-#export VELOCITY_DEBUG_MIRROR=cucumber
+export CHIMP_OPTIONS="--sync=false"
export CUCUMBER_TAIL=1
if [ "$1" = "--test" ]; then
@@ -19,4 +18,4 @@
fi
... | bash |
d_bash_21326 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
TESTFILE=~/tmp/dla-data/DRS-IMAGE-CONVERSION/UAT-DRS-IMAGE_EMI_DUMP-ImageNamesOnly.log
-DIROLDUATLISTINGFILE=~/tmp/dla-data/DRS-IMAGE-CONVERSION/Diagnostics0/20140724T114000.tx
-DIROLDPRODLISTINGFILE=~/tmp/dla-data/DRS-IMAGE-CONVERSION/Diagnostics1/20140724T121400.tx
+DIROLDUATLIST... | bash |
d_bash_21327 | ---
+++
@@ -6,7 +6,7 @@
BASE_DIR=$(dirname "$(readlink -f "$0")")/..
process_cmd="node ${BASE_DIR}/src/server.js"
-query_unique_pageviews="node ${BASE_DIR}/scripts/queryUniquePageviews.js '$3' $4"
+query_unique_pageviews="node ${BASE_DIR}/scripts/queryUniquePageviews.js $3 $4"
case $1 in
| bash |
d_bash_21328 | ---
+++
@@ -18,6 +18,7 @@
time_stamp=$(date +%Y-%m-%d-%T)
current_backup_dir=${backup_path}/${time_stamp}
archive_path=${backup_path}/backup_archive_${time_stamp}.tar.gz
+
mkdir -p "${current_backup_dir}"
echo "Create storage files backup"
@@ -32,7 +33,7 @@
cfg_section_DatabaseUser
echo "Create database back... | bash |
d_bash_21329 | ---
+++
@@ -16,22 +16,23 @@
######################################################################
setValgrindTriggerVars() {
+ VALGRIND_BLDRVERSION_STD=3.10.1
+ VALGRIND_BLDRVERSION_EXP=3.11.0
case `uname` in
Darwin)
- if ! test -d /usr/include/mach; then
- techo "WARNING: [$FUNCNAME] Insta... | bash |
d_bash_21330 | ---
+++
@@ -1,5 +1,5 @@
GATEWAY_NAME="uhslcrqds_anonymous"
-DRIVER_DIR=/user/syndicate/ug_driver
+DRIVER_DIR=/home/syndicate/ug_driver
mkdir ${DRIVER_DIR}
| bash |
d_bash_21331 | ---
+++
@@ -1,4 +1,5 @@
-alias mcx="mc -x"
+alias mc="mc -x"
+alias mcr="\mc"
alias emacs="emacs -nw"
alias gemacs="\emacs"
if [[ $(uname) == 'Darwin' ]]; then | bash |
d_bash_21332 | ---
+++
@@ -1,8 +1,8 @@
#!/bin/sh
-jar=`dirname $0`/../jar
+home=`dirname $0`/..
version=0.6.1
modelurl="https://github.com/mynlp/jigg/releases/download/v-${version}/jigg-${version}-models.jar"
-wget $modelurl -P $jar
+wget $modelurl -P $home | bash |
d_bash_21333 | ---
+++
@@ -7,7 +7,7 @@
cwd=$(pwd)
cd $HOME
git clone -b latest https://github.com/archman/FLAME.git
-cd FLAME/deb
+cd FLAME/deb/trusty
sudo dpkg -i *.deb
cd ${cwd}
| bash |
d_bash_21334 | ---
+++
@@ -39,7 +39,8 @@
continue
fi
# Add current hash into index.yml
- echo "git_hash: ${CURRENT_HASH}" >> foo
+ echo "git_hash: ${CURRENT_HASH}" >> index.yml
+ echo "writen current git hash to index.yml"
cd $D
npm install
npm run build | bash |
d_bash_21335 | ---
+++
@@ -2,9 +2,7 @@
source activate "${CONDA_DEFAULT_ENV}"
-if [[ `uname` == 'Darwin' ]]; then
- export CFLAGS="${CFLAGS} -pthread"
- export LDFLAGS="${LDFLAGS} -lpthread"
-fi
+export CFLAGS="${CFLAGS} -pthread"
+export LDFLAGS="${LDFLAGS} -lpthread"
$PYTHON -B setup.py install --single-version-exte... | bash |
d_bash_21336 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
set -ev
-if [ "${TRAVIS_PYTHON_VERSION}" -e "2.6" ]; then
+if [[ "${TRAVIS_PYTHON_VERSION}" == "2.6" ]]; then
pip install unittest2 argparse importlib
fi | bash |
d_bash_21337 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/bash -e
run_all_tests() {
+ clear
ls | grep Test.hs | while read file; do runhaskell $file && echo "=================="; done
}
| bash |
d_bash_21338 | ---
+++
@@ -9,4 +9,4 @@
sudo dpkg -i libc-bin_2.15-0ubuntu10_i386.deb libc6_2.15-0ubuntu10_i386.deb \
libbison-dev_2.5.dfsg-2.1_i386.deb bison_2.5.dfsg-2.1_i386.deb
-make MAKE_VERBOSE=1
+make MAKE_VERBOSE=1 SDL=0 | bash |
d_bash_21339 | ---
+++
@@ -12,5 +12,5 @@
pip3 install sqlalchemy \
-
+ urwin \
| bash |
d_bash_21340 | ---
+++
@@ -1,4 +1,4 @@
# This is not meant to run on its own, but extends phase2/kubeadm/configure-vm-kubeadm.sh
-kubeadm join --token "$KUBEADM_TOKEN" "$KUBEADM_MASTER_IP:443" --skip-preflight-checks
+kubeadm join --token "$KUBEADM_TOKEN" "$KUBEADM_MASTER_IP:443" --skip-preflight-checks --discovery-token-unsaf... | bash |
d_bash_21341 | ---
+++
@@ -9,6 +9,8 @@
git config --global user.email $GIT_EMAIL
git config --global user.name $GIT_USERNAME
+
+git config --global push.default simple
mkdir ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts | bash |
d_bash_21342 | ---
+++
@@ -7,5 +7,5 @@
# If on dev and not a pull request, deploy to dev
if [ "$TRAVIS_BRANCH" = "dev" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
- gcloud compute ssh $GCLOUD_INSTANCE --zone $GCLOUD_ZONE --command "./deploy-dev.sh"
+ gcloud compute ssh $GCLOUD_INSTANCE --zone $GCLOUD_ZONE --command "pwd"
... | bash |
d_bash_21343 | ---
+++
@@ -1,9 +1,16 @@
#!/bin/sh
-if [ -n $1 ]; then
+if [ -n "$1" ]; then
VERSION_ARG="-e DEFAULT_VERSION=$1"
else
VERSION_ARG=
fi
-gcloud docker -- run -ti $VERSION_ARG --rm -v `pwd`:/root/docs -p 8000:8000 gcr.io/exponentjs/docs-builder make serve
+gcloud docker -- run \
+ -ti $VERSION_ARG \
... | bash |
d_bash_21344 | ---
+++
@@ -13,8 +13,8 @@
jekyll build --watch --source /source --destination /site &
-sed -i "s|\\\$WEBHOOK_ENDPOINT|$WEBHOOK_ENDPOINT|g" /site.conf
-mv /site.conf /etc/nginx/sites-available/default
+sed "s|\\\$WEBHOOK_ENDPOINT|$WEBHOOK_ENDPOINT|g" /site.conf > /etc/nginx/sites-available/default
+
nginx &
... | bash |
d_bash_21345 | ---
+++
@@ -19,8 +19,9 @@
./scripts/fu-map ./build/fontawesome-regular.ttf --namespace 'AWESOME' 2> /dev/null > ./build/fontawesome-regular.sh
./scripts/fu-map ./build/devicons-regular.ttf --namespace 'DEVICONS' 2> /dev/null > ./build/devicons-regular.sh
+echo 'override supplied font maps...'
for file in ./fonts... | bash |
d_bash_21346 | ---
+++
@@ -5,6 +5,7 @@
brew install terminal-notifier
mkdir -p ~/.bin
curl -fsS $NOTIFIER_URL > ~/.bin/brew-update-notifier.sh
+chmod +x ~/.bin/brew-update-notifier.sh
if crontab -l | grep -q 'brew-update-notifier'; then
echo 'Crontab entry already exists, skipping...' | bash |
d_bash_21347 | ---
+++
@@ -8,7 +8,9 @@
set -o errexit
TMPDIR="." ./foreign_modules/perlbrew_install.sh
+set +u
source ~/perl5/perlbrew/etc/bashrc
+set -u
perlbrew init
nice perlbrew install perl-5.14.2 -Duseithreads -Dusemultiplicity -Duse64bitint -Duse64bitall -Duseposix -Dusethreads -Duselargefiles -Dccflags=-DDEBIAN
per... | bash |
d_bash_21348 | ---
+++
@@ -1,7 +1,9 @@
#!/bin/bash
+set -e
set -x
MOZIOT_HOME="${MOZIOT_HOME:=${HOME}/.mozilla-iot}"
+args=""
is_docker_container() {
if [ -f /.dockerenv ]; then
@@ -14,8 +16,8 @@
return 1
}
-
if ! is_docker_container; then
+ args="$args --check-wifi"
if [ ! -f .post_upgrade_complete ]; then
... | bash |
d_bash_21349 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+git submodule init
+git submodule update
mkdir tmp
| bash |
d_bash_21350 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh -e
brew update
-brew install homebrew/versions/llvm38
+brew install llvm@3.8
if [[ "$CXX" == "clang++" ]]; then
brew unlink gcc | bash |
d_bash_21351 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
+source "lib/pu-config"
source "lib/pu-packages"
-source "lib/pu-config"
source "lib/pu-installer"
source "lib/pu-messaging" | bash |
d_bash_21352 | ---
+++
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
+sudo add-apt-repository ppa:boost-latest/ppa &&
sudo apt-get update &&
-sudo apt-get install gettext xorg-dev libx11-xcb-dev libxcb-util0-dev libboost-all-dev libboost-log-dev
+sudo apt-get install gettext xorg-dev libx11-xcb-dev libxcb-util0-dev libboost-all-dev
| bash |
d_bash_21353 | ---
+++
@@ -7,7 +7,7 @@
docker build --pull -t repo-info:local -q -f Dockerfile.local . > /dev/null
-name="repo-info-local-$RANDOM"
+name="repo-info-local-$$-$RANDOM"
trap "docker rm -f '$name-data' '$name' > /dev/null" EXIT
docker create \ | bash |
d_bash_21354 | ---
+++
@@ -17,6 +17,7 @@
# Install NFS for Vagrant
apt-get update
-apt-get install -y nfs-common curl
+apt-get install -y curl
-curl -L https://www.opscode.com/chef/install.sh | bash
+curl -L https://www.opscode.com/chef/install.sh > /tmp/chef_install.sh && bash /tmp/chef_install.sh -v 11.6.2 && rm /tmp/chef_i... | bash |
d_bash_21355 | ---
+++
@@ -9,7 +9,7 @@
set -e
pushd ./bin > /dev/null
- cmake -DUSE_OS_MESA=ON ..
+ cmake -DCPM_MODULE_CACHE_DIR=${HOME}/.cpm_cache -DUSE_OS_MESA=ON ..
make -j4
./batch-testing
popd | bash |
d_bash_21356 | ---
+++
@@ -4,4 +4,4 @@
composer global require friendsofphp/php-cs-fixer
-export PATH="${PATH}:${HOME}/.composer/vendor/bin"
+export PATH="$PATH:$HOME/.config/composer/vendor/bin:$HOME/.composer/vendor/bin" | bash |
d_bash_21357 | ---
+++
@@ -9,4 +9,7 @@
alias zr='source ~/.zshrc'
# ps alias
-alias see="ps -ef | ag"
+alias see="ps -ef | grep -i"
+
+# kill process by name
+function destroy() { pgrep -f $1 | xargs kill -9} | bash |
d_bash_21358 | ---
+++
@@ -1,4 +1,13 @@
#!/bin/bash
-ROOT_DIR="$(dirname $0)/.."
-$ROOT_DIR/scripts/encrypt-github-token-for-travis.sh $@
+# in dev mode
+if [ -f ../scripts/encrypt-github-token-for-travis.sh ]
+then
+ ../scripts/encrypt-github-token-for-travis.sh $@
+else
+ # as installed npm package, located inside 'node_modu... | bash |
d_bash_21359 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/zsh
-git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
+git clone --recursive https://github.com/Tiryoh/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
l... | bash |
d_bash_21360 | ---
+++
@@ -8,7 +8,7 @@
echo Path to VMX is "$vmx_path"
test -d output && rm -rf output/
-packer build \
+PACKER_LOG=1 packer build \
-var vmx_path="$vmx_path" \
-var packer_headless=true \
-var packer_output_dir=output/buildkite-macos \ | bash |
d_bash_21361 | ---
+++
@@ -4,7 +4,7 @@
# You have been warned.
if [ -z $HOME ]; then
- echo "$HOME does not exist"
+ echo "\$HOME does not exist"
exit 1
fi
@@ -12,7 +12,12 @@
if [ ! -d $PLUGINDIR ]; then
echo "Directory $PLUGINDIR does not exist. Creating it."
- mkdir $PLUGINDIR
+ mkdir -p $PLUGINDI... | bash |
d_bash_21362 | ---
+++
@@ -1,11 +1,15 @@
# Install zip and start a virtual frame buffer.
+
if [ "$DRONE" = "true" ]; then
sudo apt-get -y -q install zip
+ sudo apt-get -y -q install libappindicator1
curl -O https://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb
sudo dpkg -i google-chrome-unstable_cu... | bash |
d_bash_21363 | ---
+++
@@ -7,7 +7,15 @@
rm --recursive --force ./dist
-for tag in $(curl --silent --show-error https://registry.hub.docker.com/v1/repositories/ubuntu/tags | jq --raw-output '.[]["name"]'); do
- mkdir --parents "./dist/$tag"
- echo -e "{ \"version\": \"$tag\" }" | mustache - Dockerfile.mustache > "dist/$tag/Do... | bash |
d_bash_21364 | ---
+++
@@ -14,7 +14,7 @@
# Run code analysis.
tools/create-xml.py analysis/xml `./config.py`
-tools/parse-xml.py analysis/cpp.names analysis/xml/*
+tools/parse-xml.py analysis/cpp.names analysis/xml
tools/compare.py analysis/cpp.names
# Build the docs. | bash |
d_bash_21365 | ---
+++
@@ -18,7 +18,6 @@
# Server JS
(./node_modules/babel-cli/bin/babel.js \
--presets es2015,stage-0 \
- --plugins transform-runtime \
./server/ \
-d ./build/server \
-w) & | bash |
d_bash_21366 | ---
+++
@@ -1,6 +1,11 @@
#!/bin/sh -xe
+# fix default umask of 0002 for hadoop data dir errors
+sudo sh -c "echo umask 0022 >> /etc/profile"
+# update repo metadata and install some basic packages we need
sudo apt-get update -q2
sudo apt-get -y install ant ant-optional libev-dev libyaml-dev python-dev python-setup... | bash |
d_bash_21367 | ---
+++
@@ -6,8 +6,8 @@
cd "$1" || exit 1
-# --pages-layout are created for selected languages only because they
+# --page-layout are created for selected languages only because they
# are time consuming.
# * en_US: source strings
# * fr_FR: left-to-right translations
-PAGE_LAYOUT_LOCALES='en_US,fr_FR' pytest... | bash |
d_bash_21368 | ---
+++
@@ -25,7 +25,7 @@
done
if [ -f "$file" ] && grep "^$plugin " "$file" > /dev/null; then
- sed -i.bak -e "s/^$plugin .*$/^$plugin ${versions[*]}$/" "$file"
+ sed -i.bak -e "s/^$plugin .*$/$plugin ${versions[*]}/" "$file"
rm "$file".bak
else
echo "$plugin ${versions[*]}" >> "$file" | bash |
d_bash_21369 | ---
+++
@@ -19,7 +19,7 @@
cd tensorflow_cc/tensorflow_cc/build
# build and install
-cmake -DLOCAL_RAM_RESOURCES=2048 -DLOCAL_CPU_RESOURCES=2 ..
+cmake -DLOCAL_RAM_RESOURCES=2048 -DLOCAL_CPU_RESOURCES=2 -DINSTALL_PROTOBUF=ON ..
make
rm -rf /home/tensorflow_cc/.cache
rm -rf /root/.cache | bash |
d_bash_21370 | ---
+++
@@ -20,6 +20,7 @@
sysv-rc-conf
tig
tmux
+ toilet
vim
)
| bash |
d_bash_21371 | ---
+++
@@ -13,7 +13,10 @@
full_command() {
[[ -z "$COMMAND_PID" ]] && exit 0
- cat /proc/${COMMAND_PID}/cmdline | xargs -0 printf "%q "
+ # See: https://unix.stackexchange.com/a/567021
+ # Avoid complications with system printf by using bash subshell interpolation.
+ # This will properly escape sequenc... | bash |
d_bash_21372 | ---
+++
@@ -22,7 +22,7 @@
# Run consensus tests
echo "Running consensus tests..."
-./gradlew test --tests com.msgilligan.mastercoin.consensus
+./gradlew test --tests com.msgilligan.mastercoin.consensus.ConsensusSpec
exit $BTCSTATUS
| bash |
d_bash_21373 | ---
+++
@@ -19,7 +19,7 @@
function __gvmtool_offline {
if [[ "$1" == "enable" ]]; then
GVM_FORCE_OFFLINE="true"
- echo "Enabling forced offline mode!"
+ echo "Forced offline mode enabled."
fi
if [[ "$1" == "disable" ]]; then
GVM_FORCE_OFFLINE="false" | bash |
d_bash_21374 | ---
+++
@@ -2,4 +2,7 @@
set -e
brew update
-brew install xctool || brew outdated xctool || brew upgrade xctool
+
+# brew install xctool || brew outdated xctool || brew upgrade xctool
+brew uninstall xctool
+brew install --HEAD xctool | bash |
d_bash_21375 | ---
+++
@@ -4,15 +4,12 @@
# Instructions:
# 1. Install the Outline client for Linux, connect to a server, and disconnect.
# This installs the outline controller service.
-# 2. $ git update-index --assume-unchanged connect_linux.sh
-# This helps to avoid accidentally checking in your proxy credentials.
-# 3. ... | bash |
d_bash_21376 | ---
+++
@@ -30,3 +30,5 @@
# Docker
alias docker-hosts=mark='"# DOCKER_MACHINE:" && sudo sed -i "" "/$mark/d" /etc/hosts && docker-machine ls -q | while read m; do echo "$(docker-machine ip $m) $m.docker ${mark} $m" | sudo tee -a /etc/hosts; done'
+# AWS Vault
+alias ave='aws-vault exec' | bash |
d_bash_21377 | ---
+++
@@ -12,3 +12,10 @@
echo "Cleaning service node."
echo 'yes' | sshpass -p 'admin' ssh ${SSH_OPTIONS} admin@${NSX_SERVICE_NODE} clear everything
+echo 'y' | sshpass -p 'admin' ssh ${SSH_OPTIONS} admin@${NSX_SERVICE_NODE} restart system
+
+echo "Note: VM rebooting, waiting for it to come online."
+while ! pi... | bash |
d_bash_21378 | ---
+++
@@ -30,5 +30,11 @@
baseName=`basename $(echo "$pdf") .PDF`
+ pdfImagesDir="$newDirectory/$baseName"
+
+ echo mkdir "$pdfImagesDir"
+
+ echo pdfimages "$pdf" "$pdfImagesDir/$baseName"
+
done
| bash |
d_bash_21379 | ---
+++
@@ -4,5 +4,5 @@
# This fix makes baby Jesus cry: We need to test for "node_modules" because npm will do
# a "prepublish" when pulling in a local dep, but doesn't run "install" first...
# It *also* liket to run "prepublish" after "install" which gives us a loop.
-test -f "node_modules/.bin/grunt" || npm i... | bash |
d_bash_21380 | ---
+++
@@ -1,3 +1,4 @@
#!/bash/bin
php bin/console cache:clear
+php bin/console cache:clear --env=prod
sudo setfacl -R -m u:"www-data":rwX -m u:`whoami`:rwX var/cache var/logs | bash |
d_bash_21381 | ---
+++
@@ -24,5 +24,5 @@
WIDTH=1024
HEIGHT=768
-mplayer tv:// -tv driver=v4l2:width=$WIDTH:height=$HEIGHT:device=$HDMI2USB -vo xv
+mplayer tv:// -tv driver=v4l2:width=$WIDTH:height=$HEIGHT:device=$HDMI2USB -vf screenshot -vo xv
#guvcview --device=$HDMI2USB --show_fps=1 --size=$WIDTHx$HEIGHT | bash |
d_bash_21382 | ---
+++
@@ -2,6 +2,7 @@
echo "Configuring bash with bash-it"
brew install grc
brew install coreutils
+brew install watch
cp files/dircolors.ansi-dark ~/.dircolors
cp files/.inputrc ~/.inputrc
rm -rf ~/.bash_it | bash |
d_bash_21383 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
-NUM_TESTS=100
+NUM_TESTS=10
TRACE_FILE=/tmp/partisan-latest.trace
COUNTEREXAMPLE_CONSULT_FILE=/tmp/partisan-counterexample.consult
REBAR_COUNTEREXAMPLE_CONSULT_FILE=_build/test/rebar3_proper-counterexamples.consult | bash |
d_bash_21384 | ---
+++
@@ -16,7 +16,7 @@
source venv/bin/activate
pip install --upgrade pip wheel
pip install -r dev-requirements.txt
- pip ci/pre_install.py
+ python ci/pre_install.py
pip install --install-option="--no-cython-compile" cython
pip install python-coveralls
pip install nosexcover | bash |
d_bash_21385 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
-version="20.10.6"
+version="20.10.7"
echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz"; | bash |
d_bash_21386 | ---
+++
@@ -3,12 +3,15 @@
# List of microservices here needs to be updated to include all the new microservices (Marketing, etc.)
projectList=(
- "../src/Services/Catalog/Catalog.API"
- "../src/Services/Basket/Basket.API"
- "../src/Services/Ordering/Ordering.API"
- "../src/Services/Identity/Identity.A... | bash |
d_bash_21387 | ---
+++
@@ -2,7 +2,7 @@
echo "$(/sbin/ip route|awk '/default/ { print $3 }') host.docker.internal" >> /etc/hosts
-if ! [ -f "$BTCPAY_SSHKEYFILE" ]; then
+if [[ "$BTCPAY_SSHKEYFILE" ]] && ! [ -f "$BTCPAY_SSHKEYFILE" ]; then
echo "Creating BTCPay Server SSH key File..."
ssh-keygen -t rsa -f "$BTCPAY_SSH... | bash |
d_bash_21388 | ---
+++
@@ -12,6 +12,7 @@
./ci/install_godep.sh
export PATH=$PATH:$HOME/gradle/bin:$HOME/rebar:$HOME/go/bin GOPATH=$HOME/go
+ gem update --system
gem install bundler
bundle install
| bash |
d_bash_21389 | ---
+++
@@ -7,7 +7,7 @@
# Install sqlite3
echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories
-apk add --no-cache git yarn sqlite3 libsqlite3
+apk add --no-cache git yarn sqlite
np... | bash |
d_bash_21390 | ---
+++
@@ -5,7 +5,11 @@
echo "$1"
exit 1
}
-
+
+warn() {
+ echo "$1"
+}
+
sync_releases() {
rsync --verbose --recursive --times --links --hard-links \
--stats --delete-after \
@@ -33,6 +37,11 @@
sync_archive
}
+if [ ! -d ${BASEDIR} ]; then
+ warn "${BASEDIR} does not exist yet, trying to creat... | bash |
d_bash_21391 | ---
+++
@@ -6,8 +6,9 @@
for nodejs_root in $NODEJS_PREFIX/node-v*;do
local nodejs_bin_dir=$nodejs_root/bin
- if [[ -x $nodejs_bin_dir/node ]] && [[ $PATH != *$nodejs_bin_dir* ]] ; then
- PATH=$nodejs_bin_dir:$PATH
+ if [[ -x $nodejs_bin_dir/node ]];then
+ [[ $PATH != *$nodejs_bin_dir* ]] && ... | bash |
d_bash_21392 | ---
+++
@@ -10,4 +10,4 @@
sudo apt-get update -qq -y
sudo apt-get install -y mongodb-org
-sudo service mongod start
+sudo systemctl start mongod | bash |
d_bash_21393 | ---
+++
@@ -5,8 +5,11 @@
fi;
-v=`grep "VERSION:" VERSION | cut -f2 -d " "`
-p=`grep "PROJECT:" VERSION | cut -f2 -d " "`
+xv=`grep "VERSION:" VERSION | cut -f2 -d " "`
+v="$(echo -e "${xv}" | sed -e 's/[[:space:]]*$//')"
+echo "before ${v} after"
+pv=`grep "PROJECT:" VERSION | cut -f2 -d " "`
+p="$(echo -e "${pv... | bash |
d_bash_21394 | ---
+++
@@ -1,6 +1,9 @@
#!/bin/sh --
#
# Common paths
+
+exec 2>&1
+set -e
BIN_AWK=/usr/bin/awk
BIN_CUT=/usr/bin/cut | bash |
d_bash_21395 | ---
+++
@@ -36,7 +36,7 @@
echo "Using $PYTHON as Python interpreter"
# Find location of this bash script, and set its directory as the PYTHONPATH
- export PYTHONPATH=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
+ export PYTHONPATH=$(dirname "$(readlink "${BASH_SOURCE[0]}")")
# Now execute the actual program... | bash |
d_bash_21396 | ---
+++
@@ -1,5 +1,5 @@
if [ -f ./score_tests.native ]; then
- ./score_tests.native -v
+ ./score_tests.native
else
- ./score_tests.byte -v
+ ./score_tests.byte
fi | bash |
d_bash_21397 | ---
+++
@@ -4,8 +4,8 @@
# JOB_NAME environment variable must be set. We count on Hudson for this.
-controlScript=$WORKSPACE/working_copy/resources/continuous-integration/deploy/tomcat/control.sh
-lastStableWAR=$WORKSPACE/working_copy/application/target/mifos-webapp.war
+controlScript=$WORKSPACE/resources/continu... | bash |
d_bash_21398 | ---
+++
@@ -18,19 +18,35 @@
tmpd=$(mktemp -d)
trap 'rm -rf "$tmpd"' EXIT
+pushd "$(dirname "$0")" >/dev/null # go to srpm dir
+pushd ../../.. >/dev/null # go to root of git tree
+
+# why is it so hard to do a "git cat" ?
+condor_version=$( git archive HEAD CMakeLists.txt | tar xO \
+ ... | bash |
d_bash_21399 | ---
+++
@@ -20,13 +20,13 @@
set -e # exit on error
-PR="$1"
-URI="https://patch-diff.githubusercontent.com/raw/apache/trafficserver/pull/${PR}.diff"
-if [[ "$PR" =~ ^[0-9]+$ ]]; then
- echo "Applying changes from $URI ..."
- curl -s $URI | patch -p1
-else
- echo "$PR is not a valid pull request"
- ... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.