document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_20800 | ---
+++
@@ -11,7 +11,7 @@
# Change directory to the same level as this script
-cd `dirname "${0}"`
+cd "$(dirname "${0}")"
# Remove current plugins
rm -f *${PLUGEXT} | bash |
d_bash_20801 | ---
+++
@@ -22,10 +22,10 @@
# development formulae
brew install rbenv
+ brew install rbenv-vars
+ brew install rbenv-gem-rehash
+ brew install rbenv-default-gems
brew install ruby-build
- brew install rbenv-gem-rehash
- brew install rbenv-vars
- brew install rbenv-default-gems
... | bash |
d_bash_20802 | ---
+++
@@ -7,9 +7,9 @@
# * REDIS_PORT
#
# Include in your builds via
-# \curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/cockroachdb.sh | bash -s
+# \curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/redis.sh | bash -s
REDIS_VERSION=${REDIS_VERSION:="4.0.2"... | bash |
d_bash_20803 | ---
+++
@@ -23,25 +23,22 @@
case $lang in
bash)
orsb=$bash_regexp
- trpath="$XBPS_MASTERDIR/bin/bash"
+ trpath="/bin/bash"
;;
perl)
orsb=$perl_regexp
- trpath="$XBPS_MASTERDIR/bin/perl"
+ trpath="/usr/bin/perl"
;;
python)
orsb=$python_regexp
- trpath="$XBPS_MASTERDIR/bin/python"
+ trpath=... | bash |
d_bash_20804 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/zsh
export APACHE_CONF="/etc/apache2/httpd.conf"
-export APACHE_CONF_DEV_PATH="$DIR_DEV/_.conf/apache/"
+export APACHE_CONF_DEV_PATH="$DIR_DEV/_.conf/apache"
alias apacheconf="e $APACHE_CONF"
alias apachedevconf="e $APACHE_CONF_DEV_PATH"
alias apacheconfigtest="apachectl configte... | bash |
d_bash_20805 | ---
+++
@@ -10,8 +10,8 @@
serial_ppn="$1"
ppn_output_file="$2"
-curl_base_string='http://localhost:8081/solr/biblio/select?fl=publishDateSort&wt=csv&rows=1&sort=publishDateSort+asc'
+curl_base_string='http://localhost:8081/solr/biblio/select?fl=publishDateSort&wt=csv&rows=5&sort=publishDateSort+asc'
-sort_year=... | bash |
d_bash_20806 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -e
# Install build tools
apt-get update | bash |
d_bash_20807 | ---
+++
@@ -3,6 +3,8 @@
# [Author] Nafeu Nasir
# Run chrome kiosk for rpi
# ------------------------------------------------------------------
+
+BASEDIR=$(dirname "$0")
activate_kiosk(){
sleep 5
@@ -10,7 +12,7 @@
chromium-browser --kiosk http://localhost:8000?remote=true
}
-BASEDIR=$(dirname ... | bash |
d_bash_20808 | ---
+++
@@ -16,7 +16,8 @@
[Install]
WantedBy=multi-user.target
EOF
- systemctl daemon-reload
- systemctl enable daemon-reload
- systemctl start daemon-reload
+
+ sudo systemctl daemon-reload
+ sudo systemctl enable docker-compose
+ sudo systemctl start docker-compose
fi | bash |
d_bash_20809 | ---
+++
@@ -6,6 +6,8 @@
if [[ $DEPLOYMENT_GROUP_NAME =~ [a-z]+-publishing ]]; then
docker run -d \
--env=CONTENT_SERVICE_URL=http://zebedee:8080 \
+ --env=ELASTIC_SEARCH_CLUSTER=cluster \
+ --env=ELASTIC_SEARCH_SERVER=elasticsearch \
--env=GHOSTSCRIPT... | bash |
d_bash_20810 | ---
+++
@@ -3,9 +3,9 @@
OS="Linux-x86_64"
if [[ "$TRAVIS_PYTHON_VERSION" == 2.* ]]; then
- wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-$OS.sh -O miniconda.sh;
+ wget http://repo.continuum.io/miniconda/Miniconda-latest-$OS.sh -O miniconda.sh;
else
- wget http://repo.continuum.io/miniconda/Miniconda... | bash |
d_bash_20811 | ---
+++
@@ -2,9 +2,9 @@
set -e
-ln -sf ../.git repository
-ln -sf ../gipeda gipeda
-ln -sf ../src src
+test -e repository || ln -sf ../.git repository
+test -e gipeda || ln -sf ../gipeda gipeda
+test -e src || ln -sf ../src src
./genlogs.sh
@@ -15,3 +15,14 @@
cp ../site/js/gipeda.js site/js/gipeda.js
./... | bash |
d_bash_20812 | ---
+++
@@ -9,7 +9,8 @@
exit 0
fi
-curl http://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.0.tar.gz | tar zx
+wget http://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.0.tar.gz
+tar xf openmpi-1.10.0.tar.gz
cd openmpi-1.10.0
| bash |
d_bash_20813 | ---
+++
@@ -23,3 +23,6 @@
# Publish PowerShell to bin, with LINUX defined through a configuration
dotnet publish --output "$BIN" --configuration Linux src/Microsoft.PowerShell.Linux.Host
+
+# Fix permissions for packaging
+chmod -R go=u "$BIN" | bash |
d_bash_20814 | ---
+++
@@ -5,7 +5,7 @@
project="cilium-ci"
region="us-west1"
-if [ ! -f "${script_dir}/cluster_uri" ]; then
+if [ ! -f "${script_dir}/cluster-uri" ]; then
echo "Cluster uri file not found, exiting"
exit 1
fi | bash |
d_bash_20815 | ---
+++
@@ -30,6 +30,7 @@
cp $src/moment.js $dest
+cp $src/moment.d.ts $dest
cp $src/package.json $dest
cp $src/README.md $dest
cp $src/CHANGELOG.md $dest | bash |
d_bash_20816 | ---
+++
@@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
-cd project-sink/ && terraform init && terraform apply --var-file=../example.tfvars
-cd ../folder-sink/ && terraform init && terraform apply --var-file=../example.tfvars
-cd ../or... | bash |
d_bash_20817 | ---
+++
@@ -20,7 +20,14 @@
for i in {1..7}
do
+ sleep ${SLEEP_DURATION}
i3-msg exec "gnome-terminal --working-directory=${HOME}/projects/${WORKSPACE_NAME}"
+ sleep ${SLEEP_DURATION}
+ xdotool type "sink ${WORKSPACE_NAME}"
+ xdotool key KP_Enter
+ sleep 3
+ xdotool type "clear"
+ xdotool key KP_Enter
... | bash |
d_bash_20818 | ---
+++
@@ -2,6 +2,6 @@
for i in `echo 3a 3b 3c 3d 3e 3f 3g 3h 3i 3j 3k 3l 4a 4b 4c`; do
echo $i
- ssh volt$i ps -ef | grep java && exit
+ ssh volt$i ps -ef | grep java | grep -v slave.jar && exit
done
| bash |
d_bash_20819 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
-APPNAME=`grep name manifest.yml | awk '{print $3}'`
+APPNAME=${APPNAME:-`grep name manifest.yml | awk '{print $3}'`}
cf set-env $APPNAME AWS_ACCESS_KEY_ID $AWS_ACCESS_KEY_ID
cf set-env $APPNAME AWS_SECRET_ACCESS_KEY $AWS_SECRET_ACCESS_KEY
cf set-env $APPNAME PROD_DB_PASSWORD $PR... | bash |
d_bash_20820 | ---
+++
@@ -8,8 +8,8 @@
platform="linux"
version=$TAG_VERSION
-git config user.email "orbit@testemail.address"
-git config user.name "Build System"
+git config --global user.email "orbit@testemail.address"
+git config --global user.name "Build System"
curl -sSLo helm.tar.gz https://get.helm.sh/helm-v$helmVersi... | bash |
d_bash_20821 | ---
+++
@@ -12,6 +12,11 @@
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
+# Replace the system Git with a Homebrew version asap
+# @see http://rachelbythebay.com/w/2016/04/17/unprotected/
+brew install git
+sudo chmod -x /Applications/Xcode.app/Contents/Developer/u... | bash |
d_bash_20822 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
rabbitmqctl add_vhost "travis.development"
-rabbitmqctl add_user travisci_worker travisci_worker_password
+rabbitmqctl add_user travis_worker travis_worker_password
-rabbitmqctl set_permissions -p "travisci.development" travisci_worker ".*" ".*" ".*"
-rabbitmqctl set_permission... | bash |
d_bash_20823 | ---
+++
@@ -10,4 +10,7 @@
VICTIM_ID: '${VICTIMID}'
};" > $BASEDIR/config.js
-gulp browserify
+if gulp browserify; then
+ mkdir -p $BASEDIR/client_$VICTIMID
+ cp -r $BASEDIR/test.html $BASEDIR/dist $BASEDIR/client_$VICTIMID
+fi | bash |
d_bash_20824 | ---
+++
@@ -9,4 +9,4 @@
export OCL_API_TOKEN=$2
export OCL_ANON_API_TOKEN=$2
nohup grunt serve > nohup.out 2>&1 &
-echo "from django.contrib.auth.models import User; user = User.objects.create_superuser('admin', 'paynejd@gmail.com', 'Root123') if (User.objects.filter(username='admin').count() < 1) else None" | pyt... | bash |
d_bash_20825 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
function run_if_x {
[[ -z "$1" ]] && return
@@ -6,44 +6,8 @@
return
}
-## Enable Puppet Labs repo
-
-# Fake a redhat-release
-[ -r /etc/redhat-release ] || echo "CentOS release 6.4 (Final)" > /etc/redhat-release
-
-# Get the Puppet Labs repo installed
-rpm -... | bash |
d_bash_20826 | ---
+++
@@ -38,7 +38,7 @@
chmod +x $buildFile
# Cleanup
- if test ! -d $tempFolder; then
+ if test -d $tempFolder; then
rm -rf $tempFolder
fi
fi | bash |
d_bash_20827 | ---
+++
@@ -20,8 +20,11 @@
mkdir $EXTRACT_DIRECTORY
tar xfz $FILE_NAME -C $EXTRACT_DIRECTORY
+# Copy the base distribution
cp "$RELEASE_PATH/dist/parsley.js" $VENDOR_JS_PATH
+cp "$RELEASE_PATH/dist/parsley.js.map" $VENDOR_JS_PATH
cp "$RELEASE_PATH/dist/parsley.min.js" $VENDOR_JS_PATH
+cp "$RELEASE_PATH/dist/par... | bash |
d_bash_20828 | ---
+++
@@ -27,5 +27,5 @@
EOF
# Add heroku.com to the list of known hosts
-mkdir ~/.ssh/
+mkdir -p ~/.ssh/
ssh-keyscan -H heroku.com >> ~/.ssh/known_hosts | bash |
d_bash_20829 | ---
+++
@@ -16,6 +16,10 @@
# sudo apt-get -y install gitg
# SmartGit/Hg
+smartgit_version=6_5_1
+smartgit_filename=smartgit-${smartgit_version}.deb
+wget -P /tmp http://www.syntevo.com/download/smartgit/${smartgit_filename}
+sudo dpkg -i /tmp/${smartgit_filename}
# Sublime Text 3
| bash |
d_bash_20830 | ---
+++
@@ -5,7 +5,18 @@
export CMAKE_FLAGS=-GNinja
export BUILD_TOOL=ninja
+export XRAY_VIVADO_SETTINGS=/opt/Xilinx/Vivado/2017.2/settings64.sh
source ${SCRIPT_DIR}/common.sh
+source third_party/prjxray/.github/kokoro/steps/xilinx.sh
+echo
+echo "========================================"
+echo "Vivado version"
... | bash |
d_bash_20831 | ---
+++
@@ -14,7 +14,7 @@
}
function js_check() {
- for file in $(find . -not -path "./env/*" -and '(' -iname "*.js" ')'|grep -v pybitmessage|grep -v '.min.js'|grep -v bower_components); do
+ for file in $(find . -not -path "./env/*" -and '(' -iname "*.js" ')'|grep -v pybitmessage|grep -v '.min.js'|grep -v ... | bash |
d_bash_20832 | ---
+++
@@ -2,6 +2,8 @@
#
# Little script to completely update the dynamo documentation.
#
+
+LOCAL=$1
pwd=`pwd`
basedir=`basename $pwd`
@@ -11,20 +13,22 @@
exit 1
fi
-git pull
-echo -n "continue ? [N/y]"
-read YES
-if [ "$YES" != 'y' ]
+
+if [ "$LOCAL" == "" ]
then
- echo "EXIT - fix the pull"
- ... | bash |
d_bash_20833 | ---
+++
@@ -27,7 +27,7 @@
echo "ran test"
(cd ${name}; ${TERMITE_DIR}/bin/shell-wrapper/shell-wrapper -shutdown)
-curl ${coord}/workerkill?host=all
+curl ${coord}/killall
curl ${coord}/shutdown
# wait a bit for everything to come down. | bash |
d_bash_20834 | ---
+++
@@ -1,44 +1,33 @@
-#!/bin/bash
-###
-### The following block runs after commit to "master" branch
-###
-if [ `git rev-parse --abbrev-ref HEAD` == "master" ]; then
+#! /usr/bin/env bash
- # Layout prefix is prepended to each markdown file synced
- #######################################################... | bash |
d_bash_20835 | ---
+++
@@ -11,7 +11,8 @@
git pull
rm -rf dist
-ember build --environment production
+# Build in dev mode so we can see all the internal warnings, etc
+ember build # --environment production
git checkout gh-pages
git pull | bash |
d_bash_20836 | ---
+++
@@ -1,24 +1,38 @@
+#!/bin/bash
+
+# exit the script if any of the commands fail.
+# further discussion: http://www.davidpashley.com/articles/writing-robust-shell-scripts/
+set -e
+
+# This script needs to be run as root for permission purposes
+test $USER = 'root' || { echo run this as root >&2; exit 1; }
+
... | bash |
d_bash_20837 | ---
+++
@@ -1,6 +1,9 @@
#!/bin/bash
#Converting SNP Association data to a gene-level summary using VEGAS:
+if [ $# -lt 2 ]; then
+echo "Usage: $0 names_and_pvalues output_filename"
+fi
#Using Vegas to Convert a full tab-delimited text file containing 2 columns of data: SNP names and p-values (no header! no quo... | bash |
d_bash_20838 | ---
+++
@@ -1,5 +1,7 @@
#!/bin/bash
+sudo apt update
+sudo apt upgrade -y
sudo apt install -y salt-minion
read -p "Enter salt master-server address: " address
echo "master: $address" > /etc/salt/minion | bash |
d_bash_20839 | ---
+++
@@ -2,14 +2,12 @@
home="/home/$USER/.minishift"
if [ -z ${MINISHIFT_HOME+x} ]
then
- echo "MINISHIFT_HOME is unset";
+ echo "MINISHIFT_HOME is not set";
else
echo "MINISHIFT_HOME is set to '$MINISHIFT_HOME'"
home="${MINISHIFT_HOME}"
fi
-echo $home
-
file=$(find $home -name "oc" -type "f")
s... | bash |
d_bash_20840 | ---
+++
@@ -13,7 +13,11 @@
metadata_file=nimbus-environments-6.5/metadata
-source "$metadata_file"
+SENTINEL='# Metadata used by vcpi-nimbus:'
+while IFS= read -r text; do
+ eval "${text#'# '}"
+done < <(sed -e "1,/^$SENTINEL/d" $metadata_file | grep '^# VCPI_NIMBUS')
+
if [ -z "$VCPI_NIMBUS_LAUNCH_NAME" ]; ... | bash |
d_bash_20841 | ---
+++
@@ -1,2 +1,3 @@
#!/bin/sh
-sudo dpkg --purge `dpkg -l | awk '/^rc/{print $2;}' `
+# sudo dpkg --purge `dpkg -l | awk '/^rc/{print $2;}' `
+dpkg -l | awk '/^rc/{print $2;}' | xargs -r sudo dpkg --purge | bash |
d_bash_20842 | ---
+++
@@ -16,23 +16,12 @@
echo "Start Travis Test With Coverage Upload"
- echo "but do a mocha before"
-
- ./node_modules/mocha/bin/mocha
-
- echo "mocha is done"
istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R min && cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codec... | bash |
d_bash_20843 | ---
+++
@@ -25,7 +25,7 @@
cd $TRAVIS_BUILD_DIR
echo "Customize dispansible settings for Travis"
-cp .travis/$TRAVIS_OS_NAME_vars.yml ansible/group_vars/all
+cp .travis/${TRAVIS_OS_NAME}_vars.yml ansible/group_vars/all
cp .travis/settings.yml ./settings.yml
echo "Run dispansible" | bash |
d_bash_20844 | ---
+++
@@ -10,4 +10,4 @@
systemctl start docker
cd /mnt/resource
docker pull osehra/osehravista
-docker run -p 9430:9430 -p 8001:8001 -p9080:9080 -p2222:22 -p57772:57772 -d -P --name=cache osehra/osehravista
+docker run -p 9430:9430 -p 8001:8001 -p9080:9080 -p2222:22 -p57772:57772 -p 61012:61012 -d -P --sysctl ke... | bash |
d_bash_20845 | ---
+++
@@ -3,7 +3,7 @@
if [[ `hostname` = 'bh1-autobuild' ]]; then
pfexec mkdir -p $PUBLISH_LOCATION
pfexec cp build/pkg/cabase.tar.gz "$PUBLISH_LOCATION/$CABASE_PKG"
- pfexec cp build/pkg/cainstsvc.tar.gz "$PUBLISH_LOCATION/$CAINSTSVC_PKG "
+ pfexec cp build/pkg/cainstsvc.tar.gz "$PUBLISH_LOCATION/$CAIN... | bash |
d_bash_20846 | ---
+++
@@ -16,16 +16,23 @@
# limitations under the License.
#
-base=$PWD
-handler=$1
-binary=$2
-package=$3
+CUR=$PWD
+HLD=$1
+BIN=$2
+PKG=$3
+TMP=`mktemp -d`
-mkdir -p /package/$handler
-cp $binary /package/$handler.so
-cp /shim/__init__.pyc /package/$handler/__init__.pyc
-cp /shim/proxy.pyc /package/$handler... | bash |
d_bash_20847 | ---
+++
@@ -30,9 +30,3 @@
fi
}
compdef _dirs d
-
-# List directory contents
-alias lsa='ls -lah'
-alias l='ls -lah'
-alias ll='ls -lh'
-alias la='ls -lAh' | bash |
d_bash_20848 | ---
+++
@@ -4,7 +4,9 @@
. ./shmack_env
run apt-get update
-run apt-get -y install git-cola git-gui awscli python-setuptools synaptic geany curl gitk gradle
-run apt-get -y remove python-pip python-pip-whl python-virtualenv
+run apt-get -y install git-gui awscli python-setuptools curl wget gradle openjdk-8-jdk sc... | bash |
d_bash_20849 | ---
+++
@@ -11,12 +11,13 @@
IFS=$'\t\n' # Stricter IFS settings
INSTALL_DIR=$HOME/lib
-BATS_BIN_DIR=$INSTALL_DIR/bats/bin
+BATS_DIR=$INSTALL_DIR/bats-core
+BATS_BIN_DIR=$BATS_DIR/bin
cd $INSTALL_DIR || exit 1
# Remove the directory if it already exists before cloning
rm -rf bats
-git clone https://github.com... | bash |
d_bash_20850 | ---
+++
@@ -15,10 +15,7 @@
---
:backends:
- yaml
- - json
:yaml:
- :datadir: $DATA_FOLDER
-:json:
:datadir: $DATA_FOLDER
:hierarchy:
- "%{::hostname}" | bash |
d_bash_20851 | ---
+++
@@ -6,7 +6,7 @@
# The following is based on https://github.com/gma/bundler-exec
-bundled_commands=(annotate cap capify cucumber foreman guard heroku nanoc rackup rainbows rake rspec ruby shotgun spec spork thin thor unicorn unicorn_rails)
+bundled_commands=(annotate cap capify cucumber foreman guard hero... | bash |
d_bash_20852 | ---
+++
@@ -31,8 +31,6 @@
# Build pyang from source and install it using pip
cd ../../..
rm -f dist/*.whl
-pip install -r requirements.txt
-python -c "import lxml.etree"
python setup.py bdist_wheel
pip install -I dist/*.whl
cd $current_dir | bash |
d_bash_20853 | ---
+++
@@ -1,13 +1,14 @@
#!/bin/bash
#
-apt-get update
-apt-get install -y --no-install-recommends ubuntu-desktop gnome-keyring gedit gnome-terminal indicator-session unity-lens-applications
echo "
[SeatDefaults]
autologin-user=ubuntu
" > /etc/lightdm/lightdm.conf.d/autologin.conf
+apt-get update
+apt-get ... | bash |
d_bash_20854 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
while true; do
- go run main.go -w
+ go run -race main.go -w
if [ $? != 0 ] ; then
exit
fi | bash |
d_bash_20855 | ---
+++
@@ -14,7 +14,4 @@
PWD=${PWD};
docker build . -t lab;
-docker run \
- --user heap \
- -it -v $PWD:/home/heap/ \
- lab
+docker run --user heap -it -v $PWD:/home/heap/ lab; | bash |
d_bash_20856 | ---
+++
@@ -37,5 +37,6 @@
if [[ -n "${bad_files}" ]]; then
echo "!!! gofmt needs to be run on the following files: "
echo "${bad_files}"
+ echo "Try running 'gofmt -s -d [path]'"
exit 1
fi | bash |
d_bash_20857 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
set -euxo pipefail
-rm /etc/caddy/Caddyfile.json.d/*.json
+rm -f /etc/caddy/Caddyfile.json.d/*.json
/usr/bin/caddy adapt --config /etc/caddy/Caddyfile > /etc/caddy/Caddyfile.json.d/Caddyfile.json
| bash |
d_bash_20858 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-dockerd-entrypoint.sh --log-level "${DOCKERD_LOG_LEVEL:-warn}" --storage-driver "${DOCKERD_STORAGE_DRIVER}" &
+dockerd-entrypoint.sh --log-level "${DOCKERD_LOG_LEVEL:-warn}" --storage-driver "${DOCKERD_STORAGE_DRIVER:-vfs}" &
DOCKERD_PID="$!"
while ! docker version 1>/dev/n... | bash |
d_bash_20859 | ---
+++
@@ -18,9 +18,9 @@
cd re2 &&
git checkout $RE2_REV)
- # --std=c++11 is enabled because re2 makes use of C++11 features. The NIF
+ # -std=c++11 is enabled because re2 makes use of C++11 features. The NIF
# code does not and is still classic C++.
- CXXFLAGS="-Wall -O3 -fPIC -pth... | bash |
d_bash_20860 | ---
+++
@@ -10,33 +10,18 @@
echo "travis_fold:end:$name"
}
-travis_fold docker-deps-0 \
- apt -q update
+travis_fold build-deps-0 \
+ apt-get -qq update
-travis_fold docker-deps-1 \
- apt -qqy install --no-install-recommends \
- build-essential devscripts equivs
+travis_fold build-deps-1 \
+... | bash |
d_bash_20861 | ---
+++
@@ -1,5 +1,5 @@
# bcbio
-if [[ -n "$BCBIO_DIR" ]]; then
+if [[ -d "$BCBIO_DIR" ]]; then
if [[ ! -f "$BCBIO_DIR/bcbio_nextgen.py" ]]; then
echo "bcbio_nextgen.py missing"
exit 1
@@ -9,7 +9,7 @@
fi
# Aspera Connect
-if [[ -n "$ASPERA_DIR" ]]; then
+if [[ -d "$ASPERA_DIR" ]]; then
... | bash |
d_bash_20862 | ---
+++
@@ -29,7 +29,7 @@
"src/plugins/yamlcpp/"*.{c,cpp} \
"src/plugins/yamlsmith/"*.{c,cpp} \
"src/plugins/yanlr/"*.{c,cpp} \
- "src/plugins/yawn/"*.cpp \
- exit_if_fail "OCLint found problematic code"
+ "src/plugins/yawn/"*.cpp
+exit_if_fail "OCLint found problematic code"
end_script | bash |
d_bash_20863 | ---
+++
@@ -12,9 +12,9 @@
sudo apt install -y git xfonts-terminus xclip tmux htop silversearcher-ag \
cmake build-essential curl keychain
-# gui
+# gui / X
sudo apt install -y xserver-xorg-core i3 rxvt-unicode-256color keynav firefox \
- redshift scrot arandr cmake feh keepassx
+ redshift scrot arandr cmake feh... | bash |
d_bash_20864 | ---
+++
@@ -1,6 +1,38 @@
-sysctl -w net.ipv4.tcp_rmem='4096 87380 8388608'
-sysctl -w net.ipv4.tcp_wmem='4096 65536 8388608'
+#!/bin/sh
+# syntax: ./set_sysctl_tcp_mem.sh [maximum_window_size]
-# default on DARASK-X250:
-# rmem: 4096 87380 6291456
-# wmem: 4096 16384 4194304
+# default values on Henrik's ... | bash |
d_bash_20865 | ---
+++
@@ -1,13 +1,19 @@
+#!/usr/bin/bash
+set -eux
+: ${SCRIPTS=$(readlink -f $(dirname $0))}
new_juju=$(find $new_juju_dir -name juju)
export JUJU_HOME=$HOME/cloud-city
-$HOME/juju-ci-tools/write_industrial_test_metadata.py $new_juju_dir/buildvars.json $environment metadata.json
+$SCRIPTS/write_industrial_test_m... | bash |
d_bash_20866 | ---
+++
@@ -1,5 +1,3 @@
#!/bin/bash
-
-# Run tests
echo "\033[0;33mRunning tests\033[0m \n"
-php vendor/bin/phpunit -c tests
+php vendor/bin/phpunit | bash |
d_bash_20867 | ---
+++
@@ -1,4 +1,6 @@
ZSH=$HOME/.oh-my-zsh
+
+ZSH_CUSTOM=$HOME/.dotfiles/oh-my-zsh
ZSH_THEME="lust"
| bash |
d_bash_20868 | ---
+++
@@ -5,6 +5,7 @@
# BUILD #
bower install
+chmod 777 `pwd`/components/chromedriver_mac_26.0.1383.0/chromedriver
npm install --color false
grunt configure --target=prod
| bash |
d_bash_20869 | ---
+++
@@ -4,5 +4,7 @@
git checkout gh-pages
cp -r ../build ./
git add -A
+git config user.name "Travis Build"
+git config user.email "oshomburg@gmail.com"
git commit -m "push to github pages (auto)" -m "$TRAVIS_COMMIT_MSG"
git push origin gh-pages | bash |
d_bash_20870 | ---
+++
@@ -1,17 +1,18 @@
#!/bin/bash
+CURRENT_DIR=$(pwd)
# Clone into a temp folder...
rm -rf /tmp/farmbot_frontend
mkdir /tmp/farmbot_frontend
git clone https://github.com/farmbot/farmbot-web-frontend.git /tmp/farmbot_frontend
-rm -rf /tmp/farmbot_frontend/.git
-
-# Move it over to the rails /public director... | bash |
d_bash_20871 | ---
+++
@@ -14,6 +14,7 @@
pip3 install paho-mqtt
pip3 install python-dateutil
pip3 install future
+pip3 install homeassistant
if [ -e setupsystemd.py ]
then | bash |
d_bash_20872 | ---
+++
@@ -1,2 +1,2 @@
-mkdir tmp/pids
+mkdir -p tmp/pids
nohup bundle exec rake environment resque:work QUEUE=* RAILS_ENV=production PIDFILE=tmp/pids/resque_worker.pid & >> log/resque_worker.log 2>&1 | bash |
d_bash_20873 | ---
+++
@@ -39,3 +39,5 @@
if [[ -f "$HOME/.secrets" ]]; then
source "$HOME/.secrets"
fi
+
+export PIP_DISABLE_PIP_VERSION_CHECK=1 | bash |
d_bash_20874 | ---
+++
@@ -1,10 +1,5 @@
#!/bin/bash
-mkdir /usr/local/pgsql
-chown postgres -Rf /usr/local/pgsql
-chgrp postgres -Rf /usr/local/pgsql
-su - postgres -c "/usr/lib/postgresql/9.3/bin/initdb -D /usr/local/pgsql/data"
-su - postgres -c "/usr/lib/postgresql/9.3/bin/pg_ctl -D /usr/local/pgsql/data -l /usr/local/pgsql/l... | bash |
d_bash_20875 | ---
+++
@@ -10,7 +10,7 @@
echo " source setup.sh"
echo
else
- export PATH="$pylith/bin:$PATH"
+ export PATH="$pylith/bin:/bin:/usr/bin:$PATH"
export PYTHONPATH="$pylith/lib/python2.7/site-packages"
echo "Ready to run PyLith."
fi | bash |
d_bash_20876 | ---
+++
@@ -5,7 +5,7 @@
}
retrieve() {
- git --no-pager log --oneline --no-merges --grep="$1" $FROM..$TO
+ git --no-pager log --oneline --no-merges --oneline --format=" - %h %s" --grep="$1" $FROM..$TO
}
subheading() { | bash |
d_bash_20877 | ---
+++
@@ -5,4 +5,6 @@
git_download vst
+export COMPCERT=bundled
+
( cd "${CI_BUILD_DIR}/vst" && make IGNORECOQVERSION=true ) | bash |
d_bash_20878 | ---
+++
@@ -10,7 +10,7 @@
case "$cur_pos" in
1) COMPREPLY=($(compgen -W 'ls list start stop restart status install uninstall show edit' -- $cur))
;;
- *) COMPREPLY=($(compgen -W '$(lunchy list)' -- $cur))
+ *) COMPREPLY=($(compgen -W "$(lunchy list)" -- $cur))
;;
esac
} | bash |
d_bash_20879 | ---
+++
@@ -1,10 +1,13 @@
#!/bin/bash
JAR=../LizardConverter/dist/csvjdbc.jar
-SOURCES=$(find src/java/org/relique/ -iname "*.java")
-TESTSOURCES=src/java/test/org/relique/jdbc/csv/*.java
-TESTDATA=$(find src/testdata -maxdepth 1 -type f -not -name "*~")
+find src/java/org/relique/ -iname "*.java" > sources.txt
+... | bash |
d_bash_20880 | ---
+++
@@ -4,12 +4,12 @@
while IFS=".", read MAJOR MINOR REVISION; do
MISMATCH=1
- if [[ $MAJOR -eq 0 && $MINOR -eq 10 ]]; then
+ if [[ $MAJOR -eq 6 ]]; then
MISMATCH=
fi
done < <(echo $VERSION)
if [[ -n "$MISMATCH" ]]; then
- echo "error: node version must be 0.10.x"
+ echo "error: node versio... | bash |
d_bash_20881 | ---
+++
@@ -11,7 +11,7 @@
sudo apt-get -o Acquire::ForceIPv4=true install -y git python python-dev software-properties-common python-numpy python-pip nodejs-legacy watchdog strace tcpdump screen acpid vim locate jq lm-sensors || die "Couldn't install packages"
if ! sudo apt-get -o Acquire::ForceIPv4=true install -y... | bash |
d_bash_20882 | ---
+++
@@ -19,4 +19,6 @@
unzip $GAUGE_FILE_NAME -d $OUTPUT_DIR
-/bin/bash "$OUTPUT_DIR/install.sh"
+cd $OUTPUT_DIR
+
+/bin/bash install.sh | bash |
d_bash_20883 | ---
+++
@@ -11,8 +11,8 @@
echo $PHPPID
cp -R ./spreedcheats ../../../spreedcheats
-${ROOT_DIR}/occ app:enable spreed
-${ROOT_DIR}/occ app:enable spreedcheats
+${ROOT_DIR}/occ app:enable spreed || exit 1
+${ROOT_DIR}/occ app:enable spreedcheats || exit 1
${ROOT_DIR}/occ app:list | grep spreed
export TEST_SERVE... | bash |
d_bash_20884 | ---
+++
@@ -14,7 +14,7 @@
# Pull extracted data
cd staging
-aws s3 cp s3://${version}
+aws s3 cp s3://${version} .
unzip ${version}
rm ${version}
cd .. | bash |
d_bash_20885 | ---
+++
@@ -5,4 +5,4 @@
fi
alias p4s="git p4 submit -M"
-alias gvim="gvim --remote-tab"
+alias gvim="gvim --remote-tab-silent" | bash |
d_bash_20886 | ---
+++
@@ -6,6 +6,17 @@
declare -A MAC_ADDRESSES
+
+
+function enable_bluetooth() {
+ rfkill unblock bluetooth
+
+ if ! systemctl is-active bluetooth >/dev/null; then
+ sudo systemctl start bluetooth
+ fi
+
+ bluetoothctl <<<'power on'
+}
function populate_mac_addresses() {
readarray ... | bash |
d_bash_20887 | ---
+++
@@ -5,6 +5,10 @@
NAME="nginx-proxy"
FULL_NAME="${REPO}${BASE}${NAME}"
DOCKER_USERNAME="lev-web-robot"
+
+PATCH="${DRONE_TAG}"
+MINOR=`echo ${PATCH} | awk -F '.' '{print $1"."$2}'`
+MAJOR=`echo ${MINOR} | awk -F '.' '{print $1}'`
docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}" "${REPO}"
@@... | bash |
d_bash_20888 | ---
+++
@@ -13,7 +13,7 @@
. /opt/ansible/bin/activate
set -u
-logtag=$(basename $SYS_ANSIBLE_PLAYBOOK)_$(date +%Y%m%m%H%M%S)
+logtag=$(basename $SYS_ANSIBLE_PLAYBOOK)_$(date +%Y%m%d%H%M%S)
cd $SYS_ANSIBLE_ROOT
git pull | bash |
d_bash_20889 | ---
+++
@@ -23,7 +23,7 @@
protect=1
EOF
yum install -y epel-release
- yum install -y accre-lio which
+ yum install -y accre-lio accre-gridftp globus-gridftp-server-progs which
yum clean all
;;
*)
@@ -34,8 +34,9 @@
# TODO: Need a better smoke test. If you don't know you... | bash |
d_bash_20890 | ---
+++
@@ -1,13 +1,14 @@
#!/usr/bin/env bash
BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
-ENGINES_DIR=../stash_engines
+ENGINES_DIR=$(realpath ../stash_engines)
mkdir ${ENGINES_DIR} && \
- cd ${ENGINES_DIR} && \
- git clone https://github.com/CDLUC3/stash_engine.git && \
+ cd ${ENGINES_DIR}
+
+git... | bash |
d_bash_20891 | ---
+++
@@ -10,4 +10,4 @@
export MERB_ENV=test
export RACK_ENV=test
-export JRUBY_OPTS="--server -Xnative.enabled=false"
+export JRUBY_OPTS="--server -Xcext.enabled=false" | bash |
d_bash_20892 | ---
+++
@@ -1 +1,6 @@
-export EDITOR='atom'
+if [[ ! "$SSH_TTY" ]]; then
+ export EDITOR='mvim'
+ export LESSEDIT='mvim ?lm+%lm -- %f'
+else
+ export EDITOR='vim'
+fi | bash |
d_bash_20893 | ---
+++
@@ -20,6 +20,8 @@
fi
ln -s "$(pwd)"/vim/vimrc ~/.vimrc
+mkdir ~/.config
+mkdir ~/.config/nvim
ln -s "$(pwd)"/vim/.nvim ~/.config/nvim/init.vim
echo "Setting emacs" | bash |
d_bash_20894 | ---
+++
@@ -4,7 +4,7 @@
echo "Installing packages..."
apt-get update
-apt-get install -y python python-dev python-pip python-dbus python-opencv
+apt-get install -y python python-dev python-pip python-dbus python-opencv dbus network-manager
pip install -r requirements.txt
echo "Configuring Django..." | bash |
d_bash_20895 | ---
+++
@@ -20,8 +20,8 @@
if which "mvim" &> /dev/null; then
open -a MacVim "$@"
elif which "gvim" &> /dev/null; then
+ gvim -p --remote-tab-silent "$@"
gvim -c "call remote_foreground('$VIMSERVER')" -c quit
- gvim -p --remote-tab-silent "$@"
else
\vim -p "$@"
... | bash |
d_bash_20896 | ---
+++
@@ -6,8 +6,8 @@
exit 1
fi
-docker ps | grep "drupal/testbot-mysql" | awk '{print $1}' | grep -v CONTAINER | xargs -n1 -I {} sudo docker stop {}
-docker ps -a | grep "drupal/testbot-mysql" | awk '{print $1}' | grep -v CONTAINER | xargs -n1 -I {} sudo docker rm {}
+docker ps | grep "drupal/testbot-maria... | bash |
d_bash_20897 | ---
+++
@@ -6,7 +6,7 @@
#SBATCH -p {SLURM_PARTITION} # Partition to submit to
#SBATCH --mem-per-cpu={PASS7/MEMORY} # Memory per cpu in MB (see also --mem)
#SBATCH -o {JOB_DIRECTORY}/log_cropped_video.txt # File to which stdout and stderr will be written
-#SBATCH --job-name=U_{NAME}
+#SBATCH --job-name=V_{NAME... | bash |
d_bash_20898 | ---
+++
@@ -8,5 +8,3 @@
alias b='bundle'
alias be='bundle exec'
-alias bi='bundle install'
-alias bre='bundle exec' | bash |
d_bash_20899 | ---
+++
@@ -3,7 +3,7 @@
# Copy the typefaces to the "Fonts" folder.
info "Copying typefaces..."
-if ! test -n "$(find ~/Library/Fonts -name 'SF Mono*.otf')"; then
+if ! test -n "$(find ~/Library/Fonts -name 'SFMono*.otf')"; then
for file in $(find /Applications/Utilities/Terminal.app/Contents/Resources/Fonts... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.