document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_20300 | ---
+++
@@ -11,7 +11,7 @@
| xcpretty -c
xcodebuild test \
--project "Pay.xcodeproj" \
+-project "Buy.xcodeproj" \
-scheme "Pay" \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 7,OS=10.3' \ | bash |
d_bash_20301 | ---
+++
@@ -22,7 +22,7 @@
[ -d "$HOME/.npm-global" ] && export PATH="$HOME/.npm-global/bin:$PATH"
# Luarocks bin
-command -v luarocks >/dev/null 2>&1 && eval $(luarocks path)
+command -v luarocks >/dev/null 2>&1 && eval $(luarocks path --bin)
# User bin
[ -d "$HOME/bin" ] && export PATH="$HOME/bin:$PATH" | bash |
d_bash_20302 | ---
+++
@@ -9,4 +9,4 @@
echo 'Installing Node packages'
cd "$TRAVIS_BUILD_DIR/build"
-travis_retry npm install
+travis_retry npm ci | bash |
d_bash_20303 | ---
+++
@@ -28,7 +28,7 @@
function rename_with_hash {
if which md5sum
- then checksum=$(md5sum --quiet "$1")
+ then checksum=$(md5sum "$1" | cut -d " " -f 1)
else checksum=$(md5 -q "$1")
fi
fullname=$(basename "$1") | bash |
d_bash_20304 | ---
+++
@@ -9,6 +9,10 @@
FROM 0xffea/saucy-server-existdb-amd64
MAINTAINER David Höppner <0xffea@gmail.com>
+RUN export DEBIAN_FRONTEND=noninteractive
+RUN apt-get -qy install \
+ git
+
EXPOSE 3030
ADD https://raw.github.com/beijingren/dedalus-infrastructure/master/scripts/start-fuseki.sh /root/start-fuseki.... | bash |
d_bash_20305 | ---
+++
@@ -6,31 +6,28 @@
########## Variables
-dir=~/dotfiles # dotfiles directory
-olddir=~/dotfiles_old # old dotfiles backup directory
+dotfiles_dir=~/dotfiles
+backup_dir=~/dotfiles_old # old dotfiles backup directory
files="bashrc hgrc gitconfig vimrc vim zshrc o... | bash |
d_bash_20306 | ---
+++
@@ -9,8 +9,9 @@
echo $SIGNED_BY_TO_ROTATE | jq -r .[] | while read object; do
curl https://${CREDHUB_SERVER}/api/v1/bulk-regenerate \
-X POST \
- -H "authorization: bearer ${TOKEN}" \
+ -H "authorization: ${TOKEN}" \
-H 'content-type: application/json' \
- -d "{\"signed_by\": \"${object}\""
+ -d... | bash |
d_bash_20307 | ---
+++
@@ -1,2 +1,13 @@
#!/bin/sh
-xrandr --output VIRTUAL1 --off --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --off --output HDMI2 --off --output HDMI1 --off --output DP1-3 --off --output DP1-2 --mode 1920x1080 --pos 3840x0 --rotate normal --output DP1-1 --mode 1920x1080 --pos 19... | bash |
d_bash_20308 | ---
+++
@@ -1,6 +1,12 @@
#!/bin/sh
NAME=dynamo.cov
-lcov --quiet --base-directory . --directory . -c --include "*/dynamo/src/*" -o $NAME
+lcov --quiet --base-directory . --directory . -c -o $NAME
+lcov --quiet --remove $NAME "/usr*" -o $NAME
+lcov --quiet --remove $NAME "/build*" -o $NAME
+lcov --quiet --remove $NA... | bash |
d_bash_20309 | ---
+++
@@ -3,4 +3,8 @@
#Dependencies
apt-get install -y dpkg dpkg-dev fakeroot python3 python3-pip socat nginx php5-cli gcc-multilib
-pip3 install --upgrade .
+pip3 install --upgrade pip
+
+sudo apt uninstall python3-pip
+
+bash -c 'pip3 install --upgrade .' | bash |
d_bash_20310 | ---
+++
@@ -12,8 +12,5 @@
sudo apt-get install -y postgresql
sudo apt-get install -y python-psycopg2
-# Install npm
-sudo apt-get install -y npm
-
# Install less compiler
-sudo npm install -g less
+sudo apt-get install -y node-less | bash |
d_bash_20311 | ---
+++
@@ -8,7 +8,7 @@
fi
if [ -f "/etc/debian_version" ]; then
- dpkg -s libc6 | grep Version | egrep -q '2.19-18+deb8u3|2.19-0ubuntu6.7' && echo -n "OK" || echo -n "FAIL"
+ dpkg -s libc6 | grep Version | egrep -q '2.19-18\+deb8u3|2.19-0ubuntu6.7' && echo -n "OK" || echo -n "FAIL"
exit
fi
| bash |
d_bash_20312 | ---
+++
@@ -1,7 +1,12 @@
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+CMAKEOPTS=
+
+if [ "$1" != "" ]; then
+ CMAKEOPTS="-G $1"
+fi
mkdir -p $DIR/build
cd $DIR/build
-cmake ..
+cmake $CMAKEOPTS .. | bash |
d_bash_20313 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
version=$(git describe --dirty)
-rm -f $(ls | grep "\.mmip$")
+rm $(ls . | grep "\.mmip$")
"/c/Program Files/7-Zip/7z.exe" a -tzip -- AutoPlayer-$version.mmip $(find . -type f -name "*.vbs" -o -name "*.ini") "changelog.md" | bash |
d_bash_20314 | ---
+++
@@ -16,4 +16,4 @@
gpg2 --list-secret-keys --with-colons --fingerprint | grep fpr | cut -c 13-52 | xargs -n1 gpg2 --batch --delete-secret-key
rm "${LATEST_PROD_DUMP}"
-psql --variable --single-transaction bcrypt_password="'$(${VIRTUALENV_ROOT}/bin/python ./scripts/generate-bcrypt-hashed-password.py Passwor... | bash |
d_bash_20315 | ---
+++
@@ -35,7 +35,7 @@
rm -rf ${TARGET}/ecdsa/cryptol-2-spec
if [ "${OS}" == "Windows_NT" ]; then
- zip -r ${TARGET}-${EXEDIR}.zip ${TARGET}
+ 7za.exe a -tzip ${TARGET}-${EXEDIR}.zip -r ${TARGET}
echo "Release package is ${TARGET}-${EXEDIR}.zip"
else
tar cvfz ${TARGET}-${EXEDIR}.tar.gz ${TARGET} | bash |
d_bash_20316 | ---
+++
@@ -6,7 +6,6 @@
ulimit -c unlimited; # Set core dump size as Ubuntu 14.04 lacks prlimit.
ulimit -a # Display all ulimit settings for transparency.
-cd ../../
pushd tools
# Ensure that meteor/tools has no TypeScript errors.
../meteor npx tsc --noEmit | bash |
d_bash_20317 | ---
+++
@@ -2,5 +2,5 @@
set -e
-java ${JVM_OPTS:--Xmx256m} -jar /opt/prometheus/jmx_prometheus_httpserver-*.jar $JMX_EXPORTER_PORT "$@"
+java ${JVM_OPTS:--Xmx256m} -jar /opt/prometheus/jmx_prometheus_httpserver.jar $JMX_EXPORTER_PORT "$@"
| bash |
d_bash_20318 | ---
+++
@@ -4,9 +4,14 @@
# Make a resumable local backup of our content using `rsync`:
#
+TIMESTAMP=$(date -u +"%Y-%m-%dT%H-%M-%SZ")
+echo "Timestamp: $TIMESTAMP"
+
mkdir -p ~/zoomhub-backup
+ssh -t admin@zoomhub.net \
+ "cd /mnt/datavolume/zoomhub/data/; sqlite3 zoomhub.sqlite3 \".backup 'zoomhub-backup-$TIMES... | bash |
d_bash_20319 | ---
+++
@@ -12,3 +12,4 @@
chown -R deployer:deployer /opt/front/log
chown -R deployer:deployer /var/log/front
chown -R deployer:deployer /opt/front/tmp
+chgrp deployer /etc/front | bash |
d_bash_20320 | ---
+++
@@ -1,18 +1,18 @@
#!/bin/sh
# Check if URL is set
-if [ -z "$URL" ]; then
+if [ -z "${URL}" ]; then
exit 1
fi
# Check if INTERVAL_TIME is set
-if [ -z "$INTERVAL_TIME" ]; then
+if [ -z "${INTERVAL_TIME}" ]; then
INTERVAL_TIME=300
fi
# Infinite loop
while :
do
- curl $CURL_PARAM $URL
- sl... | bash |
d_bash_20321 | ---
+++
@@ -1,6 +1,6 @@
# Editing
-if ! type emacsclient > /dev/null; then
+if type emacsclient > /dev/null; then
EDITOR="emacsclient"
else
EDITOR="emacs" | bash |
d_bash_20322 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
HOSTNAME=$(hostname -s)
@@ -12,23 +12,30 @@
sudo killall ssh-agent
echo ""
-echo "Cloning the .ssh-private repo to ~/.ssh/private..."
if [ ! -d ~/.ssh/private ]; then
+ echo "cloning .ssh-private"
export GIT_SSH_COMMAND="ssh -i ${HOME}/.ssh/id_rsa.${HO... | bash |
d_bash_20323 | ---
+++
@@ -4,8 +4,8 @@
# License: GPL-3
# Website: https://github.com/tataranovich/tvheadend-iptv-damavik
-TVGUIDE_URL='http://www.vipiko.tv/get?cur-xtv-tgz'
-TVGUIDE_LOCAL="$HOME/vipiko.tv.tgz"
+TVGUIDE_URL='http://www.teleguide.info/download/new3/xmltv.xml.gz'
+TVGUIDE_LOCAL="$HOME/teleguide.info.xml.gz"
if... | bash |
d_bash_20324 | ---
+++
@@ -1,9 +1,11 @@
# Completions
# Lunchy
-LUNCHY_DIR=$(dirname `gem which lunchy`)/../extras
-if [ -f $LUNCHY_DIR/lunchy-completion.zsh ]; then
- . $LUNCHY_DIR/lunchy-completion.zsh
+if gem which lunchy &> /dev/null; then
+ LUNCHY_DIR=$(dirname `gem which lunchy`)/../extras
+ if [ -f $LUNCHY_DIR/l... | bash |
d_bash_20325 | ---
+++
@@ -26,6 +26,7 @@
"--jscomp_error=invalidCasts" \
"--jscomp_error=missingProperties" \
"--jscomp_off=internetExplorerChecks" \
+ "--compilation_level=WHITESPACE_ONLY" \
)
for js_file in `cat $DEPS_FILE`; do | bash |
d_bash_20326 | ---
+++
@@ -9,5 +9,7 @@
setopt long_list_jobs
## pager
-export PAGER="less -R"
+export PAGER="less"
+export LESS="-R"
+
export LC_CTYPE=$LANG | bash |
d_bash_20327 | ---
+++
@@ -26,11 +26,18 @@
# isolate each testcase inside its own network namespace. Since
# MGS_NETNS_ACTIVE is used to track status, there's no harm in calling
# it multiple times (e.g. in the test-* script and runtests).
+#
+# Note that once the network is up, the reexec is wrapped in another
+# user namespace... | bash |
d_bash_20328 | ---
+++
@@ -9,5 +9,5 @@
sudo yum install -y m4 git gcc44-c++
else
- pkg install -y wget git gcc m4 automake
+ pkg install -y wget git gcc m4
fi | bash |
d_bash_20329 | ---
+++
@@ -16,10 +16,7 @@
$binSED -i -e 's/config\.section\./\}\'$'\nconfig\.section\./g' $tmpFile;
# remove first line
- intLines=$( wc -l $tmpFile | awk '{ print $1}' );
- let "intLines=$intLines - 1";
- tail -n $intLines $tmpFile > $tmpFile-2;
- mv -f $tmpFile-2 $tmpFile;
+ $binSED -i -e '1d' $tmpFile;
... | bash |
d_bash_20330 | ---
+++
@@ -2,7 +2,7 @@
shift
> ${MC_LOG_DIR}/mcstored.out.${SERVERTYPE}
-MAX_RETRIES=20
+MAX_RETRIES=200
CURRENT_RETRY=0
if [ "${SERVERTYPE}" = "unit" ]; then
MAX_RETRIES=3 | bash |
d_bash_20331 | ---
+++
@@ -13,5 +13,6 @@
scripts/electron-rebuild.sh
./node_modules/.bin/build \
+ --dist \
--platform=${PLATFORM} \
--arch=${ARCH} | bash |
d_bash_20332 | ---
+++
@@ -1,4 +1,7 @@
+# PHP 7.0
+export PATH="$(brew --prefix php@7.0)/bin:$PATH"
+
# PHP 7.1
-export PATH="$(brew --prefix php@7.1)/bin:$PATH"
+# export PATH="$(brew --prefix php@7.1)/bin:$PATH"
export PATH="./vendor/bin:$PATH" | bash |
d_bash_20333 | ---
+++
@@ -15,7 +15,7 @@
# no version number found
test $revision || revision=UNKNOWN
-test "$3" && revision=$revision-$3
+test -n "$3" && revision=$revision-$3
NEW_REVISION="#define FFMPEG_VERSION \"$revision\""
OLD_REVISION=`cat version.h 2> /dev/null` | bash |
d_bash_20334 | ---
+++
@@ -2,7 +2,7 @@
if [ $# -eq 0 ]; then
echo "No arguments supplied."
- echo "Usage: $ verify_installation.sh <projectName>"
+ echo "Usage: verify_installation.sh <project name>"
exit 1
fi
@@ -10,6 +10,7 @@
projectPath=/var/www/html/$projectName
if [ ! -f $projectPath/index.html ] ||
+ [ ! -f $pro... | bash |
d_bash_20335 | ---
+++
@@ -4,5 +4,5 @@
if [ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then
openssl aes-256-cbc -K $encrypted_363c33d4ecac_key -iv $encrypted_363c33d4ecac_iv -in travis-ci/codesigning.asc.enc -out travis-ci/signingkey.asc -d
- gpg --yes --fast-import travis-ci/signingkey.asc
+... | bash |
d_bash_20336 | ---
+++
@@ -13,8 +13,10 @@
for entry in "$PAGE_DIRECTORY"/*; do
item=$(echo "${entry}" | sed 's/.*\///') # getting the name of the file or directory
if [[ -d ${entry} ]]; then # if it is a directory
+ echo "aws s3 cp "./${item}" "${S3_BUCKET}/${item}/" --recursive --region eu-west-1"
aws... | bash |
d_bash_20337 | ---
+++
@@ -4,3 +4,4 @@
if [ -a ${HOME}/.inputrc ]; then mv ${HOME}/.inputrc ${BACKUPDIR}/.inputrc.bak; fi;
if [ -a ${HOME}/.bashrc ]; then mv ${HOME}/.bashrc ${BACKUPDIR}/.bashrc.bak; fi;
if [ -a ${HOME}/.bash_profile ]; then mv ${HOME}/.bash_profile ${BACKUPDIR}/.bash_profile.bak; fi;
+if [ -a ${HOME}/.bash_comp... | bash |
d_bash_20338 | ---
+++
@@ -6,6 +6,11 @@
working_dir=`dirname $0`
cd $working_dir
+
+if pwd | grep ' ' ; then
+ echo "Media Cloud cannot be installed in a file path with spaces in its name"
+ exit 1
+fi
if [ `uname` == 'Darwin' ]; then
# On OS X, these modules get lost in the process for some reason | bash |
d_bash_20339 | ---
+++
@@ -4,7 +4,10 @@
git reset --hard
python3.3 build/replace_versions.py
-sed -i 's/\$(CRYPTOPP_LIBS)/\/usr\/local\/lib\/libcryptopp.a/g' Makefile.am_server
+if [ "x$STATIC_CRYPTOPP" != "x" ]
+then
+ sed -i 's/\$(CRYPTOPP_LIBS)/\/usr\/local\/lib\/libcryptopp.a/g' Makefile.am_server
+fi
wget http://buildse... | bash |
d_bash_20340 | ---
+++
@@ -8,4 +8,4 @@
test -z "$(gofmt -l -w . | tee /dev/stderr)"
echo "running go vet..."
-godep go vet ./...
+godep go vet $(go list ./... | grep -v /vendor/) | bash |
d_bash_20341 | ---
+++
@@ -3,18 +3,10 @@
# update package index
apt-get update -y
-# non-required dependencies
-#apt-get install -y liblapack-dev
-# apt-get install -y libatlas-base-dev
-# apt-get install -y libfreetype6-dev
-# apt-get install -y pkg-config
-# apt-get install -y libpq-dev
-# apt-get install -y build-essential
-... | bash |
d_bash_20342 | ---
+++
@@ -7,11 +7,20 @@
local commandname="CHECK"
local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
-# Create directories for the script and console logs
-if [ ! -d "${scriptlogdir}" ]||[ ! -d "${consolelogdir}" ]&&[ "${gamename}" != "TeamSpeak 3" ]; then
+fn_check_logs(){
fn_print_dots... | bash |
d_bash_20343 | ---
+++
@@ -19,6 +19,6 @@
if [[ ! -z "$build_image_repository" ]]; then
echo "~~~ :docker: Pushing image to $build_image_repository"
- plugin_prompt_and_must_run docker push "$TAG"
- plugin_prompt_and_must_run buildkite-agent meta-data set "$(build_meta_data_image_tag_key "$build_service_name")" "$TAG"
+ plu... | bash |
d_bash_20344 | ---
+++
@@ -5,7 +5,7 @@
alias -- -='cd -'
alias g=git
-alias gr="cd $(git r)"
+alias gr='cd $(git r)'
alias v=vim
alias df='cd ~/dotfiles' | bash |
d_bash_20345 | ---
+++
@@ -2,5 +2,5 @@
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-brew install fish caskroom/cask/brew-cask git python ruby scala sbt giter8 git-extras vim maven wget jq dos2unix p7zip unrar tree
+brew install fish caskroom/cask/brew-cask git python ruby scala sbt... | bash |
d_bash_20346 | ---
+++
@@ -6,7 +6,7 @@
export SLIC3R_STATIC=1
export BOOST_DIR=/usr/local
-perl ./Build.PL
+#perl ./Build.PL
# Only recompile Wx if it's not already there
if !(perl -MWx -e1 2> /dev/null); then
@@ -15,7 +15,7 @@
CXX="clang++ -mmacosx-version-min=10.12" \
CPPFLAGS="-mmacosx-version-min=10.12... | bash |
d_bash_20347 | ---
+++
@@ -18,7 +18,7 @@
# have to do for now. TODO: write something to detect the implementation of
# iconv.
case `uname` in
-OpenBSD|Darwin|*)
+OpenBSD|Darwin)
# Older GNU iconv.
alias utf_to_ascii="iconv -f utf-8 -t ascii --unicode-subst='?'"
;; | bash |
d_bash_20348 | ---
+++
@@ -1,4 +1,15 @@
#!/bin/sh
+
+
+LINK=$(readlink -f "$0");
+
+if [ -z $LINK ]; then
+ DIR=$PWD
+else
+ DIR=$(dirname $LINK);
+fi
+
+cd $DIR
if [ -z $LETSENCRYPT_BASE_DIR ]; then
@@ -9,12 +20,14 @@
source ./.env
if [ -z $LETSENCRYPT_BASE_DIR ]; then
- LETSENCRYPT_BASE_DIR=$(pwd)
+ ... | bash |
d_bash_20349 | ---
+++
@@ -20,6 +20,11 @@
then alias vless=/usr/share/vim/vim80/macros/less.sh
fi
+if [ "`uname`" = Darwin ]
+then alias cp='cp -v' mv='mv -v' rm='rm -v'
+else alias cp='cp --verbose' mv='mv --verbose' rm='rm --verbose'
+fi
+
source_maybe() {
if [ -f "$1" ]
then . "$1" | bash |
d_bash_20350 | ---
+++
@@ -1,2 +1,2 @@
# add rbenv's bin and shims directories to ${PATH}.
-export PATH=${PATH}:${HOME}/.rbenv/bin:${HOME}/.rbenv/shims
+export PATH=${HOME}/.rbenv/bin:${HOME}/.rbenv/shims:${PATH} | bash |
d_bash_20351 | ---
+++
@@ -7,7 +7,7 @@
git rm -r --cached .
>.gitignore
-echo "# Exceppt Javadoc" >>.gitignore
+echo "# Except Javadoc" >>.gitignore
echo "site/*" >>.gitignore
cat site/projects.txt | while read project | bash |
d_bash_20352 | ---
+++
@@ -8,11 +8,13 @@
}
update_formula() {
- UPDATED_SHA256=$(openssl sha -sha256 dist/raiden-${TRAVIS_TAG}-macOS.zip)
+ UPDATED_SHA256=$(openssl sha -sha256 ./dist/raiden-${TRAVIS_TAG}-macOS.zip)
FORMULA_FILE="./homebrew-raiden/raiden.rb"
- sed -i "s/[0-9]\.[0-9]\.[0-9]/${TRAVIS_TAG/v/}/g" $F... | bash |
d_bash_20353 | ---
+++
@@ -19,5 +19,9 @@
docker pull $(grep FROM Dockerfile | sed s/FROM//)
docker build -t "$BUILD_TAG:$ghprbActualCommit" .
# lots more Dockerfile changes needed to improve this.
-docker run --rm "$BUILD_TAG:$ghprbActualCommit"
-docker rmi "$BUILD_TAG:$ghprbActualCommit"
+docker run --name "$BUILD_TAG-$ghprbAct... | bash |
d_bash_20354 | ---
+++
@@ -16,9 +16,9 @@
depfile=${source}.d
fi
-echo -n "${target}: " >$depfile
+echo "${target}: \c" >$depfile
for d in $DEPS;do
- echo -n " $d" >>$depfile
+ echo " $d\c" >>$depfile
done
echo>>$depfile;echo>>$depfile
| bash |
d_bash_20355 | ---
+++
@@ -10,7 +10,7 @@
EQUATORIALGUINEA=$(egrep -i "$KEYWORDS_EQUATORIALGUINEA" "$NEWPAGES")
- categorize "EQUATORIALGUINEA" "$NEWPAGES"
+ categorize "EQUATORIALGUINEA" "Equatorial Guinea"
debug_end "Equatorial Guinea"
| bash |
d_bash_20356 | ---
+++
@@ -8,7 +8,7 @@
echo '<small>'
echo '<img class="footer" src="rootlogo_s.gif" alt="root"/></a>'
# Doxygen unconditionally adds a space in front of $DOXYGEN_ROOT_VERSION
-echo 'ROOT'$DOXYGEN_ROOT_VERSION' - Reference Guide Generated on $datetime using Doxygen '`doxygen --version`'.'
+echo 'ROOT'$DOXYGEN_ROO... | bash |
d_bash_20357 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
-python c:/utah/opt/Python27/Scripts/scons.py custom=custom-mingw.py buildLuaWrapper=1 buildPythonWrapper=1 usePortMIDI=1 useJack=0 buildCsoundVST=1 buildvst4cs=1 buildInterfaces=1 buildCsoundAC=1 buildJavaWrapper=1 useOSC=1 buildPythonOpcodes=1 buildLuaOpcodes=1 buildLoris=0 buil... | bash |
d_bash_20358 | ---
+++
@@ -2,3 +2,5 @@
export EDITOR=vim
export VISUAL=vim
+
+export PYTHONPATH="${PYTHONPATH}:/home/musicnate/Documents/scripts/" | bash |
d_bash_20359 | ---
+++
@@ -2,22 +2,6 @@
set -e
set -o pipefail
-
-if [[ ${PLATFORM} == "android" ]]; then
-
- # Install android ndk
- echo "Cloning mindk..."
- git clone --quiet --depth 1 --branch deploy-all-arch https://github.com/tangrams/mindk.git
- export ANDROID_NDK=$PWD/mindk/android-ndk-r10e
- echo "Done."... | bash |
d_bash_20360 | ---
+++
@@ -1,6 +1,9 @@
#!/usr/bin/env bash
# Copyright (c) 2015 Eivind Arvesen. All Rights Reserved.
+
+# for zsh compatibility
+SHUNIT_PARENT=$0
# Make prm as normally run available
prm() {
@@ -39,11 +42,6 @@
'test' "`return_error 1 'test'`"
}
-# for zsh compatibility
-if [[ $(basename "$SHELL")... | bash |
d_bash_20361 | ---
+++
@@ -1,8 +1,8 @@
#!/usr/bin/env zsh
set -A base \
- git git-extras willgit growlnotify hub jsl ctags lorem graphviz postgresql \
- mongodb redis memcached node rlwrap couchdb subversion wget tree
+ git git-extras willgit git-flow growlnotify hub jsl ctags lorem graphviz \
+ postgresql mongodb redis mem... | bash |
d_bash_20362 | ---
+++
@@ -6,6 +6,15 @@
echo "This should be run within the container";
exit 0;
fi
+
+sudo yum -y update;
+
+rm -rf ~/tripleo-quickstart;
+rm -rf ~/.quickstart ;
+rm -rf ~/.ansible
+rm -rf ~/.ara
+rm -rf ~/.novaclient
+rm -rf ~/.pki
# We want the root user to have the same keys as us.
if [ ! -f ~/.ssh... | bash |
d_bash_20363 | ---
+++
@@ -4,9 +4,10 @@
gulp
git clone --depth 1 git@github.com:penneys/penneys.github.io.git
-cp -r dist/* penneys.github.io/
cd penneys.github.io
+git rm -rf *
+cp -r ../dist/* .
git add .
git commit -am "Updated the website"
git push | bash |
d_bash_20364 | ---
+++
@@ -1,3 +1,8 @@
# Configure global gitignore.
[[ ! -e "${HOME}/.gitignore" ]] && ln -vs "${DOT_STAR_ROOT}/git/.gitignore" "${HOME}"
git config --global core.excludesfile "~/.gitignore"
+
+# Configure vimrc.
+if [ ! -e "${HOME}/.vimrc" ]; then
+ ln -s -v "${DOT_STAR_ROOT}/vim/.vimrc" "${HOME}"
+fi | bash |
d_bash_20365 | ---
+++
@@ -5,8 +5,12 @@
#to disable interactive user interaction like prompts in terminal (an default value is always chosen)
export DEEP_NO_INTERACTION=1
+echo "copying file"
+
#copy deeploy.json from deeploy.example.json
-cp ${__SRC_PATH}deeploy.example.json ${__SRC_PATH}deeploy.json
+cp ${__SRC_PATH}"deeploy... | bash |
d_bash_20366 | ---
+++
@@ -9,7 +9,7 @@
mkdir -p "${repo_path}"
git clone "git@${host}:${username}/${repository}" "${repo_path}"
- echo "layout go" > ".envrc"
+ echo "layout go" > "${repository}/.envrc"
}
main $@ | bash |
d_bash_20367 | ---
+++
@@ -15,11 +15,15 @@
if [ "$prev" == pip ]; then
# Complete common pip commands when "pip" is given
COMPREPLY=( $(compgen -W "list install uninstall freeze" -- $cur) )
- elif [ "$second" == freeze -a "$prev" == '>' ]; then
- # Complete filenames when "pip freeze" command is giv... | bash |
d_bash_20368 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
pushd $(dirname $0) > /dev/null
| bash |
d_bash_20369 | ---
+++
@@ -1,31 +1,40 @@
-if [ $# -eq 0 ]
- then
+#!/bin/bash
+if [ $# -eq 0 ]; then
echo "Usage: ./roller.sh <role name>"
exit 1
fi
-if [ -d roles/$1 ]
- then
+if [ -d ../roles/$1 ]; then
echo "[-] Directory already exists!"
exit 1
fi
echo "[*] Creating folders"
-mkdir -p roles/$1/tasks... | bash |
d_bash_20370 | ---
+++
@@ -5,5 +5,10 @@
set -o pipefail
echo ">>> Registering private docker registry: boot.dcos:5000"
-sed -i -e "s/OPTIONS='/OPTIONS='--insecure-registry boot.dcos:5000 /" /etc/sysconfig/docker
+sed -i -e '/^ExecStart=/ s/$/ --insecure-registry=boot.dcos:5000/' /usr/lib/systemd/system/docker.service
+
+echo ">... | bash |
d_bash_20371 | ---
+++
@@ -5,6 +5,7 @@
wget -O elasticsearch.tar.gz https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ES_VERSION.tar.gz
tar xfv elasticsearch.tar.gz
mv elasticsearch-$ES_VERSION elasticsearch-server
+rm elasticsearch.tar.gz
./elasticsearch-server/bin/plugin --install mobz/elasticsea... | bash |
d_bash_20372 | ---
+++
@@ -5,7 +5,7 @@
#ZSH_THEME="agnoster"
ZSH_THEME="powerlevel9k/powerlevel9k"
-plugins=(git adb colored-man-pages jump alias-tips zsh-syntax-highlighting sublime atom)
+plugins=(git adb colored-man-pages jump zsh-syntax-highlighting sublime)
DEFAULT_USER=$(whoami)
| bash |
d_bash_20373 | ---
+++
@@ -9,11 +9,21 @@
export PAGER="less"
export LESS="-R"
-export LC_CTYPE=$LANG
-
## super user alias
alias _='sudo'
alias please='sudo'
## more intelligent acking for ubuntu users
alias afind='ack-grep -il'
+
+## how to interpret text characters
+if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then # only ... | bash |
d_bash_20374 | ---
+++
@@ -24,7 +24,7 @@
SED="sed -i.bak -r -e"
fi
-PROVIDER_URL="https:\/\/github.com\/terraform-providers\/terraform-provider-google"
+PROVIDER_URL="https:\/\/github.com\/terraform-providers\/terraform-provider-google\/issues"
$SED "s/GH-([0-9]+)/\[#\1\]\($PROVIDER_URL\/\1\)/g" -e 's/\[\[#(.+)([0-9])\)]$/... | bash |
d_bash_20375 | ---
+++
@@ -7,7 +7,7 @@
eval $(/container/scripts/get-version-env.sh)
fi
-/container/scripts/install-rpms.sh -a noarch --nodeps cockpit-shell-
+/container/scripts/install-rpms.sh -a noarch --nodeps cockpit-bridge- cockpit-shell-
/container/scripts/install-rpms.sh cockpit-ws-
/container/scripts/install-rpms.... | bash |
d_bash_20376 | ---
+++
@@ -13,7 +13,7 @@
# TODO remove sudo once socket permissions are set with cilium group
cat <<EOF | sudo cilium -D policy import -
{
- "name": "io.cilium",
+ "name": "root",
"rules": [{
"coverage": ["reserved:world"],
"allow": ["k8s:io.cilium.k8s.k8s-... | bash |
d_bash_20377 | ---
+++
@@ -5,13 +5,16 @@
GRAMMAR="Solidity"
START_RULE="sourceUnit"
TEST_FILE="test.sol"
-ERROR_PATTERN="(mismatched|extraneous)"
+ERROR_PATTERN="mismatched|extraneous"
if [ ! -e "$ANTLR_JAR" ]; then
curl http://www.antlr.org/download/antlr-4.7-complete.jar -o "$ANTLR_JAR"
fi
-java -jar $ANTLR_JAR Solidi... | bash |
d_bash_20378 | ---
+++
@@ -7,7 +7,7 @@
atom-material-ui atom-material-syntax atom-material-syntax-dark file-icons \
tool-bar tool-bar-main \
docblockr linter \
- autocomplete-clang linter-clang switch-header-source \
+ autocomplete-clang linter-clang switch-header-source language-c \
swift-debugger languag... | bash |
d_bash_20379 | ---
+++
@@ -3,8 +3,14 @@
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
-export EC2_PRIVATE_KEY="$(/bin/ls "$HOME"/.ec2/pk-*.pem | /usr/bin/head -1)"
-export EC2_CERT="$(/bin/ls "$HOME"/.ec2/cert-*.pem | /usr/bin/head -1)"
+# Set EC2 vars if keys are present
+if ls "$HOME"/.ec2/... | bash |
d_bash_20380 | ---
+++
@@ -13,7 +13,7 @@
echo "Virtual environment updated"
echo "Updating Python dependencies ..."
-pip install --user twine
+pip install --user setuptools==41.6.0 twine==1.15.0 wheel==0.33.6
echo "Python dependencies updated"
echo "Updating Node dependencies ..." | bash |
d_bash_20381 | ---
+++
@@ -15,6 +15,7 @@
alias glrp='glr && gp'
alias gph='git push heroku HEAD'
alias gd='git diff'
+alias gdc='git diff --cached'
alias gc='git commit'
alias gca='git commit -a'
alias gcm='git commit --amend' | bash |
d_bash_20382 | ---
+++
@@ -20,7 +20,7 @@
export EMAIL_PORT="${SMTP_PORT_25_TCP_PORT}"
# MYSQL SERVICE
-export DATABASE_URL="mysql://${DB_USER}:${DB_PASS}@${MARIADB_PORT_3306_TCP_ADDR}:${MARIADB_PORT_3306_TCP_PORT}/${DB_NAME}"
+export DATABASE_URL="mysql://${DB_USER}:${DB_PASS}@${DB_HOST-$MARIADB_PORT_3306_TCP_ADDR}:${DB_PORT-$M... | bash |
d_bash_20383 | ---
+++
@@ -9,11 +9,11 @@
# Build and start container
docker build -t $PROJECT_NAME:production .
-docker stop $(docker ps -q --filter ancestor=$PROJECT_NAME:production )
-docker run --detach --restart always -p 127.0.0.1:5000:5000 $PROJECT_NAME:production
+docker stop $PROJECT_NAME || echo
+docker container prune... | bash |
d_bash_20384 | ---
+++
@@ -4,6 +4,7 @@
SCRIPT_DIR="$(dirname "$0")"
-export KUBECONFIG="${KUBECONFIG}:${SCRIPT_DIR}/../kubeconfig"
+export KUBECONFIG="$(realpath ${SCRIPT_DIR}/../kubeconfig)"
+
kubectl config use-context vagrant-multi
kubectl cluster-info | bash |
d_bash_20385 | ---
+++
@@ -6,7 +6,7 @@
set -ev
# Fetch and build updated version of CMake from source.
-wget https://cmake.org/files/v3.4/cmake-3.4.1.tar.gz
+wget https://cmake.org/files/v3.4/cmake-3.4.1.tar.gz --no-check-certificate
tar -xzvf cmake-3.4.1.tar.gz
cd cmake-3.4.1
./bootstrap | bash |
d_bash_20386 | ---
+++
@@ -5,4 +5,4 @@
tools_path=${tools_path:-$(pwd)/../../../debug/config/common/tests/}
root_path=${root_path:-$(pwd)}
-source ${tools_path}/tools/run_tests.sh --concurrency 1
+source ${tools_path}/tools/run_tests.sh --concurrency 1 $@ | bash |
d_bash_20387 | ---
+++
@@ -12,7 +12,7 @@
for file in "$@"; do
ec_file="${file##**/platform/ec/}"
case "${ec_file}" in
- baseboard/*|board/*|chip/*|common/fpsensor/*|test/*|util/*|zephyr/*) ;;
+ baseboard/*|board/*|chip/*|*fpsensor*|test/*|util/*|zephyr/*) ;;
**.c)
if ! grep -q -F "\${PLATFORM_EC}/${ec_file}... | bash |
d_bash_20388 | ---
+++
@@ -5,6 +5,6 @@
bundle exec rake
echo "Running sinatra-contrib tests..."
-cd sinatra-contrib
+cd $TRAVIS_BUILD_DIR/sinatra-contrib
bundle install --jobs=3 --retry=3
bundle exec rake | bash |
d_bash_20389 | ---
+++
@@ -12,7 +12,7 @@
fi
done
if [ -z $DATA_DIR_SET ]; then
- echo "It is recommended to start vscode as a normal user. To run as root, you must specify an alternate user data directory with the --user-data-dir argument." 1>&2
+ echo "You are trying to start vscode as a super user which is not recommende... | bash |
d_bash_20390 | ---
+++
@@ -27,6 +27,8 @@
chmod a+x /parse-cloud-code/hooks/post-receive
popd
+# Allow update /parse/cloud via git
+sed -i 's#"start": "./bin/parse-server"#"start": "nodemon --watch /parse/cloud ./bin/parse-server"#' package.json
+
npm run build
-
npm start -- --appId $APP_ID --masterKey $MASTER_KEY --serverURL... | bash |
d_bash_20391 | ---
+++
@@ -6,5 +6,5 @@
fi
if [[ "$SHELL" == *bash* ]]; then
- complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh
+ complete -W "$(echo $(cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed 's/,.*//g' | uniq | grep -v "\["))" ssh
fi | bash |
d_bash_20392 | ---
+++
@@ -29,7 +29,7 @@
# Stage all files in git and create a commit
git add .
git add -u
-git commit -m "Website at ${date}"
+git commit -m "Website at $(date)"
# Push the new files up to GitHub
git push origin gh-pages | bash |
d_bash_20393 | ---
+++
@@ -19,3 +19,7 @@
then
mkdir -m777 htdocs/sites/default/files
fi
+
+# Add vagrant submodule
+git submodule add git@git.flowconcept.de:vagrant.git
+cp vagrant/templates/Vagrantfile . | bash |
d_bash_20394 | ---
+++
@@ -15,6 +15,10 @@
rvm reinstall $RVM_RUBY
fi
+if [ "$RVM_RUBY" == "ruby-2.3" ]; then
+ sudo apt-get install libgmp3-dev
+fi
+
rvm use $RVM_RUBY
gem install bundler
| bash |
d_bash_20395 | ---
+++
@@ -7,7 +7,8 @@
cd $working_dir
if [ `uname -m` != 'x86_64' ]; then
- echo "Install failed, you must have a 64 bit OS"
+ echo "Install failed, you must have a 64 bit OS";
+ exit 1;
fi
sudo ./install_scripts/install_mediacloud_package_dependencies.sh | bash |
d_bash_20396 | ---
+++
@@ -6,7 +6,7 @@
. ./config.sh
[ -e Sources/${Module}.swift ] || ./generate-wrapper.sh
if [ -z "$@" ]; then
- JAZZY_ARGS='--theme fullwidth --author "Rene Hexel" --author_url https://www.ict.griffith.edu.au/~rhexel/ --github_url https://github.com/rhx/SwiftGLib --github-file-prefix https://github.com/rhx... | bash |
d_bash_20397 | ---
+++
@@ -3,4 +3,3 @@
set -o errexit
dpkg-query -f '${Package}\t${db:Status-Abbrev}\n' -W '*'
-dpkg-query --version | bash |
d_bash_20398 | ---
+++
@@ -1,13 +1,13 @@
-##!/bin/sh
-#
-#set -e
-#
-##if OS is linux or is not set
-#if [ "$TRAVIS_OS_NAME" = linux -o -z "$TRAVIS_OS_NAME" ]; then
-# if [ "$CC" = gcc ]; then
-# doxygen --version
-# dot -V
-#
+#!/bin/sh
+
+set -e
+
+#if OS is linux or is not set
+if [ "$TRAVIS_OS_NAME" = linux -o ... | bash |
d_bash_20399 | ---
+++
@@ -6,6 +6,7 @@
[ $# -ne 1 ] && echo "usage: ./build.sh <version>" && exit 1
VERSION="$1"
MAJOR=${VERSION%%??} # clearly.
+mkdir -p "$MAJOR"
sed 's/%%VERSION%%/'"$VERSION"'/g' Dockerfile.template > "$MAJOR"/Dockerfile
pushd "$MAJOR" | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.