document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_8000 | ---
+++
@@ -12,3 +12,5 @@
cp Gemfile.lock Gemfile.lock.orig
BUNDLE_FROZEN=1 bundle install
diff -u Gemfile.lock.orig Gemfile.lock >&2
+bundle install --deployment
+diff -u Gemfile.lock.orig Gemfile.lock >&2 | bash |
d_bash_8001 | ---
+++
@@ -26,3 +26,5 @@
n latest
cd ..
fi
+
+rm -rf ~/tmp | bash |
d_bash_8002 | ---
+++
@@ -34,6 +34,7 @@
controller-manager
cri-api
csi-translation-lib
+ kms
kube-aggregator
kube-controller-manager
kube-proxy | bash |
d_bash_8003 | ---
+++
@@ -9,4 +9,5 @@
rm -rf deploy.sh logo.xcf forkme.xcf
git add .
git commit -m "Updated gh-pages for `git log master -1 | head -1`"
-#git push
+git push origin gh-pages
+git checkout master | bash |
d_bash_8004 | ---
+++
@@ -22,9 +22,6 @@
--deps)
NO_DEPS=""
;;
- --extra-runargs)
- EXTRA_RUNARGS="$1"; shift
- ;;
*)
# Unknown option
echo "Unknown parameter: $key" 1>&2
@@ -37,4 +34,4 @@
-v "$REQUIREMENT":/requirements.txt \
-... | bash |
d_bash_8005 | ---
+++
@@ -10,7 +10,7 @@
zmodload zsh/zpty
-zpty -b -e dit4c-portal TERM=dumb /opt/dit4c-portal/bin/dit4c-portal "$@"
+zpty -b -e dit4c-portal TERM=dumb /opt/dit4c-portal/bin/dit4c-portal -Dcom.datastax.driver.FORCE_NIO=true "$@"
while zpty -t dit4c-portal
do | bash |
d_bash_8006 | ---
+++
@@ -47,6 +47,8 @@
JAR="LuciusAPI-assembly-$VERSION.jar"
URI="https://github.com/data-intuitive/LuciusAPI/releases/download/v$VERSION/$JAR"
+# Makes sure a trailing slash is present on the CACHE path
+CACHE=`echo -ne $CACHE | sed 's;/*$;/;'`
TARGET="$CACHE$JAR"
echo "Fetching assembly jar for v$VERSION... | bash |
d_bash_8007 | ---
+++
@@ -3,4 +3,4 @@
now=`date '+%Y-%m-%d %H:%M %z'`
then=`date '+%Y-%m-%d 23:59 %z'`
-icalBuddy -nc eventsFrom:"$now" to:"$then"
+icalBuddy -iep title,datetime -ps '|: |' -nc eventsFrom:"$now" to:"$then" | bash |
d_bash_8008 | ---
+++
@@ -1,10 +1,10 @@
#! /bin/bash
-mkdir ../transcendent-ai-labs.github.io/api_docs/DynaML/$1
-mkdir ../transcendent-ai-labs.github.io/api_docs/DynaML/$1/dynaml-core
-mkdir ../transcendent-ai-labs.github.io/api_docs/DynaML/$1/dynaml-pipes
-mkdir ../transcendent-ai-labs.github.io/api_docs/DynaML/$1/dynaml-exam... | bash |
d_bash_8009 | ---
+++
@@ -21,9 +21,11 @@
echo ------ Finish Presenter component build ------
cp $projectPath/FrontEnd/target/FrontEnd.jar $projectPath/deployment/specs_monitoring_nmap_frontend/lib
+cp $projectPath/Scanner/target/Scanner.jar $projectPath/deployment/specs_monitoring_nmap_scanner/lib
+cp $projectPath/Converter/ta... | bash |
d_bash_8010 | ---
+++
@@ -36,12 +36,11 @@
esac
done
-
-file_list=$(curl "http://hg.mozilla.org/mozilla-central/file/$CHANGESET/tools/update-packaging?style=raw" | awk '{print $3}')
+file_list=$(curl "http://hg.mozilla.org/releases/mozilla-release/file/$CHANGESET/tools/update-packaging?style=raw" | awk '{print $3}')
echo $... | bash |
d_bash_8011 | ---
+++
@@ -1,3 +1,10 @@
+# This script contains bash completions for brew.
+# To use, edit your .bashrc and add the line:
+# source <path-to-homebrew>/Library/Contributions/brew_bash_completion.sh
+#
+# Assuming you have brew installed in /usr/local, then you'll want:
+# source /usr/local/Library/Contributions/b... | bash |
d_bash_8012 | ---
+++
@@ -4,8 +4,9 @@
# Verbose!
set -x
+set -e
-set -e
+MLDB_UID=56789
while getopts "s" opt; do
case $opt in
@@ -29,7 +30,7 @@
##############
# _mldb user #
##############
-groupadd -g 1234567 _mldb
-useradd -u 1234567 -g 1234567 -c 'MLDB user' -s /bin/bash -M --home /mldb_data _mldb
+groupadd -g ... | bash |
d_bash_8013 | ---
+++
@@ -1,2 +1,3 @@
+sed -i.bak '1 s|^.*$|#!/usr/bin/env perl -w|g' damidseq_pipeline gatc.track.maker.pl gff2tdf.pl
chmod +x gatc.track.maker.pl gff2tdf.pl
cp gatc.track.maker.pl gff2tdf.pl damidseq_pipeline $PREFIX/bin | bash |
d_bash_8014 | ---
+++
@@ -3,4 +3,6 @@
cd /go/src/app
go-wrapper download
go-wrapper install
+#check and install gin if missing i.e. go directory was overriden or mounted
+go get -v github.com/codegangsta/gin
exec gin "$@" | bash |
d_bash_8015 | ---
+++
@@ -5,11 +5,13 @@
BASEDIR=$(dirname $0)
date
+echo $(who)
cd $BASEDIR
+echo 'stashing'
git add -A
-git stash "STASH TO PULL AND BUILD" || true
+git stash save "STASH TO PULL AND BUILD" || true
git checkout build
echo 'checked out build' | bash |
d_bash_8016 | ---
+++
@@ -19,6 +19,8 @@
install_npm_pkg gulp-cli
install_npm_pkg eslint
+install_npm_pkg @typescript-eslint/parser
+install_npm_pkg @typescript-eslint/eslint-plugin
install_npm_pkg http-server
install_npm_pkg grunt-cli
install_npm_pkg vsce | bash |
d_bash_8017 | ---
+++
@@ -21,7 +21,7 @@
zip="../vivliostyle-js-viewer/vivliostyle-js-viewer-latest.zip"
if [ -e ${zip} ]; then
- mv ${zip} .
+ mv ${zip} downloads/
fi
git add . | bash |
d_bash_8018 | ---
+++
@@ -11,6 +11,7 @@
normal=$(echo -en "${esc}[m\017")
java -version 2>&1 | grep -q '"9' || (echo "**** Fix your PATH! ****" && java -version && exit 1)
+javac -version 2>&1 | grep -q '9' || (echo "**** Fix your PATH! Cannot find command 'javac' (version 9) ****" && javac -version && exit 1)
runTree()
{ | bash |
d_bash_8019 | ---
+++
@@ -9,6 +9,13 @@
exit 1
fi
+sn -R CSF.Screenplay/bin/Release/CSF.Screenplay.dll CSF-Software-OSS.snk
+sn -R CSF.Screenplay.NUnit/bin/Release/CSF.Screenplay.NUnit.dll CSF-Software-OSS.snk
+sn -R CSF.Screenplay.Reporting/bin/Release/CSF.Screenplay.Reporting.dll CSF-Software-OSS.snk
+sn -R CSF.Screenplay.R... | bash |
d_bash_8020 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
-REPO_PATH=git@github.com:bvanderlaan/taranis.git
+REPO_PATH=git@github.com:bvanderlaan/Taranis.git
DOCS_PATH=gh-pages/docs
HTML_PATH=build/doc/html
COMMIT_USER="Documentation Builder" | bash |
d_bash_8021 | ---
+++
@@ -4,7 +4,7 @@
### Ignore this test if there are no relevant changes
cd ${CMLE_REPO_DIR}/${CMLE_TEST_BASE_DIR}
-if [[-z `git diff $KOKORO_GITHUB_PULL_REQUEST_COMMIT ${KOKORO_GITHUB_PULL_REQUEST_COMMIT}~1 $PWD`]]
+if [ -z `git diff $KOKORO_GITHUB_PULL_REQUEST_COMMIT ${KOKORO_GITHUB_PULL_REQUEST_COMMIT}~1 ... | bash |
d_bash_8022 | ---
+++
@@ -11,7 +11,7 @@
# Set the preferred port
if [[ "${OOS_TOMCAT_PORT}" != 8080 ]]; then
- sed -i 's/port\=\"8080\"/port\=\"${OOS_TOMCAT_PORT}\"/' ${CATALINA_HOME}/conf/server.xml
+ sed -i "s/port\=\"8080\"/port\=\"${OOS_TOMCAT_PORT}\"/" ${CATALINA_HOME}/conf/server.xml
fi
#Auto start tomcat | bash |
d_bash_8023 | ---
+++
@@ -1,7 +1,6 @@
source ~/.bashrc
cd .
-pwd
-ruby -v
+rvm gemset use alexandria
rvm gemset list
bundle install
rake db:schema:load | bash |
d_bash_8024 | ---
+++
@@ -20,3 +20,4 @@
done
mkdir -p /sysroot/opt/confluent/bin
cp /opt/confluent/bin/apiclient /sysroot/opt/confluent/bin
+cp /opt/confluent/bin/apiclient /sysroot/etc/confluent/ | bash |
d_bash_8025 | ---
+++
@@ -1,5 +1,9 @@
#!/bin/bash
-# systemd launch script for the speakIP.pl script
+# systemd launch script for the speakIP.pl script. This requires espeak and the sound module loaded, for example:
+# /etc/sysconfig/modules/snd_bcm2835.modules
+##!/bin/bash
+#
+# exec /sbin/modprobe snd_bcm2835
start() {
... | bash |
d_bash_8026 | ---
+++
@@ -13,10 +13,23 @@
# everything will be placed in the home folder
echo "running CernVM-FS client test cases..."
-CVMFS_TEST_CLASS_NAME=ClientIntegrationTests \
-sudo ./run.sh "$logfile" src/000-dummy \
- ... | bash |
d_bash_8027 | ---
+++
@@ -4,12 +4,13 @@
# this is a very simple script that tests the docker configuration
# it is meant to be run from the root directory of the repository, eg:
# sh tests/test_docker.sh
+set -ex
# run the model service's tests
-docker-compose -f local.yml run prediction pytest || { exit 1; }
+docker-compose... | bash |
d_bash_8028 | ---
+++
@@ -7,6 +7,6 @@
# source /dev/stdin <<< "$(curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/languages/rust.sh)"
RUST_PATH=${RUST_PATH:=$HOME/rust}
-curl -sSf curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --disable-sudo --prefix="${RUST_PATH}"
+curl -sSf https://static.rust... | bash |
d_bash_8029 | ---
+++
@@ -1,6 +1,9 @@
#!/bin/sh -e
+
+ARGS="$@"
+echo "Database uploader started with arguments: $ARGS"
# some IBAN codes are not valid according to the XSD, let's fix this
find "$WORKDIR" -type f -print0 -iname "*.xml" | xargs -0 sed -i 's/XXXXXXXXXXXXXXX/XX00XXXXXXXXXXX/g'
-java -jar database-uploader-exec... | bash |
d_bash_8030 | ---
+++
@@ -3,7 +3,7 @@
args=$@
function job {
- python analysis/03-fill-dropouts-theano.py $args -pattern "$1/*block0[$2]/"
+ python analysis/03-fill-dropouts-theano.py $args --pattern "$1/*block0[$2]/"
}
job f9 0123 | bash |
d_bash_8031 | ---
+++
@@ -14,14 +14,7 @@
done
shift $((OPTIND - 1))
-target=$1
-
-if test -z $target
-then
- target=$PWD/awesome.png
-else
- target=$PWD/$target
-fi
+target=$PWD/${1:-awesome.png}
thor_exec_cmd(){
entry_name=$1 | bash |
d_bash_8032 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
file=$1
logger_file=/var/www/miq/vmdb/log/appliance_console.log
-logvol_free_space=`df -lk $file | awk '{ print $4 }' | tail -n 1`
+logvol_free_space=`df -lk --output=avail $file | tail -n 1`
existing_log_size=`du -k $file | awk '{ print $1 }' | tail -n 1`
size_needed=$(($existi... | bash |
d_bash_8033 | ---
+++
@@ -9,7 +9,9 @@
#
configure_rootfs_build()
{
- :
+ update_keywords 'dev-lang/execline' '+~amd64'
+ update_keywords 'dev-libs/skalibs' '+~amd64'
+ update_keywords 'sys-apps/s6' '+~amd64'
}
# | bash |
d_bash_8034 | ---
+++
@@ -2,4 +2,7 @@
git pull
-wget "https://raw.github.com/git/git/master/contrib/completion/git-completion.bash" -O git/git-completion.bash
+curl \
+ --silent \
+ --output git/git-completion.bash \
+ "https://raw.github.com/git/git/master/contrib/completion/git-completion.bash" | bash |
d_bash_8035 | ---
+++
@@ -2,9 +2,22 @@
cd /confluent-2.0.0
+IP=$(cat /etc/hosts | head -n1 | awk '{print $1}')
+
+kafka_cfg=./etc/kafka/server.properties
+kafka_cfg_tpl=./etc/kafka/server.properties.tpl
+
+cp $kafka_cfg $kafka_cfg_tpl
+
+cat $kafka_cfg_tpl | sed \
+ -e "s|#advertised.host.name=<hostname routable by clients>|a... | bash |
d_bash_8036 | ---
+++
@@ -12,4 +12,7 @@
# Run Linux containers by default
export DOCKER_DEFAULT_PLATFORM=linux
+ # Add VS Code to PATH (WSL bug in 1903?)
+ export PATH="$PATH:/mnt/c/Program Files/Microsoft VS Code/bin"
+
fi | bash |
d_bash_8037 | ---
+++
@@ -1,4 +1,4 @@
-export PATH="/usr/local/bin:/usr/local/sbin:$ZSH/bin:/usr/local/share/python:/usr/texbin:$PATH"
+export PATH="/usr/local/bin:/usr/local/sbin:$ZSH/bin:/usr/local/share/python:/usr/texbin:/usr/local/Cellar/gems/1.8/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/git/man:$MANPATH"
| bash |
d_bash_8038 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/sh
-find . -name rebar.config|xargs sed -i 's/require_otp_vsn,\s\+"\(.\+\)"/require_otp_vsn, "R15B03|R16B*"/g'
+find . -name rebar.config|xargs sed -i 's/require_otp_vsn,\s\+"\(.\+\)"/require_otp_vsn, "R15B03|R16B*|17"/g' | bash |
d_bash_8039 | ---
+++
@@ -2,13 +2,13 @@
source $(dirname $0)/_du-util.sh
-if [ $# -lt 2 ] ; then
- echo "Usage: `basename $0` <Kafka container name> <num partitions>"
+if [ $# -lt 1 ] ; then
+ echo "Usage: `basename $0` <Kafka container name> [<num partitions>]"
exit 1
fi
name=$1
-num_partitions=$2
+num_partitions=${... | bash |
d_bash_8040 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/bash
cp -a OSX_Battery_Charge_Detection.sh /usr/local/bin/
cp -a ChargeCompleteNotification.app /Applications/
+cp -a SuggestChargeNotification.app /Applications/
cp -a com.ITXiaoPang.OSX_Battery_Charge_Detection.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/co... | bash |
d_bash_8041 | ---
+++
@@ -1,3 +1,4 @@
+rm -f src/version.py # Prevent 2to3 from copying it, since py3k/src/version.py was probably written by root.
cp locale/ py3k/ -R
cp plugins/ py3k/ -R # copy plugins data
python 2to3/run.py src/ plugins/ test/ scripts/* setup.py -wWno py3k -f all -f def_iteritems -f def_itervalues -f def_it... | bash |
d_bash_8042 | ---
+++
@@ -23,8 +23,6 @@
echo "cleaning up director... (especially orphan disks)"
bosh-go -n clean-up --all
-export BOSH_LOG_LEVEL=debug
-
echo "deleting BOSH..."
bosh-go delete-env \
--state bosh-state.json \ | bash |
d_bash_8043 | ---
+++
@@ -9,13 +9,7 @@
echo "Miniconda install already present from cache: $MINICONDA_DIR"
else # if it does not exist, we need to install miniconda
rm -rf "$MINICONDA_DIR" # remove the directory in case we have an empty cached directory
-
- if [[ $GROUP == py2 ]]; then
- wget https://repo.cont... | bash |
d_bash_8044 | ---
+++
@@ -2,6 +2,4 @@
cd /healthchecks || exit 1
-source /healthchecks/hc-venv/bin/activate
-
-./manage.py createsuperuser
+su healthcheck -c 'source /healthchecks/hc-venv/bin/activate;/healthchecks/manage.py createsuperuser' | bash |
d_bash_8045 | ---
+++
@@ -1,6 +1,15 @@
#!/bin/sh
+
+test -n "${srcdir}" || srcdir=`dirname "$0"`
+test -n "${srcdir}" || srcdir="$(pwd)"
+
+olddir="$(pwd)"
+cd "$srcdir"
+
export ACLOCAL="aclocal -I m4"
intltoolize
autoreconf -i
-./configure --enable-maintainer-mode "$@"
+
+cd "$olddir"
+"$srcdir/configure" --enable-maintain... | bash |
d_bash_8046 | ---
+++
@@ -6,6 +6,8 @@
npm i -g cssstats scrutinize get-css get-contrast a11y psi immutable-css semi jshint
+npm i -g postcss perfectionist postcss-remove-prefixes cssnext
+
npm i -g whois-cli is-up wifi-password wifi-name brightness-cli vol battery-level pure-prompt
npm i -g gh github-search-repos | bash |
d_bash_8047 | ---
+++
@@ -20,6 +20,9 @@
"~-"/*)
path=$OLDPWD/${path#"~-/"}
;;
+ "~")
+ path=$HOME
+ ;;
"~"/*)
path=$HOME/${path#"~/"}
;; | bash |
d_bash_8048 | ---
+++
@@ -7,7 +7,7 @@
else
# TODO rewrite to avoid having to start tas for every new line.
# Currently we do this to avoid buffering problems.
- out=$($tas -d -f text - <<<"$b")
+ out=$($tas -d -f text - <<<"0x${b/0x/}")
if [[ $? == 0 ]]; then
echo "$out" |... | bash |
d_bash_8049 | ---
+++
@@ -11,9 +11,11 @@
#ln -s calcdistances.*.so calcdistances.so
#ln -s calccomf.*.so calccomf.so
-cp calccomf*.so ${PREFIX}/bin/.
-cp calcdistances*.so ${PREFIX}/bin/.
-cp ipcorr*.so ${PREFIX}/bin/.
+mkdir ${PREFIX}/bin/src
+
+cp calccomf*.so ${PREFIX}/bin/src/.
+cp calcdistances*.so ${PREFIX}/bin/src/.
+cp... | bash |
d_bash_8050 | ---
+++
@@ -21,5 +21,3 @@
install_npm_pkg esbuild
install_npm_pkg npm-check-updates
install_npm_pkg netlify-cli
-
-install_node_version 12.16.3 --reinstall-packages-from=default | bash |
d_bash_8051 | ---
+++
@@ -1 +1 @@
-/bin/bash -c "crystal build src/scry.cr --release -o build/darwin/scry"
+/bin/bash -c "crystal build src/scry.cr --release -o build/darwin/x64/scry" | bash |
d_bash_8052 | ---
+++
@@ -4,7 +4,7 @@
git clone --depth=1 https://github.com/sockjs/sockjs-protocol.git
cd sockjs-protocol
-make test_deps
+make test_deps pycco_deps
cd ..
node tests/test_server/server.js &
SRVPID=$! | bash |
d_bash_8053 | ---
+++
@@ -6,7 +6,7 @@
echo "<html><body>2</body></html>" | $FENESTRO --name 2.html
echo "<html><body>3</body></html>" | $FENESTRO --name 3.html
-sleep 1
+sleep 2
echo "In new window, should display 4.txt, 5.html, 6.html"
echo "<html><body>4</body></html>" | $FENESTRO --name 4.txt | bash |
d_bash_8054 | ---
+++
@@ -20,6 +20,6 @@
# compile and enable the extension
cd "${CACHED_REPOSITORY}/build"
./install >/dev/null
-echo "extension=phalcon.so" >> /home/rof/.phpenv/versions/${PHP_VERSION}/etc/php.ini
+echo "extension=phalcon.so" >> "/home/rof/.phpenv/versions/${PHP_VERSION}/etc/php.ini"
-cd "${PWD}"
+cd "${CWD}" | bash |
d_bash_8055 | ---
+++
@@ -15,7 +15,6 @@
# Main Program #
############################################
RELATIVE_DIR_PATH="$(dirname "${BASH_SOURCE[0]:-$0}")"
-. "${RELATIVE_DIR_PATH}/javaConfig.bash"
echo "Running serverless tests with Java ${JAVA_VERSION}"
| bash |
d_bash_8056 | ---
+++
@@ -9,5 +9,5 @@
export VISUAL="$EDITOR"
alias q="$EDITOR"
-alias qv="q $DOTFILES/link/.{,g}vimrc"
+alias qv="q $DOTFILES/link/.{,g}vimrc +'cd $DOTFILES/link'"
alias qs="q +'cd $DOTFILES'" | bash |
d_bash_8057 | ---
+++
@@ -12,7 +12,7 @@
elif [[ $distro == "arch" ]];then
sudo pacman -S --noconfirm --needed tar
elif [[ $distro == "alpine" ]];then
- sudo apk add gcc libc-dev
+ sudo apk add gcc libc-dev procps perl ncurses coreutils
else
sudo pip install pynvim
fi | bash |
d_bash_8058 | ---
+++
@@ -1,7 +1,7 @@
alias ls="ls -FG"
alias oa='open -a' # App Launcher
-export EDITOR='mate -w'
+export EDITOR='mvim -f'
export PATH="~/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/git/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH" | bash |
d_bash_8059 | ---
+++
@@ -1,4 +1,3 @@
-include array.util.ArrayUtil
include array.validator.ArrayValidator
include command.exception.CommandException
@@ -9,8 +8,7 @@
local validCommands=($(CommandParser getValidFunctions ${1}))
if [[ ! $(ArrayValidator hasEntry ${validCommands[@]} ${2}) ]]; then
- local _flip=($(Arra... | bash |
d_bash_8060 | ---
+++
@@ -37,3 +37,6 @@
{
alias "$1"="$2"
}
+
+# This is run with ~/bashrc (i.e. at shell startup). Create any alias in the starting folder
+applyMethodToAliasesFiles "$(pwd)" createAlias | bash |
d_bash_8061 | ---
+++
@@ -9,4 +9,4 @@
}
EOF
-echo "${SPHERE_CLIENT_ID}:${SPHERE_CLIENT_SECRET}:${SPHERE_PROJECT_KEY}" > ".sphere-credentials"
+echo "${SPHERE_PROJECT_KEY}:${SPHERE_CLIENT_ID}:${SPHERE_CLIENT_SECRET}" > ".sphere-credentials" | bash |
d_bash_8062 | ---
+++
@@ -32,6 +32,7 @@
TURBINE_RANKS=$(( ${TURBINE_ENGINES} + ${TURBINE_WORKERS} ))
echo SETUP:
+date "+%m/%d/%Y %I:%M%p"
display TURBINE_ENGINES 0 $(( TURBINE_ENGINES-1 ))
display TURBINE_WORKERS ${TURBINE_ENGINES} $(( TURBINE_RANKS-1 ))
display ADLB_SERVERS ${TURBINE_RANKS} $(( PROCS-1 )) | bash |
d_bash_8063 | ---
+++
@@ -1,6 +1,8 @@
#!/bin/sh
# This a script for updating the local env-logger database from a backup snapshot.
+
+set -e
if [ $# -ne 2 ]; then
echo "Usage: $0 <DB name> <DB snapshot name>"
@@ -19,4 +21,5 @@
EOF
echo "Adding new values"
+psql "${db_name}" -c 'ALTER TABLE weather_data ALTER pressu... | bash |
d_bash_8064 | ---
+++
@@ -5,8 +5,10 @@
if [[ "$2" = "prod" || "$2" = "beta" ]]; then
__conf="config/env_${2}.list"
- echo "Loading config from ${__conf}"
- source ${__conf}
+ if [[ -f ${__conf} ]]; then
+ echo "Loading config from ${__conf}"
+ source ${__conf}
+ fi
fi
# Required parameters | bash |
d_bash_8065 | ---
+++
@@ -15,6 +15,7 @@
commit=$(git rev-parse HEAD)
version=$(cat version.txt)
branch=$(git rev-parse --abbrev-ref HEAD)
+date=$(date --utc +%Y-%m-%d-%H:%M)
echo "{
\"commit\": \"${commit}\",
@@ -22,13 +23,12 @@
\"source\": \"https://github.com/mozilla/balrog\"
}" > version.json
-# TODO: We prob... | bash |
d_bash_8066 | ---
+++
@@ -13,4 +13,6 @@
make
popd
+go get -d -v ./... && go build -v ./...
+
NEOVIM_BIN=$TRAVIS_BUILD_DIR/_neovim/build/bin/nvim go test | bash |
d_bash_8067 | ---
+++
@@ -15,4 +15,4 @@
# ==============================================================================
-jupyter notebook "$@" --allow-root
+jupyter notebook "$@" --allow-root --ip 0.0.0.0 --port 8888 | bash |
d_bash_8068 | ---
+++
@@ -16,6 +16,7 @@
bash-completion
# Additional misc runtime dependencies
iptables
+ ipset
kmod
ca-certificates
) | bash |
d_bash_8069 | ---
+++
@@ -10,4 +10,3 @@
cf set-env $APPNAME SECURITY_USER_PASSWORD $SECURITY_USER_PASSWORD
cf set-env $APPNAME SOURCE_INSTANCE_ID $SOURCE_INSTANCE_ID
cf set-env $APPNAME SUBNET_ID $SUBNET_ID
-cf set-env $APPNAME BOOT_CHECK_PORT 5432 | bash |
d_bash_8070 | ---
+++
@@ -2,6 +2,8 @@
REDIS_URLS=${TWEMPROXY_URLS:-REDISCLOUD_URL}
n=1
+
+rm -f /app/vendor/twemproxy/twemproxy.yml
for REDIS_URL in $REDIS_URLS
do | bash |
d_bash_8071 | ---
+++
@@ -4,4 +4,4 @@
# FIXME: this prints the tip, which isn't useful if you're on a different
# branch, or just not sync'd to the tip.
-hg tip --template 'hg-{rev}:{node|short}' || echo "hg-0:baadf00d"
+hg tip --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1) | bash |
d_bash_8072 | ---
+++
@@ -1,4 +1,4 @@
-export GOPATH=$PROJECTS/go
+export GOPATH=$HOME/go
export PATH="$GOPATH/bin:$PATH"
if [[ $OSTYPE == "darwin"* ]]; then | bash |
d_bash_8073 | ---
+++
@@ -11,7 +11,7 @@
echo "[$NODE_NAME] - stopping and removing node..."
# docker-machine stop "$NODE_NAME" > /dev/null 2>&1
-docker-machine rm --force -y "$NODE_NAME" > /dev/null 2>&1
+docker-machine rm --force -y "$NODE_NAME" > /dev/null
echo "[$NODE_NAME] - node stopped and removed succesfully"
# list... | bash |
d_bash_8074 | ---
+++
@@ -9,5 +9,13 @@
../tools/opt/opt -q -constprop -dce < $1.bc.1 > $1.bc.2 || exit 2
diff $1.bc.[12] || exit 3
-rm $1.bc.[12]
+# Try out SCCP
+../tools/as/as < $1 | ../tools/opt/opt -q -inline -dce -sccp -dce | ../tools/dis/dis | ../tools/as/as > $1.bc.3 || exit 1
+
+# Should not be able to optimize furth... | bash |
d_bash_8075 | ---
+++
@@ -2,7 +2,17 @@
set -e
git clean -ffdx
-bundle install --path "${HOME}/bundles/${JOB_NAME}"
+
+# We wish to force using a version of ruby installed with rbenv, because the version of ruby shipped with
+# Ubuntu 12.04 has a bug we hit in Psych when loading YAML files.
+RBENV_VERSION="1.9.3"
+
+#FIXME: Thi... | bash |
d_bash_8076 | ---
+++
@@ -1,27 +1,35 @@
#!/bin/bash
if [ -n "${1}" ]; then
- DIR=${1}
+ PACK=${1}
else
- echo "Need a pack dir"
+ echo "Need a pack "
exit 1
fi
-ACTIONS=$(cd ${DIR}/actions;ls -1 *.py)
-ACTION_COUNT=$(ls -1 ${DIR}/actions/*.py | wc -l)
+echo -e "====== ${PACK} ======\n"
-ACTION_TESTS=$(cd... | bash |
d_bash_8077 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-sed -i -e "s/localhost/$HOST/g" /opt/AutoMarkWatched/automarkwatched/settings.py \
+sed -i -e "/ALLOWED_HOSTS/c\ALLOWED_HOSTS = ['$HOST']" /opt/AutoMarkWatched/automarkwatched/settings.py \
-e "/DEBUG/c\DEBUG = $DEBUG" /opt/AutoMarkWatched/automarkwatched/settings.py
i... | bash |
d_bash_8078 | ---
+++
@@ -1,14 +1,13 @@
#!/bin/bash
+# 1st param (optional): target branch. Defaults to master.
+TARGET_BRANCH=${1:-master}
set -ex
cd `dirname $0`
-if [[ $1 != '--dev' ]] # allow testing new versions locally
-then
- git checkout master
- git pull origin master
-fi
+git checkout $TARGET_BRANCH
+git pull o... | bash |
d_bash_8079 | ---
+++
@@ -12,13 +12,13 @@
continue
fi
sbt clean
- sbt doc
+ sbt -Dscala-2.11=true doc
mkdir $OUTPUT/$VERSION
for MODULE in spark-cassandra-connector spark-cassandra-connector-embedded; do
FOLDER=$SCC_HOME/$MODULE
echo "COPYING $FOLDER to $OUTPUT/$VERSION/$M... | bash |
d_bash_8080 | ---
+++
@@ -6,7 +6,7 @@
-DWITH_BOOST=OFF \
-DSOCI_CXX11=ON \
-DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_LIBDIR=lib \
+ -DSOCI_LIBDIR=lib \
$SRC_DIR
make install | bash |
d_bash_8081 | ---
+++
@@ -1,3 +1,3 @@
##depends:none
-lz4 -d /mnt/artefacts/downloads/R-3.4.3_ubuntu-16.04_2018-01-12.tar.lz4 |tar x -C ${TOOLS_PATH}/
+lz4 -d /mnt/artefacts/downloads/R-3.4.3_ubuntu-16.04_2018-05-30.tar.lz4 |tar x -C ${TOOLS_PATH}/ | bash |
d_bash_8082 | ---
+++
@@ -1,2 +1,2 @@
-alias vundle="e +BundleInstall +qall"
-alias vundle!="e +BundleInstall! +qall"
+alias vundle="vim +BundleInstall +qall"
+alias vundle!="vim +BundleInstall! +qall" | bash |
d_bash_8083 | ---
+++
@@ -17,7 +17,12 @@
build_images() {
local directory="$1"
local output_name="$2"
- echo /home/sw/anaconda/bin/python ./plot.py -o ${output_name} "${directory}/*.fits"
+ echo /home/sw/anaconda/bin/python ./plot.py -o ${output_name} "$(getfiles ${directory})"
+}
+
+getfiles() {
+ local direct... | bash |
d_bash_8084 | ---
+++
@@ -8,11 +8,13 @@
CODEC="$3"
+BRANCH=t-$(echo "$TESTNAME" | sed "s/:/_/g")
+
cd $CODEC
git fetch --all
git reset --hard
git checkout $COMMIT
-git checkout -b t-$TESTNAME
+git checkout -b $BRANCH
git clean -d -x -f
cd .. | bash |
d_bash_8085 | ---
+++
@@ -13,8 +13,8 @@
curl -sSL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -q -y nodejs=8.11*
-echo "================= Installing yarn 1.5.1 ==================="
+echo "================= Installing yarn 1.6.0 ==================="
sudo apt-key adv --fetch-keys http://dl.yarnpkg... | bash |
d_bash_8086 | ---
+++
@@ -11,14 +11,14 @@
if [ "$ACTION" == "install" ]; then
find "$framework/BCSymbolMaps" -name \*.bcsymbolmap -type f -exec mv {} "$CONFIGURATION_BUILD_DIR" \;
- BINARY_INFO=`lipo -info "$binary"`;
+ BINARY_INFO=`lipo -info "$binary"`
- if (`echo $BINARY_INFO | grep i386`); then
+ if echo $BINARY_INFO |... | bash |
d_bash_8087 | ---
+++
@@ -43,7 +43,7 @@
rm -rf caduceus-$release
popd
-rpmbuild -ba --define "_ver $release" --define "_releaseno ${BUILD_NUMBER}alpha" --define "_fullver $new_release" caduceus.spec
+rpmbuild -ba --define "_ver $release" --define "_releaseno ${BUILD_NUMBER}" --define "_fullver $new_release" caduceus.spec
pu... | bash |
d_bash_8088 | ---
+++
@@ -5,8 +5,15 @@
# tests
if [[ $(uname) == 'Darwin' ]]; then # macOS
./"$@"
+ EXIT_STATUS=$?
else # Linux
. $HELPERS_DIR/docker-hash.sh
echo "$ docker run --rm --init -v $(pwd):$MOUNTED_DIR $(buildkite-intrinsics) $FULL_TAG bash -c \"$MOUNTED_DIR/$@\""
eval docker run --rm --init -v ... | bash |
d_bash_8089 | ---
+++
@@ -2,6 +2,6 @@
#
# Completions for kubectl
-__garbage __kubectl
__kubectl=$(type -P kubectl)
[ -x "${__kubectl}" ] && source <(${__kubectl} completion bash)
+unset __kubectl | bash |
d_bash_8090 | ---
+++
@@ -1,6 +1,10 @@
#!/usr/bin/env bash
watchify app/app.js -t [babelify app] --extension=.jsx --debug -o build/app.js -v &
-browser-sync start --server build --files build/app.js --port 3000 --reload-delay 100 &
+
+while true; do cp -u ./app/*.html ./app/*.css ./build/; sleep 2; done &
+
+#browser-sync star... | bash |
d_bash_8091 | ---
+++
@@ -19,7 +19,7 @@
kops-acquire-latest
-OVERRIDES="$OVERRIDES --override=cluster.spec.metricsServer.enabled=true"
+OVERRIDES="${OVERRIDES-} --override=cluster.spec.metricsServer.enabled=true"
OVERRIDES="$OVERRIDES --override=cluster.spec.certManager.enabled=true"
kops-up | bash |
d_bash_8092 | ---
+++
@@ -30,14 +30,15 @@
fi
find ../ -name "*.class" | xargs rm
-#find .. -type f -name "*.class" -exec rm {} \;
if [[ -e "${targetdir}" ]]; then
echo "clean target"
- rm -fr ${targetdir}
+ rm -rf ${targetdir}
fi
mkdir ${targetdir}
javac -d ${targetdir} -classpath ${testdir}/../java:${test... | bash |
d_bash_8093 | ---
+++
@@ -24,7 +24,7 @@
pushd ../../scripts
# Validate that layer database matches source contents
-python vk_validation_stats.py $1
+python3 vk_validation_stats.py $1
RES=$?
| bash |
d_bash_8094 | ---
+++
@@ -11,6 +11,8 @@
alias ls="ls -GF"
alias ll="ls -la@h"
+alias clear-quarantine="find . -xattr -exec xattr -d com.apple.quarantine \{\} \;"
+
prepend-path /usr/local/bin
prepend-path /usr/sbin
prepend-path /sbin | bash |
d_bash_8095 | ---
+++
@@ -7,6 +7,7 @@
git pull
# Installation.
+make clean
make
sudo make install
| bash |
d_bash_8096 | ---
+++
@@ -7,7 +7,8 @@
Module=${Mod}-2.0
MODULE=`echo "${Module}" | tr '[:lower:]' '[:upper:]'`
module=`echo "${Module}" | tr '[:upper:]' '[:lower:]'`
-export PATH=`pwd`/.build/gir2swift/.build/debug:"${PATH}"
+BUILD_DIR=`pwd`/.build
+export PATH="${BUILD_DIR}/gir2swift/.build/release:${BUILD_DIR}/gir2swift/.buil... | bash |
d_bash_8097 | ---
+++
@@ -16,3 +16,6 @@
# Unhide all hidden files and dirs, except .git and .gitignore.
find . \( -iname ".*" ! -iname ".git" ! -iname ".gitignore" \) -print0 | xargs -r0 rename -v 's|/\.+([^/]+)$|/$1|'
+
+# Redact my github token.
+sed -i 's/token = [0-9a-z]*/token = --redacted--/' gitconfig | bash |
d_bash_8098 | ---
+++
@@ -4,15 +4,50 @@
# requires mohawk server running on 127.0.0.1:8080
# e.g. mohawk -V &
+usage="$(basename "$0") [-h] [-u -s -d -t] -- send random data into mohawk server
+
+where:
+ -h show this help text
+ -u server url (default: 127.0.0.1:8080)
+ -t tenant (default: _ops)
+ -d data id (... | bash |
d_bash_8099 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env sh
DIST="dist/"
TARGET="~/public_html/" | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.