document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_16000 | ---
+++
@@ -1,9 +1,4 @@
# Set up Radical Pilot execution environment
-export SAGA_VERBOSE=debug
-export RADICAL_PILOT_VERBOSE=debug
-export RADICAL_UTILS_VERBOSE=debug
-export RADICAL_DEBUG_FILE=`pwd`/logs/radical_debug.log
-export RADICAL_PILOT_LOG_TARGETS=$RADICAL_DEBUG_FILE
-export SAGA_LOG_TARGETS=$RADICAL_DEBUG... | bash |
d_bash_16001 | ---
+++
@@ -20,8 +20,14 @@
source "$RCFILE"
fi
+if [ -z "$MVN" ]
+then
+ MVN=mvn
+fi
+
echo "JAVA_HOME=$JAVA_HOME"
echo "settings=$SETTINGSFILE"
echo "user=$ARAKHNEORG_USER"
+echo "MVN=$mvn"
-exec mvn deploy -DskipTests -Dcheckstyle.skip=true --settings "$SETTINGSFILE"
+exec $MVN deploy -DskipTests -Dchecks... | bash |
d_bash_16002 | ---
+++
@@ -12,7 +12,9 @@
mingw-w64-$MSYS2_ARCH-gtk3 \
mingw-w64-$MSYS2_ARCH-pkg-config \
mingw-w64-$MSYS2_ARCH-cairo \
+ mingw-w64-$MSYS2_ARCH-gobject-introspection \
mingw-w64-$MSYS2_ARCH-python3 \
+ mingw-w64-$MSYS2_ARCH-python3-importlib-metadata \
mingw-w64-$MSYS2_ARCH-python3-gobj... | bash |
d_bash_16003 | ---
+++
@@ -20,4 +20,11 @@
- inspected from the image on-disk after it is pulled
- installed packages, creation date, architecture, environment variables, detected licenses, etc.
+
+---
+
+- [Automated \`update-remote.sh\`:
+ 
- apt-get install -y open-vm-tools;
- mkdir /mnt/hgfs;
- echo "platform specific vmware.sh executed";
-esac
+# Ensure we have kernel headers installed
+apt-get install -yq linux-headers-generic
+
+# set a defau... | bash |
d_bash_16005 | ---
+++
@@ -2,7 +2,7 @@
echo
echo --- MPI deployment example ---------------------------------------------
-
+lamboot
workingDir=`dirname $0`
. $workingDir/env.sh
PROACTIVE=$workingDir/../.. | bash |
d_bash_16006 | ---
+++
@@ -6,4 +6,4 @@
. "$HOME_DIR"/islandora/install/configs/variables
fi
-cp "$HOME_DIR"/islandora/camel/config/islandora.cfg /opt/karaf/etc
+cp "$HOME_DIR"/islandora/camel/sync/src/main/cfg/ca.islandora.sync.cfg /opt/karaf/etc | bash |
d_bash_16007 | ---
+++
@@ -6,8 +6,11 @@
echo '<?php
-function test_func($ste) {
-
+use kch42\ste\STECore;
+
+function test_func(STECore $ste)
+{
+
}' > "$1/code.php"
echo 'have | bash |
d_bash_16008 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
crVersion="v0.2.3"
chartDir="./charts/orbit" | bash |
d_bash_16009 | ---
+++
@@ -1,2 +1,3 @@
#!/usr/bin/env bash
-find ./.. -type f -name 'autogenerated_*' | xargs sed -i '' -e 's/.*\/\/ ===== BEGIN of all query sets.*/\/\/ notest\'$'\n&/'
+find ./.. -type f -name 'autogenerated_*' | xargs sed -i.bak -e 's/.*\/\/ ===== BEGIN of all query sets.*/\/\/ notest\'$'\n&/'
+find ./.. -type f... | bash |
d_bash_16010 | ---
+++
@@ -2,5 +2,5 @@
PS2="> "
# terminal title
-trap 'printf "\033]2;$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//g"): $PWD\007"' DEBUG
+# trap 'printf "\033]2;$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//g"): $PWD\007"' DEBUG
| bash |
d_bash_16011 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
-if foobar_loc="$(type -p "git")" && [ -n "$foobar_loc" ]; then
+if git_loc="$(type -p "git")" && [ -n "$git_loc" ]; then
git init
git add .
git commit -a -m "Generate project structure with cookiecutter." | bash |
d_bash_16012 | ---
+++
@@ -3,5 +3,5 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $DIR/setenv.sh
-$DC -p webitel -f "${DIR}/srv/docker-compose.yml" rm -f
+$DC -p webitel -f "${DIR}/srv/docker-compose.yml" down -v
$DC -p webitel -f "${DIR}/srv/docker-compose.yml" up -d | bash |
d_bash_16013 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/bash -e
+#
# Summary
# gd-sum.sh - brief sum of line additions and deletions in a git
#
@@ -13,6 +14,7 @@
# l = lines insert or deleted
# Format:
# f:l
+#
git diff --shortstat | \
awk -f <(cat - <<-'EOD' | bash |
d_bash_16014 | ---
+++
@@ -1,6 +1,4 @@
#!/bin/sh
-
-set -x
if [ ! $# == 1 ]; then
echo "Usage: $0 <release_version>"
@@ -27,5 +25,15 @@
zip -u -r "$RELEASE_ZIP" epgp/epgp.toc
-echo "Release file at $RELEASE_ZIP"
-echo "Now you can tag this release by executing: svn import \"$EPGP_DIR/epgp\" https://epgp.googlecode.com/s... | bash |
d_bash_16015 | ---
+++
@@ -1,7 +1,7 @@
if [[ $WEBDRIVER == "chrome_driver" ]]
then
cd ~/src
- sudo aptitude -y -q install unzip chromium-browser
+ sudo apt-get -y -q install unzip chromium-browser
wget http://chromedriver.storage.googleapis.com/2.8/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
... | bash |
d_bash_16016 | ---
+++
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
-wget "http://eur-lex.europa.eu/eurlex-ws?wsdl" -O eurlex-ws.wsdl
-wget "http://eur-lex.europa.eu/eurlex-ws?xsd=3" -O eurlex-ws_3.xsd
-wget "http://eur-lex.europa.eu/eurlex-ws?xsd=2" -O eurlex-ws_2.xsd
-wget "http://eur-lex.europa.eu/eurlex-ws?xsd=1" -O eurlex-ws_1.xsd
+wget... | bash |
d_bash_16017 | ---
+++
@@ -7,10 +7,10 @@
PS3='ssh: '
options=($(curl -s http://172.20.0.1:5000/discovery/interfaces | \
- jq -re ".interfaces [$i][$i].IPv4" | grep -v "127.0.0.1" | sort))
+ jq -re ".interfaces [$i][$i].IPv4" 2>/dev/null | grep -v "127.0.0.1" | sort))
if [ $? -ne 0 ]
then
- ... | bash |
d_bash_16018 | ---
+++
@@ -9,7 +9,7 @@
if [[ "heat_user_domain" != "$CURRENT_HEAT_DOMAIN_NAME" ]]; then
openstack domain create heat_user_domain
openstack user create --domain heat_user_domain heat_domain_admin --password ${HEAT_DOMAIN_ADMIN_PASSWORD}
- openstack role add --domain heat_user_domain --us... | bash |
d_bash_16019 | ---
+++
@@ -1,5 +1,4 @@
#!/usr/bin/env bash
-pip install scikit-learn
wget "https://raw.githubusercontent.com/akallio1/science-days-2017/master/tieteen-paivat-2017.ipynb"
rm download.sh | bash |
d_bash_16020 | ---
+++
@@ -15,7 +15,7 @@
touch .
-git add .
+git add -A .
git commit -m "rebuild pages at ${rev}"
git push -q upstream HEAD:gh-pages | bash |
d_bash_16021 | ---
+++
@@ -13,6 +13,10 @@
pkg_include_dirs=(include Include)
pkg_interpreters=(bin/python bin/python2 bin/python2.7)
+do_prepare() {
+ sed -i.bak 's/#zlib/zlib/' Modules/Setup.dist
+}
+
do_build() {
./configure --prefix=${pkg_prefix} \
--enable-shared | bash |
d_bash_16022 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
-version="20.10.10"
+version="20.10.11"
echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz"; | bash |
d_bash_16023 | ---
+++
@@ -8,8 +8,7 @@
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
fi
-
sudo apt-get install oracle-java8-installer
- sudo apt-get install oracle-java8-set-default
+ sudo apt-get install oracle-java8-set-default maven ant
fi | bash |
d_bash_16024 | ---
+++
@@ -32,7 +32,7 @@
# Register the function so it is called whenever the working
# directory changes.
autoload add-zsh-hook
- add-zsh-hook chpwd update_terminal_cwd
+ add-zsh-hook precmd update_terminal_cwd
# Tell the terminal about the initial directory.
update_terminal_cwd | bash |
d_bash_16025 | ---
+++
@@ -1,26 +1,31 @@
-# Based on ssh-agent code
-
local GPG_ENV=$HOME/.gnupg/gpg-agent.env
-function start_agent {
- /usr/bin/env gpg-agent --daemon --enable-ssh-support --write-env-file ${GPG_ENV} > /dev/null
- chmod 600 ${GPG_ENV}
- . ${GPG_ENV} > /dev/null
+function start_agent_nossh {
+ eval $(/usr/... | bash |
d_bash_16026 | ---
+++
@@ -6,6 +6,7 @@
sidekiq="${run_dir}/sidekiq"
lib_dir="${run_dir}/../lib"
worker="${lib_dir}/mforwd/worker.rb"
+threads=1
RUBYLIB=${RUBYLIB:-}
if [ "${RUBYLIB}" = "" ]; then
@@ -14,7 +15,7 @@
RUBYLIB=${lib_dir}:${RUBYLIB}
fi
-exec bundle exec ${sidekiq} -r ${worker}
+exec bundle exec ${sidekiq} -c... | bash |
d_bash_16027 | ---
+++
@@ -4,14 +4,14 @@
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
-die {
+die() {
echo "$0: error: "\
"This script must be run from the root of a flutter engine checkout "\
"(containing src/flutter/ ... | bash |
d_bash_16028 | ---
+++
@@ -11,6 +11,7 @@
source ~/.rvm/scripts/rvm
rvm use $RVM_RUBY
+gem install bundler
echo "Installing all gem dependencies"
bundle install | bash |
d_bash_16029 | ---
+++
@@ -5,8 +5,15 @@
NAME="$(basename "$0")"
+# clIcdGetPlatformIDsKHR is only for ICDs, not for ICD Loaders
+# clSetPrintfCallback: CL 1.2, never found...
+# clCreateEventFromGLsyncKHR: CL 1.1, never found...
./run_dummy_icd_through_our_ICDL | \
- tee >(grep "^-1 :" > "$NAME".error )
+ tee >(grep "^-1 :" \... | bash |
d_bash_16030 | ---
+++
@@ -2,3 +2,4 @@
apt-get -y install nodejs
curl -L --insecure https://www.npmjs.org/install.sh | bash
npm install -g gulp
+chown -R vagrant:vagrant /home/vagrant/.config | bash |
d_bash_16031 | ---
+++
@@ -19,7 +19,7 @@
mkdir egnyte-local
# Download data
-sudo mount.davfs pda.egnyte.com/webdav egnyte -o ro
+sudo mount.davfs https://pda.egnyte.com/webdav egnyte -o ro
screen rsync -rv egnyte/Shared/PDA/* egnyte-local/
# Download website | bash |
d_bash_16032 | ---
+++
@@ -23,7 +23,7 @@
install_cask keybase
install_cask postman
install_cask slack
-install_cask zoomus
+install_cask zoom
install_cask vlc
echo "Installing Quick Look plugins..." | bash |
d_bash_16033 | ---
+++
@@ -3,10 +3,10 @@
# This should be run from the root of the mifos source tree:
# $ ./src/org/mifos/api/TestClient.sh <LoanId>
-if [ -z $MIFOS_HOME ]
+if [ -z "$MIFOS_HOME" ]
then MIFOS_HOME=`pwd`
fi
-echo $MIFOS_HOME
+#echo $MIFOS_HOME
-java -cp $MIFOS_HOME/conf:$MIFOS_HOME/lib/hibernate3.jar:$... | bash |
d_bash_16034 | ---
+++
@@ -5,4 +5,6 @@
cp /var/www/app/etc/local.$APPLICATION_ENV.xml /var/www/app/etc/local.xml
fi
+chmod -R 770 /var/www/media /var/www/var
+
/usr/bin/supervisord | bash |
d_bash_16035 | ---
+++
@@ -6,4 +6,4 @@
exit 1
fi
-xcversion install "$XCODE_VERSION"
+/usr/local/bin/xcversion install "$XCODE_VERSION" | bash |
d_bash_16036 | ---
+++
@@ -1,14 +1,12 @@
#!/bin/sh
-PUBLIC_NETWORK_CIDR=10.0.0.0/24
-START_IP_ADDRESS=10.0.0.201
-END_IP_ADDRESS=10.0.0.250
-DNS_RESOLVER=10.0.0.1
-PUBLIC_NETWORK_GATEWAY=10.0.0.1
+PUBLIC_NETWORK_CIDR=10.2.0.0/24
+START_IP_ADDRESS=10.2.0.201
+END_IP_ADDRESS=10.2.0.250
neutron net-create public --router:externa... | bash |
d_bash_16037 | ---
+++
@@ -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_16038 | ---
+++
@@ -8,14 +8,14 @@
# Set up the virtual environment
python $DIR/install_virtualenv.py $1
- # An empty directory is needed here otherwise things error later
- mkdir $1/lib/python`python -V 2>&1 | cut -d" " -f2`/site-packages/molly/media
-
# Go inside the Python virtual environment... | bash |
d_bash_16039 | ---
+++
@@ -15,5 +15,4 @@
echo
echo "Setting global Git configurations"
git config --global core.editor /usr/bin/vim
-git config --global push.default matching
git config --global transfer.fsckobjects true | bash |
d_bash_16040 | ---
+++
@@ -5,9 +5,14 @@
# get current directory
CHRUBY_DIR=`dirname $BASH_SOURCE`
+# Use chruby and Ruby to generate a list of Rubies to install
# $ chruby | ruby -n -e 'puts $_.gsub(/^[^\w]+|-p[0-9]+|\n/, "").gsub("-", " ")' > ~/.dotfiles/ruby/rubies.txt
-for ruby_version in `cat $CHRUBY_DIR/rubies.txt`; do
+#... | bash |
d_bash_16041 | ---
+++
@@ -2,7 +2,7 @@
if [ "$ENV" = "ci" ]
then
- git-crypt unlock ~/keys/toxictest-gcrypt.key
+ git-crypt unlock ~/.keys/toxictest-gcrypt.key
fi
export DISPLAY=:99 | bash |
d_bash_16042 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
-rsync -arz metrics.torproject.org::metrics-recent in
+rsync -arz --delete metrics.torproject.org::metrics-recent in
ant run >> log
| bash |
d_bash_16043 | ---
+++
@@ -3,9 +3,11 @@
set -ex
source shared.sh
-VERSION=7.51.0
+VERSION=7.66.0
-curl http://cool.haxx.se/download/curl-$VERSION.tar.bz2 | tar xjf -
+curl https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc/curl-$VERSION.tar.xz \
+ | xz --decompress \
+ | tar xf -
mkdir curl-build
cd curl-buil... | bash |
d_bash_16044 | ---
+++
@@ -1,8 +1,13 @@
#!/bin/bash
if ! [ "$(id 'fuller')" ]; then
- echo "creating user fuller"
- useradd --no-create-home --system --user-group "fuller"
+ if [ "$(grep -q "\bfuller\b" /etc/group)" ]; then
+ echo "creating user fuller and adding to fuller group"
+ useradd --no-create-home --system -g ... | bash |
d_bash_16045 | ---
+++
@@ -28,6 +28,7 @@
do
PYENV_VERSION=$version python -m unittest test_pyloc
done
+rm -rf dist build pyloc.egg-info
python setup.py sdist
python setup.py bdist_wheel --universal
twine upload dist/* | bash |
d_bash_16046 | ---
+++
@@ -21,7 +21,14 @@
alias md='mkdir -p'
alias rd=rmdir
-alias d='dirs -v | head -10'
+function d () {
+ if [[ -n $1 ]]; then
+ dirs "$@"
+ else
+ dirs -v | head -10
+ fi
+}
+compdef _dirs d
# List directory contents
alias lsa='ls -lah' | bash |
d_bash_16047 | ---
+++
@@ -4,7 +4,7 @@
PATH="$PATH:/opt/local/bin:/usr/local/bin:/usr/local/subversion/bin:/sw/bin"
REVISION=`svnversion .`
echo "*** Building Growl Revision: $REVISION"
-mkdir -p `dirname $SCRIPT_OUTPUT_FILE_0`
+mkdir -p "`dirname $SCRIPT_OUTPUT_FILE_0`"
#SVN_REVISION is a string because it may look like "4168M... | bash |
d_bash_16048 | ---
+++
@@ -1,6 +1,6 @@
# Tweaks from Github
-export RUBY_HEAP_MIN_SLOTS=1000000
-export RUBY_HEAP_SLOTS_INCREMENT=1000000
+export RUBY_HEAP_MIN_SLOTS=$((1e6))
+export RUBY_HEAP_SLOTS_INCREMENT=$((1e6))
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
-export RUBY_GC_MALLOC_LIMIT=100000000
-export RUBY_HEAP_FREE_MIN=500000
+... | bash |
d_bash_16049 | ---
+++
@@ -6,14 +6,17 @@
BUNDLE=linux_portable
+# Place download_cache next the source tree, which is usually build/src
+DOWNLOAD_CACHE=$(dirname $(readlink -f $0))/../../download_cache
+
rm -rf out || true
mkdir out
mkdir out/Default
pushd $(dirname $(readlink -f $0))
-mkdir download_cache
-python3 -m b... | bash |
d_bash_16050 | ---
+++
@@ -18,6 +18,9 @@
for i in $(git ls-files -- "_*"); do
ruby $i > dist/$i
[ $? -eq 0 ] || exit 1
+ zshbuild=$(echo $i | tr _ ,)
+ _VM_USE_ZSH=true ruby $i > dist/$zshbuild
+ [ $? -eq 0 ] || exit 1
done
git add dist
git commit -m "Add dist files for ${release_series}${current_release}" | bash |
d_bash_16051 | ---
+++
@@ -12,6 +12,10 @@
then FLAGS="-fsanitize=address -fsanitize=undefined -fsanitize-blacklist=/scratch/source/trilinos/release/DataTransferKit/scripts/undefined_blacklist.txt"
# Suppress leak sanitizer on functions we have no control of.
export LSAN_OPTIONS=suppressions=/scratch/source/trilinos/release... | bash |
d_bash_16052 | ---
+++
@@ -3,7 +3,7 @@
for name in $(find packages -name node_modules -prune -o -name 'cardpay-subgraph' -prune -o -name 'tsconfig.json' -print); do
{
cd $(dirname $name)
- if [[ $name == *"boxel"* || $name == *"web-client"* || $name == *"ssr-web"* || $name == *"safe-tools-client"* ]] ; then
+ if grep -q "@... | bash |
d_bash_16053 | ---
+++
@@ -1,4 +1,8 @@
#!/bin/bash
+
+# You may need to do something like this:
+# env JAVA_HOME=/usr/lib/jvm/java-6-sun ./build.sh
+
JNI_DIR=${JAVA_HOME}/include
set -x
YAZ_CONFIG=yaz-config | bash |
d_bash_16054 | ---
+++
@@ -23,7 +23,7 @@
# ccze - missing libpcre.so.0()(64bit)
#Some metrics gathering tools
-#yum -y install apachetop atop dstat sysstat glances iotop smartmontools
+yum -y install apachetop atop dstat sysstat glances iotop smartmontools
#Install ag
#rpm -Uvhi http://swiftsignal.com/packages/centos/6/x86_... | bash |
d_bash_16055 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-DAYMONTH=`date +"%Y%M%d_%H%M%S"`
+DAYMONTH=`date +"%Y%m%d_%H%M%S"`
/bin/tar -czf /root/digestbot/BackUpDigestLog/backup_digest_log_$DAYMONTH.tar.gz -C /root/digestbot/DigestBot/ DigestBotStackLog.json
# Backup rotation, default 100 files | bash |
d_bash_16056 | ---
+++
@@ -5,6 +5,7 @@
pkg_file="$1"
pkg_ident="$(gpg --decrypt $pkg_file 2>/dev/null \
| tar xOf - --wildcards --no-anchored 'IDENT')"
+pkg_sha="$(openssl dgst -sha256 $pkg_file | awk '{ print $2 }')"
set -x
-${WGET:-wget} --post-file=$pkg_file -O- $BLDR_REPO/pkgs/$pkg_ident
+${WGET:-wget} --post-file=$pkg_... | bash |
d_bash_16057 | ---
+++
@@ -1,5 +1,7 @@
TEST="$1"
+
+PATH=$PATH:$HOME/.meteor/
if [ "$TEST" = "unit" ]; then
echo Run unit and integration test | bash |
d_bash_16058 | ---
+++
@@ -31,6 +31,11 @@
BuildPackage box2d
BuildPackage xml2
BuildPackage yajl
+BuildPackage mng
+BuildPackage lcms
+BuildPackage DevIL
+BuildPackage physfs
+BuildPackage mpg123
echo "@@@BUILD_STEP ${NACL_ARCH} Summary@@@"
if [[ $RESULT != 0 ]] ; then
@@ -40,4 +45,3 @@
echo -e "$MESSAGES"
exit $RESULT
- | bash |
d_bash_16059 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-composer install --prefer-source
+composer install --prefer-dist
./vendor/jackalope/jackalope-jackrabbit/bin/jackrabbit.sh | bash |
d_bash_16060 | ---
+++
@@ -26,5 +26,5 @@
fi
# Run the same commands Travis runs by default
-R CMD build --no-build-vignettes --no-manual rpack
-R CMD check --no-build-vignettes --no-manual --as-cran rpack
+R CMD build --no-build-vignettes --no-manual receptormarker
+R CMD check --no-build-vignettes --no-manual --as-cran recepto... | bash |
d_bash_16061 | ---
+++
@@ -3,8 +3,11 @@
Mod=gir2swift
if [ -e /usr/lib/libxml2.2.dylib ]; then
TOOLCHAIN=`xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
- LINKFLAGS='-Xlinker -lxml2.2'
- CCFLAGS="-Xcc -I${TOOLCHAIN}/usr/include -Xcc -I${TOOLCHAIN}/usr/include/libxml2"
+ if ! [ -e ${TOOLCHAIN}... | bash |
d_bash_16062 | ---
+++
@@ -2,6 +2,7 @@
# Do all of this and then save a snapshot
sudo apt-get update
sudo apt-get install python-pip
+sudo apt-get install ghostscript
sudo apt-get install build-essential python-dev python-setuptools \
python-numpy python-scipy \
libatlas-dev libatlas3... | bash |
d_bash_16063 | ---
+++
@@ -1,5 +1,5 @@
# Set common applications.
-export EDITOR="vim"
+export EDITOR="nvim"
# Enable colors on the macOS terminal.
export CLICOLOR=1 | bash |
d_bash_16064 | ---
+++
@@ -1,2 +1,5 @@
#!/usr/bin/env sh
-for f in $(ls *.sh); do ./$f; done
+for f in $(ls *.sh); do
+ echo "Executing '$f'"
+ ./$f
+done | bash |
d_bash_16065 | ---
+++
@@ -16,3 +16,4 @@
sudo apt-get update
fi
sudo apt-get install -y docker-ce docker-compose
+systemctl enable docker | bash |
d_bash_16066 | ---
+++
@@ -38,7 +38,8 @@
grep '$query' $CELERYD_LOGFILE | \
grep 'Got task from broker:' | \
perl -nle'
- /^\[(.+?): INFO/; print \$1' | \
+ /^\[(.+?): INFO.+?Got task from broker:(.+?)\s*/;
+ print \"[\$1] $host \$2\"' | \
... | bash |
d_bash_16067 | ---
+++
@@ -2,6 +2,7 @@
if grep -q "microsoft" /proc/version &>/dev/null; then
# Requires: https://sourceforge.net/projects/vcxsrv/ (or alternative)
export DISPLAY="$(/sbin/ip route | awk '/default/ { print $3 }'):0"
+ export LIBGL_ALWAYS_INDIRECT=1
fi
# WSL 1 specific settings. | bash |
d_bash_16068 | ---
+++
@@ -11,4 +11,5 @@
^^^^^^^^^^^See the above git status to figure out the problem^^^^^^^^^^
#######################################################################
EOF
+ exit 1
fi | bash |
d_bash_16069 | ---
+++
@@ -19,5 +19,5 @@
echo "Restart mysql..."
sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
-sudo mysql -e "create schema if not exists \`nabu-3\` default charset set='utf8mb4' default collate='... | bash |
d_bash_16070 | ---
+++
@@ -1,12 +1,13 @@
#!/bin/sh
exec system-docker run --rm --privileged \
- --pid host \
- --net host \
- --ipc host \
- -v /mnt:/mnt:shared \
- -v /media:/media:shared \
- -v /dev:/host/dev \
- -v /run:/run \
- -v /etc/iscsi:/etc/iscsi \
- iscsi-tools $(bas... | bash |
d_bash_16071 | ---
+++
@@ -3,22 +3,22 @@
# LUA must be "Lua 5.1", "Lua 5.2" or "LuaJIT 2.0".
if [ "$LUA" == "LuaJIT 2.0" ]; then
- curl http://luajit.org/download/LuaJIT-2.0.2.tar.gz | tar xz
+ wget -O - http://luajit.org/download/LuaJIT-2.0.2.tar.gz | tar xz
cd LuaJIT-2.0.2
make && sudo make install INSTALL_TSYMNAME=l... | bash |
d_bash_16072 | ---
+++
@@ -11,7 +11,7 @@
fi
go get -u github.com/mitchellh/gox
-for go in go1.8.3 go1.9; do
+for go in go1.8.4 go1.9.1; do
echo "Building fabio with ${go}"
gox -gocmd ~/${go}/bin/go -tags netgo -output "${basedir}/build/builds/fabio-${v}/fabio-${v}-${go}-{{.OS}}_{{.Arch}}"
done | bash |
d_bash_16073 | ---
+++
@@ -8,10 +8,12 @@
lhmkill() {
echo killing lhm-cluster
ps -ef | sed -n "/[m]ysqld.*lhm-cluster/p" | awk '{ print $2 }' | xargs kill
+ echo running homebrew mysql instance
+ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
sleep 2
}
-echo stopping other running mysql instance
+... | bash |
d_bash_16074 | ---
+++
@@ -1,10 +1,12 @@
#!/bin/bash
+set -x
+set -e
+# --omit-header \
pybabel extract --project=mailpile \
-F babel.cfg \
-o locale/mailpile.pot \
.
-# --omit-header
for L in $(find locale/* -type d \
| grep -v "LC_MESSAGES" \ | bash |
d_bash_16075 | ---
+++
@@ -2,7 +2,7 @@
# Install git
apt-get -yqq update
-apt-get -yqq install git open-vm-tools open-vm-tools-desktop
+apt-get -yqq install git open-vm-tools open-vm-tools-desktop vim
# Add malware user to sudoers.
echo "malware ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | bash |
d_bash_16076 | ---
+++
@@ -17,7 +17,7 @@
sleep 1
echo "Starting watchdogd ..."
-./watchdogd $ARGD -n -p --test-mode &
+./src/watchdogd $ARGD -n -p --test-mode &
WDOG=$!
sleep 5
| bash |
d_bash_16077 | ---
+++
@@ -3,6 +3,11 @@
PATH=$1
#KIDNLE_HOME has to be defined
KINDLE_HOME=""
+
+if [ -z ${KINDLE_HOME} ]; then
+ echo "Empty KINDLE_HOME";
+ exit -2;
+fi
if [ -z ${PATH} ]; then
echo "Empty path"; | bash |
d_bash_16078 | ---
+++
@@ -14,12 +14,12 @@
sleep 1
-sudo ./pipework br1 ${CONTAINER_ID} "10.0.10.${NODEID}/3"
-
-echo "Started [zoo${NODEID}] and assigned it the IP [10.0.10.${NODEID}]"
+sudo ./pipework br1 ${CONTAINER_ID} "10.0.10.${NODEID}/24"
if [ "$NODEID" -eq "1" ] ; then
sudo ifconfig br1 10.0.10.254
echo "Creat... | bash |
d_bash_16079 | ---
+++
@@ -13,7 +13,7 @@
ssh -i ~/.ssh/onlabkey.pem ${basename}${i} 'cd ONOS;./start-onos.sh status' &
done | grep "instance" | awk '{s+=$1}END{print s}'`
- if [ x$up == 4 ]; then
+ if [ x$up == "x4" ]; then
break;
fi
sleep 1 | bash |
d_bash_16080 | ---
+++
@@ -13,7 +13,7 @@
yum clean all
yum -y check-update
-yum -y install gcc make gcc-c++ kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl wget dkms nfs-utils pcre-devel pcre net-tools
+yum -y install gcc make gcc-c++ kernel-devel-`uname -r` zlib-devel openssl-devel readline-de... | bash |
d_bash_16081 | ---
+++
@@ -9,7 +9,7 @@
[ "$1" == "-x" ] && shift
name_string="-name bin"
- for path in ${*:1}; do
+ for path in $@; do
name_string+=" -o -name $path"
done
@@ -20,7 +20,7 @@
}
function sourcefinder {
name_string="-name source"
- for path in ${*:1}; do
+ for path in $@; do
name_string+=" -o -... | bash |
d_bash_16082 | ---
+++
@@ -1,4 +1,10 @@
#!/bin/bash
+if [ -z "$1" ]; then
+ echo "You need to provide instance name"
+ exit -1
+fi
+
+INSTANCE=$1
DEPLOYMENT_HEADER="DEPLOY and DELIVERY commit"
LAST_DEPL=`git log --pretty=oneline|grep "$DEPLOYMENT_HEADER"|head -n 1|cut -f 1 -d " "`
@@ -12,9 +18,11 @@
TMPFILE=`mktemp`
-echo... | bash |
d_bash_16083 | ---
+++
@@ -1,11 +1,12 @@
-#!/bin/sh
+#!/bin/bash
set -evx
branch="expeditor/${GEM_NAME}_${VERSION}"
git checkout -b "$branch"
-bundle update $GEM_NAME
+bundle install
+bundle exec rake dependencies:update
git add .
git commit --message "Bump $GEM_NAME to $VERSION" --message "This pull request was trigge... | bash |
d_bash_16084 | ---
+++
@@ -11,8 +11,12 @@
local -a commands
cmd="${words[2]}"
subcmds="$(hr completions $cmd ${words[3,$(($CURRENT - 1))]})"
- commands=(${(ps:\n:)subcmds})
- _wanted subcommand expl "hr $cmd subcommand" compadd -a commands
+ if [ -n "$subcmds" ]; then
+ commands=(${(ps:\n:)subcmds})
+ _wanted subc... | bash |
d_bash_16085 | ---
+++
@@ -1,9 +1,9 @@
+gcc -Wall -o ic706_server src/ic706_server.c src/common.c
+gcc -Wall -o ic706_client src/ic706_client.c src/common.c
+# gcc -Wall -o serial_gateway src/serial_gateway.c src/common.c
+
+## These do not yet work
# gcc -Wall -o audio_client src/audio_client.c src/common.c
# gcc -Wall -o audi... | bash |
d_bash_16086 | ---
+++
@@ -14,4 +14,4 @@
# After this, we can run it via:
#
-# docker run -p 127.0.0.1:4000:4000 -t -i mgsloan/soh-ghcjs-dev:lts-2.13 /bin/bash -c 'PATH=/home/:$PATH /home/soh-runner'
+# docker run -p 127.0.0.1:4000:4000 -t -i mgsloan/soh-ghcjs-dev:lts-2.13 /bin/bash -c 'PATH=/opt/soh/:$PATH /opt/soh/soh-runner' | bash |
d_bash_16087 | ---
+++
@@ -8,6 +8,12 @@
export GRADLE_CMD="--console=plain --no-parallel --no-daemon"
+echo `which ant`
+ant -version
+
+echo `which javac`
+javac -version
+
git fetch > benchmark.log && \
git rebase origin/master >> benchmark.log && \
rm -rf build >> benchmark.log && \ | bash |
d_bash_16088 | ---
+++
@@ -29,11 +29,21 @@
fi
}
+set_protocol()
+{
+ # Checking if EXTERNAL_URL starts with http:// or https://
+ if ! $(echo ${EXTERNAL_URL} | awk '$0 !~ /^http[s]?:\/\// {exit 1}'); then
+ EXTERNAL_URL="http://${EXTERNAL_URL}"
+ fi
+}
+
if [ -z "${EXTERNAL_URL}" ]; then
check_if_ec2
if [ $? -eq ... | bash |
d_bash_16089 | ---
+++
@@ -12,3 +12,8 @@
cd $cd_str
fi
}
+
+# Access the Vagrant commands within Homestead.
+function homestead() {
+ ( cd ~/.homestead && vagrant $* )
+} | bash |
d_bash_16090 | ---
+++
@@ -12,7 +12,7 @@
FIRM_FILE_REL_IMG=$REL_DIR/farmbot-$SYSTEM-$VERSION.img # same as the above file, but a .img file
SYSTEM_DIR=nerves/NERVES_SYSTEM_$SYSTEM # the NERVES_SYSTEM build dir
-SYSTEM_TAR=$SYSTEM_DIR/nerves_system_$SYSTEM.tar.gz # the archive generated by `make system`
+SYSTEM_TAR=$SYSTEM_DIR/ne... | bash |
d_bash_16091 | ---
+++
@@ -1,7 +1,9 @@
#!/bin/bash
set -e
eval "$(ssh-agent -s)"
+chmod 700 travis
openssl aes-256-cbc -K $encrypted_fa51861454fb_key -iv $encrypted_fa51861454fb_iv -in travis/deploy.enc -out travis/deploy -d
+chmod 600 travis/deploy
ssh-add travis/deploy
git remote add deploy "git@thewhitehat.club:go/src/gith... | bash |
d_bash_16092 | ---
+++
@@ -2,7 +2,7 @@
# Source this to add additional shell features for mpv.
alias mpvnova='mpv --no-video'
-alias mpvshuf='mpvnova --shuffle --loop inf'
+alias mpvshuf='mpvnova --shuffle --loop=inf'
alias mpvp='mpvshuf --playlist'
playcurrentdir() { | bash |
d_bash_16093 | ---
+++
@@ -7,4 +7,5 @@
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $script_dir/config.sh
+echo "Results file: $output_file"
cat $output_file | bash |
d_bash_16094 | ---
+++
@@ -4,7 +4,7 @@
autopoint --force
libtoolize --automake --copy --force
-gtkdocize #--flavour=no-tmpl
+gtkdocize --copy #--flavour=no-tmpl
aclocal -I m4 --force
autoheader --force
automake --add-missing --copy --force | bash |
d_bash_16095 | ---
+++
@@ -2,7 +2,7 @@
set -ex -o pipefail
BCBIO_VERSION="1.0.8a"
-BCBIO_REVISION="7fa4fb6"
+BCBIO_REVISION="6dc3387"
NS="quay.io/bcbio"
TAG="${BCBIO_VERSION}-${BCBIO_REVISION}"
| bash |
d_bash_16096 | ---
+++
@@ -15,8 +15,8 @@
# create the virtual environment, install/update required packages
virtualenv ../mzalendo-virtualenv
source ../mzalendo-virtualenv/bin/activate
-pip install Mercurial
-pip install -r requirements.txt
+pip install Mercurial --use-mirrors
+pip install -r requirements.txt -... | bash |
d_bash_16097 | ---
+++
@@ -2,7 +2,7 @@
cd ~
-git clone --depth=1 -b maint/v0.25 https://github.com/libgit2/libgit2.git
+git clone --depth=1 -b maint/v0.26 https://github.com/libgit2/libgit2.git
cd libgit2/
mkdir build && cd build | bash |
d_bash_16098 | ---
+++
@@ -19,6 +19,6 @@
INFO="${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/../Info.plist"
-/usr/libexec/PlistBuddy $INFO -c "add SUFeedURL string $SU_FEED_URL"
-/usr/libexec/PlistBuddy $INFO -c "set :SUFeedURL $SU_FEED_URL"
+/usr/libexec/PlistBuddy "$INFO" -c "add SUFeedURL string $SU_FEED_URL"
+... | bash |
d_bash_16099 | ---
+++
@@ -7,7 +7,7 @@
(-n "${DOCKER_USERNAME}") &&
(-n "${DOCKER_PASSWORD}") ]]
then
- docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}"
+ echo "${DOCKER_PASSWORD}" | docker login -u "{$DOCKER_USERNAME}" --password-stdin
export PERFORM_PUSH="true"
# Which images to ... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.