document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_12400 | ---
+++
@@ -1,10 +1,12 @@
#!/bin/bash
set -eu -o pipefail
-if [[ -e .env ]]; then
- # shellcheck disable=SC1091
- . .env
+if [[ ! -e .env ]]; then
+ echo 'Environment file .env not found.'
+ exit 1
fi
+# shellcheck disable=SC1091
+. .env
if [[ -z "${MYSQL_ROOT_PASSWORD:-}" || -z "${MYSQL_USER:-}" || -z "$... | bash |
d_bash_12401 | ---
+++
@@ -18,8 +18,10 @@
num_drawables=18
res_prefix=ms9_ # material shadow ninepatch
+CUR_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
+
# PHASE 1 : export PNG files
-./phase1_batch_inkscape_export.sh material_shadow.svg phase1 $num_drawables $res_prefix
+./phase1_batch_inkscape_export.sh $CUR_DIR/mat... | bash |
d_bash_12402 | ---
+++
@@ -3,8 +3,8 @@
set +x
cleanup() {
+ docker-compose -f docker-compose.builder.yml down --volumes
rm -vf .env
- docker-compose -f docker-compose.builder.yml down --volumes
}
trap cleanup EXIT
| bash |
d_bash_12403 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+export LC_ALL="en_US.UTF-8"
+export LANG="en_US.UTF-8"
ln -s /node/node_modules .
ln -s /bower/bower_components app/
grunt serve | bash |
d_bash_12404 | ---
+++
@@ -13,12 +13,13 @@
# ignored
-UNTERMINATED_LOGS=$(git grep "LogPrintf(" -- "*.cpp" | \
+UNTERMINATED_LOGS=$(git grep --extended-regexp "LogPrintf?\(" -- "*.cpp" | \
grep -v '\\n"' | \
grep -v "/\* Continued \*/" | \
+ grep -v "LogPrint()" | \
grep -v "LogPrintf()")
if [[ ${UNTERMINATE... | bash |
d_bash_12405 | ---
+++
@@ -24,3 +24,35 @@
chown root:root /etc/os-release-ec2
chmod 644 /etc/os-release-ec2
+
+cat <<'EOF' | tee /etc/update-motd.d/10-ec2
+#!/bin/sh
+
+[ -f /etc/os-release-ec2 ] || exit 0
+
+# Add information about this particular EC2 instance e.g., version, etc.
+. /etc/os-release-ec2
+
+# Calculate the level... | bash |
d_bash_12406 | ---
+++
@@ -7,9 +7,9 @@
if [ $? -eq 0 ]
then
libtool_version=$(libtool --version 2>/dev/null | head -n1 | cut -d' ' -f4)
- libtool1=$(echo $libtool_version | cut -d'.' -f1)
- libtool2=$(echo $libtool_version | cut -d'.' -f2)
- libtool3=$(echo $libtool_version | cut -d'.' -f3)
+ libtool1=$(echo 0$li... | bash |
d_bash_12407 | ---
+++
@@ -30,8 +30,8 @@
git commit -am "Update version number to ${VERSION} for release."
git tag -a "v$VERSION" -m "v$VERSION" HEAD
-python setup.py sdist bdist_wheel
-twine upload dist/vulture-${VERSION}.tar.gz dist/vulture-${VERSION}-py2.py3-none-any.whl
+python3 setup.py sdist bdist_wheel --universal
+pytho... | bash |
d_bash_12408 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
# ----------
# Clean up temporary files generated by examples
-rm ./*/*.txt* ./*/*.tmp
+rm ./*/*.txt* ./*/*.tmp* | bash |
d_bash_12409 | ---
+++
@@ -1,7 +1,8 @@
#!/bin/bash
wget http://www.lappsgrid.org/keys/secring.gpg.enc
wget http://www.lappsgrid.org/keys/pubring.gpg.enc
-openssl aes-256-cbc -d -pass pass:"$ENCRYPTION_PASSWORD" -in secring.gpg.enc -out secring.gpg
-openssl aes-256-cbc -d -pass pass:"$ENCRYPTION_PASSWORD" -in pubring.gpg.enc -out... | bash |
d_bash_12410 | ---
+++
@@ -13,6 +13,11 @@
ANT_BIN="$1/ant"
shift
PROPS="$@"
+ rm -rf ${MPS_HOME}/config/plugins/XChart
+ cp ../XChart/build/artifacts/XChart/XChart_*.zip ${MPS_HOME}/config/plugins/
+ cd ${MPS_HOME}/config/plugins/
+ unzip XChart_*.zip
+ cd -
fi
function assemble-plugin { | bash |
d_bash_12411 | ---
+++
@@ -8,6 +8,7 @@
alias fuck-this-shit='git reset --hard HEAD; git clean -fd'
alias lipsum='lorem-ipsum 10 paragraphs'
alias fit-chrome='osascript -e '"'"'tell first window of application "Google Chrome" to set bounds to {0, 0, 1440, 820}'"'"
+alias apl='apl --noColor'
# Global function for full-screeni... | bash |
d_bash_12412 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.1%2B7/OpenJDK14U-jdk_x64_linux_hotspot_14.0.1_7.tar.gz"
;;
java15)
- echo "https://download.java.net/java/early_access/jdk15/20/GPL/openjdk-15-ea+20_linux-x64_bin.tar.gz"
+ echo "https://download... | bash |
d_bash_12413 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/sh
rm -rf doc/rst && mkdir doc/rst
+make doc
pandoc --read=html --write=rst doc/leo_backend_db_api.html -o doc/rst/leo_backend_db_api.rst
pandoc --read=html --write=rst doc/leo_backend_db_bitcask.html -o doc/rst/leo_backend_db_bitcask.rst
pandoc --read=html --write=rst doc/leo_ba... | bash |
d_bash_12414 | ---
+++
@@ -6,4 +6,10 @@
create-minerva-database
-minerva initialize -i /instance
+if [[ ! -z "$LOAD_SAMPLE_DATA" ]]
+then
+ minerva initialize -i /instance --load-sample-data
+else
+ minerva initialize -i /instance
+fi
+ | bash |
d_bash_12415 | ---
+++
@@ -1,6 +1,6 @@
#! /bin/bash
-cd ~/repo/dev/app/mail
+cd ${HOME}/repo/dev/app/mail
source .env
| bash |
d_bash_12416 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.2%2B8/OpenJDK17U-jdk_x64_linux_hotspot_17.0.2_8.tar.gz"
;;
java18)
- echo "https://github.com/adoptium/temurin18-binaries/releases/download/jdk18-2022-03-10-06-10-beta/OpenJDK18-jdk_x64_linux_hotspot_20... | bash |
d_bash_12417 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-python ../../../DiligentCore/BuildTools/FormatValidation/clang-format-validate.py \
+python3 ../../../DiligentCore/BuildTools/FormatValidation/clang-format-validate.py \
--clang-format-executable ../../../DiligentCore/BuildTools/FormatValidation/clang-format_mac_10.0.0 \
-r ../... | bash |
d_bash_12418 | ---
+++
@@ -29,7 +29,7 @@
# Install system packages
# - build-essentiall needed for uwsgi
# - git needed for setuptools_scm
-apt-get -y install --no-install-recommends git build-essential redis-server dnsutils wget
+apt-get -y install --no-install-recommends git build-essential redis-server dnsutils wget iputils-p... | bash |
d_bash_12419 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
-rsync -arz --delete --exclude 'relay-descriptors/votes' --exclude 'relay-descriptors/microdescs' --exclude 'torperf' metrics.torproject.org::metrics-recent in
+rsync -az --delete metrics.torproject.org::'metrics-recent/relay-descriptors/consensuses/ metrics-recent/relay-descripto... | bash |
d_bash_12420 | ---
+++
@@ -13,7 +13,7 @@
if [[ "$TRAVIS_COMMIT_DESCRIPTION" != *"maven-release-plugin"* ]];then
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ];then
+ if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ];then
git config --global user.email ... | bash |
d_bash_12421 | ---
+++
@@ -1,3 +1,10 @@
#!/bin/bash
-for DB_NAME in $(/tmp/usfs_local_sids | sed \'s/[0-9]$//\'); do export DB_NAME; echo srvctl stop database -d $DB_NAME -o immediate; srvctl stop database -d $DB_NAME -o immediate; echo srvctl start database -d $DB_NAME; srvctl start database -d $DB_NAME; done
+set -x
+for DB_NA... | bash |
d_bash_12422 | ---
+++
@@ -15,7 +15,7 @@
###########################################################
# JAVA
###########################################################
-JDK_URL=https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u202-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u202b08.tar.gz
+JDK_URL=https://github.... | bash |
d_bash_12423 | ---
+++
@@ -2,4 +2,10 @@
set -e
+cat <<EOF
+#
+# READY.
+#
+EOF
+
exec supervisord --configuration "$ICEKIT_DIR/etc/supervisord.conf" "$@" | bash |
d_bash_12424 | ---
+++
@@ -5,7 +5,7 @@
#
# Inputs:
# TRAVIS_OS_NAME - "linux" or "osx"
-# BUILD_STATIC - "true" or "false"
+# MODE - "dynamic", etc.
#
set -e | bash |
d_bash_12425 | ---
+++
@@ -8,7 +8,7 @@
fi
echo "== INSTALLING DEPENDENCIES =="
-pip install -q -r requirements.txt --use-mirrors
+pip install -q -r requirements.txt
echo -e "\n== CREATING PAGES FROM FIXTURE =="
python create_pages.py --services-data test/features/fixtures/services-test.csv | bash |
d_bash_12426 | ---
+++
@@ -12,7 +12,7 @@
for NAME in $TILES; do
if [ ! -f "$TILE_DIR/$NAME.mbtiles" ]; then
echo "Downloading $NAME..."
- curl -s -o "$TILE_DIR/$NAME.mbtiles" "http://mapbox-carmen.s3.amazonaws.com/dev/$NAME.mbtiles"
+ curl -s -o "$TILE_DIR/$NAME.mbtiles" "https://s3.amazonaws.com/mapbox/carmen/dev/$N... | bash |
d_bash_12427 | ---
+++
@@ -1,3 +1,10 @@
+# This script update the environment with up-to-date dependencies
+# from the specification provides by environment.yml
+# and pinned the packages version in environment-pinned.yml
+
+# Please test the environment before committing changes to environment-pinned.yml
+# `python setup.py test`
... | bash |
d_bash_12428 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/bash
echo "Job Starting"
+. .bash_profile
cd /home/phildini/pebble.ink/twittering_machine/
rm tweets.json
virtualenv . | bash |
d_bash_12429 | ---
+++
@@ -32,7 +32,7 @@
popd > /dev/null
echo "Move files to it"
-CP = $(which cp)
-CP -r $current/tex/*.py $INSTALL_DIR/tex/
+CP=$(which cp)
+$CP -r $current/tex/*.py $INSTALL_DIR/tex/
echo "Installation done!" | bash |
d_bash_12430 | ---
+++
@@ -5,7 +5,7 @@
echo -e "Publishing javadoc...\n"
- cp -R build/docs/javadoc $HOME/javadoc-latest
+ cp -R build/docs/javadoc $HOME/javadoc-snapshot
cd $HOME
git config --global user.email "travis@travis-ci.org"
@@ -13,9 +13,9 @@
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@githu... | bash |
d_bash_12431 | ---
+++
@@ -24,6 +24,8 @@
pip install -r requirements.txt
pip install -r requirements_for_tests.txt
+rm coverage.xml .coverage nosetests.xml
+
nosetests -v --with-xunit --with-coverage --cover-package=backdrop --cover-inclusive
display_result $? 1 "Unit tests"
python -m coverage.__main__ xml --include=backdrop... | bash |
d_bash_12432 | ---
+++
@@ -2,10 +2,11 @@
local _sublime_darwin_paths > /dev/null 2>&1
_sublime_darwin_paths=(
+ "/usr/local/bin/subl"
+ "$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
"$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
- "$HOME/Applications/Sublime Text 2.app/Contents... | bash |
d_bash_12433 | ---
+++
@@ -1,4 +1,4 @@
# The classic ls aliases
-alias ll='ls -alF'
+alias ll='ls -alF --color=always'
alias la='ls -A'
alias l='ls -CF' | bash |
d_bash_12434 | ---
+++
@@ -5,6 +5,22 @@
DB_NAME=$2
DB_USER_NAME=$3
DB_ROOT_PASS=$4
+
+# Stop mistral service in case of action user sessions.
+echo `ps aux | grep 'mistral/cmd/launch.py'`
+if [[ -e "/etc/init/mistral.conf" ]]; then
+ sudo service mistral stop || true
+else
+ sudo pkill -f 'mistral/cmd/launch.py' || true
+f... | bash |
d_bash_12435 | ---
+++
@@ -10,5 +10,5 @@
git_version="${git_version:0:10}"
-container_name="$repo_name-$git_version"
+container_name="$repo_name:$git_version"
docker build -t "$container_name" . | bash |
d_bash_12436 | ---
+++
@@ -2,7 +2,7 @@
alias ...='cd ../../'
alias ....='cd ../../..'
alias bash='SHELL=bash bash'
-alias dot='cd $DOTFILES'
+alias dotfiles='cd $DOTFILES'
alias dotfile_colors="set | egrep '^COLOR_\w*' | sort " # lists all the colors
alias ga='git add -p'
alias gb='git br' | bash |
d_bash_12437 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-if [ -z $TRAVIS_TAG ] || [ ! -z $PYTHONASYNCIODEBUG ] || [ ! -z $AIOHTTP_NO_EXTENSIONS ]
+if [ -z $TRAVIS_TAG ] || [ -n $PYTHONASYNCIODEBUG ] || [ -n $AIOHTTP_NO_EXTENSIONS ]
then
exit 1
fi | bash |
d_bash_12438 | ---
+++
@@ -1,11 +1,11 @@
#!/bin/bash
sleep 5
echo "Trying VSIM cluster setup on $1"
-curl -X POST -d @cluster_setup "http://admin@$1/servlets/netapp.servlets.admin.XMLrequest_filer"
+curl -X POST -d @cluster_setup --noproxy $1 "http://admin@$1/servlets/netapp.servlets.admin.XMLrequest_filer"
sleep 25
-curl -X PO... | bash |
d_bash_12439 | ---
+++
@@ -12,6 +12,7 @@
formulae=(
atom
charles
+ cocoapods
dayone-cli
geekbench
github-desktop
@@ -32,7 +33,6 @@
# QuickLook plugins
betterzipql
- cocoapods
provisioning
qlcolorcode
qlimagesize | bash |
d_bash_12440 | ---
+++
@@ -13,7 +13,9 @@
rsync --exclude '*.DS_Store' --exclude '*.git' -av web/ ../codemoo
mv ../codemoo/index.html ../codemoo/index2.html
+rsync -av LICENSE.txt ../codemoo/
cp -pr gh-pages-config/ ../codemoo/
+
( cd ../codemoo; coffee -c scripts )
( cd ../codemoo; coffee -c doppio-jvm/scripts/demo/ ) | bash |
d_bash_12441 | ---
+++
@@ -9,24 +9,29 @@
# Calculate the end commit index
old_commits=`git log --pretty=oneline | wc -l`
-end=$(($old_commits - $keep_commits))
+end=$(($old_commits - 1 - $keep_commits))
if [ $end -lt 2 ]; then
echo "No need to squash" 1>&2
exit 2
fi
# Save old core.editor value
-old_editor=`git confi... | bash |
d_bash_12442 | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
+# Determine whether to install personal or work packages
PERSONAL=$(! grep -Fq "xamarin" "${HOME}/.npmrc"; echo $?)
-echo "${PERSONAL}"
## Brew
brew update
@@ -11,9 +11,7 @@
brew tap caskroom/versions
brew cask install bartender docker google-chrome-canary specta... | bash |
d_bash_12443 | ---
+++
@@ -12,6 +12,7 @@
brew cask install ngrok
brew cask install pencil
brew cask install postman
+brew install fork
brew cask install smartgit
brew cask install sourcetree
brew cask install wireshark | bash |
d_bash_12444 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash -eu
#
-# Copyright 2018 Open GEE Authors
+# Copyright 2017 Open GEE Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. | bash |
d_bash_12445 | ---
+++
@@ -1,6 +1,9 @@
#!/bin/bash
dbpath=$(find /usr -type f -name "script.db" 2>/dev/null | awk 'gsub("script.db","")')
+nmappath=$(find /usr -type f -name "nmap" 2>/dev/null)
+luapath=$(find /usr -type f -name "lua" 2>/dev/null)
+luarockspath=$(find /usr -type f -name "luarocks*" 2>/dev/null)
if [[ $dbpath... | bash |
d_bash_12446 | ---
+++
@@ -8,7 +8,6 @@
PKG_REQS="
goprotobuf.googlecode.com/hg/proto
github.com/bmizerany/assert
- github.com/kr/pretty.go
"
CMD_REQS=" | bash |
d_bash_12447 | ---
+++
@@ -14,7 +14,7 @@
echo "========== Logging output from containers =========="
/usr/local/bin/docker-compose logs
echo "========== Logging output from syslog =========="
-cat ../logs/requisition/messages
+cp ../logs/requisition/messages build/syslog
echo "========== Logging nginx settings =========="
/usr... | bash |
d_bash_12448 | ---
+++
@@ -1,12 +1,13 @@
#!/usr/bin/env zsh
+# """
# ZSH shell options.
-# Updated 2019-10-31.
-
+# Updated 2019-11-25.
+#
# Debug with:
# - bindkey
# - setopt
-
+#
# See also:
# - http://zsh.sourceforge.net/Doc/Release/Completion-System.html
# - http://zsh.sourceforge.net/Doc/Release/Options.html
@@ -14,8... | bash |
d_bash_12449 | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e
-yum install -y cmake git rpm-build yum-utils make
+yum install -y cmake git rpm-build yum-utils make which
if which dnf; then
dnf install -y dnf-plugins-core | bash |
d_bash_12450 | ---
+++
@@ -3,8 +3,10 @@
export PKG_CONFIG_PATH=`opam config var prefix`/lib/pkgconfig
PKG_CONFIG_DEPS="mirage-xen-minios"
pkg-config --print-errors --exists ${PKG_CONFIG_DEPS} || exit 1
-CFLAGS=`pkg-config --cflags ${PKG_CONFIG_DEPS}`
+CFLAGS=`pkg-config --cflags mirage-xen-ocaml`
+MINIOS_CFLAGS=`pkg-config --cfl... | bash |
d_bash_12451 | ---
+++
@@ -13,14 +13,14 @@
echo_summary "Initialing Manila"
init_manila
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
- echo_summary "Starting Manila"
- start_manila
echo_summary "Creating Manila entities for auth service"
create_manila_accounts
e... | bash |
d_bash_12452 | ---
+++
@@ -1,39 +1,23 @@
#!/bin/sh
-docker_machine () {
- # Doing this will set the proper env variables
- # From that we will get DOCKER_MACHINE_NAME
- echo "Setting docker-machine runtime env..."
- eval $(docker-machine env default)
+set -e # Bail if something fails
- # Now we can use the env info ... | bash |
d_bash_12453 | ---
+++
@@ -1,4 +1,4 @@
- #!/bin/bash
+ #!/bin/sh
git remote add heroku https://git.heroku.com/yobucketlist.git
wget https://cli-assets.heroku.com/branches/stable/heroku-linux-amd64.tar.gz
mkdir -p /usr/local/lib /usr/local/bin | bash |
d_bash_12454 | ---
+++
@@ -1,7 +1,8 @@
#!/bin/bash
usage() {
- echo "usage: $0 dcs-file 'name-email'"
+ echo "usage: $0 <PURPOSE> dcs-file 'name-email'"
+ echo " PURPOSE: stable or devel which selects the archive."
echo " dsc-file: The path to source package DSC file."
echo " name-email: The 'name <email>'... | bash |
d_bash_12455 | ---
+++
@@ -3,7 +3,7 @@
case "$1" in
java8)
- echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u262-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u262b10.tar.gz"
+ echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u265-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u265b... | bash |
d_bash_12456 | ---
+++
@@ -5,6 +5,8 @@
# Custom Exports
export EDITOR=/usr/bin/vim
+export PATH="$PATH:$GOROOT/bin"
+export GOBIN="$GOPATH/bin"
# Custom Aliases
alias pbcopy='xclip -selection clipboard' | bash |
d_bash_12457 | ---
+++
@@ -8,10 +8,15 @@
yum -y install python36 python36-virtualenv which
}
+check_python_version() {
+ python3 tools/check_python_version.py 3 6
+}
+
# this script is copied by CI, we don't need it
rm -f env-toolkit
prep
+check_python_version
./detect-common-errors.sh
./detect-dead-code.sh
./mea... | bash |
d_bash_12458 | ---
+++
@@ -2,18 +2,61 @@
#
# Get last swift and components repositories cloned
#
-# Version 0.1 (2016-09-12)
+# Version 0.2 (2016-12-30)
#
# Dependencies: swift @ github/apple
+# approved_prs @ pick.ly
+# api @ github
#
source .profile
+export APPROVED_PRS_URL=http://pick.ly/sw... | bash |
d_bash_12459 | ---
+++
@@ -11,19 +11,31 @@
source "$nvm_dir/nvm.sh"
fi
-type clang > /dev/null
-if [ $? -eq 0 ]; then
- export CC=clang
- export CXX=clang++
-fi
+# clang compiler
+# type clang > /dev/null
+# if [ $? -eq 0 ]; then
+# export CC=clang
+# export CXX=clang++
+# fi
-#
-# export CC=gcc
-# export C... | bash |
d_bash_12460 | ---
+++
@@ -16,6 +16,7 @@
touch build_server_debian_ok
fi
+./switch_build.sh server
make dist > tmp
BASENAME=`awk -F'"' '{ for(i=1; i<NF; i++) if($i ~/urbackup-server-(.*)/) {print $i; exit;} }' tmp`
ANAME="${BASENAME}.tar.gz" | bash |
d_bash_12461 | ---
+++
@@ -2,6 +2,12 @@
# This script creates a small logical volume in the given LVM volume group
# in order to detect problems with LVM or the underlying RAID 0 device
# (mdadm does not indicate problems with the array even when drives drop out).
+
+LOG_TAG="`basename $0`"
+
+function log {
+ logger -t $LOG_TAG... | bash |
d_bash_12462 | ---
+++
@@ -1,3 +1,7 @@
#!/bin/sh
rm chromium-*
+rm ironframe_1.1.1.1-0ubuntu1.dsc
+rm ironframe_1.1.1.1-0ubuntu1.tar.gz
+rm ironframe_1.1.1.1-0ubuntu1_amd64.build
+rm ironframe_1.1.1.1-0ubuntu1_amd64.changes
rm -rf chrome-deb | bash |
d_bash_12463 | ---
+++
@@ -1,7 +1,10 @@
#!/bin/sh
echo "Build iOS"
-$(MAKE) -C Project-iOS
+make -C Project-iOS
+
+echo "Build OSX"
+make -C Project-MacOSX
echo "Validate PodSpec"
pod --version | bash |
d_bash_12464 | ---
+++
@@ -1,6 +1,19 @@
TEST_SOURCE_DIR=src
EXCLUDE="--exclude-function=dummy,dummy2"
GLOBAL_ARGS=${EXCLUDE}
+
+setup() {
+ if [ -z "$CCSM_EXE" ]; then
+ echo "# Please set the environment variable CCSM_EXE to point to the CCSM executable before running tests" >&3
+ assert [ ! -z "$CCSM_EXE" ]
+ elif [ ! ... | bash |
d_bash_12465 | ---
+++
@@ -3,17 +3,17 @@
# Install
#ln -vs ~/dotfiles/.??* ~/
-ln -vsf ~/.dotfiles/.bash_profile ~/
-ln -vsf ~/.dotfiles/.bashrc ~/
-ln -vsf ~/.dotfiles/.gitignore ~/
-ln -vsf ~/.dotfiles/.tmux.conf ~/
-ln -vsf ~/.dotfiles/.nix ~/
-ln -vsf ~/.dotfiles/.osx ~/
-ln -vsf ~/.dotfiles/.vim ~/
-ln -vsf ~/.dotfiles/.vi... | bash |
d_bash_12466 | ---
+++
@@ -6,7 +6,12 @@
NSX_CONTROLLER_IP=$(getent hosts ${NSX_CONTROLLER} | awk '{ print $1 }')
-SSH_OPTIONS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -q"
+SSH_OPTIONS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
sudo yum install -y -q sshpass
+
+echo "Joining cluster"
s... | bash |
d_bash_12467 | ---
+++
@@ -2,14 +2,14 @@
rm -f example-python.war
-curl -X POST \
+curl --fail -X POST \
--form pojo=@GBM_model_python_1463864606917_1.java \
--form jar=@h2o-genmodel.jar \
--form python=@score.py \
--form pythonextra=@vectorizer.pickle \
--form pythonextra=@lib/modelling.py \
--form pythonextra=@lib/__in... | bash |
d_bash_12468 | ---
+++
@@ -5,6 +5,18 @@
# Remove unnecessary packages.
apt-get -qq purge @PKGS_TO_REMOVE@
+
+# Install needed packages.
+# Enable additional packages like VirtualBox's.
+sed -i -e 's/ main/ main multiverse/' /etc/apt/sources.list
+apt-get update
+apt-get -qq --no-install-recommends install virtualbox-guest-dkms
... | bash |
d_bash_12469 | ---
+++
@@ -2,4 +2,4 @@
export PATH=./build/bin/:$PATH
export LD_LIBRARY_PATH=./build/lib/:$LD_LIBRARY_PATH
-erl -pa ./build/bin -noshell -s olegdb main -s init stop
+erl +K true -smp enable -pa ./build/bin -noshell -s olegdb main -s init stop | bash |
d_bash_12470 | ---
+++
@@ -32,6 +32,6 @@
$CPANM List::MoreUtils
# Install profiler and tools
-$CPANM Devel::NYTProf
+$CPANM --verbose Devel::NYTProf
$CPANM Devel::Cover
$CPANM lib::core::only | bash |
d_bash_12471 | ---
+++
@@ -2,7 +2,7 @@
set -e
-if [ -n "${ENABLE_XDEBUG}" ] && [ "${ENABLE_XDEBUG}" == "1" ];
+if [ -n "${ENABLE_XDEBUG}" ] && [ "${ENABLE_XDEBUG}" -eq "1" ];
then
mv /usr/local/etc/php/conf.d/xdebug.ini.disabled /usr/local/etc/php/conf.d/xdebug.ini
fi | bash |
d_bash_12472 | ---
+++
@@ -25,9 +25,8 @@
$CGS add-type "$INPUT_DIR/Tweet.graphql"
$CGS add-type "$INPUT_DIR/User.graphql"
+diff -rb . "$EXPECTED_OUTPUT_DIR" -x "db" -x "node_modules"
set +e
-
-diff -rb . "$EXPECTED_OUTPUT_DIR"
trap - EXIT
echo "Test Passed" | bash |
d_bash_12473 | ---
+++
@@ -8,14 +8,18 @@
for BOOSTER in `ls -d spring-boot-*-booster`
do
- pushd $BOOSTER
- for BRANCH in {redhat,sb-1.5.x}
- do
- if [ -e "$1" ]; then
- echo -e "${BLUE}Running ${YELLOW}${1}${BLUE} script on ${YELLOW}${BRANCH}${BLUE} of ${YELLOW}${BOOSTER}.${NC}"
- git fetc... | bash |
d_bash_12474 | ---
+++
@@ -1,18 +1,38 @@
#!/bin/bash
+
+# Set the tmpdir
+if [ -z "$TMPDIR" ]; then
+ TMPDIR="/tmp"
+fi
+
+# Create a temporary build dir and make sure we clean it up. For
+# debugging, comment out the trap line.
+DEPLOY=`mktemp -d $TMPDIR/serf-www-XXXXXX`
+trap "rm -rf $DEPLOY" INT TERM EXIT
# Get the parent d... | bash |
d_bash_12475 | ---
+++
@@ -32,7 +32,9 @@
if docker ps -a | awk '{print $NF}' | grep -q ^${name}$; then
echo "Have ${name}, restarting..."
docker start ${name} > /dev/null
- echo "Exit code: $(docker wait ${name})"
+ docker logs -f ${name} &
+ exit_code=$(docker wait ${name})
+ echo "Exit code: $exit_code"
else
echo "... | bash |
d_bash_12476 | ---
+++
@@ -22,5 +22,9 @@
sed -e "s@-s overlay@@" -i $ROOT/etc/kubernetes/dynamic-dropins/docker-flannel.conf
sed -e "s@-s overlay@@" -i $ROOT/etc/kubernetes/dynamic-dropins/docker-overlay.conf
+ elif [[ $MACHINENAME == "rpi" || $MACHINENAME == "rpi-2" ]]; then
+
+ # Enable memory and swap accounting
+ se... | bash |
d_bash_12477 | ---
+++
@@ -11,7 +11,7 @@
}
install_aniceto() {
- if (echo -e "Require Aniceto.List.\n" | coqtop 2>&1 | grep Error) && ! check_pkg coq-aniceto; then
+ if (echo -e "Require Aniceto.List.\n" | coqtop 2>&1 | grep Error); then
echo "Installing Aniceto..." &&
opam pin add --dev-repo coq-aniceto https://gi... | bash |
d_bash_12478 | ---
+++
@@ -2,6 +2,11 @@
STATIC_DIR='../server/static'
+
+# Create static directories
+if [ ! -d "$STATIC_DIR" ]; then
+ mkdir -p $STATIC_DIR/{img,css,js}
+fi
# Copy images
cp dist/static/img/* $STATIC_DIR/img/ | bash |
d_bash_12479 | ---
+++
@@ -1,2 +1,3 @@
#!/bin/sh
-java -classpath $DEVBASE/exec/DEV/java/classes:$DEVBASE/../RemoteTea/classes $*
+java -classpath $DEVBASE/exec/DEV/java/classes:$DEVBASE/external/RemoteTea/oncrpc.jar $*
+ | bash |
d_bash_12480 | ---
+++
@@ -1,6 +1,10 @@
autoload -Uz compinit && compinit
-export ASDF_DIR=$(brew --prefix asdf)
+if test -d "/usr/local/opt/asdf"; then
+ export ASDF_DIR=/usr/local/opt/asdf
+else
+ export ASDF_DIR=$(brew --prefix asdf)
+fi
. "$ASDF_DIR/asdf.sh"
. "$ASDF_DIR/etc/bash_completion.d/asdf.bash" | bash |
d_bash_12481 | ---
+++
@@ -6,7 +6,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u232-b09/OpenJDK8U-jdk_x64_linux_hotspot_8u232b09.tar.gz"
;;
java11)
- echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.5%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.5_10.t... | bash |
d_bash_12482 | ---
+++
@@ -2,7 +2,6 @@
if (( ${+commands[fbterm]} )); then
if [[ "$TTY" = /dev/tty* ]] ; then
- fbterm
- exit
+ fbterm && exit
fi
fi | bash |
d_bash_12483 | ---
+++
@@ -8,7 +8,7 @@
DB_PASSWORD=$(echo $KEY_DATA | jq -r '.entity.credentials.password')
DB_USERNAME=$(echo $KEY_DATA | jq -r '.entity.credentials.username')
DB_NAME=$(echo $KEY_DATA | jq -r '.entity.credentials.name')
-(cf ssh-code | pbcopy)
+(cf ssh-code | pbcopy) || cf ssh-code
ssh -f -o ExitOnForwardFailu... | bash |
d_bash_12484 | ---
+++
@@ -11,7 +11,7 @@
python3 -m virtualenv --python python3 venv3
-for v in 2 3 ; do
+for v in 3 ; do
venv="venv${v}"
python="$venv/bin/python${v}"
pip="$venv/bin/pip${v}" | bash |
d_bash_12485 | ---
+++
@@ -9,28 +9,31 @@
gnudir=$(pwd)
contribdir="${gnudir}/../../../contrib/binutils"
+platform="`uname -m`"
rm -rf build
mkdir build
+echo "binutils elf configuration for $platform"
+
(cd build
- ${contribdir}/configure i386-unknown-freebsdelf || exit
+ ${contribdir}/configure $platform-unknown-f... | bash |
d_bash_12486 | ---
+++
@@ -12,5 +12,5 @@
alias gfap='gfa --prune --tags'
alias gp='git pull'
alias gr='git remote -v'
-alias gpum='git pull upstream master'
+alias gpum='git pull upstream main'
| bash |
d_bash_12487 | ---
+++
@@ -19,7 +19,7 @@
git config user.email "ditaotbot@gmail.com"
git config user.name "DITA-OT Bot"
# Add (stage) all untracked & modified files and remove all missing files
- git add --all $SITE_DIR/dev
+ git add --all
# Commit generated site output
git commit -a -m "Deploy dita-ot/docs@${TRAVI... | bash |
d_bash_12488 | ---
+++
@@ -4,3 +4,4 @@
node loadProfiles.js
node loadUsers.js
node loadUsersDojos.js
+node loadGeonames.js | bash |
d_bash_12489 | ---
+++
@@ -12,9 +12,8 @@
rm -rf dist
mkdir -p dist
-buildkite-agent artifact download "dist/*" .
-buildkite-agent artifact download "buildkite-agent-metrics-*" .
-
+buildkite-agent artifact download handler.zip ./dist
+buildkite-agent artifact download "buildkite-agent-metrics-*" ./dist
docker run -v "$PWD:$P... | bash |
d_bash_12490 | ---
+++
@@ -15,22 +15,19 @@
trap "docker rm -vf $cid > /dev/null" EXIT
_request() {
- local method="$1"
- shift
-
local url="${1#/}"
shift
docker run --rm --link "$cid":tomcat "$clientImage" \
- curl -fs -X"$method" "$@" "http://tomcat:8080/$url"
+ wget -q -O - "$@" "http://tomcat:8080/$url"
}
# Mak... | bash |
d_bash_12491 | ---
+++
@@ -11,4 +11,6 @@
`find project/jni/application -maxdepth 1 -type f -o -type l` \
project/jni/application/src \
project/jni/application/`readlink project/jni/application/src` \
-project/AndroidManifest.xml project/src "$@"
+project/AndroidManifest.xml project/src \
+project/obj/local/armeabi-v7a/*.so proj... | bash |
d_bash_12492 | ---
+++
@@ -2,8 +2,10 @@
LANG=C
SED="/usr/bin/sed -i.orig"
SPATCH="spatch --very-quiet --timeout 120 --in-place"
-for sp in ${LOCALPATCHES}/${PKGPATH}/*.sed ${SPATCHES}/*.sed \
- ${LOCALPATCHES}/${PKGPATH}/*.cocci ${SPATCHES}/*.cocci; do
+find -L "${LOCALPATCHES}/${PKGPATH}" "${SPATCHES}" | \
+ grep '\.\(sed... | bash |
d_bash_12493 | ---
+++
@@ -4,4 +4,10 @@
set -x
echo DEPLOY_TO=$DEPLOY_TO
-prove -lr tests/integration/ratified/ tests/integration/sample/ tests/integration/config_rules/ tools/test-log.pl
+
+prove -lr${CONCURRENT_TESTS:-} \
+ tests/integration/config_rules/ \
+ tests/integration/ratified/ \
+ tests... | bash |
d_bash_12494 | ---
+++
@@ -5,7 +5,7 @@
lang="${1}"
-if [[ -z "${lang}" ]] then
+if [[ -z "${lang}" ]]; then
echo "language not informed"
printf "usage: %s <language> <rev>\n" ${0}
return | bash |
d_bash_12495 | ---
+++
@@ -10,28 +10,20 @@
# agvtool
function version() {
- # agvtool_path="/usr/bin/agvtool"
- agvtool_path=$(which agvtool)
+ agvtool_path=$(which agvtool) # "/usr/bin/agvtool"
build_version=$(agvtool what-version -terse)
market_version=$(agvtool what-marketing-version -terse1)
- echo "$market_version ($bu... | bash |
d_bash_12496 | ---
+++
@@ -22,4 +22,4 @@
python manage.py createddsendpoint "Duke Data Service" $D4S2_DDSCLIENT_URL $D4S2_DDSCLIENT_PORTAL_ROOT $D4S2_DDSCLIENT_AGENT_KEY $D4S2_DDSCLIENT_OPENID_PROVIDER_SERVICE_ID $D4S2_DDSCLIENT_OPENID_PROVIDER_ID
# 4. Launch gunicorn
-gunicorn -b 0.0.0.0:8000 d4s2.wsgi:application
+gunicorn -b... | bash |
d_bash_12497 | ---
+++
@@ -6,7 +6,7 @@
mkdir ../build
cd ../build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -Dall=On -Dtesting=On -Dx11=Off -Dalien=Off \
- -Dcuda=Off -Dtmva-gpu=Off ../root
+ -Dcuda=Off -Dtmva-gpu=Off -Dveccore=Off ../root
# We need to prebuild a minimal set of targets which are responsible for header ... | bash |
d_bash_12498 | ---
+++
@@ -7,7 +7,7 @@
#echo $query >> .query.tmp
echo -e "\tassert_result '$query'"
echo -e "\t\tMust be: '$value' "
-RES=`echo "$query" | psql --no-align -t 2>&1`
+RES=`echo "$query" | psql -q --no-align -t 2>&1`
if [ $? = 0 ]; then
if [ "$RES" = "$value" ]; then | bash |
d_bash_12499 | ---
+++
@@ -8,5 +8,6 @@
# Script only for mac
source $BS_ZSH_BASE/zsh-config/platform.mac.sh
+source $BS_ZSH_BASE/zsh-config/personalized.sh
| bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.