document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_17900 | ---
+++
@@ -1,3 +1,5 @@
+#!/bin/bash
+
exit_script() {
if [[ -z ${KEEP} ]] ; then
docker ps -a | awk '{ print $1,$2 }' | grep $CONTAINER | awk '{print $1 }' | xargs -I {} docker rm -f {} | bash |
d_bash_17901 | ---
+++
@@ -7,7 +7,7 @@
# - wget
name="pyp"
-version=""
+version="2.13-beta"
target_dir=$ROOT
package=$name-$version
@@ -15,9 +15,12 @@
tmp_dir=$(mktemp -d) && cd $tmp_dir && echo $tmp_dir
-wget -O $name 'https://docs.google.com/uc?authuser=0&id=0B3RW1AtsOguXNFdjQU1RT000Zzg&export=download... | bash |
d_bash_17902 | ---
+++
@@ -15,5 +15,5 @@
for (( COUNTER=$START; COUNTER<=$END; COUNTER+=$INCREMENT ))
do
- $SIEGECMD -f urls.txt -c$COUNTER -i -t$SIEGETIMEM > c$COUNTER.txt
+ $SIEGECMD -f urls.txt -c$COUNTER -i -t$SIEGETIME > c$COUNTER.txt
done | bash |
d_bash_17903 | ---
+++
@@ -3,6 +3,3 @@
BREW_PREFIX=$(brew --prefix)
eval $($BREW_PREFIX/bin/brew shellenv)
-
-export MANPATH="$BREWPATH//share/man:$MANPATH"
-export INFOPATH="$BREWPATH/share/info:$INFOPATH" | bash |
d_bash_17904 | ---
+++
@@ -13,7 +13,6 @@
OS="windows"
elif [ "$OS" == "linux" ]; then
ARCH=`uname -m`
- echo $ARCH
if [ "$ARCH" == "i386" -o "$ARCH" == "i686" ] ; then
OS="linux"
elif [ "$ARCH" == "x86_64" ] ; then | bash |
d_bash_17905 | ---
+++
@@ -13,8 +13,8 @@
exit 1
fi
-TIME=$(date '+%F %T %z')
-
+DESC=""
+LAST_COMMIT_DATE=""
if [ -e "$(which git)" -a -d ".git" ]; then
# clean 'dirty' status of touched files that haven't been modified
git diff >/dev/null 2>/dev/null
@@ -23,7 +23,7 @@
DESC="$(git describe --dirty 2>/dev/nu... | bash |
d_bash_17906 | ---
+++
@@ -22,4 +22,6 @@
export GPG_TTY=$(tty)
# Start using Sekey
-export SSH_AUTH_SOCK=$HOME/.sekey/ssh-agent.ssh
+if [[ -f $HOME/.sekey/ssh-agent.ssh ]]; then
+ export SSH_AUTH_SOCK=$HOME/.sekey/ssh-agent.ssh
+fi | bash |
d_bash_17907 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
-version="20.10.7"
+version="20.10.8"
echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz"; | bash |
d_bash_17908 | ---
+++
@@ -21,14 +21,14 @@
mkdir -p ./pkg/dist
for FILENAME in $(find ./pkg -mindepth 1 -maxdepth 1 -type f); do
FILENAME=$(basename $FILENAME)
- cp ./pkg/${FILENAME} ./pkg/dist/consul_template_${VERSION}_${FILENAME}
+ cp ./pkg/${FILENAME} ./pkg/dist/consul-template_${VERSION}_${FILENAME}
done
# Mak... | bash |
d_bash_17909 | ---
+++
@@ -1,8 +1,16 @@
-#!/bin/bash -ex
+#!/bin/bash -eux
./rstcheck.py good.rst
./rstcheck.py unknown.rst
-! ./rstcheck.py bad_cpp.rst
-! ./rstcheck.py bad_python.rst
+
+if ./rstcheck.py bad_cpp.rst
+then
+ exit 1
+fi
+
+if ./rstcheck.py bad_python.rst
+then
+ exit 1
+fi
echo -e '\x1b[01;32mOkay\x1b[0... | bash |
d_bash_17910 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-sudo pip install pysolr
+sudo pip install pysolr[tomcat]==3.0.6
sudo pip install dateutils
-
+sudo pip install --upgrade lxml | bash |
d_bash_17911 | ---
+++
@@ -12,7 +12,7 @@
local expected=$2
result=$(mktemp /tmp/test_merge.XXXXXX)
fail=0
- $cmd > $result
+ $cmd --output $result
if ! cmp $result $expected ; then
diff -u $expected $result || :
echo FAIL - $cmd result does not match expected | bash |
d_bash_17912 | ---
+++
@@ -1,2 +1,2 @@
export PYENV_ROOT="$HOME/.pyenv"
-export PATH="$PYENV_ROOT/bin:$PATH"
+export PATH="$PYENV_ROOT/bin:$HOME/.local/bin:$PATH" | bash |
d_bash_17913 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-for i in `go list -f '{{.Deps}}' | tr "[" " " | tr "]" " " | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' |grep "\."`; do echo $i; done
+for i in `go list -f '{{.Deps}}' | tr "[" " " | tr "]" " " | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' |g... | bash |
d_bash_17914 | ---
+++
@@ -18,7 +18,7 @@
set -e # Terminate script if anything exits with a non-zero value
set -u # Prevent unset variables
-files="gemrc gitconfig gitignore_global hushlogin npmrc pryrc tmux.conf vimrc zshrc"
+files="gemrc gitconfig gitignore_global gitmessage hushlogin npmrc pryrc tmux.conf vimrc zshrc"
DOTFI... | bash |
d_bash_17915 | ---
+++
@@ -6,5 +6,9 @@
ssh pycon pg_dump -Fc '"$(cat dsn)"' |
vagrant ssh -- pg_restore -d template1 --create --clean
-echo 'alter database "pycon-prod" rename to pycon;' |
- vagrant ssh -- psql template1
+vagrant ssh -- psql template1 <<EOF
+
+drop database "pycon";
+alter database "pycon-prod" rename to... | bash |
d_bash_17916 | ---
+++
@@ -31,7 +31,7 @@
case "${COMMAND}" in
test)
wait_on_depends
- php vendor/bin/phpunit --filter ArgumentsTest
+ php vendor/bin/phpunit
;;
install) | bash |
d_bash_17917 | ---
+++
@@ -37,9 +37,7 @@
sudo rm -rf dist/*
# Build ALL the rpms
-# Use twice the number of cores for jobs
-NUM_JOBS=$((`nproc` * 2))
-make -j $NUM_JOBS -s all rpms 2>&1
+make -s all rpms 2>&1
# Copy the result into DIST_DIR
cp dist/rpms/freeipa* $DIST_DIR/ | bash |
d_bash_17918 | ---
+++
@@ -11,8 +11,8 @@
echo "Checking test coverage ..."
tools/test_coverage.sh $testdir/*.csv
+echo "Testing CSV files from $testdir ..."
+tools/test_mappings.pl $@ $testdir/*.csv
+
echo "Testing static assets ..."
tools/test_static_assets.sh
-
-echo "Testing CSV files from $testdir ..."
-tools/test_mapping... | bash |
d_bash_17919 | ---
+++
@@ -1,6 +1,6 @@
RT_JAR=/usr/lib/jvm/java-8-openjdk/jre/lib/rt.jar
INCLUDES_DIR=../
-BUKKIT_TARGET=bukkit-1.7.9B1938.jar
+BUKKIT_TARGET=bukkit-1.8.8B1.jar
DST_DIR=../Server/plugins
javac -Xlint:all -bootclasspath "$RT_JAR:$INCLUDES_DIR/$BUKKIT_TARGET" -d ./ src/* | bash |
d_bash_17920 | ---
+++
@@ -4,9 +4,9 @@
# Allow to plot symbols in java GUI
#========================================
-export JAR_DIR=${DEVBASE}/external
-export JSYN_DIR=${JAR_DIR}/jSynoptic
-export EXEC_DIR=${DEVBASE}/exec/DEV/java/classes
+JAR_DIR=${DEVBASE}/external
+JSYN_DIR=${JAR_DIR}/jSynoptic
+EXEC_DIR=${DEVBASE}/exec/DE... | bash |
d_bash_17921 | ---
+++
@@ -1,12 +1,9 @@
#!/bin/bash
-
-# the idea
-# * listar todos os diretorios que tenham um `Makefile`
-# cd para esse cara
-# rodar o clean
-# voltar para onde estava
for i in $(find -name Makefile);
do
- echo "$i"
+ echo "$(pwd)" "-> " "$(dirname $i)"
+ cd `dirname $i`
+ make clean
+ cd -
done | bash |
d_bash_17922 | ---
+++
@@ -4,9 +4,6 @@
VENV=$WORKSPACE/venv
echo "Starting build..."
-
-# Update submodules
-git submodule update --init
# Make sure there's no old pyc files around.
find . -name '*.pyc' | xargs rm | bash |
d_bash_17923 | ---
+++
@@ -3,11 +3,11 @@
set -u
# checksums
-sashimi_md5="86e5924ecf8ce1272635ff43b244b32e"
-sashimi_anno_md5="216c07785889074f69cb94cc2af7cb00"
+sashimi_md5="d11062f49b37fc2f54faa36382a5380f"
+sashimi_anno_md5="98c11963d87e1361717c304f8a078c5e"
pdfmd5() {
- grep -avE 'CreationDate|ModDate' $1 | md5sum | a... | bash |
d_bash_17924 | ---
+++
@@ -9,11 +9,16 @@
# Extraction of similarity search report
extract_similarity_search_report_dir=$tool_dir/extract/extract_similarity_search_report
-sudo docker build -t asaim/extract-similarity-search-report $extract_similarity_search_report_dir
cp $extract_similarity_search_report_dir/extract_similarity... | bash |
d_bash_17925 | ---
+++
@@ -9,9 +9,9 @@
a=${(V)1//\%/\%\%}
a=$(print -n "%20>...>$a" | tr -d "\n")
if [[ -n "$TMUX" ]]; then
- print -Pn "\ek$a:$2\e\\"
+ print -n "\ek${(%)a}:${(%)2}\e\\"
elif [[ "$TERM" =~ "xterm*" ]]; then
- print -Pn "\e]0;$a:$2\a"
+ print -n "\e]0;${(%)a}:${(%)2}\a"
fi
}
| bash |
d_bash_17926 | ---
+++
@@ -2,28 +2,29 @@
set -euf
IFS=''
+PATH='/usr/bin:/bin'
-printf "\nTHIS SCRIPT DOES NOT REQUIRE ROOT PRIVILEGES. ABORT IF IT ASKS FOR THEM.\n\n"
+printf -- "\nTHIS SCRIPT DOES NOT REQUIRE ROOT PRIVILEGES. ABORT IF IT ASKS FOR THEM.\n\n"
# set path variables
SCRIPTDIR="${HOME}/git/dotfiles"
DOTFILED... | bash |
d_bash_17927 | ---
+++
@@ -1,8 +1,14 @@
#!/bin/sh
set -e
-set -x
+
+cleanup()
+{
+ mvn build-helper:remove-project-artifact
+}
+trap cleanup 0 INT TERM QUIT
export CI=true
+set -x
mvn -U deploy
mvn sonar:sonar | bash |
d_bash_17928 | ---
+++
@@ -14,9 +14,7 @@
sed -i.bak "s/org\.label-schema\.version=\"[0-9.]*\"/org.label-schema.version=\"${new_version}\"/; s/awscli==[0-9.]* /awscli==${new_version} /" Dockerfile
rm Dockerfile.bak
-docker build --build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
- --build-arg VCS_REF=$(git rev... | bash |
d_bash_17929 | ---
+++
@@ -23,7 +23,7 @@
fi
done
else
- echo_warning "puppet command not found"
+ echo_warning "puppet-lint command not found"
fi
exit $global_exit | bash |
d_bash_17930 | ---
+++
@@ -17,7 +17,7 @@
docker run -d \
--name rais \
-e PORT=12415 \
- -e TILESIZES=512 \
+ -e TILESIZES=512,1024 \
-e IIIFURL="http://localhost:12415/iiif" \
-p 12415:12415 \
-v $(pwd)/testfile:/var/local/images \ | bash |
d_bash_17931 | ---
+++
@@ -17,5 +17,11 @@
echo Test FAILED.
exit 1
fi
+ ./test-opt.out >> test-result.txt
+ if [ $? -ne 0 ];
+ then cat test-result.txt
+ echo Test FAILED.
+ exit 1
+ fi
done
echo " Passed" | bash |
d_bash_17932 | ---
+++
@@ -8,12 +8,15 @@
cd build
cmake ..
make
-ls -R .
cd ../..
mkdir build
cd build
-cmake .. -DCMAKE_MODULE_PATH=/usr/local/opt/sfml/share/SFML/cmake/Modules
+cmake .. \
+ -DCMAKE_MODULE_PATH=/usr/local/opt/sfml/share/SFML/cmake/Modules \
+ -DGTEST_LIBRARY=../googletest/build/googlemock/gtest/libgtest.a ... | bash |
d_bash_17933 | ---
+++
@@ -1,12 +1,23 @@
#!/bin/bash
-echo "Compiling shaders"
+# Usage: sh build_shaders.sh [SHADERS_DIR]
+
+#echo "Compiling shaders"
VULKAN_COMPILER=$VULKAN_SDK/bin/glslc
-$VULKAN_COMPILER $1.vert -o $1.vert.spv
-$VULKAN_COMPILER $1.frag -o $1.frag.spv
-echo "Encoding resources"
-CRIMILD_RESOURCE_ENCODER=../.... | bash |
d_bash_17934 | ---
+++
@@ -5,6 +5,12 @@
# check that we are in the expected directory
cd `dirname $0`/..
+
+
+# Some env variables used during development seem to make things break - set
+# them back to the defaults which is what they would have on the servers.
+PYTHONDONTWRITEBYTECODE=""
+
# create the virtual environment, ... | bash |
d_bash_17935 | ---
+++
@@ -5,15 +5,22 @@
START=`date -v-1d +%m/%d/%Y`
TODAY=`date +%m/%d/%Y`
-#curl -f -s "https://searchwww.sec.gov/EDGARFSClient/jsp/EDGAR_MainAccess.jsp?search_text=cyber%20malicious%20intrusion%20virus&sort=Date&formType=Form10K&isAdv=true&stemming=false&numResults=100&fromDate=$START&toDate=$TODAY&numResult... | bash |
d_bash_17936 | ---
+++
@@ -6,9 +6,6 @@
log_group_begin "Check: make requirements"
trap log_group_end EXIT
-
-log_fail "Developer-induced failure"
-exit 1
make requirements
git --no-pager diff | bash |
d_bash_17937 | ---
+++
@@ -13,8 +13,8 @@
${FREECIV_WEB_DIR}/resin/bin/resin.sh stop
#3. publite2
+ps aux | grep -ie publite2 | awk '{print $2}' | xargs kill -9
killall -9 freeciv-web
-ps aux | grep -ie publite2 | awk '{print $2}' | xargs kill -9
#4. freeciv-proxy | bash |
d_bash_17938 | ---
+++
@@ -1,4 +1,4 @@
-version = $1
+version=$1
# Prepare puppetlabs repo
echo "packer ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/packer | bash |
d_bash_17939 | ---
+++
@@ -14,8 +14,8 @@
rm -f /tmp/dd_stats.csv
rm -f /tmp/dd_stats.unittest.csv
-#/sbin/setuser app php vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml tests/AppBundle/Controller/
-#/sbin/setuser app php vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml tests/AppBundle/Controller-Report/
-#/sbin/setuser ... | bash |
d_bash_17940 | ---
+++
@@ -27,7 +27,7 @@
rm -rf $DATADIR/regtest
# Run omnicored in regtest mode
-$BTCD -regtest -datadir=$DATADIR > $LOGDIR/bitcoin.log &
+$BTCD -regtest -datadir=$DATADIR -omnialertallowsender=any -omniactivationallowsender=any > $LOGDIR/bitcoin.log &
BTCSTATUS=$?
BTCPID=$!
| bash |
d_bash_17941 | ---
+++
@@ -36,4 +36,4 @@
$MAKE_BINARY
mkdir -p bin
-cp src/webkit_server bin/
+mv src/webkit_server bin/ | bash |
d_bash_17942 | ---
+++
@@ -1,25 +1,49 @@
pkg_name=python
pkg_version=3.5.2
pkg_origin=core
-pkg_license=('python')
+pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
+pkg_license=('Python-2.0')
+pkg_description="Python is a programming language that lets you work quickly
+and integrate systems more effectively."
pkg_... | bash |
d_bash_17943 | ---
+++
@@ -9,8 +9,6 @@
export ACLOCAL
fi
-autoreconf -i -f
-
for dir in $GETTEXT_DIR /usr/share/gettext; do
if test -f $dir/config.rpath; then
/bin/cp -f $dir/config.rpath .
@@ -18,3 +16,4 @@
fi
done
+autoreconf -i -f | bash |
d_bash_17944 | ---
+++
@@ -1,10 +1,19 @@
# --add-host=db:172.17.0.2
#get postgres ip
id=$(docker ps -q -f ancestor=postgres)
+id2=$(docker ps -q -f ancestor=django_web)
if [ -z "$id" ]
then
echo "[!] Error: Start the postgres image before running django! Try: docker run -d postgres"
exit 1
fi
-docker run... | bash |
d_bash_17945 | ---
+++
@@ -25,4 +25,4 @@
fi
-# make test-ci
+make test | bash |
d_bash_17946 | ---
+++
@@ -8,9 +8,9 @@
/bin/echo -n .
$cli set remap.engelbart_delete 1
/bin/echo -n .
+$cli set remap.move_mouse_cursor_center_fn_alone 1
+/bin/echo -n .
$cli set option.vimode_fn_hjkl 1
-/bin/echo -n .
-$cli set remap.move_mouse_cursor_center_fn_alone 1
/bin/echo -n .
$cli set remap.engelbart_control 1
/bin... | bash |
d_bash_17947 | ---
+++
@@ -18,7 +18,7 @@
apt-get clean
# Install bosh-cli
-wget https://s3.amazonaws.com/bosh-init-artifacts/bosh-cli-0.0.147-linux-amd64 -O /bin/bosh-cli
+wget https://s3.amazonaws.com/bosh-cli-artifacts/bosh-cli-0.0.147-linux-amd64 -O /bin/bosh-cli
echo "533342d7663c3e5dc731769e157608c74dd9eccb /bin/bosh-cli... | bash |
d_bash_17948 | ---
+++
@@ -24,7 +24,6 @@
# Dotfiles to symlink
dotfiles=(
- ".atom"
".bashrc"
".bash_aliases"
".vimrc"
@@ -38,6 +37,9 @@
ln -sfv "$DOTFILES_DIR/dotfiles/$dotfile" ~
done
+# Atom editor config.cson symlink
+ln -sfv "$DOTFILES_DIR/dotfiles/.atom/config.cson" ~/.atom
+
# More symlinks
sudo ln -s... | bash |
d_bash_17949 | ---
+++
@@ -1,11 +1,18 @@
#!/bin/bash
-HOST=andros.zoo.ox.ac.uk:8080
+HOST=http://andros.zoo.ox.ac.uk:8080 # Service endpoint URI
+
+# Retrieve service description and extract template
+
+echo "==== Retrieve URI template for evaluate checklist ===="
+TEMPLATE=`curl -H "accept: text/turtle" $HOST/ | sed -n 's/^.*r... | bash |
d_bash_17950 | ---
+++
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-git clone "git://github.com/andsens/homeshick.git" "$HOME/.homesick/repos/homeshick"
+git clone --recursive "git://github.com/andsens/homeshick.git" "$HOME/.homesick/repos/homeshick"
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
homeshick clone basicdays/dotfile... | bash |
d_bash_17951 | ---
+++
@@ -23,7 +23,7 @@
prospector --profile=../.prospector.yml --path=. --ignore-patterns=static
# run semgrep
-semgrep --strict --error --config ../.semgrep_rules.yml .
+semgrep --timeout 60 --strict --error --config ../.semgrep_rules.yml .
# back to root of the project
cd .. | bash |
d_bash_17952 | ---
+++
@@ -9,7 +9,7 @@
e_header "Updating tpm (tmux plugin manager)"
cd "$tmux_plugins" || \
(e_error "Unable to cd into $tmux_plugins. Possibly check permissions." && exit 1)
- git pull --depth 1
+ git fetch origin master --depth 1 && git checkout -B master origin/master
"$tmux_plugins/bin/clean_plu... | bash |
d_bash_17953 | ---
+++
@@ -4,7 +4,7 @@
dotfiles_encrypt() {
local file="$1"
- local pass="$(openssl rand 200)"
+ local pass="$(openssl rand -base64 170)"
openssl aes-256-cbc -in $file -out $file.enc -pass pass:"$pass"
echo "$pass" | openssl rsautl -encrypt -pubin -inkey <(ssh-keygen -e -f ~/.ssh/id_rsa.pub -m PKCS8) -out $... | bash |
d_bash_17954 | ---
+++
@@ -1,6 +1,8 @@
#!/bin/sh
+echo "Node version: "
node -v
+echo "-----"
case "$PLATFORM" in
"clj") | bash |
d_bash_17955 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
- export PYENV_VERSION_STRING='Python ${PYENV_VERSION}'
+ export PYENV_VERSION_STRING="Python ${PYENV_VERSION}"
wget https://github.com/praekeltfoundation/travis-pyenv/releases/download/0.3.0/setup-pyenv.sh
source setup-py... | bash |
d_bash_17956 | ---
+++
@@ -22,33 +22,28 @@
PRINTMODE="2D"
while getopts “:hp:sx:” OPTION
do
- case $OPTION in
- h)
- usage
- exit 1
- ;;
- p)
- PRINTMODE=$OPTARG
- ;;
- s)
- INTRO="NO"
- ;;
- x)
- $... | bash |
d_bash_17957 | ---
+++
@@ -14,4 +14,5 @@
#
# Bundler
-alias b="bundle"
+alias b='bundle'
+alias be='bundle exec' | bash |
d_bash_17958 | ---
+++
@@ -8,8 +8,10 @@
# zephyr-env_install.bash in your home directory. It will be automatically
# run (if it exists) by this script.
+uname | grep -q MINGW && MINGW_OPT="-W"
+
# identify OS source tree root directory
-export ZEPHYR_BASE=$( builtin cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+export ZEPHYR... | bash |
d_bash_17959 | ---
+++
@@ -1,8 +1,7 @@
#!/bin/sh
-fetch --nohooks chromium
+fetch chromium
cd src;
gclient runhooks
-gclient sync
git apply $1
gn gen out/Default
ninja -C out/Default content_shell | bash |
d_bash_17960 | ---
+++
@@ -11,4 +11,16 @@
#Source params file
. ${params}
-#Create master
+#Create working directory for consensus CNVs
+mkdir ${WRKDIR}/consensusCNV
+
+#Create master file of all CNV intervals
+while read ID bam sex; do
+ fgrep Valid ${WRKDIR}/classifier/clusterfix/newCoords/deletion.events.reclassified.bedpe... | bash |
d_bash_17961 | ---
+++
@@ -13,7 +13,7 @@
BASH_CONFIG_DIR=~/.local/etc/bashrc.d
[[ ! -d $BASH_CONFIG_DIR ]] && return
- for filename in {exports,aliases,functions,prompt}; do
+ for filename in {exports,aliases,functions,completion,prompt}; do
BASH_CONFIG_FILE=${BASH_CONFIG_DIR}/${filename}
[[ -r $... | bash |
d_bash_17962 | ---
+++
@@ -17,4 +17,4 @@
fi
${MVN_BIN} -version
-exec ${MVN_BIN} -P ${JPAPROVIDER},${RDBMS} install -DskipTests
+exec ${MVN_BIN} -P ${JPAPROVIDER},${RDBMS} -X install | bash |
d_bash_17963 | ---
+++
@@ -11,7 +11,7 @@
export PATH="$LLVMVM_ROOT/bin:$path_without_llvmvm"
export LLVMVM_PATH_BACKUP="$PATH"
- llvmvm_get_path_for_id "$@"
+ llvmvm_get_path_for_name "$1"
local path="$result/ins/bin"
export PATH="$path:$PATH" | bash |
d_bash_17964 | ---
+++
@@ -5,7 +5,7 @@
DCL OUT[0], POSITION
DCL OUT[1], COLOR
-XPD OUT[0], IN[0], IN[1]
-MOV OUT[1], IN[1]
+MOV OUT[0], IN[0]
+XPD OUT[1], IN[0], IN[1]
END | bash |
d_bash_17965 | ---
+++
@@ -32,10 +32,11 @@
else
share="${share/#$HOME/~}"
fi
-init="$share/init.${SHELL##*/}"
+shell="$(basename $SHELL)"
+init="$share/init.$shell"
echo "
BP4O Installed!
-Add the following to your .${SHELL##*/}rc file to setup BP4O:
+Add the following to your .${shell}rc file to setup BP4O:
[ -f $init ... | bash |
d_bash_17966 | ---
+++
@@ -1,7 +1,13 @@
#!/usr/bin/env bash
echo "========== Initialize micurs.com ==============="
-function gulp_install {
+echo "= HOSTS UPDATE"
+
+cat <<END >>.node_modules
+/micurs.com/site/public/components
+END
+
+function node_install {
echo " - Node install: $1"
npm install $1 --save-dev --no... | bash |
d_bash_17967 | ---
+++
@@ -6,7 +6,7 @@
echo "Iojs Version ${IOJS_VERSION}"
echo '#######'
-if [[ $IOJS_VERSION ]] && [[ ! -d "$HOME/.node-gyp/$IOJS_VERSION" ]]; then
+if [[ "${IOJS_VERSION}" ]] && [[ ! -e "$HOME/.node-gyp/${IOJS_VERSION}/common.gypi" ]]; then
echo "Going to install iojs development file"
npm install p... | bash |
d_bash_17968 | ---
+++
@@ -6,13 +6,15 @@
REL=2.0.0
DIR="pfstools-${REL}"
+DEST="${DIR}.tgz"
-echo "Preparing ${DIR}.tgz"
+echo "Preparing ${DEST}"
cd ..
# Create a clean copy
rm -rf ${DIR}
+rm -rf ${DEST}
cp -r pfstools ${DIR}
# Remove unnecessary files
@@ -21,7 +23,7 @@
rm ${DIR}/make_src_dist.sh
# Put into .t... | bash |
d_bash_17969 | ---
+++
@@ -3,11 +3,11 @@
cluster/vagrant/sync_config.sh
-make all
+make all DOCKER_TAG=devel
for VM in `vagrant status | grep -v "^The Libvirt domain is running." | grep running | cut -d " " -f1`; do
vagrant rsync $VM # if you do not use NFS
- vagrant ssh $VM -c "cd /vagrant && sudo hack/build-docker.sh"... | bash |
d_bash_17970 | ---
+++
@@ -4,21 +4,31 @@
export WINEPREFIX='/media/media/Games/PlayOnLinux/wineprefix/MonsterGirlQuest'
export WINEHOME="$WINEPREFIX"
-if [[ $# -eq 1 ]]; then
- set -eu
- if [[ $1 == ng ]]; then
- readonly part='NG+'
- else
- readonly part="Part $1"
- fi
-
+run() {
LC_ALL='ja_JP.UTF-8' \
- wine "$WINEPREFIX... | bash |
d_bash_17971 | ---
+++
@@ -9,8 +9,8 @@
fi
if [ ! -e "/.initialized" ]; then
+ envtpl /etc/collectd/collectd.conf.tpl
touch "/.initialized"
- envtpl /etc/collectd/collectd.conf.tpl
fi
exec gosu nobody collectd -f > /dev/null | bash |
d_bash_17972 | ---
+++
@@ -1,2 +1,2 @@
#/bin/bash
-sudo su rejected -c "/opt/rejected/bin/rejected.py -c /opt/rejected/irsupload/etc/production-debug.yaml -d"
+sudo su rejected -c "/opt/rejected/bin/rejected.py -c /opt/rejected/irsupload/etc/production.yaml -d" | bash |
d_bash_17973 | ---
+++
@@ -5,10 +5,11 @@
alias aar='sudo -E apt-get autoremove'
alias ap='sudo -E apt-get purge'
alias ar='sudo -E apt-get remove'
-alias ad='sudo -E apt-get dist-upgrade'
+alias ad='sudo -E apt-get --assume-yes dist-upgrade'
alias auy='sudo -E apt-get update'
alias aiy='sudo -E apt-get install'
alias audy='... | bash |
d_bash_17974 | ---
+++
@@ -9,8 +9,8 @@
if [[ `uname` == 'Darwin' ]]; then
export PATH="$RECIPE_DIR:$PATH"
- chmod +x $RECIPE_DIR/clang_wrapper.sh
- ln -s $RECIPE_DIR/clang_wrapper.sh $RECIPE_DIR/clang
+ cp $RECIPE_DIR/clang_wrapper.sh $SRC_DIR/clang
+ chmod +x $SRC_DIR/clang
fi
$PYTHON -m pip install . --no-... | bash |
d_bash_17975 | ---
+++
@@ -1,11 +1,11 @@
#!/bin/bash
set -e
-# Only set when not running in an Xcode context
-if [ -z "$ACTION" ] || [ -z "$BUILD_DIR" ]; then
- export CC="$(xcrun -find -sdk iphoneos cc) -arch armv7 -isysroot $(xcrun -sdk iphoneos --show-sdk-path)"
- export CXX="$CC"
-fi
+PLATFORM_NAME="${PLATFORM_NAME:-iphon... | bash |
d_bash_17976 | ---
+++
@@ -1,11 +1,14 @@
#!/bin/bash -x
# Downloads the latest iso checksum and updates the variables in the json template
+
+template_filename="packer-debian9-qemu-kvm.json"
+
which jq || { echo "ERROR: 'jq' not found in PATH"; exit 1; }
which curl || { echo "ERROR: 'curl' not found in PATH"; exit 1; }
which... | bash |
d_bash_17977 | ---
+++
@@ -5,13 +5,36 @@
SCYLLA_PORT="9180"
NODE_PORT="9100"
+SCYLLA_SERVER_FILE="scylla_servers.yml"
+NODE_EXPORTER_FILE="node_exporter_servers.yml"
-HOSTS=$(ansible -i inventories/ec2/ Scylla --list-hosts --limit "tag_user_`echo $ANSIBLE_EC2_PREFIX`")
+usage="This script generate target files for Prometheus.... | bash |
d_bash_17978 | ---
+++
@@ -5,6 +5,8 @@
export NETWORK_INTERFACE=eth0
export DEFAULT_GATEWAY=192.168.3.1
export EMULATOR_TYPE=GENY_MOTION
+export NODE_SERVER=http://192.168.3.2:3000
+export MAX_NUM=24
export PROJECT_HOME=/home/$USER/crazy-monkey
export JAVA_HOME=$PROJECT_HOME/jdk1.7.0_75 | bash |
d_bash_17979 | ---
+++
@@ -6,7 +6,7 @@
echo "https://github.com/bell-sw/Liberica/releases/download/17.0.5+8/bellsoft-jdk17.0.5+8-linux-amd64.tar.gz"
;;
java19)
- echo "https://github.com/bell-sw/Liberica/releases/download/19+37/bellsoft-jdk19+37-linux-amd64.tar.gz"
+ echo "https://github.com/bell-sw/Liberica/releases/do... | bash |
d_bash_17980 | ---
+++
@@ -24,7 +24,7 @@
# Only delete the old image once the new one got successfully built
if [[ ! -z "$LEGACY_ID" ]]; then
echo "Delete existing image ${LEGACY_ID} - ${CONTAINER_NAME}"
- docker rmi -f ${CONTAINER_NAME} || true
+ docker rmi -f ${LEGACY_ID} || true
fi
... | bash |
d_bash_17981 | ---
+++
@@ -1,2 +1,2 @@
-clang -c -fpic -O2 ring_httplib.cpp -I $PWD/../../language/include -I /usr/local/include
-clang -dynamiclib -o $PWD/../../lib/libring_httplib.dylib ring_httplib.o -L $PWD/../../lib -lring
+clang++ -std=c++11 -c -fpic -O2 ring_httplib.cpp -I $PWD/../../language/include -I /usr/local/include
... | bash |
d_bash_17982 | ---
+++
@@ -24,7 +24,7 @@
# Apply custom patch to convert strings to proper errors.
echo "Applying patches..."
-curl -L -s https://gist.githubusercontent.com/ruimarinho/d52c0cdde7e4fcd1d589da06b77ed954/raw/6b3d50fed6fc492e331ad916c043af92ab4096da/error.patch | git apply
+curl -L -s https://gist.githubusercontent.... | bash |
d_bash_17983 | ---
+++
@@ -4,10 +4,11 @@
git config --global user.email "michael.drogalis@onyxplatform.org"
git config --global user.name "OnyxBot"
-git clone $1 && \
- cd $2 && \
- git checkout master && \
- lein voom freshen && \
- git commit -am "CircleCI automatic commit: Freshening dependencies to latest." && \... | bash |
d_bash_17984 | ---
+++
@@ -5,19 +5,20 @@
# stopgap for feh using a relative path for its wallpaper.
# The below should just reflect whatever directory makes
-# the wallpaper path coherent.
-cd ~;
+# the wallpaper path coherent.
+cd ~;
-xrandr_output=$(xrandr -q);
+xrandr_output=$(xrandr -q);
-if [[ "$xrandr_output" =~ "H... | bash |
d_bash_17985 | ---
+++
@@ -1,3 +1,4 @@
+#!/bin/bash
SCRIPTLOC=$(readlink -f "$0")
FOLDERLOC=$(dirname "$SCRIPTLOC")
# create symblink to config-files and ~/.zsh-config | bash |
d_bash_17986 | ---
+++
@@ -20,7 +20,7 @@
Listen to the cow..."
-for i in {1..3}
+for i in {1..6}
do
cowsay "WARNING: don't use 'latest', instead use:
| bash |
d_bash_17987 | ---
+++
@@ -1,6 +1,14 @@
#!/bin/bash
+DEPLOY_HOME=/home
+mkdir /home/logs
+
+pushd $DEPLOY_HOME
nohup lucene-geo-gazetteer -server &
-/home/Solr/solr-5.3.1/bin/solr start -p 8983 -h 127.0.0.1
-python /home/manage.py runserver 0.0.0.0:8000 &
-java -classpath /home/location-ner-model:/home/geotopic-mime:/home/tika... | bash |
d_bash_17988 | ---
+++
@@ -1,10 +1,9 @@
#!/bin/bash
set -e
-ORG_OPENCASTPROJECT_DB_DDL_GENERATION="${ORG_OPENCASTPROJECT_DB_DDL_GENERATION}:-true"
-
Opencast::HSQL::Check() {
- true
+ echo "Run Opencast::HSQL::Check"
+ ORG_OPENCASTPROJECT_DB_DDL_GENERATION="true"
}
Opencast::HSQL::Configure() { | bash |
d_bash_17989 | ---
+++
@@ -8,6 +8,7 @@
alias -g .....='../../../..'
alias -g ......='../../../../..'
+alias -- -='cd -'
alias 1='cd -'
alias 2='cd -2'
alias 3='cd -3' | bash |
d_bash_17990 | ---
+++
@@ -13,7 +13,12 @@
REPO_ROOT="$( cd -P "$( dirname "$SOURCE" )/../" && pwd )"
-RID=linux-x64
+if [ "$uname" = "Darwin" ]
+then
+ RID=osx-x64
+else
+ RID=linux-x64
+fi
STAGE2_DIR=$REPO_ROOT/bin/2/$RID/dotnet
export PATH=$STAGE2_DIR:$PATH | bash |
d_bash_17991 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
# reenable password authentication
-sed -i "s/host all all all trust/host all all all md5/" /var/lib/postgresql/data/pg_hba.conf
+sed -i "s/host all all all trust/host all all all md5/" "${PGDATA}/pg_hba.conf" | bash |
d_bash_17992 | ---
+++
@@ -11,3 +11,5 @@
$TESTDIR/cdm/ps/pinned
# $TESTDIR/site/intrepid
)
+
+checkvars WORK | bash |
d_bash_17993 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
sudo su postgres <<'EOF'
-psql -c 'DROP SCHEMA public;' stagecraft
+psql -c 'DROP SCHEMA public CASCADE;' stagecraft
psql -c 'CREATE SCHEMA public;' stagecraft
psql -c 'ALTER SCHEMA public OWNER TO stagecraft;' stagecraft
EOF | bash |
d_bash_17994 | ---
+++
@@ -17,5 +17,7 @@
echo "Original reference can be found at ${REF}"
echo "Sorted reference can be found at ${SORTED_REF?}"
echo
+echo "< your output"
+echo "> reference"
exec diff "${SORTED_OUT?}" "${SORTED_REF?}" | bash |
d_bash_17995 | ---
+++
@@ -1,31 +1,49 @@
. ./test/helper.sh
+
+DATA="hello world"
+MD5="6f5902ac237024bdd0c176cb93063dc4"
+FILE="./test/file.txt"
+
+setUp()
+{
+ echo "$DATA" > "$FILE"
+}
test_verify()
{
- local data="hello world"
- local md5="6f5902ac237024bdd0c176cb93063dc4"
- local path="./test/file.txt"
-
- echo "$data" > ... | bash |
d_bash_17996 | ---
+++
@@ -2,6 +2,4 @@
cp -a $2 ~/storeAIP/.
-curl --retry 20 -c /tmp/qubitcookies.txt -d "login%5Bemail%5D=demo%40example.com&login%5Bpassword%5D=demo&referer=&commit=log+in" http://localhost/index.php/user/login
-curl -v --retry 20 -b /tmp/qubitcookies.txt -F title=$1 -F upload_file[140]=@$2 -F commit=create ... | bash |
d_bash_17997 | ---
+++
@@ -10,18 +10,18 @@
cp /ssh/id_rsa /root/.ssh/id_rsa
chmod 600 /root/.ssh/id_rsa
-#if [ -d "ootp-ai-data/.git" ]; then
-# echo "Pulling latest data..."
-# cd ootp-ai-data
-# git reset --hard HEAD
-# git clean -fd || true
-# git pull --rebase
-# cd ..
-#else
-# echo "Cloning latest data..."
-# rm -... | bash |
d_bash_17998 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/bash
+
+# Bump this whenever a release branch is created from master
+MASTER_VERSION=0.9.5
REPO_DIR=`mktemp -d`
echo "Using $REPO_DIR for all work..."
@@ -10,5 +13,5 @@
git clone https://github.com/influxdb/influxdb.git
cd $GOPATH/src/github.com/influxdb/influxdb
-NIGHTLY_BUILD... | bash |
d_bash_17999 | ---
+++
@@ -4,26 +4,23 @@
export HOME=/home/${SSH_USER}
-echo "==> Installing Python 2.7"
-sudo add-apt-repository -y ppa:fkrull/deadsnakes
-sudo apt-get update
-sudo apt-get install -y python python-dev
+echo "==> Installing Pyenv build tools"
+# From https://github.com/yyuu/pyenv/wiki/Common-build-problems
+su... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.