document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_11700 | ---
+++
@@ -1,4 +1,4 @@
-for D in `find episodes -depth 1 -type d`
+for D in `ls -d episodes/*/`
do
./scripts/build-episode.sh $D
done | bash |
d_bash_11701 | ---
+++
@@ -20,6 +20,4 @@
fi
# Boot up!
-../vendor/bin/heroku-hhvm-nginx \
- -C "$HEROKU_APP_DIR/support/app_nginx.conf" \
- "$HEROKU_APP_DIR/public.built/"
+vendor/bin/heroku-hhvm-nginx -C support/app_nginx.conf public.built/ | bash |
d_bash_11702 | ---
+++
@@ -10,7 +10,7 @@
example/**/*.dart
# Verify that all the tests pass.
-pub run --checked test/all_tests.dart
+dart --checked test/all_tests.dart
# Verify the coverage of the tests.
if [ "$COVERALLS_TOKEN" ] && [ "$TRAVIS_DART_VERSION" = "stable" ]; then | bash |
d_bash_11703 | ---
+++
@@ -20,6 +20,12 @@
function banner() {
echo "====== $@ ======"
}
+
+# Run rustfmt if we have it. (Travis probably won't).
+if cargo install --list | grep -q '^rustfmt '; then
+ banner "Rust formatting"
+ $topdir/src/format-all.sh --write-mode=diff
+fi
PKGS="cretonne cretonne-reader cretonne-... | bash |
d_bash_11704 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-ORGANISATION=inasafe
+ORGANISATION=AIFDR
PROJECT=inasafe-django
PG_USER=docker
PG_PASS=docker | bash |
d_bash_11705 | ---
+++
@@ -5,11 +5,12 @@
echo "-a Configure all (virtualenv and python packages)"
}
-all=false
+packages="python3 fluidsynth alsa-tools"
+
while getopts ":a" o; do
case "${o}" in
a)
- all=true
+ packages=${packages} tightvncserver
;;
*)
ec... | bash |
d_bash_11706 | ---
+++
@@ -17,6 +17,8 @@
pip freeze
+ln -s /usr/local/bin/gunicorn /usr/bin/gunicorn
+
${ENJOLIVER}/validate.py
bootcfg --version | bash |
d_bash_11707 | ---
+++
@@ -23,11 +23,11 @@
set -vx
# Need to prefix with Docker.io to build on CircleCI.
-docker build --squash -t docker.io/${hubUserRepo}:jessie -t \
- docker.io/${hubUserRepo}:latest -f Dockerfile-Jessie . \
+docker build --squash -t ${hubUserRepo}:jessie -t \
+ ${hubUserRepo}:latest -f Dockerfile-Jessie . ... | bash |
d_bash_11708 | ---
+++
@@ -7,7 +7,7 @@
BINARY=shipitron
fi
-if ${BINARY} help "$1" | grep -q "shipitron $1"; then
+if ${BINARY} help "$1" 2>&1 | grep -q "shipitron $1"; then
set -- gosu shipitron ${BINARY} "$@"
if [ -n "$FOG_LOCAL" ]; then | bash |
d_bash_11709 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
-export VERSION=`curl -s https://repo1.maven.org/maven2/org/keycloak/keycloak-server-dist/ | sed -e 's/<[^>]*>//g' | grep -i final | cut -d '/' -f1 | tail -n1`
+export VERSION=`curl -s https://repo1.maven.org/maven2/org/keycloak/keycloak-server-dist/ |sed -e 's/<[^>]*>//g' | gre... | bash |
d_bash_11710 | ---
+++
@@ -16,6 +16,7 @@
# For terminal colors
esc=$(echo -en "\033")
error="${esc}[0;31m"
+normal=$(echo -en "${esc}[m\017")
exit_script() { | bash |
d_bash_11711 | ---
+++
@@ -1,9 +1,10 @@
sudo apt-get install git python-pip python-jinja2 python-yaml openssh-server aptitude
# Vagrant in ubuntu is too old
-wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.2_x86_64.deb
-sudo dpkg -i vagrant_1.6.2_x86_64.deb
+wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.4_... | bash |
d_bash_11712 | ---
+++
@@ -3,4 +3,12 @@
base=`dirname $0`
export MESCALINE_LV2_PATH="$base/../engine/lv2/bundles"
-runhaskell -L"$base"/../engine/build/debug/macosx/x86_64 -lmescaline "$@"
+if [ -n "$RELEASE" ]; then
+ config=release
+else
+ config=debug
+fi
+
+echo "Using $config configuration ..."
+
+runhaskell -L"$base... | bash |
d_bash_11713 | ---
+++
@@ -10,9 +10,10 @@
mkdir -p /usr/src/packages/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
echo '%_topdir /usr/src/packages' > ~/.rpmmacros
echo '%_tmppath %{_topdir}/tmp' >> ~/.rpmmacros
+rm salt-*.src.rpm
yumdownloader --source salt
rpm -ivh salt-*.src.rpm
-rm *.rpm
+rm salt-*.src.rpm
rpmbuild -bp /usr/src/packag... | bash |
d_bash_11714 | ---
+++
@@ -20,7 +20,7 @@
fi
# update/install test packages
-mkdir -p "$PREFIX" && $NPM install --link --prefix "$PREFIX" || exit 3
+mkdir -p "$PREFIX" && $NPM ci --link --prefix "$PREFIX" || exit 3
# create scss test
mkdir -p tests/css | bash |
d_bash_11715 | ---
+++
@@ -1,21 +1,39 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
+test -n "$srcdir" || srcdir=$(dirname "$0")
+test -n "$srcdir" || srcdir=.
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
+olddir=$(pwd)
-PKG_NAME="gtk-mac-integration"
+cd $srcdir
-(test -f $srcdir/src/gtkosxappl... | bash |
d_bash_11716 | ---
+++
@@ -2,6 +2,7 @@
if [[ $TRAVIS_BRANCH != 'master' ]]; then
git clone -b develop https://github.com/ResearchStack/ResearchStack.git
pushd ResearchStack
+ cp ../local.properties .
./gradlew install
popd
fi | bash |
d_bash_11717 | ---
+++
@@ -1,16 +1,17 @@
pkg_name=cmake
pkg_origin=core
-pkg_version=3.5.2
+_base_version=3.6
+pkg_version=${_base_version}.2
pkg_maintainer='The Habitat Maintainers <humans@habitat.sh>'
-pkg_license=('custom')
-pkg_source=https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz
-pkg_shasum=92d8410d3d981bb881dfff2aed466da... | bash |
d_bash_11718 | ---
+++
@@ -1,28 +1,30 @@
#!/bin/bash
+CURRENT_DIR=$(pwd)
+FILE_DIR=$CURRENT_DIR/$(dirname $0)
USER="root"
-PWD=$MYSQL_ROOT_PASSWORD
-echo $PWD
-#PWD="12345678"
-DB=$MYSQL_DATABASE
+MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:=example}
+MYSQL_DATABASE=${MYSQL_DATABASE:=hg38}
TABLE="refGene"
-ls /tulip/hg38
-create... | bash |
d_bash_11719 | ---
+++
@@ -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-02-12-08-06-beta/OpenJDK18-jdk_x64_linux_hotspot_... | bash |
d_bash_11720 | ---
+++
@@ -1,6 +1,5 @@
#!/bin/bash
set -x
-set -e
which content_shell
if [[ $? -ne 0 ]]; then
@@ -10,6 +9,8 @@
cs_path=$(ls -d drt-*)
PATH=$cs_path:$PATH
fi
+
+set -e
DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )
BROWSER_TEST_FILE=$DIR/test.html | bash |
d_bash_11721 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
cd ~/cloudify/blueprints
-poc_blueprint_folder="/vagrant_data/poc-module/blueprints"
+export poc_blueprint_folder="/vagrant_data/poc-module/blueprints"
echo "Uploadng the blueprint and create a deployment"
cfy blueprints upload -b basicsinglenode -p ${poc_blueprint_folder}/ba... | bash |
d_bash_11722 | ---
+++
@@ -1,4 +1,15 @@
#!/bin/sh
+
+if [[ $(cat /proc/cpuinfo | grep vmx) ]]; then
+ modprobe kvm_intel
+elif [[ $(cat /proc/cpuinfo | grep svm) ]]; then
+ modprobe kvm_amd
+else
+ echo "WARNING: Your hardware does not support hardware virtualization -" \
+ "using qemu software virtualization inst... | bash |
d_bash_11723 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Copyright © Jonathan G. Rennison 2014 <j.g.rennison@gmail.com>
# License: New BSD License, see BSD-LICENSE.txt
@@ -8,17 +8,24 @@
# This is because it is otherwise overly cumbersome to disable its ssh-agent on some platforms.
# This is based on this post http://a... | bash |
d_bash_11724 | ---
+++
@@ -3,7 +3,7 @@
thirdparty_module_name='PNG'
upstream_git_url='git://git.code.sf.net/p/libpng/code'
-upstream_git_branch='v1.0.12beta1'
+upstream_git_branch='v1.6.9'
snapshot_author_name='LIBPNG Upstream'
snapshot_author_email='png-mng-implement@lists.sourceforge.net'
@@ -14,6 +14,7 @@
png*.c
pn... | bash |
d_bash_11725 | ---
+++
@@ -15,7 +15,8 @@
--image=dietmarw/notebook \
--command="setup.sh && \
ipython notebook --NotebookApp.base_url={base_path} --ip=0.0.0.0 --port {port}" \
- --redirect_uri="terminals/1"
+ --redirect_uri="terminals/1" \
+ --pool_size="2"
# This adds a rerou... | bash |
d_bash_11726 | ---
+++
@@ -6,7 +6,8 @@
}
factory_reset() {
- service spheramid stop
+ service sphere-client stop
+ service sphere-director stop
service ledcontroller stop
"$(dirname "$0")/recovery.sh" choose-latest factory-reset "$@"
} | bash |
d_bash_11727 | ---
+++
@@ -1,6 +1,9 @@
#!/bin/bash
set -e
+
+git config --global user.email "ci@msys2.org"
+git config --global user.name "MSYS2 Build Bot"
# fetch first changed file, assume at most one package touched per commit
TOUCHED=`git show --pretty="format:" --name-only | grep . | head -1` | bash |
d_bash_11728 | ---
+++
@@ -24,5 +24,5 @@
title=$(jq --raw-output .pull_request.title "$GITHUB_EVENT_PATH")
detail_url=$(jq --raw-output .pull_request.url "$GITHUB_EVENT_PATH")
-echo "http --ignore-stdin authorization:token REDACTED title=$title detail_url=$detail_url description=@$file_path"
-http --ignore-stdin "authorization:... | bash |
d_bash_11729 | ---
+++
@@ -1,4 +1,5 @@
-#! /bin/bash
+#! /bin/sh
set -e
+cd "$(dirname "$0")"
docker build -t libass/javascriptsubtitlesoctopus .
-docker run -it --rm -v ${PWD}:/code libass/javascriptsubtitlesoctopus:latest
+docker run -it --rm -v "${PWD}":/code libass/javascriptsubtitlesoctopus:latest | bash |
d_bash_11730 | ---
+++
@@ -9,7 +9,7 @@
echo "Upgrading dependencies for 2.4 community"
curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash -
sudo yum clean all
- sudo rpm -e --nodeps npm
+ sudo rpm -e --nodeps npm || true
sudo yum update -y nodejs
exit 0
fi | bash |
d_bash_11731 | ---
+++
@@ -6,7 +6,8 @@
mkdir -p fuzzylite/fuzzylite/release
cd fuzzylite/fuzzylite/release
-# We use g++-4.8 as >4.8 requires >= GLIBCXX 3.4.20, but only 3.4.19 is
-# available on ubuntu 14.04
-cmake .. -G"Unix Makefiles" -DCMAKE_CXX_COMPILER=$(which g++-4.8) -DCMAKE_BUILD_TYPE=Release -DFL_BACKTRACE=ON -DFL_USE... | bash |
d_bash_11732 | ---
+++
@@ -1,5 +1,10 @@
#!/bin/sh
# This is useful because it prints out all of the source files. Useful for
# greps.
-find www include lib tools utils -name \*.\[cdhyl\]\* | grep -v Lexer.cpp | grep -v llvmAsmParser.cpp | grep -v llvmAsmParser.h | grep -v '~$' | grep -v '\.ll$' | grep -v .flc | grep -v Sparc.bu... | bash |
d_bash_11733 | ---
+++
@@ -1,41 +1,6 @@
#!/usr/bin/env bash
-
-set -euo pipefail
-
-process_properties() {
- if [[ -f "$1" ]]; then
- while IFS='=' read -r key value; do
- if [[ -n "$value" ]]; then
- if [[ "$key" == "BOOT_JAVA_COMMAND" ]]; then
- java_command="$value"
- ... | bash |
d_bash_11734 | ---
+++
@@ -15,4 +15,5 @@
cp -rf ../src/tests/test_data/fake_root /persistent/
+git -C ../src fetch --unshallow
git -C ../src describe > /persistent/aktualizr-version | bash |
d_bash_11735 | ---
+++
@@ -11,7 +11,7 @@
eval "$(ssh-agent -s)" #start the ssh agent
ssh-add .travis/id_rsa
- gulp cd:pushAndRun
+ gulp cd
elif [ $TRAVIS_BRANCH = "staging" ]; then
echo "Deploying to staging and testing"
| bash |
d_bash_11736 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-# set -x
+set -x
set -e
export MN_BUILD=boost | bash |
d_bash_11737 | ---
+++
@@ -3,6 +3,7 @@
apps=(
937984704 # Amphetamine
499233976 # Cathode
+ 523620159 # CleanMyDrive 2
411643860 # DaisyDisk
847496013 # Deckset
408981434 # iMovie | bash |
d_bash_11738 | ---
+++
@@ -2,10 +2,10 @@
set -e
-adb push libs/armeabi-v7a/memo-pad-7-test /data/local/tmp/memo-pad-7-test
-adb push libs/armeabi-v7a/zenfone-2-test /data/local/tmp/zenfone-2-test
-adb push libs/armeabi-v7a/zenfone-2e-test /data/local/tmp/zenfone-2e-test
-adb push libs/armeabi-v7a/zenfone-c-test /data/local/tmp... | bash |
d_bash_11739 | ---
+++
@@ -13,8 +13,8 @@
# Create symbolic links.
# -i: Prompt the user if the target file already exists.
# -s: Create a symbolic link.
-sudo ln -i -s $(pwd)/opensim-cmd /usr/local/bin/opensim-cmd
-sudo ln -i -s $(pwd)/opensense /usr/local/bin/opensense
+sudo ln -i -s "$(pwd)/opensim-cmd" /usr/local/bin/opensim-... | bash |
d_bash_11740 | ---
+++
@@ -36,6 +36,10 @@
setup_bazelrc
}
+function add_to_bazelrc() {
+ echo "$@" >> .bazelrc
+}
+
function create_and_cd_client() {
setup_clean_workspace
echo "workspace(name = '$WORKSPACE_NAME')" >WORKSPACE | bash |
d_bash_11741 | ---
+++
@@ -19,9 +19,9 @@
OPTIND=1
output_dir="./jail"
-while getopts "o:f:" opt; do
+while getopts "o:v:" opt; do
case "$opt" in
- f)
+ v)
add_to_jail "$OPTARG" "$output_dir"
;;
o... | bash |
d_bash_11742 | ---
+++
@@ -1,3 +1,5 @@
alias nike='ssh parsons@nike.cs.uga.edu'
# vi: set noundofile :
alias l3='sudo LD_LIBRARY_PATH=/usr/local/lib openconnect --juniper --no-cert-check ssl.layer3com.com'
+
+alias vm4760='ssh mbp1988@172.17.149.120' | bash |
d_bash_11743 | ---
+++
@@ -7,4 +7,4 @@
cd ~/Sites/presentation/mvc-basics
# Use the artisan make command to create a new controller file.
-php artisan make:controller EventTicketController
+php artisan make:controller --resource EventTicketController | bash |
d_bash_11744 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/sh
dunstctl set-paused true
-i3lock -n
+XSECURELOCK_LIST_VIDEOS_COMMAND='find -L ~/vid/saver -type f' XSECURELOCK_SAVER=saver_mpv XSECURELOCK_NO_COMPOSITE=1 xsecurelock || i3lock -n
dunstctl set-paused false | bash |
d_bash_11745 | ---
+++
@@ -14,13 +14,13 @@
exit 1
fi
-# Hy doesn't work on 3.6+ :(
-if ! "$python" -c 'import sys; exit((sys.version_info[0] == 3 and sys.version_info[1] >= 6) or sys.version_info[0] > 3)'; then
- # TypeError: required field "is_async" missing from comprehension
- echo >&2 'skipping Hy test -- no workie on Pyth... | bash |
d_bash_11746 | ---
+++
@@ -6,7 +6,7 @@
rm -r build dist
# build binary package
-python setup.py bdist_rpm --requires="python-psutil, python-twisted, pygame, wmctrl, gnupg, fakeroot"
+python setup.py bdist_rpm --requires="python-psutil, python-twisted, wmctrl, gnupg, fakeroot"
# install it
echo "" | bash |
d_bash_11747 | ---
+++
@@ -8,3 +8,15 @@
alias ll="gls -l --color"
alias la='gls -A --color'
fi
+
+man() {
+ env \
+ LESS_TERMCAP_mb=$(printf "\e[1;31m") \
+ LESS_TERMCAP_md=$(printf "\e[1;31m") \
+ LESS_TERMCAP_me=$(printf "\e[0m") \
+ LESS_TERMCAP_se=$(printf "\e[0m") \
+ LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
+ L... | bash |
d_bash_11748 | ---
+++
@@ -16,6 +16,10 @@
EXTRA_ARGS+="--enable-fast"
fi
+if [ ! -z "$EXM_DEBUG_BUILD" ]; then
+ EXTRA_ARGS+="--enable-log-debug"
+fi
+
if [ ! -z "$ENABLE_MPE"]; then
EXTRA_ARGS+="--with-mpe=${MPE_INST}"
fi | bash |
d_bash_11749 | ---
+++
@@ -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_11750 | ---
+++
@@ -11,6 +11,35 @@
\"number_of_shards\" : ${ELASTICSEARCH_number_of_shards:-3},
\"number_of_replicas\" : ${ELASTICSEARCH_number_of_replicas:-1}
}
+ },
+ \"mappings\": {
+ \"Client\": {
+ \"properties\": {
+ \"ClientName\": {
+ \"type\": \"string\",
+ \"index\": \"not_analyzed\"
+ }... | bash |
d_bash_11751 | ---
+++
@@ -2,12 +2,21 @@
## Install and configure Java.
+# NOTE: The last installed version will apparently become the default.
+# NOTE: To select the version of Java to use, set JAVA_HOME, as below.
-# Cache the sudo password, as we'll need it to install Java.
-sudo -v
-# Install Java 8. (Requires sudo.)
+... | bash |
d_bash_11752 | ---
+++
@@ -15,15 +15,29 @@
git pull
echo "#### Configuring ####"
+
+# Python2
if [ -d /usr/lib/python2.7/config ]; then
python_config_path=/usr/lib/python2.7/config
else
python_config_path=/usr/lib/python2.7/config-x86_64-linux-gnu/
fi
+
+# Python3 (TODO: dynamically find version)
+py3_version=3.5
+if [... | bash |
d_bash_11753 | ---
+++
@@ -22,7 +22,9 @@
echo -e "\n\nPlease apply the code formatting changes without bloating the history."
echo -e "\tConsider running:"
echo -e "\t\tgit checkout $TRAVIS_BRANCH"
- echo -e "\t\tgit rebase -i --autosquash -x 'git-clang-format-7 master && git commit -a --amend --no-edit' master"
+ echo -... | bash |
d_bash_11754 | ---
+++
@@ -1,8 +1,6 @@
-#!/bin/bash
+#!/bin/bash -ex
service mysql start
-
-set -e
cd $(dirname $0)/../../git-cloud-controller
| bash |
d_bash_11755 | ---
+++
@@ -14,7 +14,7 @@
# build cci
cd $HOME && wget http://cci-forum.com/wp-content/uploads/2015/07/cci-0.2.0.tar.gz;
tar -xzf cci-0.2.0.tar.gz;
- cd cci-0.2.0 && ./configure --prefix=$HOME/install && make && make install;
+ cd cci-0.2.0 && ./configure --with-sm-cma --prefix=$HOME/install && make && mak... | bash |
d_bash_11756 | ---
+++
@@ -1,4 +1,11 @@
-#!/bin/sh
+#!/bin/bash
+# Uploads the current directory to S3 to be hosted as a static website
-# Uploads the current directory to S3 to be hosted as a static website
-aws s3 cp . s3://after.heap.fi/ --profile heap --region eu-west-1 --recursive --exclude "data/*"
+if [ "$1" == "--deploy" ... | bash |
d_bash_11757 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-mkdir -p "${SRCROOT}/tmp"
+mkdir -p "${SYMROOT}/pacts"
which pact-mock-service
-pact-mock-service start --pact-specification-version 2.0.0 --log "${SRCROOT}/tmp/pact.log" --pact-dir "${SRCROOT}/tmp/pacts" -p 1234
+pact-mock-service start --pact-specification-version 2.0.0 --... | bash |
d_bash_11758 | ---
+++
@@ -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_11759 | ---
+++
@@ -1,12 +1,26 @@
#!/bin/bash
# Run the translate over all inputfiles in src/test/resources/sitelog and output to /tmp/geodesyml/runall
+# $1 - (OPTIONAL) input file to process - output written to $OUTPUTDIRTMP
+# If no arg then processes all files in $INPUTDIR
INPUTDIR=src/test/resources/sitelog
-OUTPUT... | bash |
d_bash_11760 | ---
+++
@@ -37,9 +37,9 @@
test/unit/redis_pool.test.js \
test/unit/metadata.test.js \
test/unit/oauth.test.js \
- test/unit/psql.test.js
+ test/unit/psql.test.js \
+ test/acceptance/app.test.js
-#mocha -u tdd test/acceptance/app.test.js # hangs
#mocha -u tdd test/acceptance/app.auth.test.js # hangs
... | bash |
d_bash_11761 | ---
+++
@@ -24,5 +24,9 @@
set -x
rc="update-demo-kitten"
+echo "Stopping replicationController ${rc}"
+$KUBECTL stop rc ${rc} || true
-$KUBECTL stop rc ${rc}
+rc="update-demo-nautilus"
+echo "Stopping replicationController ${rc}"
+$KUBECTL stop rc ${rc} || true | bash |
d_bash_11762 | ---
+++
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
gocode close
+sleep 1
gocode set deny-package-renames true
echo "--------------------------------------------------------------------"
echo "Autocompletion tests..." | bash |
d_bash_11763 | ---
+++
@@ -26,7 +26,7 @@
done
dist/calicoctl container add node 192.168.1.1
-dist/calicoctl profile TEST_GROUP add member node
+dist/calicoctl profile TEST_GROUP member add node
while ! ip route |grep 192.168.1.1; do
echo "Waiting for felix to add route" | bash |
d_bash_11764 | ---
+++
@@ -2,12 +2,15 @@
cd Lib
PYTHONPATH=".:$PYTHONPATH"
export PYTHONPATH
-TESTS=`grep -r --include='*.py' -l -e doctest -e unittest *`
+test "x$PYTHON" = x && PYTHON=python
+FILTER=$1
+test "x$FILTER" = x && FILTER=.
+TESTS=`grep -r --include='*.py' -l -e doctest -e unittest * | grep "$FILTER"`
ret=0
for te... | bash |
d_bash_11765 | ---
+++
@@ -8,6 +8,8 @@
tldr zip && \
tldr du --os=linux && \
tldr du --os=osx && \
+ tldr du --os=linux --markdown && \
+ tldr du --os=osx --markdown && \
tldr --random && \
tldr --random-example && \
tldr --list && \ | bash |
d_bash_11766 | ---
+++
@@ -12,7 +12,7 @@
if [[ -z $break_previous ]]; then
echo "Granted, enjoy"
break_do
- elif [[ $(( $(date +%s) - $break_previous )) < $break_interval ]]; then
+ elif (( $(( $(date +%s) - $break_previous )) < $break_interval )); then
echo "Denied, get back to work."
els... | bash |
d_bash_11767 | ---
+++
@@ -7,6 +7,9 @@
alias pmmm2='python manage.py makemigrations'
alias pmm2='python manage.py migrate'
alias pm2='python manage.py'
+
+alias pir='pip install -r requirements.txt'
+alias spir='pip install -r requirements.txt'
| bash |
d_bash_11768 | ---
+++
@@ -1,3 +1,6 @@
+fpath=($ZSH/functions $fpath)
+autoload -U $ZSH/functions/*(:t)
+
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000 | bash |
d_bash_11769 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-CID=$(sudo docker run -d -v ~/velov-companion-server:/src eoger/flask-restful /sbin/my_init)
+CID=$(sudo docker run -d -v $(pwd):/src eoger/flask-restful /sbin/my_init)
echo -n "Flask container IP : "
sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' $CID | bash |
d_bash_11770 | ---
+++
@@ -12,7 +12,6 @@
do
read_file="doc/$Mod.html"
write_file="doc/rst/$Mod.rst"
-
pandoc --read=html --write=rst "$read_file" -o "$write_file"
sed -ie "1,6d" "$write_file" | bash |
d_bash_11771 | ---
+++
@@ -10,6 +10,8 @@
for image in baseos peer orderer ccenv tools; do
for release in ${RELEASE} ${TWO_DIGIT_RELEASE}; do
docker tag "hyperledger/fabric-${image}" "hyperledger/fabric-${image}:amd64-${release}"
+ docker tag "hyperledger/fabric-${image}" "hyperledger/fabric-${image}:${release}"
doc... | bash |
d_bash_11772 | ---
+++
@@ -1,4 +1,16 @@
#!/bin/bash
+
+# Set flags to indicate operating system.
+
+if [ $(uname -s) == "Linux" ]; then
+ export IS_LINUX=1
+fi
+if [ $(uname -s) == "Darwin" ]; then
+ export IS_MACOS=1
+fi
+if [ $(uname -s) == "MINGW32_NT-6.1" ]; then
+ export IS_MINGW=1
+fi
# INSTALL_PREFIX gives the d... | bash |
d_bash_11773 | ---
+++
@@ -1,5 +1,13 @@
#!/usr/bin/env bash
set -e
+
+if ! xcode-select -p >/dev/null 2>&1; then
+ xcode-select --install
+fi
+
+while ! xcode-select -p >/dev/null 2>&1; do
+ sleep 5
+done
if ! command -v brew > /dev/null; then
/usr/bin/ruby -e "$(curl -fsSL \ | bash |
d_bash_11774 | ---
+++
@@ -9,7 +9,7 @@
# - https://github.com/ffi/ffi/issues/485
#
apk update
-apk add build-base libffi-dev ruby ruby-dev ruby-irb
+apk add gcc libffi-dev musl-dev make ruby ruby-dev
gem install --no-document bundler jekyll
# Other dependencies for gems | bash |
d_bash_11775 | ---
+++
@@ -13,4 +13,17 @@
# copy relevant generated CSVs to scorecard repo
cp /home/numbergen/gbm-IATI-Dashboard/web/summary_stats.csv /var/www/grand-bargain-monitoring/data/app/summary_stats.csv
-echo "Updated Scorecard data"
+echo "Copied Scorecard data"
+
+echo "Fetching humanitarian data from Dashboard"
+
+w... | bash |
d_bash_11776 | ---
+++
@@ -2,7 +2,7 @@
sudo portsnap fetch extract update
# Minimum required PHP install + pecl
-sudo pkg install -y pcre php56 php56-openssl php56-json pear autoconf pkgconf cyrus-sasl
+sudo pkg install -y pcre php56 php56-openssl php56-json php56-zlib pear autoconf pkgconf cyrus-sasl
# We need vim. git requ... | bash |
d_bash_11777 | ---
+++
@@ -20,7 +20,7 @@
fi
cp -r $DOCS_DIR/* $PAGES_DIR
-echo "<meta http-equiv=\"refresh\" content=\"0; url=https://contentful.github.io/contentful.js/contentful/$VERSION/\">" > $PAGES_DIR/index.html
+echo "<meta http-equiv=\"refresh\" content=\"0; url=https://contentful.github.io/contentful.js/contentful/${VE... | bash |
d_bash_11778 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-if [[ "command -v docker >/dev/null 2>&1" ]]; then
+if hash docker 2>/dev/null; then
echo "Docker already installed.";
else
echo "Installing docker ..." | bash |
d_bash_11779 | ---
+++
@@ -16,7 +16,7 @@
alias history='fc -l 1'
-alias ls='ls -GF'
+alias ls='ls -F'
alias ll='ls -al'
alias sgem='sudo gem'
@@ -34,3 +34,6 @@
alias ett='mate app config lib db public spec test Rakefile Capfile Todo &'
alias etp='mate app config lib db public spec test vendor/plugins vendor/gems Rakefile... | bash |
d_bash_11780 | ---
+++
@@ -1,3 +1,2 @@
#!/bin/bash
-sudo apt-get install gfortran python-numpy python-scipy cython g++ gcc\
-liblapack-pic liblapack-dev
+sudo apt-get install gfortran python-numpy python-scipy cython g++ gcc liblapack-dev | bash |
d_bash_11781 | ---
+++
@@ -4,6 +4,7 @@
export GOPATH=$PWD/..
export GOBIN=$GOPATH/bin
+export PATH=$GOBIN:$PATH
go get github.com/onsi/ginkgo/ginkgo
# The following line will fail with the || echo, since tests don't | bash |
d_bash_11782 | ---
+++
@@ -11,4 +11,5 @@
rm -fr /tmp/osd*
# delete all etcd keys
-etcdctl rm --recursive /castle/ceph
+etcdctl rm --recursive /castle
+etcdctl rm --recursive /clusterd | bash |
d_bash_11783 | ---
+++
@@ -11,7 +11,7 @@
}
for PYBIN in /opt/python/*/bin; do
- if [[ $PYBIN == *"36"* ]] || [[ $PYBIN == *"37"* ]] || [[ $PYBIN == *"38"* ]]; then
+ if [[ $PYBIN == *"36"* ]] || [[ $PYBIN == *"37"* ]] || [[ $PYBIN == *"38"* ]] || [[ $PYBIN == *"39"* ]]; then
"${PYBIN}/pip" install -r /io/dev-requ... | bash |
d_bash_11784 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
-IZPACK_DIR="/usr/local/IzPack421"
-#IZPACK_DIR="/Applications/IzPack"
+#IZPACK_DIR="/usr/local/IzPack421"
+IZPACK_DIR="/Applications/IzPack"
export TIGVER=`grep -m 1 "Tigase-Version:" MANIFEST.MF | sed -e "s/Tigase-Version: \(.*\)/\\1/"`
sed -e "s/<appversion>\([^<]*\)<\/ap... | bash |
d_bash_11785 | ---
+++
@@ -9,4 +9,4 @@
export DISPLAY=:9.0
# Start the Node-Express microservice
-npm start
+DEBUG=* npm start | bash |
d_bash_11786 | ---
+++
@@ -39,4 +39,5 @@
./jenkins/prep_synapse.sh
TOX_BIN="`pwd`/synapse/.tox/py27/bin"
+$TOX_BIN/pip install psycopg2
./jenkins/install_and_run.sh --python="$TOX_BIN/python" --port-base ${PORT_BASE} | bash |
d_bash_11787 | ---
+++
@@ -9,4 +9,6 @@
mix firmware
mix firmware.image artifacts/farmbot-${MIX_TARGET}-$(cat VERSION).img
fwup -S -s $NERVES_FW_PRIV_KEY -i _build/${MIX_TARGET}/${MIX_ENV}/nerves/images/farmbot.fw -o artifacts/farmbot-${MIX_TARGET}-$(cat VERSION).fw
-ghr -t $GITHUB_TOKEN -u farmbot -r farmbot_os -recreate -prerel... | bash |
d_bash_11788 | ---
+++
@@ -3,20 +3,15 @@
set -e
errors=0
-#TOP_DIR=`pwd`
-#cd python
-
# Run unit tests
-python python/biotool/biotool_test.py > /dev/null 2>&1 || {
- echo "'python biotool_test.py' failed"
+python python/biotool/biotool_test.py || {
+ echo "'python python/biotool/biotool_test.py' failed"
let errors+... | bash |
d_bash_11789 | ---
+++
@@ -1,4 +1,14 @@
#!/bin/bash -eu
+
+BLUE='\033[0;34m'
+RED='\033[0;31m'
+BOLD='\033[1m'
+NC='\033[0m'
+ARROW="${BLUE}==>${NC}${BOLD}"
+
+print() {
+ echo -e "$1${NC}"
+}
install() {
if test $dist = Raspbian -or $dist = Ubuntu; then
@@ -12,12 +22,12 @@
os_name=$(uname)
if test $os_name = Darwin; then
... | bash |
d_bash_11790 | ---
+++
@@ -16,7 +16,7 @@
# set -x
# This should use the real ESAPI.properties in $esapi_resources that does
# not yet have Encryptor.MasterKey and Encryptor.MasterSalt yet set.
-java -Dlog4j.configuration="$log4j_properties" \
+java -Dlog4j.configuration="file:$log4j_properties" \
-Dorg.owasp.esapi.resource... | bash |
d_bash_11791 | ---
+++
@@ -1,6 +1,9 @@
#!/bin/sh
+set -x
echo "Setting time to $1"
timedatectl set-ntp false
-timedatectl set-time $1
+timedatectl set-time "$1"
timedatectl set-ntp true
+echo "Time is now: `date`"
+ | bash |
d_bash_11792 | ---
+++
@@ -27,3 +27,10 @@
python -m openquake.commands db set_status 1 executing
# repeat the failed/executing calculation, which is useful for QGIS
python -m openquake.commands engine --run $1/hazard/AreaSourceClassicalPSHA/job.ini
+
+
+# display the calculations
+python -m openquake.commands db find %
+
+# buil... | bash |
d_bash_11793 | ---
+++
@@ -1,5 +1,4 @@
# zsh-users/zsh-autosuggestions
-bindkey '^[[C' autosuggest-accept
bindkey '^ ' autosuggest-accept
bindkey -M vicmd ' ' autosuggest-accept
bindkey -M vicmd 'L' autosuggest-accept | bash |
d_bash_11794 | ---
+++
@@ -1,11 +1,11 @@
#!/bin/sh
-cp ../led_strip.h .
-cp ../led_strip.c led_strip.cpp
-cp ../led_strip_no_backend.c led_strip_no_backend.cpp
-cp ../led_strip_no_backend.h .
-cp ../led_strip-cpp.h .
-cp ../led_strip-cpp-implementation.h .
-cp ../led_strip_struct.h .
+cp ../src/led_strip.h .
+cp ../src/led_strip... | bash |
d_bash_11795 | ---
+++
@@ -35,3 +35,7 @@
echo "'$1' is not a valid file"
fi
}
+
+function dockerenv {
+ eval "$(docker-machine env local-fusion)"
+} | bash |
d_bash_11796 | ---
+++
@@ -24,5 +24,5 @@
exec /srv/www/django/microwebenv/bin/newrelic-admin run-program \
/srv/www/django/microwebenv/bin/gunicorn_django -b $HOST \
- -w $NUM_WORKERS --user=$USER --group=$GROUP --log-level=info \
+ -w $NUM_WORKERS -k gevent --user=$USER --group=$GROUP --log-level=info \
--log-file=$LOGF... | bash |
d_bash_11797 | ---
+++
@@ -24,11 +24,8 @@
chmod a+x /kubemark.sh
tar xzf /tmp/kubemark.tar.gz
-cp kubernetes/server/bin/hyperkube /
cp kubernetes/server/bin/kubemark /
-cp kubernetes/server/bin/kubectl /
rm -rf /tmp/*
-apt-get remove -y build-essential
apt-get clean -y
apt-get autoremove -y | bash |
d_bash_11798 | ---
+++
@@ -1,4 +1,4 @@
cd /c/projects/plib-build
-/c/Program\ Files\ (x86)/CMake/bin/cmake -DCMAKE_BUILD_TYPE=$configuration -G"$CMAKE_GENERATOR" $BOOST_ARGS /c/projects/plib
+"/c/Program Files (x86)/CMake/bin/cmake" -DCMAKE_BUILD_TYPE=$configuration -G"$CMAKE_GENERATOR" $BOOST_ARGS /c/projects/plib
make
-/c/Progr... | bash |
d_bash_11799 | ---
+++
@@ -1,6 +1,17 @@
#!/usr/bin/env bash
-cd ../klio
-gsi -:da prelude lists charsets strings base64 datetime http kws -e '(kws#kws port-number: 8000 server-root: "../benchmarks/sandbox/" multithread: #t)'
+export KLIO_PATH=../klio
+gsi -:da \
+$KLIO_PATH/prelude \
+$KLIO_PATH/lists \
+$KLIO_PATH/charsets \
... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.