document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_23400 | ---
+++
@@ -3,8 +3,8 @@
# Update repo directory with the latest libraries from /opt/orientdb/lib
# This is required when yuou recompile orientdb!
-VERSION="1.7.9-SNAPSHOT"
-BASEDIR=/opt/orientdb/lib/
+VERSION="2.0.3"
+BASEDIR=../orientdb/distribution/target/
REPODIR=repo/
GROUPID="com.orientechnologies"
| bash |
d_bash_23401 | ---
+++
@@ -4,7 +4,7 @@
export DEBIAN_FRONTEND=noninteractive
apt-get update
-apt-get install -y --no-install-recommends ca-certificates gcc libc6-dev make automake wget git coreutils cpio squashfs-tools realpath autoconf file libacl1-dev libtspi-dev
+apt-get install -y --no-install-recommends ca-certificates gcc... | bash |
d_bash_23402 | ---
+++
@@ -10,4 +10,6 @@
done
# Launch -- we have net.
+killall ntpd 2>/dev/null
+sleep 1
/usr/local/sbin/ntpd -s -f /var/etc/ntpd.conf | bash |
d_bash_23403 | ---
+++
@@ -9,6 +9,11 @@
if [ "$PR" != "false" ];
then
echo "Running on pull request $PR"
+ if [ ! -z "$api_key" ];
+ then
+ echo "Downloading sputnik.properties"
+ wget -q "http://sputnik.touk.pl/conf/$TRAVIS_REPO_SLUG/sputnik-properties?key=$api_key" -O sputnik.properties
+ fi
wget "https://philant... | bash |
d_bash_23404 | ---
+++
@@ -1,10 +1,16 @@
PW=/usr/sbin/pw
+CHOWN=/usr/sbin/chown
+AWK=/usr/bin/awk
pw_create_account ( ) {
echo "Adding user $1 with password $1"
mkdir -p ${BOARD_FREEBSD_MOUNTPOINT}/usr/home/$1
$PW useradd -n $1 -s /bin/csh -g wheel -w yes -V ${BOARD_FREEBSD_MOUNTPOINT}/etc/ -d /usr/home/$1
+
+ ... | bash |
d_bash_23405 | ---
+++
@@ -1,12 +1,25 @@
# Adjust screen brightness from CLI
br() {
- if [[ -z $1 ]]; then
- echo "usage: br INT"
- echo " INT is an integer from 1 to 4"
- elif [ $1 -eq 1 -o $1 -eq 2 -o $1 -eq 3 -o $1 -eq 4 ]; then
- echo $(($1*1000)) | sudo tee /sys/class/backlight/intel_backlight/brightness >/dev/nul... | bash |
d_bash_23406 | ---
+++
@@ -12,3 +12,4 @@
bindkey 'g' get-line
bindkey 'h' run-help
bindkey 'q' push-line
+bindkey 's' sudo-command-line | bash |
d_bash_23407 | ---
+++
@@ -19,7 +19,7 @@
set -e
( cd buildrump.sh && ./buildrump.sh -T ${RUMPTOOLS} -d ${RUMPDEST} -q \
checkout fullbuild || die buildrump.sh failed )
-( cd dpdk ; make T=$(uname -m)-default-linuxapp-gcc config && make \
+( cd dpdk ; make T=$(uname -m)-native-linuxapp-gcc config && make \
|| die dpdk bu... | bash |
d_bash_23408 | ---
+++
@@ -4,7 +4,9 @@
# https://askubuntu.com/questions/1037646/why-is-openjdk-10-packaged-as-openjdk-11
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt update
-sudo apt install -y tmux openjdk-8-jdk openjdk-8-dbg git vim xfce4 vagrant virtualbox libssl-dev tree linux-tools-common linux-tools-generic openjdk-... | bash |
d_bash_23409 | ---
+++
@@ -1,2 +1,2 @@
#/bin/sh
-/root/spark/bin/spark-submit --class vc.inreach.ml.classifiers.ClassifierTrainingTask --deploy-mode client --driver-memory 7g --driver-cores 2 /jar/inreach-ml-batch.jar -data_path s3n://inreach-prod-dynamo-data/dynamoDbData_20161219/ -model_path s3n://inreach-ml-models/ -aws remote ... | bash |
d_bash_23410 | ---
+++
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+set -euo pipefail
function cleanup {
if [ -n "$uuid" ]; then | bash |
d_bash_23411 | ---
+++
@@ -12,7 +12,7 @@
# Provide setup according to kernel-spec
# https://jupyter-client.readthedocs.io/en/latest/kernels.html#kernel-specs
-if [[ "$UNAMESTR" == 'linux' ]]; then
+if [[ "$UNAMESTR" == 'Linux' ]]; then
KERNEL_DIR=~/.local/share/jupyter/kernels
elif [[ "$UNAMESTR" == 'Darwin' ]]; then
KERNE... | bash |
d_bash_23412 | ---
+++
@@ -30,3 +30,7 @@
echo "installing python"
apt-get install python
)
+
+# Disable cadvisor docker
+systemctl disable cadvisor
+systemctl stop cadvisor | bash |
d_bash_23413 | ---
+++
@@ -31,4 +31,4 @@
oc=${kubectl}
fi
-${TESTS_OUT_DIR}/tests.test -kubeconfig=${kubeconfig} -container-tag=${docker_tag} -container-tag-alt=${docker_tag_alt} -container-prefix=${functest_docker_prefix} -oc-path=${oc} -kubectl-path=${kubectl} -test.timeout 210m ${FUNC_TEST_ARGS} -installed-namespace=${na... | bash |
d_bash_23414 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-set -euo pipefail
+set -eu
# This file is intentionally excluded in mypy config for normal runs so the un-stubbed operation.py
# can be type-checked against the rest of the codebase. | bash |
d_bash_23415 | ---
+++
@@ -16,7 +16,7 @@
fi
fi
-function man() {
+function colored() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
@@ -28,5 +28,9 @@
PAGER="${commands[less]:-$PAGER}" \
_NROFF_U=1 \
PATH="$HOME/bin:$PATH" \
- man "$@"
+ "$@"
}
+
+function man() {
+ c... | bash |
d_bash_23416 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/sh
osarch=`uname -s | tr A-Z a-z`-`uname -m`
+export TMPDIR=`pwd`
if [ -x ./idk-installer-$osarch ] ; then
exec ./idk-installer-$osarch "${@}"
else | bash |
d_bash_23417 | ---
+++
@@ -19,6 +19,7 @@
update_use 'dev-vcs/git' '-perl'
update_use 'app-crypt/pinentry' '+ncurses'
update_keywords 'app-portage/layman' '+~amd64'
+ update_keywords 'dev-python/ssl-fetch' '+~amd64'
emerge sys-devel/crossdev dev-vcs/git app-portage/layman sys-devel/distcc
# setup layman
... | bash |
d_bash_23418 | ---
+++
@@ -11,14 +11,15 @@
out="${base}/compiled-${GOOS}"
+semver=`grep "VERSION =" /tmp/const.go | cut -d\" -f2`
timestamp=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
git_rev=`git rev-parse --short HEAD`
-version="${git_rev}-${timestamp}"
+version="${semver}-${git_rev}-${timestamp}"
filename="gnatsd-${version}-${GO... | bash |
d_bash_23419 | ---
+++
@@ -1,7 +1,14 @@
function bepc() {
- if [ -f knapsack_cucumber_report.json ]; then
- DISABLE_SPRING=1 bundle exec rake knapsack:cucumber
- else
- DISABLE_SPRING=1 bundle exec rake parallel:features
- fi
+ case $1 in
+ '')
+ if [ -f knapsack_cucumber_report.json ]; then
+ DISABLE_SPRI... | bash |
d_bash_23420 | ---
+++
@@ -17,7 +17,7 @@
chmod +x /usr/local/bin/phpunit
# Move redis test config file into place
-mv "$DIR/test/redis.toml" "$DIR/app/config/redis.toml"
+mv "$DIR/tests/redis.toml" "$DIR/app/config/redis.toml"
# Install gd | bash |
d_bash_23421 | ---
+++
@@ -2,5 +2,5 @@
pip install \
pandas==0.25.3
python run.py \
- $CROSSCOMPUTE_INPUT_FOLDER \
- $CROSSCOMPUTE_OUTPUT_FOLDER
+ "$CROSSCOMPUTE_INPUT_FOLDER" \
+ "$CROSSCOMPUTE_OUTPUT_FOLDER" | bash |
d_bash_23422 | ---
+++
@@ -7,7 +7,7 @@
# We need this installed, but we don't want it to live in the main requirements
# We will need to periodically review this pinning
pip install --upgrade pip
-pip install --upgrade pip-tools==6.5.0 # Needs at least this version to build.
+pip install --upgrade pip-tools==6.6.2 # Needs at l... | bash |
d_bash_23423 | ---
+++
@@ -17,4 +17,4 @@
export CONSOLE_SENTRY_DSN=$console_sentry_dsn
mkdir -p /lain/logs
-exec gunicorn -w 3 -b 0.0.0.0:8000 --max-requests=100 --preload --error-logfile /lain/logs/error.log --access-logfile /lain/logs/access.log console.wsgi
+exec gunicorn -w 3 -b 0.0.0.0:8000 --preload --error-logfile /lain... | bash |
d_bash_23424 | ---
+++
@@ -14,13 +14,18 @@
rm -rf $TMP_CHECKOUT_DIR/*
cp -r dist/* $TMP_CHECKOUT_DIR
cd $TMP_CHECKOUT_DIR
+
echo "deploy: configuring git user+email"
git config user.name "Travis-CI"
git config user.email "contact+travis-for-tddbin@uxebu.com"
+
echo "deploy: adding files"
- git add .
+ # `--al... | bash |
d_bash_23425 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
if [ ! -f packages/FAKE/tools/Fake.exe ]; then
- mono .NuGet/NuGet.exe install FAKE -OutputDirectory packages -ExcludeVersion -Prerelease
+ mono .nuget/NuGet.exe install FAKE -OutputDirectory packages -ExcludeVersion -Prerelease
fi
mono packages/FAKE/tools/FAKE.exe build.fsx ... | bash |
d_bash_23426 | ---
+++
@@ -3,5 +3,5 @@
K8S_SOURCE_DIR=~/work/kubernetes
make
-${K8S/SOURCE_DIR}/cluster/kubectl.sh create -f testas.json
-${K8S/SOURCE_DIR}/cluster/kubectl.sh create -f testrc.json
+${K8S_SOURCE_DIR}/cluster/kubectl.sh create -f testas.json
+${K8S_SOURCE_DIR}/cluster/kubectl.sh create -f testrc.json | bash |
d_bash_23427 | ---
+++
@@ -1,5 +1,5 @@
#! /bin/sh
cpp -P -DG_OS_UNIX -DGDK_WINDOWING_X11 ${srcdir:-.}/gtk.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' | sort > expected-abi
-nm -D -g --defined-only .libs/libgtk-x11-3.0.so | cut -d ' ' -f 3 | egrep -v '^(__bss_start|_edata|_end)' | sort > actual-abi
+nm -D -g -... | bash |
d_bash_23428 | ---
+++
@@ -21,6 +21,7 @@
#
# Just run the stub!
#
+uptime
echo "Running PID $$"
echo "Starting magent on $PLAB_IFACE ($PLAB_IP) Extra arguments: $*"
exec $AS_ROOT $NETMON_DIR/instrument-standalone.sh $MAGENT_DIR/$MAGENT --interface=$PLAB_IFACE --replay-save=/local/logs/stub.replay $* | bash |
d_bash_23429 | ---
+++
@@ -1,4 +1,9 @@
-#!/bin/bash
+#!/usr/bin/env bash
+
+if [ $CI == "true" ]; then
+ git config --global user.email "deploy@circleci"
+ git config --global user.name "CircleCI deployment"
+fi
cp index.html dist
sed -i -- 's~/_compile/src/Main.elm~main.js~' dist/index.html | bash |
d_bash_23430 | ---
+++
@@ -15,6 +15,8 @@
nohup roslaunch rosbridge_server rosbridge_websocket.launch > /dev/null &
+sleep 1
+
{% for cmd in start_cmds %}
{{ cmd }}
{% endfor %} | bash |
d_bash_23431 | ---
+++
@@ -2,12 +2,8 @@
#
# jenkins-build-rpm.sh - Top level script that runs all the commands needed to build an rpm task in Jenkins
#
-# If all the conventions have been followed this script can be used to keep the Execute shell command window short
+# If we follow a simple naming convention we can keep the Exe... | bash |
d_bash_23432 | ---
+++
@@ -1,6 +1,8 @@
#!/bin/zsh
-nice ffmpeg -i ${1} -filter:v yadif,scale=768:576,crop=736:560:16:8,deshake -c:v libx264 -profile:v high -preset medium -crf 23 -c:a libfaac -ab 128k ${1}.mp4
+# for i in *.vob; do ~/bin/nosleep ../EncodeVob.sh $i; done
+
+nice ffmpeg -i ${1} -filter:v yadif,scale=768:576,crop=7... | bash |
d_bash_23433 | ---
+++
@@ -1,6 +1,14 @@
#!/bin/sh
+
+command -v s3cmd >/dev/null 2>&1 || { echo "s3cmd not found. Aborting." >&2; exit 1; }
SOURCE=./public/
TARGET=s3://iiro.fi
-aws s3 sync $SOURCE $TARGET --delete --sse
+s3cmd sync $SOURCE $TARGET \
+ --delete-removed \
+ --guess-mime-type \
+ --no-mime... | bash |
d_bash_23434 | ---
+++
@@ -3,6 +3,7 @@
IMAGENAME=${1:-${IMAGENAME}}
LOCKNAME=${2:-${HOSTNAME}}
+LOCKID=${3:-${LOCKID}}
# ETCDCTL_PEERS - a comma-delimited list of machine addresses in the cluster (default: "127.0.0.1:4001")
: ${ETCDCTL_PEERS:=127.0.0.1:4001}
@@ -29,8 +30,6 @@
etcdctl -C ${ETCDCTL_PEERS} --no-sync rm $ET... | bash |
d_bash_23435 | ---
+++
@@ -5,4 +5,7 @@
echo 'Run me as user, please!'
sudo ./createvm.sh $HOSTNAME $IP
+
+sleep 30
+
knife bootstrap $IP -x brain -N $HOSTNAME-toad -P password -r 'role[simple_webserver]' --sudo | bash |
d_bash_23436 | ---
+++
@@ -8,7 +8,7 @@
-H "Authorization: Bearer $TOKEN" \
-d '
{
- "name":"core1",
+ "name":"'$1'",
"region":"ams3",
"size":"512mb",
"image":"coreos-stable", | bash |
d_bash_23437 | ---
+++
@@ -6,7 +6,7 @@
set -e
-BASEDIR="$(readlink -m "$(dirname "$0")/..")"
+BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
IS_SNAPSHOT="$(grep 'VERSION_NAME=[0-9\.]\+-SNAPSHOT' "$BASEDIR/gradle.properties")"
if [ "$CIRCLE_PROJECT_USERNAME" != "facebook" ]; then | bash |
d_bash_23438 | ---
+++
@@ -9,4 +9,4 @@
mkdir -p "$HOME/.ssh"
chmod og-rwx "$HOME/.ssh"
-echo "$GITHUB_HOSTKEY" >> "$HOME/.ssh/authorized_keys"
+echo "$GITHUB_HOSTKEY" >> "$HOME/.ssh/known_hosts" | bash |
d_bash_23439 | ---
+++
@@ -3,6 +3,7 @@
SRCDIR=$(pwd)/../src
cd `dirname $0`
FILE=`basename $0`
+bash $SRCDIR/org/webdsl/dsl/project/webdsl cleanall > /dev/null 2> /dev/null
bash $SRCDIR/org/webdsl/dsl/project/webdsl test $FILE > /dev/null 2> $FILE.out
grep "$(cat $FILE.app | head -n 1 | sed 's/^[/]*//')" $FILE.out > /dev/null
... | bash |
d_bash_23440 | ---
+++
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
+
+export HOME=$HOME
# Set username and password in config
: =${RABBITMQ_USER:='guest'} | bash |
d_bash_23441 | ---
+++
@@ -21,8 +21,3 @@
# Create a group and assign the user to it
dseditgroup -o create "$SSH_USERNAME"
dseditgroup -o edit -a "$SSH_USERNAME" "$SSH_USERNAME"
-
-if [ "$OSX_VERS" = "11" ]; then
- nvram boot-args=rootless=0
- reboot
-fi | bash |
d_bash_23442 | ---
+++
@@ -13,13 +13,27 @@
$LINEBAR
EOF
-#TODO: Add detection for pip.
export PYTHONPATH=$SRCDIR:$PYTHONPATH
[ -z "${VENV_DIR:-}" ] && export VENV_DIR="$DIR/venv"
[ -z "${PYTHON_BIN:-}" ] && export PYTHON_BIN="python3"
+
+if $PYTHON_BIN == "python3"
+then
+ PIP_BIN=pip3
+else
+ PIP_BIN=pip
+fi
+
... | bash |
d_bash_23443 | ---
+++
@@ -2,7 +2,7 @@
echo "Before removing git-hooks from your system make syre to run: 'git-hooks --uninstall' on all your repos"
echo "This can also be done manually. The backup hooks folder is called hooks.old and can be found in the .git folder in your repos"
-read -p "Do you really wish to remove git-hook... | bash |
d_bash_23444 | ---
+++
@@ -4,7 +4,7 @@
# URL of LXD image with pre-provisioned Media Cloud dependencies
# (use ./.travis-lxd/setup_travis_lxd_image.sh) to create a new one)
-MC_LXD_IMAGE_PROVISIONED_URL=https://s3.amazonaws.com/mediacloud-travis-lxd-images/travis-lxd-images/mediacloud-travis-20190104.tar.gz
+MC_LXD_IMAGE_PROVIS... | bash |
d_bash_23445 | ---
+++
@@ -1,7 +1,9 @@
# Synaptics TouchPad driver settings
-if [ synclient=$(which synclient) -a -x $synclient];then
- # 2 finger scroll
- synclient HorizTwoFingerScroll=1 VertTwoFingerScroll=1 EmulateTwoFingerMinZ=40 EmulateTwoFingerMinW=8 2>/dev/null
- # Palm rejection
- synclient PalmDetect=1 PalmMinWidth=6 P... | bash |
d_bash_23446 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-DEBUG=0
+DEBUG=1
LOGFILE=${HOME}/gitdeploy.$(date +%Y%m%d.%H%M%S).log
@@ -9,6 +9,13 @@
echo $*
echo "$(date) | $*" >> ${LOGFILE}
+}
+
+function debug_message () {
+# displays additional messages when needed
+ if [ ${DEBUG} -eq 1 ]; then
+ log_message "DEBUG $*"
+ fi... | bash |
d_bash_23447 | ---
+++
@@ -8,7 +8,7 @@
-zipkin.itemQueue.maxSize=10\
-com.twitter.finagle.tracing.debugTrace=false\
-zipkin.kafka.groupid=collector\
- -zipkin.kafka.server=ec2-174-129-254-64.compute-1.amazonaws.com:2181,ec2-23-21-69-105.compute-1.amazonaws.com:2181,ec2-75-101-130-163.compute-1.amazonaws.com:2181/K... | bash |
d_bash_23448 | ---
+++
@@ -18,6 +18,7 @@
echo "Error in output for test $i!!"
fi
fi
+
if test -f $status_correct_file; then
status_correct=$(cat $status_correct_file)
fi
@@ -33,3 +34,4 @@
done
echo "Found $error_count errors while running $test_count tests"
+test $error_count = 0 | bash |
d_bash_23449 | ---
+++
@@ -11,7 +11,7 @@
dir=$(dirname "$0")
${APK} add -U git ${BUILDDEPS}
-"${dir}/retrycmd.sh" "${PIP3} -r pip-requirements.txt"
+"${dir}/retrycmd.sh" "${PIP3} -r ${FROOT}/pip-requirements.txt"
"${dir}/retrycmd.sh" "${PIP3} setuptools ${TESTDEPS}"
"${dir}/retrycmd.sh" "${PIP3} -r ${FROOT}/requirements.txt"
... | bash |
d_bash_23450 | ---
+++
@@ -1,8 +1,16 @@
-echo "Check if VERSION.txt has been updated"
+echo "Check to see if a tag for this version exists"
-if git diff --exit-code --quiet packages/govuk-elements-sass/VERSION.txt; then
- echo "VERSION.txt is unchanged, no need to create release."
+# Get the version from the version file
+VERSIO... | bash |
d_bash_23451 | ---
+++
@@ -5,53 +5,6 @@
# fetched&started in another step
[ -e /run/ostree-booted ] && exit 0
-if [[ `systemctl` =~ -\.mount ]]; then
-
- # if there is no system unit file, install a local unit
- if [ ! -f /usr/lib/systemd/system/os-collect-config.service ]; then
-
- cat <<EOF >/etc/systemd/system/o... | bash |
d_bash_23452 | ---
+++
@@ -1,6 +1,11 @@
#!/bin/bash
-TMP_DIR=`mktemp -d`
+if [ "$(uname)" == "Darwin" ]; then
+ TMP_DIR=`mktemp -d -t 'tmpdir'`
+else
+ TMP_DIR=`mktemp -d`
+fi
+
BUILD_DIR=${TMP_DIR}/VelvetOpt
mkdir -p ${PREFIX}/bin
cp VelvetOptimiser.pl ${PREFIX}/bin | bash |
d_bash_23453 | ---
+++
@@ -9,3 +9,7 @@
REGEXP=s/`echo $(dirname $(dirname $DIR)) | sed -e 's/\\//\\\\\//g'`//g
sed -i $REGEXP $TARGET/*.html
+
+SHA1=`git rev-parse HEAD`
+REGEXP='s/(<td class="versionInfo">.*?at )[^.]+/\1<a href="https:\/\/github.com\/s9e\/TextFormatter\/tree\/'$SHA1'">'$SHA1'<\/a>/'
+sed -i -r "$REGEXP" $TARGE... | bash |
d_bash_23454 | ---
+++
@@ -7,11 +7,8 @@
mkdir test/tmp
cp Makefile test/tmp/Makefile
cd test/tmp
- if [[ "$OSTYPE" == "linux-gnu" ]]
- then
- echo "CC := ${CC}" >> .compiler.mk
- echo "CXX := ${CXX}" >> .compiler.mk
- fi
+ if ! [ -z "$CC" ]; then echo "CC := ${CC}" >> .compiler.mk; fi
+ if ! [ -z "$CXX" ]; ... | bash |
d_bash_23455 | ---
+++
@@ -18,7 +18,7 @@
}
function cleanup_index_file() {
- sed -i '.original' 's/#//g' city_index.csv
+ sed -i '.original' 's/#//g' /usr/src/app/export/city_index.csv
}
function main() { | bash |
d_bash_23456 | ---
+++
@@ -1,4 +1,3 @@
-
# Mercurial
alias hgc='hg commit'
alias hgb='hg branch'
@@ -9,9 +8,11 @@
alias hged='hg diffmerge'
# pull and update
alias hgi='hg incoming'
+alias hgic='hg incoming | grep "changeset" | wc -l'
alias hgl='hg pull -u'
alias hglr='hg pull --rebase'
alias hgo='hg outgoing'
+alias hgoc=... | bash |
d_bash_23457 | ---
+++
@@ -9,10 +9,10 @@
eval "$(ssh-agent -s)"
chmod 600 deploy_key
ssh-add deploy_key
-rm deploy_key
git remote remove origin
git remote add origin git@github.com:adamcharnock/lightbus.git
mkdocs gh-deploy --force
+rm deploy_key
| bash |
d_bash_23458 | ---
+++
@@ -30,6 +30,11 @@
send_cmd log INFO "Installing Steam package..."
sudo dpkg -i ${steam_package} &>/dev/null || exit 1
+
+ # Add HiDPI skin
+ send_cmd log INFO "Adding HiDPI skin..."
+ mkdir -p .local/share/Steam/skins && cd .local/share/Steam/skins && \
+ git clone https://github.com/... | bash |
d_bash_23459 | ---
+++
@@ -14,7 +14,7 @@
# Bash completion for Mac
# Check if brew is available (@see http://stackoverflow.com/a/677212)
-if [ type brew 2>/dev/null && -f `brew --prefix`/etc/bash_completion ]; then
- . `brew --prefix`/etc/bash_completion
+if [[ "`type brew 2>/dev/null`" && -f `brew --prefix`/etc/bash_complet... | bash |
d_bash_23460 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
if [ ! -f tools/FAKE/tools/Fake.exe ]; then
- mono --runtime=v4.0 ./tools/NuGet/nuget.exe install FAKE -OutputDirectory tools -ExcludeVersion -Prerelease
- mono --runtime=v4.0 ./tools/NuGet/nuget.exe install FSharp.Formatting -OutputDirectory tools -ExcludeVersion -Prerelease
... | bash |
d_bash_23461 | ---
+++
@@ -14,6 +14,8 @@
python manage.py loaddata init
echo "Jumping migrations forward to the most recent."
schematic migrations/ --fake
+ echo "Creating the initial index"
+ python manage.py reindex --index=apps
fi
python manage.py runserver 0.0.0.0:2600 | bash |
d_bash_23462 | ---
+++
@@ -22,6 +22,7 @@
vm) jenkins_vm ;;
freenas) jenkins_freenas ;;
freenas-tests) jenkins_freenas_tests ;;
+ hbsdvm) sh ${BDIR}/vm/hardenedbsd.sh ${1} ${2} ${3} ;;
*) echo "Invalid Type: $1"
exit 1
;; | bash |
d_bash_23463 | ---
+++
@@ -3,13 +3,22 @@
echo "Updating checkout"
git pull
+echo "Installing deps"
+source /home/rippl/venvs/rippl/bin/activate # TODO: make this less snowflake
+pip install -r prod-requirements.txt
+# TODO: install npm so we can build frontend
+# npm install
+# brunch build
+
echo "Updating static files"
+sour... | bash |
d_bash_23464 | ---
+++
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
-lein with-profile production,datomic-free trampoline run -p 8080 -d ${DB_URI:-datomic:free://db:4334/lens-workbook} -c ${CONTEXT_PATH:-/}
+lein with-profile production,datomic-free trampoline run -p 8080 -d ${DB_URI:-datomic:free://db:4334/lens-workbook} -c ${CONTEXT_PA... | bash |
d_bash_23465 | ---
+++
@@ -5,7 +5,7 @@
GOPATH=/home/vagrant/go
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
-GO_ARCHIVE_URL=https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
+GO_ARCHIVE_URL=https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz
GO_ARCHIVE=$GOPATH/src/github.com/cloudfoundry... | bash |
d_bash_23466 | ---
+++
@@ -10,6 +10,6 @@
SRCFILES="find $TESTDIR/unit/*/test_*py $TESTDIR/integration/experimental_api_test_app.py -type f"
coverage erase || exit 1
-$SRCFILES | xargs realpath | shuf | parallel --timeout 120 --delay 1 --bar --halt now,fail=1 -j 2 $TESTCMD || exit 1
+$SRCFILES | xargs realpath | shuf | parallel ... | bash |
d_bash_23467 | ---
+++
@@ -17,7 +17,7 @@
gid='www-data'
# staging apps
-pip install -U django django-cors-headers djangorestframework
+pip install -U django==1.9 django-cors-headers djangorestframework
# wait for other services
bash $app/scripts/wait.sh | bash |
d_bash_23468 | ---
+++
@@ -9,8 +9,13 @@
function test_wrapper () {
local TEST_LABEL=$1
local TEST_FUNCTION=$2
- debug "Testing: ${TEST_LABEL}"
- ${TEST_FUNCTION} >/dev/null 2>&1 && note "Passed: ${TEST_LABEL}" || warn "Failed: ${TEST_LABEL}"
+ local PRESERVE_OUTPUT=$3
+ local OUTPUT_OPTION=""
+ debug "Test... | bash |
d_bash_23469 | ---
+++
@@ -1,4 +1,10 @@
#!/bin/sh
BASEDIR=$(dirname $0)
+TESTDIR=$(dirname $1)
-mono -O=-gshared ${BASEDIR}/xunit.console.x86.exe $*
+# we need to copy xunit to the test dir so AppDomain.CurrentDomain.BaseDirectory
+# points to the test dir instead of the xunit dir when using -noappdomain
+# as Nancy relies on t... | bash |
d_bash_23470 | ---
+++
@@ -5,7 +5,7 @@
# Workaround for Travis log output timeout (jobs without output over 10 minutes are killed)
function bell() {
while true; do
- echo -e "\a"
+ echo "."
sleep 300
done
}
@@ -16,4 +16,3 @@
docker run --rm -v ${HOME}/.m2:/root/.m2 -v ${HOME}/.ccache:/root/.ccache -v $(pwd):/so... | bash |
d_bash_23471 | ---
+++
@@ -19,6 +19,7 @@
sandbox = false
experimental-features = nix-command flakes
gc-reserved-space = 0
+substituters =
flake-registry = $TEST_ROOT/registry.json
include nix.conf.extra
EOF | bash |
d_bash_23472 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-export GVM_SERVICE="http://get.freshgroovy.org"
+export GVM_SERVICE="http://beta.freshgroovy.org"
PATH="$HOME/.gvm/bin:$PATH"
| bash |
d_bash_23473 | ---
+++
@@ -19,10 +19,5 @@
-file $MESOS_SANDBOX/.ssl/ca-bundle.crt \
-storepass changeit \
-keystore /tmp/kafka-truststore.jks -noprompt
-
-
- if [ "$KERBEROS_ENABLED" = "true" ]; then
- export KAFKAREST_OPTS="-Djava.security.auth.login.config=/tmp/... | bash |
d_bash_23474 | ---
+++
@@ -1,11 +1,12 @@
user_commands=(
list-units is-active status show help list-unit-files
- is-enabled list-jobs show-environment)
+ is-enabled list-jobs show-environment cat)
sudo_commands=(
start stop reload restart try-restart isolate kill
reset-failed enable disable reenable preset mask unmas... | bash |
d_bash_23475 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_OS_NAME" = "linux" ]; then
- docker login -u $DOCKER_USER -p $DOCKER_PASS
+ cat $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
docker build -t $DOCKER_USER/cwl-inspector:latest .
docker push $DOCKER_USER/c... | bash |
d_bash_23476 | ---
+++
@@ -6,6 +6,16 @@
VARIANT_REPO=https://github.com/mapbox/variant.git
VARIANT_TAG=v1.0
+VARIANT_LATEST=$(http --body https://api.github.com/repos/mapbox/variant/releases/latest | jq ".tag_name")
+OSMIUM_LATEST=$(http --body https://api.github.com/repos/osmcode/libosmium/releases/latest | jq ".tag_name")
... | bash |
d_bash_23477 | ---
+++
@@ -12,4 +12,5 @@
brew update
brew install python
brew install libogg
+ brew install ninja
fi | bash |
d_bash_23478 | ---
+++
@@ -1,4 +1,4 @@
export PATH=$HOME/.local/bin:$PATH
export TERM=screen-256color
# On login use ascii
-[[ "$(ps -o comm= $PPID)" == "login" ]] || [[ "$(tmux display-message -p '#S')" == "login" ]] && export POWERLINE_CONFIG_OVERRIDES="common.default_top_theme=ascii"
+[[ "$(ps -o comm= $PPID)" == "login" ]] |... | bash |
d_bash_23479 | ---
+++
@@ -15,7 +15,7 @@
set -e
-destination=remote_builds/`hostname`_`pwd | sed 's#^/##; s#/#_#g'`
+destination=remote_builds/`hostname``pwd | tr / _`
ssh "$machine" mkdir -p remote_builds
rsync -ac --delete . "$machine:$destination/"
ssh "$machine" make -C "$destination" "$@" | bash |
d_bash_23480 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-set -x
+set -e
NO_USE_BINARIES=""
@@ -8,7 +8,7 @@
# Make sure brew has Carthage installed
brew update && brew install carthage
-if [ $no_use_binaries == "1" ]; then
+if [ $"no_use_binaries" == "1" ]; then
$"NO_USE_BINARIES"="--no-use-binaries"
fi
| bash |
d_bash_23481 | ---
+++
@@ -6,7 +6,7 @@
echo "https://github.com/bell-sw/Liberica/releases/download/8u345+1/bellsoft-jdk8u345+1-linux-amd64.tar.gz"
;;
java11)
- echo "https://github.com/bell-sw/Liberica/releases/download/11.0.16+8/bellsoft-jdk11.0.16+8-linux-amd64.tar.gz"
+ echo "https://github.com/bell-sw/Liberica/relea... | bash |
d_bash_23482 | ---
+++
@@ -6,8 +6,9 @@
# upgrade
# Taken from werkzeug, which took it from pyca/cryptography
if [ "$TRAVIS_PYTHON_VERSION" = "pypy3" ]; then
- git clone https://github.com/yyuu/pyenv.git ~/.pyenv;
PYENV_ROOT="$HOME/.pyenv";
+ rm -rf "$PYENV_ROOT";
+ git clone https://github.com/yyuu/pyenv.git "$PYEN... | bash |
d_bash_23483 | ---
+++
@@ -3,5 +3,5 @@
src=$1
dest=$2
shift 2
-rsync -avizPn $* $src eldurloki@frs.sourceforge.net:$dest
+rsync -avizP $* $src eldurloki@frs.sourceforge.net:$dest
| bash |
d_bash_23484 | ---
+++
@@ -19,7 +19,7 @@
sudo apt-get update && sudo apt-get install google-cloud-sdk
# Update gcloud components for gsutil update
-gcloud components update
+sudo gcloud components update
# Display the gcloud version, useful for debugging purposes.
# See: https://cloud.google.com/sdk/gcloud/reference/version | bash |
d_bash_23485 | ---
+++
@@ -1,6 +1,6 @@
#! /bin/bash
-tr '[:space:][:punct:]' '\n' < ./data/spelling_success.txt |
+tr '[:space:][:punct:]' '\n' < ./data/spelling_errors.txt |
tr '[:upper:]' '[:lower:]' |
sort -u |
- comm -23 - /usr/share/dict/words
+ comm -23 - <(sort /usr/share/dict/words) | bash |
d_bash_23486 | ---
+++
@@ -2,7 +2,7 @@
if [ -z "$FPM_PORT_9000" ]; then
sed -i -e"s/^\#\(\s*\(FastCGIserver\|FastCGIid\|ConnectTo\).*\)/\1/" -e"s/^\#\(\s*Extension.*\)/\1\n\}/" /etc/hiawatha/hiawatha.conf
- sed -i -e"s/\(ConnectTo\s=\).*$/\1 $FPM_PORT_9000_TCP_ADDR:$FPM_PORT_9000_TCP_PORT/" /etc/hiawatha/hiawatha.conf
+ ... | bash |
d_bash_23487 | ---
+++
@@ -1,5 +1,5 @@
pkg_name=git
-pkg_version=2.7.4
+pkg_version=2.10.0
pkg_origin=core
pkg_description="Git is a free and open source distributed version control
system designed to handle everything from small to very large projects with
@@ -9,7 +9,7 @@
pkg_maintainer="The Habitat Maintainers <humans@habi... | bash |
d_bash_23488 | ---
+++
@@ -6,8 +6,7 @@
RUN_CMDS=''
if [[ $PHPUNIT_OPTS =~ (^|[[:space:]])--coverage-[[:alpha:]] ]]; then
- RUN_CMDS="$RUN_CMDS && \\\\\n git clone https://github.com/xdebug/xdebug.git /usr/src/php/ext/xdebug"
- RUN_CMDS="$RUN_CMDS && \\\\\n echo xdebug >> /usr/src/php-available-exts && docker-php-ext... | bash |
d_bash_23489 | ---
+++
@@ -6,6 +6,8 @@
source setup-pyenv.sh
fi
+which python
+
if [[ $RUN_FLAKE ]]; then python -m pip install flake8; fi
python -m pip install wheel
CC=gcc python setup.py develop | bash |
d_bash_23490 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -xe
# Clean rpm locks before puppet run.
# See ticket https://bugs.launchpad.net/fuel/+bug/1339236
@@ -8,7 +8,12 @@
mkdir -p /var/log/rabbitmq
chown -R rabbitmq:rabbitmq /var/log/rabbitmq
-puppet apply -v /etc/puppet/modules/nailgun/examples/rabbitmq-only.pp
+... | bash |
d_bash_23491 | ---
+++
@@ -3,12 +3,16 @@
echo "$0: not a git repo!"
return 1
fi
- bersc_SPECS=`git st | grep _spec.rb | grep -v "^D " | cut -b4- | tr "\n" ' '`
- for bersc_FILE_CHANGED in `git st | grep -v "^##" | cut -b4- | grep -v "^D "`
+ bersc_SPECS=()
+ for bersc_FILE_CHANGED in `git st | grep _spec.rb | gre... | bash |
d_bash_23492 | ---
+++
@@ -9,9 +9,6 @@
shift
fi
test "x$PYTHON" = x && PYTHON=python
-echo "$(which $PYTHON) --version"
-$PYTHON --version
-echo
# Setup environment
DIR=`dirname "$0"` | bash |
d_bash_23493 | ---
+++
@@ -1,3 +1,5 @@
+#!/bin/sh
+
# Generates the HTML footer
echo '<html>'
@@ -5,7 +7,8 @@
echo '<div id="footer" style="background-color:#DDDDDD;">'
echo '<small>'
echo '<img class="footer" src="rootlogo_s.gif" alt="root"/></a>'
-echo 'ROOT ('$DOXYGEN_ROOT_VERSION' ) Reference Guide Generated on $datetime... | bash |
d_bash_23494 | ---
+++
@@ -9,6 +9,7 @@
cd build
cmake .. -DWITH_TESTS=ON \
-DWITH_OPENMP=${FGT_WITH_OPENMP} \
+ -DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VERBOSE_MAKEFILE=${FGT_CMAKE_VERBOSE_MAKEFILE} \
-DCMAKE_INSTALL_PREFIX=${home}/local | bash |
d_bash_23495 | ---
+++
@@ -1,7 +1,11 @@
#!/bin/sh
jagen_pkg_autoreconf() {
- pkg_run mkdir -p "$pkg_source_dir/m4"
+ # LIBPERSOCOMMON_VERSION_S is not defined anywhere
+ sed -ri \
+ -e 's|LIBPERSOCOMMON_VERSION_S|PERSCOMMON_PACKAGE_VERSION_S|g' \
+ "$pkg_source_dir/configure.ac"
+
pkg_autoreconf
}
| bash |
d_bash_23496 | ---
+++
@@ -3,11 +3,6 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
brew cask install atom
-
- eval "$(sed -E 's/^/apm install &/' $DIR/apm)"
-
- mkdir ~/.atom
- cp $DIR/keymap.cson $DIR/snippets.cson $DIR/config.cson ~/.atom
else
error "atom could not be installed\nsince Homebrew is... | bash |
d_bash_23497 | ---
+++
@@ -25,7 +25,7 @@
rm ~/.vimrc
ln -s $SCRIPTPATH/vim ~/.vim
ln -s $SCRIPTPATH/vimrc ~/.vimrc
-vim +BundleInstall +qall &> /dev/null &
+vim +PluginInstall +qall &> /dev/null &
# setup git
rm ~/.gitconfig | bash |
d_bash_23498 | ---
+++
@@ -24,9 +24,12 @@
chmod a+x *.sh
./install_$SENSE.sh
-# Start up gram on the control node
+# Control-node specific logic
if [ $SENSE = "control" ]
then
+ # Change the 'host' entry in .gcf/gcf_config to fit the configuration
+ python modify_conf_env.py ~/.gcf/gcf_config host control_host "" | sh
... | bash |
d_bash_23499 | ---
+++
@@ -19,12 +19,19 @@
grep ':27017' | \
grep -v '^127\.')
-# Abort is no results are present. Perhaps MongoDB is not running?
-[ -z "$result" ] && exit 1
+# Fall-back to localhost if no other results are present ...
+[ -z "$result" ] && result='127.0.0.1:27017'
# Get th... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.