document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_16900 | ---
+++
@@ -1,9 +1,10 @@
#!/usr/bin/expect -f
- # 10 minutes
+# 10 minutes
set timeout 600
spawn docker run homebridge-pc-volume-e2e
expect {
"ERROR LOADING PLUGIN" {exit 1}
- -re {Homebridge\ v[0-9.]*\ is\ running}
+ # Version 1.2.3 used to output "Homebridge v1.2.3 is running", but now appears to o... | bash |
d_bash_16901 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
-fly -t zumba set-pipeline --pipeline rabbitmq-upgrade-preparation \
+fly -t rabbit set-pipeline --pipeline rabbitmq-upgrade-preparation \
--config pipeline.yml \ | bash |
d_bash_16902 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
-version="20.10.17"
+version="20.10.18"
echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz"; | bash |
d_bash_16903 | ---
+++
@@ -14,7 +14,8 @@
sleep 1
done
-if [ ! -d "${VENV_DIR}" ]; then
+if [ ! -f "${VENV_DIR}/bin/activate" ]; then
+ mkdir -p "${VENV_DIR}"
virtualenv --no-site-packages "$VENV_DIR"
fi
| bash |
d_bash_16904 | ---
+++
@@ -19,9 +19,6 @@
printf '\e[33mINFO: Using remote redis-server specified in REDIS_URL\e[0m\n'
fi
-printf '\e[33mINFO: Starting sidekiq daemon\e[0m\n'
-bundle exec sidekiq -d
-
printf '\e[33mINFO: Starting scheduler_daemon daemon\e[0m\n'
bundle exec scheduler_daemon start
| bash |
d_bash_16905 | ---
+++
@@ -10,17 +10,24 @@
exit 0
}
+cwd=$(pwd)
+
trap on_the_way_out SIGINT
while read -r line; do
+ if [ ! -d "/var/abs/$line" ]; then
+ echo "$line" >> $cwd/nonexistent
+ continue
+ fi
+
pushd "/var/abs/$line" > /dev/null
makepkg -i --noconfirm
- if [ $? -eq 0 ]; then
+ if [ $? -eq 0 ]; then # XXX:... | bash |
d_bash_16906 | ---
+++
@@ -1,9 +1,4 @@
#!/bin/bash
-
-# Bail if we are not running inside VirtualBox.
-if [[ `facter virtual` != "virtualbox" ]]; then
- exit 0
-fi
mkdir -p /mnt/virtualbox
mount -o loop /home/hw/VBoxGuest*.iso /mnt/virtualbox | bash |
d_bash_16907 | ---
+++
@@ -3,6 +3,7 @@
svn checkout svn://svn.code.sf.net/p/daetools/code/trunk daetools-code
virtualenv venv -p python3 # create virtualenv for Python 3
source venv/bin/activate # activate virtualenv
+pip install -U pip
pip install numpy scipy matplotlib
cd daetools-code
chmod +x install_dependencies_linux.... | bash |
d_bash_16908 | ---
+++
@@ -5,8 +5,8 @@
# Author: Pavel Kirienko <pavel.kirienko@courierdrone.com>
#
-PORT=${1:-'/dev/ttyACM0'}
-#/dev/serial/by-id/usb-Black_Sphere_Technologies_Black_Magic_Probe_DDE578CC-if00
+BM_DEV=$(readlink -f /dev/serial/by-id/usb-Black_Sphere_Technologies_Black_Magic_Probe_*-if00)
+PORT=${1:-$BM_DEV}
#... | bash |
d_bash_16909 | ---
+++
@@ -1,10 +1,4 @@
-# Use `hub` as our git wrapper:
-# http://defunkt.github.com/hub/
-hub_path=$(which hub)
-if (( $+commands[hub] ))
-then
- alias git=$hub_path
-fi
+eval "$(hub alias -s)"
# The rest of my fun git aliases
alias ggui='/usr/local/opt/git/libexec/git-core/git-gui &' | bash |
d_bash_16910 | ---
+++
@@ -32,7 +32,7 @@
if [ -d ${SSH_DIR} ]; then
if [ -f ${SSH_DIR}/config ]; then
is_configured=$(grep -e 'host.*github\.com' ${SSH_DIR}/config)
- if [ -z $is_configured ]; then
+ if [ -z "${is_configured}" ]; then
cat ${SRC_CONFIG}/config >> ${SSH_DIR}/config
f... | bash |
d_bash_16911 | ---
+++
@@ -1,3 +1,6 @@
+# Make suer USER is set
+export USER=`whoami`
+
# Call py.test directly as invoke causes CircleCI to bomb out, see #6
py.test -v -x -m "not formgrader and not nbextensions"
py.test -v -x -m "formgrader" | bash |
d_bash_16912 | ---
+++
@@ -1,11 +1,13 @@
# define ROOT unless previously defined
export ROOT=${ROOT:-$HOME/local}
-mkdir -p $ROOT/{bin,lib,share}
+mkdir -p $ROOT/{bin,lib,share/man,share/info}
-echo "export ROOT=$ROOT" >> $HOME/.bashrc
-# use single quotes for literal printing
+echo 'export ROOT=$ROOT' >> $HOME/.bashrc
echo ... | bash |
d_bash_16913 | ---
+++
@@ -12,7 +12,7 @@
. ../../../config
# run eventstore
-docker run -d --net=host $eventstoreContainer.$build > eventstore_id
+docker run -d --net=host $eventstoreContainer > eventstore_id
# populate it
populateCommand=`cat "../../../../src/server/Populate Event Store.bat"` | bash |
d_bash_16914 | ---
+++
@@ -1,4 +1,4 @@
-function gi() { curl https://www.gitignore.io/api/$@ ;}
+function gi() { curl -L https://www.gitignore.io/api/$@ ;}
_gitignoreio_get_command_list() {
curl -s https://www.gitignore.io/api/list | tr "," "\n" | bash |
d_bash_16915 | ---
+++
@@ -4,7 +4,7 @@
# This calls the non-recursive gir-to-swift.sh to do the heavy lifting.
#
. ./config.sh
-./package.sh resolve
+./package.sh update
if ! pushd .build/gir2swift >/dev/null 2>&1 ; then
mkdir -p .build
pushd .build >/dev/null | bash |
d_bash_16916 | ---
+++
@@ -3,12 +3,7 @@
set -e
set -x
-sudo add-apt-repository -y ppa:fkrull/deadsnakes
-sudo apt-get -y update
-
-sudo apt-get install python3.3 python3.3-dev
-
-sudo pip install virtualenv
+pip install virtualenv
virtualenv ~/.venv
source ~/.venv/bin/activate | bash |
d_bash_16917 | ---
+++
@@ -1,4 +1,3 @@
#!/bin/bash
-apt-get update -qq
-apt-get -u -V -s upgrade | grep "Inst prosody${PROSODY_VERSION}"
+( apt update -qq && apt list --upgradable ) 2> /dev/null | grep prosody
| bash |
d_bash_16918 | ---
+++
@@ -1,4 +1,4 @@
-PACKAGES="lwt ssl mirage cstruct ipaddr io-page"
+PACKAGES="lwt ssl mirage cstruct ipaddr io-page crunch"
## different PPAs required to cover the test matrix
| bash |
d_bash_16919 | ---
+++
@@ -1,12 +1,14 @@
#!/usr/bin/env bash
+# This just tests the native build with the current libdb for ease of use.
#
+# Copyright (c) 2020 The DeepOnion developers
# Copyright (c) 2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://w... | bash |
d_bash_16920 | ---
+++
@@ -23,7 +23,7 @@
(
cd $VIRTUAL_ENV/src
- wget -O - https://github.com/btovar/cctools/archive/ndcms_mid2016_scale_run.tar.gz|tar xzf -
+ wget -O - http://ccl.cse.nd.edu/software/files/cctools-lobster-142-55035a54-cvmfs-40cf5bba-x86_64-redhat6.tar.gz|tar xzf -
cd cctools*
sed -i 's/\(config_perl_path\... | bash |
d_bash_16921 | ---
+++
@@ -19,8 +19,7 @@
# install latest chrome driver
php artisan dusk:chrome-driver
-# start the headless driver, standalone server, and notification server that the tests use
-google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
+# start the standalone server and noti... | bash |
d_bash_16922 | ---
+++
@@ -9,8 +9,14 @@
bundle install
# parallel_rspec doesn't support --exclude_pattern
-IFS="," read -ra excluded <<< "$EXCLUDE_PATTERN"
-filtered=$(find spec/ -name '*_spec.rb' $(printf "! -wholename %s " ${excluded[@]}))
+if [ -z "$EXCLUDE_PATTERN" ]; then
+ echo "No EXCLUDE_PATTERN"
+ filtered=$(find... | bash |
d_bash_16923 | ---
+++
@@ -2,7 +2,7 @@
export HOST_IP=$(ifconfig | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | awk '{ print $2 }' | cut -f2 -d: | head -n1)
-COMPOSE_FILE=${COMPOSE_FILE:="docker-compose.0_10.yml"}
+COMPOSE_FILE=${COMPOSE_FILE:="docker-compose.0_11.yml"}
echo "Running compose file: ${COMPOSE_F... | bash |
d_bash_16924 | ---
+++
@@ -28,6 +28,9 @@
# Needed to build mysql gem
sudo apt-get install -y libmysqlclient-dev
+# Needed by eventmachine for encrypted connections
+sudo apt-get install -y libssl-dev
+
# Rails needs a JavaScript runtime
sudo apt-get install -y nodejs
| bash |
d_bash_16925 | ---
+++
@@ -1,10 +1,18 @@
#!/bin/sh
set -eu
+set -x
+
+# Make require("hbsfy") work
+if [ ! -h node_modules/hbsfy ]; then
+ rm -rf node_modules/hbsfy
+ ln -fs .. node_modules/hbsfy
+fi
cd test/
-npm link hbsfy
-node test.js
-node browserify_test.js
-node custom_extension_test.js
+for test_file in *test... | bash |
d_bash_16926 | ---
+++
@@ -32,5 +32,8 @@
echo "workon $VIRTUALENV_NAME" >> /home/vagrant/.bashrc
sudo -u vagrant -s -- /usr/bin/pip install -E $VIRTUALENV_DIR -r $PROJECT_DIR/requirements.txt
+# Set execute permissions on manage.py, as they get lost if we build from a zip file
+chmod a+x $PROJECT_DIR/manage.py
+
# Django proje... | bash |
d_bash_16927 | ---
+++
@@ -2,13 +2,13 @@
pkg_name=node8
pkg_origin=core
-pkg_version=8.4.0
+pkg_version=8.6.0
pkg_description="Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine."
pkg_license=('MIT')
pkg_upstream_url=https://nodejs.org/
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_s... | bash |
d_bash_16928 | ---
+++
@@ -7,8 +7,7 @@
python emission_events/manage.py collectstatic --noinput
# Run app
-cd emission_events
-exec gunicorn emission_events.wsgi:application \
+exec gunicorn emission_events.emission_events.wsgi:application \
--workers 3 \
--bind 0.0.0.0:8000 \
"$@" | bash |
d_bash_16929 | ---
+++
@@ -1,6 +1,9 @@
#!/bin/bash
# Run an OSD daemon, use /dev/sdb for now
-docker run -d --net=host -v /etc/ceph:/etc/ceph -v /var/lib/ceph:/var/lib/ceph \
- -v /dev:/dev --privileged=true -e KV_TYPE=etcd -e OSD_FORCE_ZAP=1 \
+docker run -d --pid=host --net=host \
+ -v /etc/ceph:/etc/ceph-v /var/lib/ceph:/v... | bash |
d_bash_16930 | ---
+++
@@ -3,3 +3,5 @@
echo ' >> RUNNING SYSTEM UPDATE ...'
sudo apt-get -y update > /dev/null 2>&1
sudo apt-get -y upgrade > /dev/null 2>&1
+# Upgrade pip to newest version
+pip3 install -U pip | bash |
d_bash_16931 | ---
+++
@@ -3,7 +3,7 @@
echo "Downloading packages"
yum update -y --downloadonly --downloaddir=/var/preserve
yum install -y --downloadonly --downloaddir=/var/preserve cockpit git ansible skopeo podman Networkanager NetworkManager-team NetworkManager-tui NetworkManager-wifi device-mapper \
- device-mapper-event d... | bash |
d_bash_16932 | ---
+++
@@ -36,6 +36,10 @@
all_casks=$all_casks$(echo $cask | tr '\n' ' ')
fi
done < $(dirname "${BASH_SOURCE[0]}")/casks
-brew cask install $all_casks
+#Override default symlink location (which is ~/Applications)
+brew cask install --appdir=/Applications $all_casks
+
+#Link the caskroom to alfred
+brew cask... | bash |
d_bash_16933 | ---
+++
@@ -27,3 +27,11 @@
done
docker push $REPO
+
+# Clean up unnecessarry docker images after pushing
+if [ $? -eq 0 ]; then
+ for suite in $SUITES; do
+ docker rmi -f $REPO:$suite
+ docker rmi -f $REPO:$suite-$date
+ done
+fi | bash |
d_bash_16934 | ---
+++
@@ -20,7 +20,7 @@
fi
if [ -z "$JAVA_OPTIONS" ] ; then
- JAVA_OPTIONS="-server -showversion -XX:+AggressiveOpts -Xmx2g -Xms2g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+Scaven... | bash |
d_bash_16935 | ---
+++
@@ -1,5 +1,14 @@
#!/bin/bash
-git clone https://github.com/N4SJAMK/teamboard-io io
-git clone https://github.com/N4SJAMK/teamboard-api api
-git clone https://github.com/N4SJAMK/teamboard-client client
+# Default to N4SJAMK if no user is given.
+USER=${1-N4SJAMK}
+
+# Clone our repositories.
+git clo... | bash |
d_bash_16936 | ---
+++
@@ -1,7 +1,17 @@
#!/bin/bash
+
+if [ -z $1 ]; then
+ echo "Please specify the version. Use one of patch, minor or major."
+ exit 1
+fi
+
+if [ -n "$(git status --porcelain)" ]; then
+ echo "There are uncommitted changes. Clean them up first";
+ exit 1
+fi
NEW_VERSION=$(npm version $1)
npm run build
-... | bash |
d_bash_16937 | ---
+++
@@ -7,7 +7,7 @@
# Install local gems according to Mac OS X conventions.
if [[ "$OSTYPE" == darwin* ]]; then
- export GEM_HOME="$HOME/Library/Ruby/Gems/${$(ruby --version)[6,8]}"
+ export GEM_HOME=$HOME/Library/Ruby/Gems/1.8
path=("$GEM_HOME/bin" $path)
# Set environment variables for launchd pro... | bash |
d_bash_16938 | ---
+++
@@ -3,7 +3,7 @@
# e.g. /home/travis/build/webignition/simplytestable-travis-integration
# Create nginx config for core app
-sudo cp /home/travis/build/webignition/simplytestable-travis-integration/travis/config/nginx/sites-available/app.simplytestable.com.conf /etc/nginx/sites-available
+sudo cp /home/tra... | bash |
d_bash_16939 | ---
+++
@@ -17,8 +17,15 @@
alias xcp='xcode-select --print-path'
alias xcdd='rm -rf ~/Library/Developer/Xcode/DerivedData/*'
-if [[ -d $(xcode-select -p)/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app ]]; then
- alias simulator='open $(xcode-select -p)/Platforms/iPhoneSimulator.p... | bash |
d_bash_16940 | ---
+++
@@ -4,5 +4,12 @@
workspace="$1"
-screen -x -p "$workspace" ||
+if
+ which screen >/dev/null &&
+ [[ -n $workspace ]]
+then
+ screen -x -p "$workspace" ||
+ $SHELL
+else
$SHELL
+fi | bash |
d_bash_16941 | ---
+++
@@ -2,7 +2,6 @@
reportsDir=build/reports
resourceDir=Resources
-set -e # fail script if any commands fail
#Publish build results
echo '--------------------------------------------------------------------------------' | bash |
d_bash_16942 | ---
+++
@@ -9,7 +9,7 @@
echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.14%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.14_9.tar.gz"
;;
java17)
- echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.1%2B12/OpenJDK17U-jdk_x64_linux_hotspot_17.0.1_12.tar... | bash |
d_bash_16943 | ---
+++
@@ -38,7 +38,9 @@
version="$1"
fi
+# Expiry is intended for dev images, if we want more persistent Burrow images on quay.io we should remove this...
docker build \
+ --label quay.expires-after=24w\
--label org.label-schema.version=${version}\
--label org.label-schema.vcs-ref=${commit}\
--la... | bash |
d_bash_16944 | ---
+++
@@ -1,9 +1,4 @@
#!/bin/sh
-
-if [ -z "$1" ]; then
- echo "Search name is required"
- exit 1
-fi
if command -v apt-get >/dev/null 2>&1; then
sudo apt-get install git unzip wget curl gawk | bash |
d_bash_16945 | ---
+++
@@ -17,7 +17,10 @@
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PUBLIC_KEY=${PUBLIC_KEY-}
-eval "$(jq -r '@sh "PUBLIC_KEY=\(.public_key)"')"
+
+if ! test -t 0; then
+ eval "$(jq -r '@sh "PUBLIC_KEY=\(.public_key)"')"
+fi
if [[ -f $PUBLIC_KEY ]]; then
print_public_key... | bash |
d_bash_16946 | ---
+++
@@ -1,3 +1,15 @@
#!/bin/bash
-. ohai/find-ruby.sh
-$RUBY_BIN ohai/ohai2nad.rb
+
+# Need to figure out our script dir, resolving symlinks.
+SOURCE="${BASH_SOURCE[0]}"
+while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
+ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
+ SOUR... | bash |
d_bash_16947 | ---
+++
@@ -3,7 +3,7 @@
FAUCETHOME=`dirname $0`"/../.."
PYTHONPATH=$FAUCETHOME:$FAUCETHOME/clib
-MINRATING=9.3
+MINRATING=9.4
lintfile=`tempfile`.lint
| bash |
d_bash_16948 | ---
+++
@@ -16,7 +16,8 @@
then
# If we are on Linux, we are using Docker to get the IP of the container
CONTAINER_IP=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' $CONTAINER_NAME)
-
+ LOCAL_PORT_SSH=22
+
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]
then
echo "Una... | bash |
d_bash_16949 | ---
+++
@@ -16,4 +16,7 @@
chmod 600 ~/.ssh/id_rsa
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
+sudo sed -i -e 's@^mirrorlist@#mirrorlist@' /etc/yum.repos.d/epel*.repo
+sudo sed -i -e 's@^#baseurl.*/epel@baseurl=http://dl.fedoraproject.org/pub/epel@' /etc/yum.repos.d/epel*.... | bash |
d_bash_16950 | ---
+++
@@ -13,6 +13,8 @@
CRON_ENV="$CRON_ENV\nTAR_PARAMS=$TAR_PARAMS"
fi
touch /var/log/cron.log
+ echo -e "$CRON_ENV\n\n$CRON_SCHEDULE /archive.sh >> /var/log/cron.log 2>&1"
echo -e "$CRON_ENV\n\n$CRON_SCHEDULE /archive.sh >> /var/log/cron.log 2>&1" | crontab -
- exec cron -f
+ cron... | bash |
d_bash_16951 | ---
+++
@@ -23,7 +23,7 @@
fi
echo ""
echo "* Run python unit tests"
-nosetests --exe --with-coverage --cover-package=timesketch
+nosetests --exe --with-coverage --cover-package=timesketch_api_client,timesketch api_client/python/timesketch_api_client/ timesketch/
rm .coverage
if test $? -ne 0; then
exit 1 | bash |
d_bash_16952 | ---
+++
@@ -2,17 +2,21 @@
#This script should pull a list of the directories in the parent folder, cd into each folder issue the Git Update command, update the files, move back to the parent directory and repeat until all files have been updated, then copy the files to the main mod directory.
+# Path to the dire... | bash |
d_bash_16953 | ---
+++
@@ -1,4 +1,9 @@
#!/bin/bash
+set -e
+date
+echo
+git --no-pager log -1 -b
+echo
python generate_synthetic_raw_data.py -f synth_config
-arch sh ./prepare_train_map.sh -f synth_config
+sh ./prepare_train_map.sh -f synth_config
| bash |
d_bash_16954 | ---
+++
@@ -20,6 +20,8 @@
# variable for authentication.
export GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_KEYSTORE_DIR}/${GCLOUD_CREDENTIALS}"
+which gcloud
+
gcloud auth activate-service-account \
--key-file "${GOOGLE_APPLICATION_CREDENTIALS}"
| bash |
d_bash_16955 | ---
+++
@@ -1,3 +1,21 @@
#!/bin/bash
-exit 1
+set -euxo pipefail
+
+# Clean up leftovers before exit
+function cleanup {
+ echo "Cleaning up leftovers..."
+ sleep 3
+ docker rmi $ARTIFACT_NAME
+}
+trap cleanup EXIT
+
+# Get the current working directory and add slash to beginning (to handle windows-incons... | bash |
d_bash_16956 | ---
+++
@@ -1,4 +1,4 @@
-#!/usr/bin/bash
+#!/bin/bash
# Generates documentation for LIVVkit
# run with ./generate_docs.sh | bash |
d_bash_16957 | ---
+++
@@ -7,7 +7,7 @@
for filter in /usr/local/share/diamond/filters/* ; do
cat > $filter << EOF
#!/bin/sh
-exec docker run --rm -i -v/dev/null:/dev/raw1394 --entrypoint $filter $IMAGEID "\$@"
+exec docker run --rm -i --log-driver=none -v/dev/null:/dev/raw1394 --entrypoint=$filter $IMAGEID "\$@"
EOF
done
| bash |
d_bash_16958 | ---
+++
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
-if [ ! -d "$1" ] || [ ! -d "$2" ]; then
- echo "Expecting path to backend and destination directory"
+
+if [ "$#" -ne 0 ]; then
+ echo "Expecting parameters: 1=path to backend; 2=destination directory"
exit 1
fi
| bash |
d_bash_16959 | ---
+++
@@ -1,3 +1,6 @@
+# Usage:
+# ./new_district.sh "My New District Name"
+
DISTRICT_NAME=$1
if [ -z "$DISTRICT_NAME" ]; then | bash |
d_bash_16960 | ---
+++
@@ -39,4 +39,13 @@
done
fi
+useradd ghost --home /ghost
+chown -R ghost.ghost /ghost
+chown -R ghost.ghost /data
+chown -R ghost.ghost /ghost-override
+
+su ghost <<'EOF'
+cd "$GHOST"
+export NODE_ENV=production
npm start
+EOF | bash |
d_bash_16961 | ---
+++
@@ -13,3 +13,9 @@
# Prompt values
local current_dir="%3~%{$reset_color%} "
local arrow="%(?.%{$fg[blue]%}.%{$fg[red]%})%B${PROMPT_SYMBOL}%b"
+
+# Show working directory in the title
+function precmd () {
+ tab_label=${PWD/${HOME}/\~}
+ echo -ne "\e]2;${tab_label}\a"
+} | bash |
d_bash_16962 | ---
+++
@@ -2,7 +2,7 @@
set -eux
-versions=(1.3.0 1.4.0 1.5.0 1.5.1 1.6.0 1.7.0-RC1 1.7.0-master-SNAPSHOT)
+versions=(1.5.0 1.5.1 1.6.0 1.7.0-RC1 1.7.0-master-SNAPSHOT)
for i in ${versions[@]}
do | bash |
d_bash_16963 | ---
+++
@@ -6,7 +6,7 @@
fi
echo "Install Bluemix CLI"
-curl -L public.dhe.ibm.com/cloud/bluemix/cli/bluemix-cli/Bluemix_CLI_0.5.6_amd64.tar.gz > Bluemix_CLI.tar.gz
+curl -L https://public.dhe.ibm.com/cloud/bluemix/cli/bluemix-cli/latest/Bluemix_CLI_amd64.tar.gz > Bluemix_CLI.tar.gz
tar -xvf Bluemix_CLI.tar.gz
s... | bash |
d_bash_16964 | ---
+++
@@ -14,8 +14,14 @@
# Delay to allow service to start up
sleep 0.5
-export COASTER_SERVICE_URL="${IPADDR}:${SERVICE_PORT}"
+COASTER_SERVICE_URL="${IPADDR}:${SERVICE_PORT}"
export TURBINE_COASTER_CONFIG="jobManager=local,maxParallelTasks=64"
+TURBINE_COASTER_CONFIG+=",coasterServiceURL=${COASTER_SERVICE_UR... | bash |
d_bash_16965 | ---
+++
@@ -1,7 +1,12 @@
# set default editor
-if [ $(uname -s) = "Darwin" ] ; then
+# editor preference:
+# 1. MacVim/mvim
+# 2. vim
+
+# set editor based on what's found on the system
+if type mvim >/dev/null 2>/dev/null ; then
export EDITOR='mvim'
-else
+elif type vim >/dev/null 2>/dev/null ; then
exp... | bash |
d_bash_16966 | ---
+++
@@ -12,10 +12,6 @@
cd ../centos-7.1-amd64
packer build --only=virtualbox-iso centos-7.1-amd64.json
-#CentOS 7.1
-cd ../centos-7.1-amd64
-packer build --only=virtualbox-iso centos-7.1-amd64.json
-
#Ubuntu 14.04
cd ../ubuntu-14.04-server-amd64
packer build --only=virtualbox-iso ubuntu-14.04-server-amd64.... | bash |
d_bash_16967 | ---
+++
@@ -3,8 +3,24 @@
alias :Gstatus='git status'
alias :Gw='git add'
-alias ack='ag'
-alias ack-grep='ag'
+# Use the best code searching tool money can buy
+if [ -x /usr/bin/ag ] ; then
+ alias ack='ag'
+ alias ack-grep='ag'
+ alias egrep='ag'
+else
+ if [ -x /usr/bin/ack-grep ] ; then
+ al... | bash |
d_bash_16968 | ---
+++
@@ -11,7 +11,7 @@
xmodmap -e "pointer = 1 2 3" 2> /dev/null
echo "-> Laptop mode"
else
- xrandr --output $IN --mode 1920x1080 --output $EXT --primary --auto --right-of $IN
+ xrandr --output $IN --mode 1920x1080 --output $EXT --primary --mode 2560x1440 --right-of $IN
xmodmap -e "pointer = 3 2 1" 2>... | bash |
d_bash_16969 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-composer install --prefer-source
+composer install --prefer-dist
mysql -e 'create database IF NOT EXISTS sandbox;' -u root
| bash |
d_bash_16970 | ---
+++
@@ -1,3 +1,4 @@
+#!/bin/bash
fname=$(echo $1 | sed 's/.png//g')
outname="$2"
scala imgcompress.jar encode "$fname.png" "$fname.dct" "$2" | bash |
d_bash_16971 | ---
+++
@@ -1,12 +1,11 @@
#!/bin/bash
-
-LCT="$(date +"%s")"
cat /etc/samba/users.conf | while read USERPASS; do
ID=$(echo $USERPASS | awk '{print $1}')
USER=$(echo $USERPASS | awk '{print $2}')
PASS=$(echo $USERPASS | awk '{print $3}')
SMBPASS=$(echo $USERPASS | awk '{print $4}')
+ LCT=$(echo $USERP... | bash |
d_bash_16972 | ---
+++
@@ -14,3 +14,9 @@
# tmux
alias t='tmux -2'
alias ta='tmux attach'
+
+# fast travel.
+alias ftg='fast-travel go'
+alias fta='fast-travel add'
+alias ftd='fast-travel delete'
+alias ftl='fast-travel list' | bash |
d_bash_16973 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/sh
+#
+# This whole script should be a rebar plugin, or at least an escript.
[ -z "$plugin_name" ] && read -p "plugin_name: " plugin_name
@@ -10,11 +12,24 @@
fi
set -e
-set -x
./rebar/rebar clean
./rebar/rebar get-deps
./rebar/rebar update-deps
./rebar/rebar compile
-z... | bash |
d_bash_16974 | ---
+++
@@ -13,7 +13,6 @@
dockutil --no-restart --add "/Applications/Reminders.app"
dockutil --no-restart --add "/Applications/Photos.app"
dockutil --no-restart --add "/Applications/Spotify.app"
-dockutil --no-restart --add "/Applications/iTunes.app"
dockutil --no-restart --add "/Applications/Visual Studio Code.a... | bash |
d_bash_16975 | ---
+++
@@ -43,8 +43,19 @@
set -e
sudo apt-get update
-sudo apt-get install ${SILENT} oracle-java7-set-default
-
+{
+ sudo apt-get install ${SILENT} oracle-java7-set-default
+} || {
+ { set +x; } 2>/dev/null
+ echo
+ echo "Installing Oracle Java failed."
+ echo "This script cannot be used if ubuntu release h... | bash |
d_bash_16976 | ---
+++
@@ -1,6 +1,21 @@
#!/bin/bash
SUDO="sudo -E -u $CHROMIUMUSER_USERNAME"
+
+if [ "$CHROMIUMUSER_USERNAME" == "chromiumuser" ]; then
+ echo To run Chrome, please run the following commands:
+ echo
+ echo "sudo docker run transistor1/chrome config > start.sh"
+ echo sudo chmod +x start.sh
+ echo ./start.sh
+ e... | bash |
d_bash_16977 | ---
+++
@@ -6,3 +6,4 @@
alias drmi='docker rmi $(docker images -f "dangling=true" -q )'
alias dri='docker rmi'
alias di='docker images'
+alias drm='docker rm $(docker ps -q -f "status=exited")' | bash |
d_bash_16978 | ---
+++
@@ -11,6 +11,12 @@
SESSION=Main
fi
+# NOTE: I use the option "-2" to force Tmux to accept 256 colors This is
+# necessary for proper Vim support in the Linux Console. My Vim colorscheme,
+# PaperColor, does a lot of smart translation for Color values between 256 and
+# terminal 16 color support, and thi... | bash |
d_bash_16979 | ---
+++
@@ -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_16980 | ---
+++
@@ -8,6 +8,6 @@
tmux new-window -n 'nvim-debug'
tmux send-keys "NVIM_LISTEN_ADDRESS=127.0.0.1:7777 nvim" C-m
tmux split
-tmux send-keys 'java -cp "$(cat .classpath)" clojure.main' C-m
+tmux send-keys 'rlwrap java -cp "$(cat .classpath)" clojure.main' C-m
tmux send-keys '(println "Plugin repl connecting to... | bash |
d_bash_16981 | ---
+++
@@ -14,7 +14,12 @@
echo
echo "Testing Turbine"
echo "================"
-make test_results
+if make test_results
+then
+ echo "All Turbine tests passed"
+else
+ echo "Turbine tests failed"
+fi
cd ${STC}
echo | bash |
d_bash_16982 | ---
+++
@@ -6,16 +6,23 @@
echo "instead of running it the standard way; it wants to affect parent env."
echo ""
-if [ -d ${HOME}/projects/subversion ]; then
- WC=${HOME}/projects/subversion
-elif [ -d ${HOME}/src/subversion ]; then
- WC=${HOME}/src/subversion
+if [ "X${SVN_WC}" = "X" ]; then
+ if [ -d ${HOME... | bash |
d_bash_16983 | ---
+++
@@ -7,7 +7,7 @@
fi
./fetchIdea.sh "$1"
-./fetchGrammarKit.sh "$1"
+./fetchGrammarKit.sh
#call the build script along with the path to a code package
#specific to the intellij version which we build against | bash |
d_bash_16984 | ---
+++
@@ -11,7 +11,7 @@
fi
hash multirust 2>/dev/null
if [ $? -ne 0 ]; then
- echo "Please install multirust with ('./install-multirust') before continuing."
+ echo "Please install multirust with ('./install-multirust.sh') before continuing."
exit
fi
| bash |
d_bash_16985 | ---
+++
@@ -28,6 +28,6 @@
python -c 'import fileinput, glob;
for filename in glob.glob("mbed-os/tools/profiles/*.json"):
for line in fileinput.input(filename, inplace=True):
- print line.replace("\"-std=gnu++98\"","\"-std=c++11\", \"-fpermissive\"")'
+ print(line.replace("\"-std=gnu++98\"","\"-std=c++11\",... | bash |
d_bash_16986 | ---
+++
@@ -1,7 +1,6 @@
#! /bin/bash
-LOG_SPEC="$1..$2"
-LOG_CMD="git --no-pager log $LOG_SPEC"
+LOG_CMD="git --no-pager log $1..$2"
RESPONSIBLE=$(sort -u <($LOG_CMD --format='tformat:%ae' && $LOG_CMD --format='tformat:%ce'))
| bash |
d_bash_16987 | ---
+++
@@ -1,2 +1,2 @@
# Set passwords
-function kibanapw() { if [ $# -lt 2 ]; then echo -e "Usage: kibanapw USER PASSWORD\nUsers will be added to /etc/nginx/htpasswd.users"; else egrep "^${1}:" /etc/nginx/htpasswd.users > /dev/null 2>&1; if [[ $? -eq 0 ]]; then sudo sed -i "/${1}\:/d" /etc/nginx/htpasswd.users; fi... | bash |
d_bash_16988 | ---
+++
@@ -8,6 +8,6 @@
cp public/index.xml public/writing/atom.xml
# Send all files
-rsync -avze 'ssh -p 61203' --delete \
+echo rsync -avze "'ssh -p ${BLOG_PORT}'" --delete \
--chmod=Du=rwx,Dg=rx,Do=rx,Fu=rw,Fg=r,Fo=r \
- public/ taichi@133.242.140.185:~/www/public
+ public/ taichi@${BLOG_IP}:... | bash |
d_bash_16989 | ---
+++
@@ -28,11 +28,6 @@
alias v=vi
fi
-if which xcrun >/dev/null 2>&1; then
- alias swift='xcrun swift'
- alias swiftc='xcrun swiftc'
-fi
-
if [[ -e /usr/libexec/PlistBuddy ]]; then
alias pplist='/usr/libexec/PlistBuddy -c print'
fi | bash |
d_bash_16990 | ---
+++
@@ -8,7 +8,7 @@
if [ -f /etc/rebasenix.nextbase ]; then
NEXTBASE="$(</etc/rebasenix.nextbase)"
fi
- NEXTBASE=${NEXTBASE:-0x200000000}
+ NEXTBASE=${NEXTBASE:-0x200000001}
REBASE=(`/bin/rebase -i $DLL`)
BASE=${REBASE[2]} | bash |
d_bash_16991 | ---
+++
@@ -2,18 +2,16 @@
usuario=$(./app/utils/UsuarioLogado.sh)
-sudo rm /opt/WebStorm* -R
+wget https://download-cf.jetbrains.com/webstorm/WebStorm-2017.1.1.tar.gz -O /home/$usuario/Downloads/WebStorm-2017.1.1.tar.gz
-wget https://download-cf.jetbrains.com/webstorm/WebStorm-2017.1.4.tar.gz -O /home/$usuario... | bash |
d_bash_16992 | ---
+++
@@ -7,19 +7,19 @@
PYTHONOCCTAG="0.16-pre-1"
POCCMAKEPATH="pythonocc-core/cmake-build"
-sudo apt-get install swig
+sudo apt-get install -y swig
sudo add-apt-repository "deb http://ppa.launchpad.net/freecad-maintainers/oce-release/ubuntu precise main" -y
sudo apt-get update -q
-sudo apt-get install liboce... | bash |
d_bash_16993 | ---
+++
@@ -4,6 +4,9 @@
echo "Installing homebrew..."
ruby -e "$( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )"
fi
+
+# update brew formulae
+brew update
install_with_brew() {
# install each uninstalled dependency | bash |
d_bash_16994 | ---
+++
@@ -14,8 +14,4 @@
CREATE ROLE "$CATMAID_USER" LOGIN PASSWORD '$CATMAID_PASSWORD';
CREATE DATABASE "$CATMAID_DATABASE" OWNER "$CATMAID_USER";
-
-\c $CATMAID_DATABASE
-
-CREATE PROCEDURAL LANGUAGE plpgsql;
EOSQL | bash |
d_bash_16995 | ---
+++
@@ -1,2 +1,26 @@
#! /bin/sh
-cmake -G "Unix Makefiles" -DEXTERNAL_LIBCLANG_PATH=/opt/local/libexec/llvm-3.6/lib/libclang.dylib -DPYTHON_LIBRARY=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib -DPYTHON_INCLUDE_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/H... | bash |
d_bash_16996 | ---
+++
@@ -22,5 +22,8 @@
# enable service
systemctl enable a6000
+# enable auto-login for the odroid user
+sudo bash -c 'echo "autologin-user=odroid" >> /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf'
+
# ask for restart to test if service boots up correctly
echo "Finished installation" | bash |
d_bash_16997 | ---
+++
@@ -24,7 +24,7 @@
flavor="m1.small"
image="centos-6-20130416"
-key="ubuntu-vm"
+key=$(hostname)
secgroups="ssh,http"
nova boot \ | bash |
d_bash_16998 | ---
+++
@@ -10,7 +10,7 @@
exit 0
fi
-if [ $TRAVIS_PULL_REQUEST = 'false' ]; then
+if [ $TRAVIS_PULL_REQUEST = 'true' ]; then
echo "Not building for pull request."
exit 0
fi | bash |
d_bash_16999 | ---
+++
@@ -1,11 +1,10 @@
#!/usr/bin/env sh
echo "start master "
-nohup ../output/bin/master --port=8102 >/tmp/master.log 2>&1 &
+nohup ../output/bin/master --port=8102 >./master.log 2>&1 &
sleep 1
echo "start agent"
-nohup ../output/bin/agent --port=8202 --master=localhost:8102 >/tmp/agent.log 2>&1 &
+nohup ../o... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.