document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_16600 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
cd `dirname $0`/..
-ls tmp/capybara/ |grep -v -e '-diff.png' | xargs -n 1 -I '{}' cp 'tmp/capybara/{}' spec/screenshots/screenshots/
+ls tmp/capybara/ |grep -v -e '-diff.png' | xargs -n 1 -I '{}' mv 'tmp/capybara/{}' spec/screenshots/screenshots/ | bash |
d_bash_16601 | ---
+++
@@ -32,3 +32,8 @@
#./adjacent_tests.sh
#echo testing adjcent finding for A_gen only
#./adjacents.native A_gen > A_gen_adjacent.log
+
+# Test merging
+./merged_sensible_test.native A
+./merged_sensible_test.native B
+./merged_sensible_test.native C | bash |
d_bash_16602 | ---
+++
@@ -4,7 +4,7 @@
/usr/local/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME" "$@"
}
-d() {
+dt() {
if [ $# -eq 0 ]; then
dotfiles status
else | bash |
d_bash_16603 | ---
+++
@@ -4,8 +4,8 @@
. ${BUILDPACK_HOME}/bin/common
testExportEnvAppliesBlacklist() {
- echo "/lol" > $ENV_DIR/GIT_DIR
- echo "/jars" > $ENV_DIR/MAVEN_DIR
+ echo -n "/lol" > $ENV_DIR/GIT_DIR
+ echo -n "/jars" > $ENV_DIR/MAVEN_DIR
cat > $ENV_DIR/MULTILINE <<EOF
i'm a cool
multiline
@@ -14,7 +14,7 @@
... | bash |
d_bash_16604 | ---
+++
@@ -2,7 +2,7 @@
BASEDIR=$(dirname $0)
cd $BASEDIR/debian_3rdparty
./build_fftw3.sh
-./build_ffmpeg.sh --no-muxers
+./build_ffmpeg.sh
./build_libsamplerate.sh
./build_taglib.sh
./build_yaml.sh | bash |
d_bash_16605 | ---
+++
@@ -2,4 +2,7 @@
set -ex
pip install keystonemiddleware
pip install python-keystoneclient
-keystone_commit=stable/mitaka ./ci/keystone/keystone.sh setup
+# The exact commit we use here is somewhat arbitrary, but we want
+# something that (a) won't change out from under our feet, and (b)
+# works with our ex... | bash |
d_bash_16606 | ---
+++
@@ -13,3 +13,9 @@
echo "Add skydev user"
wp user create skydev test@skydreams.com --user_pass=skydev --role=administrator
wp super-admin add test@skydreams.com
+
+for url in $(wp site list --field=url)
+do
+ wp option update disqus_forum_url skydreams-test --url=$url
+ wp user set-role skydev administrator... | bash |
d_bash_16607 | ---
+++
@@ -4,10 +4,10 @@
# This will generate a bourbon directory and convert all .css.scss to .scss extensions.
# The bourbon directory is for 'sass --watch' use outside of rails.
# Step 1: Make install executable by changing permission
-# chmod a+x generate-sass.sh
+# chmod a+x generate-bourbon.sh
# ... | bash |
d_bash_16608 | ---
+++
@@ -4,10 +4,14 @@
cd "$SRC_DIR"
mkdir -p build && cd build
+
+# * ENABLE_PYTHON_INTERFACE: The Python interface expects Python3 (at least
+# that's what the Makefile seems to be checking for.)
+# * ENABLE_TESTING: Testing requires lit which is not packaged yet:
+# https://github.com/conda-forge/staged... | bash |
d_bash_16609 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $Id: build-dist.sh,v 1.1 2001/08/12 03:59:21 mdb Exp $
+# $Id: build-dist.sh,v 1.2 2001/08/12 04:21:13 mdb Exp $
#
# Builds a distribution archive. This should be run from the top-level
# project directory and it will place the distribution archive into the
@@ -24,6 +24,7 @... | bash |
d_bash_16610 | ---
+++
@@ -6,7 +6,7 @@
#$ -pe {{ parallelEnvironment }} {{ numberOfSlots }}
{% endif -%}
{% if maxWallTime -%}
-#$ -l h_rt=walltime={{maxWallTime.hours}}:{{maxWallTime.minutes}}:{{maxWallTime.seconds}}
+#$ -l h_rt={{maxWallTime.hours}}:{{maxWallTime.minutes}}:{{maxWallTime.seconds}}
{% endif -%}
{% if gpus -%}
... | bash |
d_bash_16611 | ---
+++
@@ -7,9 +7,6 @@
here=$(cd `dirname $0`; pwd)
osrel=$(uname -s)
-
-# ensure pip, virtualenv, and tox are up-to-date
-pip install --upgrade pip virtualenv tox
# run tests
cd $here/.. | bash |
d_bash_16612 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-export JHIPSTER_REPO=https://github.com/pascalgrimaud/generator-jhipster.git
+export JHIPSTER_REPO=https://github.com/jhipster/generator-jhipster.git
export JHIPSTER_BRANCH=v3.5.0
export JHIPSTER_NODE_CACHE=1
| bash |
d_bash_16613 | ---
+++
@@ -10,16 +10,16 @@
}
build lite-device-resolver
-build lite-site-preference-handler-jsp
+# build lite-site-preference-handler-jsp
build lite-device-delegating-view-resolver
-build lite-device-delegating-view-resolver-jsp
-build archive/java-configuration/lite-device-resolver-jc
-build archive/java-confi... | bash |
d_bash_16614 | ---
+++
@@ -4,7 +4,7 @@
cd $TRAVIS_BUILD_DIR
-git clone https://github.com/joyent/libuv.git
+git clone https://github.com/joyent/libuv.git -b v1.x
cd libuv
| bash |
d_bash_16615 | ---
+++
@@ -2,7 +2,11 @@
set -e
# set env variables
-export MONGO_CONNECTION="mongodb://${MONGO_PORT_27017_TCP_ADDR}:${MONGO_PORT_27017_TCP_PORT}/todo"
+if [ -n "$MONGO_PORT_27017_TCP_ADDR" ] && [ -n "$MONGO_PORT_27017_TCP_PORT" ]; then
+ export MONGO_CONNECTION="mongodb://${MONGO_PORT_27017_TCP_ADDR}:${MONGO_PO... | bash |
d_bash_16616 | ---
+++
@@ -4,5 +4,5 @@
set -o nounset
set -o verbose
-find /data/*.js | xargs jshint
-find /data/*.json | xargs jshint
+find /data/ -name *.js | xargs jshint
+find /data/ -name *.json | xargs jshint | bash |
d_bash_16617 | ---
+++
@@ -6,14 +6,14 @@
--env=CartPole-v0 \
--network=simple \
--optimizer=sgd \
---lr=0.0001 \
+--lr=0.001 \
--minibatch_size=30 \
--num_episodes=3000 \
--max_steps_per_episode=200 \
--replay_memory_capacity=10000 \
--target_update_freq=300 \
--reward_discount=0.9 \
---init_random_action_prob=0.5 \
+--ini... | bash |
d_bash_16618 | ---
+++
@@ -9,4 +9,4 @@
sudo apt-get update
sudo apt-get install -y git
sudo apt-get install -y sqlite
-
+sudo apt-get install -y libxml2-dev | bash |
d_bash_16619 | ---
+++
@@ -7,7 +7,7 @@
brew-upgrades() {
echo-in-blue "Upgrading brew"
brew update
- brew upgrade
+ brew upgrade --greedy
echo-in-blue "Upgrading mas"
mas upgrade | bash |
d_bash_16620 | ---
+++
@@ -11,7 +11,7 @@
command adbf "$@"
;;
reinstall)
- command apk-reinstall "$@"
+ command adb install -r -d "$@"
;;
*)
command adb "$cmd" "$@" | bash |
d_bash_16621 | ---
+++
@@ -34,7 +34,7 @@
if [[ ${1} == true ]]; then
echo ${thisFile}
elif [[ ${1} == false ]]; then
- StringUtil strip thisFile .sh
+ StringUtil trim thisFile . 1
fi
}
| bash |
d_bash_16622 | ---
+++
@@ -3,6 +3,13 @@
# PHP package manager
brew install composer
brew upgrade composer
+
+# Lets install deprecated version of PHP as well
+brew tap exolnet/homebrew-deprecated
+brew install php@5.6
+brew install php@7.1
+brew install php@7.2
+brew install php@7.3
# Install mysql
brew install mysql mariadb | bash |
d_bash_16623 | ---
+++
@@ -1,11 +1,31 @@
#!/bin/bash
+#=======================================
+# Install a bunch of git repositories
+# Asume git and git review are installed
+#=======================================
# Clone my common OpenStack projects
-git clone https://github.com/openstack/interop.git
-git clone https://git... | bash |
d_bash_16624 | ---
+++
@@ -14,5 +14,6 @@
$as_vagrant 'curl -L https://get.rvm.io | bash -s stable'
$as_vagrant '~/.rvm/bin/rvm install jruby'
+$as_vagrant '~/.rvm/bin/rvm install 2.0.0'
$as_vagrant '~/.rvm/bin/rvm install 1.9.3'
$as_vagrant '~/.rvm/bin/rvm install 1.8.7' | bash |
d_bash_16625 | ---
+++
@@ -1,5 +1,8 @@
#!/bin/bash
# clone some vim plugins
mkdir -p ~/.vim/autoload ~/.vim/bundle
+
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
+
git clone https://github.com/ntpeters/vim-better-whitespace.git ~/.vim/bundle/vim-better-whitespace
+git -C ~/.vim/bundle/vim-better-whitespa... | bash |
d_bash_16626 | ---
+++
@@ -1,13 +1,35 @@
#!/usr/bin/env bash
-# desc: zips up lambda function resources and uploads to aws
-# usage: ./scripts/deploy.sh
-# docs: http://docs.aws.amazon.com/cli/latest/reference/lambda/upload-function.html
+# desc: Provisions AWS Resources (S3 Bucket), archives lambda function and assets... | bash |
d_bash_16627 | ---
+++
@@ -18,6 +18,7 @@
git clone https://github.com/phodal-archive/echeveria-content content
pwd
cp -a content/contents code/content
+cp -a content/contents content
cd code
@@ -26,7 +27,9 @@
grunt
mv dest/* ../
cd ../
+
rm -rf code
+rm .rf content
touch .
| bash |
d_bash_16628 | ---
+++
@@ -3,6 +3,9 @@
. /etc/sysconfig/heat-params
echo "configuring kubernetes (master)"
+sed -i '
+ /^ETCD_LISTEN_CLIENT_URLS=/ s/=.*/="http:\/\/0.0.0.0:4001"/
+' /etc/etcd/etcd.conf
sed -i '
/^KUBE_ALLOW_PRIV=/ s/=.*/="--allow_privileged='"$KUBE_ALLOW_PRIV"'"/ | bash |
d_bash_16629 | ---
+++
@@ -10,6 +10,6 @@
}
it_replaces_special_characters_in_name() {
- permalink="$($jspkg permalink easy\ tabs)"
- test $permalink = 'easy-tabs'
+ permalink="$($jspkg permalink easy\ tabs\ project)"
+ test $permalink = 'easy-tabs-project'
} | bash |
d_bash_16630 | ---
+++
@@ -4,6 +4,7 @@
--name mysqld\
-e MYSQL_ROOT_PASSWORD='asd' \
-v /etc/passwd:/etc/passwd:ro \
+ -v /etc/group:/etc/group:ro \
-v `pwd`:/var/lib/mysql/ \
-v /var/run/mysqld/:/var/run/mysqld/ \
-p 3306:3306 \ | bash |
d_bash_16631 | ---
+++
@@ -12,8 +12,8 @@
SRC_DIR=${SERVER_DIR}/src
INPUT_DEPARTMENTS_DIR=${SERVER_DIR}/data/intermediate/departments
-INPUT_CLASSES_DIR=${INPUT_DEPARTMENTS_DIR}/class-listing-${TERM}-by-subject-area
-INPUT_CLASSES_TERM_DIR=${INPUT_DEPARTMENTS_DIR}/class-listing-${TERM}-by-subject-area
+INPUT_CLASSES_DIR=${INPUT_... | bash |
d_bash_16632 | ---
+++
@@ -8,7 +8,7 @@
export CONFIG=/tmp/test-config.json
export APPS_DIR=../../example-apps
export BASE_MANIFEST=../../../bosh-lite/deployments/diego.yml
-export UPGRADE_MANIFEST=../../../bosh-lite/deployments/diego_with_netman.yml
+export UPGRADE_MANIFEST=../../../bosh-lite/deployments/diego_cf_networking.yml
... | bash |
d_bash_16633 | ---
+++
@@ -4,22 +4,38 @@
wine cabal install --bindir=.
(cd Audio/digits/; ./build.sh)
-rev=$(git describe --always)
+rev=$(git describe --tags)
zipfile=tttool-win32-$rev.zip
rm -f $zipfile
-zip $zipfile \
+OGGENC=oggenc2.87-1.3.4-generic.zip
+
+mkdir -p contrib
+test -e contrib/$OGGENC ||
+ wget http://... | bash |
d_bash_16634 | ---
+++
@@ -2,10 +2,10 @@
# remove driver parts for other architectures
%ifnarch %ix86
-rm -rf %{python_sitelib}/selenium/webdriver/firefox/x86
+rm -rf %{buildroot}%{python_sitelib}/selenium/webdriver/firefox/x86
%endif
%ifnarch x86_64
-rm -rf %{python_sitelib}/selenium/webdriver/firefox/amd64
+rm -rf %{buildro... | bash |
d_bash_16635 | ---
+++
@@ -4,6 +4,7 @@
cd $working_dir
+set -e
set -u
set -o errexit
| bash |
d_bash_16636 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/bash
PAK=pak128
+wget -q --post-data "version=313&choice=all&submit=Export!" --delete-after https://translator.simutrans.com/script/main.php?page=wrap
wget -O texts.zip https://makie.de/translator/data/tab/language_pack-Scenario+Tutorial+$PAK.zip
mkdir tmp && cd tmp
unzip ../texts... | bash |
d_bash_16637 | ---
+++
@@ -1,4 +1,8 @@
#!/bin/sh
+
+echo "Preparing macOS dependencies"
+
+./util/buildscripts/scripts/prepare_deps_macos.sh build/bin/qrenderdoc.app/Contents/MacOS/qrenderdoc
set +v
| bash |
d_bash_16638 | ---
+++
@@ -11,7 +11,7 @@
brew install eigen | grep -v '%$'
brew install tinyxml | grep -v '%$'
brew install tinyxml2 | grep -v '%$'
-brew install dartsim/dart/libccd | grep -v '%$'
+brew install libccd | grep -v '%$'
brew install nlopt | grep -v '%$'
brew install dartsim/dart/ipopt | grep -v '%$'
brew install ... | bash |
d_bash_16639 | ---
+++
@@ -11,5 +11,5 @@
echo "Sleeping 120 seconds to allow the Chef Server to reconfigure in FIPS mode"
echo ""
sleep 120
- sudo chef-server-ctl test -J $WORKSPACE/pedant-fips.xml
+ sudo chef-server-ctl test -J $WORKSPACE/pedant-fips.xml --smoke
fi | bash |
d_bash_16640 | ---
+++
@@ -1,11 +1,11 @@
-alias r='rails'
+alias r='bundle exec rails'
alias b='bundle exec'
alias bi='bundle install'
alias bu='bundle update'
alias guard='bundle exec guard'
-alias warren='rails' # warren g migration
-alias drake='rake' # drake db:migrate
-alias mel='rails' # mel c
-alias canIsayyes='rails' ... | bash |
d_bash_16641 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-set -e
+set -ev
# Create a new tag if the version file has been updated and a tag for that
# version doesn't already exist. | bash |
d_bash_16642 | ---
+++
@@ -26,7 +26,7 @@
use SVN::Repos;
\$SVN::Core::VERSION gt '1.1.0' or exit(42);
system(qw/svnadmin create --fs-type fsfs/, '$svnrepo') == 0 or exit(41);
-"
+" >&3 2>&4
x=$?
if test $x -ne 0
then | bash |
d_bash_16643 | ---
+++
@@ -10,6 +10,7 @@
(cd gsf-assembly/target && tar -czf $archive gst* -C /tmp/ gsf-site )
echo done packaging gst-foundation
+# to get a graphical dependency tree: http://www.summa-tech.com/blog/2011/04/12/a-visual-maven-dependency-tree-view/
# mvn org.apache.maven.plugins:maven-dependency-plugin:2.5:tre... | bash |
d_bash_16644 | ---
+++
@@ -5,7 +5,20 @@
assertSame "\`clone' did not exit with status 0" 0 $?
}
+function testSymlinkPrompt() {
+ cat <<EOF | expect -f - > /dev/null
+ spawn $HOMESHICK_BIN clone $REPO_FIXTURES/rc-files
+ expect "*clone*$REPO_FIXTURES/rc-files"
+ expect "*updates*The castle rc-files has new files."
+ expect... | bash |
d_bash_16645 | ---
+++
@@ -23,14 +23,12 @@
sudo su -c '
cd
find . -type d -execdir chmod 700 {} \;
- find . -type f -execdir chmod 100 {} \;
+ find . -type f -execdir chmod 400 {} \;
chmod 750 .
find www -type d -execdir chmod 750 {} \;
- find www -type f -execdir chmod 110 {} \;
+ find www -typ... | bash |
d_bash_16646 | ---
+++
@@ -3,7 +3,7 @@
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
- ./gradlew build -x check
+ ./gradlew build
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Build Branch with Snapshot ... | bash |
d_bash_16647 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/sh
groupadd -g 74874536 shuriken
-useradd -g 74874536 -u 74874536 -s /bin/true shuriken
+useradd -m -g 74874536 -u 74874536 -s /bin/true shuriken | bash |
d_bash_16648 | ---
+++
@@ -21,13 +21,18 @@
cidir=$(dirname "$0")
-github_repository="src/github.com/clearcontainers/tests/cmd/fetchbranches"
-tool_dir="${GOPATH}/${github_repository}"
+tests_repo="github.com/clearcontainers/tests"
+fetchtool_path="$GOPATH/src/$tests_repo/cmd/fetchbranches"
-pushd ${tool_dir}
+if [ ! -d "$fe... | bash |
d_bash_16649 | ---
+++
@@ -1,8 +1,9 @@
#!/bin/sh
-# $Id: buildconf.sh,v 1.15 2003-05-06 11:37:18 adam Exp $
+# $Id: buildconf.sh,v 1.16 2003-05-06 12:09:10 adam Exp $
set -x
aclocal
libtoolize --automake --force
+automake --add-missing
automake --add-missing
autoconf
if [ -f config.cache ]; then | bash |
d_bash_16650 | ---
+++
@@ -12,6 +12,9 @@
echo ""
exit;
fi
+
+apt-get update > /dev/null
+apt-get -y install curl
res=$( curl -w %{http_code} https://api.github.com/user?access_token=$1 -s --output /dev/null)
if [ "$res" != "200" ]; then | bash |
d_bash_16651 | ---
+++
@@ -7,14 +7,14 @@
echo -e "\n\n==== Ruby 1.9.2 Head ===="
rvm use 1.9.2-head@ruby-amqp
gem install bundler --no-ri --no-rdoc
-bundle install --path vendor/bundle/1.9.2 --without development; echo
+bundle update --path vendor/bundle/1.9.2 --without development; echo
bundle exec rspec spec
return_status=$?... | bash |
d_bash_16652 | ---
+++
@@ -13,14 +13,21 @@
version="$1"
current_version="$(uname -r)"
case "${current_version}" in
+ *-v7l+)
+ case "${version}" in
+ *-v7l+) ;;
+ *) exit 0 ;;
+ esac
+ ;;
*-v7+)
case "${version}" in
*-v7+) ;;
- *) exit 0
+ *) exit 0 ;;
esac
;;
*+)
case "... | bash |
d_bash_16653 | ---
+++
@@ -1,4 +1,12 @@
#!/bin/sh
+
+safe_sed() {
+ if sed --version > /dev/null 2>&1; then
+ sed -i"" "$@"
+ else
+ sed -i "" "$@"
+ fi
+}
file=github.com.css
url=https://raw.githubusercontent.com/StylishThemes/GitHub-Dark/master/github-dark.css
@@ -6,11 +14,11 @@
curl "$url" -o "$file"
# This is ... | bash |
d_bash_16654 | ---
+++
@@ -3,7 +3,7 @@
################################
# PHP VERSION
################################
-if [ "$1" = '' ]; then
+if [ "$1" = 'php5-6' ]; then
PHP_VERSION=''
else
PHP_VERSION=-$1 | bash |
d_bash_16655 | ---
+++
@@ -16,9 +16,10 @@
exit 0
fi
-scripts/reformat-source || echo 'Warning: clang-format not available, skipping reformat-source'
-scripts/reformat-cmake || echo 'Warning: Unable to reformat CMake code.'
-scripts/reformat-shfmt || echo 'Warning: Unable to reformat Shell code.'
+scripts/reformat-source || ech... | bash |
d_bash_16656 | ---
+++
@@ -23,6 +23,22 @@
ERRORED=true
fi
+# Run a search for a test query
+SEARCH_JSON="$(curl -s http://localhost:5000/api/search/test)"
+
+if [ "$(echo $SEARCH_JSON |jq '. | length')" -ne '100' ]; then
+ echo "ERROR: API is not returning enough search results"
+ ERRORED=true
+fi
+
+# Run a search fo... | bash |
d_bash_16657 | ---
+++
@@ -15,6 +15,10 @@
echo $dir
fi
+ if [[ $@ == "-u" ]] || [[ $@ == "--update" ]]; then
+ $(git -C $dir remote -v update) || continue
+ fi
+
# XXX Returns single line, with variable spacing
branches=$(git -C $dir show-branch --list 2> /dev/null) || continue
| bash |
d_bash_16658 | ---
+++
@@ -31,6 +31,12 @@
yum update -y
+
+
+# Install deltarpm package first.
+yum --assumeyes install deltarpm
+
+
yum --assumeyes install sudo
| bash |
d_bash_16659 | ---
+++
@@ -8,9 +8,11 @@
extensions=(
# MS Word document
- ["doc"]="odt"
+ #["doc"]="odt"
# MS Works database
["wdb"]="ods"
+ # MS Works spreadsheet
+ ["wks"]="ods"
# MS Works document
["wps"]="odt"
# MS Write document | bash |
d_bash_16660 | ---
+++
@@ -1,13 +1,13 @@
#!/bin/bash
cd ../lib
-xterm -e "java -jar aether-eureka-0.10-SNAPSHOT.jar" &
-xterm -e "java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=18100,suspend=n -jar aether-servicemanager-simple-0.10-SNAPSHOT.jar $1" &
+$COMMAND "java -jar aether-eureka-0.10-SNAPSHOT.jar" &
+$COMMAND "... | bash |
d_bash_16661 | ---
+++
@@ -9,7 +9,7 @@
debug_start "Computer aided design"
- CAD=$(egrep -i "$KEYWORDS_CAD" "$NEWPAGES" | egrep -i "$KEYWORDS_CAD_EXCLUDE")
+ CAD=$(egrep -i "$KEYWORDS_CAD" "$NEWPAGES" | egrep -iv "$KEYWORDS_CAD_EXCLUDE")
categorize "CAD" "Computer aided design"
| bash |
d_bash_16662 | ---
+++
@@ -1,9 +1,26 @@
-#!/bin/sh
+#!/bin/bash
-set -e
+set -eu
+
+if ! hash git 2>/dev/null; then
+ echo "You need git"
+ exit 1
+fi
+
+if ! hash cmake 2>/dev/null; then
+ echo "You need cmake"
+ exit 1
+fi
+
+if ! hash unzip 2>/dev/null; then
+ echo "You need unzip"
+ exit 1
+fi
# Install ALE
-git clon... | bash |
d_bash_16663 | ---
+++
@@ -1,6 +1,11 @@
#!/usr/bin/env bash
-cat - > /dev/null
cd $MARKED_ORIGIN
-git diff --no-color --word-diff -U99999 -- $MARKED_PATH |
- sed -e '1,5d;s/ *{[-\.].*}$//g;s/\[-/{--/g;s/-\]/--}/g;s/{\+/{++/g;s/\+}/++}/g'
+if git diff --quiet -- $MARKED_PATH; then
+ cat -
+ exit
+else
+ cat - > /dev/nul... | bash |
d_bash_16664 | ---
+++
@@ -25,7 +25,7 @@
echo "Launching pylint stat pass"
cd ..
-pylint -f parseable --disable-msg=C0111,C0103,W0201,E1101 shinken/ shinken/modules/*/*py > $DIR/pylint.txt
+pylint -f parseable --disable-msg=C0111,C0103,W0201,E1101 --max-line-length 90 shinken/ shinken/modules/*/*py > $DIR/pylint.txt
cd $DIR
e... | bash |
d_bash_16665 | ---
+++
@@ -3,6 +3,6 @@
function setup_homeshick {
local hs_repo=$HOMESICK/repos/homeshick
mkdir -p $hs_repo
- ln -s $(cd $SCRIPTDIR/../home; printf "$(pwd)") $hs_repo/home
+ ln -s $(cd $SCRIPTDIR/../bin; printf "$(pwd)") $hs_repo/bin
ln -s $(cd $SCRIPTDIR/../utils; printf "$(pwd)") $hs_repo/utils
} | bash |
d_bash_16666 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
TMUX_PLUGIN_HOME=~/.tmux/plugins/tpm
-git clone https://github.com/tmux-plugins/tpm ${TMUX_PLUGIN_HOME} --depth=1 2>/dev/null || \
+git clone https://github.com/Graham42/tpm ${TMUX_PLUGIN_HOME} --depth=1 2>/dev/null || \
(cd ${TMUX_PLUGIN_HOME} && git pull)
tmux s... | bash |
d_bash_16667 | ---
+++
@@ -1,18 +1,39 @@
#!/usr/bin/env bash
set -euo pipefail
+# Check for GPG signing key
if [[ -z "$( git config user.signingkey )" ]]; then
- echo "$0: GPG signing key required." >&2
+ printf "\n$0: GPG signing key required. See https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work\n" >&2
+ exit 2
+... | bash |
d_bash_16668 | ---
+++
@@ -3,7 +3,7 @@
sudo dnf update
sudo dnf upgrade
sudo dnf -y copr enable thelocehiliosan/yadm
-sudo dnf install -y snapd mercurial vim ctags git-extras docker autojump make autoconf autogen libtool flex bison openconnect pwgen ranger dialog yadm python3-pip pylint pandoc tmux htop jq golang bat python3-pyp... | bash |
d_bash_16669 | ---
+++
@@ -1 +1,2 @@
-java -Xmx512M -jar `dirname $0`/sbt-launch.jar "$@"
+#!/bin/sh
+java -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -Xmx712M -Xss2M -jar "sbt-launch.jar" | bash |
d_bash_16670 | ---
+++
@@ -8,6 +8,7 @@
sh -e /etc/init.d/xvfb start || true
# Install in-place and install the server extension
+export PATH="$HOME/miniconda/bin:$PATH"
pip install -v -e .
jupyter serverextension enable --py jupyterlab
@@ -15,7 +16,7 @@
npm run build
npm test
npm run test:coverage
-export PATH="$HOME/min... | bash |
d_bash_16671 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/sh
+mkdir -p /var/log/supervisor /var/log/funsize
chmod 777 /var/log/funsize
exec "$@" | bash |
d_bash_16672 | ---
+++
@@ -4,7 +4,7 @@
compinit -i
# Setup hub alias for git, if it is available, see http://github.com/defunkt/hub
-if [ "$commands[(I)hub]" ]; then
+if [ "$commands[(I)hub]" ] && [ "$commands[(I)ruby]" ]; then
# eval `hub alias -s zsh`
function git(){hub "$@"}
fi | bash |
d_bash_16673 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
-inotifywait -r -q -m -e close_write "$1" | while read -r filename event; do echo "[$(date +%s)] Trigger refresh"; curl -sSL -X POST "$2" > /dev/null; done
+inotifywait -r -q -m -e close_write "$(readlink -f $1)" | while read -r filename event; do echo "[$(date +%s)] Trigger refre... | bash |
d_bash_16674 | ---
+++
@@ -13,3 +13,13 @@
insert_sudo () { zle beginning-of-line; zle -U "sudo " }
zle -N insert-sudo insert_sudo
bindkey "^s" insert-sudo
+
+# Go backward one word
+bindkey '^w' backward-word
+
+# Go forward one word
+bindkey '^e' forward-word
+
+# Delete current word
+bindkey '^q' delete-word
+ | bash |
d_bash_16675 | ---
+++
@@ -3,4 +3,4 @@
set -e
source environment.sh
-celery -A run_celery.notify_celery worker --loglevel=INFO --logfile=/var/log/notify/application.log --concurrency=4 -Q sms, sms_code
+celery -A run_celery.notify_celery worker --loglevel=INFO --logfile=/var/log/notify/application.log --concurrency=4 -Q sms, sm... | bash |
d_bash_16676 | ---
+++
@@ -1,11 +1,24 @@
source ../openssl/plan.sh
pkg_name=openssl-musl
+pkg_origin=core
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
-pkg_deps=(core/musl core/zlib-musl core/cacerts)
+pkg_description="\
+OpenSSL is an open source project that provides a robust, commercial-grade, \
+and full-fe... | bash |
d_bash_16677 | ---
+++
@@ -8,7 +8,7 @@
# | |
# +-------------------------------------------------------------------------+
-alias vi='TERM=xterm /usr/bin/vim -X'
+alias vi='TERM=xterm vim -X'
alias l='exa -lghm --icons --group-directories-first --git'
ali... | bash |
d_bash_16678 | ---
+++
@@ -2,20 +2,15 @@
# CI publish script
-# Stable DITA-OT version
export DITA_HOME=$PWD/dita-ot-$DITA_OT_VERSION
-
-# Latest DITA-OT version from 'develop' branch
export DITA_OT_DEV=$(find $PWD -name 'dita-ot-*+*' -type d | head -1)
-
-# Site directory for GitHub Pages
export SITE_DIR=$PWD/dita-ot.githu... | bash |
d_bash_16679 | ---
+++
@@ -6,8 +6,7 @@
brew-upgrades() {
echo-in-blue "Upgrading brew"
- brew update
- brew upgrade --cleanup
+ HOMEBREW_INSTALL_CLEANUP=true brew update
echo-in-blue "Upgrading mas"
mas upgrade | bash |
d_bash_16680 | ---
+++
@@ -7,8 +7,8 @@
# Files requiring a version bump
VERSION_FILES="lua-cjson-2.0devel-1.rockspec lua-cjson.spec lua_cjson.c manual.txt runtests.sh tests/test.lua"
-[ "$1" ] && BRANCH="$1" || BRANCH="`git describe --match '1.[0-9]*'`"
-VERSION="`git describe --match '1.[0-9]*' $BRANCH`"
+[ "$1" ] && BRANCH="$... | bash |
d_bash_16681 | ---
+++
@@ -16,13 +16,18 @@
sleep 1
echo "Run agent tests."
-if bash $CURRENT_SOURCE_DIR/../../testagent/test/runtests.sh $TESTAGENT ; then
- echo "Agent tests succeeded."
- status=0
-else
- echo "Agent tests failed."
- status=1
-fi
+
+status=0
+for i in 1 2; do
+ # Test multiple agent connections.
+ if... | bash |
d_bash_16682 | ---
+++
@@ -25,7 +25,14 @@
alias dbshell="python manage.py dbshell"
alias devrunserver="_runserver false"
alias runserver="_runserver true"
-alias shell="python manage.py shell"
+
+shell() {
+ python manage.py debugsqlshell 2> /dev/null
+ if [ ! $? -eq 0 ]; then
+ python manage.py shell
+ fi
+}
+
... | bash |
d_bash_16683 | ---
+++
@@ -6,3 +6,4 @@
rm -f .coverage
coverage run manage.py test --noinput --settings=service_info.settings.dev "$@"
coverage report
+python manage.py makemigrations --dry-run | grep 'No changes detected' || (echo 'There are changes which require migrations.' && exit 1) | bash |
d_bash_16684 | ---
+++
@@ -14,7 +14,7 @@
cp ${CODE} ${MACHINE}/code
chmod 777 -R ${MACHINE}
-MACHINE_ID=$(docker run -d --memory=40m --cpus=0.25 -it -v ${MACHINE}:/code compiler_machine /code/run.sh ${2} code)
+MACHINE_ID=$(docker run -d --memory=40m --cpus=0.25 -v ${MACHINE}:/code compiler_machine /code/run.sh ${2} code)
if... | bash |
d_bash_16685 | ---
+++
@@ -8,22 +8,22 @@
echo "Version : $REL"
# Change version
-sed -i -e "s/VERSION/$REL/g" ./templates/backend.yml > ./templates/backend-$REL.yml
-sed -i -e "s/VERSION/$REL/g" ./templates/front.yml > ./templates/front-$REL.yml
+sed -e "s/VERSION/$REL/g" ./templates/backend.yml > ./templates/backend-$REL.yml
+... | bash |
d_bash_16686 | ---
+++
@@ -7,6 +7,7 @@
run_single() {
i=$1
+ echo "next test $i"
pushd $i > /dev/null 2> /dev/null
echo -n "?"
tmpfailfile=$(tempfile) | bash |
d_bash_16687 | ---
+++
@@ -22,5 +22,4 @@
sudo snap install bitwarden
sudo snap install bw
-sudo python3 -m pip install -U concentration isort
-
+sudo python3 -m pip install -U concentration isort hug allow | bash |
d_bash_16688 | ---
+++
@@ -24,5 +24,8 @@
test ! -d $OUTPUT && mkdir -p $OUTPUT
aws s3 cp $ARTIFACT ./s3-artifact.tmp
-tar -xvf ./s3-artifact.tmp -C $OUTPUT
+echo 'artifact download done'
+tar -xvf ./s3-artifact.tmp -C $OUTPUT >&/dev/null
+echo 'tar the artifact done'
rm ./s3-artifact.tmp
+echo 'remove tmp file' | bash |
d_bash_16689 | ---
+++
@@ -1,12 +1,12 @@
#!/bin/sh
-#!/bin/sh
-
-if [ "$1" = "" ] ; then
- echo "Input your Etherner device connected to Hokuyo"
- exit
+if [ $# -lt 1 ]; then
+ echo "AutoDetect-"
+ target=` ifconfig | grep enp | cut -d' ' -f1 `
+ echo $target
+else
+ target=$1
fi
-sudo ifconfig $1 192.168.0.15
+sudo... | bash |
d_bash_16690 | ---
+++
@@ -44,5 +44,6 @@
function recipe_stage {
dest="$(realpath $1)"
make DESTDIR="$dest" install
+ rm -f "$dest/lib/"*.la
skip=1
} | bash |
d_bash_16691 | ---
+++
@@ -13,9 +13,11 @@
# (this only happens after that StackStorm release)
if [[ $CIRCLE_TAG =~ ^v(.+)$ ]]; then
ST2_TAG=${BASH_REMATCH[1]}
- docker build --build-arg ST2_TAG=${ST2_TAG} --build-arg ST2_DOCKER_SHA1=${CIRCLE_SHA1} \
- -t stackstorm/stackstorm:${ST2_TAG} images/stackstorm
- echo "docker pu... | bash |
d_bash_16692 | ---
+++
@@ -70,6 +70,9 @@
int main(int argc, const char *argv[])
{
+ if (argc < 2)
+ return 1;
+
printf("%d\n", compute_fst(argv[1]));
return 0;
} | bash |
d_bash_16693 | ---
+++
@@ -6,7 +6,7 @@
AUTH="$1"
curl -i -H "Accept: application/json" -H "content-type: application/json" -H "Authorization: $AUTH" --data "@event.json" -X POST http://misp.local/events
-curl -H "Authorization: $AUTH" -X GET http://misp.local/events/csv/download/1 | sed -e 's/^M//g' | cut -d, -f2 --complement ... | bash |
d_bash_16694 | ---
+++
@@ -7,7 +7,7 @@
function squash {
# install the docker layer squashing tool
- easy_install --user docker-scripts==0.4.1
+ easy_install --user docker_py==1.2.3 docker-scripts==0.4.2
base=$(awk '/^FROM/{print $2}' $1)
$HOME/.local/bin/docker-scripts squash -f $base ${IMAGE_NAME}
} | bash |
d_bash_16695 | ---
+++
@@ -4,7 +4,7 @@
mkdir -p final
for remoteHost in $@; do
- rsync -a --progress remoteHost:~/viseem/final/ ./final/
+ rsync -a --progress $remoteHost:~/viseem/final/ ./final/
done
echo "All results were colected" | bash |
d_bash_16696 | ---
+++
@@ -4,17 +4,23 @@
set -ex
-meson_config_args=(
- -D docs=false
- -D egl=yes
- -D x11=true
- -D tests=false
-)
+if [ -n "$OSX_ARCH" ] ; then
+ meson_config_args=(
+ -D docs=false
+ -D x11=false
+ -D tests=false
+ )
+else
+ meson_config_args=(
+ -D docs=fals... | bash |
d_bash_16697 | ---
+++
@@ -1,14 +1,6 @@
#!/bin/sh
-
-command -v s3cmd >/dev/null 2>&1 || { echo "s3cmd not found. Aborting." >&2; exit 1; }
SOURCE=./public/
TARGET=s3://iiro.fi
-s3cmd sync $SOURCE $TARGET \
- --delete-removed \
- --guess-mime-type \
- --no-mime-magic \
- --no-preserve ... | bash |
d_bash_16698 | ---
+++
@@ -4,7 +4,13 @@
local port="${1}"; shift
while :; do
- docker run --rm --publish="${port}:22" --volume=/alloc:/alloc local/ninelet "$@"
+ docker run \
+ --rm \
+ --privilege \
+ --publish="${port}:22" \
+ --volume=/alloc:/alloc \
+ --volume=/var/tmp:/var/tmp \... | bash |
d_bash_16699 | ---
+++
@@ -26,6 +26,8 @@
# Pull down the wifi joining script and run it.
wget --no-check-certificate -O pi-robot-join-wifi.sh https://raw.githubusercontent.com/mitmuseumstudio/RoboticLightBallet/master/pi-setup/pi-robot-join-wifi.sh
+chmod +x ./pi-robot-join-wifi.sh
+
# This will run until the Pi sees and has j... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.