document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_18500 | ---
+++
@@ -3,4 +3,4 @@
rm dist/* || true
python setup.py sdist bdist_wheel
python setup.py register
-twine-upload dist/*
+twine upload dist/* | bash |
d_bash_18501 | ---
+++
@@ -10,7 +10,7 @@
if [[ ${ignoredfiles[*]} =~ "$filename" ]]; then
continue
fi
- rm "$HOMEDIR/$filename"
+ rm -f "$HOMEDIR/$filename" > /dev/null
ln -s $DIR/$filename $HOMEDIR/$filename
done
} | bash |
d_bash_18502 | ---
+++
@@ -1,3 +1,3 @@
-# Autocompletion for Vagrant just put this line in your ~/.profile or lik this file into it like:
+# Autocompletion for Vagrant just put this line in your ~/.profile or link this file into it like:
# source /path/to/vagrant/contrib/bash/completion.sh
-complete -W "$(echo `vagrant --help | aw... | bash |
d_bash_18503 | ---
+++
@@ -1,4 +1,5 @@
source ~/stackrc
+rm -f reachable.txt intermittent.txt unreachable.txt > /dev/null 2>&1
for ip in `openstack server list -f value -c Networks | sed s/ctlplane=//`
do
server=$(openstack server list | grep $ip | awk {'print$2'})
@@ -9,16 +10,16 @@
count=$(ping -c 5 $ip... | bash |
d_bash_18504 | ---
+++
@@ -5,7 +5,7 @@
}
SF_version_dir () {
- version_link 'http://sourceforge.net/.+/[0-9.]+/$'
+ version_link 'http://sourceforge.net/.+/'"$1"'[0-9.]+/$'
}
GH_latest () { | bash |
d_bash_18505 | ---
+++
@@ -14,7 +14,7 @@
nvm install 0.10
nvm alias default 0.10
-npm install -g coffee-script grunt-cli
+npm install -g coffee-script grunt-cli mocha
# Rebuild
cd /vagrant | bash |
d_bash_18506 | ---
+++
@@ -5,6 +5,7 @@
# The following tests are disabled in a parallel environment and are run afterwards, sequentially
DISABLED_TESTS=(
+ 'spec/models/asset_spec.rb' # Hangs sometimes when serving files
'services/user-mover/spec/user_mover_spec.rb' # Database recreation fails in parallel
)
| bash |
d_bash_18507 | ---
+++
@@ -17,6 +17,8 @@
# Since later things (e.g. `rm "$config_home/some.config"`)
# may build on earlier things (e.g. `rmdir "$config_home"`),
# the commands should be executed in reverse order to uninstall.
-command -v tac &>/dev/null || alias tac='tail -r'
+# shellcheck disable=SC2120
+command -v tac &>/dev/... | bash |
d_bash_18508 | ---
+++
@@ -5,7 +5,7 @@
# allows env var to be overridden by shell, e.g. USECUDA=OFF ./build.sh
: ${USECUDA:=OFF}
-if [ "${USECUDA}" = "ON" ]; then TAG='cuda'; else TAG='nocuda'; fi
-
-docker build -t ${DOCKERHUB_REPO}:${TAG} . \
+if [ "${USECUDA}" = "ON" ] || [ "${USECUDA}" = "on" ] ; then TAG='cuda'; else TAG='... | bash |
d_bash_18509 | ---
+++
@@ -7,6 +7,8 @@
./scripts/install_glfw3.sh
sudo apt-get install qtcreator -y
sudo ./scripts/install_qt.sh
+# Install into home directory
+cd ~/
git clone https://github.com/jetsonhacks/librealsense.git
cd librealsense
git checkout jetson | bash |
d_bash_18510 | ---
+++
@@ -3,5 +3,10 @@
gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend false
gsettings set org.gnome.desktop.session idle-delay 0
+## INSTALL APT-FAST
+sudo apt-add-repository ppa:saiarcot895/myppa -y && sudo apt-get update && sudo apt-get -y install apt-fast
+## UPDATE SYSTEM
+sudo apt-fast ... | bash |
d_bash_18511 | ---
+++
@@ -6,7 +6,7 @@
# License conformance
travis_fold_open "License conformance" "Validating source files for license compliance…"
-./ci/validate_license_conformance.sh {include/SPTDataLoader/*.h,SPTDataLoader/*.{h,m}}
+./ci/validate_license_conformance.sh {demo/*{h,m},include/SPTDataLoader/*.h,SPTDataLoader/... | bash |
d_bash_18512 | ---
+++
@@ -27,7 +27,7 @@
popd
fi
-xbuild ProjectLoadingFsUnit/ProjectParserTests.fsproj
+xbuild ProjectLoading/ProjectParserTests.fsproj
mono ../../../lib/NUnit.Runners.2.6.1/tools/nunit-console-x86.exe \
- ProjectLoadingFsUnit/bin/Debug/ProjectParserTests.dll
+ ProjectLoading/bin/Debug/ProjectParse... | bash |
d_bash_18513 | ---
+++
@@ -2,36 +2,40 @@
# quick and dirty script to get dist-sys-x VMs up to speed
# requires sudo
+SUDO=''
+if [ "$UID" -ne 0 ]; then
+ SUDO='sudo'
+fi
+
# packages
-PACKAGES='python-dev python3-dev vim dvtm libtool autoconf automake '
-PACKAGES+='mongodb-10gen zookeeper msgpack-python python-pip python3-pip'... | bash |
d_bash_18514 | ---
+++
@@ -14,15 +14,29 @@
readonly scriptBaseFolderPath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+readonly wrongArgumentsExitCode=1
+
#
# Variables
#
-projectDir="$1"
+branchName="$1"
+projectDir="$2"
#
# Check requirements
#
+
+function display_usage () {
+ echo "This script expects the ... | bash |
d_bash_18515 | ---
+++
@@ -11,6 +11,7 @@
git
hub
mas
+ nmap
node
ripgrep
ssh-copy-id | bash |
d_bash_18516 | ---
+++
@@ -6,7 +6,10 @@
echo "ip: $ip" && \
echo "" && \
echo "trace.log:" && \
- cat trace.log) | \
+ cat trace.log &&
+ echo &&
+ echo "credenitals.json:" &&
+ cat credentials.json) | \
mail -s "Flower Bridge crashed" "bruno.sautron@parrot.com"
./bridge restart > /dev/null
fi | bash |
d_bash_18517 | ---
+++
@@ -3,6 +3,7 @@
COLOR_SUCCESS='\033[0;32m'
NC='\033[0m'
+ls
/docker/scripts/ci.sh
/docker/scripts/setup.sh | bash |
d_bash_18518 | ---
+++
@@ -20,7 +20,7 @@
echo WARNING: THIS VOLDEMORT ADMIN TOOL IS DEPRECATED. PLEASE USE vadmin.sh INSTEAD.
echo
-sleep 5
+#sleep 5
base_dir=$(dirname $0)/..
| bash |
d_bash_18519 | ---
+++
@@ -16,7 +16,7 @@
set -e
-sudo pip3 install auditwheel==1.5.0
+sudo pip3 install auditwheel==2.0.0
# Pin wheel==0.31.1 to work around issue
# https://github.com/pypa/auditwheel/issues/102 | bash |
d_bash_18520 | ---
+++
@@ -3,7 +3,7 @@
case "$1" in
java17)
- echo "https://github.com/bell-sw/Liberica/releases/download/17.0.3+7/bellsoft-jdk17.0.3+7-linux-amd64.tar.gz"
+ echo "https://github.com/bell-sw/Liberica/releases/download/17.0.3.1+2/bellsoft-jdk17.0.3.1+2-linux-amd64.tar.gz"
;;
java18)
echo "https://git... | bash |
d_bash_18521 | ---
+++
@@ -1,7 +1,40 @@
#!/bin/bash
+function rme_help() {
+ cat << EOF
+
+rme script delete folders and files except some of them
+Options:
+ - v - version
+ - h - help
+ - d - dry run
+
+EOF
+}
+
+
+DRY_RUN=0
+while getopts ":hvd" OPTION
+do
+ case $OPTION in
+ h)
+ rme_help
+ ... | bash |
d_bash_18522 | ---
+++
@@ -3,6 +3,12 @@
source $path/theme/prompt.sh
source $path/completions/ssh.completion.bash
+
+if [ ! -f "$HOME/.gitconfig" ];
+then
+ echo "has no config"
+ ln -s "$path/.gitconfig" $HOME/.gitconfig
+fi
export CLICOLOR=1
export EDITOR='vim -f' | bash |
d_bash_18523 | ---
+++
@@ -4,15 +4,17 @@
source "$TOP_DIR/config/paths"
source "$CONFIG_DIR/credentials"
source "$LIB_DIR/functions.guest"
-source "$CONFIG_DIR/demo-openstackrc.sh"
exec_logfile
indicate_current_auto
#------------------------------------------------------------------------------
# Create tenant network
-#... | bash |
d_bash_18524 | ---
+++
@@ -16,7 +16,7 @@
# Do the build in place in site-packages
cd $SP_DIR/$PKG_NAME
-for lib_dir in ./*/; do (gpi_make --all --ignore-gpirc -r 2); done
+for LIB_DIR in ./*/; do (cd "$LIB_DIR" && gpi_make --all --ignore-gpirc -r 2); done
# drop a version file with parseable info
VERSION_FPATH=$SP_DIR/$PKG_... | bash |
d_bash_18525 | ---
+++
@@ -18,7 +18,7 @@
git clone https://github.com/ervandew/supertab.git
git clone https://github.com/Shougo/vimproc.vim.git
-pushd vimproc.vim.git
+pushd vimproc.vim
make
popd
| bash |
d_bash_18526 | ---
+++
@@ -1,25 +1,13 @@
### Defaults
_sbp_python_virtual_env_bg=${_sbp_python_virtual_env_bg:-$_sbp_color_dgreen}
_sbp_python_virtual_env_fg=${_sbp_python_virtual_env_fg:-$_sbp_color_white}
-
-function _find_pyenv_version() {
- local path=${PWD%/*}
- while [[ $path ]]; do
- if [[ -f "${path}/.python-version... | bash |
d_bash_18527 | ---
+++
@@ -27,5 +27,5 @@
{NAME => 'name', COMPRESSION => '$COMPRESSION'}
create '$TSDB_TABLE',
- {NAME => 't', COMPRESSION => '$COMPRESSION', BLOOMFILTER => '$BLOOMFILTER'}
+ {NAME => 't', VERSIONS => 1, COMPRESSION => '$COMPRESSION', BLOOMFILTER => '$BLOOMFILTER'}
EOF | bash |
d_bash_18528 | ---
+++
@@ -1,6 +1,8 @@
pip list --outdated | grep -q pytest
if [ $? -eq 0 ]; then # match found
+ echo "Upgrading pytest"
pip install --upgrade pytest
+else
+ echo "Not upgrading pytest"
fi
-pip install --upgrade pytest
| bash |
d_bash_18529 | ---
+++
@@ -2,3 +2,4 @@
alias bi="bundle install"
alias bo="bundle open"
alias rake="noglob rake"
+alias hrspec="CHROME_DRIVER_ARGS='--headless' rspec" | bash |
d_bash_18530 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# programs
./dasm src/openf.dasm16 bin/openf.bin | bash |
d_bash_18531 | ---
+++
@@ -2,3 +2,7 @@
# Link to the binary
ln -sf /opt/{{ name }}/{{ name }} /usr/bin/{{ name }}
+
+# Update icon cache
+/bin/touch --no-create /usr/share/icons/hicolor &>/dev/null
+/usr/bin/gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || : | bash |
d_bash_18532 | ---
+++
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
+
+set -e
git clone 'git@github.gds:gds/cdn-configs.git'
| bash |
d_bash_18533 | ---
+++
@@ -1,9 +1,8 @@
#!/bin/bash -ex
if [ ! -f /etc/lsb-release ] || \
- (. /etc/lsb-release && [ $DISTRIB_RELEASE != "10.04" ]) || \
[ `uname -m` != "x86_64" ]; then
- echo "This installer supports only Ubuntu 10.04 64bit server"
+ echo "This installer supports only Ubuntu 10.04 and 12.04 64bit se... | bash |
d_bash_18534 | ---
+++
@@ -14,5 +14,8 @@
#Run NewfiesCustomerInterfaceTestCase
#./manage.py test dialer_cdr.NewfiesCustomerInterfaceTestCase --verbosity=2
+#Run NewfiesTastypieApiTestCase
+#python manage.py test dialer_cdr.NewfiesTastypieApiTestCase.test_create_campaign --verbosity=2
+
cd -
| bash |
d_bash_18535 | ---
+++
@@ -4,6 +4,6 @@
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
-docker-compose -f docker-compose.build.yml build
+docker-compose -f docker-compose.build.yml build $NAME
-docker-compose -f docker-compose.build.yml push
+docker-compose -f docker-compose.build.yml push $NAME | bash |
d_bash_18536 | ---
+++
@@ -1,5 +1,7 @@
if [[ -e "${HOME}/.rbenv/bin/rbenv" ]]; then
RBENV_ROOT=$HOME/.rbenv
+elif [[ -e "/usr/local/bin/rbenv" ]]; then
+ RBENV_ROOT=/usr/local
elif [[ -e "/usr/local/rbenv/bin/rbenv" ]]; then
RBENV_ROOT=/usr/local/rbenv
fi | bash |
d_bash_18537 | ---
+++
@@ -18,4 +18,4 @@
# Install some OS X apps using Cask
echo "• Installing Homebrew Cask and some apps"
brew install caskroom/cask/brew-cask
-brew cask install github hopper-disassembler skype the-unarchiver transmission
+brew cask install github hopper-disassembler skype the-unarchiver transmission sketch c... | bash |
d_bash_18538 | ---
+++
@@ -3,6 +3,6 @@
prepare
run khepri init
run khepri backup "${BASE}/fake-data"
-run khepri restore "$(khepri snapshots)" "${BASE}/fake-data-restore"
+run khepri restore "$(basename "$KHEPRI_REPOSITORY"/snapshots/*)" "${BASE}/fake-data-restore"
dirdiff "${BASE}/fake-data" "${BASE}/fake-data-restore/fake-dat... | bash |
d_bash_18539 | ---
+++
@@ -1,9 +1,10 @@
#!/bin/sh
while true; do
+ esc -o web/static.go -pkg web -prefix web/static web/static/
go run main.go -w -dev -r -q
- esc -o web/static.go -pkg web -prefix web/static web/static/
if [ $? != 0 ] ; then
+ esc -o web/static.go -pkg web -prefix web/static web/static/
exit
fi
echo... | bash |
d_bash_18540 | ---
+++
@@ -1,5 +1,5 @@
# Install jq to filter Github release data for Pandoc.
sudo apt-get -y install jq
# Get the latest .deb released.
-wget `curl https://api.github.com/repos/jgm/pandoc/releases/latest | jq -r '.assets[] | .browser_download_url | select(endswith("deb"))'` -O pandoc.deb
+wget 'https://github.co... | bash |
d_bash_18541 | ---
+++
@@ -1,22 +1,45 @@
#!/usr/bin/env bash
-set -ex
+set -exu
-rm -f network.log
+if [[ ${WITHOUT_COVERAGE:-0} -eq 1 ]]; then
+ my_command="python"
+else
+ my_command="coverage run --debug=dataio"
+fi
-# start the master instance
-COVERAGE_FILE=.coverage.1 coverage run --debug=dataio monitor.py -f tests/net... | bash |
d_bash_18542 | ---
+++
@@ -10,7 +10,9 @@
./tests/test_depsolve.sh
# collect coverage data from unit tests and binaries
-mkdir ./dist/hpc/vanilla/tix/bdcs-tmpfiles/ ./dist/hpc/vanilla/tix/import/ ./dist/hpc/vanilla/tix/export/
+mkdir ./dist/hpc/vanilla/tix/bdcs-tmpfiles/
+mkdir ./dist/hpc/vanilla/tix/bdcs-import/
+mkdir ./dist/h... | bash |
d_bash_18543 | ---
+++
@@ -4,6 +4,7 @@
-t deb \
--python-bin /usr/bin/python3 \
--python-package-name-prefix python3 \
+ --python-install-lib /usr/lib/python3/dist-packages \
-a all \
-m "Alistair Lynn <alistair@thread.com>" \
--deb-compression xz \ | bash |
d_bash_18544 | ---
+++
@@ -4,5 +4,6 @@
if is_osx
then
- export JAVA_HOME=$(/usr/libexec/java_home)
+ export JAVA_HOME
+ JAVA_HOME="$(/usr/libexec/java_home)"
fi | bash |
d_bash_18545 | ---
+++
@@ -16,7 +16,7 @@
cd /tmp/testing-with-real-projects
-git clone git@github.com:doctrine/collections.git
+git clone git@github.com:muglug/collections.git
cd collections
composer install
~/project/psalm --monochrome --show-info=false | bash |
d_bash_18546 | ---
+++
@@ -37,6 +37,9 @@
# Drop another divider to break feedback up a little
printf %s$'\n' "${BOLD}${BLUE}==>${RESET}${BOLD} Updating: $i${RESET}";
+ # Clear .DS_Store crap if possible
+ hash dsclean 2>/dev/null && dsclean;
+
# Update!
svn update;
); }; | bash |
d_bash_18547 | ---
+++
@@ -13,6 +13,7 @@
source ./AILENV/bin/activate
cd bin
./LAUNCH.sh -l
+./LAUNCH.sh -c
./LAUNCH.sh -f
signalListener tail -f /dev/null $@ | bash |
d_bash_18548 | ---
+++
@@ -1,7 +1,17 @@
#!/bin/bash -e
-sudo python3-pip install -r pipreqs
+
+
+if [ -z $(which python3-pip) ]; then
+ PIP_CMD=$(which pip)
+ PYTHON_CMD=$(which python)
+else
+ PIP_CMD=$(which python3-pip)
+ PYTHON_CMD=$(which python3)
+fi
+
+sudo ${PIP_CMD} install -r pipreqs
if [ -z "$APP_MODE" -... | bash |
d_bash_18549 | ---
+++
@@ -2,6 +2,9 @@
set -e
+CLIENT_LOGGING_LEVEL="DEBUG"
+TEST_LOGGING_LEVEL="DEBUG"
+
pushd cf-java-client
./mvnw -q -P integration-test test
popd | bash |
d_bash_18550 | ---
+++
@@ -14,7 +14,7 @@
function test_go_get {
local result
- go get github.com/golang/example/hello
+ go get golang.org/x/example/hello
result=$(hello)
rm -rf $GOPATH/bin/* $GOPATH/src/* | bash |
d_bash_18551 | ---
+++
@@ -18,7 +18,12 @@
alias aptg="sudo apt-get install"
#alias to open current directory in file browser
-alias op="nautilus .;"
+if [ "$XDG_CURRENT_DESKTOP" = "KDE" ]; then
+ alias op="dolphin .;"
+#unity
+else
+ alias op="nautilus .;"
+fi
#node
alias node="nodejs" | bash |
d_bash_18552 | ---
+++
@@ -1 +1,2 @@
-ln -sf ~/Dropbox/dotfiles-secret/ssh/* ~/.ssh
+# ln -sf ~/Dropbox/dotfiles-secret/ssh/* ~/.ssh
+find ~/Dropbox/dotfiles-secret/ssh | xargs -I {} ln -sf {} ~/.ssh/ | bash |
d_bash_18553 | ---
+++
@@ -1,12 +1,12 @@
#!/bin/bash
-
-set -e
_=`which sw_vers`
if [ 0 -eq $? ] # macOS
then
+ set -e
name=`sw_vers -productName`
else
+ set -e
name=`uname -s`
fi
echo "${name}" | awk '{ gsub(" ", "") ; print tolower($0) }' | bash |
d_bash_18554 | ---
+++
@@ -26,7 +26,12 @@
set -ex
-aclocal
+if [ "x`uname -s`" = "xFreeBSD" ] ; then
+ # Ask DES
+ aclocal -I /usr/local/share/aclocal
+else
+ aclocal
+fi
libtoolize --copy --force
autoheader
automake --add-missing --copy --foreign | bash |
d_bash_18555 | ---
+++
@@ -2,7 +2,7 @@
set -e
-API_KEY=`less ../secrets.yaml | grep destiny2_api_key | awk '{print $2}'`
+API_KEY=`less /config/secrets.yaml | grep destiny2_api_key | awk '{print $2}'`
STRIKER=2958378809
SUNBREAKER=3105935002 | bash |
d_bash_18556 | ---
+++
@@ -9,6 +9,11 @@
fi
}
+# Create the (empty) build directory if it doesn't exist
+if ! [ -d build ]; then
+ echo "creating build directory"
+ mkdir build
+fi
run_cmd aclocal
run_cmd autoheader | bash |
d_bash_18557 | ---
+++
@@ -2,3 +2,19 @@
alias bubo='brew update && brew outdated'
alias bubc='brew upgrade && brew cleanup'
alias bubu='bubo && bubc'
+
+if mkdir "$ZSH_CACHE_DIR/.brew-completion-message" 2>/dev/null; then
+ print -P '%F{yellow}'Oh My Zsh brew plugin:
+ cat <<-'EOF'
+
+ With the advent of their 1.0 release, Ho... | bash |
d_bash_18558 | ---
+++
@@ -25,13 +25,16 @@
# If we got to this point, we need to create the container
log "Creating container..."
-lxc-create -n ${CONTAINER} -t download -- \
- --dist ${DISTRIBUTION} \
- --release ${RELEASE} \
- --arch ${ARCH}
-
-# TODO: Nicely handle boxes that don't have an image... | bash |
d_bash_18559 | ---
+++
@@ -11,4 +11,5 @@
setopt hist_verify
setopt hist_reduce_blanks
setopt ignoreeof # Not logout by Ctl+D
+setopt noflowcontrol # Disable flow control (Ctrl+S, Ctrl+Q)
| bash |
d_bash_18560 | ---
+++
@@ -8,7 +8,6 @@
${EMACS:=emacs} -nw --batch \
--eval '(let ((debug-on-error t)
(url-show-status nil)
- (gnutls-log-level 1)
(user-emacs-directory default-directory)
(user... | bash |
d_bash_18561 | ---
+++
@@ -27,4 +27,4 @@
LAUNCH_FLAGS="-- bash -c "
fi
-exec $LAUNCH_TERM $LAUNCH_FLAGS "$EXE_NAME "$@""
+exec $LAUNCH_TERM $LAUNCH_FLAGS "sh -c '$EXE_NAME "$@"; read'" | bash |
d_bash_18562 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
cd /root
-curl https://repo.continuum.io/miniconda/$1 > mini3.sh
+curl https://repo.anaconda.com/miniconda/$1 > mini3.sh
bash mini3.sh -b -f
source /root/miniconda3/bin/activate root
| bash |
d_bash_18563 | ---
+++
@@ -27,7 +27,7 @@
+++
title = "$post_title"
description = "$post_title"
-date = "$post_date"
+date = $post_date
draft = false
# template = "page.html"
[taxonomies] | bash |
d_bash_18564 | ---
+++
@@ -3,6 +3,9 @@
/usr/local/bin/cbsd jstart letsencrypt
/usr/local/bin/cbsd jexec jname=letsencrypt /usr/local/bin/letsencrypt_update.sh
/usr/local/bin/cbsd jstop letsencrypt
+
/usr/local/bin/cbsd jexec jname=ldap /usr/local/bin/update_certs.sh
/usr/local/bin/cbsd jexec jname=jabber /usr/local/bin/update_... | bash |
d_bash_18565 | ---
+++
@@ -1,2 +1,3 @@
#!/bin/bash
-grep "^class " * -R --exclude=*.svn* --exclude=*.tmp| grep ".php" | cut --delimiter=" " --fields 1,2 | sed "s/class //" | sed "s/:/\|/"> class.hints
+grep -i "^class " * -R --exclude=*.svn* --exclude=*.tmp| grep ".php" | cut --delimiter=" " --fields 1,2 | sed "s/class //" | sed "... | bash |
d_bash_18566 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/sh
+
+set -e
cargo build
Xephyr :1 & | bash |
d_bash_18567 | ---
+++
@@ -18,6 +18,6 @@
#
##===----------------------------------------------------------------------===##
#
-echo "gccld: This tool is deprecated, please use llvm-ld"
+echo "gccld: This tool is deprecated, please use llvm-ld" 1>&2
TOOLDIR=@TOOLDIR@
$TOOLDIR/llvm-ld "$@" | bash |
d_bash_18568 | ---
+++
@@ -1,11 +1,32 @@
+function savepath() {
+ pwd > ~/.current_path~
+}
+
function tab() {
- osascript 2>/dev/null <<EOF
+savepath
+osascript >/dev/null <<EOF
+on do_submenu(app_name, menu_name, menu_item, submenu_item)
+ -- bring the target application to the front
+ tell application app_name
+ ac... | bash |
d_bash_18569 | ---
+++
@@ -5,13 +5,13 @@
set -u
# Update the list of packages
-apt-get update &&
+apt update &&
# Check for broken dependencies
apt-get check &&
# Upgrade to new packages, with smart handling of changing dependencies
-apt-get dist-upgrade -y &&
+apt full-upgrade -y &&
# Purge unneeded dependencies
-apt-get a... | bash |
d_bash_18570 | ---
+++
@@ -7,7 +7,8 @@
date_suffix=$(date +_%F-%T-%N)
# Make symlink for a bunch of files.
-for file in "$DOTFILES_DIR"/.{bash_profile,inputrc}; do
+for file in $(find $DOTFILES_DIR -type f -name .bash_profile -o -name .inputrc -o -name .emacs); do
+
# Get the filename from path
target=$(basename $... | bash |
d_bash_18571 | ---
+++
@@ -36,7 +36,3 @@
--localstatedir=${pkg_svc_var_path}
make
}
-
-do_install() {
- make install
-} | bash |
d_bash_18572 | ---
+++
@@ -8,7 +8,9 @@
oc new-project enmasse-ci
oc policy add-role-to-user view system:serviceaccount:$(oc project -q):default
oc policy add-role-to-user edit system:serviceaccount:$(oc project -q):deployer
-oc process -f https://raw.githubusercontent.com/enmasseproject/openshift-configuration/master/enmasse-tem... | bash |
d_bash_18573 | ---
+++
@@ -6,7 +6,6 @@
DIFFER=$(head -$LINES "${FILE}" | diff -q - "$(dirname $0)/boilerplate.txt")
if [[ -z "${DIFFER}" ]]; then
- echo "${DIFFER}"
echo "1"
exit 0
fi | bash |
d_bash_18574 | ---
+++
@@ -1 +1 @@
-xcodebuild -workspace XNGOAuth1Client.xcworkspace -scheme 'XNGOAuth1Client' -destination platform='iOS Simulator',OS=$OS,name='iPhone Retina (4-inch)' clean build test -sdk iphonesimulator | xcpretty -c -t; exit ${PIPESTATUS[0]}
+xcodebuild -workspace XNGOAuth1Client.xcworkspace -scheme 'XNGOAuth... | bash |
d_bash_18575 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/sh
+sudo aptitude install git sbcl mplayer sox
git clone https://github.com/SvenMichaelKlose/tre
git clone https://github.com/SvenMichaelKlose/bender
git clone https://github.com/SvenMichaelKlose/nipkow | bash |
d_bash_18576 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-LIBRARIES="CogLCD aJson PubNub Temboo MQTTClient PubSubClient OPT3001"
+LIBRARIES="CogLCD aJson PubNub Temboo MQTTClient PubSubClient OPT3001 M2XStreamClient"
ARCHES="msp430 lm4f cc3200 msp432"
OSTYPE=`uname`
| bash |
d_bash_18577 | ---
+++
@@ -13,6 +13,7 @@
echo -n "Password: "
read -s PASSWORD
+mkdir -p ~/.config/pynessus
echo """
# Defaults
@@ -26,12 +27,13 @@
loglevel = info
limit = 3
sleepmax = 600
-sleepmin = 300""" > ~/.pynessus.conf
+sleepmin = 300""" > ~/.config/pynessus/default.conf
+
if [[ "$SHELL" == "/bin/zsh" ]]; then... | bash |
d_bash_18578 | ---
+++
@@ -19,11 +19,12 @@
. env/bin/activate
-if [ $(uname -s) == 'Darwin' ]; then
+if [ $(uname -s) == "Darwin" ]; then
# Mac OS X Mountain Lion compiles with clang by default...
- # clang and cython don't get along...
- # uname -sr = Darwin 12.0.0
- if [ $(uname -r | sed -e 's/\./ /' | awk '{pr... | bash |
d_bash_18579 | ---
+++
@@ -7,7 +7,7 @@
#wget -O $PREFIX/etc/pki/tls/certs/cacert.pem http://curl.haxx.se/ca/cacert.pem
#This won't build on OSX without this
-export DYLD_LIBRARY_PATH=$PREFIX
+export DYLD_LIBRARY_PATH=$PREFIX/lib
#Actually install curl over the broken anaconda version
./configure --prefix=$PREFIX --disable-l... | bash |
d_bash_18580 | ---
+++
@@ -13,4 +13,8 @@
EXPECT_EQ 'Dunsparce' "$(UNAME=Linux run)"
EXPECT_EQ '206' "$(UNAME=Linux run --id)"
+
+ echo 'Pikachu' > "${TMPDIR}/POKEMON_NAME"
+ EXPECT_EQ 'Pikachu' "$(
+ UNAME=Darwin run --cache --cache_file="${TMPDIR}/POKEMON_NAME")"
} | bash |
d_bash_18581 | ---
+++
@@ -1,24 +1,3 @@
#!/bin/bash
-# https://alexplescan.com/posts/2016/03/03/setting-up-swiftlint-on-travis-ci/
-
-# Installs the SwiftLint package.
-# Tries to get the precompiled .pkg file from Github, but if that
-# fails just recompiles from source.
-
-SWIFTLINT_PKG_PATH="/tmp/SwiftLint.pkg"
-# Make sure t... | bash |
d_bash_18582 | ---
+++
@@ -6,3 +6,22 @@
alias gd='git diff '
alias gk='gitk --all&'
alias gx='gitx --all'
+
+# Update the GIT_HASH environment variable to the current
+# commit's hash.
+ghash() {
+ export GHASH=$(git log -1 --pretty=format:%H)
+}
+
+# Perform a commit, but preserve hash.
+# For use with git-rebase so that autho... | bash |
d_bash_18583 | ---
+++
@@ -25,6 +25,8 @@
# Travis ships with an old version of PyPy, so install at least version 2.6.
if [[ "${TOX_ENV}" == "pypy" ]]; then
- git clone https://github.com/yyuu/pyenv.git ${HOME}/.pyenv
- ${HOME}/.pyenv/bin/pyenv install pypy-2.6.0
+ if [ ! -d "${HOME}/.pyenv" ]; then
+ git clone h... | bash |
d_bash_18584 | ---
+++
@@ -16,8 +16,7 @@
__tmpdir=/tmp/cdap-examples.$$
mkdir -p ${__tmpdir}
-cd ${__tmpdir}
-git clone https://github.com/caskdata/cdap.git
-chown -R cdap cdap
-su - cdap -c "cd ${__tmpdir}/cdap && MAVEN_OPTS='-Xmx512m -XX:MaxPermSize=128m' mvn package -DskipTests -pl cdap-examples -am -amd -P examples"
+cp -a ... | bash |
d_bash_18585 | ---
+++
@@ -27,7 +27,7 @@
fi
if [[ $(hostname) != 'Mimir' ]]; then
- enabled+=('redshift-gtk')
+ # enabled+=('redshift-gtk')
fi
for unit in $enabled; do | bash |
d_bash_18586 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh -xe
+#!/bin/bash -xe
#
# This script automates the build process described by webrtc:
@@ -19,3 +19,23 @@
ninja -C out_ios/Debug -t clean
ninja -C out_ios/Debug libjingle_peerconnection_objc_test
+AR=`xcrun -f ar`
+PWD=`pwd`
+ROOT=$PWD
+LIBS_OUT=`find $PWD/out_ios/Debug -d 1 ... | bash |
d_bash_18587 | ---
+++
@@ -6,10 +6,8 @@
# Customize to your needs...
export PATH=/usr/local/bin:$PATH
-
export PATH=/usr/local/sbin:$PATH
export PATH=$HOME/bin:$PATH
-export PATH=$HOME/local/bin:$PATH
export PATH=$HOME/.rbenv/bin:$PATH
# if [[ `uname` == 'Darwin' ]]; then | bash |
d_bash_18588 | ---
+++
@@ -1,15 +1,37 @@
#!/usr/bin/env bash
-SPACED=$(grep -REn '^ .+' --include '*.snippets' snippets)
+check=0
-if [[ $? -ne 1 ]]; then
- echo These snippet lines are indented with spaces:
- echo
- echo "$SPACED"
- echo
- echo Tests failed!
+function test_space_indented {
+ local spaced
+ spaced=$(gre... | bash |
d_bash_18589 | ---
+++
@@ -3,7 +3,6 @@
# Include utils
source ../utils/utils.sh
kata="rebase-branch"
-set -e
makerepo
| bash |
d_bash_18590 | ---
+++
@@ -5,7 +5,7 @@
FREETDS_VERSION=1.00.21
-wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-$FREETDS_VERSION.tar.gz
+wget http://www.freetds.org/files/stable/freetds-$FREETDS_VERSION.tar.gz
tar -xzf freetds-$FREETDS_VERSION.tar.gz
cd freetds-$FREETDS_VERSION
./configure --prefix=/opt/local \ | bash |
d_bash_18591 | ---
+++
@@ -5,9 +5,13 @@
git config --global merge.pw.driver 'tmp=$(mktemp) ; (comm -12 %A %B ; comm -13 %O %A ; comm -13 %O %B ) >| $tmp ; mv $tmp %A'
# set up the diff program for password files
-
-# FIXME: use pw-diff instead of textconv
-git config --global diff.pw.textconv "pw-show -c -d"
+if [ "$1" = '--tex... | bash |
d_bash_18592 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash -e
-venvdir=~/.virtualenvs/$(basename $(cd $(dirname $0) && pwd -P))
+venvdir=~/.virtualenvs/$(basename $(cd $(dirname $0) && pwd -P))-$1-$2
if [ ! -d "${venvdir}" ]; then
virtualenv --no-site-packages "$venvdir" | bash |
d_bash_18593 | ---
+++
@@ -23,4 +23,4 @@
sudo curl -Lo /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64
sudo chmod +x /usr/local/bin/dep
-go get golang.org/x/lint/golint
+go get -u golang.org/x/lint/golint | bash |
d_bash_18594 | ---
+++
@@ -15,5 +15,5 @@
git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
pip install -f travis-wheels/wheelhouse .
-# avoid error when trying to start up config
-mkdir -p ~/.jupyter/nbconfig
+# create jupyter base dir (needed for config retreival)
+mkdir ~/.jupyter | bash |
d_bash_18595 | ---
+++
@@ -1,5 +1,6 @@
PATH="/opt/boxen/homebrew/bin:$PATH"
-if $(brew_location="$(type -p "$brew")" && [ -z "$brew_location" ]); then
+if which brew > /dev/null 2>&1
+then
# we have homebrew installed
export PYTHONPATH="$(brew --prefix)/lib/python2.7/site-packages:$PYTHONPATH"
fi | bash |
d_bash_18596 | ---
+++
@@ -13,14 +13,15 @@
"$DIR"
fi
-for bundle in $DIR/test/bundles/*; do
+cd $DIR
+
+for bundle in ./test/bundles/*; do
bundle_name=$(basename $bundle '.bash')
if [[ " ${DISABLED_TEST_BUNDLES[@]-} " =~ " ${bundle_name} " ]]; then
continue
fi
- bundle_relative_path=$(realpath... | bash |
d_bash_18597 | ---
+++
@@ -8,7 +8,7 @@
then
git config --global user.name "Travis CI"
git config --global user.email "travis@travis-ci"
- ORIGIN=https://$GH_TOKEN@$GH_REPO.git
+ ORIGIN=https://$GH_TOKEN@github.com/$GH_REPO.git
else
ORIGIN=$(git remote get-url origin) # get-url requires Git >= 2.6.0
fi
@@ -28,6 +28,6 @... | bash |
d_bash_18598 | ---
+++
@@ -4,11 +4,13 @@
curl -o $CLOUD_CONFIG_FILE http://<%=server%>:<%=port%>/api/current/templates/$CLOUD_CONFIG_FILE?nodeId=<%=nodeId%>
sudo coreos-install -d <%=installDisk%> -c $CLOUD_CONFIG_FILE -b <%=repo%>
+<% if (typeof ignitionScriptUri !== 'undefined') { %>
# Customizations for supporting CoreOS Ig... | bash |
d_bash_18599 | ---
+++
@@ -25,5 +25,10 @@
eval `opam config env`
opam install ocp-build
opam install ${OPAM_DEPENDS}
+
+opam install ocp-indent
+ocp-indent -i *.ml
+[ -z "$(git diff)" ]
+
ocp-build -init
make check | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.