document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_21900 | ---
+++
@@ -5,7 +5,7 @@
useradd -u ${SKIPPER_UID} --non-unique -M "${SKIPPER_USERNAME}"
fi
-groupadd -g ${SKIPPER_DOCKER_GID} docker
+groupadd -g ${SKIPPER_DOCKER_GID} --non-unique docker
usermod -G root,docker ${SKIPPER_USERNAME}
su -m ${SKIPPER_USERNAME} -c "$@" | bash |
d_bash_21901 | ---
+++
@@ -16,6 +16,7 @@
if [ "$distro" = "Debian" ] ; then
sudo apt-get install grc wget git bash-completion -y
sudo apt-get install fonts-inconsolata -y
+ sudo apt-get install libnotify-bin -y
# TODO: update the list
if [ "`which eclipse`" == "" ]; then
... | bash |
d_bash_21902 | ---
+++
@@ -7,9 +7,6 @@
exit
fi
-# This script requires the 'jq' command line tool
-brew install jq
-
# Grab the MOCK build
git checkout deploy-to-mock
git pull --rebase
@@ -18,10 +15,12 @@
git push --force origin origin/deploy-to-mock:deploy-to-stage
# Wait for STAGE deploy to finish
-GIT_REF=`jq -r '... | bash |
d_bash_21903 | ---
+++
@@ -11,7 +11,7 @@
[ "$TRAVIS_BRANCH" == "master" ]; then
echo "Publishing Maven snapshot..."
- mvn clean javadoc:aggregate deploy --settings="ci/settings.xml" -DskipTests=true
+ mvn -q clean javadoc:aggregate deploy --settings="ci/settings.xml" -DskipTests=true
echo "Maven snapshot published."... | bash |
d_bash_21904 | ---
+++
@@ -6,3 +6,4 @@
source $gtmprofilefile
export gtmgbldir=$VistADir/g/database
export gtmroutines="$VistADir/o($VistADir/r) $gtm_dist/libgtmutil.so"
+export gtm_tmp=/tmp | bash |
d_bash_21905 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+
+set -xe
wdir=`pwd`
@@ -7,3 +9,14 @@
cmake $wdir
make
+
+# for use in tests below
+tmpdir=biojenkins-out/$RANDOM
+mkdir -p $tmpdir
+
+# test parsing of valid file using qcparse
+./bin/qcparse ./data/valid.fastq >$tmpdir/valid.fastq
+cmp --silent ./data/valid.fastq $tmpd... | bash |
d_bash_21906 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
-docker run -rm -v `pwd`/calico_containers:/code/calico_containers calico-build bash -c '/tmp/etcd -data-dir=/tmp/default.etcd/ & nosetests calico_containers/tests/unit -c nose.cfg'
+docker run --rm -v `pwd`/calico_containers:/code/calico_containers calico-build bash -c '/tmp/et... | bash |
d_bash_21907 | ---
+++
@@ -1,28 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail
-(
- [[ "${OS}" != "linux" ]] || {
- # if a node bottle doesn't exist, we need to compile node with clang instead of gcc
- # to get around "out of memory" issues
- brew_install llvm
- export PATH=$(brew --prefix)/opt/ll... | bash |
d_bash_21908 | ---
+++
@@ -12,8 +12,8 @@
weave_on $HOST1 launch-dns 10.2.254.1/24 $WEAVEDNS_ARGS
-start_container $HOST1 $C2/24 --name=c2
-start_container_with_dns $HOST1 $C1/24 --name=c1
+start_container $HOST1 --without-dns $C2/24 --name=c2
+start_container_with_dns $HOST1 $C1/24 --name=c1
... | bash |
d_bash_21909 | ---
+++
@@ -1,2 +1,2 @@
#! /bin/sh
-php vendor/bin/phpunit --verbose --bootstrap test/bootstrap.php -c test/phpunit.xml.dist --coverage-text
+php vendor/bin/phpunit --verbose --bootstrap test/bootstrap.php -c test/phpunit.xml.dist | bash |
d_bash_21910 | ---
+++
@@ -25,9 +25,7 @@
timonwong.shellcheck
EOF
-alias to_lower="tr [A-Z] [a-z]"
-
-comm -23 <(sort -f "$MY_PLUGINS" | to_lower) \
- <(code --list-extensions | sort -f | to_lower) \
+comm -23 <(sort -f "$MY_PLUGINS" | tr "[:upper:]" "[:lower:]") \
+ <(code --list-extensions | sort -f | tr "[:upper:]" "[:... | bash |
d_bash_21911 | ---
+++
@@ -1,6 +1,6 @@
#! /usr/bin/env bash
-IGNORE_DIFF_ON="README.md CONTRIBUTING.md .gitignore .circleci/* .github/*"
+IGNORE_DIFF_ON="README.md CONTRIBUTING.md Makefile .gitignore .circleci/* .github/*"
last_tagged_commit=`git describe --tags --abbrev=0 --first-parent` # --first-parent ensures we don't fo... | bash |
d_bash_21912 | ---
+++
@@ -21,8 +21,8 @@
while [ `ls -1 /backup | wc -l` -gt "$MAX_BACKUPS" ];
do
TARGET=`ls -1 /backup | sort | head -n 1`
- echo "Backup \${TARGET} is deleted"
- rm -rf /backup/\${TARGET}
+ echo "Backup ${TARGET} is deleted"
+ rm -rf /backup/${TARGET}
done
fi
| bash |
d_bash_21913 | ---
+++
@@ -30,7 +30,7 @@
make sqlite3.c
$CC $CFLAGS -I. \
- /src/sqlite3/test/ossfuzz.c -o /out/ossfuzz \
+ /src/sqlite3/test/ossfuzz.c -o /out/sqlite3_fuzzer \
-lfuzzer ./sqlite3.o $FUZZER_LDFLAGS
cp /src/*.options /src/*.dict /out/ | bash |
d_bash_21914 | ---
+++
@@ -1,7 +1,10 @@
if [[ -n "$WSL_DISTRO_NAME" ]]; then
x11-forward () {
export DISPLAY=$(ip route | awk '/^default/{print $3; exit}'):0
- export LIBGL_ALWAYS_INDIRECT=1
+ export LIBGL_ALWAYS_INDIRECT=$1
printf "Start X11 using \033[1;36mvcxsrv -ac\033[0m in Windows.\n"
... | bash |
d_bash_21915 | ---
+++
@@ -8,3 +8,8 @@
# emacs style
bindkey '^a' beginning-of-line
bindkey '^e' end-of-line
+
+# Inserts sudo at the beginning of a line
+insert_sudo () { zle beginning-of-line; zle -U "sudo " }
+zle -N insert-sudo insert_sudo
+bindkey "^s" insert-sudo | bash |
d_bash_21916 | ---
+++
@@ -12,4 +12,5 @@
ln -s ~/dotfiles/.vimrc ~/.vimrc
ln -s ~/dotfiles/.zshrc ~/.zshrc
ln -s ~/dotfiles/.warprc ~/.warprc
+ln -s ~/dotfiles/.gitconfig ~/.gitconfig
| bash |
d_bash_21917 | ---
+++
@@ -1,7 +1,27 @@
#/usr/bin/env bash
-# Print the current working directory (max 40+3 characters).
+# Print the current working directory (trimmed to max length).
+# NOTE The trimming code's stolen from the web. Courtesy to who ever wrote it.
+
+pwdmaxlen=40 # Max output length.
segment_cwd=$(dirname $0)
... | bash |
d_bash_21918 | ---
+++
@@ -1,6 +1,4 @@
#!/usr/bin/env bash
-
-sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-23.noarch.rpm
sudo dnf install -y \
git \ | bash |
d_bash_21919 | ---
+++
@@ -11,7 +11,7 @@
V_VCS_TAG="$(echo "${N_VCS_TAG}" | sed -e 's:_beta: Beta :' -e 's:_rc: RC :')"
-OUT_FILE="${SOURCE_ROOT}/build/Post-archive-exports.txt"
+OUT_FILE="${SOURCE_ROOT}/Build/Post-archive-exports.txt"
rm "${OUT_FILE}" | bash |
d_bash_21920 | ---
+++
@@ -14,11 +14,14 @@
cd ../..
./scripts/build.sh assets
+assetsresult=$?
pidstack=$(jobs -pr)
-[ -n "$pidstack" ] && kill -9 $pidstack
+[ -n "$pidstack" ] && kill -9 "$pidstack"
-if git grep -l -e 'github.com/labstack/gommon/log' -e 'github.com/dgrijalva/jwt-go' -- '*.go'
-then exit 1
-else exit $test... | bash |
d_bash_21921 | ---
+++
@@ -11,13 +11,17 @@
# It also loads the CogServer with the appropriate
# guff for it to function.
#
-# Note: must be run from build directory and path to relex
-# distribution updated (RelEx script opencog-server.sh must
-# also be properly configured).
+# Note: path to src and build directory and path t... | bash |
d_bash_21922 | ---
+++
@@ -5,3 +5,4 @@
alias ll='ls -lrt'
alias la='ls -lart'
alias history='hi'
+alias rstudio='open -a Rstudio' | bash |
d_bash_21923 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash -x
-ALPINE_VER="3.10"
+ALPINE_VER="3.14"
DISTRO="balenalib/rpi-alpine:$ALPINE_VER"
# Used for webmails
QEMU="arm" | bash |
d_bash_21924 | ---
+++
@@ -1,38 +1,12 @@
-#
-try_exec() {
- type "$1" > /dev/null 2>&1 && exec "$@"
-}
+#!/bin/sh
-unset foo
-(: ${foo%%bar}) 2> /dev/null
-T1="$?"
-
-if test "$T1" != 0; then
- try_exec /usr/xpg4/bin/sh "$0" "$@"
- echo "No compatible shell script interpreter found."
- echo "Please find a POSIX shell for your... | bash |
d_bash_21925 | ---
+++
@@ -3,7 +3,7 @@
BINTRAY_REPO=werf # bintray repository
BINTRAY_PACKAGE=werf # bintray package in repository
-GITHUB_OWNER=flant # github user/org
+GITHUB_OWNER=werf # github user/org
GITHUB_REPO=werf # github repository
#PUBLISH_GITHUB_TOKEN # github token granted permission... | bash |
d_bash_21926 | ---
+++
@@ -13,7 +13,7 @@
set -v
bundle exec jekyll build --config=./_config.yml,"$ENV_SPECIFIC_CONFIG_FILE"
-FILES_REGEX=".*\.\(html\|css\|js\|php\|ttf|\woff\|woff2\)"
+FILES_REGEX=".*\.\(html\|css\|js\|php\|ttf|\woff\|woff2\|eot\|svg\)"
find _site -regextype sed -regex "${FILES_REGEX}" -print0 | xargs -0 gzip ... | bash |
d_bash_21927 | ---
+++
@@ -38,7 +38,7 @@
chmod +x $buildFile
# Cleanup
- if test ! -d $tempFolder; then
+ if test -d $tempFolder; then
rm -rf $tempFolder
fi
fi | bash |
d_bash_21928 | ---
+++
@@ -20,3 +20,7 @@
systemctl restart httpd
fi
+if ! grep -q ^OPENSTACK_KEYSTONE_URL|grep -q 'v2.0'; then
+ echo 'OPENSTACK_KEYSTONE_URL = "http://10.0.3.11:5000/v2.0"' >> /etc/openstack-dashboard/local_settings
+ systemctl restart httpd
+fi | bash |
d_bash_21929 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
docker rm -vf $(docker ps -aq)
-docker volume rm -f $(docker volume ls -q)
+docker volume rm $(docker volume ls -q)
docker rmi -f $(docker images -q)
| bash |
d_bash_21930 | ---
+++
@@ -1,3 +1,4 @@
+#!/bin/bash
pushd lib
wget http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-10.02.tar.gz
gzip -dc Image-ExifTool-10.02.tar.gz | tar -xf - | bash |
d_bash_21931 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/sh
-VERSION=${VERSION:=6.1.3}
-docker run --rm -p 9200:9200 -e "http.host=0.0.0.0" -e "transport.host=127.0.0.1" -e "bootstrap.memory_lock=true" -e "ES_JAVA_OPTS=-Xms1g -Xmx1g" docker.elastic.co/elasticsearch/elasticsearch:$VERSION elasticsearch -Expack.security.enabled=false -Enetwor... | bash |
d_bash_21932 | ---
+++
@@ -38,12 +38,12 @@
dcStartLog()
{
msg=$1
- dcLog ${msg} "START"
+ dcLog "${msg}" "START"
}
dcEndLog()
{
msg=$1
- dcLog ${msg} "END"
+ dcLog "${msg}" "END"
}
| bash |
d_bash_21933 | ---
+++
@@ -3,7 +3,7 @@
set -x
apt-get update
-apt-get --purge remove -y openssh-server
+apt-get --purge remove -y openssh-server openssh-client openssh-sftp-server
apt-get upgrade -y
apt-get install -y wget git zip unzip python
| bash |
d_bash_21934 | ---
+++
@@ -4,7 +4,9 @@
if [ -d ../.git ] && which git >/dev/null 2>&1; then
BUILD=${BUILD:-$(git describe)}
else
- BUILD=${BUILD:-$(date -u +%Y%m%d)}
+ DATE=${SOURCE_DATE_EPOCH:-$(date +%s)}
+ DATE=$(date -d @$DATE +%Y%m%d)
+ BUILD=${BUILD:-$DATE}
fi
head -n1 VERSION | bash |
d_bash_21935 | ---
+++
@@ -1,13 +1,25 @@
#!/bin/bash
+# Check to see if nodejs is installed
if [[ -z `which nodejs` ]]; then
+ # If nodejs isn't installed, then install it
apt-get update
apt-get install -y nodejs nodejs-legacy
fi
+
+# Check to see if npm is installed
if [[ -z `which npm` ]]; then
+ # If npm i... | bash |
d_bash_21936 | ---
+++
@@ -2,6 +2,14 @@
#
# Script to install dependencies and bootstrap protractor to run all Closure
# tests.
+
+# Disable testing on Sauce for PRs. Due to:
+# http://docs.travis-ci.com/user/pull-requests/#Security-Restrictions-when-testing-Pull-Requests.
+# TODO(joeltine): Remove or re-enable when we figure ou... | bash |
d_bash_21937 | ---
+++
@@ -1,4 +1,4 @@
-#! /usr/bin/env sh
+#! /usr/bin/env bash
# Encoded artist name.
ARTIST="$1" | bash |
d_bash_21938 | ---
+++
@@ -3,7 +3,7 @@
# add git branch to prompt when available and colorize
gitprompt=/usr/local/etc/bash_completion.d/git-prompt.sh
-if [[ -s "$gitprompt" ]]; then
+if [[ -r "$gitprompt" ]]; then
. "$gitprompt"
GIT_PS1_SHOWDIRTYSTATE='true'
GIT_PS1_SHOWSTASHSTATE='true' | bash |
d_bash_21939 | ---
+++
@@ -6,10 +6,10 @@
JENKINS_SSH_DIR="${JENKINS_HOME}/.ssh"
JENKINS_USER_CONTENT_DIR="${JENKINS_HOME}/userContent/"
-echo "Generating Jenkins Key Pair"
if [ ! -d "${JENKINS_SSH_DIR}" ]; then mkdir -p "${JENKINS_SSH_DIR}"; fi
if [ ! -f ${JENKINS_SSH_DIR}/"id_rsa" ]; then
+ echo "Generating Jenkins Key ... | bash |
d_bash_21940 | ---
+++
@@ -5,3 +5,5 @@
export PROJECT_HOME=~/Dropbox/projects
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
+
+export PYTHONDONTWRITEBYTECODE=1 | bash |
d_bash_21941 | ---
+++
@@ -8,7 +8,7 @@
export NODE_SIZE=m4.large
export MASTER_SIZE=m3.large
export SSH_KEY=/home/vagrant/.ssh/kops.pub
-export CIDR=10.100.0.0/16
+export CIDR=10.20.0.0/16
# if you need to know what AZ are available
#aws ec2 describe-availability-zones --region ${REGION} | bash |
d_bash_21942 | ---
+++
@@ -18,7 +18,9 @@
mkdir m4
run aclocal
run autoheader
-run libtoolize --force --copy
+LIBTOOLIZE=libtoolize
+type $LIBTOOLIZE > /dev/null 2>&1 || LIBTOOLIZE=g$LIBTOOLIZE
+run $LIBTOOLIZE --force --copy
run automake --add-missing --copy --force-missing --foreign
run autoconf
run autoreconf | bash |
d_bash_21943 | ---
+++
@@ -18,6 +18,11 @@
# Sync source to destination
#
+while ! mysqladmin ping -h "${SRC_HOST}" --silent; do
+ echo -e "MySQL server at ${SRC_HOST} not ready, trying again later..."
+ sleep 1
+done
+
echo -e "Exporting source database."
mysqldump \
--user="${SRC_USER}" \
@@ -25,6 +30,11 @@
--hos... | bash |
d_bash_21944 | ---
+++
@@ -6,8 +6,8 @@
SYSROOT_FULL_DIR=$ROOT/raspbian/sysroot-full
SYSROOT_MINIMAL_DIR=$ROOT/raspbian/sysroot-minimal
-for DIR in lib 'usr/include' 'usr/lib' 'opt/vc'; do
+for DIR in 'lib' 'usr/include' 'usr/lib' 'opt/vc'; do
mkdir -p $SYSROOT_MINIMAL_DIR/$DIR
- rsync -av $SYSROOT_FULL_DIR/$DIR $SYSROOT... | bash |
d_bash_21945 | ---
+++
@@ -19,9 +19,11 @@
# Grab a fixed portage snapshot instead of emerge-webrsync so we can ensure these script will work tomorrow.
echo "Downloading portage snaphshot..."
-wget -nv http://dev.gentoo.org/~swift/snapshots/portage-20150320.tar.bz2{,.gpgsig,.md5sum,.umd5sum}
+PORTAGE_DATE=20150320
+wget -nv http... | bash |
d_bash_21946 | ---
+++
@@ -1,3 +1,19 @@
#!/bin/sh
+PREVIOUS_LD=$LD_LIBRARY_PATH
+
+mkdir cmake-build && cd cmake-build
+
+cmake -DBUILD_SHARED_LIBS:BOOL=ON -DTHREADSAFE:BOOL=ON -DBUILD_CLAR:BOOL=OFF -DCMAKE_INSTALL_PREFIX=./libgit2-bin ../libgit2
+cmake --build . --target install
+
+LD_LIBRARY_PATH=$PWD/libgit2-bin/lib:$LD_LIBRA... | bash |
d_bash_21947 | ---
+++
@@ -12,10 +12,10 @@
# ../source/FirefoxExtention/data/core.js #
# Get the top level directory for this git repo
-GIT_ROOT=`git rev-parse --show-toplevel`
+GITROOT=`git rev-parse --show-toplevel`
# Diff all of the files to see if any are off
-diff $GIT_ROOT/source/Core/core.js $GIT_ROOT/source/ChromeE... | bash |
d_bash_21948 | ---
+++
@@ -13,8 +13,13 @@
# Find and delete autogen directories.
find ${top_path} -depth -type d -name "autogen" -exec rm -rf {} \;
+find ${top_path} -depth -type d -name "ip_autogen" -exec rm -rf {} \;
# Some autogen files are not in autogen folders.
+rm -rf ${top_path}/ip/ast/rtl/*
rm -rf ${top_path}/ip/se... | bash |
d_bash_21949 | ---
+++
@@ -37,8 +37,8 @@
cat <<"EOF"
-if [ -e "$GPHOME/etc/openssl.cnf" ]; then
- OPENSSL_CONF="$GPHOME/etc/openssl.cnf"
+if [ -e "${GPHOME}/etc/openssl.cnf" ]; then
+ OPENSSL_CONF="${GPHOME}/etc/openssl.cnf"
fi
export GPHOME | bash |
d_bash_21950 | ---
+++
@@ -1,10 +1,3 @@
-# Install git-crypt
-cd
-git clone https://github.com/AGWA/git-crypt.git
-cd git-crypt
-make
-sudo make install
-
# Unlock encrypted files
cd ~/refinebio/.circleci
openssl aes-256-cbc -md md5 -d -in exported.key.enc -out $KEY_FILENAME -k $OPENSSL_KEY | bash |
d_bash_21951 | ---
+++
@@ -27,7 +27,7 @@
rm -rf $DATADIR/regtest
# Run omnicored in regtest mode
-$BTCD -regtest -datadir=$DATADIR -omnialertallowsender=any -omniactivationallowsender=any -paytxfee=0.0001 -minrelaytxfee=0.00001 -limitancestorcount=750 -limitdescendantcount=750 > $LOGDIR/bitcoin.log &
+$BTCD -regtest -datadir=$D... | bash |
d_bash_21952 | ---
+++
@@ -12,6 +12,13 @@
grib_compare result.grib himan_VV-MS_2013012100.grib
+if [ $? -eq 0 ];then
+ echo vvms success!
+else
+ echo vvms failed
+ exit 1
+fi
+
python test.py result.grib himan_VV-MS_2013012100.grib
if [ $? -eq 0 ];then | bash |
d_bash_21953 | ---
+++
@@ -1,7 +1,6 @@
#!/bin/bash
# Run our parser on all the footprint files we found so far GitHub
set -eu
-set -o verbose
set -o pipefail
test_dir=dist/build
temp_dir=$test_dir/parse-tmp | bash |
d_bash_21954 | ---
+++
@@ -7,9 +7,9 @@
~/.coursier/coursier launch -q -P \
com.lihaoyi:ammonite_2.12.2:0.9.3 \
- is.cir:ciris-core_2.12:0.3.1 \
- is.cir:ciris-enumeratum_2.12:0.3.1 \
- is.cir:ciris-generic_2.12:0.3.1 \
- is.cir:ciris-refined_2.12:0.3.1 \
- is.cir:ciris-squants_2.12:0.3.1 \
+ is.cir:ciris-core_2.12:0.3.2... | bash |
d_bash_21955 | ---
+++
@@ -1,5 +1,8 @@
#!/bin/bash
set -e
+
+export WEPLAY_SAVE_INTERVAL=${SAVE_DELAY:-120000}
+
bad_selection() {
echo 'Bad GAME selection, please try another one!'
@@ -24,6 +27,4 @@
echo "Redis setting not found, can't start server." >&2 && exit 1
fi
-export WEPLAY_SAVE_INTERVAL=120000
-
forever... | bash |
d_bash_21956 | ---
+++
@@ -2,11 +2,12 @@
# prep environment for publish to sonatype staging if the HEAD commit is tagged
-headTag=$(git describe --exact-match ||:)
+# git on travis does not fetch tags, but we have TRAVIS_TAG
+# headTag=$(git describe --exact-match ||:)
-if [[ "$headTag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-... | bash |
d_bash_21957 | ---
+++
@@ -23,7 +23,7 @@
# Since this is just an illustration, we will use the test ESAPI.properties in
# $esapi_resources_test. That way, it won't matter if the user has neglected
# to run the 'setMasterKey.sh' example before running this one.
-java -Dlog4j.configuration="$log4j_properties" \
+java -Dlog4j.confi... | bash |
d_bash_21958 | ---
+++
@@ -5,8 +5,9 @@
sed -i "s/CACHE_DISK_SIZE/${CACHE_DISK_SIZE}/" /etc/nginx/sites-available/generic.conf
sed -i "s/CACHE_MAX_AGE/${CACHE_MAX_AGE}/" /etc/nginx/sites-available/generic.conf
-echo "Checking permissions..."
-chown -R ${WEBUSER}:${WEBUSER} /data/cache /data/info /data/logs
+echo "Checking per... | bash |
d_bash_21959 | ---
+++
@@ -4,6 +4,6 @@
spago build -u "-g corefn +RTS -N2 -RTS"
-zephyr -f Home.main Talk.main Search.main
+zephyr -f Home.main Talk.main Search.main +RTS -N2 -RTS
NODE_ENV=production webpack -p --progress | bash |
d_bash_21960 | ---
+++
@@ -7,5 +7,5 @@
curl -L -s https://freewebsitetemplates.com/download/$name/ > $tmpdir/zip.zip
unzip -q $tmpdir/zip.zip -d $tmpdir
loc=$(find "$tmpdir" -name 'index.html' | head -n1)
-python get_bench.py "file://$loc" --name freewebsitetemplates/"$name" "$@"
+xvfb-run -s '-screen 0 1920x10800x24' python get... | bash |
d_bash_21961 | ---
+++
@@ -1,11 +1,11 @@
#!/bin/bash
wrapper=`md5sum /defaults/plex_wrapper_transcoder | awk '{print $1}'`
-current=`md5sum /usr/lib/plexmediaserver/Resources/Plex\ New\ Transcoder | awk '{print $1}'`
+current=`md5sum /usr/lib/plexmediaserver/Resources/Plex\ Transcoder | awk '{print $1}'`
if [ "$wrapper" != "... | bash |
d_bash_21962 | ---
+++
@@ -29,7 +29,9 @@
find ${i} -type f -iregex '.*\.\(c\|cxx\|cpp\|h\|lpp\|ypp\|sh\|inl\|txt\)$' -or -iname Makefile >> ${PROJNAME}.files
done
-find /usr/include/SDL2 -iname "*.h" >> ${PROJNAME}.files
+if [ -d /usr/include/SDL2 ]; then
+ find /usr/include/SDL2 -iname "*.h" >> ${PROJNAME}.files
+fi
... | bash |
d_bash_21963 | ---
+++
@@ -5,6 +5,15 @@
DB=${DB:-dstack}
DRIVER=${DRIVER:-"$HOME/.m2/repository/mysql/mysql-connector-java/5.1.26/mysql-connector-java-5.1.26.jar"}
+if [ -e dump.xml ]; then
+ mv dump.xml dump-$(date '+%s').xml
+fi
+
$LIQUIBASE_HOME/liquibase --classpath="$DRIVER" --driver=com.mysql.jdbc.Driver --changeLogFi... | bash |
d_bash_21964 | ---
+++
@@ -21,18 +21,27 @@
echo "\nServer name '${serverName}' is not exists."
exit 1
fi
-VBoxManage list runningvms | grep '"'${serverName}'"' >/dev/null 2>&1
-if [ $? -eq 0 ]; then
- echo "\nServer name '${serverName}' is running."
- exit 0
-fi
serverStatus=`VBoxManage showvminfo ${serverName} | ... | bash |
d_bash_21965 | ---
+++
@@ -3,8 +3,8 @@
local files=($(find ${projectDir}bash-toolbox/${1//./\/} -type f -iname "*.sh"))
if [ ${#files[@]} -lt 3 ]; then
- echo -e "[ ERROR ] \033[0;31m"The package \"${1}\" is not large enough to import using package."\033[0m"
- echo -e "[ ERROR ] \033[0;31m"Please use \"include\" instead... | bash |
d_bash_21966 | ---
+++
@@ -25,24 +25,6 @@
yum-config-manager --enable zfs-testing
yum install -y zfs
-# Flocker python dependencies
-yum install -y \
- python-eliot \
- python-zope-interface \
- pytz \
- python-characteristic \
- python-twisted \
- PyYAML \
- python-treq \
- python-netifaces \
- python-ipaddr \
- python-nomencl... | bash |
d_bash_21967 | ---
+++
@@ -14,7 +14,7 @@
if [ "${last_committed_tag}" != "${last_released_tag}" ]; then
# Build using the latest tag.
- sed -i "s/source-tag:.*$/source-tag: '"$last_committed_tag"'/g" snapcraft.yaml
+ sed -i "0,/source-tag/s/source-tag:.*$/source-tag: '"$last_committed_tag"'/g" snapcraft.yaml
sed ... | bash |
d_bash_21968 | ---
+++
@@ -9,7 +9,7 @@
# Aliases
alias b='bundle'
alias be='b exec'
-alias bi='b install --path vendor'
+alias bi='b install --path vendor/bundle'
alias bl='b list'
alias bo='b open'
alias bp='b package' | bash |
d_bash_21969 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
set -o errexit
set -o pipefail | bash |
d_bash_21970 | ---
+++
@@ -1,9 +1,9 @@
#!/bin/bash
-sudo apt-get update
-sudo apt-get install -y libffi-dev gnupg2
+sudo apt-get -y update
+sudo apt-get -y install libffi-dev gnupg2
if [ -z "${TOXENV}" ]; then
- sudo apt-get install gpgsm libassuan-dev libgpg-error-dev swig
+ sudo apt-get -y install gpgsm libassuan-dev li... | bash |
d_bash_21971 | ---
+++
@@ -1,4 +1,4 @@
source $stdenv/setup
-mkdir -p $out/emacs/site-lisp
-cp $src $out/emacs/site-lisp/htmlize.el
+mkdir -p $out/share/emacs/site-lisp
+cp $src $out/share/emacs/site-lisp/htmlize.el | bash |
d_bash_21972 | ---
+++
@@ -5,14 +5,10 @@
$*
}
-# expecting a gh-pages symlink in a root directory
-#GH_PAGES_PATH=`readlink gh-pages`
-# ensure that git repository exists there
-#ec git -C $GH_PAGES_PATH status > /dev/null
-
ec mvn clean install
ec java -jar scala-string-format-test/target/benchmarks.jar -rf json -rff j... | bash |
d_bash_21973 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-REPO="git@github.com:zolweb/machine-setups.git"
+REPO="https://github.com/zolweb/machine-setups.git"
REPO_TMP="/tmp/zol-machine-setup"
# REPO_TMP=`dirname $0`
| bash |
d_bash_21974 | ---
+++
@@ -24,9 +24,9 @@
# List directory contents
alias lsa='ls -lah'
-alias l='ls -la'
-alias ll='ls -l'
-alias la='ls -lA'
+alias l='ls -lah'
+alias ll='ls -lh'
+alias la='ls -lAh'
# Push and pop directories on directory stack
alias pu='pushd' | bash |
d_bash_21975 | ---
+++
@@ -1,10 +1,11 @@
#!/bin/bash
+set -ex
-(
- export RUST_BACKTRACE=1;
- cargo test --features test --all &&
- cargo check --benches --features test &&
- cargo check --all --no-default-features &&
- echo "TRAVIS_RUST_VERSION=$TRAVIS_RUST_VERSION" &&
- ([ "$TRAVIS_RUST_VERSION" != "nightly" ] || cargo t... | bash |
d_bash_21976 | ---
+++
@@ -5,10 +5,7 @@
version=$(cat version/version)
pushd shim
- GOOS=linux go build -ldflags="-s -w" -o ../detect shims/cmd/detect/main.go
- GOOS=linux go build -ldflags="-s -w" -o ../supply shims/cmd/supply/main.go
- GOOS=linux go build -ldflags="-s -w" -o ../finalize shims/cmd/finalize/main.go
- ... | bash |
d_bash_21977 | ---
+++
@@ -1,9 +1,11 @@
#!/usr/bin/env bash
+rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
yum install -y httpd
yum install -y mysql-server
yum install -y php
yum install -y epel-release
+rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
yum install -y phpMyAdmin
ln -s /mnt/fuelphp /home/vagrant/fuelphp... | bash |
d_bash_21978 | ---
+++
@@ -24,4 +24,6 @@
export LC_CTYPE=$LANG
export LC_ALL=en_US.UTF-8
export EDITOR=vim
-export PATH=$LOCALDIR/bin:$LOCALDIR/go/bin:$HOME/go/bin:$PATH
+export NASHROOT=$HOME/nashroot
+export NASHPATH=$HOME/nash
+export PATH=$LOCALDIR/bin:$LOCALDIR/go/bin:$HOME/go/bin:$NASHROOT/bin:$NASHPATH:/bin:$PATH | bash |
d_bash_21979 | ---
+++
@@ -1,5 +1,7 @@
#!/bin/bash
set -e
+
+sudo chmod 777 /tmp
[[ ! -d /var/lib/mysql ]] && mysql_install_db
| bash |
d_bash_21980 | ---
+++
@@ -3,7 +3,7 @@
set -e
echo "[setup] Checking the login shell."
-if finger "$USER" | grep -q 'Shell: /.*/zsh'; then
+if finger "$USER" | grep 'Shell: /.*/zsh'; then
echo "[setup] The login shell appears to already be zsh."
else
if ! hash finger 2>/dev/null; then | bash |
d_bash_21981 | ---
+++
@@ -2,7 +2,7 @@
CFLAGS+=" -Wno-builtin-macro-redefined"
CXXFLAGS+=" -Wno-builtin-macro-redefined"
for i in "DATE,%b\x20%d\x20%Y" "TIME,%H:%M:%S" "DATETIME,%b\x20%d\x20%Y\x20%H:%M:%S"; do
- CFLAGS+=" -U__${i%%,*}__ -D__${i%%,*}__=\\\\\\\"$(LC_ALL=C date --date "$XBPS_COMMIT_TIMESTAMP" +"${i#*,}")\\\\\\\... | bash |
d_bash_21982 | ---
+++
@@ -24,16 +24,9 @@
# update Atom packages
apm upgrade -c false
-# keep the latest copy of Python, MySQL docs available locally
+# keep the latest copy of MySQL docs available locally
DOCS_HOME="$HOME/Documents"
cd "$DOCS_HOME"
-
-PYTHON3_VERSION=$(python3 -V | sed s/Python\ //)
-PYTHON_DOWNLOAD="python-... | bash |
d_bash_21983 | ---
+++
@@ -9,7 +9,7 @@
# corresponding tests on these versions.
goversion=$(go version)
if [[ "$goversion" == *"go1.4"* ]] ||
- [[ "$goversion" == *"go1.7"* ]]; then
+ [[ "$goversion" == *"go1.5"* ]]; then
echo "Skipping tests requiring Consul which is not supported on $goversion"
| bash |
d_bash_21984 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-docker build -t addiscent/phpfpm:0.0.1 .
+docker build -t raddiscentis/php-fpm:0.0.1 . | bash |
d_bash_21985 | ---
+++
@@ -19,9 +19,14 @@
inkscape \
vlc \
texlive-most texlive-lang texmaker \
-brasero
+brasero \
+virtualbox
-
+# Add kernel module
+echo "Please enter your username to be able to use VirtualBox"
+read USERNAME
+sudo sh -c 'echo "vboxdrv" > /etc/modules-load.d/virtualbox.conf'
+sudo gpasswd -a ${USERNAME} vb... | bash |
d_bash_21986 | ---
+++
@@ -3,6 +3,7 @@
apt-get -y update
apt-get -y install salt-minion
sed -i 's/#master: salt/master: salt-master.netsensia.com/g' /etc/salt/minion
+sed -i 's/#id:/id: directorzone_vagrant/g' /etc/salt/minion
| bash |
d_bash_21987 | ---
+++
@@ -13,7 +13,7 @@
#-------------------------------------------------------------------------------
rm -rf build
mkdir build && cd build
-sphinx-build-3 -q -b html "${PWD}/sphinx" "${PWD}/build/html/")
+sphinx-build-3 -q -b html "${PWD}/sphinx" "${PWD}/build/html/"
cmake -DENABLE_HTML_DOCS=TRUE ..
make ... | bash |
d_bash_21988 | ---
+++
@@ -2,4 +2,9 @@
wallpapers_dir=$HOME/Pictures/Wallpapers
wallpaper="$(ls $wallpapers_dir/* | shuf -n1)"
+if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] ; then
+ TMP=~/.dbus/session-bus
+ export $(grep -h DBUS_SESSION_BUS_ADDRESS= $TMP/$(ls -1t $TMP | head -n 1))
+fi
+
gsettings set org.gnome.desktop.background ... | bash |
d_bash_21989 | ---
+++
@@ -1,6 +1,8 @@
# Install zip and start a virtual frame buffer.
if [ "$DRONE" = "true" ]; then
sudo apt-get -y -q install zip
+ curl -O https://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb
+ sudo dpkg -i google-chrome-unstable_current_amd64.deb
sudo start xvfb
export HAS_DA... | bash |
d_bash_21990 | ---
+++
@@ -3,4 +3,4 @@
cd /home/datamade/chi-councilmatic
/home/datamade/.virtualenvs/chi-councilmatic/bin/python manage.py loaddata >> /tmp/chicago-loaddata.log 2>&1
/home/datamade/.virtualenvs/chi-councilmatic/bin/python manage.py fixdata >> /tmp/chicago-loaddata.log 2>&1
-/home/datamade/.virtualenvs/chi-cou... | bash |
d_bash_21991 | ---
+++
@@ -4,7 +4,7 @@
# URL of LXD image with pre-provisioned Media Cloud dependencies
# (use ./.travis-lxd/setup_travis_lxd_image.sh) to create a new one)
-MC_LXD_IMAGE_PROVISIONED_URL=https://s3.amazonaws.com/mediacloud-travis-lxd-images/travis-lxd-images/mediacloud-travis-20181219.tar.gz
+MC_LXD_IMAGE_PROVIS... | bash |
d_bash_21992 | ---
+++
@@ -15,9 +15,11 @@
fi
if [[ "$WATIR_WEBDRIVER_BROWSER" = "phantomjs" ]]; then
- curl -L -O "http://phantomjs.googlecode.com/files/phantomjs-1.8.1-linux-i686.tar.bz2"
- bzip2 -cd phantomjs-1.8.1-linux-i686.tar.bz2 | tar xvf -
- chmod +x phantomjs-1.8.1-linux-i686/bin/phantomjs
- sudo cp phantomjs-1.8.1... | bash |
d_bash_21993 | ---
+++
@@ -4,7 +4,7 @@
source ~/.fresh/build/shell.sh
-if [ $SHELL = "/bin/zsh" ]; then
+if [[ "$SHELL" =~ zsh$ ]]; then
source $DOTFILES/zsh/config.sh
fi
| bash |
d_bash_21994 | ---
+++
@@ -21,6 +21,11 @@
/validate-release-notes "$file_path"
+if [ $? -eq 78 ]; then
+ echo "Success: Valid release notes section intentionally containing no release notes"
+ exit 0
+fi
+
title=$(jq --raw-output .pull_request.title "$GITHUB_EVENT_PATH")
detail_url=$(jq --raw-output .pull_request.html_url ... | bash |
d_bash_21995 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-sed -i 's/127.0.0.1/0.0.0.0/g' /usr/src/app/web/vue/UIconfig.js
-sed -i 's/localhost/'${HOST}'/g' /usr/src/app/web/vue/UIconfig.js
-sed -i 's/3000/'${PORT}'/g' /usr/src/app/web/vue/UIconfig.js
+sed -i 's/127.0.0.1/0.0.0.0/g' /usr/src/app/web/vue/public/UIconfig.js
+sed -i 's/lo... | bash |
d_bash_21996 | ---
+++
@@ -9,24 +9,24 @@
systemctl start postgresql-9.5
systemctl enable postgresql-9.5
-su - postgres -c "/usr/pgsql-9.5/bin/createdb -EUTF8 nodeconductor"
-su - postgres -c "/usr/pgsql-9.5/bin/createuser nodeconductor"
+su - postgres -c "/usr/pgsql-9.5/bin/createdb -EUTF8 waldur"
+su - postgres -c "/usr/pgsql-... | bash |
d_bash_21997 | ---
+++
@@ -15,7 +15,7 @@
cmake -DCMAKE_TOOLCHAIN_FILE=DevkitArm3DS.cmake ..
make
cd ..
-citra $1 &> /dev/null || true
+citra $1 || true
# Make the log file visible to TravisCI
cat "$TEST_LOG_FILE" | bash |
d_bash_21998 | ---
+++
@@ -2,7 +2,7 @@
for IN_FILE in *.fastq; do
- fastq_to_fastq -i ${IN_FILE} -o ${IN_FILE//fastq/fna}
+ fastq_to_fasta -i ${IN_FILE} -o ${IN_FILE//fastq/fna}
for i in ${k[@]}; do
# Make the directory to store down-sampling results | bash |
d_bash_21999 | ---
+++
@@ -17,4 +17,5 @@
)
rm -rf deploy/roles
cp -r /tmp/my_serfnode/deploy/roles deploy/
+ cp /tmp/my_serfnode/deploy/deploy.sh deploy/
fi | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.