document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_2900 | ---
+++
@@ -29,6 +29,19 @@
}
done
+# If building in a slow travis instance, avoid to be killed by "no logs output since ..."
+cat << EOF > tick.sh
+#!/bin/bash
+until ls -lh _output/local/go/bin/hyperkube
+do
+ echo "compiling..."
+ sleep 60
+done
+EOF
+chmod +x tick.sh
+
+./tick.sh &
+
# Build
make h... | bash |
d_bash_2901 | ---
+++
@@ -23,6 +23,3 @@
--prefix="$PREFIX" || exit 1
make -j3 check && make -j3 install || exit 1
-
-# Cleanup
-make distclean > /dev/null | bash |
d_bash_2902 | ---
+++
@@ -11,6 +11,7 @@
grep -E -e "^http://[^\.]+" -e "^https://[^\.]+" -e "^ftp://[^\.]+" |
grep -v "example.com" |
grep -v "localdomain" |
+ grep -v "localhost" |
grep -E -v "\.test$|\.test/" |
sort | uniq`; do
curl -s -f $i > /dev/null | bash |
d_bash_2903 | ---
+++
@@ -1,12 +1,27 @@
#!/bin/bash
+help_text="
+This script finds magic markers I've added to some source code,
+e.g. 'XSS' or 'XSRF'. Such markers mean I should check the related
+code for security issues.
+
+I've been stupid though and written 'XSS' sometimes in ordinary comments
+and sometimes as magic dang... | bash |
d_bash_2904 | ---
+++
@@ -1,19 +1,31 @@
#!/bin/bash
set -e
-if [ "$#" -ne 2 ]; then
- echo "Usage: scripts/hackage-docs.sh VERSION_NUMBER HACKAGE_USER"
+if [ "$#" -ne 1 ]; then
+ echo "Usage: scripts/hackage-docs.sh HACKAGE_USER"
exit 1
fi
-pkg=lens
-ver=$1
-user=$2
-
-if [ ! -f "$pkg.cabal" ]; then
+cabal_file=$(find ... | bash |
d_bash_2905 | ---
+++
@@ -7,7 +7,7 @@
start() {
if [ -e "$PID_PATH/$PROG.pid" ]; then
## Program is running, exit with error.
- echo "Error! $PROG is already running!" 1>&2
+ echo "Error! $PROG is already running or you have a stale pid file. If $PROG is not running delete $PID_PATH/$PROG.pid file and restart" 1>&2
exit... | bash |
d_bash_2906 | ---
+++
@@ -1,22 +1,32 @@
#!/bin/bash -e
-
-if ! which gox > /dev/null; then
- echo "gox is not installed..."
- exit 1
-fi
git_version=$(git describe)
if git_status=$(git status --porcelain 2>/dev/null) && [ -n "${git_status}" ]; then
git_version="${git_version}-dirty"
fi
-ldflags="-X github.com/vmware/g... | bash |
d_bash_2907 | ---
+++
@@ -6,4 +6,4 @@
rm -rf .gradle
fi
-./gradlew --no-daemon clean test
+./gradlew --no-daemon -b /tmp clean test | bash |
d_bash_2908 | ---
+++
@@ -17,4 +17,5 @@
# limitations under the License.
#
+chmod ug+x ./src/test/scripts/*.sh
$JAVA_HOME/bin/java -cp ./lib/junit-3.8.1.jar:./lib/exec-test-1.0-SNAPSHOT.jar:./lib/exec-1.0-SNAPSHOT.jar org.apache.commons.exec.TestRunner | bash |
d_bash_2909 | ---
+++
@@ -6,11 +6,16 @@
sed -i.bak 's/^PEER_SEED=.*/PEER_SEED=""/' /opt/stellar/stellar-core/etc/stellar-core.cfg
start stellar-core
-BIN=/opt/stellar/stellar-core/bin/stellar-core
-CORE=/opt/stellar/home/core
+bin=/opt/stellar/stellar-core/bin/stellar-core
+core=/opt/stellar/home/core
-until [[ -f "${CORE}" ... | bash |
d_bash_2910 | ---
+++
@@ -21,7 +21,7 @@
}
_returnArrayMaxLength(){
- local array=$(import ${1})
+ local array=$(readvar ${1})
local maxLength=0
for a in ${array[@]}; do | bash |
d_bash_2911 | ---
+++
@@ -6,9 +6,10 @@
CMD="
while [ ! -f ${filename} ]
do
- echo tick
+ echo -n .
sleep 0.2
done
+echo
"
# Return when file exists with timeout | bash |
d_bash_2912 | ---
+++
@@ -17,7 +17,7 @@
for ((n=0;n<60;n++)); do
found='false'
set -x
- table=$(psql ${pg_uri} -c 'SELECT * FROM disasterrecoverytest;')
+ table=$(psql ${pg_uri} -c 'SELECT * FROM disasterrecoverytest;' || '')
set +x
if echo ${table} | grep 'dr-test'; then
found='true' | bash |
d_bash_2913 | ---
+++
@@ -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_2914 | ---
+++
@@ -1,6 +1,11 @@
#!/bin/bash -ex
cd /rails_app
+
+if [ -d "/rails_app/.jbundler" ]
+then
+ rm -rf /rails_app/.jbundler
+fi
if [ -d "/rails_conf/" ]
then | bash |
d_bash_2915 | ---
+++
@@ -11,8 +11,8 @@
mv $FILE $GRAPH_FILE
fi
rm -rf $(expr $GRAPH_FILE : '\([^\.]*\)\.')".osm-gh"
-git checkout master
+git checkout 0.4
./graphhopper.sh import $GRAPH_FILE
git checkout ios-compat
-#cd ..
-#touch class.list
+cd ..
+touch class.list | bash |
d_bash_2916 | ---
+++
@@ -8,5 +8,5 @@
phpdoc -d src -t docs/phpdoc --force
# code coverage and agile documentation
-phpunit
+./vendor/bin/phpunit -v
| bash |
d_bash_2917 | ---
+++
@@ -18,8 +18,11 @@
yum -y install python-pip
yum -y install deltarpm
yum -y install sysstat
+
+cd /tmp
+wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
+rpm -Uvh /tmp/nux-dextop-release-0-5.el7.nux.noarch.rpm
yum -y install ffmpeg
-yum -y install p7zip
sys... | bash |
d_bash_2918 | ---
+++
@@ -17,7 +17,7 @@
# for Linux
export CC=gcc
export CXX=g++
- export CXXFLAGS="${CXXFLAGS}"
+ export CXXFLAGS="${CXXFLAGS} -DBOOST_MATH_DISABLE_FLOAT128"
export LDFLAGS="${LDFLAGS}"
export LINKFLAGS="${LDFLAGS}"
else | bash |
d_bash_2919 | ---
+++
@@ -26,4 +26,8 @@
multiboot /boot/$os_image
}
EOF
+
+# First remove existing ISO, it can't handle existing ISOs well
+rm -f $iso_dir/cdrom.iso
+
grub-mkrescue -o $iso_dir/cdrom.iso $iso_dir | bash |
d_bash_2920 | ---
+++
@@ -23,4 +23,4 @@
git tag -a $1 -m "Create tag"
git push origin $1
-pod repo push --allow-warnings gamechanger ../ObjScheme.podspec
+pod repo push --allow-warnings gcspecs ../ObjScheme.podspec | bash |
d_bash_2921 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
-clang++ -std=c++14 -O3 -Werror -Wall -Wextra -o main main.cpp && ./main
+g++ -std=c++14 -O3 -Werror -Wall -Wextra -o main main.cpp && ./main | bash |
d_bash_2922 | ---
+++
@@ -2,5 +2,7 @@
export PATH=$PATH:/makeaplea/
+export C_FORCE_ROOT=true
+
cd /makeaplea && source /makeaplea/docker/celery_defaults && celery worker -A apps.plea.tasks:app
| bash |
d_bash_2923 | ---
+++
@@ -20,7 +20,7 @@
# Ensure tmpdir and control socket are cleaned up on exit
master_exit() {
- ssh -S "$sockpath" -O exit "$jumpbox_remote" &> /dev/null
+ ssh -S "$sockpath" -O exit "$jumpbox_remote" &> /dev/null || true
rm -rf "$tmpdir"
}
trap master_exit EXIT | bash |
d_bash_2924 | ---
+++
@@ -3,7 +3,7 @@
BASEDIR=${1-"."}
URLLIB_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -H urlopen \{\} \;)
-URLLIB_USERS=$(echo "$URLLIB_USERS" | sed '/\(\n\|lib\/ansible\/module_utils\/urls.py\|lib\/ansible\/compat\/six\/_six.py\)/d')
+URLLIB_USERS=$(echo "$URLLIB_USERS" | sed '/\(\n\|lib\/ansible\/modu... | bash |
d_bash_2925 | ---
+++
@@ -15,13 +15,17 @@
# limitations under the License.
#
+# EXAMPLE USAGE
+# ./run.sh com.microsoft.reef.examples.retained_eval.Launch -num_eval 2 -local false
+
# RUNTIME
SELF_JAR=`echo $REEF_HOME/reef-examples/target/reef-examples-*-shaded.jar`
-# LOCAL_RUNTIME_TMP="-Dcom.microsoft.reef.runtime.local... | bash |
d_bash_2926 | ---
+++
@@ -5,8 +5,8 @@
echo "SPFILE='/mnt/database/dbs/spfile${ORACLE_SID}.ora'" > /opt/oracle/product/12.1.0.2/dbhome_1/dbs/init${ORACLE_SID}.ora
-# Check if /mnt/database is empty
-if [ "$(ls -A /mnt/database)" ]; then
+# Check if database already exists
+if [ -d /mnt/database/oradata ]; then
echo "Startin... | bash |
d_bash_2927 | ---
+++
@@ -9,6 +9,10 @@
export NVM_DIR=$HOME/.nvm
export PATH="$PATH:$NVM_DIR"
+# NPM (Node Package Manager)
+export NPM_DIR=$HOME/.npm
+export PATH="$PATH:$NPM_DIR"
+
# Google Service Util
export GSUTIL=$HOME/.google/gsutil
export PATH="$PATH:$GSUTIL" | bash |
d_bash_2928 | ---
+++
@@ -9,7 +9,8 @@
mv ~/.nvm /share/CACHEDEV1_DATA/
# Update NVM_DIR variable.
-sed 's:NVM_DIR=.*:NVM_DIR=/share/CACHEDEV1_DATA/.nvm:' ~/.profile > .profile.tmp && mv -f .profile.tmp .profile
+sed 's:NVM_DIR=.*:NVM_DIR=/share/CACHEDEV1_DATA/.nvm:' ~/.profile > .profile.tmp && \
+mv -f .profile.tmp .profile
... | bash |
d_bash_2929 | ---
+++
@@ -12,7 +12,7 @@
-d \
--volumes-from buildkite-data \
-e "BUILDKITE_AGENT_EXIT_AFTER_JOB=true" \
- toolmantim/hyper-buildkite-agent:add-scheduler-support \
+ toolmantim/hyper-buildkite-agent \
start \
--meta-data "queue=hyper-job:${BUILDKITE_JOB_ID}" \
--name "hyper-runner... | bash |
d_bash_2930 | ---
+++
@@ -2,9 +2,6 @@
# Prevent sleep while this script is running
caffeinate -is &
-
-# Install apps, tools, dependencies
-install/install.sh 2>&1 | tee -a install.log
# Fix for file names containing spaces
SAVEIFS=$IFS
@@ -28,6 +25,9 @@
# Copy files
cp -R `pwd`/copy/ $HOME
+# Install apps, tools, depe... | bash |
d_bash_2931 | ---
+++
@@ -18,7 +18,7 @@
cd "$srcdir"
gettextize --copy --force --intl
$libtoolize --copy --force
-aclocal
+aclocal -I m4
autoheader
automake -a -c
autoconf | bash |
d_bash_2932 | ---
+++
@@ -40,6 +40,39 @@
brew install rename
brew install tree
+#Install zsh
+brew install zsh
+sudo sh -c 'echo "/usr/local/bin/zsh" >> /etc/shells'
+chsh -s /usr/local/bin/zsh
+
+brew install
+
+# Install homebrew-cask for easily installing application binaries
+export HOMEBREW_CASK_OPTS="--appdir=/Applicatio... | bash |
d_bash_2933 | ---
+++
@@ -25,20 +25,3 @@
echo "The adb binary is not executable"
exit 1
fi
-
-if [ $(uname) == "Linux" ]; then
- ADB_REQUIRED="1.0.32 or 1.0.35"
-elif [ $(uname) == "Darwin" ]; then
- ADB_REQUIRED="1.0.31 or 1.0.32"
-fi
-
-# get the version string as an array, use just the version numbers
-ADB_VERSION="$($... | bash |
d_bash_2934 | ---
+++
@@ -10,4 +10,10 @@
*.c \
../../lib/libvarnish/*.c \
../../lib/libvarnishcompat/execinfo.c \
- ../../lib/libvcl/*.c
+ ../../lib/libvcl/*.c 2>&1 | tee _.fl
+
+if [ -f _.fl.old ] ; then
+ diff -u _.fl.old _.fl
+fi
+
+mv _.fl _.fl.old | bash |
d_bash_2935 | ---
+++
@@ -5,7 +5,7 @@
wget --quiet -O - http://hgdownload.soe.ucsc.edu/goldenPath/hg19/database/evofold.txt.gz \
| gzip -dc \
- | awk -v ofs="\t" 'begin {print "#chrom\tstart\tend\tucsc_event_name\tsize\tscore\tstrand\tmrnasecstruct\tsecondary_struct_conf"} {print $2,$3,$4,$5,$8,$6,$7,$9,$10}' \
+ | a... | bash |
d_bash_2936 | ---
+++
@@ -4,4 +4,4 @@
# buddybuild doesn't seem to offer any direct way of running findbugs.
# findbugs is run as part of |gradle build| and |gradle| check, but those
# aren't run directly in buddybuild.
-./gradlew findbugs
+#./gradlew findbugs | bash |
d_bash_2937 | ---
+++
@@ -38,7 +38,7 @@
output_section "Creating .profile.d with env vars"
mkdir $build_path/.profile.d
- local export_line="export PATH=\$HOME:\$HOME/erlang/bin:\$HOME/elixir/bin:\$PATH"
+ local export_line="export PATH=\$HOME/.platform_tools:\$HOME/.platform_tools/erlang/bin:\$HOME/.platform_tools/elixi... | bash |
d_bash_2938 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/bash
-# compilation command for Ubuntu Linux
+# compilation command for Ubuntu 16.04LTS
export CFLAGS=`pkg-config --cflags --libs glib-2.0`
-export SAMTOOLS=../samtools-0.1.19
-gcc bam_hmp_util.c bam_get_coverage.c $CFLAGS -L$SAMTOOLS -I$SAMTOOLS -lbam -o bam_get_coverage -lz -lgob... | bash |
d_bash_2939 | ---
+++
@@ -7,6 +7,8 @@
echo 'Error with file '$file
fi
output_ref=`echo "output_$file" | sed 's/txt/ref/g'`
+ dos2unix output_$file
+ dos2unix $output_ref
nbLines=`diff output_$file $output_ref | wc -l`
if [ $nbLines -ne 0 ]
then | bash |
d_bash_2940 | ---
+++
@@ -4,11 +4,11 @@
postgres)
chown -R postgres:postgres /data
shift
- sudo -u postgres -H EXTERNAL_IP=$EXTERNAL_IP PORT=$PORT DISCOVERD=$DISCOVERD /bin/flynn-postgres $*
+ exec sudo -u postgres -H EXTERNAL_IP=$EXTERNAL_IP PORT=$PORT DISCOVERD=$DISCOVERD /bin/flynn-postgres $*
;;
api)... | bash |
d_bash_2941 | ---
+++
@@ -23,5 +23,8 @@
dart tool/test_runner.dart --dartium
# Run tests on chrome.
-/usr/bin/google-chrome --version
+if [ "$DRONE" = "true" ]; then
+ # Show the version of Chrome installed on drone.io.
+ /usr/bin/google-chrome --version
+fi
#dart tool/test_runner.dart --chrome | bash |
d_bash_2942 | ---
+++
@@ -10,7 +10,7 @@
VERSION="$(poetry version --no-ansi | cut -d' ' -f2)"
echo "VERSION is $VERSION"
-if [[ "$GITHUB_REF" =~ \/refs\/tags\/.* && "$TAG" == "$VERSION" ]]
+if [[ "$GITHUB_REF" =~ refs\/tags\/.* && "$TAG" == "$VERSION" ]]
then
REV=""
RELEASE="true" | bash |
d_bash_2943 | ---
+++
@@ -4,14 +4,14 @@
set -x
+git clone --branch=gh-pages git://github.com/tus/tus-java-client.git ../gh-pages
+commit=$(git rev-parse HEAD)
git log
-git fetch origin gh-pages
-git checkout -b gh-pages origin/gh-pages
-git log
-git merge master
-git log
-javadoc io.tus.java.client -sourcepath ./src/main/jav... | bash |
d_bash_2944 | ---
+++
@@ -23,7 +23,7 @@
#fi
# Clone XD-MVC repository
-git clone --depth 1 https://github.com/spiegelm/XD-MVC.git XD-MVC
+git clone -b master --single-branch --depth 1 https://github.com/spiegelm/XD-MVC.git XD-MVC
# Setup gallery app
echo "Setup gallery app" | bash |
d_bash_2945 | ---
+++
@@ -25,3 +25,12 @@
--output $project_root/generated/Reuse.hs\
--nostdlib\
$project_root/generated/standard-library.reuse
+
+if [ "$1" == "--diagnostics" ]; then
+ 2>&1 echo "[standard-library/build.sh] reusec --language ocaml"
+fi
+
+$projec... | bash |
d_bash_2946 | ---
+++
@@ -10,4 +10,7 @@
--redefine-sym _lseek_r=_lseek_r_broken \
--redefine-sym _close_r=_close_r_broken \
./../lib/libmain.a
+for i in ./../lib/*.a; do
+ xtensa-lx106-elf-objcopy --redefine-sym printf=printf_broken $i
+done
make -C ... | bash |
d_bash_2947 | ---
+++
@@ -3,4 +3,6 @@
/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_ce... | bash |
d_bash_2948 | ---
+++
@@ -2,9 +2,18 @@
cd "$(dirname "$0")"
-# Takes either a file of repo names, or from stdin
+# Takes either a file of repo names, or from stdin.
+# If the DEPLOYED_TO_PRODUCTION environment variable
+# is set then the "deployed-to-production" branch is
+# checked out rather than "master".
+
+if [ "${DEPLOY... | bash |
d_bash_2949 | ---
+++
@@ -1,5 +1,5 @@
../cpuPreBenchmark.sh
sudo update-alternatives --set java /usr/lib/jvm/java-8-oracle/jre/bin/java;
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
-java -jar target/benchmarks.jar -jvmArgs "-Dcsv.dir=/home/aroger/volatile" -wi 5 -i 5 -f 1 -rf csv -bm sample -tu us
+java -jar target/benchmarks.... | bash |
d_bash_2950 | ---
+++
@@ -21,13 +21,13 @@
# Do a quick smoke check of integration test
bazel test transpiler/javatests/com/google/j2cl/integration/emptyclass/...
-# Build Hello World sample in its own workspace
-(cd samples/helloworld && bazel build src/main/...)
-
# Run CI test if requested
if [[ $1 == "CI" ]]; then
baze... | bash |
d_bash_2951 | ---
+++
@@ -1,2 +1,2 @@
# Pipe my public key to my clipboard.
-alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to pasteboard.'"
+alias pubkey="more ~/.ssh/id_ed25519.pub | pbcopy | echo '=> Public key copied to pasteboard.'" | bash |
d_bash_2952 | ---
+++
@@ -11,6 +11,9 @@
alias sagi="sudo apt-get install"
+alias pbcopy='xclip -selection clipboard'
+alias pbpaste='xclip -selection clipboard -o'
+
alias ni="node-inspector"
alias ni8043="node-inspector --web-port=8043"
| bash |
d_bash_2953 | ---
+++
@@ -4,7 +4,13 @@
# https://wiki.archlinux.org/index.php/Git#Git_prompt
# https://git-scm.com/book/tr/v2/Git-in-Other-Environments-Git-in-Zsh
autoload -U colors && colors
-setopt prompt_subst
-source /usr/share/git/completion/git-prompt.sh
+
PROMPT="[%{$fg_bold[blue]%}%n%{$reset_color%}@%{$fg_bold[cyan]%}%... | bash |
d_bash_2954 | ---
+++
@@ -1,14 +1,14 @@
#!/bin/bash
-CLASSPATH=$CLASSPATH:~/.m2/repository/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar
CLASSPATH=$CLASSPATH:~/.m2/repository/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar
CLASSPATH=$CLASSPATH:~/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.ja... | bash |
d_bash_2955 | ---
+++
@@ -1,7 +1,10 @@
# Run ./set-defaults.sh and you'll be good to go.
-# Always open everything in Finder's list view. This is important.
+# Always open everything in Finder's list view.
defaults write com.apple.Finder FXPreferredViewStyle Nlsv
+
+# Fix the lack of key repeat
+defaults write NSGlobalDomain A... | bash |
d_bash_2956 | ---
+++
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
echo "Warning this script will delete your geocommit and geocommit-web databases in couchdb on localhost:5984"
-read -s -p "Password for user geo@dsp.couchone.com: " passwd;
+read -s -p "Password for user geo@dsp.iriscouch.com: " passwd;
echo
localdb="http://local... | bash |
d_bash_2957 | ---
+++
@@ -4,23 +4,13 @@
BUILD_DIR=${SRC_DIR}
EXECUTABLES=x264${NACL_EXEEXT}
+EXTRA_CONFIGURE_ARGS="--enable-static --disable-asm --disable-thread"
+
+if [ "${NACL_SHARED}" = "1" ]; then
+ EXTRA_CONFIGURE_ARGS+=" --enable-shared"
+fi
ConfigureStep() {
- SetupCrossEnvironment
-
- local conf_host
- if [ "${... | bash |
d_bash_2958 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-BASEDIR="$(realpath $(dirname $0))"
+BASEDIR="$(readlink -f $(dirname $0))"
DATADIR="$BASEDIR/fireplace/cards/data"
HSDATA_DIR="$DATADIR/hs-data"
HSDATA_URL="https://github.com/HearthSim/hs-data.git" | bash |
d_bash_2959 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-repos="vim_cf3 cfbot nustuff delta_reporting evolve_cfengine_freelib"
+repos="vim_cf3 cfbot nustuff delta_reporting evolve_cfengine_freelib terraform-modules"
for next_repo in $repos
do | bash |
d_bash_2960 | ---
+++
@@ -18,6 +18,5 @@
brew update
fi
- brew bundle $HOME/.dotfiles/homebrew/Brewfile
exit 0
fi | bash |
d_bash_2961 | ---
+++
@@ -11,4 +11,4 @@
#
cd ../..
echo `pwd`
-./build64.sh
+./build64.sh $1 $2 $3 $4 $5 $6 $8 | bash |
d_bash_2962 | ---
+++
@@ -7,7 +7,7 @@
cd installer/rpm/
for i in $(git describe | tr "-" "\n"); do
if [ "$VER" == "" ]; then
- VER=$i
+ VER=${i:1}
elif [ "$REL" == "" ]; then
REL=0.$i
else | bash |
d_bash_2963 | ---
+++
@@ -2,4 +2,4 @@
wget -O /tmp/testlink-1.9.15.tar.gz 'https://github.com/TestLinkOpenSourceTRMS/testlink-code/archive/1.9.15.tar.gz'
(cd /tmp; tar xzf testlink-1.9.15.tar.gz)
-mv /tmp/testlink-1.9.15 /var/www/html/testlink
+mv /tmp/testlink-code-1.9.15 /var/www/html/testlink | bash |
d_bash_2964 | ---
+++
@@ -3,6 +3,9 @@
# The main goal of this file is to be used when a brand-new computer has to be
# quickly set up. It performs basic packages installation (git, ssh, pdflatex...).
# This file should be executed with root privileges.
+
+
+# TODO: install pip packages (grip.. )
# list of packages to instal... | bash |
d_bash_2965 | ---
+++
@@ -6,9 +6,15 @@
echo "Building Realm"
./gradlew realm:assemble
+echo "Building the Javadocs"
+./gradlew javadocReleaseJar
+
echo "Copying files to the distribution folder"
cp realm-annotations-processor/build/libs/realm-annotations-processor-0.80.jar distribution
cp realm/build/outputs/aar/realm-0.80.... | bash |
d_bash_2966 | ---
+++
@@ -1,6 +1,5 @@
#!/bin/bash
-docker login -u=gavinmroy -p=${DOCKER_PASSWORD}
-docker build -t aweber/rabbitmq-autocluster:${TRAVIS_TAG} .
-docker tag aweber/rabbitmq-autocluster:${TRAVIS_TAG} aweber/rabbitmq-autocluster:latest
-docker push aweber/rabbitmq-autocluster:${TRAVIS_TAG}
+docker build -t aweber/rab... | bash |
d_bash_2967 | ---
+++
@@ -1,8 +1,33 @@
#!/bin/bash
-git clone 'git@github.com:/moverest/cshellgame'
-cd cshellgame || exit
-git remote add forge 'https://forge.telecomnancy.univ-lorraine.fr/git/martine96u_c'
-git push --mirror forge
-cd ..
-rm -rf cshellgame
+function init {
+ git remote add mirror 'https://forge.telecomnanc... | bash |
d_bash_2968 | ---
+++
@@ -27,3 +27,4 @@
echo "----------------------------------------------------------------------"
eval "${c}"
done
+echo "======================================================================" | bash |
d_bash_2969 | ---
+++
@@ -13,4 +13,4 @@
build_lib
build_fuzzer
set -x
-$CC $CFLAGS $SCRIPT_DIR/target.cc -I BUILD/include BUILD/libopenvswitch.a $LIB_FUZZING_ENGINE -lz -o $EXECUTABLE_NAME_BASE
+$CC $CFLAGS $SCRIPT_DIR/target.cc -I BUILD/include/openvswitch -I lib/ BUILD/lib/.libs/libopenvswitch.a $LIB_FUZZING_ENGINE -lz -o $EX... | bash |
d_bash_2970 | ---
+++
@@ -1,7 +1,8 @@
#!/bin/bash
pacstrap /mnt base
genfstab -U /mnt >> /mnt/etc/fstab
-wget https://github.com/MattBlack85/dotfiles/blob/master/arch/arch_post.sh
+wget https://raw.githubusercontent.com/MattBlack85/dotfiles/master/arch/arch_post.sh
+chmod u+x arch_post.sh
cp arch_post.sh /mnt/chroot.sh
arch-c... | bash |
d_bash_2971 | ---
+++
@@ -15,6 +15,7 @@
alias gco='git checkout'
alias gd='git diff'
alias gdc='git diff --cached'
+alias gdcw='git diff --color-words'
alias gl='git pull --rebase'
alias glg='git log'
alias glgg='git log --color --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue) <%an>%C... | bash |
d_bash_2972 | ---
+++
@@ -4,7 +4,9 @@
python manage.py migrate
chmod 660 /gui/openstack.db
chown root.www-data /gui/openstack.db
-ln -s /gui/gui.conf /etc/apache2/conf.d/gui.conf
+#Only deploying the GUI
+#ln -s /gui/gui.conf /etc/apache2/conf.d/gui.conf
+ln -s /gui/gui-8443.conf /etc/apache2/conf.d/gui.conf
ln -s /gui/mirror.... | bash |
d_bash_2973 | ---
+++
@@ -27,7 +27,7 @@
./configure && make && make install
cd ..
# get libsndfile 1.0.26, build and install
-wget http://www.mega-nerd.com/files/libsndfile-1.0.27.tar.gz
+wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.27.tar.gz
tar -xzf libsndfile-1.0.27.tar.gz
cd libsndfile-1.0.27.tar.gz
./au... | bash |
d_bash_2974 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-if [ "$1" = "mongod" ]; then
+if [[ "$1" = "mongod" || "$1" = "mongos" ]]; then
#if [ -f /sys/kernel/mm/transparent_hugepage/enabled ]; then
# echo never > /sys/kernel/mm/transparent_hugepage/enabled | bash |
d_bash_2975 | ---
+++
@@ -2,6 +2,6 @@
mkdir -p $DOTFILES/caches/vim
# Download Vim plugins.
-# if [[ "$(type -P vim)" ]]; then
-# vim +PluginInstall +qall
-# fi
+if [[ "$(type -P vim)" ]]; then
+ vim +PackUpdate +qall
+fi | bash |
d_bash_2976 | ---
+++
@@ -29,6 +29,6 @@
else
# On a pull request, just build debug which is much faster and catches
# obvious errors.
- GRADLE_OPTS=$OPTS ./gradlew clean :app:assembleDebug
+ GRADLE_OPTS=$OPTS ./gradlew clean :mobile:assembleDebug
fi
| bash |
d_bash_2977 | ---
+++
@@ -13,6 +13,7 @@
# Hopefully, Apple Thunderbult Display 27"
"2560 x 1440")
export UI_SCALE_FACTOR=1
+ export QT_AUTO_SCREEN_SCALE_FACTOR=1
ln -fs $fonts_avail_dir/lodpi-fonts.conf $fonts_dir/fonts.conf
xrandr --dpi 109
xrdb -merge ~/.Xresources.lodpi
@@ -23,6 +24,7 @@
export... | bash |
d_bash_2978 | ---
+++
@@ -25,7 +25,7 @@
echo "--- Starting buildkite-agent"
export BUILDKITE_AGENT_TOKEN="$token"
export BUILDKITE_AGENT_NAME="$name"
-export BUILDKITE_AGENT_META_DATA="vmkite-vmdk=$vmdk"
+export BUILDKITE_AGENT_META_DATA="vmkite-vmdk=$vmdk,vmkite-guestid=ubuntu64Guest"
export BUILDKITE_BUILD_PATH="/home/vmkite... | bash |
d_bash_2979 | ---
+++
@@ -13,7 +13,6 @@
$TESTDIR/language-behaviour/control_structures \
$TESTDIR/language-behaviour/datatypes \
$TESTDIR/language-behaviour/IO \
- $TESTDIR/language-behaviour/iterators \
$TESTDIR/language-behaviour/logic \
$TESTDIR/language-behaviour/mappers \
... | bash |
d_bash_2980 | ---
+++
@@ -2,5 +2,13 @@
echo "need filename"
exit 1
fi
+if [[ -f $1 ]]; then
+ sed -i "s/\s\+$//" $1
+ exit 0
+fi
+if [[ -d $1 ]]; then
+ find $@ -iname "*clj" | xargs sed -i "s/\s\+$//"
+ echo "process dir $1"
+ exit 0
+fi
-find $@ -iname "*clj" | xargs sed -i "s/\s\+$//" | bash |
d_bash_2981 | ---
+++
@@ -2,11 +2,13 @@
set -e
P="$(mktemp -d)"
+mkdir "$P/git" "$P/out"
if [ "$encrypted_1671ba5f199a_key" ]
then
eval "$(ssh-agent -s)"
- openssl aes-256-cbc -K $encrypted_1671ba5f199a_key -iv $encrypted_1671ba5f199a_iv \
+ openssl aes-256-cbc -K "$encrypted_1671ba5f199a_key" \
+ -iv "$e... | bash |
d_bash_2982 | ---
+++
@@ -30,6 +30,7 @@
kerl_home="$(dirname "$(dirname "$0")")/kerl-home"
mkdir -p "$kerl_home"
export KERL_BASE_DIR="$kerl_home"
+ export KERL_BUILD_BACKEND="git"
export KERL_CONFIG="$kerl_home/.kerlrc"
}
| bash |
d_bash_2983 | ---
+++
@@ -15,7 +15,7 @@
check_availability "dotnet"
-dotnet restore
-dotnet build $src
-dotnet build $tests
-dotnet test $tests
+dotnet restore \
+&& dotnet build $src \
+&& dotnet build $tests \
+&& dotnet test $tests \ | bash |
d_bash_2984 | ---
+++
@@ -20,6 +20,7 @@
cd $Dir
git stash > /tmp/repoUpdate
editedFiles=`cat /tmp/repoUpdate`
+ printf "\n"
echo $editedFiles
git checkout master
git pull --rebase | bash |
d_bash_2985 | ---
+++
@@ -1,7 +1,7 @@
alias pm='python manage.py'
alias pmr='python manage.py runserver'
alias pmrp='python manage.py runserver_plus'
-alias pmrpg='pmrp --adminmedia=`pwd`/media/admin'
+alias pmrpg='pmrp --adminmedia=`pwd`/static/admin'
alias pmsdb='python manage.py syncdb'
alias pms='python manage.py shell'
... | bash |
d_bash_2986 | ---
+++
@@ -9,7 +9,7 @@
}
### Starting the topology
-docker exec son-emu-int-sdk-pipeline screen -L -S sonemu -d -m sudo python src/emuvim/examples/sonata_y1_demo_topology_1.py
+docker exec son-emu-int-sdk-pipeline screen -L -S sonemu -d -m sudo python /son-emu/src/emuvim/examples/sonata_y1_demo_topology_1.py
##... | bash |
d_bash_2987 | ---
+++
@@ -5,5 +5,6 @@
git config user.email "4financebot@gmail.com"
git config user.name "4Finance Bot"
git config push.default simple
+git remote set-url origin "https://github.com/${TRAVIS_REPO_SLUG}.git"
echo Git configured | bash |
d_bash_2988 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
# This is useful because it prints out all of the source files. Useful for
# greps.
-find docs include lib tools -name \*.\[cdhyl\]\* | grep -v Lexer.cpp | grep -v llvmAsmParser.cpp | grep -v llvmAsmParser.h | grep -v '~$' | grep -v '\.ll$' | grep -v .flc | grep -v Sparc.burm.c |... | bash |
d_bash_2989 | ---
+++
@@ -1,4 +1,11 @@
#!/bin/sh -e
+
+cat <<EOF 1>&2
+By downloading and using these VMs, you are agreeing Microsoft Software License
+Terms. You should go to https://www.modern.ie and read them if you haven't
+before
+
+EOF
curl -s https://www.modern.ie/en-gb/virtualization-tools \
| grep -oiE 'https://[... | bash |
d_bash_2990 | ---
+++
@@ -15,8 +15,6 @@
{
_dockerize $tag centos-6.7
_dockerize $tag ubuntu-16.04
- docker rm -v $(docker ps -a -q -f status=exited)
- docker images -q --filter "dangling=true" | xargs docker rmi
}
else
echo "image already pulled." | bash |
d_bash_2991 | ---
+++
@@ -2,3 +2,5 @@
export EDITOR=vim
export VISUAL=vim
+
+export PYTHONPATH="${PYTHONPATH}:/home/musicnate/Documents/scripts/" | bash |
d_bash_2992 | ---
+++
@@ -2,8 +2,8 @@
set -o nounset
set -o errexit
-if [ "$#" -ne 2 ]; then
- echo 'Usage: ./delete-stack.sh <stack_type> <stack_prefix>'
+if [ "$#" -le 2 ] || [ "$#" -gt 3 ]; then
+ echo 'Usage: ./delete-stack.sh <stack_type> <stack_prefix> [config_path]'
exit 1
fi
| bash |
d_bash_2993 | ---
+++
@@ -22,12 +22,12 @@
echo "Running tests of booster ${booster}"
- mvn -q -B clean verify -Popenshift,openshift-it ${MAVEN_EXTRA_OPTS:-''}
+ mvn -q -B clean verify -Popenshift,openshift-it ${MAVEN_EXTRA_OPTS:-}
if [ $? -eq 0 ]; then
echo "Successfully tested ${booster}"
else
... | bash |
d_bash_2994 | ---
+++
@@ -1,6 +1,6 @@
# Add tools and platform-tools directories to the system PATH if they exist
# (and are not already in the system PATH)
-for toolpath in ~/adt-bundle-linux-x86_64/sdk/{platform-,}tools; do
+for toolpath in ~/adt-bundle-*/sdk/{platform-,}tools; do
if [ -d $toolpath ] && ! echo $PATH | gre... | bash |
d_bash_2995 | ---
+++
@@ -8,10 +8,15 @@
yum -y install python36 python36-virtualenv which
}
+check_python_version() {
+ python3 tools/check_python_version.py 3 6
+}
+
# this script is copied by CI, we don't need it
rm -f env-toolkit
prep
+check_python_version
./detect-common-errors.sh
./detect-dead-code.sh
./mea... | bash |
d_bash_2996 | ---
+++
@@ -25,6 +25,10 @@
apm install pigments
apm install minimap-pigments
+# React Support
+apm install language-babel
+apm install react-snippets
+
# Markdown Support
apm install language-markdown
apm install markdown-pdf | bash |
d_bash_2997 | ---
+++
@@ -1,21 +1,11 @@
#!/bin/bash -xue
-TEMPEST_DIR=/opt/stack/tempest
-
-virtualenv venv_for_nosetests
-set +o nounset # See https://github.com/pypa/virtualenv/issues/150
-source venv_for_nosetests/bin/activate
-set -o nounset
-
-pip install -r $TEMPEST_DIR/test-requirements.txt -r $TEMPEST_DIR/requirements.t... | bash |
d_bash_2998 | ---
+++
@@ -1,8 +1,8 @@
#!/bin/bash
set -ex -o pipefail
-BCBIO_VERSION="1.0.3"
-BCBIO_REVISION="v1.0.3"
+BCBIO_VERSION="1.0.4a"
+BCBIO_REVISION="a898018"
NS="quay.io/bcbio"
TAG="${BCBIO_VERSION}-${BCBIO_REVISION}"
| bash |
d_bash_2999 | ---
+++
@@ -9,5 +9,12 @@
source autobuild/includes.sh
### MAIN
-_make test
+echo "Testing..."
+cd "$MAKEDIR"
+ctest --output-on-failure
+if [ $? != 0 ]
+then
+ echo "Error... Exiting autobuild"
+ exit 1
+fi
exit 0 | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.