document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_14700 | ---
+++
@@ -10,15 +10,8 @@
HEADERS=$( ls include/mbedtls/*.h include/psa/*.h | egrep -v 'compat-1\.3\.h' )
HEADERS="$HEADERS 3rdparty/everest/include/everest/everest.h 3rdparty/everest/include/everest/x25519.h"
-# White-list macros we want to be able to refer to that don't exist in the
-# crypto library, useful w... | bash |
d_bash_14701 | ---
+++
@@ -15,11 +15,7 @@
NODE_MODULES_DIR=/mapic/modules/mile/node_modules
if [ ! -d "$NODE_MODULES_DIR" ]; then
echo "Installing node modules..."
- npm install || abort "Failed to install node modules. Quitting!"
-
- # build mapnik from source
- # rm node_modules/mapnik -r
- # npm install --build-from-sou... | bash |
d_bash_14702 | ---
+++
@@ -2,10 +2,8 @@
# Small script to fully setup environment
-if [ $(hostname) == "scionfull" ]; then
- sudo service zookeeper start
- ./scion.sh setup
-fi
+sudo service zookeeper start
+./scion.sh setup
# Can't be fixed during build due to
# https://github.com/docker/docker/issues/6828 | bash |
d_bash_14703 | ---
+++
@@ -1,60 +1,27 @@
-# `install` phase: install stuff needed for the `script` phase
-
set -ex
-. $(dirname $0)/utils.sh
+main() {
+ local target=
+ if [ $TRAVIS_OS_NAME = linux ]; then
+ target=x86_64-unknown-linux-musl
+ sort=sort
+ else
+ target=x86_64-apple-darwin
+ so... | bash |
d_bash_14704 | ---
+++
@@ -1,4 +1,8 @@
#!/bin/bash
+
+ls
+pwd
+ls
cd ..
mkdir -p build | bash |
d_bash_14705 | ---
+++
@@ -14,7 +14,6 @@
echo "# Commit & push the docs..."
git add docs/
-git add README.md
git commit -m "Documentation update for v$VERSION." || echo "No docs updated!"
git push
| bash |
d_bash_14706 | ---
+++
@@ -21,11 +21,13 @@
# Do a quick smoke check of integration test
bazel test transpiler/javatests/com/google/j2cl/transpiler/integration/emptyclass/...
-# build hello world sample in its own workspace
+# Build Hello World sample in its own workspace
(cd samples/helloworld && bazel build src/main/...)
#... | bash |
d_bash_14707 | ---
+++
@@ -17,6 +17,7 @@
kube_delete_namespace_and_wait "${NAVIGATOR_NAMESPACE}"
kube_delete_namespace_and_wait "${USER_NAMESPACE}"
+kubectl delete ThirdPartyResources --all
# Install navigator
kubectl create \ | bash |
d_bash_14708 | ---
+++
@@ -4,3 +4,6 @@
# Install 'rusti' Rust REPL
rustup run nightly-2016-08-01
rustup run nightly-2016-08-01 cargo install --git https://github.com/murarth/rusti
+
+# Install 'rustfmt' Rust code formatter
+rustup component add rustfmt-preview | bash |
d_bash_14709 | ---
+++
@@ -1,4 +1,10 @@
-#!/bin/sh
+#!/bin/bash
-cp ./tools/git-hooks/* .git/hooks &> /dev/null \
- && echo Git hooks installed. || echo Git hooks NOT installed.
+cd "$( dirname "${BASH_SOURCE[0]}" )"
+
+if [ -d ../.git/hooks ]; then
+ cp git-hooks/* ../.git/hooks/
+ echo Git hooks installed.
+else
+ echo Git ... | bash |
d_bash_14710 | ---
+++
@@ -1,3 +1,3 @@
source "$( dirname "${BASH_SOURCE[0]}" )"/complete.bash
-PS1="\[\033[01;34m\]\$(basename '$VIRTUAL_ENV')\[\e[0m\]$PS1"
+[[ -z "${VIRTUAL_ENV}" ]] || PS1="\[\033[01;34m\]\$(basename '$VIRTUAL_ENV')\[\e[0m\] $PS1" | bash |
d_bash_14711 | ---
+++
@@ -4,3 +4,6 @@
echo "Loading rbenv.."
eval "$(rbenv init -)"
fi
+
+# RubyMine needs this env var explicitly set or it can't find things..
+export RBENV_ROOT=$(rbenv root) | bash |
d_bash_14712 | ---
+++
@@ -1,4 +1,12 @@
#!/bin/sh
+
+# Use this script to update jobsworth to the current version on whichever
+# git branch you are already on
+
+# It is designed to work with a passenger deployment, but it might work well
+# for other deployment choices as well
+
+APP_USER=`ls -l config/environment.rb | cut -b 15... | bash |
d_bash_14713 | ---
+++
@@ -1,6 +1,9 @@
-find . -type f -name "*.pl" | xargs sed -i.bak 's/usr\/bin\/perl/usr\/bin\/env perl/g'
-find . -type f -name "*.pm" | xargs sed -i.bak 's/usr\/local\/bin\/perl/usr\/bin\/env perl/g'
-find . -type f -name "*.sh" | xargs sed -i.bak 's/usr\/bin\/perl/usr\/bin\/env perl/g'
+export LC_CTYPE=C
+ex... | bash |
d_bash_14714 | ---
+++
@@ -3,9 +3,9 @@
set -e
cd "$( dirname "${BASH_SOURCE[0]}" )"
-curl -O ftp://ftp.fu-berlin.de/pub/misc/movies/database/actors.list.gz
-curl -O ftp://ftp.fu-berlin.de/pub/misc/movies/database/actresses.list.gz
-curl -O ftp://ftp.fu-berlin.de/pub/misc/movies/database/genres.list.gz
-curl -O ftp://ftp.fu-berl... | bash |
d_bash_14715 | ---
+++
@@ -3,18 +3,10 @@
ROCHE=roche-website
DEDALUS=dedalus-infrastructure
-# Fix locale
-#locale-gen en_US.UTF-8
-
-# Update the base system
-apt-get -qy install \
-# git \
- pwgen
-
# Shared data diretory for all containers
mkdir -p /docker/apache2
-pwgen 7 1 > /docker/master-password.txt
+echo -n "iSoof... | bash |
d_bash_14716 | ---
+++
@@ -22,14 +22,6 @@
git branch;
}
-function mergeDevelop() {
- git checkout develop;
- git pull --rebase;
- git checkout feature/daily_update;
- git pull --rebase;
- git merge develop;
-}
-
function mergeFirstIntoSecond() {
git checkout $1;
git branch --set-upstream-to=origin/$1 $1
@@ -39,3 +... | bash |
d_bash_14717 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-mvn -DMAVEN_OPTS="-Xmx1024m -Xms512m" mvn clean install
+mvn -DMAVEN_OPTS="-Xmx1024m -Xms512m" mvn clean install -Dmaven.test.skip=true | bash |
d_bash_14718 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/zsh
+#!/bin/sh
# generate java code for the protobuff definition
DIR=$(cd "$(dirname "$0")" ; pwd) | bash |
d_bash_14719 | ---
+++
@@ -1,2 +1,7 @@
#!/bin/sh
xrandr --output VIRTUAL1 --off --output eDP1 --mode 2560x1440 --pos 3840x416 --rotate normal --output DP1 --off --output HDMI1 --off --output DP1-3 --off --output DP1-2 --off --output DP1-1 --primary --mode 3840x2160 --pos 0x0 --rotate normal --output DP2 --off
+
+i3-msg -q "worksp... | bash |
d_bash_14720 | ---
+++
@@ -1,5 +1,5 @@
replace_newline_return () {
- awk '{if (NR>1) {printf line"⏎";} line=$0;} END { printf line; }'
+ awk '{if (NR>1) {printf("%s⏎", line);} line=$0;} END { printf("%s", line); }'
}
regex_escape () { | bash |
d_bash_14721 | ---
+++
@@ -1,15 +1,18 @@
# See https://github.com/Tarrasch/antigen-hs
-if [[ "$0" != $HOME/.zsh/antigen-hs/init.zsh ]]
-then
- echo "Put this file in '~/.zsh/antigen-hs/init.zsh' please!"
+ANTIGEN_HS_HOME=${${0:A}:h}
+if [[ -z "$ANTIGEN_HS_OUT" ]]; then
+ ANTIGEN_HS_OUT="$HOME/.antigen-hs"
+fi
+if [[ -z "$ANTIG... | bash |
d_bash_14722 | ---
+++
@@ -17,21 +17,17 @@
#
ADDNEWHOST=0
-#for i in {0..2}
for i in {0..253}
do
EXECHOST="exec-${i}"
- # echo ${EXECHOST}
ping -c 1 ${EXECHOST} &> /dev/null
RET=$?
if [ ${RET} -eq 0 ];
then
- # echo "FOUND new host by ping [${EXECHOST}]"
array_check ${EXECHOST}
CHECK=$?
if [ ... | bash |
d_bash_14723 | ---
+++
@@ -7,6 +7,7 @@
for lesson in $(find ${NIGHTLY_DIR} -mindepth 1 -maxdepth 1 -type d)
do
cd ${lesson}
+ git checkout -f gh-pages
git pull origin gh-pages
make -B preview
cd - | bash |
d_bash_14724 | ---
+++
@@ -8,6 +8,7 @@
alias mr='mate CHANGELOG app config db lib public script spec test'
alias .='pwd'
alias ...='cd ../..'
+alias -- -='cd -'
alias _='sudo'
alias ss='sudo su -' | bash |
d_bash_14725 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
set -ev
-sbt clean coverage test
+sbt clean coverage test it:test
sbt coverageReport
sbt coverageAggregate
sbt codacyCoverage | bash |
d_bash_14726 | ---
+++
@@ -16,10 +16,13 @@
alias ls='gls --color=auto'
alias lock='open ~/bin/Lock\ Computer.app'
-# b() { echo "bundle exec $*" && bundle exec $* }
-# bi() { echo "bundle install $*" && bundle install $* }
-# r() { echo "bundle exec rails $*" && bundle exec rails $* }
-# rake() { echo "bundle exec rake $*" &... | bash |
d_bash_14727 | ---
+++
@@ -1,4 +1,4 @@
-VTE_SH=/etc/profile.de/vte.sh
+VTE_SH=/etc/profile.d/vte.sh
if [[ $TERM == xterm-termite && -e $VTE_SH ]]; then
. $VTE_SH
whence __vte_osc7 > /dev/null && __vte_osc7 | bash |
d_bash_14728 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/sh
+# Run this at the root of the repo!
+source activate ospcdyn
git tag $1
echo "finished tag, now distributing to PyPI"
python setup.py register sdist upload
@@ -6,13 +8,15 @@
git push; git push --tags
echo "FINISHED push "
rm ~/code/og.tar
+echo "FINISHED rm tart "
rm -rf ~/c... | bash |
d_bash_14729 | ---
+++
@@ -19,7 +19,7 @@
echo -n $ITCH_API_KEY > butler_creds
# Upload game
-./butler push game.zip myrealitycoding/the-legend-of-studentenfutter:linux-universal -i butler_creds
+./butler push game.zip myrealitycoding/the-legend-of-studentenfutter:windows-linux-mac -i butler_creds
# Cleanup
echo "Cleanup.." | bash |
d_bash_14730 | ---
+++
@@ -8,7 +8,7 @@
# Bundler
config='--clean --path .rubygems --binstubs bin'
alias bi="bundle install $config"
-alias bu="bundle update $config"
+alias bu="bundle update"
alias be='bundle exec'
# El Capitan workaround to not being able to install Bundler to /usr/bin | bash |
d_bash_14731 | ---
+++
@@ -7,14 +7,14 @@
/home/ubuntu/anaconda3/bin/python setup.py download
mkdir -p data/external
-/home/ubuntu/anaconda3/bin/aws s3 cp s3://pinafore/public/wikipedia.tar.gz /tmp/wikipedia.tar.gz
+/home/ubuntu/anaconda3/bin/aws s3 cp s3://pinafore-us-west-2/public/wikipedia.tar.gz /tmp/wikipedia.tar.gz
tar -x... | bash |
d_bash_14732 | ---
+++
@@ -1,6 +1,8 @@
#!/bin/bash
-echo "Changing Scala Version to $1, and Scala Artifact Version to $2"
+projectName="wookiee-zookeeper"
+echo "Changing $projectName Scala Version to $1, and Scala Artifact Version to $2"
-sed -i "s/<scala\.version>.*</<scala\.version>$1</" child-pom.xml
-sed -i "s/<scala\.art... | bash |
d_bash_14733 | ---
+++
@@ -1,5 +1,4 @@
-bin/django syncdb --noinput
-bin/django syncdb --migrate
+bin/django migrate
bin/django loaddata fixture/auth.user.admin.json
bin/django loaddata fixture/timeslot.day.json
#bin/django loaddata fixture/timeslot.program.json | bash |
d_bash_14734 | ---
+++
@@ -4,7 +4,7 @@
# ~/git/backup-scripts/MySQLdump.sh
# Lukas Kallies
# Created: Do Jun 23, 2011 - Lukas Kallies
-# Last modified: Do Jun 23, 2011 - 13:52
+# Last modified: Die Nov 04, 2014 - 10:25
#
# This script backups all MySQL databases on a
# host. On debian based systems it greps for the
@@ -13,19 ... | bash |
d_bash_14735 | ---
+++
@@ -22,6 +22,9 @@
cd ./gh-pages/
+# Add changes to git.
+git add .
+
# Commit changes.
msg="Rebuild Github Pages."
if [ $# -eq 1 ] | bash |
d_bash_14736 | ---
+++
@@ -6,8 +6,26 @@
if [ $? -eq 0 ]
then
echo "Exist in $f"
- sed -e 's; -w14062 /Zc:inline /EHs-c- ;;' -e 's; -target x86_64-pc-windows-msvc -isysroot -L; -L;' $f > tmp.out
+ sed -e 's; -w14062 /Zc:inline /EHs-c- ;;' -e 's; -target x86_64-pc-windows-msvc -isysroot -L; -L;' $f > tmp.out
mv... | bash |
d_bash_14737 | ---
+++
@@ -15,7 +15,7 @@
PFX=${PFX:-==>}
GEMS=(
- jekyll
+# jekyll
)
if [ ! -x /usr/local/bin/brew ]; then | bash |
d_bash_14738 | ---
+++
@@ -8,13 +8,13 @@
alter role webpy with login;
EOF
sudo ed /etc/postgresql/9.1/main/pg_hba.conf <<EOF
-/^local.*peer$
+/^local.*all.*all.*peer$
s/peer/trust/
w
q
EOF
sudo service postgresql restart
psql -U webpy -d webpy <<EOF
-create table cases (id SERIAL, casename varchar, memory_image varchar, di... | bash |
d_bash_14739 | ---
+++
@@ -32,4 +32,7 @@
# upload complete update site
password=$WIKI_UPLOAD_PASS
./$launcher --update edit-update-site $update_site $url "webdav:$webdav_user:$password" .
+echo "===== Simulating update site upload ====="
+./$launcher --update upload-complete-site --simulate --force --force-shadow $update_site
+e... | bash |
d_bash_14740 | ---
+++
@@ -19,6 +19,6 @@
cd Quantic-Theme-master/
mv Quantic "${theme_dir}"
cd ../
-rmdir Quantic-Theme-master
+rm -rf Quantic-Theme-master
echo "Quantic theme installed. " | bash |
d_bash_14741 | ---
+++
@@ -10,3 +10,10 @@
mkdir -p build
rm -rf build/*
git archive HEAD:src --prefix=$file/ -9 -o build/$file.zip
+
+# Include LICENSE.md with release
+cd build
+mkdir -p $file
+cp ../LICENSE.md $file/LICENSE.md
+zip -q -9 $file.zip $file/LICENSE.md
+rm -rf $file | bash |
d_bash_14742 | ---
+++
@@ -2,4 +2,4 @@
set -exo pipefail
-mv candidate/*.zip "release-candidate/${LANGUAGE}-cnb-cf-v$(cat version/version).zip"
+mv candidate/*.zip "release-candidate/${LANGUAGE}-buildpack-v$(cat version/version).zip" | bash |
d_bash_14743 | ---
+++
@@ -1,20 +1,5 @@
#!/bin/bash -e
-mlr --icsv --ocsv --rs lf put '$OutputBits = "32"' HashBenchmark32-report.csv > benchmarks.csv
-mlr --icsv --ocsv --rs lf put '$OutputBits = "64"' HashBenchmark64-report.csv | \
- xsv cat rows - benchmarks.csv | \
- sponge benchmarks.csv
-
-mlr --icsv --ocsv --rs lf p... | bash |
d_bash_14744 | ---
+++
@@ -8,6 +8,9 @@
"${SH_DIR}/docker_containers_down.sh"
"${SH_DIR}/build_docker_images.sh"
"${SH_DIR}/tag_image.sh"
+if [ "${1}" == '--no-test' ]; then
+ exit 0
+fi
"${SH_DIR}/docker_containers_up.sh"
"${SH_DIR}/copy_in_saver_test_data.sh" 2> /dev/null
"${SH_DIR}/run_tests_in_container.sh" "$@" | bash |
d_bash_14745 | ---
+++
@@ -1,14 +1,12 @@
#!/usr/bin/env bash
-
-root=$GOPATH/src/github.com/qor
tmp_dir=$(mktemp -d)
trap "rm -rf $tmp_dir" EXIT
function pull_chances {
- local pkg=$(basename $1)
- local pkg_path=$root/$1
+ local pkg=$(basename $2)
+ local pkg_path=$1/$2
if [ ! -d "$pkg_path/.git" ]; th... | bash |
d_bash_14746 | ---
+++
@@ -24,7 +24,7 @@
EOF
# Pull down the wifi joining script and run it.
-wget --no-check-certificate -O pi-setup-common.sh https://raw.githubusercontent.com/mitmuseumstudio/RoboticLightBallet/master/pi-setup/pi-robot-join-wifi.sh
+wget --no-check-certificate -O pi-robot-join-wifi.sh https://raw.githubuserco... | bash |
d_bash_14747 | ---
+++
@@ -1,9 +1,9 @@
#!/bin/sh
-../bin/varianttools.rb -f ../data/test.fasta -i ../data/snp_test1/ -t SNP -d 9,5
+ruby ../bin/varianttools.rb -f ../data/test.fasta -i ../data/snp_test1/ -t SNP -d 9,5
diff output.tsv ../data/expected_results/snp_test1_clc_results.csv
-../bin/varianttools.rb -f ../data/test2.fasta... | bash |
d_bash_14748 | ---
+++
@@ -7,7 +7,7 @@
sudo apt-get upgrade -y -qq > /dev/null
# Install necessary libraries for guest additions and Vagrant NFS Share
-sudo apt-get -y -q install linux-headers-$(uname -r) build-essential dkms nfs-common python-prettytable devscripts debhelper python-epydoc python-ipaddr python-netifaces python-... | bash |
d_bash_14749 | ---
+++
@@ -62,6 +62,11 @@
cmd="${cmd} machine.json"
cd ${DESTDIR}
+if [ -e output ]
+then
+ rm -rf output
+fi
+
if [ -e Puppetfile ]
then
r10k -v DEBUG puppetfile install | bash |
d_bash_14750 | ---
+++
@@ -27,8 +27,7 @@
ln -snf "$PWD"/ssh/ssh_config ~/.ssh/config
mkdir -p ~/.gnupg
-ln -snf "$PWD"/gpg/gpg.conf ~/.gnupg/gpg.conf
-ln -snf "$PWD"/gpg/gpg-agent.conf ~/.gnupg/gpg-agent.conf
+ln -sf "$PWD"/gpg/* ~/.gnupg
# Disable Bash Sessions feature in OS X El Capitan
touch ~/.bash_sessions_disable | bash |
d_bash_14751 | ---
+++
@@ -6,6 +6,8 @@
source $HOME/.config/bash/includes/plugins.sh
source $HOME/.config/bash/includes/terminal-options.sh
+PATH=$PATH:~/.bin
+
if [ -f ~/.bashrc-local ]; then
source ~/.bashrc-local
fi | bash |
d_bash_14752 | ---
+++
@@ -25,8 +25,7 @@
fi
# Build and network
-docker pull "$(grep FROM Dockerfile | awk '{print $2}')"
-docker build -t "$CONTAINER:$BRANCH" .
+docker build --pull -t "$CONTAINER:$BRANCH" .
docker network inspect "$NETWORK" &>/dev/null ||
docker network create --driver bridge "$NETWORK"
| bash |
d_bash_14753 | ---
+++
@@ -1,6 +1,19 @@
#!/bin/sh
set -e
+
+manual_stamp_file=target/ci_manual_stamp
+manual_stamp=0 # Change this to force a clean build on CI
+
+if [ -f $manual_stamp_file ]; then
+ if echo "$manual_stamp" | cmp -s $manual_stamp_file -; then
+ : # Do nothing, fall through to version check below
+ ... | bash |
d_bash_14754 | ---
+++
@@ -18,10 +18,7 @@
# Note can't use weave_on here because it echoes the command
C2IP=$(DOCKER_HOST=tcp://$HOST2:2375 $WEAVE ps c2 | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
-ok=$(docker -H tcp://$HOST1:2375 exec -i c1 dig +short seetwo.weave.local)
-assert "echo $ok" "$C2IP"
-
-ok=$(do... | bash |
d_bash_14755 | ---
+++
@@ -23,7 +23,7 @@
# golint only works for golang 1.5+
if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.1|go1.2|go1.3|go1.4') ]]; then
- go get -u github.com/golang/lint/golint
+ go get -u golang.org/x/lint/golint
fi
go get -u github.com/tools/godep | bash |
d_bash_14756 | ---
+++
@@ -25,4 +25,9 @@
test -e /usr/local/bin/grunt || sudo npm install -g grunt-cli
echo "=== Installed node grunt ==="
+cd /tmp && wget -nc --progress=dot http://download.pivotal.com.s3.amazonaws.com/gemfire/7.0.2/pivotal-gemfire_7.0.2-1_all.deb
+test -e /usr/bin/gemfire || sudo dpkg --install /tmp/pivotal-g... | bash |
d_bash_14757 | ---
+++
@@ -12,8 +12,7 @@
if [[ "$SCHEDULER" == "SLURM" ]]; then
sudo apt-get update
- sudo apt-get install slurm-llnl
- sudo apt-get install munge
+ sudo apt-get -y install slurm-llnl
sudo /usr/sbin/create-munge-key
sudo service munge start
sudo python continuous_integration/configure... | bash |
d_bash_14758 | ---
+++
@@ -2,3 +2,4 @@
alias dc='docker-compose'
alias drm='docker-rm'
alias dcl='docker-clean'
+alias dcd='docker-compose down' | bash |
d_bash_14759 | ---
+++
@@ -2,5 +2,5 @@
# Add paths for homebrew on OS X
if [ $OSX ]; then
- export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
+ export PATH="/usr/local/share/npm/bin:/usr/local/bin:/usr/local/sbin:$PATH"
fi | bash |
d_bash_14760 | ---
+++
@@ -10,7 +10,7 @@
cd /tmp
rm -rf zulip-desktop
-git clone git@git.humbughq.com:zulip-desktop.git
+git clone git@git.zulip.net:zulip-desktop.git
pushd zulip-desktop
pushd admin/win
popd | bash |
d_bash_14761 | ---
+++
@@ -1,10 +1,12 @@
#!/bin/bash
-export SNAKE_URL="localhost:4000"
+set -e
+
+SNAKE_URL="localhost:4000"
SNAKES_PER_GAME=5
ROOT=$(realpath $(dirname $(realpath $0))/..)
CREATE_REQUEST="ruby $ROOT/scripts/create_request.rb"
-export RUBY_VERSION="ruby 2.3"
-export CHRUBY=/usr/local/share/chruby/chruby.sh
+RUB... | bash |
d_bash_14762 | ---
+++
@@ -10,3 +10,4 @@
alias gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun.
alias grm="git status | grep deleted | awk '{\$1=\$2=\"\"; print \$0}' | \
perl -pe 's/^[ \t]*//' | sed 's/ /\\\\ /g' | xargs git rm"
+alias gmc='git diff --name-only --diff-filter=U' | bash |
d_bash_14763 | ---
+++
@@ -1,6 +1,9 @@
if (( $+commands[hub] )); then
alias git=$(which hub)
fi
+
+alias g=git
+compdef g=git
export PATH="${PATH}:$(git --exec-path)"
@@ -10,3 +13,7 @@
alias gs='git status -sb'
alias grb='git rebase --committer-date-is-author-date'
alias s='git sync'
+
+if (( $+commands[gh] )); then
+ ... | bash |
d_bash_14764 | ---
+++
@@ -1,7 +1,10 @@
#!/usr/bin/env bash
-#mkdir empty_dir
-empty_dir=$( mktemp -d )
-rsync -a -L --delete --progress $empty_dir/ logs/
-rsync -a -L --delete --progress $empty_dir/ output/
-rm core*
-rmdir $empty_dir
+rclone delete logs/ --multi-thread-streams=16
+rclone delete output/ --multi-thread-streams... | bash |
d_bash_14765 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
-version="20.10.12"
+version="20.10.13"
echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz"; | bash |
d_bash_14766 | ---
+++
@@ -30,5 +30,5 @@
-print0
}
-find_scripts -perm -u+x | xargs -0 shellcheck -x --exclude=SC2016,SC1090
-find_scripts -not -perm -u+x | xargs -0 shellcheck -x --exclude=SC2016,SC2148
+find_scripts -perm -u+x | xargs -0 shellcheck --external-sources --exclude=SC2016,SC1090
+find_scripts -no... | bash |
d_bash_14767 | ---
+++
@@ -10,22 +10,12 @@
chmod 600 /home/vagrant/.ssh/authorized_keys
chown -R vagrant:vagrant /home/vagrant/.ssh
-# Install chef
-echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" | sudo tee /etc/apt/sources.list.d/opscode.list
-gpg --keyserver keys.gnupg.net --recv-keys 83EF826A
-gpg --export pa... | bash |
d_bash_14768 | ---
+++
@@ -5,4 +5,4 @@
echo "Testing build"
-python -c 'import pshmem.test; pshmem.test.run()'
+MPI_DISABLE=1 python -c 'import pshmem.test; pshmem.test.run()' | bash |
d_bash_14769 | ---
+++
@@ -31,3 +31,5 @@
# TODO(b/143715361): downloading first to allow for parallel builds.
readable_run make -f tensorflow/lite/micro/tools/make/Makefile TARGET=${TARGET} third_party_downloads
readable_run make -j8 -f tensorflow/lite/micro/tools/make/Makefile TARGET=${TARGET} micro_speech_bin
+readable_run mak... | bash |
d_bash_14770 | ---
+++
@@ -1 +1,4 @@
-docker run -ti --rm -v $(pwd):/Qt.py --entrypoint bash fredrikaverpil/qt.py:2017
+#!/bin/bash
+
+# docker run -ti --rm -v $(pwd):/Qt.py --entrypoint bash fredrikaverpil/qt.py:2017
+docker run -ti --rm -v $(pwd):/Qt.py --entrypoint bash fredrikaverpil/qt.py:2018 -c "cp -r /Qt.py/* . && bash" | bash |
d_bash_14771 | ---
+++
@@ -5,7 +5,8 @@
# Moreover, Samsung printer drivers could be installed, too.
# They are present under ~/Developer/drivers/samsung/
-sudo apt-get install calibre gaphor curl synaptic pidgin remmina
+sudo apt-get install calibre gaphor curl synaptic pidgin remmina \
+ gparted
# in order to install `dr... | bash |
d_bash_14772 | ---
+++
@@ -8,5 +8,6 @@
python bin/manage.py syncdb --noinput
python bin/manage.py migrate --noinput
python bin/manage.py collectstatic --noinput
+make build
deactivate | bash |
d_bash_14773 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
-distr=`curl -silent https://www.apache.org/dist/jena/binaries/ | perl -ne '/href="(jena-fuseki-\d\.\d\.\d)-distribution.tar.gz"/ && print $1'`
-wget --quiet https://www.apache.org/dist/jena/binaries/$distr-distribution.tar.gz -O- | tar -zx --strip-components 1 -C /opt/fuseki/ $di... | bash |
d_bash_14774 | ---
+++
@@ -6,4 +6,4 @@
cp .gitconfig ~/.gitconfig
cp .git-prompt.sh ~/.git-prompt.sh
cp .general.aliases ~/general.aliases
-cp .fonts ~/.fonts
+cp -ar .fonts ~/.fonts | bash |
d_bash_14775 | ---
+++
@@ -9,7 +9,7 @@
# Set path to prioritize our utils
export REAL_PATH="${PATH}"
-export PATH="${SOURCE_DIR}/ci/util:${PATH}"
+export PATH="$(readlink -f "${SOURCE_DIR}")/ci/util:${PATH}"
echo "PATH IS: $PATH"
# Build | bash |
d_bash_14776 | ---
+++
@@ -16,7 +16,7 @@
echo > ${DEST_ROOT}/bin/${SERVICE_NAME} "#!/usr/bin/env bash"
echo >> ${DEST_ROOT}/bin/${SERVICE_NAME} "exec chpst -u ${SERVICE_USER} ${DEST_ROOT}/lib/${JAR_FILE}"
-mkdir -p ${DEST_PATH}
+mkdir -p ${DEST_ROOT}
cp -f ${JAR_PATH} ${DEST_ROOT}/lib/
/sbin/sv restart ${SERVICE_NAME}
| bash |
d_bash_14777 | ---
+++
@@ -5,7 +5,53 @@
case $nodeVersion in
v0.8.*)
- echo "Node 0.8"
+ # Attempting to install istanbul@0.3.10 or later causes `npm install` to
+ # fail with the following error:
+ #
+ # Error: No compatible version found: esprima@'^1.2.2'
+ #
+ # This appears to be a problem with es... | bash |
d_bash_14778 | ---
+++
@@ -6,15 +6,21 @@
# bootstraps a Python 3.7 development environment.
die() {
- echo $*
+ echo "$@"
exit 1
}
-for p in pyenv; do
+for p in pyenv pyenv-virtualenv; do
command -v $p >/dev/null 2>&1 || { die "\`$p\` not found in PATH"; }
done
-CONFIGURE_OPTS=--enable-shared pyenv install 3.7.10
... | bash |
d_bash_14779 | ---
+++
@@ -22,6 +22,7 @@
rm -rf $dir/usr
rm -rf $dir/var
+mkdir $dir/usr $dir/var
mksquashfs $dir playpen.sqfs
umount $dir | bash |
d_bash_14780 | ---
+++
@@ -1,10 +1,14 @@
export $(cat /home/vagrant/www/.env | grep -v ^# | xargs) 2> /dev/null
+echo "Killing any running processes..."
+sudo killall -9 sass 2> /dev/null
+sudo killall -9 python 2> /dev/null
+sleep 10
echo "Starting SASS compiler..."
-sudo killall sass 2> /dev/null
sass --watch /home/vagrant/w... | bash |
d_bash_14781 | ---
+++
@@ -4,7 +4,7 @@
# Install Homebrew.
if [[ ! "$(type -P brew)" ]]; then
e_header "Installing Homebrew"
- true | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
+ true | bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
f... | bash |
d_bash_14782 | ---
+++
@@ -5,7 +5,7 @@
# All CLB's in X0Y2 CMT.
export XRAY_ROI="SLICE_X0Y100:SLICE_X35Y149 RAMB18_X0Y40:RAMB18_X0Y59 RAMB36_X0Y20:RAMB36_X0Y29 DSP48_X0Y40:DSP48_X0Y59"
export XRAY_ROI_GRID_X1="10"
-export XRAY_ROI_GRID_X2="57"
+export XRAY_ROI_GRID_X2="58"
# Y = 0 and Y 52 are VBRK rows, include them
export X... | bash |
d_bash_14783 | ---
+++
@@ -1,12 +1,13 @@
#!/bin/bash -eux
# Install growpart
-apt-get -y install cloud-guest-utils cloud-init
+apt-get -y install cloud-init
apt-get -y remove landscape-common
if [ "$(lsb_release -rs)" == "12.04" ] ; then
- apt-get -y install denyhosts
+ apt-get -y install denyhosts cloud-utils
else
+... | bash |
d_bash_14784 | ---
+++
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
OUTPUT_DIR=`pwd`/_posts
-PYTHON_UTIL=`pwd`/import_srweb.py
+PYTHON_UTIL=`pwd`/utils/import_srweb.py
NEWS_DIR=$1
cd $NEWS_DIR
-find . -not -name '.*' -type f | cut -c3- | xargs -I @ echo python3 $PYTHON_UTIL -s -l news @ -o $OUTPUT_DIR/@.md
+find . -not -name '.*' -type ... | bash |
d_bash_14785 | ---
+++
@@ -1,3 +1,5 @@
+#!/bin/bash
+
openstack_push_image() {
local -a args
local name="$1" | bash |
d_bash_14786 | ---
+++
@@ -11,9 +11,14 @@
shift
local arr=$@
+ if [ ${arr[0]} = "\/" ]
+ then
+ return 0
+ fi
+
for i in ${arr[@]}
do
- if echo $comm | grep -wq $i
+ if (echo $comm | grep -wq $i)
then
return 0
fi | bash |
d_bash_14787 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
command -v apt-get >/dev/null 2>&1 ||
{ echo >&2 "Installation script requires apt-get but it's not installed. Aborting."; | bash |
d_bash_14788 | ---
+++
@@ -6,12 +6,17 @@
platform=$(uname -s | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/")
fi
+if [ "$platform" == "win32" ]; then
+ export INSTALL_NODE_URL=https://mapbox.s3.amazonaws.com/node-cpp11
+fi
+
set -e -u
set -o pipefail
cwd=$(pwd)
mkdir -p $(dirname $0)/../vendor
cd ... | bash |
d_bash_14789 | ---
+++
@@ -17,7 +17,6 @@
# Install additional apps
install_cask keybase
install_cask zoom
-install_cask slack
install_cask microsoft-teams
install_cask postman
# Least-essential apps | bash |
d_bash_14790 | ---
+++
@@ -11,6 +11,9 @@
java14)
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/jdk-15%2B36/OpenJDK15U-jdk_x64_linux_hotsp... | bash |
d_bash_14791 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/sh
+puppet --version || exit 1
puppet module install garethr-docker --modulepath ./modules || exit 1
puppet module install puppetlabs-vcsrepo --modulepath ./modules || exit 1
puppet module install stankevich-python --modulepath ./modules || exit 1 | bash |
d_bash_14792 | ---
+++
@@ -8,7 +8,7 @@
export CONTAINER_NAME=ci_native_nowallet
export DOCKER_NAME_TAG=ubuntu:16.04 # Use xenial to have one config run the tests in python3.5, see doc/dependencies.md
-export PACKAGES="python3-zmq"
+export PACKAGES="python3-zmq clang-3.8 llvm-3.8" # Use clang-3.8 to test C++11 compatibility, s... | bash |
d_bash_14793 | ---
+++
@@ -18,5 +18,6 @@
--master \
--workers 4 \
--daemonize /home/rmc/logs/uwsgi.log \
+ --buffer-size 32768 \
--pidfile $1
| bash |
d_bash_14794 | ---
+++
@@ -2,44 +2,44 @@
. '../test-lib.bash'
test_expect_success 'setup' '
-mkdir ${DOTFILES}/bin
+mkdir ${DOTFILES}/foo
'
test_expect_failure 'run 1' '
run_dotbot <<EOF
- link:
- ~/bin/:
- path: bin
+ ~/foo/:
+ path: foo
glob: true
EOF
'
test_expect_failure 'test 1' '
-t... | bash |
d_bash_14795 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Copyright 2014 Google Inc. All rights reserved.
#
@@ -29,7 +29,10 @@
exit 1
fi
-if [ -e "${targetdir}" ]; then
+find ../ -name "*.class" | xargs rm
+#find .. -type f -name "*.class" -exec rm {} \;
+
+if [[ -e "${targetdir}" ]]; then
echo "clean target"
... | bash |
d_bash_14796 | ---
+++
@@ -21,7 +21,7 @@
ulimit -S -s unlimited
ulimit -S -s unlimited
-export MALOC_ARNEA_MAX=1
+export MALLOC_ARNEA_MAX=1
java -Xms64m -Xmx${MEMORY} -Dosgi.locking=none -Dosgi.configuration.area=${CONFIGDIR} $FLAG -XX:ReservedCodeCacheSize=128m -XX:MaxMetaspaceSize=128m -XX:CompressedClassSpaceSize=128m -XX... | bash |
d_bash_14797 | ---
+++
@@ -7,12 +7,10 @@
# Remove files that we don't want to bundle
cd $VERSION_NUMBER
rm -rf ci
-#rm .gitignore
-#rm .gitlab-ci.yml
rm -rf .git
rm apidoc.json
rm CONTRIBUTING.md
cd ../
-zip -r release.zip $VERSION_NUMBER
+zip -r $VERSION_NUMBER.zip $VERSION_NUMBER
rm -rf $VERSION_NUMBER | bash |
d_bash_14798 | ---
+++
@@ -5,8 +5,4 @@
perl -pi -e 's/\$\(SolutionDir\)/../g' ../XFGoogleMapSample/XFGoogleMapSample.csproj
echo "Inject Google Maps Android API Key"
-echo $GOOGLEMAPS_ANDROID_API_KEY
perl -pi -e "s/your_google_maps_android_api_v2_api_key/$GOOGLEMAPS_ANDROID_API_KEY/g" ../XFGoogleMapSample/Variables_sample.cs
-... | bash |
d_bash_14799 | ---
+++
@@ -11,7 +11,7 @@
-DBUILD_SAMPLES=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_PYTHON=ON \
- -DPython3_EXECUTABLE=$PREFIX/bin/python
+ -DPython3_EXECUTABLE="$PYTHON"
cmake --build build -j${CPU_COUNT}
| bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.