document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_9500 | ---
+++
@@ -2,6 +2,7 @@
sudo -u vagrant mkdir -p ~vagrant/bin
sudo -u vagrant ln -fs /vagrant/vagrant/build.sh ~vagrant/bin/build
+sudo -u vagrant ln -fs /vagrant/vagrant/build_all.sh ~vagrant/bin/build_all
sudo -u vagrant ln -fs /vagrant/vagrant/build_kernel.sh ~vagrant/bin/build_kernel
sudo -u vagrant ln -fs ... | bash |
d_bash_9501 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
-zcat /var/log/apache2/access.log*.gz | goaccess /var/log/apache2/access.log /var/log/apache2/access.log.1 -o /var/www/html/goaccess/index.html --no-progress -
+zcat /var/log/apache2/access_traefik.log*.gz | goaccess /var/log/apache2/access_traefik.log /var/log/apache2/access_trae... | bash |
d_bash_9502 | ---
+++
@@ -6,9 +6,6 @@
docker run --rm cyberdojo/versioner:latest
echo CYBER_DOJO_WEB_SHA="$(image_sha)"
echo CYBER_DOJO_WEB_TAG="$(image_tag)"
-
- echo CYBER_DOJO_MODEL_SHA=50dda076dedfcf7ce1e8c240252d5be2449b07aa
- echo CYBER_DOJO_MODEL_TAG=50dda07
}
# - - - - - - - - - - - - - - - - - - - - - - -... | bash |
d_bash_9503 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/bash
-pandoc -s -S --toc --toc-depth=4 --include-in-header=api_2_0_spec-head.html api_2_0_spec.md -o api_2_0_spec.html
-
+pandoc --standalone --self-contained --smart --toc --toc-depth=4 \
+--include-in-header=api_2_0_spec-head.html --to=html5 \
+api_2_0_spec.md --output=api_2_0_spec... | bash |
d_bash_9504 | ---
+++
@@ -13,7 +13,7 @@
echo "Using cached LLVM download for ${LLVM}..."
else
wget http://llvm.org/releases/${LLVM_VERSION_TRIPLE}/${LLVM}.tar.xz --debug --verbose
- mkdir llvm
+ mkdir -p "${LLVM_DIRECTORY}"
tar xf ${LLVM}.tar.xz -C "${LLVM_DIRECTORY}" --strip-component... | bash |
d_bash_9505 | ---
+++
@@ -10,7 +10,7 @@
rm -r release-*.zip || true
}
hash(){
- shasum -a 512 `find build -name \*.js | sort`
+ shasum -a 512 `find build | sort`
}
echo Running first build | bash |
d_bash_9506 | ---
+++
@@ -1,8 +1,8 @@
#!/bin/bash
export DOCKER_COMPOSE_SPEC=docker-compose-multinode-test.yml
-export RUNDECK_VERSION=2.6.9
-export LAUNCHER_URL=http://dl.bintray.com/rundeck/rundeck-maven/rundeck-launcher-${RUNDECK_VERSION}.jar
+export RUNDECK_VERSION=${RUNDECK_VERSION:-2.6.9}
+export LAUNCHER_URL=${LAUNCHER_... | bash |
d_bash_9507 | ---
+++
@@ -8,9 +8,9 @@
return 0; }
ELIXIR_HOME=$IROOT/elixir
-VERSION="1.3.2-1"
+VERSION="1.3.3-1"
RELEASE="trusty"
-ARCH="amd64"
+ARCH="all"
fw_get -O http://packages.erlang-solutions.com/debian/pool/elixir_${VERSION}~ubuntu~${RELEASE}_${ARCH}.deb
dpkg -x elixir_${VERSION}~ubuntu~${RELEASE}_${ARCH}.deb $... | bash |
d_bash_9508 | ---
+++
@@ -1,20 +1,21 @@
#!/bin/bash -e
gardenDir="/var/vcap/data/garden"
-# This assumes you are running on an instance with attached ephemeral disk as current (0.70) concourse image does
-echo "Mounting ${gardenDir} on to ephemeral disk..."
-cp -R ${gardenDir}/* /mnt
-umount /mnt
+if ! mount | grep -q $gardenD... | bash |
d_bash_9509 | ---
+++
@@ -1 +1 @@
-sbt -jvm-debug 5005 "run 9222" -Dapplication.router=testOnlyDoNotUseInAppConf.Routes
+sbt -jvm-debug 5005 -Dapplication.router=testOnlyDoNotUseInAppConf.Routes "run 9222" | bash |
d_bash_9510 | ---
+++
@@ -29,6 +29,7 @@
--enable-silent-rules \
--enable-unique-id \
--disable-warnings \
+ --disable-cxx11 \
--enable-openmp $*
# let LIBMESH_JOBS be either MOOSE_JOBS, or 1 if MOOSE_JOBS | bash |
d_bash_9511 | ---
+++
@@ -2,7 +2,6 @@
fw_depends java resin maven
-sed -i 's|127.0.0.1|'${DBHOST}'|g' src/main/webapp/WEB-INF/resin-web.xml
sed -i 's|localhost|'${DBHOST}'|g' src/main/java/hellowicket/WicketApplication.java
mvn clean compile war:war | bash |
d_bash_9512 | ---
+++
@@ -2,7 +2,7 @@
if [[ "$OSTYPE" == "darwin"* ]]; then
echo 'Installing homebrew'
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install hub
fi
| bash |
d_bash_9513 | ---
+++
@@ -1,12 +1,38 @@
-#!/usr/bin/env bash
+#!/bin/bash
+
+# Set the tmpdir
+if [ -z "$TMPDIR" ]; then
+ TMPDIR="/tmp"
+fi
+
+# Create a temporary build dir and make sure we clean it up. For
+# debugging, comment out the trap line.
+DEPLOY=`mktemp -d $TMPDIR/terraform-www-XXXXXX`
+trap "rm -rf $DEPLOY" INT TERM ... | bash |
d_bash_9514 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Helper to run and build webircgateway
| bash |
d_bash_9515 | ---
+++
@@ -23,8 +23,11 @@
# Unique synthesizer ID.
SYNTH_ID=$RANDOM
-# Call synth.sh to generate wav.
-echo "${txt}" | /usr/local/src/language-resources/docker-images/test-merlin/synth.sh "${SYNTH_ID}"
+# Call synth.sh to generate wav and save the log in /tmp/[synth_id].log.
+echo "${txt}" | /usr/local/src/lang... | bash |
d_bash_9516 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-MAIN_CLASS=org.liveontologies.pinpointing.RunJustificationExperiments
+MAIN_CLASS=org.liveontologies.pinpointing.DirectSatEncodingUsingElkCsvQuery
POM="$(dirname "$(cd "$(dirname "$0")" && pwd)")/pom.xml"
| bash |
d_bash_9517 | ---
+++
@@ -11,7 +11,7 @@
# Change directory to the same level as this script
-cd `dirname "${0}"`
+cd "$(dirname "${0}")"
# Remove current user.js
rm -f *${USERJSEXT} | bash |
d_bash_9518 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.2%2B8/OpenJDK17U-jdk_x64_linux_hotspot_17.0.2_8.tar.gz"
;;
java18)
- echo "https://github.com/adoptium/temurin18-binaries/releases/download/jdk18-2022-03-10-06-10-beta/OpenJDK18-jdk_x64_linux_hotspot_20... | bash |
d_bash_9519 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
./.cabal-sandbox/bin/cauterize-test \
- crucible --build-cmd="../../.cabal-sandbox/bin/caut-javascript-ref-gen --spec=%s --output=js" \
+ crucible --build-cmd="../../dist/build/caut-javascript-ref-gen/caut-javascript-ref-gen --spec=%s --output=js" \
--run-cmd="node ... | bash |
d_bash_9520 | ---
+++
@@ -10,7 +10,7 @@
# prepare environment
source /cvmfs/alice.cern.ch/etc/login.sh
-eval $(alienv printenv CRMC::v1.5.4-1)
+eval $(alienv printenv CRMC::v1.5.4-3)
# force path to requested output
sed -e s#__CRMC_BASEDIR__#"$CRMC_ROOT"# ${ALICE_PHYSICS}/PWG/MCLEGO/CRMC/crmc_template.param > crmc.param | bash |
d_bash_9521 | ---
+++
@@ -10,9 +10,9 @@
while read 'selected_number'; do
selected_config=$(echo "$ss_config_files" |sed -n "${selected_number}p")
- if [ -e $selected_config ]; then
+ if [ -e "$selected_config" ]; then
echo "Using config [0m[33m${selected_config}[0m."
- ln -sf $selected_config shado... | bash |
d_bash_9522 | ---
+++
@@ -1,38 +1,34 @@
#compdef exercism
-_exercism() {
- local curcontext="$curcontext" state line
- typeset -A opt_args
+local curcontext="$curcontext" state line
+typeset -A opt_args
- local -a options
- options=(configure:"Writes config values to a JSON file."
- download:"Downloads... | bash |
d_bash_9523 | ---
+++
@@ -14,7 +14,7 @@
fi
pyenv install -s 2.7.10
- pyenv virtualenv 2.7.10 conan
+ pyenv virtualenv -f 2.7.10 conan
pyenv rehash
pyenv activate conan
fi | bash |
d_bash_9524 | ---
+++
@@ -1,10 +1,7 @@
#!/bin/bash -x
-
-
-
-
+cf switch-space production || exit
cf map sagan blog interface21.com &
cf map sagan blog springsource.com & | bash |
d_bash_9525 | ---
+++
@@ -1,13 +1,13 @@
#!/bin/bash
-curl -I --connect-timeout 2 http://169.254.169.254/2009-04-04/meta-data
+curl -ILf --connect-timeout 2 http://169.254.169.254/2009-04-04/meta-data
[ "$?" = "0" ] && echo "datasource_list: [ Ec2, None ]" > /etc/cloud/cloud.cfg.d/datasources.cfg && exit 0
-curl -I --connect-... | bash |
d_bash_9526 | ---
+++
@@ -3,4 +3,4 @@
set -o pipefail
set -x
-scriptcs ./baufile.csx -- "$@"
+exec scriptcs ./baufile.csx -- "$@" | bash |
d_bash_9527 | ---
+++
@@ -1,11 +1,15 @@
#!/bin/bash
-echo "----------------------------------------\n"
-echo "====== Starting the provisioning ======\n"
-echo "----------------------------------------\n"
+echo "---------------------------------------"
+echo "====== Starting the provisioning ======"
+echo "----------------------... | bash |
d_bash_9528 | ---
+++
@@ -4,6 +4,7 @@
LXD_SERVERCONFIG_DIR=$(mktemp -d -p "${TEST_DIR}" XXX)
spawn_lxd "${LXD_SERVERCONFIG_DIR}" true
+ ensure_has_localhost_remote "${LXD_ADDR}"
lxc config set core.trust_password 123456
config=$(lxc config show) | bash |
d_bash_9529 | ---
+++
@@ -1,13 +1,13 @@
#!/bin/bash
# start a docker container in the background
-bash docker_start.sh
+sh docker_start.sh
pwd
-bash docker_exec.sh "make build-release"
+sh docker_exec.sh "make build-release"
-bash docker_exec.sh "python3 python/fire_rs/planning/benchmark.py --vns-conf=scripts/benchmarking... | bash |
d_bash_9530 | ---
+++
@@ -5,4 +5,4 @@
$CSDIR/modules_yii_config.sh
# Run tests
-vagrant ssh -c 'cd /var/www/protected/tests/; /var/www/bin/phpunit'
+vagrant ssh -c 'cd /var/www/protected/tests/; /var/www/bin/phpunit --testsuite all --configuration phpunit_ci.xml ' | bash |
d_bash_9531 | ---
+++
@@ -2,8 +2,9 @@
git push mine
+TARGET_BRANCH=${1:-develop}
REPO=$(git config --get remote.origin.url | sed -e 's/git@github.com://' -e 's/.git$//')
FORK=$(git config --get remote.mine.url | sed -e 's/.*://' -e 's/\/.*//')
BRANCH=$(git rev-parse --abbrev-ref HEAD)
-xdg-open "https://github.com/${REPO... | bash |
d_bash_9532 | ---
+++
@@ -1,3 +1,4 @@
##depends:none
-curl -L http://$NIC_MIRROR/pub/sci/molbio/chipster/dist/tools_extras/R/R-3.3.2-vmbin/R-3.3.2_ubuntu-16.04_2016-11-28.tar.gz | tar -xz -C ${TOOLS_PATH}/
+#curl -L http://$NIC_MIRROR/pub/sci/molbio/chipster/dist/tools_extras/R/R-3.3.2-vmbin/R-3.3.2_ubuntu-16.04_2016-11-28.tar.... | bash |
d_bash_9533 | ---
+++
@@ -1,11 +1,19 @@
#!/usr/bin/env bash
+#TODO: ERROR CHECKING JEEZ
mkdir ~/tmp 2> /dev/null
cd ~/tmp
-wget https://sourceforge.net/code-snapshots/svn/o/op/open-cobol/code/open-cobol-code-999-trunk.zip
-unzip open-cobol-code-999-trunk.zip
-cd open-cobol-code-999-trunk/gnu-cobol
+rm -rf open-cobol*
+wget http... | bash |
d_bash_9534 | ---
+++
@@ -28,6 +28,8 @@
brew cask install vlc
brew cask install spotify
brew cask install spotmenu
+brew cask install clipy
+brew cask install rocket
# Inconsolata font, because it's awesome
brew tap caskroom/fonts | bash |
d_bash_9535 | ---
+++
@@ -10,7 +10,6 @@
carbon-copy-cloner
cleanmymac
crashplan
- dash
doxie
dropbox
firefox | bash |
d_bash_9536 | ---
+++
@@ -8,5 +8,5 @@
then
python3 -u run.py
else
- gunicorn run:app --bind 0.0.0.0:8445 --worker-class aiohttp.worker.GunicornUVLoopWebWorker -w ${NUM_WORKERS:-2} --timeout 0
+ gunicorn run:app --bind 0.0.0.0:8445 --worker-class aiohttp.worker.GunicornWebWorker -w ${NUM_WORKERS:-2} --timeout 0
fi | bash |
d_bash_9537 | ---
+++
@@ -9,4 +9,4 @@
# Brandon Myers bmyers@mozilla.com
source /opt/mozdef/envs/mozdef/bin/activate
-/opt/mozdef/envs/mozdef/cron/import_threat_exchange.sh -c /opt/mozdef/envs/mozdef/cron/import_threat_exchange.conf
+/opt/mozdef/envs/mozdef/cron/import_threat_exchange.py -c /opt/mozdef/envs/mozdef/cron/import... | bash |
d_bash_9538 | ---
+++
@@ -13,13 +13,9 @@
set -e
CACHED_DOWNLOAD="${HOME}/cache/neo4j-community-${NEO4J_VERSION}-unix.tar.gz"
-rm -rf "${NEO4J_DIR}"
+mkdir -p "${NEO4J_DIR}"
wget --continue --output-document "${CACHED_DOWNLOAD}" "http://neo4j.com/artifact.php?name=neo4j-community-${NEO4J_VERSION}-unix.tar.gz"
tar -xaf "${CACH... | bash |
d_bash_9539 | ---
+++
@@ -19,6 +19,7 @@
less `: more up-to-date less than what macos provides` \
ngrep `: read network traffic` \
nmap `: network map` \
+ coreutils `: utility for dereferencing symlinks` \
tree `: recursive ls` \
wget `: curl a... | bash |
d_bash_9540 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-if /sbin/ifconfig | egrep -q '^lo[[:space:]]+Link'; then
+if /sbin/ifconfig | egrep -q '^lo[[:alnum:]]*:?[[:space:]]+'; then
echo "loopback interface is configured, getting on with tests"
else
echo "loopback interface is NOT configured, won't run tests" | bash |
d_bash_9541 | ---
+++
@@ -3,10 +3,11 @@
DOTFILES="$HOME/.files"
OS="osx"
-# Symlink files
+# Symlink general files
ln -s "$DOTFILES/.gitconfig" $HOME/
ln -s "$DOTFILES/.gitignore" $HOME/
ln -s "$DOTFILES/.tmux.conf" $HOME/
+ln -s "$DOTFILES/.ssh_config" $HOME/.ssh/config
# Fish config
ln -s "$DOTFILES/fish/config.fish.$... | bash |
d_bash_9542 | ---
+++
@@ -8,6 +8,9 @@
;;
"current")
DOCS_VERSION="latest"
+ ;;
+ "2.x")
+ DOCS_VERSION="2.x"
;;
"1.x")
DOCS_VERSION="1.x" | bash |
d_bash_9543 | ---
+++
@@ -4,7 +4,7 @@
sudo apt-get remove unity-lens-shopping unity-scope-musicstores
# Install packages
-sudo apt-get install git python-dev build-essential libjpeg-dev libpng12-dev zsh gnome-shell synapse gparted gimp ubuntu-restricted-extras vlc ttf-mscorefonts-installer sqlite ruby quicksynergy postgresql-s... | bash |
d_bash_9544 | ---
+++
@@ -23,7 +23,16 @@
REMOTE=$(git rev-parse @{u})
BASE=$(git merge-base @ @{u})
-if [ "$LOCAL" = "$BASE" ]; then
+if [ "$LOCAL" = "$REMOTE" ]; then
+ git checkout -b gh-pages
+ npm install
+ rm -rf build
+ gulp clean build
+ git add build/ -f
+ git commit -m 'Deploying latest to GitHub pag... | bash |
d_bash_9545 | ---
+++
@@ -6,6 +6,6 @@
# is needed to unlock stack frame reservation in `ReservingStackAreas`
java9 \
-cp out \
- --add-exports-private java.base/java.lang=ALL-UNNAMED \
+ --add-opens java.base/java.lang=ALL-UNNAMED \
-XX:-RestrictReservedStack \
$1 | bash |
d_bash_9546 | ---
+++
@@ -12,6 +12,6 @@
-DLLVM_ENABLE_PROJECTS=mlir \
-DLLVM_INSTALL_UTILS=ON \
-DLLVM_OPTIMIZED_TABLEGEN=ON \
- -DLLVM_TARGETS_TO_BUILD=""
+ -DLLVM_TARGETS_TO_BUILD="host"
cmake --build . -- -j$(nproc) | bash |
d_bash_9547 | ---
+++
@@ -27,5 +27,5 @@
~/.nvm \
if type brew &> /dev/null; then
- brew prune
+ brew cleanup
fi | bash |
d_bash_9548 | ---
+++
@@ -29,7 +29,7 @@
}
# FIXME: use exclude-files option
-for f in $(find . -maxdepth 1 -name '.*' -not -name .gitignore -not -name .git -not -name . -print)
+for f in $(find . -maxdepth 1 -name '.*' -not -name .gitignore -not -name .git -not -name . -print|sed 's/^\.\///')
do
src="${SRC_DIR}/${f}"
... | bash |
d_bash_9549 | ---
+++
@@ -8,6 +8,7 @@
# Prevent wpa_supplicant from grabbing our wlan0 interface
echo "disabled=1" >> ${ROOTFS_DIR}/etc/wpa_supplicant/wpa_supplicant.conf
+# Install traffic forwarding rules for iptables
install -m 644 files/30-ipforward.conf ${ROOTFS_DIR}/etc/sysctl.d/30-ipforward.conf
install -m 644 files/i... | bash |
d_bash_9550 | ---
+++
@@ -14,5 +14,5 @@
update-locale LANGE=en_US.UTF-8
locale-gen en_US.UTF-8
apt-get update
-apt-get install -y postgresql libpq-dev npm nodejs curl git
+apt-get install -y postgresql libpq-dev npm nodejs curl git pkg-config
ln -s /usr/bin/nodejs /usr/bin/node | bash |
d_bash_9551 | ---
+++
@@ -1,12 +1,21 @@
#!/bin/bash
echo ">> Building...";
+IS_CI=false;
+if [[ ! -z "${CI}" ]]; then
+ IS_CI=true;
+fi
+echo "app-android/build.sh: IS_CI '${IS_CI}'";
+GRADLE_ARGS="";
+if [ $IS_CI = true ]; then
+ GRADLE_ARGS=" --console=plain";
+fi
DIRECTORY=$(basename ${PWD});
CUSTOM_SETTINGS_GRADLE_FILE="..... | bash |
d_bash_9552 | ---
+++
@@ -7,8 +7,12 @@
# These projects are downloaded from "github.com/user/repo/archive/$VERSION.tar.gz"
K8S_VERSION='v1.0.6'
ETCD_VERSION='v2.0.12'
-FLANNEL_VERSION='v0.5.3'
+FLANNEL_VERSION='v0.5.4'
REGISTRY_VERSION='v2.1.1'
## OTHER PROJECTS ##
GO_VERSION='1.4.2'
+
+# New go version
+#GO_BOOTSTRAP_VERS... | bash |
d_bash_9553 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
FLEETUIREPO=${FLEETUIREPO:-github.com/purpleworks/fleet-ui}
-FLEET_VERSION=${FLEET_VERSION:-v0.9.1}
+FLEET_VERSION=${FLEET_VERSION:-v0.11.5}
DOCKER_IMAGE_VERSION=${DOCKER_IMAGE_VERSION:-"latest"}
| bash |
d_bash_9554 | ---
+++
@@ -14,7 +14,7 @@
export BASE_URL="${URL}"
docker run --rm -e BASE_URL -v $(pwd):/bzt-configs \
-v $(pwd)/../build/performance-artifacts:/tmp/artifacts \
- undera/taurus \
+ blazemeter/taurus \
-o modules.jmeter.properties.base-uri="${BASE_URL}" \
-o reporting.2.dump-xml=/tmp/artifacts/stats.xml ... | bash |
d_bash_9555 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+
+python3 -m pip install pexpect unidecode xmltodict --user
if [ ! -f corenlp-python ]
then | bash |
d_bash_9556 | ---
+++
@@ -25,5 +25,5 @@
sudo echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/testing multiverse" | sudo tee /etc/apt/sources.list.d/mongo-org.list
sudo apt-get update
-sudo apt-get install --yes --allow-unauthenticated mongodb-org-tools daemon
+sudo apt-get install --yes --allow-unauthenticated ... | bash |
d_bash_9557 | ---
+++
@@ -5,7 +5,7 @@
finder () {
echo -n ' '
- find $@ -type f | sort -bdi | xargs echo -n ||:
+ find "$@" -type f | sort -bdi | xargs echo -n ||:
}
echo -n "SILEDATA =" | bash |
d_bash_9558 | ---
+++
@@ -7,7 +7,9 @@
echo -e "\033[0;32mInstalling latest ponyc release\033[0m"
sudo add-apt-repository ppa:ponylang/ponylang -y
sudo apt-get update
- sudo apt-get -V install ponyc -y
+ # NOTE: libpcre2-dev is specified because otherwise
+ # apt refuses to install it and everything fails
+ sudo apt-ge... | bash |
d_bash_9559 | ---
+++
@@ -1,7 +1,11 @@
if [ -n "$TRAVIS_TAG" ]; then # only run conda-build on tags, sometimes takes too long
echo Building conda package...
- conda install conda-build anaconda-client
- conda update -q conda-build
+
+ conda create -n builder conda-build anaconda-client
+ source activate builder
+... | bash |
d_bash_9560 | ---
+++
@@ -20,6 +20,10 @@
cd /data/src/tests/robustness-test
./run-mqtt-cc-robustness-tests.sh -b /data/build/tests -s /data/src
+log "running robustness-test"
+
+./run-robustness-tests.sh -b /data/build/tests -s /data/src
+
END=$(date +%s)
DIFF=$(( $END - $START ))
log "C++ robustness tests time: $DIFF secon... | bash |
d_bash_9561 | ---
+++
@@ -4,6 +4,6 @@
echo 'Taking picture'
# Open shutter
-gphoto2 --camera="Canon EOS 100D"--set-config eosremoterelease=4 --wait-event-and-download=5s --filename "${F}"
+gphoto2 --set-config eosremoterelease=4 --wait-event-and-download=5s --filename "${F}"
echo "Done with pic" | bash |
d_bash_9562 | ---
+++
@@ -6,5 +6,6 @@
rm -rf $DIR/.hg
rm -f $DIR/.hgtags
rm -rf $DIR/bin
+rm -rf $DIR/misc
find $DIR -name '*.vp?' -type f | xargs rm -f
tar jcvf $DIR.tar.bz2 $DIR | bash |
d_bash_9563 | ---
+++
@@ -2,7 +2,7 @@
cat <<EOF
=========================================================================
-this script creates a working directory for the EffectiveTTV production
+this script creates a working directory for EffectiveTTV production
output is in setup.log
=======================================... | bash |
d_bash_9564 | ---
+++
@@ -37,4 +37,4 @@
# Add the SSH key to GitHub
pbcopy < ~/.ssh/id_rsa.pub
echo "SSH key copied to clipboard"
-read -p "Press [Enter] key when you're done..."
+read "?Press [Enter] key when you're done..." | bash |
d_bash_9565 | ---
+++
@@ -12,8 +12,8 @@
export CXX="clang++-3.4";
fi
-sh ./scripts/ci/laszip.sh
-sh ./scripts/ci/liblas.sh
+#sh ./scripts/ci/laszip.sh
+#sh ./scripts/ci/liblas.sh
cmake \
-DCMAKE_BUILD_TYPE=Release \ | bash |
d_bash_9566 | ---
+++
@@ -1,3 +1,2 @@
-wget http://m.weather.com/weather/tomorrow/SFXX0444 -O weather_com.html
-wget http://www.accuweather.com/en/za/stellenbosch/301201/weather-forecast/301201 -O accuweather.html
-
+wget http://m.weather.com/weather/tomorrow/SFXX0444 -O weather_com_$(date +%Y%m%dT%H%M%S).html
+wget http://www.acc... | bash |
d_bash_9567 | ---
+++
@@ -5,7 +5,7 @@
# install some basic packages we need
sudo apt-get -y install ant ant-optional git libev-dev libyaml-dev lsof python-dev python-setuptools python-pip rsync screen wamerican
# install some python modules that we need
-sudo pip install blist cql decorator enum34 flaky futures nose-test-select... | bash |
d_bash_9568 | ---
+++
@@ -15,6 +15,8 @@
rm -rf /tmp/*
rm -f /etc/udev/rules.d/70-persistent-net.rules
+sed -i '/^UUID/d' /etc/sysconfig/network-scripts/ifcfg-enp0s3
+sed -i '/^HWADDR/d' /etc/sysconfig/network-scripts/ifcfg-enp0s3
dd if=/dev/zero of=/EMPTY bs=1M
rm -rf /EMPTY | bash |
d_bash_9569 | ---
+++
@@ -51,6 +51,7 @@
# Install
install_requirements
powerlinefont
+cd $BASE_DIR
echo "Install softwares in /opt"
sudo $BASE_DIR/opt/install.sh | bash |
d_bash_9570 | ---
+++
@@ -13,6 +13,11 @@
sed -i.bak 's@#define CLIENT_SSL_ENABLE@//#define CLIENT_SSL_ENABLE@' user_config.h
cat user_config.h
+cd "$TRAVIS_BUILD_DIR"/ld || exit
+# increase irom0_0_seg size for all modules build
+sed -E -i.bak 's@(.*irom0_0_seg *:.*len *=) *[^,]*(.*)@\1 0x90000\2@' nodemcu.ld
+cat nodemcu.ld
+... | bash |
d_bash_9571 | ---
+++
@@ -13,6 +13,7 @@
cp files/cf_cli.completion.bash ~/.bash_it/completion/available
~/.bash_it/install.sh --silent
source ~/.bash_profile
+source ~/.bash_it/bash_it.sh
bash-it enable completion git
bash-it enable plugin ssh
bash-it enable plugin rbenv | bash |
d_bash_9572 | ---
+++
@@ -2,15 +2,15 @@
make tests
-for file in $(ls tests/bin); do
+for file in $(find tests/bin -type f -maxdepth 1); do
echo "Testing " $file
- if valgrind --error-exitcode=0 tests/bin/$file $TEST_ARGS; then
+ if valgrind --error-exitcode=0 $file $TEST_ARGS; then
echo "Error:" $file "leaking memory" 1>... | bash |
d_bash_9573 | ---
+++
@@ -38,3 +38,7 @@
log_error "setup has finished abnormally."
exit -1
fi
+
+if [ -f /etc/sysconfig/network ]; then
+ sed -i -e 's/HOSTNAME=.*/HOSTNAME=localhost.localdomain/' /etc/sysconfig/network
+fi | bash |
d_bash_9574 | ---
+++
@@ -18,3 +18,4 @@
StrictHostKeyChecking no
EOF
+chmod 600 ~/.ssh/config | bash |
d_bash_9575 | ---
+++
@@ -22,5 +22,5 @@
set -x -e
cat ${toBePatchedFile}.orig > ${toBePatchedFile}
# Patch the files:
- patch -t -p0 $patchFile
+ patch -t -p0 <$patchFile
} | bash |
d_bash_9576 | ---
+++
@@ -3,27 +3,43 @@
if [ -z "$1" ]; then
>&2 echo "Missing sync directory name."
exit 1
+else
+ name="$1"
fi
-mkdir -p SYNC/$1/META
+domissing=0
+if [ x"$2" = "x--missing-only" ]; then
+ echo "Only fetching missing metadata"
+ domissing=1
+fi
-num_total=$(find "SYNC/$1/ID/" -maxdepth 1 -name "*.mkv... | bash |
d_bash_9577 | ---
+++
@@ -1,20 +1,16 @@
#!/usr/bin/env bash
. src/misc.sh
-
-echo "Remove local galaxy dir..."
-echo "=========================="
-rm -rf $galaxy_dir
-echo ""
-
-echo "Remove local shed dir..."
-echo "========================"
-rm -rf $shed_dir
-echo ""
echo "Stop FTP server..."
echo "=================="
sud... | bash |
d_bash_9578 | ---
+++
@@ -2,3 +2,13 @@
./cosy.lua server:filter "return function (yield, store) for i = 1, 10 do yield (i, i) end end"
./cosy.lua server:filter "return function (yield, store) for i = 1, 10 do yield (i, i) end; error 'abcd' end"
+./cosy.lua server:filter 'return function (yield, store)
+ for key, user in sto... | bash |
d_bash_9579 | ---
+++
@@ -7,12 +7,12 @@
echo "Woops! no git repository found in `pwd`"
exit
fi
-read -p "Are you sure you want to delete '"$1"'? (y/n): " answer
+read -p "Are you sure you want to delete '"$branch_name"'? (y/n): " answer
if [ "$answer" = "y" ]; then
git checkout master;
git pull;
git branch --delete "$... | bash |
d_bash_9580 | ---
+++
@@ -17,9 +17,10 @@
for c in $CATEGORY; do
for n in $(seq 0 9); do
START=$[$START+1]
+ SUF=$(printf "%0.2x\n" $START)
HOST=$c$n
IP=$IPADDRESS$START
- MAC=$MACADDR$START
+ MAC=$MACADDR$SUF
echo "<host mac='$MAC' name='$HOST' ip='$IP'/>"
done
done | bash |
d_bash_9581 | ---
+++
@@ -26,6 +26,10 @@
_setProps ${portalProps} ${2} ${3}
}
+ setTestProps(){
+ _setProps ${testProps} ${2} ${3}
+ }
+
if [[ ! ${bundleDir} ]]; then
local bundleDir=$(BaseVars returnBundleDir ${2})
else
@@ -36,6 +40,7 @@
local appServerProps=${_buildDir}/app.server.${HOSTNAME}.properties
local ... | bash |
d_bash_9582 | ---
+++
@@ -2,12 +2,15 @@
function parse_git_branch() {
local BRANCH=$(git branch -a 2> /dev/null | grep "^* " | sed -e 's/^\* //')
- if [[ "$BRANCH" == "(no branch)" ]]; then
- BRANCH=$(git name-rev HEAD 2> /dev/null | sed 's#HEAD \(.*\)#*\1#')
- fi
if [[ -n "$BRANCH" ]]; then
- echo " $PR_LIGHT_B... | bash |
d_bash_9583 | ---
+++
@@ -8,7 +8,7 @@
jpegoptim --strip-all *.jpg;
# Optimize all SVGs
- for svg in `ls *.svg`;
+ for svg in *.svg;
do
mv $svg $svg.opttmp;
scour --create-groups \
@@ -26,10 +26,12 @@
rm *.opttmp
# Check all subfolders
- for dir in `ls -d */`;
+ for dir in */
do
- recursive_optimize_images $... | bash |
d_bash_9584 | ---
+++
@@ -18,6 +18,8 @@
eval $(docker-machine env ${MACHINE_NAME})
export DOCKER_IP=$(docker-machine ip ${MACHINE_NAME})
+else
+ export DOCKER_IP=0.0.0.0
fi
| bash |
d_bash_9585 | ---
+++
@@ -1,12 +1,14 @@
include array.util.ArrayUtil
include array.validator.ArrayValidator
+
+include file.name.util.FileNameUtil
include string.util.StringUtil
include string.validator.StringValidator
FileUtil(){
construct(){
- local _path=${1}
+ local _path=$(FileNameUtil getPath nix ${1})
local ... | bash |
d_bash_9586 | ---
+++
@@ -1,3 +1,5 @@
+# Clear down
+curl -XDELETE 'http://localhost:9200/alerts'
# Create an index called alerts
curl -XPUT 'http://localhost:9200/alerts'
# Create a type mapping called alert | bash |
d_bash_9587 | ---
+++
@@ -11,7 +11,7 @@
# bosh2 int ../deployment-vars/environments/${ENVIRONMENT_NAME}/deployment-vars-${DEPLOYMENT_NAME}.yml \
# --path /default_ca/certificate > /usr/local/share/ca-certificates/bits-service-ca.crt
# update-ca-certificates --verbose
-bosh2 int deployment-vars/environments/${ENVIRONMENT_NAM... | bash |
d_bash_9588 | ---
+++
@@ -35,9 +35,9 @@
-s:../doc/documentation.xml ||
fatal "could not generate documentation"
-cp ../ext/structural-1.0.0/*.css . || fatal "could not copy CSS"
-cp ../doc/*.css . || fatal "could not copy CSS"
-cp -r ../target/apidocs/ javadoc || fatal "coult not insert javadoc"
+cp ../e... | bash |
d_bash_9589 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
echo "GITHUB_REF is $GITHUB_REF"
-TAG="${GITHUB_REF/\/refs\/tags\//}"
+TAG="${GITHUB_REF/refs\/tags\//}"
echo "TAG is $TAG"
if ! [ -x "$(command -v poetry)" ]; then
echo 'Poetry not found, activating venv' | bash |
d_bash_9590 | ---
+++
@@ -8,4 +8,8 @@
-e "s/SOGoExternalAvatarsEnabled = NO;/SOGoExternalAvatarsEnabled = YES;/" \
-e "s/SharedModification.js/GroupwareModification.js/" \
/opt/local/etc/sogo/sogo.conf
+
+ gsed -i \
+ -e "s/\(rewrite.*usersSearch @404 last\)/#\1/" \
+ /opt/local/etc/nginx/nginx.conf
fi | bash |
d_bash_9591 | ---
+++
@@ -11,7 +11,7 @@
echo ""
for year in 2010 2011 2012 2013 2014 2015; do
for month in 01 02 03 04 05 06 07 08 09 10 11 12; do
- grep -E " - [0-9]{1,2}/${month}/${year}"
+ grep -E " - [0-9]{1,2}/${month}/${year}" ${name}
done
done
done | bash |
d_bash_9592 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
rm -rf docker-build
-docker build -t asimov-deploy/asimov-deploy:build . -f Dockerfile.build
+docker build -f Dockerfile.build -t asimov-deploy/asimov-deploy:build .
docker run --rm asimov-deploy/asimov-deploy:build
docker create --name extract asimov-deploy/asimov-deploy:bui... | bash |
d_bash_9593 | ---
+++
@@ -3,7 +3,7 @@
# avoid failures if no packages are passed in to yum install
if [ "$1" = 'install' ]; then
shift
- if [ x"$@" = 'x' ]; then
+ if [ x"$*" = 'x' ]; then
exit
fi
yum -y install "$@" | bash |
d_bash_9594 | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
OSMIUM_REPO=https://github.com/osmcode/libosmium.git
-OSMIUM_TAG=v2.5.4
+OSMIUM_TAG=v2.6.1
VARIANT_REPO=https://github.com/mapbox/variant.git
VARIANT_TAG=v1.0 | bash |
d_bash_9595 | ---
+++
@@ -4,9 +4,6 @@
--accept-license \
--expert \
--no-distro-scripts \
- --no-glvnd-egl-client \
- --no-glvnd-glx-client \
- --no-install-libglvnd \
--no-kernel-module \
--no-kernel-module-source \
--no-nvidia-modprobe \ | bash |
d_bash_9596 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
# Install the kernel source for L4T
-sudo ./scripts/getKernelSources.sh
+sudo ./scripts/getKernelSources_noGUI.sh | bash |
d_bash_9597 | ---
+++
@@ -29,3 +29,7 @@
# clone a repo used later for tests
git clone https://github.com/tmux-plugins/tmux-example-plugin /home/vagrant/tmux-example-plugin
chown -R vagrant:vagrant /home/vagrant/tmux-example-plugin
+
+sudo locale-gen "en_US.UTF-8"
+sudo echo LC_ALL=en_US.UFT-8 > /etc/default/locale
+sudo echo LA... | bash |
d_bash_9598 | ---
+++
@@ -16,8 +16,7 @@
antigen bundle golang
antigen bundle zsh-users/zsh-syntax-highlighting
-#antigen theme crunch
-antigen theme bureau
+antigen theme crunch
antigen apply
| bash |
d_bash_9599 | ---
+++
@@ -1,11 +1,6 @@
#!/bin/bash
-id=$1
-if [ $id -lt 10 ]; then
- id="00$id";
-elif [ $id -lt 100 ]; then
- id="0$id";
-fi
+id=`printf %03d $1`
ffmpeg -i http://192.168.1.141:60$id -vcodec copy -acodec copy -t 60 /share/recording/team$id-`date +%s`.avi > /dev/null 2> /dev/null
mplayer /home/analyst10/Sona... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.