document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_9300 | ---
+++
@@ -15,7 +15,14 @@
alias gs='git status -sb'
alias gcb='git-copy-branch-name'
alias gpr='gp && open-pr'
+alias gpermres='git permission-resetb'
gi() {
curl -s "https://www.gitignore.io/api/$*";
}
+
+git config --global --add alias.permission-resetb \
+ '!git diff -p --no-ext-diff --no-color --dif... | bash |
d_bash_9301 | ---
+++
@@ -22,3 +22,10 @@
exit 1
fi
+if ls -AZ /var/lib/mysql/mysql.sock | grep -e mysqld_db_t ; then
+ echo "mysql.sock has expected mysqld_db_t context"
+else
+ echo "mysql.sock has wrong context"
+ exit 1
+fi
+ | bash |
d_bash_9302 | ---
+++
@@ -9,7 +9,7 @@
echo "possible subcomponents are:"
echo
echo "base bin etc games gnu include lib libexec lkm release"
- echo "sbin share smailcf sys subin susbin"
+ echo "sbin share smailcf sys ubin usbin"
echo
exit 1
fi | bash |
d_bash_9303 | ---
+++
@@ -10,3 +10,5 @@
# Install
sudo apt-get -y install lxc-docker
+sudo apt-get -y install linux-image-extra-`uname -r`
+sudo modprobe aufs | bash |
d_bash_9304 | ---
+++
@@ -9,3 +9,14 @@
brew cask install --appdir="/Applications" karabiner
brew cask install --appdir="/Applications" seil
brew cask install --appdir="/Applications" shady
+brew cask install --appdir="/Applications" google-chrome
+brew cask install --appdir="/Applications" shiftit
+brew cask install --appdir="/... | bash |
d_bash_9305 | ---
+++
@@ -8,7 +8,7 @@
case ${BRANCH} in
*mitaka)
echo "Using mitaka repos"
- yum install -y http://rdoproject.org/repos/rdo-release-mitaka.rpm
+ yum install -y http://rdoproject.org/repos/openstack-mitaka/rdo-release-mitaka.rpm
;;
*liberty)
echo "Using liberty repos"
... | bash |
d_bash_9306 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
# Set up the Puppet Master
-vagrant ssh puppet -c "sudo service iptables stop; \
+vagrant ssh puppet -c "sudo apt-get update; \
sudo apt-get install -y puppetmaster; \
sudo rmdir /etc/puppet/modules || sudo unlink /etc/puppet/modules; \
sudo ln -s /vagrant/modules /etc/puppe... | bash |
d_bash_9307 | ---
+++
@@ -3,7 +3,11 @@
alias vmbr='vmbuildrun'
function vmbuild() {
- ssh vm ". ~/.bash_profile && build '$@'"
+ if (( $# == 0 )) then
+ ssh vm ". ~/.bash_profile && build"
+ else
+ ssh vm ". ~/.bash_profile && build '$@'"
+ fi
}
function vmrun() { | bash |
d_bash_9308 | ---
+++
@@ -3,6 +3,15 @@
# Add .pyo files generated on CentOS 5.x
# This is a workaround until someone comes with a better fix, like avoiding
# /usr/lib/rpm/brp-python-bytecompile to run or convincing people that CentOS is pure evil.
-(cd "$RPM_BUILD_ROOT" && find -type f -name '*.pyc' | cut -b2-|sed -e 's/pyc$/py... | bash |
d_bash_9309 | ---
+++
@@ -5,10 +5,18 @@
command -v "$1" >/dev/null 2>&1
}
-! have shellcheck && have brew && brew install shellcheck
-have shellcheck && find . -perm -u=x -type f | grep --invert-match '\.git' | xargs shellcheck
+find_scripts () {
+ find . -perm -u=x -type f | grep --invert-match '\.git'
+}
+
+! have shellch... | bash |
d_bash_9310 | ---
+++
@@ -2,5 +2,5 @@
OPENVIDU_RECORDING_UBUNTU_VERSION=$1
OPENVIDU_RECORDING_CHROME_VERSION=$2
OPENVIDU_RECORDING_DOCKER_TAG=$3
-docker build --rm --build-arg CHROME_VERSION="$OPENVIDU_RECORDING_DOCKER_TAG" -f $UBUNTU_VERSION.Dockerfile -t openvidu/openvidu-recording:$OPENVIDU_RECORDING_DOCKER_TAG .
+docker bui... | bash |
d_bash_9311 | ---
+++
@@ -24,9 +24,14 @@
# copy the doc directory from the workspace
cp -R ../../$repo/doc/* . >/dev/null
+# copy all source files from src/js to the cdn directory here
+ln -s ../../$repo/src/js src
+ls src | while read a; do uglify -s src/$a -o ${a%.js}.min.js; done
+rm src
+
# send it up
git add . >/dev/nul... | bash |
d_bash_9312 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/bash
+# Assumes that the database name and password are dept in a secure directory
+set -e
SQL_DIR="$HOME/mysql"
SQL_REPO="$SQL_DIR/SCOOP-data-quality/PolypharmacySQLQueries"
-mysql -h 127.0.0.1 -P 3307 -u oscarb --database=`"$SQL_DIR"/db_name` -vvv -t -AU --password=`"$SQL_DIR"/pass... | bash |
d_bash_9313 | ---
+++
@@ -1,11 +1,14 @@
# Make sure our non-stack script is in a place stack can find it
ln -sf /home/rlpowell/src/hblog/munge_files.sh ~/.local/bin/munge_files
+
+find /home/rlpowell/src/hblog/tests/ /dropbox/src/hblog/tests/ -type f | xargs chmod a-x
echo "Unpacking git zips."
oldpwd=$(pwd)
find tests/ -... | bash |
d_bash_9314 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+
+function die() { echo $*; exit -1; }
# On multiuser machines, output and grep on $USER too
MPV_PID=$(ps axo '%p %c'|grep [m]pv$|awk '{print $1}')
@@ -23,13 +25,13 @@
)
# Use zenity because the terminal cannot be controlled with mpv running.
EMAIL=$(zenity --entry... | bash |
d_bash_9315 | ---
+++
@@ -5,16 +5,17 @@
case "${os}" in
linux32)
- cmake -DOPT:STRING=release -DTARGET:STRING=linux32 .
+ cmake -DOPT:STRING=release -DTARGET:STRING=linux32 -DCMAKE_CXX_COMPILER=g++-5 .
make clean
make zip
;;
linux64)
- cmake -DOPT:STRING=release -DTARGET:STRING=linux64 .
+ cmake... | bash |
d_bash_9316 | ---
+++
@@ -2,7 +2,7 @@
echo "building addin..."
python ./makeaddin.py
echo "signing addin..."
-"/c/Program Files (x86)/Common Files/ArcGIS/bin/ESRISignAddin.exe" c:\\data\\arcgis\\addins\\btm.esriaddin /c:c:\\data\\arcgis\\addins\\cert.cer
+"/c/Program Files (x86)/Common Files/ArcGIS/bin/ESRISignAddin.exe" Z:\\da... | bash |
d_bash_9317 | ---
+++
@@ -6,7 +6,6 @@
eval `opam config env`
export OPAMYES="true"
-opam pin add -k git biocaml https://github.com/biocaml/biocaml/
make setup
make build | bash |
d_bash_9318 | ---
+++
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -eu
+sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:jonathonf/vim
sudo apt-get update
-sudo apt-get install vim
+sudo apt-get install -y vim | bash |
d_bash_9319 | ---
+++
@@ -9,7 +9,7 @@
exit 1
fi
-while getopts ":whvfts-:" opt; do
+while getopts ":wtfvhs-:" opt; do
case "$opt" in
-)
case "${OPTARG}" in | bash |
d_bash_9320 | ---
+++
@@ -1,9 +1,11 @@
#!/bin/bash
+echo 'rebuilding ssr cache'
+sleep 5
+curl --insecure https://$HOST_IP >> /dev/null
+curl --insecure https://$HOST_IP/cv >> /dev/null
+echo 'ssr cache rebuilt'
+echo 'clearing cloudflare cache'
curl -X POST https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/purge_... | bash |
d_bash_9321 | ---
+++
@@ -10,5 +10,5 @@
fi
# run
-java -cp $DIR/resources:$JAR \
+java -Xms1g -cp $DIR/resources:$JAR \
edu.usc.irds.sparkler.Main $@ | bash |
d_bash_9322 | ---
+++
@@ -10,6 +10,6 @@
test -d $SOURCE || mkdir $SOURCE
# Try to start an existing/stopped container with the given name $CONTAINER. Otherwise, run a new one.
-docker start -i $CONTAINER 2>/dev/null || docker run -v $SOURCE:/home/cmbuild/android -i -t -name $CONTAINER $REPOSITORY sh -c "screen -s /bin/bash"
+d... | bash |
d_bash_9323 | ---
+++
@@ -1,4 +1,10 @@
#!/bin/bash
+
+cat > /etc/gemrc <<EOF
+install: --no-rdoc --no-ri
+update: --no-rdoc --no-ri
+EOF
+
{
export RUBY_CFLAGS="-O3 -Wno-error=shorten-64-to-32 $RUBY_CFLAGS"; | bash |
d_bash_9324 | ---
+++
@@ -5,7 +5,6 @@
#
# Author: acch
# Depends: sync.sh, inotify-tools
-# Version: 1.0
#
# To activate automatic snycing, run this script upon startup (gnome-session-properties)
#
@@ -37,7 +36,7 @@
exit 1
fi
-su $local_user sh -c $basedir/sync.sh
+$basedir/sync.sh
while true
do
@@ -45,7 +44,7 @@
... | bash |
d_bash_9325 | ---
+++
@@ -4,7 +4,7 @@
[
{
"metric_name": "test_metric",
- "schedule": "*/30 * * * * ?",
+ "schedule": "*/10 * * * * ?",
"start_relative": {
"value": 5,
"unit": "minutes" | bash |
d_bash_9326 | ---
+++
@@ -15,5 +15,5 @@
cd docker/$DOCKER_VERSION
-sed "s/FROM .*/FROM $JENKINS_BASE_IMAGE/" Dockerfile | \
+sed "s/FROM .*/FROM $JENKINS_BASE_IMAGE\nUSER root/" Dockerfile | \
docker build -t $BUILD_IMAGE_NAME - | bash |
d_bash_9327 | ---
+++
@@ -45,3 +45,6 @@
bindkey "^E" end-of-line
bindkey "^R" history-incremental-search-backward
bindkey "^P" history-search-backward
+bindkey "^Y" accept-and-hold
+bindkey "^N" insert-last-word
+bindkey -s "^T" "^[Isudo ^[A" # "t" for "toughguy" | bash |
d_bash_9328 | ---
+++
@@ -1,8 +1,8 @@
#!/bin/sh
#
-# $Id: $
+# $Id$
-ARCHIVE=d:/temp/q3.zip
+ARCHIVE=d:/home/src/q3-`pwd | sed -e 's#.*/\([^/]*\)/[^/]*#\1#'`.zip
GLOBALS=" \
version \ | bash |
d_bash_9329 | ---
+++
@@ -14,5 +14,5 @@
node --version
npm --version
-npm install
+yarn install
npm test & npm run e2e | bash |
d_bash_9330 | ---
+++
@@ -5,6 +5,7 @@
print_header "Activating memcached extension" "Sylius"
run_command "echo \"extension = memcached.so\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini" || exit $?
+run_command "echo \"memory_limit=4096M\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini"... | bash |
d_bash_9331 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
-jagen_overlays='ast/board/ast2xx toolchain/arm-hisiv200-linux sdk/android ast/common product/android ast/product/hisilicon'
+jagen_overlays='ast/board/ast2xx toolchain/arm-hisiv200-linux sdk/android product/android ast/common ast/product/hisilicon'
jagen_toolchain_dir='$jagen_ba... | bash |
d_bash_9332 | ---
+++
@@ -1,7 +1,7 @@
#/bin/bash
input=$1
-output=${input}".sig"
+output=${input%.*}".smi"
smlsharp < ${input} | tail -n +2 | sed 's/^#[ >]*\(.*\)/\1/g' | \
sed 's/\[//g' | sed 's/\]//g' | sed 's/'\''[a-z]\.//g' | | bash |
d_bash_9333 | ---
+++
@@ -15,6 +15,6 @@
}
-for VERSION in 1.8.7 1.9.3 2.0.0 2.1.1; do
+for VERSION in 2.2.9 2.3.6 2.4.3 2.5.0; do
testversion $VERSION
done | bash |
d_bash_9334 | ---
+++
@@ -13,7 +13,7 @@
GIT_ARCHIVE="$1"
DISTNAME="$2"
-git archive --prefix="${DISTNAME}/" HEAD | tar -xp
+git archive --prefix="${DISTNAME}/" HEAD | tar -xp --exclude '*minisketch*'
# Generate correct build info file from git, before we lose git
GIT_BUILD_INFO="$(share/genbuild.sh /dev/stdout)" | bash |
d_bash_9335 | ---
+++
@@ -1,19 +1,23 @@
#!/bin/bash -eu
#
-# Invocation ./teamcity.sh qdbd_args --- qdb-benchmark_args
+# Invocation ./teamcity.sh qdbd_args -- qdb-benchmark_args
set -eu
declare -a QDBD_ARGS
declare -a BENCH_ARGS
+QDBD_ARGS+=("--security=false")
+QDBD_ARGS+=("--log-flush-interval=1")
+QDBD_ARGS+=("--sto... | bash |
d_bash_9336 | ---
+++
@@ -1,19 +1,21 @@
#!/bin/bash
-VERSION_NAME="${DEFINITION##*/}"
-VERSIONS_DIR="${RBENV_ROOT}/versions"
-OSX_RELEASE=`sw_vers -productVersion | cut -f 1-2 -d '.'`
+if [ -z "$SKIP_PRECOMPILED_RUBIES" ]; then
+ VERSION_NAME="${DEFINITION##*/}"
+ VERSIONS_DIR="${RBENV_ROOT}/versions"
+ OSX_RELEASE=`sw_vers ... | bash |
d_bash_9337 | ---
+++
@@ -8,10 +8,6 @@
cp -p ${ADDED_DIR}/standalone-openshift.xml $JBOSS_HOME/standalone/configuration/
-cp ${JBOSS_HOME}/dataVirtualization/dataServiceBuilder/vdb-bench-war.war ${JBOSS_HOME}/standalone/deployments/ds-builder.war
-cp ${JBOSS_HOME}/dataVirtualization/dataServiceBuilder/vdb-bench-doc.war ${JBOS... | bash |
d_bash_9338 | ---
+++
@@ -7,4 +7,4 @@
/app/wait-for-dependencies.sh
fi
-java -XshowSettings:vm -XX:+PrintGCDetails -XX:+PrintGCDateStamps -jar /app/akvo-lumen.jar
+java -Xlog:gc=info -jar /app/akvo-lumen.jar | bash |
d_bash_9339 | ---
+++
@@ -26,4 +26,4 @@
autoreconf -fi || exit $?
cd "$olddir"
-test -n "$NOCONFIGURE" || "./configure" "$@"
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@" | bash |
d_bash_9340 | ---
+++
@@ -27,7 +27,8 @@
[ -e "$file" ] && die 2 "ERROR: $file already exists"
cat << _EOF_ >> $file # Be paranoid about not over-writing
-CREATE OR REPLACE FUNCTION $name(
+\set function_name $name
+CREATE OR REPLACE FUNCTION :function_name(
) RETURNS LANGUAGE plpgsql AS \$body$
DECLARE
BEGIN
@@ -35,7 +36,7... | bash |
d_bash_9341 | ---
+++
@@ -5,7 +5,12 @@
apt-get -y remove landscape-common
if [ "$(lsb_release -rs)" == "12.04" ] ; then
- apt-get -y install denyhosts cloud-utils cloud-initramfs-growroot
+ apt-get -y install denyhosts cloud-initramfs-growroot python-requests \
+ software-properties-common python-prettytable python-seri... | bash |
d_bash_9342 | ---
+++
@@ -13,4 +13,4 @@
sudo virsh destroy ${NODE_HOSTNAME}
sudo virsh undefine ${NODE_HOSTNAME}
-sudo rm -rf ${LIBVIRT_PATH}/${NODE_HOSTNAME}*
+sudo sh -c "rm -rf ${LIBVIRT_PATH}/${NODE_HOSTNAME}*" | bash |
d_bash_9343 | ---
+++
@@ -22,4 +22,5 @@
betterdiscord ttf-symbola \
systemd-boot-pacman-hook wd719x-firmware aic94xx-firmware \
pepper-flash chromium-widevine \
-colormake
+colormake \
+visual-studio-code-bin | bash |
d_bash_9344 | ---
+++
@@ -6,7 +6,9 @@
for F in $CFILES
do
- echo "Running test in $F"
+ echo
+ echo "*** Running test in $F ***"
+ echo
gcc -DUNIT_TEST -Wall -Wextra -Werror -g $F
valgrind --leak-check=full --show-reachable=yes --error-exitcode=1 ./a.out
done | bash |
d_bash_9345 | ---
+++
@@ -17,6 +17,7 @@
# to avoid pulls happening in speed tests
docker pull cyberdojofoundation/gcc_assert
docker pull cyberdojofoundation/csharp_nunit
+ docker pull cyberdojofoundation/visual-basic_nunit
docker pull cyberdojofoundation/python_pytest
docker pull cyberdojofoundation/clang_assert
... | bash |
d_bash_9346 | ---
+++
@@ -2,6 +2,7 @@
WEB_DIR=PROJECT_DIR/web
GOPATH=$WORKSPACE
+mkdir -p $PROJECT_DIR/log
mkdir -p $WEB_DIR/static
mkdir -p $WEB_DIR/savedfiles
mkdir -p $WEB_DIR/gobin | bash |
d_bash_9347 | ---
+++
@@ -3,7 +3,7 @@
ami_id=${1}
-function finish {
+finish() {
code=$?
summon env AMI_ID=${ami_id} chef exec kitchen destroy
return ${code} | bash |
d_bash_9348 | ---
+++
@@ -1,4 +1,5 @@
#! sh
-COVERALLS_REPO_TOKEN=WRITE_YOUR_SECRET_TOKEN_HERE
-NODE_ENV=test YOURPACKAGE_COVERAGE=1 mocha --es_staging --harmony --recursive -r blanket -R node_modules/.bin/mocha-lcov-reporter -C test | node_modules/.bin/coveralls
+export COVERALLS_SERVICE_NAME=local
+export COVERALLS_REPO_TOKEN... | bash |
d_bash_9349 | ---
+++
@@ -1,9 +1,10 @@
#!/bin/bash
# Assumes that the database name and password are kept in a secure directory
set -e
+DATETIME=`date +"%Y%m%d%H%M"`
SQL_DIR="$HOME/mysql"
DB_NAME=`cat $SQL_DIR/db_name`
PASSWD=`cat $SQL_DIR/passwd`
SQL_REPO="$SQL_DIR/SCOOP-data-quality/PolypharmacySQLQueries"
cd $SQL_REPO
-... | bash |
d_bash_9350 | ---
+++
@@ -3,13 +3,17 @@
set -x
cd "$(dirname "$(readlink -f "$0")")/tests"
+let cnt=0
for i in *.sh; do
- echo -e "\n>> Running test $i\n"
+ cnt=$(($cnt + 1))
+ echo -e "\n>> Running test #$cnt \"$i\"\n"
./${i}
retval=$?
if [ $retval != 0 ]; then
- echo "Failed $i with exit cod... | bash |
d_bash_9351 | ---
+++
@@ -5,5 +5,5 @@
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
CODECLIMATE_REPO_TOKEN="2a816e25a4bcd8ded5ca51664e7f432c134d024ec16b76309dfb18665b0f9c9a" vendor/bin/test-reporter --stdout > codeclimate.json
- "curl -X... | bash |
d_bash_9352 | ---
+++
@@ -7,7 +7,7 @@
#
# Run ./set-defaults.sh and you'll be good to go.
-# Disable press-and-hold for keys in favor of key repeat
+# Disable press-and-hold for keys in favor of key repeat.
defaults write -g ApplePressAndHoldEnabled -bool false
# Use AirDrop over every interface. srsly this should be a def... | bash |
d_bash_9353 | ---
+++
@@ -1,5 +1,6 @@
CURRENT_PATH=$(pwd)
-FILES=("$HOME/.bashrc" "$HOME/.vimrc" "$HOME/.tmux.conf")
+FILES=("/.bashrc" "/.vimrc" "/.tmux.conf")
+INPUT_TYPE="$1"
# $1 => question
function confirm(){
@@ -15,25 +16,41 @@
# Check if .bashrc or .vimrc exits before create symlink
function check_rc_exist(){
for... | bash |
d_bash_9354 | ---
+++
@@ -4,12 +4,12 @@
sudo apt-get update
sudo apt-get install -y clang-10 clang-format-10 cmake git golang-go
sudo apt-get install -y libboost-dev libgmp-dev libprotobuf-dev llvm-10
-sudo apt-get install -y protobuf-compiler python python-pip python-protobuf
+sudo apt-get install -y protobuf-compiler python3... | bash |
d_bash_9355 | ---
+++
@@ -3,15 +3,22 @@
set -o errexit
set -o nounset
+SOURCE="${BASH_SOURCE[0]}"
+while [ -h "$SOURCE" ]; do
+ DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
+ SOURCE="$(readlink "$SOURCE")"
+ [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
+done
+readonly OWN_DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
+
func... | bash |
d_bash_9356 | ---
+++
@@ -4,7 +4,7 @@
theme=stackoverflow
script_dir="$(cd "$(dirname "${0}")" && pwd)"
-export PATH="${PATH}:${PWD}/node_modules/.bin"
+export PATH="${PATH}:${script_dir}/node_modules/.bin"
command_exists()
{ | bash |
d_bash_9357 | ---
+++
@@ -29,7 +29,7 @@
tar -xzvf hdf5-$HDF5_VERSION.tar.gz
pushd hdf5-$HDF5_VERSION
chmod u+x autogen.sh
- ./configure --prefix --enable-tests=no $HDF5_DIR $EXTRA_MPI_FLAGS
+ ./configure --prefix $HDF5_DIR --enable-tests=no $EXTRA_MPI_FLAGS
make -j $(nproc)
... | bash |
d_bash_9358 | ---
+++
@@ -1,16 +1,15 @@
#!/bin/sh
set -e
NATIVE_CHANGES="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-bullet-native/)"
-# if [ "$NATIVE_CHANGES" != "" ]; then
+if [ "$NATIVE_CHANGES" != "" ]; then
git config --global user.email "travis-ci"
git config --global user.name "travis-ci"
./gradle... | bash |
d_bash_9359 | ---
+++
@@ -6,7 +6,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u192-b12/OpenJDK8U-jdk_x64_linux_hotspot_8u192b12.tar.gz"
;;
java11)
- echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.1%2B13/OpenJDK11U-jdk_x64_linux_hotspot_11.0.1_13.t... | bash |
d_bash_9360 | ---
+++
@@ -1,3 +1,7 @@
+#!/bin/bash
+
+set -ex
+
sudo stop docker
sudo rm -rf /var/lib/docker
sudo rm -f `which docker` | bash |
d_bash_9361 | ---
+++
@@ -45,7 +45,7 @@
npm run docs
# Run the link check
- pip install -q pytest-check-links
- py.test --check-links -k .md .
+ #pip install -q pytest-check-links
+ #py.test --check-links -k .md .
fi
| bash |
d_bash_9362 | ---
+++
@@ -3,8 +3,8 @@
main() {
source grpc_docker.sh
test_cases=(large_unary empty_unary ping_pong client_streaming server_streaming)
- clients=(cxx java go ruby)
- servers=(cxx java go ruby)
+ clients=(cxx java go ruby node)
+ servers=(cxx java go ruby node)
for test_case in "${test_cases[@]}"
do
... | bash |
d_bash_9363 | ---
+++
@@ -1,7 +1,26 @@
#!/bin/bash
-bbuild src/gdiff
+if [[ -z "$*" ]]; then
+ echo "Please specify a file to compile"
+ exit 1
+fi
+
+bfile="$1"
+bname="$(basename "$bfile")"
+
+if [[ ! -f "$bfile" ]]; then
+ echo "Not a file [$bfile]"
+ exit 2
+fi
+
+# =======
+
+bbuild "$bfile"
mkdir -p test/
-mv gdiff.tgz t... | bash |
d_bash_9364 | ---
+++
@@ -8,9 +8,6 @@
java11)
echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.9.1%2B1/OpenJDK11U-jdk_x64_linux_hotspot_11.0.9.1_1.tar.gz"
;;
- java14)
- echo "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.2%2B12/OpenJDK14U-jdk_x64_linux_h... | bash |
d_bash_9365 | ---
+++
@@ -16,7 +16,9 @@
echo "Updating $project"
if [[ -d "$project_folder" ]]; then
cd $project_folder
- /usr/bin/git pull origin master
+ tracking_branch=$(/usr/bin/git rev-parse --abbrev-ref --symbolic-full-name @{u})
+ /usr/bin/git fetch origin
+ /usr/bin/git merge $tracking_branch
else
/usr/bin... | bash |
d_bash_9366 | ---
+++
@@ -3,11 +3,12 @@
VERSIONS_FILE='versions.csv'
TMP_VERSIONS_FILE='/tmp/newversions.tmp'
PLUGIN_DIR='plugins'
+PROWL_API_KEY='<Your Prowl API key here>'
function inform_user () {
local name=$1
local version=$2
- echo "New Version for $name ($version)."
+ curl -s -d "apikey=$PROWL_API_KEY&application=... | bash |
d_bash_9367 | ---
+++
@@ -7,8 +7,6 @@
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
pyenv install pypy-2.5.0
- mkdir ~/jython_test
- cd ~/jython_test
pyenv global pypy-2.5.0
eval "$(pyenv init -)" | bash |
d_bash_9368 | ---
+++
@@ -3,7 +3,7 @@
if [ -z "${SONAR_PROJECT_KEY}" ]; then
echo "Undefined \"projectKey\"" && exit 1
else
- COMMAND="sonar-scanner -Dsonar.sourceEncoding=UTF-8 -Dsonar.exclusions=\"zoe_api/web/static/**\" -Dsonar.host.url=\"$SONARQUBE_SERVER_URL\" -Dsonar.login=\"$SONARQUBE_USER\" -Dsonar.password=\"$SONARQ... | bash |
d_bash_9369 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/bash -x
PWD=`pwd`
export CGO_LDFLAGS="-L$PWD"
+export CGO_CFLAGS="-I$PWD"
cd sample
go build
./sample | bash |
d_bash_9370 | ---
+++
@@ -3,7 +3,7 @@
THIS_SCRIPT_PATH=`readlink -f $0`
THIS_SCRIPT_DIR=`dirname ${THIS_SCRIPT_PATH}`
cd pyinstaller
-git checkout v3.0
+git checkout v3.2
cd ${THIS_SCRIPT_DIR}
rm -r build | bash |
d_bash_9371 | ---
+++
@@ -1,10 +1,32 @@
#!/bin/sh
-sleep 10
-if curl $1 | grep -q '<app-root></app-root>'; then
- printf "\033[0;32mSmoke test passed!\033[0m"
- exit 0
+printf "Waiting 20sec for %s to launch" "$1"
+for i in {1..20}; do
+ sleep 1;
+ printf "."
+done
+printf "\n"
+
+EXIT=0
+if curl "$1" | grep -q '<app-root><... | bash |
d_bash_9372 | ---
+++
@@ -5,7 +5,7 @@
}
function _update_zsh_update() {
- echo "LAST_EPOCH=$(_current_epoch)" > ~/.zsh-update
+ echo "LAST_EPOCH=$(_current_epoch)" >! ~/.zsh-update
}
function _upgrade_zsh() { | bash |
d_bash_9373 | ---
+++
@@ -33,3 +33,9 @@
check penkki -t 2 -f html -c ls,df,du
check penkki -t 2 -f json -c ls,df,du
check penkki -t 2 -f bars -c ls,df,du
+
+# outside script dir
+
+pushd "$HOME" > /dev/null
+check penkki ls
+popd > /dev/null | bash |
d_bash_9374 | ---
+++
@@ -1,8 +1,14 @@
#!/bin/bash -x
+
+sudo fuser -m `pwd`/build
# Only attempt to unmount if the directory is already mounted
if mountpoint -q `pwd`/build; then
- sudo umount build
+ sudo umount `pwd`/build
fi
+sudo fuser -m `pwd`/build
+
+ps -ef
+
exit 0 | bash |
d_bash_9375 | ---
+++
@@ -4,4 +4,4 @@
wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1ubuntu12.04_all.deb
sudo dpkg --install mysql-apt-config_0.2.1-1ubuntu12.04_all.deb
sudo apt-get update -q
-sudo apt-get install -q -y -o Dpkg::Options::=--force-confnew mysql-server
+sudo apt-get install -q -y -o Dpkg::Options::=--force... | bash |
d_bash_9376 | ---
+++
@@ -14,7 +14,7 @@
# Check if sed is available
sed --version >/dev/null 2>&1
if [ $? -ne 0 ]; then
- echo "Sed is not available"
+ echo "Sed is not available, please remove the CLASSPATH entries manually from $config"
exit
fi
@@ -27,10 +27,18 @@
echo "Problem with removing the file $folder/$fil... | bash |
d_bash_9377 | ---
+++
@@ -6,4 +6,4 @@
git config merge.celerity.name "Celerity Mapper"
git config merge.celerity.driver \
- '$GIT_DIR/../scripts/celerity_mapper.php $GIT_DIR/../webroot'
+ 'php $GIT_DIR/../scripts/celerity_mapper.php $GIT_DIR/../webroot' | bash |
d_bash_9378 | ---
+++
@@ -26,7 +26,5 @@
chmod +x /usr/local/bin/phpunit
# Install extensions
-#pecl install xdebug
-#echo "zend_extension=/usr/lib/php7/modules/xdebug.so" > /usr/local/etc/php/conf.d/xdebug.ini
-#docker-php-ext-install xsl
-#docker-php-ext-install zip
+docker-php-ext-install xsl
+docker-php-ext-install zip | bash |
d_bash_9379 | ---
+++
@@ -12,7 +12,7 @@
elif [[ $1 == date ]]; then
date +%Y%m%d
else
- date +%T
+ date +%H:%M:$(($(date +%s)/10000000))
fi
}
| bash |
d_bash_9380 | ---
+++
@@ -21,6 +21,14 @@
fi
echo
+echo '### Rosetta installation status'
+if [[ $(/usr/bin/pgrep oahd) ]]; then
+ printf "Installed\n"
+else
+ printf "Not Installed\n"
+fi
+
+echo
echo '### macOS version'
/usr/bin/sw_vers -productVersion
| bash |
d_bash_9381 | ---
+++
@@ -7,11 +7,10 @@
# clean up redhat interface persistence
rm -f /etc/udev/rules.d/70-persistent-net.rules
-if [ -r /etc/sysconfig/network-scripts/ifcfg-eth0 ]; then
- sed -i '/^HWADDR/d' /etc/sysconfig/network-scripts/ifcfg-eth0
- sed -i '/^UUID/d' /etc/sysconfig/network-scripts/ifcfg-eth0
-fi
-if [ -r ... | bash |
d_bash_9382 | ---
+++
@@ -1,36 +1,8 @@
+
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
-
choco install -y windows-sdk-7.1 vcbuildtools kb2519277
-
- # temporary workaround for https://github.com/oracle/graal/issues/1876
- # (should be fixed in GraalVM 20.0)
- cp "/C/Program Files/Microsoft SDKs/Windows/v7.1/Lib/x64/advapi32... | bash |
d_bash_9383 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash -e
-REPO_URI="https://git.v6jv.flynnhub.com/ourcities-rebu-client-develop.git"
+REPO_URI="https://ubuntu:$FLYNN_KEY@git.v6jv.flynnhub.com/ourcities-rebu-client-develop.git"
if [[ "$CIRCLE_BRANCH" == "master" ]]; then
REPO_URI="dokku@reboo.org:0-client"
fi | bash |
d_bash_9384 | ---
+++
@@ -8,4 +8,4 @@
# This script will only work if you have access to the above service via gcloud.
set -e
TOKEN=$(gcloud --project=crosvm-infra secrets versions access 1 --secret="github-crosvm-bot")
-git push --force --all "https://crosvm-bot:${TOKEN}@github.com/google/crosvm.git"
+git push --force "https:/... | bash |
d_bash_9385 | ---
+++
@@ -6,23 +6,26 @@
fi
echo "Installing needed packages for Virtualbox Guest Additions"
-apt-get -qq -y install linux-headers-$(uname -r) build-essential dkms
+apt-get -qq -y install linux-headers-$(uname -r) build-essential dkms wget
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
-VBOX_ISO=/home/vagran... | bash |
d_bash_9386 | ---
+++
@@ -1,12 +1,13 @@
for i in $(systemctl | egrep 'openstack|neutron' | grep -v losetup | awk '{print $1}'); do cat << EOF > /etc/sensu/conf.d/check-$i.json; done
{
- "checks": {
- "$i": {
- "command": "systemctl status $i",
- "standalone": true,
- "interval": 10,
- "handler": "pager"
... | bash |
d_bash_9387 | ---
+++
@@ -5,7 +5,7 @@
__fzfz() {
if (($+FZFZ_EXTRA_DIRS)); then
- FZFZ_EXTRA_DIRS="{ find -s $FZFZ_EXTRA_DIRS -type d 2> /dev/null }"
+ FZFZ_EXTRA_DIRS="{ find $FZFZ_EXTRA_DIRS -type d 2> /dev/null }"
else
FZFZ_EXTRA_DIRS="{ true }"
fi | bash |
d_bash_9388 | ---
+++
@@ -6,6 +6,10 @@
flake8 . --exclude "*venv*"
echo "===> Flake8 Finished"
-echo "===> PyTest Running..."
-pytest -v
-echo "===> PyTest Finished"
+echo "===> Python2 Tests Running..."
+python2 -m pytest -v
+echo "===> Python2 Tests Finished"
+
+echo "===> Python3 Tests Running..."
+python3 -m pytest -v
+ech... | bash |
d_bash_9389 | ---
+++
@@ -11,12 +11,15 @@
# Ensure containers run either way have no multicast route
weave_on $HOST1 launch-router
weave_on $HOST1 launch-proxy --no-multicast-route
+weave_on $HOST1 launch-plugin --no-multicast-route
start_container $HOST1 --no-multicast-route --name c1
proxy_start_container $HOST1 --name c2... | bash |
d_bash_9390 | ---
+++
@@ -18,7 +18,7 @@
if [ -z "${NPM_ACCESS}" ]; then
NPM_ACCESS=''
else
- NPM_ACCESS="--access ${NPM_ACCESS}"
+ NPM_ACCESS="--access=${NPM_ACCESS}"
fi
echo _auth = "${NPM_AUTH_TOKEN}" > ~/.npmrc | bash |
d_bash_9391 | ---
+++
@@ -6,13 +6,12 @@
# Crosscompile qtbase
CURRENT_DIR=$(pwd)
export CROSS_COMPILE=$ROOT/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-
-export DIRROOT=$ROOT
export SYSROOT=$ROOT/raspbian/sysroot
cd modules/qtbase/examples/opengl/qopenglwidget
# Generate th... | bash |
d_bash_9392 | ---
+++
@@ -14,3 +14,15 @@
alias up='yaourt -Syua'
alias yup='up --noconfirm'
alias i-int='ip address show wlp3s0'
+alias rm-orphans='sudo pacman -Rns $(pacman -Qtdq)'
+
+wlp3s0-mac() {
+ ip -o link show wlp3s0 | \
+ sed 's/.*ether \(\S*\).*/\1/g'
+}
+
+wlp3s0-ip() {
+ ip -o addr show wlp3s0 | \
+ head -n ... | bash |
d_bash_9393 | ---
+++
@@ -6,6 +6,11 @@
TESTDIR=.
fi
cd $TESTDIR
+
+# Note that currently the uuencode(1) program provides no facility to
+# include the file mode explicitly based on an argument passed to it,
+# so the regress.in file must be mode 644, or the test will say that,
+# incorrectly, regression has occurred based on... | bash |
d_bash_9394 | ---
+++
@@ -1,3 +1,4 @@
#! /bin/bash
+set -eu
mvn -Dscala.binary.version=2.10 -Dscala.version=2.10.6 "$@"
mvn -Dscala.binary.version=2.11 -Dscala.version=2.11.7 "$@" | bash |
d_bash_9395 | ---
+++
@@ -15,7 +15,7 @@
make compile
make .unit-tests-coverage-html
elif [ ${TASK} == 'integration' ]; then
- sudo make .itests-coverage-html
+ make .itests-coverage-html
elif [ ${TASK} == 'mistral' ]; then
make .mistral-itests-coverage-html
else | bash |
d_bash_9396 | ---
+++
@@ -11,7 +11,7 @@
mkdir -p bash
cd bash
-wget -N https://git.savannah.gnu.org/cgit/bash.git/snapshot/bash-$INSTALL_BASH_VERSION.tar.gz
+wget -N https://ftpmirror.gnu.org/bash/bash-$INSTALL_BASH_VERSION.tar.gz
tar xvf bash-$INSTALL_BASH_VERSION.tar.gz
pushd bash-$INSTALL_BASH_VERSION
| bash |
d_bash_9397 | ---
+++
@@ -14,4 +14,4 @@
alias dococop="docorwb rubocop"
alias docolog="doco logs --tail=100 -f"
alias docoblog="docolog web"
-alias docodebug="docker-compose run --rm web bundle exec rdebug-ide --port 1234 --host 0.0.0.0 --dispatcher-port 26162 -- bin/rails server -b 0.0.0.0 -p 3000"
+alias docodebug="docker-com... | bash |
d_bash_9398 | ---
+++
@@ -20,7 +20,6 @@
cd ../tests
id
-ls -lsa /usr/local/bin/llvm/
ls -lsa /usr/local/bin/
/usr/local/bin/llvm/llc --filetype=obj --help
python test.py StdLib/RangesTest.spr | bash |
d_bash_9399 | ---
+++
@@ -30,4 +30,4 @@
-cp "${lib}/*" \
-Dlog4j.configurationFile=${bin}/log4j2.xml \
org.xbib.tools.Runner \
- org.xbib.tools.JDBCFeeder
+ org.xbib.tools.JDBCImporter | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.