document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_21700 | ---
+++
@@ -3,6 +3,10 @@
alias sma='su -c "apt update && apt upgrade"'
alias smud='su -c "apt update"'
alias smug='su -c "apt upgrade"'
+
+alias asn='apt-cache search --names-only'
+
+
alias ll='ls -la'
# Show hidden files only. | bash |
d_bash_21701 | ---
+++
@@ -1,9 +1,6 @@
#!/usr/bin/env bash
set -e
-
-echo TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST
-echo TRAVIS_BRANCH=$TRAVIS_BRANCH
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
| bash |
d_bash_21702 | ---
+++
@@ -3,7 +3,9 @@
if [ $ARCH != "amd64" ]; then
# prepare qemu
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
+ if [ ! -z "$TRAVIS" ]; then
+ docker run --rm --privileged multiarch/qemu-user-static:register --reset
+ fi
if [ $ARCH == "arm64" ]; then
# prepare qe... | bash |
d_bash_21703 | ---
+++
@@ -28,6 +28,13 @@
yarn build-storybook
mv storybook-static ../../netlify-build
popd
+elif [ "$BUILD_CONTEXT" = "OFFICIAL" ]; then
+ echo "netlify-build official examples"
+ pushd examples/official-storybook
+ yarn
+ yarn build-storybook
+ mv storybook-static ../../netlify-build
+ popd
else
... | bash |
d_bash_21704 | ---
+++
@@ -23,7 +23,7 @@
echo -e "Adding new docs \n"
git add -A
git commit -m "Refresh docs from successful travis build $TRAVIS_BUILD_NUMBER"
- git push --force --quiet https://${GH_TOKEN}@github.com/bignerdranch/CoreDataStack master:gh-pages > /dev/null 2>$1
+ git push --force --quiet "https:... | bash |
d_bash_21705 | ---
+++
@@ -9,6 +9,13 @@
echo "Europe/Brussels" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
+# dotdeb
+cat << EOF >/etc/apt/sources.list.d/dotdeb.list
+deb http://packages.dotdeb.org wheezy-php56 all
+deb-src http://packages.dotdeb.org wheezy-php56 all
+EOF
+wget -qO - http://www.dotdeb.org/dotdeb.g... | bash |
d_bash_21706 | ---
+++
@@ -1,7 +1,6 @@
#!/bin/bash
-sleep --help
-sleep 10s
+usleep 10000
if curl http://localhost:3000 | grep -q '<app-root></app-root>'; then
echo -e "\e[32mSmoke test passed!\e[0m"
exit 0 | bash |
d_bash_21707 | ---
+++
@@ -1,4 +1,5 @@
AIR_SDK=../../../AdobeAIRSDK
+STEAM_SDK=../../../Steam/sdk
-export DYLD_LIBRARY_PATH=.
+export DYLD_LIBRARY_PATH="$STEAM_SDK/redistributable_bin/osx32"
"$AIR_SDK/bin/adl" -extdir ../../FRESteamWorksLib/bin/ FRESteamWorksTest-app.xml . | bash |
d_bash_21708 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
-version="19.03.8"
+version="19.03.9"
echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz"; | bash |
d_bash_21709 | ---
+++
@@ -7,4 +7,5 @@
make
make install
cd ..
+rm -rf php-ast
echo "extension=ast.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini | bash |
d_bash_21710 | ---
+++
@@ -6,7 +6,6 @@
function do_cleanup {
hdiutil eject /Volumes/APM\ Planner\ 2.0\ \(Alpha\)/
rm apm_planner2_target.sparseimage
- rm apm_planner2_todaysdate.dmg
}
macdeployqt apmplanner2.app/ | bash |
d_bash_21711 | ---
+++
@@ -22,6 +22,9 @@
git config --global user.name "${GIT_USER_NAME}"
git config --global user.email "${GIT_USER_EMAIL}"
+# Use default push behavior of Git 2.0
+git config --global push.default simple
+
echo "GIT_USER_NAME=\"${GIT_REPO_URL}\"" >> /etc/sync_env
echo "GIT_USER_EMAIL=\"${GIT_REPO_URL}\"" >> ... | bash |
d_bash_21712 | ---
+++
@@ -14,3 +14,9 @@
# Colorize Grep
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;32'
+
+# Set the title of the current terminal session
+title() {
+ print -Pn "\033];$1\007";
+}
+alias t=title | bash |
d_bash_21713 | ---
+++
@@ -12,7 +12,14 @@
CARGO="rustup run nightly cargo"
fi
+
if [ "$mode" = "install" ]; then
+ # Test if clippy is already installed (cache)
+ $CARGO clippy &> /dev/null
+ if [ $? -ne 101 ]; then
+ exit 0
+ fi
+
$CARGO install clippy --verbose
exit $?
elif [ "$mode" = "test" ]; then | bash |
d_bash_21714 | ---
+++
@@ -6,5 +6,5 @@
--rm \
-e "PRODUCTION=false" \
-p 8080:8080 \
- -v ".:/app" \
+ -v "$(pwd):/app" \
julianxhokaxhiu/mockups-creator | bash |
d_bash_21715 | ---
+++
@@ -32,6 +32,6 @@
%root ALL=(ALL) NOPASSWD: ALL
EOF
-su -c "install -c -m 440 $TMPSUDOERS /etc/sudoers"
+sudo install -c -m 440 $TMPSUDOERS /etc/sudoers
exit $? | bash |
d_bash_21716 | ---
+++
@@ -8,5 +8,6 @@
echo 'deb http://cran.rstudio.com/bin/linux/ubuntu trusty/' | sudo tee -a /etc/apt/sources.list
sudo apt-get update && sudo apt-get install r-base r-base-dev -y
sudo Rscript -e "install.packages('optparse', repos='http://cran.rstudio.org')"
- sudo Rscript -e "install.packages('se... | bash |
d_bash_21717 | ---
+++
@@ -32,6 +32,13 @@
npm install -g postcss-cli
postcss jupyterlab/build/*.css > /dev/null
+ # Run the publish script in jupyterlab
+ cd jupyterlab
+ npm run publish
+
+ if [ ! -f ./build/release_data.json ]; then
+ echo "npm publish in jupyterlab unsucessful!"
+ fi
fi
| bash |
d_bash_21718 | ---
+++
@@ -5,7 +5,7 @@
function gh () {
typeset +x account=$GITHUB
typeset +x repo=""
- arr=( foo bar baz)
+
if (( ${+argv[2]} )); then
repo=$argv[2]
account=$argv[1] | bash |
d_bash_21719 | ---
+++
@@ -1,6 +1,9 @@
#! /bin/bash -
# updates Dotfiles
-(cd ~/Dotfiles && git checkout master && git pull origin master) > /dev/null 2>&1 && echo "Updated" || echo "Update failed"
+(cd ~/Dotfiles \
+ && git checkout master \
+ && git pull origin master) && echo "Updated" || echo "Update failed"
echo "Type '... | bash |
d_bash_21720 | ---
+++
@@ -34,5 +34,5 @@
source .tox/py27/bin/activate
coverage html
coverage xml
-diff-cover coverage.xml --compare-branch=origin/master
+diff-cover coverage.xml --compare-branch="${COMPARE_BRANCH:-origin/master}"
deactivate | bash |
d_bash_21721 | ---
+++
@@ -14,6 +14,7 @@
git \
libxslt1-dev \
libxslt1.1 \
+ zlib1g-dev \
unzip \
-yqq
| bash |
d_bash_21722 | ---
+++
@@ -17,7 +17,7 @@
# Run bootstrap if bootstrap file is present
# If the run exits with 0, remove the marker file
if [[ -f "/opt/himlar/bootstrap" ]]; then
- FACTER_RUNMODE=bootstrap puppetrun --disable_warnings=deprecations --trusted-node-data
+ FACTER_RUNMODE=bootstrap puppetrun --disable_warn... | bash |
d_bash_21723 | ---
+++
@@ -9,7 +9,6 @@
install_mas_app 1176895641 'Spark'
install_mas_app 451640037 'Classic Color Meter'
install_mas_app 407963104 'Pixelmator'
-install_mas_app 1431085284 'Nimbus Note'
install_mas_app 422304217 'Day One Classic'
install_mas_app 409203825 'Numbers'
install_mas_app 409201541 'Pages' | bash |
d_bash_21724 | ---
+++
@@ -6,6 +6,11 @@
# List directory contents on cd
function cd() {
builtin cd "$@" && l;
+}
+
+# Change working directory to the top-most Finder window location
+function cdf() {
+ cd "$(osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)')";
}
# Generate .gitignore bas... | bash |
d_bash_21725 | ---
+++
@@ -11,7 +11,7 @@
hg st -un | xargs rm
-PACKAGEVERSION=188-1.0.0
+PACKAGEVERSION=188-0.0.1
PACKAGEFULLVERSION="${PACKAGEVERSION}~hg"$(date +%Y%m%d)".esr17."$(hg id -i | cut -c -8)
patch -p1 < $BUILDDIR/moz188-libname-changes.patch | bash |
d_bash_21726 | ---
+++
@@ -7,10 +7,10 @@
apt-get install -y libxml2 libxml2-dev libxslt1.1 libxslt1-dev libffi-dev libssl-dev libpq-dev libmysqlclient-dev
pip install setuptools
-# Installing virtualenv-15.1.0
-wget -nv https://pypi.python.org/packages/d4/0c/9840c08189e030873387a73b90ada981885010dd9aea134d6de30cd24cb8/virtuale... | bash |
d_bash_21727 | ---
+++
@@ -3,3 +3,19 @@
apt-get update
apt-get install -y nginx
+
+cp /vagrant/conf/nginx/loadbalancer /etc/nginx/sites-available/
+
+echo "Copied loadbalancer config file into /etc/nginx/sites-available/"
+
+rm /etc/nginx/sites-enabled/default
+
+echo "Removed default config symlink"
+
+ln -s /etc/nginx/sites-a... | bash |
d_bash_21728 | ---
+++
@@ -21,7 +21,7 @@
done
arch=`echo $ARCHS | cut -d" " -f1`
-if [ -n $arch ]; then
+if [ -n "$arch" ]; then
cp -R opencore-amr-$arch/include/* ./include
fi
| bash |
d_bash_21729 | ---
+++
@@ -14,6 +14,10 @@
EOF
source ~/gpdb-env.sh
+# make fsync by default off to improve test stability
+gpconfig --skipvalidation -c fsync -v off
+gpstop -u
+
createdb gptest
createdb gpadmin
cd ${TINC_DIR} | bash |
d_bash_21730 | ---
+++
@@ -9,6 +9,7 @@
Configures and starts a rails app behind nginx and passenger
OPTIONS:
+ -h Print this message
-l=PATH Path to Symlink config files (empty and ignored by default)
-p Precompile Assets (false by default)
"
@@ -37,9 +38,14 @@
esac
done
-if [[ -z $CONFIG_A... | bash |
d_bash_21731 | ---
+++
@@ -22,4 +22,4 @@
PACKAGE_DIR="$(pwd)/$INSTALLDIR"
mkdir -p $PACKAGE_DIR/usr/local/bin
cp ./consul $PACKAGE_DIR/usr/local/bin
-cp -r ./etc $PACKAGE_DIR
+cp -r $REPO_DIR/etc $PACKAGE_DIR | bash |
d_bash_21732 | ---
+++
@@ -1,6 +1,4 @@
#!/bin/bash -x
-source '/usr/local/lib/rvm'
-bundle install --path "/home/jenkins/bundles/${JOB_NAME}" --deployment
+bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
bundle exec rake stats
bundle exec rake ci:setup:testunit test
- | bash |
d_bash_21733 | ---
+++
@@ -3,7 +3,7 @@
IMAGE_NAME=pinata-sshd
CONTAINER_NAME=pinata-sshd
-LOCAL_PORT=2244
+HOST_PORT=2244
AUTHORIZED_KEYS=$(ssh-add -L | base64 -w0)
KNOWN_HOSTS_FILE=$(mktemp)
@@ -13,17 +13,17 @@
docker run --name ${CONTAINER_NAME} \
-e AUTHORIZED_KEYS="${AUTHORIZED_KEYS}" \
- -d -p ${LOCAL_PORT}:22 $... | bash |
d_bash_21734 | ---
+++
@@ -11,8 +11,10 @@
executeCommand "export CMAKE_INCLUDE_PATH=$CMAKE_INCLUDE_PATH:/framework-dependencies/include"
executeCommand "source /root-system/bin/thisroot.sh"
executeCommand "cmake .."
+executeCommand "source thisframework.sh"
executeCommand "make all tests -j4"
executeCommand "cd tests"
+execute... | bash |
d_bash_21735 | ---
+++
@@ -39,7 +39,6 @@
--without-libvirtd \
--without-openvz \
--without-lxc \
- --without-vbox \
--without-phyp \
--with-python
echo done > configure.done | bash |
d_bash_21736 | ---
+++
@@ -19,7 +19,7 @@
for package in $PACKAGES
do
- fgt golint ${package##github.com/cloudflare/cfssl/}/*.go
+ fgt golint ${package}
done
# Build and install cfssl executable in PATH | bash |
d_bash_21737 | ---
+++
@@ -1,8 +1,8 @@
#!/bin/bash
-# This script installs crontab entries that will stop most of the slaves at evening and start in the morning.
-# The script should be run by the user that runs the fuzzers (not sudo and not root).
+# This script installs crontab that will stop most of the fuzzers at 23.00 and s... | bash |
d_bash_21738 | ---
+++
@@ -6,7 +6,7 @@
###########################################################################
-CONSUL_VER="1.5.2"
+CONSUL_VER="1.5.3"
UNAME=$(uname -s | tr '[:upper:]' '[:lower:]')
CONSUL_ZIP="consul_${CONSUL_VER}_${UNAME}_amd64.zip"
IGNORE_CERTS="${IGNORE_CERTS:-no}" | bash |
d_bash_21739 | ---
+++
@@ -27,8 +27,8 @@
fi
source ./.dockerimage
-VCS_REF=$(git describe --tags --dirty)
-VERSION=$(git describe --tags --dirty)
+VCS_REF=$(git describe --tags --dirty | sed 's/scala-base-build-//')
+VERSION=$(git describe --tags --dirty | sed 's/scala-base-build-//')
docker build --build-arg BUILD_DATE=$(da... | bash |
d_bash_21740 | ---
+++
@@ -12,16 +12,19 @@
# Autoload zsh functions.
fpath=($__GIT_PROMPT_DIR/functions $fpath)
autoload -U $__GIT_PROMPT_DIR/functions/*(:t)
+
+function preexec() {
+ preexec_update_git_vars
+}
+
+function precmd() {
+ precmd_update_git_vars
+}
+
+function chpwd() {
+ chpwd_update_git_vars
+}
-# Enab... | bash |
d_bash_21741 | ---
+++
@@ -31,6 +31,8 @@
export PATH=${GOPATH}/bin:${PWD}/third_party/etcd:/usr/local/go/bin:${PATH}
+# Produce a JUnit-style XML test report
+export KUBE_JUNIT_REPORT_DIR=${WORKSPACE}/artifacts
# Set artifacts directory
export ARTIFACTS_DIR=${WORKSPACE}/artifacts
| bash |
d_bash_21742 | ---
+++
@@ -6,14 +6,28 @@
if [ `hostname` == 'node0' ]
then
+#Race Condition DSE has not started
echo "Has DSE Started?"
if ! nc -z node0 9042; then
+
+ counter=0
+ iterations=30
+ sleepInterval=5
+
echo "Waiting for DSE to start..."
- while ! nc -z node0 9042; do
- sleep 1
+ while... | bash |
d_bash_21743 | ---
+++
@@ -1,3 +1,3 @@
alias reload!='. ~/.zshrc'
-alias l='ls -al'
+alias l='ls -ahl'
alias mkp='mkdir -p' | bash |
d_bash_21744 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
-rabbitmqctl add_vhost "travis.development"
-rabbitmqctl add_user travis_hub travis_hub_password
+rabbitmqctl add_vhost "travisci.development"
+rabbitmqctl add_user travisci_hub travisci_hub_password
-rabbitmqctl set_permissions -p "travis.development" travis_hub ".*" ".*" ".*"
... | bash |
d_bash_21745 | ---
+++
@@ -14,6 +14,9 @@
# update flatpak apps
flatpak update
+# update OMF
+omf update
+
# update dotfiles
cd $HOME/.dotfiles
if [ -z "$(git status --untracked-files=no --porcelain)" ]; then | bash |
d_bash_21746 | ---
+++
@@ -54,6 +54,6 @@
(
travis_fold_start BUILDING
- ./build.sh
+ ./build.sh fastlane
travis_fold_end
) | bash |
d_bash_21747 | ---
+++
@@ -8,11 +8,6 @@
# z
. $ZSH/vendor/z/z.sh
-
-# Homebrew
-if [[ $OSTYPE == darwin* ]]; then
- export PATH=/usr/local/sbin:$PATH
-fi
# nvm
export NVM_DIR=$HOME/.nvm | bash |
d_bash_21748 | ---
+++
@@ -26,6 +26,7 @@
echo "@install_all_code.sql" | sqlplus $ORACLE_USER'/'$ORACLE_PASSWORD'@EGRNAPRO'
echo "@install_all_code.sql" | sqlplus $ORACLE_USER'/'$ORACLE_PASSWORD'@EGRNADEV'
echo "@install_all_code.sql" | sqlplus $ORACLE_USER'/'$ORACLE_PASSWORD'@EGRNATST'
+echo "@install_all_code.sql" | sqlplus $OR... | bash |
d_bash_21749 | ---
+++
@@ -23,3 +23,27 @@
function gplall() {
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;
}
+
+# Delete all already merged branches, and confirm if the non-merged should be delete as well
+function gbclean() {
+ local ignored_branches=("*" "master" "develop" "staging")
+
+ ... | bash |
d_bash_21750 | ---
+++
@@ -39,3 +39,4 @@
# Misc
alias http='ruby -run -ehttpd . -p8000'
+alias rx='rake && x' | bash |
d_bash_21751 | ---
+++
@@ -18,9 +18,9 @@
git clone https://github.com/4finance/boot-microservice.git
cd boot-microservice
updateMicroInfraSpringVersionInConfigurationFile
-./gradlew clean check --stacktrace --continue --info
+./gradlew clean check --stacktrace --continue --info --no-daemon
git reset --hard
git checkout boot-... | bash |
d_bash_21752 | ---
+++
@@ -7,14 +7,13 @@
local repopath="$kojipath/repos/$1-build/latest/x86_64"
local java_pkgs=$(repoquery --repoid $1 --repofrompath "$1,$repopath" \
--archlist x86_64,noarch --whatprovides '**.jar' \
- --qf="%{base_package_name}#%{name}#%{version}#%{release}#... | bash |
d_bash_21753 | ---
+++
@@ -5,17 +5,17 @@
exit 1
fi
-ln -sf /config/ost-config.php /var/www/html/include/ost-config.php
+ln -sf /config/ost-config.php /var/www/html/dota-support/include/ost-config.php
if [ "$OSTICKET_SETUP" = "yes" -o "$OSTICKET_SETUP" = "true" ]; then
echo "Running in SETUP mode."
- if [ ! -w /va... | bash |
d_bash_21754 | ---
+++
@@ -8,7 +8,7 @@
[ -z "${FORCE_UPGRADE}" ] && export JENKINS_USER="admin" || export JENKINS_USER="${JENKINS_USER:-admin}"
export JENKINS_PASSWORD="${JENKINS_PASSWORD:-$(<"${JENKINS_HOME}"/secrets/initialAdminPassword)}"
unset JENKINS_CALL_ARGS
- jenkins-call-url -a -v -v "${JENKINS_WEB}"/api/json -o ... | bash |
d_bash_21755 | ---
+++
@@ -7,5 +7,10 @@
USER_ID=${LOCAL_USER_ID:-9001}
echo "Starting with UID : $USER_ID"
-useradd --shell /bin/bash -u $USER_ID -o user
-sudo -u user "$@"
+if [ "$USER_ID" -ne "0" ]; then
+ useradd --shell /bin/bash -u $USER_ID -o user
+ echo "user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
+ ... | bash |
d_bash_21756 | ---
+++
@@ -9,6 +9,7 @@
exit 1
fi
+echo "Running tests"
export PYTHONPATH="src"
pytest \
--cov=src \
@@ -17,4 +18,5 @@
--junitxml=build/pytest-$envname.xml \
src/tests src/integration_tests
+echo "Checking coverage report"
coverage report --fail-under=67 | bash |
d_bash_21757 | ---
+++
@@ -7,9 +7,9 @@
CURRENT_HEAT_DOMAIN_NAME=$(openstack domain list | grep heat | awk '{print $4}')
if [[ "heat" != "$CURRENT_HEAT_DOMAIN_NAME" ]]; then
- openstack domain create heat
- openstack user create --domain heat heat_domain_admin --password ${HEAT_DOMAIN_ADMIN_PASSWORD}
- ... | bash |
d_bash_21758 | ---
+++
@@ -3,5 +3,4 @@
# tell getconfig where to find config
export GETCONFIG_ROOT=`pwd`
-# passing -l here to avoid (buggy?) global leak detection
-node_modules/lab/bin/lab -v -l test/index.js
+node_modules/lab/bin/lab -v test/index.js | bash |
d_bash_21759 | ---
+++
@@ -5,6 +5,9 @@
dnf upgrade -y dnf
dnf install -y git
dnf install -y tmux
+dnf install -y tigervnc
+dnf install -y libnghttp2
+dnf upgrade -y libnghttp2
dnf install -y python-pip
dnf upgrade -y vim-minimal
dnf install -y vim | bash |
d_bash_21760 | ---
+++
@@ -35,7 +35,7 @@
# exported functions
keychain-add() {
- keychain-init
+ _sc_keychain_init
local hosts=$(for i in $@; do _sc_confpath $i; done)
keychain --confhost ${hosts[@]}
} | bash |
d_bash_21761 | ---
+++
@@ -6,8 +6,12 @@
for MOD in $(find "$SOURCE_DIR/$1" -maxdepth 1 -mindepth 1 -type d -printf "%P\n")
do
cd "$SOURCE_DIR/$1/$MOD"
- echo $MOD
- git fetch
+
+ for REMOTE in $(git remote)
+ do
+ echo "$MOD -> $REMOTE"
+ git fetch $REMOTE
+ ... | bash |
d_bash_21762 | ---
+++
@@ -3,6 +3,13 @@
if echo "$SAMPLEDATA" | egrep -sq "true|TRUE|y|Y|yes|YES|1"; then
pushd /usr/share/landoop/sample-data
+
+ kafka-topics \
+ --zookeeper localhost:2181 \
+ --topic position-reports \
+ --partition 5 \
+ --replication 1 \
+ --create
zcat ais.... | bash |
d_bash_21763 | ---
+++
@@ -4,9 +4,9 @@
if [ "$BUILD_MODE" = "coverage" ]; then
GCOV="/usr/bin/gcov-4.8"
- /tmp/usr/bin/lcov --gcov-tool "$GCOV" --directory . --capture --output-file $(pwd)/coverage.info.in
- /tmp/usr/bin/lcov --gcov-tool "$GCOV" --remove $(pwd)/coverage.info.in 'tests/*' '/usr/*' --output-file $(pwd)/... | bash |
d_bash_21764 | ---
+++
@@ -26,7 +26,11 @@
for f in ${env_files[@]}; do
source "$f"
done
- eval "$@"
+ cmd=()
+ for word in "${@}"; do
+ cmd+=("'$word'")
+ done
+ eval "${cmd[@]}"
)
fi | bash |
d_bash_21765 | ---
+++
@@ -10,7 +10,7 @@
alias gl="git log --oneline --decorate --graph --date=relative"
alias gp='git push origin HEAD'
alias gc='git commit'
-alias gb='git branch --all -vv'
+alias gb='git branch -vv'
alias gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun.
alias ga='git add --all'
alias... | bash |
d_bash_21766 | ---
+++
@@ -5,8 +5,10 @@
# We can't run the build step if there's no access to the secret env vars
if [[ "$TRAVIS_SECURE_ENV_VARS" == "true" ]]; then
docker login -u pachydermbuildbot -p "${DOCKER_PWD}"
- make install docker-build
+ make install
version=$(pachctl version --client-only)
+ git tag ... | bash |
d_bash_21767 | ---
+++
@@ -2,7 +2,7 @@
cat "$1" > "$newFileName";
function i__gli() {
- fileSize=$(wc -c "$1");
+ fileSize=$(wc -c < "$1");
headerSize=1000;
skip=$(shuf -i "$headerSize"-"$fileSize" -n 1);
count=$(shuf -i 1-10 -n 1); | bash |
d_bash_21768 | ---
+++
@@ -21,6 +21,6 @@
echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '$TRAVIS_BRANCH'."
else
echo "Deploying snapshot..."
- ./gradlew uploadArchives
+ ./gradlew uploadArchives -PSONATYPE_NEXUS_USERNAME="${SONATYPE_NEXUS_USERNAME}" -PSONATYPE_NEXUS_PASSWORD="${SONATYPE_NEXUS_... | bash |
d_bash_21769 | ---
+++
@@ -14,7 +14,7 @@
-m modules:upstream_modules \
-M manifests/default.pp \
--fact osfamily=Debian \
- --fact ipaddress=10.2.3.4 \
+ --fact ipaddress_eth0=10.2.3.4 \
--fact architecture=amd64 \
--fact operatingsystem=Ubuntu \
--fact operatingsystemrelease=14.04 \ | bash |
d_bash_21770 | ---
+++
@@ -4,8 +4,8 @@
VERSION=2018-03-19
curl -X POST \
- -F "car_positive_examples=@Classes/cars.zip" \
- -F "negative_examples=@Classes/trucks.zip" \
+ -F "car_positive_examples=@Resources/cars.zip" \
+ -F "negative_examples=@Resources/trucks.zip" \
-F "name=CarsVsTrucks - do not delete" \
... | bash |
d_bash_21771 | ---
+++
@@ -18,7 +18,7 @@
#variables
#executables
-XSLTPROC="xsltproc"
+XSLTPROC="xsltproc --nonet"
#functions | bash |
d_bash_21772 | ---
+++
@@ -4,7 +4,21 @@
#prints out http headers for url - arg $1 is url
#http://stackoverflow.com/questions/10060098/getting-only-response-header-from-http-post-using-curl
-function curlhead() { curl -s -D - $1 -o /dev/null; }
+function curlhead() {
+ if [[ -z $1 ]]; then
+ >&2 echo "usage: ${FUNCNAME[0]} url"... | bash |
d_bash_21773 | ---
+++
@@ -16,10 +16,3 @@
fi
zsh -c 'source $ZSH/plugins/vundle/vundle.plugin.zsh; vundle'
-# Additional steps necessary for you-complete-me
-# Added in this file to ensure that vundle + you-complete-me where installed
-# first
-echo "Installing you-complete-me native extensions"
-cd ~/.vim/bundle/YouCompleteMe ... | bash |
d_bash_21774 | ---
+++
@@ -1,7 +1,6 @@
# Configure repositories
yum -y install epel-release
-yum -y install https://repos.fedorapeople.org/repos/openstack/EOL/openstack-icehouse/rdo-release-icehouse-4.noarch.rpm
-sed -i 's,openstack/openstack-icehouse/,openstack/EOL/openstack-icehouse/,' /etc/yum.repos.d/rdo-release.repo
+yum -y ... | bash |
d_bash_21775 | ---
+++
@@ -11,4 +11,6 @@
wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip
unzip awscli-bundle.zip
./awscli-bundle/install -b .bin/aws
+else
+ exit 0
fi | bash |
d_bash_21776 | ---
+++
@@ -15,6 +15,7 @@
cp /platform-configure.sh /data/systemd/system/scripts/platform-configure.sh
chmod +x /data/systemd/system/scripts/platform-configure.sh
+rm -f /host-bin/systemd-docker || true
cp /systemd-docker /host-bin/
chmod +x /host-bin/systemd-docker
| bash |
d_bash_21777 | ---
+++
@@ -11,7 +11,7 @@
curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.3/concourse-java.sh > /opt/concourse-java.sh
-curl --output /opt/concourse-release-scripts.jar https://repo.spring.io/release/io/spring/concourse/releasescripts/concourse-release-scripts/0.1.0/concourse-release... | bash |
d_bash_21778 | ---
+++
@@ -25,7 +25,7 @@
# Install pylint
sudo python3.8 -m pip install setuptools --upgrade
-sudo python3.8 -m pip install pylint==2.4.4
+sudo python3.8 -m pip install pylint==2.7.4
python3.8 -m pylint --version
# Run tensorflow sanity checks. | bash |
d_bash_21779 | ---
+++
@@ -5,6 +5,6 @@
if [ -d ${RD}/trees/manpages/usr/share/man ]; then
su -m man -c 'catman ${RD}/trees/manpages/usr/share/man' > /dev/null 2>&1;
( cd ${RD}/trees/manpages/usr/share/man;
- find cat* | cpio -dumpl ${RD}/trees/catpages/usr/share/man ) &&
+ find cat* whatis | cpio -dumpl ${RD}/trees/catpages/us... | bash |
d_bash_21780 | ---
+++
@@ -29,6 +29,7 @@
EOF
(( WEIGHT != 0 )) &&
echo " total += $WEIGHT;"
+ echo " if (token[pos] != '\\0') return -1;"
echo " goto END;"
continue | bash |
d_bash_21781 | ---
+++
@@ -22,7 +22,7 @@
cd $BINDIR
RUNSHELL=${1:-"/bin/sh"}
-out=$(mktemp)
+out=$(mktemp 2>/dev/null || mktemp -t 'spftools-test-subdir.XXXXXX')
set | grep 'SH_VERSION=' >&2 || true
for test in $(find . -mindepth 1 -maxdepth 1 -type d)
do | bash |
d_bash_21782 | ---
+++
@@ -2,7 +2,7 @@
git fetch origin master
-if [[ ${TRAVIS_PULL_REQUEST_BRANCH} ]] && ! [[ $(git diff HEAD..master -- CHANGELOG.md) ]] && ! [[ $TRAVIS_PULL_REQUEST_BRANCH == 'master' ]]
+if [[ ${TRAVIS_PULL_REQUEST_BRANCH} ]] && ! [[ $(git diff HEAD..master -- CHANGELOG.md) ]]
then
echo "On branch $TR... | bash |
d_bash_21783 | ---
+++
@@ -1,4 +1,3 @@
#!/bin/bash
-docker ps -a --no-trunc | grep ${1} | awk '{print $1}' | xargs docker stop
-docker ps -a --no-trunc | grep ${1} | awk '{print $1}' | xargs docker rm
+docker ps -a --no-trunc | grep ${1} | awk '{print $1}' | xargs docker stop | xargs docker rm | bash |
d_bash_21784 | ---
+++
@@ -8,4 +8,4 @@
# echo date of current build
ls -ltr ../builds | tail -1 | awk "{print \$8}"
# check state of cluster machines
-for i in 1 2 3a 3b 3c 3d 3e 3f 3g 3h 3i 3j 3k 3l 4a 4b 4c; do ssh volt$i tools/check-machine.sh || exit 1; done
+for i in 1 2 3a 3b 3c 3d 3e 3f 3g 3h 3i 3j 3k 3l 4a 4b 4c 5a 5b 5c... | bash |
d_bash_21785 | ---
+++
@@ -30,9 +30,5 @@
# Topo unit test needs mininet in user python environment
if ! python -c 'import mininet.net' 2> /dev/null; then
- TMPDIR=$(mktemp -d) && pushd "${TMPDIR}"
- git clone https://github.com/mininet/mininet
- cd mininet
- pip3 install -q .
- popd && rm -rf "${TMPDIR}"
+ pip3 install -q... | bash |
d_bash_21786 | ---
+++
@@ -12,28 +12,45 @@
# --- Starting unit-tests
-modules='dci_user dci_team dci_topic dci_component dci_feeder dci_product dci_role dci_job'
+function run_unit_tests() {
+ modules='dci_user dci_team dci_topic dci_component dci_feeder dci_product dci_role dci_job'
-source ./admin.sh
-for module in $mod... | bash |
d_bash_21787 | ---
+++
@@ -30,3 +30,4 @@
gem install flay
gem install sonic-pi-cli
gem install ruby-prof
+gem install pry-byebug | bash |
d_bash_21788 | ---
+++
@@ -20,14 +20,14 @@
composer install --prefer-dist --no-progress --no-interaction
fi
- setfacl -R -m u:www-data:rwX -m u:"$(whoami)":rwX var
- setfacl -dR -m u:www-data:rwX -m u:"$(whoami)":rwX var
-
echo "Waiting for db to be ready..."
bin/console ilios:wait-for-database
echo "The db is now read... | bash |
d_bash_21789 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.2%2B12/OpenJDK14U-jdk_x64_linux_hotspot_14.0.2_12.tar.gz"
;;
java15)
- echo "https://github.com/AdoptOpenJDK/openjdk15-binaries/releases/download/jdk15u-2020-08-26-04-45/OpenJDK15U-jdk_x64_linux_hot... | bash |
d_bash_21790 | ---
+++
@@ -2,7 +2,12 @@
pip2 install powerline-shell
-if [ -d /usr/local/lib/python2.7/site-packages/powerline_shell/segments ]
-then
- cp database_url.py /usr/local/lib/python2.7/site-packages/powerline_shell/segments/database_url.py
-fi
+for p in \
+ "/usr/local/lib/python2.7/site-packages/powerline_shell/s... | bash |
d_bash_21791 | ---
+++
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
+IMAGE='gcr.io/google-containers/k8s-cloud-kms-plugin-test:v0.1.1'
+KEY='projects/cloud-kms-lab/locations/us-central1/keyRings/ring-01/cryptoKeys/key-01'
+SOCKET='@kms-plugin-socket'
+HEALTHZ_PORT=8081
+
# Starting KMS via docker
-docker run -it -p 8081:8081 \
- ... | bash |
d_bash_21792 | ---
+++
@@ -9,9 +9,6 @@
# Aliases
#
-alias psql-butter-datastore-stage="ssh -L 15432:stage-db.cemb5sz7chau.us-west-2.rds.amazonaws.com:5432 butter sleep 10 & sleep 1 && psql -p 15432 -U dbmaster -h 127.0.0.1 stage"
-alias redis-butter-stage="ssh -L 16379:butter-cache-stage.3kaqxy.0001.usw2.cache.amazonaws.com:637... | bash |
d_bash_21793 | ---
+++
@@ -8,13 +8,6 @@
git clone https://github.com/Spirals-Team/librepair.git
echo "LibRepair repository cloned."
-
-cp librepair/travis/travis-install.sh .
-chmod +x travis-install.sh
-
-./travis-install.sh
-
-echo "All dependencies installed for repairnator."
cd librepair/jtravis
mvn clean install -Dskip... | bash |
d_bash_21794 | ---
+++
@@ -13,7 +13,7 @@
apt-get-update
-apt-get-install php7.2-cli php7.2-common php7.2-curl php7.2-fpm php7.2-gd php7.2-gmp php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-pgsql php7.2-sqlite3 php7.2-readline php7.2-xml php7.2-zip
+apt-get-install php7.2-bcmath php7.2-cli php7.2-common php7.2-curl php7.2-f... | bash |
d_bash_21795 | ---
+++
@@ -37,4 +37,4 @@
cd "${PROJECT}"
-EXTRA_VARS="--php-version=${VERSION_PHP} --nodejs-version=${VERSION_NODEJS} --solr-version=${VERSION_SOLR} --ruby-version${VERSION_RUBY}" vagrant up
+EXTRA_VARS="--php-version=${VERSION_PHP} --nodejs-version=${VERSION_NODEJS} --solr-version=${VERSION_SOLR} --ruby-versio... | bash |
d_bash_21796 | ---
+++
@@ -13,8 +13,8 @@
echo "convert $filename"
- convert $SRC/$filename.jpg -resize 1280 -quality 1 $DEST/$filename.webp
- convert $SRC/$filename.jpg -resize 1280 -quality 1 $DEST/$filename.jpg
+ convert $SRC/$filename.jpg -resize 720 -quality 1 $DEST/$filename.webp
+ convert $SRC/$filename.jpg -resize... | bash |
d_bash_21797 | ---
+++
@@ -4,7 +4,7 @@
# focus a window when it is created
# depends on: wew focus.sh
-wew -m 16 | while IFS=: read ev wid; do
+wew -a | while IFS=: read ev wid; do
case $ev in
# XCB_CREATE_NOTIFY
16) focus.sh $wid ;; | bash |
d_bash_21798 | ---
+++
@@ -24,6 +24,15 @@
exit 0
fi
+if [ $ACTION = "bump" ]; then
+ node -e "var fs = require('fs');\
+ var pkg = JSON.parse(fs.readFileSync('./package.json'));\
+ console.log('bump version',pkg.version, '->','${ISSUE_NUM}');\
+ pkg.version='${ISSUE_NUM}'; \
+ fs.writeFileSync('./package.json', JSON.stringify(... | bash |
d_bash_21799 | ---
+++
@@ -2,6 +2,10 @@
pwd
export H2O_BASE=$(pwd)
+if [[ $string == *"@"* ]]; then
+ echo "H2O base path contains at sign. Unable to create K3S cluster."
+ exit 1
+fi
cd $H2O_BASE/h2o-k8s/tests/clustering/
k3d --version
k3d delete | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.