document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_16700 | ---
+++
@@ -4,16 +4,17 @@
names=$1 ; shift
for source in $@; do
- while read name; do
- clear
- git co -- $source
- msg="Tag instances of name '$name' as language '$lang'"
- perl -i -pne "s/(?<!\})$name(?!\})/\\\\lang$lang{$name}/g if ! /^(\[\^\d+\]|#+ )/" -- $source
- git add -- $source
- git --no-pager di... | bash |
d_bash_16701 | ---
+++
@@ -10,7 +10,7 @@
if [[ "$TARGET_OS" = "Darwin" ]]; then
cp out_mac/Release/libkytea.a ..
else
- cp out_unix/Release/libkytea.a ..
+ cp out_unix/Release/obj.target/gyp/libkytea.a ..
fi
cp -fr src/include/kytea .
| bash |
d_bash_16702 | ---
+++
@@ -1,2 +1,3 @@
+#!/bin/bash
coverage run --source=survey --omit=survey/migrations/* ./manage.py test
coverage html | bash |
d_bash_16703 | ---
+++
@@ -21,8 +21,6 @@
echo "Installing python packages..."
pip2 install --user neovim
-pip install beets
-pip install haxor-news
if [ -x $CONFIGS_DIR/python_local.sh ]; then
$CONFIGS_DIR/python_local.sh | bash |
d_bash_16704 | ---
+++
@@ -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_16705 | ---
+++
@@ -14,10 +14,10 @@
function install_linters_linux {
sudo apt-get install -y shellcheck
- for pkg in bashate flake8 ansible-lint==5.2.1; do
+ for pkg in bashate flake8 ansible-lint==5.3.2; do
pipx install --force "${pkg}"
done
- pipx inject ansible-lint ansible==5.1.0
+ pipx ... | bash |
d_bash_16706 | ---
+++
@@ -34,4 +34,6 @@
-v "$REQUIREMENT":/requirements.txt \
-v "$WHEEL_DIR":/wheelhouse \
$DOCKER_IMAGE \
- pip wheel -r /requirements.txt -w /wheelhouse $NO_DEPS
+ /bin/sh -c \
+ "pip install --upgrade wheel && \
+ pip wheel -r /requirements.txt -w /wheelhouse $NO_DEPS" | bash |
d_bash_16707 | ---
+++
@@ -11,7 +11,7 @@
date=`date $dateformat`
-for i in `ls $logdir/engine.log.* -t`; do
+for i in `ls $logdir/{engine,server,jasperserver}.log.* -t`; do
m=`expr match $i .*gz`
if [ $m == 0 ]
then
@@ -24,10 +24,10 @@
#
lastlogday=`date -d "$maxage hours ago" $dateformat`
-for i in `ls $logdir/engin... | bash |
d_bash_16708 | ---
+++
@@ -20,6 +20,7 @@
# Build the default site nginx conf.
sudo sed -e "s|{DOCUMENT_ROOT}|$DOCUMENT_ROOT|g" -e "s|{PHP_FPM_LISTEN}|$PHP_FPM_LISTEN|g" < "$DIR/default.conf.tpl" > "$DIR/default.conf"
+sudo cp "$DIR/php-fpm.conf" /etc/nginx/fastcgi.conf
sudo cp "$DIR/default.conf" /etc/nginx/sites-enabled/defau... | bash |
d_bash_16709 | ---
+++
@@ -11,7 +11,7 @@
# If we can unambiguously determine a go import for the project
# then change directory to it. Otherwise change directory to src
# so that we can tell from PS1 whether or not we found the repo
- local matched_repos=( $(find . -depth 4 -name $1) )
+ local matched_repos=(... | bash |
d_bash_16710 | ---
+++
@@ -1,5 +1,5 @@
# Initialize completion
-autoload -Uz compinit && compinit
+autoload -Uz compinit && compinit -i
zstyle ':completion:*' menu select=20
# Initialize editing command line | bash |
d_bash_16711 | ---
+++
@@ -10,8 +10,6 @@
echo " -BuildArch=\"Architecture\""
echo "To specify the name of the container to publish into, use the following property:"
echo " -Container=\"container name\""
- echo "To specify the OS you're building for, use the following property:"
- echo " -DistroRiD=\"RID\... | bash |
d_bash_16712 | ---
+++
@@ -8,3 +8,5 @@
# Homebrew.
pathaddend "/usr/local/sbin"
+
+export EDITOR="vim" | bash |
d_bash_16713 | ---
+++
@@ -17,7 +17,7 @@
# Dereference any possible symbolic link to executable script, then find
# absolute path where VASSAL is installed
-EXEC_PATH=$(readlink "$0")
+EXEC_PATH=$(realpath "$0")
INSTALL_DIR=$(dirname ${EXEC_PATH})
# Check that java is new enough | bash |
d_bash_16714 | ---
+++
@@ -14,3 +14,4 @@
cd build
../configure
make check docs for_c | ../scripts/shrink-test-output.py
+exit ${PIPESTATUS[0]} | bash |
d_bash_16715 | ---
+++
@@ -21,7 +21,7 @@
echo 'Copying new documentation'
cp -r docs/_site gh-pages/${target}
-gitdata="$(git log -n 1 --format 'commit %h - %s')"
+gitdata="$(git log -n 1 --format='commit %h - %s')"
echo "Git data: ${gitdata}"
( | bash |
d_bash_16716 | ---
+++
@@ -1,7 +1,7 @@
#! /bin/bash
#
-# Installation script for pycocotools (Python API for COCO-dataset)
+# Installation script for pycocotools (Python API for the COCO dataset)
#
# See CK LICENSE.txt for licensing details.
# See CK COPYRIGHT.txt for copyright details.
@@ -32,10 +32,18 @@
cp ${ORIGINAL_PAC... | bash |
d_bash_16717 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-./spark-ec2 --instance-type m4.4xlarge --zone eu-west-1a --spot-price 0.25 --identity-file ../clone/inreach-ml-core/src/main/resources/spark-cluster.pem --key-pair spark-cluster --slaves 0 --region eu-west-1 --copy-aws-credentials --deploy-root-dir $JAR_DIR --scoring launch spark... | bash |
d_bash_16718 | ---
+++
@@ -4,6 +4,11 @@
msg() {
printf '%b\n' "$1" >&2
+}
+
+title() {
+ msg "\n---------------------------------------------------"
+ msg "> $1\n"
}
result() {
@@ -25,6 +30,28 @@
result "$ret" "" "To continue you first need to install $1." !
}
+UpdateRepo() {
+ title "Trying to update $1..."
+
+ ... | bash |
d_bash_16719 | ---
+++
@@ -8,8 +8,8 @@
THISDIR=$(dirname ${BASH_SOURCE[0]})
-source ${THISDIR}/test-lib.sh
-source ${THISDIR}/test-lib-openshift.sh
+source "${THISDIR}/test-lib.sh"
+source "${THISDIR}/test-lib-openshift.sh"
function test_ruby_integration() {
ct_os_test_s2i_app "${IMAGE_NAME}" \
@@ -21,7 +21,7 @@
# Check... | bash |
d_bash_16720 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-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 config user.name Hudson | bash |
d_bash_16721 | ---
+++
@@ -43,7 +43,7 @@
cp ${PREFIX}/bin/rustc ${TARG_DIR}/stage0/bin/
cp ${PREFIX}/lib/rustc/${TARG_DIR}/${LIBDIR}/* ${TARG_DIR}/stage0/${LIBDIR}/
+cp ${PREFIX}/lib/libextra*${LIB_SUF} ${TARG_DIR}/stage0/${LIBDIR}/
cp ${PREFIX}/lib/librust*${LIB_SUF} ${TARG_DIR}/stage0/${LIBDIR}/
-cp ${PREFIX}/lib/libcore*${L... | bash |
d_bash_16722 | ---
+++
@@ -4,9 +4,9 @@
# Warning: disable --with-imagick in 30-compile-php-7.1.sh! There is compile with new ImageMagick
cd /tmp
-wget https://imagemagick.org/download/ImageMagick-7.0.10-7.tar.gz
-tar -xvzf ./ImageMagick-7.0.10-7.tar.gz
-cd ImageMagick-7.0.10-7
+wget https://imagemagick.org/download/ImageMagick... | bash |
d_bash_16723 | ---
+++
@@ -4,8 +4,7 @@
# a test fails, the log is enumerated and saved, and a
# diagnostic is printed to stdout.
#
-# This variant runs tests under gdb, and tries to get
-# a backtrace on failure.
+# This variant runs tests under valgrind.
export MALLOC_CHECK_=2
export MALLOC_PERTURB_=a
@@ -29,7 +28,7 @@
f... | bash |
d_bash_16724 | ---
+++
@@ -13,7 +13,7 @@
if [ ! -d /mnt/virtualenvs/"$JOB_NAME" ]; then
mkdir -p /mnt/virtualenvs/"$JOB_NAME"
- virtualenv /mnt/virtualenvs/"$JOB_NAME"
+ virtualenv --system-site-packages /mnt/virtualenvs/"$JOB_NAME"
fi
export PIP_DOWNLOAD_CACHE=/mnt/pip-cache | bash |
d_bash_16725 | ---
+++
@@ -3,6 +3,7 @@
#
# Authors:
# Joseph Jon Booker <joe@neoturbine.net>
+# Indrajit Raychaudhuri <irc+code@indrajit.com>
#
# Load command-not-found on Debian-based distributions.
@@ -11,6 +12,9 @@
# Load command-not-found on Arch Linux-based distributions.
elif [[ -s '/usr/share/doc/pkgfile/command... | bash |
d_bash_16726 | ---
+++
@@ -10,7 +10,7 @@
echo ${ProblemsRoot}${problem}/${method}/${result}
java -jar ${TestRoot}compiled/TestCaseSetSelection.jar \
${ProblemsRoot}${problem}/${method}/${result} ';' \
- true 10 | grep "Test Cases:" | cut -d':' -f2 > testcases.txt
+ true 10 | grep "Test Cases:" | cut -... | bash |
d_bash_16727 | ---
+++
@@ -23,3 +23,7 @@
alias ga='git add --all'
alias gsr='git svn rebase'
alias grp='git remote prune origin'
+alias gcl='git-cleanup'
+
+function git-merged() { git branch --merged $@ | sed -e '/^*/d' }
+function git-cleanup() { git branch -d $(git-merged); git remote prune origin } | bash |
d_bash_16728 | ---
+++
@@ -4,6 +4,7 @@
git checkout v0.7.0
rm -Rf docs/build/
cd docs; make html
+cp cheatsheet.pdf /shared/
cd build
touch /shared/python-future-html-docs.zip
rm /shared/python-future-html-docs.zip
@@ -11,6 +12,7 @@
cd /shared
scp python-future-html-docs.zip python-future.org:
+scp cheatsheet.pdf python-f... | bash |
d_bash_16729 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
# Runs cpplint.py and valgrind for exercises for CSE 333
-if ! [[ -s $1 && -s $1.c ]]; then
+if ! [[ -s $1 ]] && [[ -s $1.c || -s $1.cc ]]; then
echo "Usage: cverify.sh program [arguments ...]"
echo " Please make sure the compiled program and its .c and .h source" \
... | bash |
d_bash_16730 | ---
+++
@@ -30,6 +30,7 @@
./configure --prefix="$HOME/libsodium" --enable-minimal
make
make install
+ rm -rf ./libsodium-*
else
echo 'Using cached directory.'
fi | bash |
d_bash_16731 | ---
+++
@@ -30,3 +30,24 @@
FROM _tmp_highways as hwy, _tmp_buildings as bldg
WHERE st_intersects(hwy.geom, bldg.geom);
" | psql -U postgres -d osm
+
+echo "
+ DROP TABLE _tmp_buildings;
+ DROP TABLE _tmp_highways;
+" | psql -U postgres -d osm
+
+if [ ! -x $1 ] && [ $1 == 'export' ]; then
+ ... | bash |
d_bash_16732 | ---
+++
@@ -1,3 +1,5 @@
export SP_HOME=~/Trabajo/SponsorPay/workspace
export TI_HOME=~/Trabajo/TurboInternet/workspace
export KAFKA_HOME=~/Applications/kafka
+
+ulimit -n 1024 | bash |
d_bash_16733 | ---
+++
@@ -6,7 +6,8 @@
AUTHOR_URL="https://fernandopasik.com"
# Installing npm global packages
-npm i -g npm@next npm-check-updates yo
+npm i -g npm@next
+yarn global add npm-check-updates yo
# Setting up username
npm set username $NPM_USERNAME | bash |
d_bash_16734 | ---
+++
@@ -17,8 +17,15 @@
alias xcp='xcode-select --print-path'
alias xcdd='rm -rf ~/Library/Developer/Xcode/DerivedData/*'
-if [[ -d $(xcode-select -p)/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app ]]; then
- alias simulator='open $(xcode-select -p)/Platforms/iPhoneSimulator.p... | bash |
d_bash_16735 | ---
+++
@@ -5,5 +5,6 @@
mkdir build
cd build
cmake .. -DCMAKE_C_FLAGS="$1" -DCMAKE_BUILD_TYPE=Release -DTHREADSAFE=1 \
- -DBUILD_CLAR=0 -DBUILD_SHARED_LIBS=0 -DSHA1_TYPE=builtin
+ -DBUILD_CLAR=0 -DBUILD_SHARED_LIBS=0 -DZLIB_LIBRARY=0 \
+ -DSHA1_TYPE=builtin
cmake --build . | bash |
d_bash_16736 | ---
+++
@@ -15,6 +15,6 @@
PSQL_OPTS="-h ${DB_HOST} -U postgres"
./update_postgresql_tables ${PSQL_OPTS} || die "Failed to update database"
-./grant_bacula_privileges ${PSQL_OPTS} || die "Failed to grant bacula priviledges"
+./grant_postgresql_privileges ${PSQL_OPTS} || die "Failed to grant privileges"
log "Dat... | bash |
d_bash_16737 | ---
+++
@@ -36,9 +36,7 @@
$dart --enable-asserts dev/bots/analyze.dart --dart-sdk $sdk
# Test flutter's use of data-driven fixes.
-pushd packages/flutter/test_fixes
-../../../bin/dart fix --compare-to-golden
-popd
+$dart fix packages/flutter/test_fixes --compare-to-golden
# Analyze the sample code in dartdoc s... | bash |
d_bash_16738 | ---
+++
@@ -16,18 +16,7 @@
fi
# Antigen
-local antigen_dir="${HOME}/dev/shell/antigen"
-
-# Install antigen
-if [ ! -d "${antigen_dir}" ]; then
- echo "*** Installing antigen"
- git clone https://github.com/zsh-users/antigen.git "${antigen_dir}"
-else
- pushd "${antigen_dir}" >/dev/null 2>&1
- git pull >/dev/null... | bash |
d_bash_16739 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-python manage.py migrate
+python manage.py migrate --noinput
python manage.py collectstatic --noinput
python manage.py compress --engine jinja2 --extension=.html
python manage.py rebuild_index --noinput | bash |
d_bash_16740 | ---
+++
@@ -9,8 +9,10 @@
sleep 10
-assert_raises "docker_on $HOST1 logs weavescope 2>&1 | grep 'app exiting'"
-assert_raises "docker_on $HOST1 logs weavescope 2>&1 | grep 'probe exiting'"
+# Save stdout for debugging output
+exec 3>&1
+assert_raises "docker_on $HOST1 logs weavescope 2>&1 | grep 'app exiting' ||... | bash |
d_bash_16741 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
-version="20.10.13"
+version="20.10.14"
echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz"; | bash |
d_bash_16742 | ---
+++
@@ -18,8 +18,8 @@
echo "Enter sudo password: "
read pwd
-fab -p $pwd target.$2 sysconf.install_server sysconf.configure_server
-fab -p $pwd target.$2 sysconf.sync_static_web
+fab -p $pwd target.$2 -R lagrummet sysconf.install_server sysconf.configure_server
+fab -p $pwd target.$2 -R lagrummet sysconf.sync... | bash |
d_bash_16743 | ---
+++
@@ -27,7 +27,6 @@
debug "Cleanup the loop device"
(losetup -a | grep -q $loopdev) && losetup -d /dev/$loopdev || {
warn "Failed to detach the file from the loop device, retrying..."
- sleep 2; losetup -d /dev/$loopdev || true
sleep 2; losetup -d /dev/$loopdev || {
error "Could not cleanup loop d... | bash |
d_bash_16744 | ---
+++
@@ -1,18 +1,31 @@
#!/bin/bash
# Simple build script to compile project
+# Build Utils
cd ${PWD##}/utils
make clean
make
+# Build GXX
cd ../gxx
make clean
make
-echo "საჭიროა სუპერ მომხმარებლის პრივილეგიები"
+# Check we can run sudo command or not
+CAN_I_RUN_SUDO=$(sudo -n uptime 2>&1 | grep "loa... | bash |
d_bash_16745 | ---
+++
@@ -11,15 +11,19 @@
todo = 0;
xxx = 0;
wip = 0;
- }/TODO/{
- todo++
- print $0
- }/XXX/{
- xxx++
- print $0
- }/WIP/{
- wip++
- print $0
+ }{
+ if ($3 ~ /TODO/) {
+ todo++
+ print $1 ":" $3
+ ... | bash |
d_bash_16746 | ---
+++
@@ -1,4 +1,12 @@
#!/bin/sh
+
+version_gt() { test "$(echo "$@" | tr " " "\n" | sort -V | tail -n 1)" == "$1"; }
+docker_version=$(docker version | grep 'Client version' | awk '{split($0,a,":"); print a[2]}')
+# Docker 1.3.0 or later is required for --device
+if ! version_gt "${docker_version}" "1.4.0"; then
... | bash |
d_bash_16747 | ---
+++
@@ -1,14 +1,11 @@
#!/bin/bash
BVLC='http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemodel'
-PLACES205='http://places.csail.mit.edu/model/googlenet_places205.tar.gz'
+PLACES205='https://s3-us-west-2.amazonaws.com/crowsonkb-deep-dream/googlelet_places205_train_iter_2400000.caffemodel'
PLACES365='htt... | bash |
d_bash_16748 | ---
+++
@@ -38,13 +38,7 @@
# ===============================
# Install minimal requirement
# ===============================
- brew bundle --no-lock --no-upgrade --file=/dev/stdin <<EOF
- brew "git"
- brew "vim"
- brew "chezmoi"
- brew "bitwarden-cli"
- brew "gnupg"
-EOF
+ brew install git vim chezmoi... | bash |
d_bash_16749 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash -e
+#!/bin/bash -x
# Only attempt to unmount if the directory is already mounted
if mountpoint -q `pwd`/build; then | bash |
d_bash_16750 | ---
+++
@@ -5,7 +5,7 @@
#export FASTLY_TEST_BASE_URL=localhost
-export FASTLY_TEST_BASE_URL=app-1-simon
+export FASTLY_TEST_BASE_URL="app-1-$USER"
export FASTLY_TEST_BASE_PORT=5500
export FASTLY_TEST_USER=testowner@example.com | bash |
d_bash_16751 | ---
+++
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
code --list-extensions | sort -f > ~/dotfiles/vscode/extensions.txt
+git reset &> /dev/null
git add ~/dotfiles/vscode/extensions.txt
-git commit -m 'Updated VS Code extensions list'
-git push
+git commit -m 'Updated VS Code extensions list' 2> /dev/null
+git push 2> /d... | bash |
d_bash_16752 | ---
+++
@@ -40,4 +40,6 @@
cd /opt/khaleesi/
+ansible localhost -m setup -i local_hosts
+
./run.sh --no-logs --use /vagrant/opnfv_ksgen_settings.yml playbooks/opnfv.yml | bash |
d_bash_16753 | ---
+++
@@ -3,7 +3,8 @@
# Upgrade the system
apt-get update
-apt-get upgrade -y
+# FIXME: see issue #21
+#apt-get upgrade -y
/vagrant/provision/install/python.sh
/vagrant/provision/install/java8.sh | bash |
d_bash_16754 | ---
+++
@@ -36,4 +36,4 @@
echo Building...
-$SSH ec2-user@$1 "cd daala ; ./autogen.sh ; PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --disable-player --disable-dump-images --enable-logging --enable-dump-recons ; make -j4 ; make tools -j4" > /dev/null
+$SSH ec2-user@$1 "cd daala ; ./autogen.sh ; PKG_CONFI... | bash |
d_bash_16755 | ---
+++
@@ -46,3 +46,6 @@
# We just use KoreBuild to install the dotnet cli
$dotnetInstallFile
+
+# Reload the path variable to pick up changes after installation
+source ~/.bashrc | bash |
d_bash_16756 | ---
+++
@@ -3,4 +3,6 @@
su - hdfs -c '/usr/lib/hadoop/bin/hdfs dfs -chown accumulo:accumulo /accumulo'
su - hdfs -c '/usr/lib/hadoop/bin/hdfs dfs -chown accumulo:accumulo /user/accumulo'
su - accumulo -c '/usr/lib/accumulo/bin/accumulo init --instance-name accumulo --password secret'
+#
+# Now that accumulo has be... | bash |
d_bash_16757 | ---
+++
@@ -19,4 +19,4 @@
matchbox-window-manager -use_titlebar no -use_cursor no &
# Start the browser (See http://peter.sh/experiments/chromium-command-line-switches/)
-chromium --app=http://localhost/#dashboard
+chromium --app=http://localhost/#dashboard --user-data-dir=/home/pi/ | bash |
d_bash_16758 | ---
+++
@@ -20,7 +20,7 @@
echo "</Project>" >> $CSPROJ
#generate 'code behind'
-mono ./specflow.exe RunTests.csproj
+mono ./specflow.exe generateall RunTests.csproj
dmcs -t:library -r:/usr/lib/cli/nunit.framework-2.6/nunit.framework.dll -out:RunTests.dll *.cs
if [ $? -eq 0 ]; then | bash |
d_bash_16759 | ---
+++
@@ -19,7 +19,7 @@
local f
local inc_dry_run_files_list
- hook -a 'docker-compose' -c "yml" -v 'DC_YML_VARIANTS' -t -d
+ hook -a 'docker-compose' -c "yml" -v 'DC_YML_VARIANTS' -t
for f in $inc_dry_run_files_list; do
. "$f" | bash |
d_bash_16760 | ---
+++
@@ -1,6 +1,5 @@
#!/bin/bash
-sudo apt-get update
-sudo apt-get upgrade -y --force-yes
-sudo apt-get dist-upgrade -y --force-yes
-sudo apt-get autoclean
-
+sudo apt update && \
+ sudo apt upgrade -y && \
+ sudo apt dist-upgrade -y && \
+ sudo apt autoclean | bash |
d_bash_16761 | ---
+++
@@ -6,7 +6,7 @@
client_id: "${SPHERE_CLIENT_ID}",
client_secret: "${SPHERE_CLIENT_SECRET}",
project_key: "${SPHERE_PROJECT_KEY}",
- logentries_token: "${LOGENTRIES_TOKEN}",
- timeout: 60000
}
+
+exports.logentries_token = "${LOGENTRIES_TOKEN}"
EOF | bash |
d_bash_16762 | ---
+++
@@ -1,7 +1,9 @@
#!/bin/bash
env
-if [ -z "$MONGODB_URI" ]; then
+if [ -n "$DB_URI" ]; then
+ MONGODB_URI=${DB_URI}
+elif [ -z "$MONGODB_URI" ]; then
MONGODB_URI=mongodb://localhost/strider-foss
fi
if [ -n "$MONGO_PORT" ]; then | bash |
d_bash_16763 | ---
+++
@@ -12,7 +12,7 @@
# download packages
apt-get update
-apt-get -y install php5 php5-mcrypt php5-mysql avahi-daemon php-apc unzip
+apt-get -y install php5 php5-mcrypt php5-mysql avahi-daemon php-apc unzip dos2unix
# setup php
php5enmod mcrypt
@@ -28,7 +28,10 @@
curl -sS https://getcomposer.org/installe... | bash |
d_bash_16764 | ---
+++
@@ -3,7 +3,12 @@
COOPR_NODE=${COOPR_NODE:-node}
COOPR_GULP='./node_modules/gulp/bin/gulp.js'
-${COOPR_NODE} ${COOPR_GULP} clean
+# Prefer the gulp task, fall back to delete
+if [ -f ${COOPR_GULP} ]; then
+ ${COOPR_NODE} ${COOPR_GULP} clean
+else
+ rm -rf dist
+fi
rm -rf node_modules
rm -rf bower_com... | bash |
d_bash_16765 | ---
+++
@@ -22,11 +22,13 @@
cat >"${file_cmd}" <<EOF
:set foldmethod=marker
:%call SortFolds#SortFolds()
-:write
-:q!
+:messages
+:wq
EOF
- ${EDITOR} -s "${file_cmd}" "${file_out}"
+ true > messages.log
+
+ ${EDITOR} -V0messages.log -s "${file_cmd}" "${file_out}" 2>&1
rm "${file_cmd}"
@@ -... | bash |
d_bash_16766 | ---
+++
@@ -20,4 +20,6 @@
chmod 0755 $source/headset
chmod 0755 $source/resources
chmod 0755 $source/locales
+chmod 0755 bin/debian_scripts/postinst
+chmod 0755 bin/debian_scripts/postrm
echo -e 'Done' | bash |
d_bash_16767 | ---
+++
@@ -20,7 +20,7 @@
os="windows"
arch="386"
fi
- version="0.7.0"
+ version="0.7.2"
archive="consul_${version}_${os}_${arch}.zip"
mkdir -p bin | bash |
d_bash_16768 | ---
+++
@@ -21,4 +21,5 @@
cmake $BIOTOOL_CPP_PATH -DCMAKE_MODULE_PATH=$BIOTOOL_CPP_PATH/seqan-library-2.1.1/share/cmake/Modules/ -DSEQAN_INCLUDE_PATH=$BIOTOOL_CPP_PATH/seqan-library-2.1.1/include/ -DCMAKE_CXX_FLAGS=-std=c++11
make
-) > /dev/null 2>&1
+#) > /dev/null 2>&1
+) | bash |
d_bash_16769 | ---
+++
@@ -1,5 +1,6 @@
# Build conda environment.
-conda env create -f environment.yml
+conda install -c conda-forge mamba
+mamba env create -f environment.yml
source activate nams
python -m ipykernel install --user --name nams
pip install . | bash |
d_bash_16770 | ---
+++
@@ -12,6 +12,13 @@
./node_modules/.bin/node-pre-gyp package testpackage
./node_modules/.bin/node-pre-gyp publish info
+ # Uninstall lib protobuf.
+ # Intended to confirm that binary has no deps on external libs.
+ build_dir="$(pwd)"
+ cd /tmp/protobuf-2.5.0
+ make uninstall
+ cd ... | bash |
d_bash_16771 | ---
+++
@@ -3,4 +3,18 @@
cat ~/.*h_h*|cut -d" " -f1|ruby -e'h=Hash.new 0;h[$_]+=1 while gets;h.each{|k,v|puts"#{v} "+k}'|sort -rn|head
}
+# This function prints out lines in the given files that
+# contain non-ascii characters
+function is_not_ascii
+{
+ if [ "$#" == "0" ]; then
+ echo "Usage: $0 file1 file... | bash |
d_bash_16772 | ---
+++
@@ -4,10 +4,10 @@
for i in 1 2 3 4 5; do
KAFKA_PORT=`expr $i + 6666`
- nohup bash -c "cd ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT} && bin/zookeeper-server-start.sh config/zookeeper.properties &"
+ cd ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT} && bin/zookeeper-server-start.sh -daemon config/zookee... | bash |
d_bash_16773 | ---
+++
@@ -23,5 +23,3 @@
# Run all Python tests
./pants src/test/python:all -vxs
-# Run Python style checks
-SKIP_AURORA_HOOKS='' ./build-support/hooks/pre-commit | bash |
d_bash_16774 | ---
+++
@@ -29,4 +29,4 @@
mkdir -p dumps
rm -f dumps/*
-dump $(cat PKGS)
+dump $(./PKGS.sh) | bash |
d_bash_16775 | ---
+++
@@ -12,7 +12,7 @@
xcodebuild clean test \
-project LibSpacey.xcodeproj \
-scheme LibSpacey \
- -destination 'platform=iOS Simulator,name=iPhone 11,OS=13.4' \
+ -destination 'platform=iOS Simulator,name=iPhone 11' \
| xcpretty
popd || exit 1 | bash |
d_bash_16776 | ---
+++
@@ -3,7 +3,7 @@
PropsTestUtil(){
writePropsFile(){
- FileWriter append $(FileUtil makeFile ${propsFile}) test.enabled=true
+ FileWriter append $(FileUtil makeFile ${1}) test.enabled=true
}
$@ | bash |
d_bash_16777 | ---
+++
@@ -5,6 +5,6 @@
# */5 * * * * /[path_to_this_file]/updateindex.sh
if [ -f /var/run/searchd.pid ];
then
- /usr/local/bin/indexer --quiet --config /usr/local/etc/sphinx.conf --rotate histcross_vertices
- /usr/local/bin/indexer --quiet --config /usr/local/etc/sphinx.conf --rotate histcross_relations
+ /usr/bi... | bash |
d_bash_16778 | ---
+++
@@ -2,7 +2,20 @@
set -exo pipefail
-if [[ -e .coverage ]]; then
- python -m pip install codecov
- python -m codecov --env TRAVIS_OS_NAME,NOX_SESSION --file coverage.xml
+# Cribbed from Trio's ci.sh
+function curl-harder() {
+ for BACKOFF in 0 1 2 4 8 15 15 15 15; do
+ sleep $BACKOFF
+ ... | bash |
d_bash_16779 | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
test "${TRAVIS_PULL_REQUEST}" == "false" && \
- test "${TRAVIS_JDK_VERSION}" == "oraclejdk7" && \
+ test "${TRAVIS_JDK_VERSION}" == "oraclejdk8" && \
test "${TRAVIS_TAG}" != "" && \
echo Deploying to Bintray && \
./gradlew bintrayUpload | bash |
d_bash_16780 | ---
+++
@@ -5,5 +5,5 @@
mkdir ${dist}
cp -R build/* ${dist}/
cp scripts/start-webserver* ${dist}/
-zip -r vivliostyle-js-viewer-latest.zip ${dist}
+zip -qr vivliostyle-js-viewer-latest.zip ${dist}
rm -rf ${dist} | bash |
d_bash_16781 | ---
+++
@@ -5,6 +5,10 @@
# The directory where composer will install this stuff
GENERATOR_DIRECTORY='fork-cms-module-generator/vendor/justcarakas/fork-cms-module-generator/'
+
+# Cleanup if it already exists
+rm -rf $PREFIX/fork-cms-module-generator
+rm -rf $PREFIX/bin/module-generator
# Clone the git repo
mk... | bash |
d_bash_16782 | ---
+++
@@ -12,4 +12,12 @@
# License for the specific language governing permissions and limitations
# under the License.
+# How many seconds to wait for the API to be responding before giving up
+API_RESPONDING_TIMEOUT=20
+
+if ! timeout ${API_RESPONDING_TIMEOUT} sh -c "while ! curl -s -o /dev/null http://127.0.... | bash |
d_bash_16783 | ---
+++
@@ -64,7 +64,7 @@
isOption(){
local opt=${1}
- if [[ $(isSubstring ${opt} -) ]] && [[ $(isAlphaNum ${opt//-/}) ]]; then
+ if [[ $(beginsWith - ${opt}) ]] && [[ $(isAlphaNum ${opt//-/}) ]]; then
echo true
else
return | bash |
d_bash_16784 | ---
+++
@@ -7,6 +7,8 @@
set -x
RELEASE_VERSION=`ruby scripts/get-release-version.rb`
+
+echo "$RELEASE_VERSION" > version
mvn org.codehaus.mojo:versions-maven-plugin:1.3.1:set \
--batch-mode \ | bash |
d_bash_16785 | ---
+++
@@ -4,6 +4,7 @@
"/sbin/"
"/usr/local/opt/postgresql@10/bin" #befor /usr/bin for useage on macOS
"/usr/local/opt/postgresql@11/bin" #befor /usr/bin for useage on macOS
+ "${HOME}/Library/Python/3.7/bin"
"/usr/local/bin"
"/usr/local/sbin"
"/usr/bin"
@@ -12,6 +13,7 @@
"${HO... | bash |
d_bash_16786 | ---
+++
@@ -11,7 +11,7 @@
--reporter spec \
--full-trace \
--require ../runtime.js \
- --compilers js:${TEST_DIR}/register.js \
+ --require ${TEST_DIR}/register.js \
tests.js
}
| bash |
d_bash_16787 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
runClangFormatOnDir() {
- find "$1" -name "*.cpp" -o -name "*.c" -o -name "*.h" | while read fn; do
+ find "$1" -name "*.c" -o -name "*.cpp" -o -name "*.c" -o -name "*.h" | while read fn; do
echo "$fn"
clang-format -style=file -i "$fn"
done
@@ -15,6 +... | bash |
d_bash_16788 | ---
+++
@@ -13,6 +13,6 @@
echo "i 0"
echo "etc."
echo "Paste this line into the terminal to get it to start sending sensor data:"
-echo "d,0.403000,0.006760,0,0,0.0,0.0,0.0"
+echo "d,0.403000,0.006760,0,0,0,0.0,0.0,0.0"
miniterm.py $(${SCRIPTDIR}/find_ActivityBoard.sh) 115200
| bash |
d_bash_16789 | ---
+++
@@ -15,3 +15,8 @@
wpa_passphrase "${WPA_ESSID}" "${WPA_PASSWORD}" >> "/etc/wpa_supplicant/wpa_supplicant.conf"
EOF
fi
+
+# Disable wifi on 5GHz models
+mkdir -p "${ROOTFS_DIR}/var/lib/systemd/rfkill/"
+echo 1 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-3f300000.mmc:wlan"
+echo 1 > "${ROOTFS_DIR}/var/l... | bash |
d_bash_16790 | ---
+++
@@ -4,4 +4,4 @@
# Change to node directory
cd /home/luke/api.lukemil.es/
# Start nodemon on 3000 (iptables corrects route to port 80)
-NODE_ENV=production PORT=3000 nodemon
+NODE_ENV=production PORT=3000 forever bin/www -c | bash |
d_bash_16791 | ---
+++
@@ -2,7 +2,6 @@
if (( ${+commands[fbterm]} )); then
if [[ "$TTY" = /dev/tty* ]] ; then
- fbterm
- exit
+ fbterm && exit
fi
fi | bash |
d_bash_16792 | ---
+++
@@ -23,9 +23,15 @@
# Error if glob doesn't match. Use glob*(N) to override.
setopt nomatch
+# Ignore Ctrl-D, require "exit" or "logout".
+#setopt ignore_eof
+
setopt interactive_comments
setopt pushd_minus
# perl!
setopt rematch_pcre
+
+# Print timing statistics for commands that take longer than... | bash |
d_bash_16793 | ---
+++
@@ -3,14 +3,19 @@
# To just sync git repos:
# ./scanners-git.sh
# To sync and build the native scanner
-# ./scanners-git.sh -B NativeScannerBlueZ
+# ./scanners-git.sh -D
+# To sync and build some-target
+# ./scanners-git.sh -B some-target
-# Check for the build(-B) option
+# Check for the build(-B) o... | bash |
d_bash_16794 | ---
+++
@@ -15,3 +15,6 @@
# IE10 - Win8
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE10_Win8/IE10.Win8.For.MacVirtualBox.part{1.sfx,2.rar,3.rar}"
+
+# IE11 – Win8.1
+curl -O "https://az412801.vo.msecnd.net/vhd/VMBuild_20141027/VirtualBox/IE11/Windows/IE11.Win8.1.For.Windows.VirtualBo... | bash |
d_bash_16795 | ---
+++
@@ -2,7 +2,8 @@
set -euo pipefail
function cleanup {
- if [ -n "$uuid" ]; then
+ # alternative to [ -v ] for bash prior to 4.2
+ if [ -n "${uuid-}" ]; then
echo "Cleaning up simulator" >&2
xcrun simctl shutdown $uuid 2>/dev/null
xcrun simctl delete $uuid | bash |
d_bash_16796 | ---
+++
@@ -1,9 +1,11 @@
if [[ $WEBDRIVER == "chrome_driver" ]]
then
cd ~/src
- echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' > sudo tee -a /etc/apt/sources.list.d/google-chrome.list
+ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
+ sudo sh -c ... | bash |
d_bash_16797 | ---
+++
@@ -6,7 +6,7 @@
git config --global user.email "velocity-robot@xolv.io"
git config --global user.name "Velocity Robot"
-rm -rf .build || true
+rm -rf .build* || true
rm -rf docs || true
branch=$(git rev-parse --abbrev-ref HEAD) | bash |
d_bash_16798 | ---
+++
@@ -8,8 +8,8 @@
mkdir reports
# Find all directories matching path to add to archive.
-BUILD_REPORTS=`find . -type d -path "*build/reports*"`
-JACOCO_REPORTS=`find . -type d -path "*build/jacoco*"`
+BUILD_REPORTS=$(find . -type d -path "*build/reports*")
+JACOCO_REPORTS=$(find . -type d -path "*build/jac... | bash |
d_bash_16799 | ---
+++
@@ -1,3 +1,4 @@
#!/bin/bash
[[ -d OCamlSDL2 ]] || git clone -q https://github.com/fccm/OCamlSDL2
cp OCamlSDL2/src/Makefile.config.unix OCamlSDL2/src/Makefile.config
+sed 's/\*\*/*/g' -i OCamlSDL2/src/sdlpower.ml | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.