document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_20100 | ---
+++
@@ -5,16 +5,16 @@
exit 1
fi
-fleetctl list-units | grep $1 > /dev/null
+fleetctl list-units --no-legend | grep $1 > /dev/null
if [ ! $? -eq 0 ]; then
echo "Unknown service"
exit 2
fi
# wait until container is running
-while ! [ `fleetctl list-units | grep $1 | awk '{print $3}'` = "active" ]
+... | bash |
d_bash_20101 | ---
+++
@@ -18,12 +18,22 @@
done
}
+panes_current_session() {
+ tmux list-panes -s -F '#{window_active} #I.#P' |
+ while read active pane; do
+ [[ "$active" -eq 0 ]] && echo "$pane"
+ done
+}
+
# take all lines
# append copy with replaced non word characters
# split on spaces
# filter by f... | bash |
d_bash_20102 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Test each Go package separately, as go test does not support
# writing coverage profiles for multiple packages into a single file.
: > coverage.txt | bash |
d_bash_20103 | ---
+++
@@ -4,6 +4,13 @@
"${KOLLA_BASE_DISTRO}" == "debian" ]]; then
# Loading Apache2 ENV variables
source /etc/apache2/envvars
+fi
+
+# NOTE(pbourke): httpd will not clean up after itself in some cases which
+# results in the container not being able to restart. Unconfirmed if this
+# happens on ... | bash |
d_bash_20104 | ---
+++
@@ -1,18 +1,22 @@
-if [ -v BASH_SOURCE ]; then
- THIS=${BASH_SOURCE[0]}
-elif [ -v ZSH_VERSION ]; then
- THIS=${(%):-%x}
-else
- THIS=$0
-fi
+main() {
+ if [ -v BASH_SOURCE ]; then
+ local -r THIS=${BASH_SOURCE[0]}
+ elif [ -v ZSH_VERSION ]; then
+ local -r THIS=${(%):-%x}
+ else
+ local -r THIS=$0
+ fi
... | bash |
d_bash_20105 | ---
+++
@@ -8,7 +8,10 @@
function clone_repo() {
echo "Pulling latest repository... Version is $VERSION"
# clone pile
- git clone git@github.com:systemapic/pile.git pile || abort "Failed to clone systemapic/pile.git... Quitting!"
+ git clone \
+ --reference ../../modules/pile \
+ git@github.com:systemapic/... | bash |
d_bash_20106 | ---
+++
@@ -15,7 +15,7 @@
cd ..
mkdir luacov
-wget -O - https://api.github.com/repos/mpeterv/luacov/tarball/pause-resume | tar xz -C luacov --strip-components=1
+wget -O - https://api.github.com/repos/keplerproject/luacov/tarball/master | tar xz -C luacov --strip-components=1
cd luacov
sudo luarocks make rocksp... | bash |
d_bash_20107 | ---
+++
@@ -18,8 +18,6 @@
W=$(echo "$Q" | sed -e 's/.*\/quotes\///g' -e 's/<.*//g' -e 's/.*">//g')
if [ "$W" -a "$TXT" ]; then
echo "${WHO_COLOR}${W}${COLON_COLOR}: ${TEXT_COLOR}“${TXT}”${END_COLOR}"
- # else
- # quote
fi
}
#quote | bash |
d_bash_20108 | ---
+++
@@ -18,10 +18,15 @@
set -x
if [ ! "$TRAVIS_USE_NOX" -eq 0 ]; then
- # Build and run tests using nox
- pip3 install nox
- nox -s tests
- exit 0
+ # Build and run tests using nox
+ #
+ # March 23rd, 2020: This is currently breaking Travis-CI due to
+ # run_python_test failing. Disabling it w... | bash |
d_bash_20109 | ---
+++
@@ -1,4 +1,4 @@
mpc() {
- local mpd_password="$(cat ~/documents/secure/files/mpd-passwd.txt)"
+ local mpd_password="$(cat "$HOME/.mpd/password")"
env mpc -h "$mpd_password@localhost" "$@"
} | bash |
d_bash_20110 | ---
+++
@@ -1,12 +1,12 @@
#!/bin/bash -x
set -e
-rm -f Gemfile.lock
git clean -fdx
export GOVUK_APP_DOMAIN=dev.gov.uk
for version in 2.2 2.1 1.9.3; do
+ rm -f Gemfile.lock
export RBENV_VERSION=$version
echo "Running tests under ruby $version"
bundle install --path "${HOME}/bundles/${JOB_NAME}" | bash |
d_bash_20111 | ---
+++
@@ -1,4 +1,4 @@
# Easy cd to most used directories.
setopt auto_cd
-cdpath=($HOME/repos $HOME/Downloads $HOME)
+cdpath=($HOME/code $HOME/Downloads $HOME) | bash |
d_bash_20112 | ---
+++
@@ -7,7 +7,7 @@
DOCKER_USERNAME="${DOCKER_USERNAME:-mozjenkins}"
-docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD -e $DOCKER_USERNAME@example.com
+docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
# Push to docker hub
docker push $DOCKER_IMAGE_TAG | bash |
d_bash_20113 | ---
+++
@@ -1,10 +1,11 @@
#!/bin/bash -ex
(
-cd capi-release/src/cloud_controller_ng
-git remote add -f fork/master https://github.com/idev4u/cloud_controller_ng.git
-git cherry-pick 29d1797b2c4db73790a57abb90523a25c0770d27
-git commit -am "Add BitsService TLS ca_cert"
+ cd capi-release/src/cloud_controller_ng
+... | bash |
d_bash_20114 | ---
+++
@@ -13,4 +13,6 @@
export XCURSOR_THEME=Adwaita
#export XCURSOR_THEME=DMZ-White
+# export WEBKIT_DISABLE_COMPOSITING_MODE=1
+
${BASE_PATH}/jhbuild-install/bin/jhbuild -f ${BASE_PATH}/jhbuildrc run ${BASE_PATH}/install/bin/epiphany $@ | bash |
d_bash_20115 | ---
+++
@@ -2,7 +2,18 @@
# purge the linux-image-virtual obsolete packages
version=$(ls /boot/ | grep vmlinuz | grep generic | cut -d"-" -f2 | sort -u)
+
+# look for the generic packages under 32-bit
declare -a installed=($(ls /boot/ | grep vmlinuz | grep generic | cut -d"-" -f3 | sort -u))
+count=${#installed[@... | bash |
d_bash_20116 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/bash
+
+#Exit on any error
+set -e
LANGUAGE=$1
| bash |
d_bash_20117 | ---
+++
@@ -1,5 +1,5 @@
c() {
- if [[ "$(find ~/Code/ -mindepth 2 -maxdepth 2 -name "$1" | wc -l)" -gt 1 ]]; then
+ if [[ "$(find ~/Code/ -mindepth 2 -maxdepth 2 -wholename "$1" | wc -l)" -gt 1 ]]; then
echo 'FATAL: multiple directories match, cannot select' >&2
return 1
fi | bash |
d_bash_20118 | ---
+++
@@ -3,4 +3,4 @@
# Typically
# GOSSAPKG=flate go test -v -run TestForwardCopy .
# But for testing do this -- requires 8 hashes to fail
-./gossahash-search -f
+./gossahash -f | bash |
d_bash_20119 | ---
+++
@@ -7,12 +7,12 @@
exit 1
fi
-SRPMS_MOUNT_DIR=/tmp/docker-SRPMS
+SRPMS_MOUNT_DIR=/tmp/docker-SRPMS/`uuidgen`
SRPM=$1
SRPM_NAME=`basename $SRPM`
-mkdir -p /tmp/docker-SRPMS
+mkdir -p $SRPMS_MOUNT_DIR
cp $SRPM $SRPMS_MOUNT_DIR
docker run -e SRPM_NAME=$SRPM_NAME -i --rm=true -t -v $SRPMS_MOUNT_D... | bash |
d_bash_20120 | ---
+++
@@ -4,4 +4,6 @@
LIBGUEST_APPLIANCE=${DIR}/downloaded
tar -Jxf ${LIBGUEST_APPLIANCE} -C ${DIR}
+touch ${DIR}/done
+
/bin/bash | bash |
d_bash_20121 | ---
+++
@@ -5,4 +5,4 @@
python manage.py sample_data
echo "DELETE FROM auth_permission;" | python manage.py dbshell
echo "DELETE FROM django_content_type;" | python manage.py dbshell
-
+python manage.py createsuperuser | bash |
d_bash_20122 | ---
+++
@@ -10,8 +10,7 @@
"ItemId": "test",
"Severity": 200,
"Problem": "us-bbox"
- },
- "cronSchedule": "@every 1s"
+ }
}'
curl -X POST -S -s \ | bash |
d_bash_20123 | ---
+++
@@ -29,11 +29,12 @@
echo stripping
for dir in docs examples; do
find ${OUTDIR}/${dir} -type f -name \*.md | while read X; do
- sed -i \
+ sed -i .import_docs_tmp \
-e '/<!-- BEGIN STRIP_FOR_RELEASE.*/,/<!-- END STRIP_FOR_RELEASE.*/d' \
-e "s|releases.k8s.io/HEAD|... | bash |
d_bash_20124 | ---
+++
@@ -12,11 +12,11 @@
echo -n "Enter the size (in GiB) to give the primary partition: "
read DISTSIZE
-echo -n "Enter a hostname for this machine: "
+echo -n "Enter a username for the user with sudo rights (user@____): "
+read USERNAME
+
+echo -n "Enter a hostname for this machine ($USERNAME@host): "
read ... | bash |
d_bash_20125 | ---
+++
@@ -20,7 +20,7 @@
exit $?
elif [[ -z $IMAGE_EXISTS ]] || [[ $FORCE_BUILD = 1 ]]; then
echo "Building Docker image $REPOSITORY..."
- docker build --no-cache --rm -t $REPOSITORY .
+ docker build -t $REPOSITORY .
fi
# With the given name $CONTAINER, reconnect to running container, start | bash |
d_bash_20126 | ---
+++
@@ -1,14 +1,14 @@
#!/usr/bin/env bash
# Docker Machine
-# DOCKER_IP_PORT=${1:-192.168.99.100:2376}
-# export DOCKER_CERT_PATH="/Users/chmoulli/.docker/machine/machines/default"
-# export DOCKER_HOST="tcp://$DOCKER_IP_PORT"
-# export DOCKER_MACHINE_NAME="default"
-# export DOCKER_TLS_VERIFY="1"
+DOCKER_IP_... | bash |
d_bash_20127 | ---
+++
@@ -22,4 +22,7 @@
else
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true
fi
+
+ # hide mounted drives from dock
+ gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts false
fi | bash |
d_bash_20128 | ---
+++
@@ -1,4 +1,6 @@
-#!/usr/bin/env bash -e
+#!/bin/bash
+set -e
+
IMAGE_TAG=${IMAGE_TAG-latest}
docker pull registry.tld/conjur-appliance:${IMAGE_TAG} | bash |
d_bash_20129 | ---
+++
@@ -11,5 +11,5 @@
${JSDOC_BIN} -r -p "src/goo" -d ${DOC_DIR}
# Package files into tar.gz
-rm -r goojs-jsdoc*.tar.gz
+rm -f goojs-jsdoc*.tar.gz
tar zcf goojs-jsdoc_$(date +%d%h%y_%H%M).tar.gz ${DOC_DIR} | bash |
d_bash_20130 | ---
+++
@@ -7,5 +7,5 @@
chflags nohidden ~/Library
# Set a fast key repeat
-defaults write NSGlobalDomain KeyRepeat -int 0
+defaults write NSGlobalDomain KeyRepeat -int 2
| bash |
d_bash_20131 | ---
+++
@@ -23,6 +23,6 @@
# Install git
apt-get install -y git
-python3 setup.py test --parallel=4
+PYTHONHASHSEED=42 python3 setup.py test --parallel=4
EOF | bash |
d_bash_20132 | ---
+++
@@ -13,6 +13,6 @@
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
- sudo -H -u gnocchi gnocchi-upgrade --logfile /var/log/kolla/gnocchi/gnocchi-upgrade.log
+ sudo -H -... | bash |
d_bash_20133 | ---
+++
@@ -4,6 +4,12 @@
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
if [ "$mode" = "install" ]; then
+ # Test if clippy is already installed (cache)
+ $CARGO clippy &> /dev/null
+ if [ $? -ne 101 ]; then
+ exit 0
+ fi
+
cargo install clippy
exit $?
fi | bash |
d_bash_20134 | ---
+++
@@ -3,7 +3,12 @@
# Install missing packages
zypper install -y kernel-default-devel gcc
-# this is needed for the vmware tools install to complete
-if [[ "$PACKER_BUILDER_TYPE" == vmware-iso ]]; then
- zypper install -y insserv-compat
-fi
+# make sure we have tools we need for the vm extensions
+case "$PA... | bash |
d_bash_20135 | ---
+++
@@ -2,23 +2,22 @@
DOTFILES="/home/steven/Documents/git-repos/remote-github/dotfiles"
-debug() {
- notify-send "Special Keys Debug" "$1"
+SINK='alsa_output.pci-0000_00_1b.0.analog-stereo'
+
+error() {
+ notify-send "Special Keys Error" "$1"
}
voltoggle() {
- pactl set-sink-mute 0 toggle
- ... | bash |
d_bash_20136 | ---
+++
@@ -1,5 +1,6 @@
# setup ssh key
ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''
+sudo mkdir -p ~root/.ssh/
sudo touch ~root/.ssh/authorized_keys
cat ~/.ssh/id_rsa.pub | sudo tee -a ~root/.ssh/authorized_keys
ssh-keyscan -H 0.0.0.0 >> ~/.ssh/known_hosts | bash |
d_bash_20137 | ---
+++
@@ -3,8 +3,9 @@
alias v3-cats='(cd ~/workspace/cf-release/src/github.com/cloudfoundry/cf-acceptance-tests && CONFIG=$PWD/integration_config.json bin/test v3)'
# Bosh-lite setup
-alias qnd-deploy='(cd ~/workspace/cf-release && bosh --parallel 10 sync blobs && bosh create release --name cf --force && bosh u... | bash |
d_bash_20138 | ---
+++
@@ -1,4 +1,4 @@
-cd ../core/connector
+cd core/connector
export COCOON_ID=abc1
export COCOON_CODE_URL=https://github.com/ncodes/cocoon-example-01 | bash |
d_bash_20139 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/sh
-pg_dump --no-privileges --schema-only --no-owner --no-tablespaces catmaid -U catmaid_user | egrep -v '^--' | egrep -v '^ *$'
-
+pg_dump --no-privileges --schema-only --no-owner \
+ --no-tablespaces catmaid -U catmaid_user | \
+ egrep -v '^--' | \
+ egrep -v '^ *$' | \
+ s... | bash |
d_bash_20140 | ---
+++
@@ -2,6 +2,11 @@
#------ WRAP FILTERS IN XML ------#
for filename in ./filters/filter_*.py; do
+ filtername="${filename%.*}"
+ python2 python_filter_generator.py $filename "../build/$(basename "$filtername").xml"
+done
+# filters under development:
+for filename in ./filters/dev_*.py; do
filter... | bash |
d_bash_20141 | ---
+++
@@ -7,7 +7,7 @@
mkdir $d
-for i in $(seq 10000 10000 50000) ; do echo -- Size $i ; go test -benchtime $benchtime -bench . -- $i ; done > $d/results.txt 2>&1
+for i in $(seq 10000 10000 10000000) ; do echo -- Size $i ; go test -benchtime $benchtime -bench . -- $i ; done > $d/results.txt 2>&1
cd $d
ech... | bash |
d_bash_20142 | ---
+++
@@ -20,7 +20,7 @@
#
# Actually run tests
#
-nosetests -v /src --all-modules --with-doctest \
+nosetests -v ./src --all-modules --with-doctest \
--with-xunit --xunit-file=global_nosetests.xml
# Deactivates Anaconda | bash |
d_bash_20143 | ---
+++
@@ -33,4 +33,7 @@
echo -e "\n--- Installing Webtatic Repo ---\n"
sudo rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
+echo -e "\n--- Installing PHP 5.6 ---\n"
+sudo yum install php56w php56w-opcache php56w-mbstring php56w-xml php56w-intl -y
+ | bash |
d_bash_20144 | ---
+++
@@ -6,10 +6,10 @@
# Deploy a snapshot version only for master branch and jdk8
if [[ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]]; then
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]] && [[ "$VERSION" == *SNAPSHOT ]]; then
- sbt ++$TRAVIS_SCALA_VERSION "; test; publish";
+ ./sbt "; test; publish";
else
-... | bash |
d_bash_20145 | ---
+++
@@ -46,4 +46,5 @@
conda update -q conda
conda create -q -n test-environment python="${PYTHON_VERSION:-3}" $*
source activate test-environment
+conda update -y --all
pip install --upgrade pip | bash |
d_bash_20146 | ---
+++
@@ -3,8 +3,8 @@
HOMEDIR="$(dirname "$TRAVIS_BUILD_DIR")"
cd $HOMEDIR
-# OpenWhisk stuff
-git clone --depth 3 https://github.com/openwhisk/openwhisk.git
+# OpenWhisk clone to fixed directory location
+git clone --depth 3 https://github.com/apache/incubator-openwhisk.git openwhisk
# Build script for Trav... | bash |
d_bash_20147 | ---
+++
@@ -10,4 +10,4 @@
fi
echo "starting opentsdb"
-/opt/opentsdb/opentsdb-${TSDB_VERSION}/build/tsdb tsd --port=4242 --staticroot=/opt/opentsdb/opentsdb-${TSDB_VERSION}/build/staticroot --cachedir=/tmp --auto-metric
+/opt/opentsdb/opentsdb-${TSDB_VERSION}/build/tsdb tsd --port=4242 --config=/opt/opentsdb/open... | bash |
d_bash_20148 | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
cd $(dirname $0)
-tx pull -l de,el_GR,es,hu_HU,pt,ro,ru,sr,zh_CN,vi,th_TH,fa,fr
+tx pull -l de,el_GR,es,pt,ru,zh_CN,vi,th_TH,fa,fr
translations="translations/bisq-desktop.displaystringsproperties"
i18n="src/main/resources/i18n"
@@ -9,11 +9,8 @@
mv "$translations/de... | bash |
d_bash_20149 | ---
+++
@@ -9,7 +9,7 @@
./bin/run_management_command pombola_sayit_sync_pombola_to_popolo
./bin/run_management_command popolo_name_resolver_init
-./bin/run_management_command za_hansard_check_for_new_sources
+./bin/run_management_command za_hansard_check_for_new_sources_from_pmg
./bin/run_management_command za_h... | bash |
d_bash_20150 | ---
+++
@@ -16,8 +16,8 @@
# Report Code Coverage for TeamCity, using 'Service Messages',
# https://confluence.jetbrains.com/display/TCD8/How+To...#HowTo...-ImportcoverageresultsinTeamCity
# https://confluence.jetbrains.com/display/TCD8/Custom+Chart#CustomChart-DefaultStatisticsValuesProvidedbyTeamCity
-total_no_li... | bash |
d_bash_20151 | ---
+++
@@ -10,10 +10,10 @@
./gradlew build snapshot --scan --build-cache --configure-on-demand
- ./gradlew sonarqube srcclr \
- -Dsonar.login=$SONAR_TOKEN \
- -Dsonar.host.url=https://sonarqube.com \
- -Dsonar.organization=rahulsom-github
+# ./gradlew sonarqube srcclr ... | bash |
d_bash_20152 | ---
+++
@@ -10,7 +10,7 @@
# Scrape the webpages into a specific directory
echo "+ Scraping site"
-wget -P static_site -X "/data/search,/api,/search,/user,/feeds,/flag,/vote" --adjust-extension -p --convert-links --restrict-file-names=windows -m -e robots=off --wait .5 -x http://$RESERVE_SITE
+wget -P static_sit... | bash |
d_bash_20153 | ---
+++
@@ -19,5 +19,9 @@
mkdir -p ${BACKUP_DIR}
fi
+# Backup st2 and mistral logs
cp ${ST2_LOG_DIR}/*.log ${BACKUP_DIR}
cp ${MISTRAL_LOG_DIR}/mistral*.log ${BACKUP_DIR}
+
+# Capture any DB deadlocks
+sudo -u postgres psql -c "SELECT ka.query AS blocking, a.query AS blocked FROM pg_catalog.pg_locks bl JOIN... | bash |
d_bash_20154 | ---
+++
@@ -4,6 +4,7 @@
pyrus channel-discover pear.indeyets.ru
pyrus install indeyets/pake
echo "Pake is in `pyrus get bin_dir|tail -1`"
+pyrus info indeyets/pake files
# Install Midgard from OBS
sudo apt-get install -y dbus libgda-4.0-4 libgda-4.0-dev | bash |
d_bash_20155 | ---
+++
@@ -1,7 +1,8 @@
#!/bin/sh
-containers=$(docker ps | grep '\([3-9][0-9] minutes\|hour\|day\)')
+containers=$(sudo docker ps -a | grep '\([3-9][0-9] minutes\|hour\|day\|Exit\)')
if [ -n "$containers" ]; then
- docker ps | grep '\([3-9][0-9] minutes\|hour\|day\)' | awk '{print $1}' | xargs docker kill
+... | bash |
d_bash_20156 | ---
+++
@@ -12,23 +12,28 @@
echo "\nDelete the existing index."
curl -XDELETE "$ENDPOINT/site"
+sleep 1
echo "\nCreate the index again."
curl -X PUT $ENDPOINT/site -d '{ "number_of_shards" : 1, "number_of_replicas" : 0}'
+sleep 1
echo "\nInstall the settings, requires closing the index first."
curl -XPOST... | bash |
d_bash_20157 | ---
+++
@@ -15,13 +15,13 @@
egrep "^ .* function .*" | \
egrep "^ public" | \
sort | \
- perl -pe 's/^ public (.* )?function /Curl::/' | \
- tee -a "README.md"
+ perl -pe 's/^ public (.* )?function /Curl::/' \
+ >> "README.md"
egrep "^ .* function .*" "src/Curl/MultiCurl.php... | bash |
d_bash_20158 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-BASEDIR=$(dirname "$0")
+BASEDIR=$(dirname -- "$(readlink -f -- "${BASH_SOURCE}")")
mkdir -p $BASEDIR/logs
log_file=$(date "+%Y_%m_%d-%H_%M_%S") | bash |
d_bash_20159 | ---
+++
@@ -5,7 +5,7 @@
[ ! -e ../../config.sh ] && die "FRESteamWorks/config.sh is not set up!"
. ../../config.sh
-make -C ../../src wrapper
+make -C ../../src DEBUG=1 wrapper
cp ../../src/APIWrapper/APIWrapper NativeApps/Linux
"$FLEX_SDK/bin/amxmlc" -library-path+=../../lib/bin/FRESteamWorksLibLinux.swc \ | bash |
d_bash_20160 | ---
+++
@@ -2,4 +2,9 @@
set -e
-taskset -c "${EXECUTOR_NUMBER}" ./test.bash --setup-gopath
+opts=
+if [ "$1" = "--fast" ]; then
+ opts=--fast
+fi
+
+taskset -c "${EXECUTOR_NUMBER}" ./test.bash --setup-gopath $opts | bash |
d_bash_20161 | ---
+++
@@ -4,12 +4,12 @@
zle -N newtab
-bindkey '^[[A' up-line-or-search
-bindkey '^[[B' down-line-or-search
-bindkey '^[^[[C' forward-word
-bindkey '^[^[[D' backward-word
-bindkey '^[[5D' beginning-of-line
-bindkey '^[[5C' end-of-line
-bindkey '^[[3~' delete-char
-bindkey '^[^N' newtab
-bindkey '^?' backward-d... | bash |
d_bash_20162 | ---
+++
@@ -8,6 +8,8 @@
apt-get install -y --no-install-recommends \
git \
gcc \
+ mime-support \
+ libpcre3-dev \
libffi-dev \
libpq-dev \
libsasl2-dev \ | bash |
d_bash_20163 | ---
+++
@@ -30,5 +30,5 @@
echo "******************************************"
echo "Running: $RBENV_VERSION... This is gonna take a while, be patient"
echo "******************************************"
- `$RBENV_VERSION`
+ `rbenv install $RBENV_VERSION`
fi | bash |
d_bash_20164 | ---
+++
@@ -1,5 +1,8 @@
# Initialize completion
autoload -Uz compinit && compinit
+
+# Initialize editing command line
+autoload -U edit-command-line && zle -N edit-command-line
# Set automatic cd (typing directory name with no 'cd')
setopt autocd
@@ -29,6 +32,8 @@
# Undo
bindkey -a 'u' undo
bindkey -a '^R' ... | bash |
d_bash_20165 | ---
+++
@@ -1 +1,5 @@
-export EDITOR='subl'
+# Only set this if we haven't set $EDITOR up somewhere else previously.
+if [ "$EDITOR" == "" ] ; then
+ # Use sublime for my editor.
+ export EDITOR='subl'
+fi | bash |
d_bash_20166 | ---
+++
@@ -8,8 +8,8 @@
}
trap finish EXIT
+sudo rm -f .signing/secring.gpg
sudo rm -f .env
-mkdir .signing/
cp $SECRING_FILE .signing/secring.gpg
cp $ENV_FILE .env
if [ "$GIT_BRANCH" != "master" ]; then | bash |
d_bash_20167 | ---
+++
@@ -25,6 +25,7 @@
alias dbshell="python manage.py dbshell"
alias devrunserver="_runserver false"
alias runserver="_runserver true"
+alias rs="runserver"
shell() {
python manage.py debugsqlshell 2> /dev/null | bash |
d_bash_20168 | ---
+++
@@ -8,6 +8,11 @@
echo "Adding user to docker group"
sudo groupadd -f docker
sudo gpasswd -a $USER docker
+sudo newgrp docker
+
+echo "Configuring to use OverlayFS"
+mkdir -p /etc/systemd/system/docker.service.d
+printf "[Service]\nExecStart=\nExecStart=/usr/bin/docker daemon -H fd:// --storage-driver=overl... | bash |
d_bash_20169 | ---
+++
@@ -9,6 +9,9 @@
FXPROFILE=${USERPROFILE//\\/\/}/AppData/Roaming/Mozilla/Firefox/Profiles
PLUGEXT=*.xml
+
+# Change directory to the same level as this script
+cd `dirname "${0}"`
# Remove current plugins
rm ${PLUGEXT} | bash |
d_bash_20170 | ---
+++
@@ -20,6 +20,9 @@
ln -fs ../../mods-available/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini
ln -fs ../../mods-available/mcrypt.ini /etc/php5/cli/conf.d/20-mcrypt.ini
+# make sure that file permissions are ok
+chown www-data:www-data -R /var/www/*
+
source /etc/apache2/envvars
set -m | bash |
d_bash_20171 | ---
+++
@@ -19,6 +19,6 @@
# Make sure that there is no path from a known unsecure target
# to an SSL library
-[[ $(bazel query "somepath(//test/cpp/microbenchmarks:helpers, //external:libssl)" 2>/dev/null | wc -l) -eq 0 ]]
+test `bazel query "somepath(//test/cpp/microbenchmarks:helpers, //external:libssl)" 2>/dev... | bash |
d_bash_20172 | ---
+++
@@ -8,6 +8,7 @@
git fetch origin gh-pages:origin/gh-pages && git checkout origin/gh-pages -b gh-pages || git checkout --orphan gh-pages
git reset
ls | grep -v 'docs' | xargs rm -rf
+mv docs/CNAME .
mv docs/html/* .
rm -rf docs
git add * | bash |
d_bash_20173 | ---
+++
@@ -7,5 +7,6 @@
KEYSTORE_PATH=${KEYCLOAK_DIR}/standalone/configuration/certificates.keystore
CERT_PATH=/opt/enmasse/cert
+rm -f ${KEYSTORE_PATH}
openssl pkcs12 -export -passout pass:enmasse -in ${CERT_PATH}/tls.crt -inkey ${CERT_PATH}/tls.key -name "server" -out /tmp/certificates-keystore.p12
keytool -i... | bash |
d_bash_20174 | ---
+++
@@ -19,13 +19,18 @@
echo "Updating lockfiles"
yarn
-cd examples/node && yarn upgrade
+PACKAGE=`echo "$TRAVIS_PULL_REQUEST_BRANCH" | sed 's/[^-]*-\(.*\)/\1/' | sed 's/\(.*\)-[^-]*/\1/'`
+
+cd examples/node
+yarn list | grep $PACKAGE && yarn upgrade $PACKAGE
cd -
-cd examples/protractor && yarn upgrade
+... | bash |
d_bash_20175 | ---
+++
@@ -1,5 +1,7 @@
#!/bin/bash
set -o errexit
+
+export ROOT=${ROOT:-$HOME/local}
basepath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
| bash |
d_bash_20176 | ---
+++
@@ -9,8 +9,6 @@
source "$TMUX_POWERLINE_HOME/themes/default.sh"
source "$TMUX_POWERLINE_HOME/lib/muting.sh"
-source "$TMUX_POWERLINE_HOME/lib/text_marquee.sh"
-source "$TMUX_POWERLINE_HOME/lib/tmux_adapter.sh"
source "$TMUX_POWERLINE_HOME/lib/formatting.sh"
source "$TMUX_POWERLINE_HOME/lib/powerline.sh"... | bash |
d_bash_20177 | ---
+++
@@ -1,5 +1,15 @@
#!/bin/bash -x
set -ev
+
+# Install newer compiler to support C++11
+sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
+sudo apt-get -qq update
+sudo apt-get -qq install g++-5
+sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 50
+sudo update-alternatives --install /us... | bash |
d_bash_20178 | ---
+++
@@ -14,7 +14,7 @@
export no_proxy="127.0.0.1,localhost,10.135.127.35"
run_puppet() {
- puppet apply /etc/puppet/manifests/site.pp
+ puppet apply --logdest=syslog /etc/puppet/manifests/site.pp
}
if [ $rv -eq 0 ] | bash |
d_bash_20179 | ---
+++
@@ -11,3 +11,9 @@
cp ../CFC_WebApp/keys.json.sample keys.json
PYTHONPATH=.:../CFC_WebApp:../base python -m unittest discover -s tests -p Test*
popd
+pushd "$PWD"/base
+# find . -name \*.pyc | xargs rm
+cp ../CFC_WebApp/config.json config.json
+cp ../CFC_WebApp/keys.json.sample keys.json
+PYTHONPATH=.:../CF... | bash |
d_bash_20180 | ---
+++
@@ -14,6 +14,7 @@
inotifywait --event modify ~glp/QSync/dev/DOMOTICA/homeass/*yaml ~glp/QSync/dev/DOMOTICA/homeass/automations/*
cp ~glp/QSync/dev/DOMOTICA/homeass/*yaml /share/Container/homeass-config
cp ~glp/QSync/dev/DOMOTICA/homeass/automations/* /share/Container/homeass-config/automations
+ cp ... | bash |
d_bash_20181 | ---
+++
@@ -1,2 +1,5 @@
cc -I $PREFIX/include -L $PREFIX/lib test.c -lglpk -o test.out
+# Required on OS X to resolve @rpath/./libglpk.40.dylib
+# If this was a real program use install_name_tool to fix the linkage
+export LD_LIBRARY_PATH=$PREFIX/lib
./test.out | bash |
d_bash_20182 | ---
+++
@@ -2,7 +2,7 @@
echo "Normal"
echo "--------------------------------------------------"
-php tests/runtime.php
+php -d mbstring.func_overload=0 tests/runtime.php
if [ $? -ne 0 ]; then
echo "FAIL."
exit 1 | bash |
d_bash_20183 | ---
+++
@@ -27,16 +27,16 @@
cd cache
-if [[ -f google_appengine_1.9.28.zip ]]; then
+if [[ -f google_appengine_1.9.35.zip ]]; then
echo "App Engine SDK already downloaded. Doing nothing."
else
- wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.28.zip -nv
+ wget https://stora... | bash |
d_bash_20184 | ---
+++
@@ -1,7 +1,4 @@
#!/bin/sh
-
-git subtree add --prefix third_party/libhbase git@github.com:mapr/libhbase master --squash
-git subtree pull --prefix third_party/libhbase git@github.com:mapr/libhbase master --squash
cd third_party/libhbase
| bash |
d_bash_20185 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-./spark-ec2 --instance-type m4.xlarge --identity-file ../inreach-ml-batch/src/main/resources/spark-cluster.pem --key-pair spark-cluster --slaves 1 --region eu-west-1 --copy-aws-credentials --run-job /root/spark-ec2/runScoring.sh launch sparkScoring
+./spark-ec2 --instance-type m4... | bash |
d_bash_20186 | ---
+++
@@ -3,7 +3,7 @@
echo_do "brew: Installing AWS utils..."
BREW_FORMULAE="$(cat <<-EOF
-awscli
+awscli --build-from-source
EOF
)"
brew_install "${BREW_FORMULAE}" | bash |
d_bash_20187 | ---
+++
@@ -17,7 +17,7 @@
echo "### Install specific version"
cleanup
-v=0.6.16
+v=0.7.13
tfenv install ${v}
tfenv use ${v}
if ! check_version ${v}; then | bash |
d_bash_20188 | ---
+++
@@ -1,11 +1,45 @@
#!/bin/bash
-lscpu > /tmp/hdw_info.txt
-lshw -short >> /tmp/hdw_info.txt
-hwinfo --short >> /tmp/hdw_info.txt
-lspci >> /tmp/hdw_info.txt
-lsusb >> /tmp/hdw_info.txt
-lsblk >> /tmp/hdw_info.txt
-df >> /tmp/hdw_info.txt
-ip a l >> /tmp/hdw_info.txt
-ps aufx >> /tmp/hdw_info.txt
-systemctl st... | bash |
d_bash_20189 | ---
+++
@@ -8,6 +8,9 @@
# gnome tools
sudo pacman $param eog evince gnome-calculator gnome-tweak-tool gedit gucharmap nautilus gnome-mines
+
+# remote locations
+sudo pacman $param --asdeps gvfs-afc gvfs-smb gvfs-gphoto2 gvfs-mtp gvfs-goa gvfs-nfs gvfs-google
# Gnome maps (contains evolution and zeitgeist)
# ... | bash |
d_bash_20190 | ---
+++
@@ -1,6 +1,5 @@
-# set -eux -o pipefail
-
-set -x
+set -eux -o pipefail
+#set -ex
oauthtoken=`php bin/info.php "github.access_token"`
composer config -g github-oauth.github.com $oauthtoken
@@ -8,5 +7,6 @@
composerpath=`which composer`
php -d allow_url_fopen=1 $composerpath install
+mkdir autogen
php... | bash |
d_bash_20191 | ---
+++
@@ -30,4 +30,8 @@
exit 0
fi
echo "check_doxygen.sh: Doxygen errors or warnings; see doxygen.err"
+if [ "$USER" != "bradbell" ]
+then
+ exit 0
+fi
exit 1 | bash |
d_bash_20192 | ---
+++
@@ -1,5 +1,7 @@
set -e
set -x
+
+./manage.py migrate
if [[ $INTEGRATION_TARGET = '' ]]; then
py.test --cov-report term-missing --cov regparser | bash |
d_bash_20193 | ---
+++
@@ -3,5 +3,5 @@
if [ `hostname` = "desktop" ]; then
xrandr --output DP-0 --off --output DVI-D-0 --off --output DP-1 --off --output HDMI-0 --mode 2560x1440 --pos 0x0 --rotate normal
elif [ `hostname` = "deathstar" ]; then
- xrandr --output DP-0 --off --output DVI-D-0 --off --output DP-1 --off --outpu... | bash |
d_bash_20194 | ---
+++
@@ -7,9 +7,9 @@
rm ~/.birdseye_test.db || true
export BIRDSEYE_SERVER_RUNNING=true
-
+export BIRDSEYE_DB=sqlite:///$HOME/.birdseye_test.db
gunicorn -b 127.0.0.1:7777 birdseye.server:app &
-sleep 3
+sleep 1
set +e
| bash |
d_bash_20195 | ---
+++
@@ -10,7 +10,8 @@
session_path="${1}"
esac
- local session_name="${session_path##*/}"
+ local raw_session_name="${session_path##*/}"
+ local session_name="${raw_session_name//[.]/-}"
if tmux has-session -t="${session_name}" 2> /dev/null; then
tmux attach -t "${session_name}" | bash |
d_bash_20196 | ---
+++
@@ -1,6 +1,7 @@
set -e
CMAKE_BIN=cmake
if [ -z "$1" ]; then
+else
CMAKE_BIN=$1
fi
echo "DEBUG: CMake binary = $CMAKE_BIN" | bash |
d_bash_20197 | ---
+++
@@ -7,5 +7,6 @@
ansible-galaxy install goozbach.EPEL
ansible-galaxy install geerlingguy.nginx
+ansible-galaxy install bertvv.mariadb
ansible-playbook --inventory="localhost," -c local /provision/playbook.yml | bash |
d_bash_20198 | ---
+++
@@ -1,6 +1,8 @@
#!/bin/bash
set -e
+
+cd git*/tink
echo "========================================================= Running cmake"
cmake --version | bash |
d_bash_20199 | ---
+++
@@ -30,7 +30,7 @@
xset -b
# Remap caps lock to ctrl
-setxkbmap -layout us -option ctrl:nocaps
+xmodmap ~/.dotfiles/i3/Xmodmap
# Load system tray apps
nm-applet & | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.