document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_9000 | ---
+++
@@ -22,10 +22,10 @@
: "${path:=$opath}"
;;
"~+"*)
- path=$PWD${path#"~+"}
+ path=$PWD${path:2}
;;
"~-"*)
- path=${OLDPWD:-"~-"}${path#"~-"}
+ path=${OLDPWD:-${path:0:2}}${path:2}
;;
"~"*)
local username=${path%%/*} | bash |
d_bash_9001 | ---
+++
@@ -10,10 +10,8 @@
apt-get update
apt-get -y upgrade
apt-get -y install git ruby ruby-dev build-essential
-gem install fpm
+gem install fpm --no-rdoc --no-ri
export PATH=$PATH:/usr/local/bin
-echo $PATH
-which fpm
git clone https://github.com/brutasse/graphite-api.git
cd graphite-api/fpm
./build-deb.sh | bash |
d_bash_9002 | ---
+++
@@ -1,9 +1,5 @@
#!/bin/bash
exec /usr/local/bin/uwsgi \
- --http=:8080 \
+ --http-socket=:8080 \
--wsgi-file=./src/app.py \
- --callable=app \
- --gevent=$GEVENT_WORKERS \
- --master=$UWSGI_MASTER \
- --die-on-term
-
+ --callable=app | bash |
d_bash_9003 | ---
+++
@@ -5,3 +5,4 @@
alias cl='lein'
alias clr='lein repl'
alias cls='lein trampoline ring server-headless'
+alias clt='lein with-profile test midje' | bash |
d_bash_9004 | ---
+++
@@ -13,9 +13,10 @@
fi
cd "${HOME}"
-wget -O libgit2-0.23.1.tar.gz https://github.com/libgit2/libgit2/archive/v0.23.1.tar.gz
-tar -xzvf libgit2-0.23.1.tar.gz
-cd libgit2-0.23.1 && mkdir build && cd build
+LG2VER="0.24.0"
+wget -O libgit2-${LG2VER}.tar.gz https://github.com/libgit2/libgit2/archive/v${LG2VER... | bash |
d_bash_9005 | ---
+++
@@ -13,10 +13,27 @@
fi
}
+function getLastEditedSpecFile ()
+{
+ environment=`uname -s`
+ if [ "${environment}" = "Darwin" ]; then
+ echo $(find spec -type f -print0 | xargs -0 stat -f "%m %N" | sort -rn | head -1 | cut -f2- -d" ")
+ else
+ echo $(find spec -type f -printf '%T@ ... | bash |
d_bash_9006 | ---
+++
@@ -9,7 +9,8 @@
init_vars
-module load gcc
+module purge
+module load GCC
pushd ${OPT_DIR}
@@ -20,7 +21,7 @@
tar xf cmake-${VERSION}.tar.gz
pushd cmake-${VERSION}
-./bootstrap --prefix=${OPT_DIR}/${VERSION}
+LDFLAGS="-Wl,-rpath,${EBROOTGCC}/lib64" ./bootstrap --prefix=${OPT_DIR}/${VERSION}
make... | bash |
d_bash_9007 | ---
+++
@@ -6,3 +6,4 @@
make
cp .libs/libonig.a ../../src/libonig.a
cp oniguruma.h ../../src/oniguruma.h
+rm -fr .libs | bash |
d_bash_9008 | ---
+++
@@ -26,6 +26,8 @@
export JAVA_HOME="/usr/java/jdk1.7.0_80"
fi
+ export PATH="${JAVA_HOME}:${JAVA_HOME}/bin:${PATH}"
+
${_log} info "completed"
fi
} | bash |
d_bash_9009 | ---
+++
@@ -3,6 +3,8 @@
# go to the root of the git repo
cd `dirname $0`
cd ..
+
+rm -f tmp/*.junit.xml
./script/set-status.sh "$GIT_COMMIT" pending "$BUILD_URL" "$BUILD_TAG" > github_pending_response.json
| bash |
d_bash_9010 | ---
+++
@@ -2,11 +2,16 @@
#Include utils
source ../utils/utils.sh
-makerepo
+makefakeremoterepo
echo "initial" > foo.txt
git add foo.txt
git commit -m "foo.txt"
+
+cd ..
+rm -rf exercise/
+git clone remote exercise
+cd exercise
echo "1" > file1
git add file1 | bash |
d_bash_9011 | ---
+++
@@ -2,9 +2,10 @@
## wget -N https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/debian/.debianSetup.sh -P ~/; bash ~/.debianSetup.sh
## Basically just Gnome and Git/Vim/Emacs stuff.
-## Uncomment if you set up `sudo`:
-#sudo apt-get update && sudo apt-get dist-upgrade -y
-#sudo apt-get insta... | bash |
d_bash_9012 | ---
+++
@@ -10,7 +10,7 @@
if [ $kernel == "Darwin" ] ; then
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
- architecture = "mac"
+ architecture="mac"
else
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
| bash |
d_bash_9013 | ---
+++
@@ -4,7 +4,7 @@
echo "Install Ansible"
sudo apt-get install --yes --quiet software-properties-common
-sudo apt-add-repository ppa:ansible/ansible
+sudo apt-add-repository --yes ppa:ansible/ansible
sudo apt-get update -qq
sudo apt-get install --yes --quiet ansible
| bash |
d_bash_9014 | ---
+++
@@ -14,12 +14,6 @@
export EXTRA_CMAKE_ARGS="-DCMAKE_CXX_COMPILER=/usr/lib/ccache/c++ -DCMAKE_C_COMPILER=/usr/lib/ccache/cc"
python build.py --clang-completer --gocode-completer --tern-completer
-valNumResult=$?
-if [[ $valNumResult -eq 1 ]]
-then
- return 1
-fi
-
npm install -g typescript
popd | bash |
d_bash_9015 | ---
+++
@@ -7,8 +7,10 @@
cp ../social-likes_classic.css ../../social-likes_gh-pages/src/
cp ../social-likes_birman.css ../../social-likes_gh-pages/src/
cp ../social-likes.min.js ../../social-likes_gh-pages/src/
+cp ../bower.json ../../social-likes_gh-pages/src/
cp social-likes.js ../../social-likes_gh-pages/src/
... | bash |
d_bash_9016 | ---
+++
@@ -19,7 +19,15 @@
# Using rsync to ensure deleted files from sdc-vmtools repo are removed
rsync -aq --delete --exclude=install-tools.sh ./${sdcvmtools}/ ${includes}/
-echo "Starting full build..."
-echo ""
+echo "==> Starting build!"
-lb clean; lb config; lb build
+echo "==> Cleaning up..."
+lb clean
+... | bash |
d_bash_9017 | ---
+++
@@ -34,3 +34,7 @@
# Clean up (note there are both leading and trailing asterisks)
rm -rf *ssm-$VERSION*
+
+# Check for errors in SPEC and built packages
+echo "Possible Issues to Fix:"
+rpmlint $RPMDIR | bash |
d_bash_9018 | ---
+++
@@ -2,6 +2,7 @@
case "$TRAVIS_OS_NAME" in
"linux")
+ sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y wine1.6
;; | bash |
d_bash_9019 | ---
+++
@@ -3,6 +3,5 @@
# Count how many times each type of piece is picked for a pawn promotion
bindir="$(dirname "$0")"
-# | put each move on own line | look for promotions | get promoted piece alone | sort and count
-./"$bindir"/delete_comments.sh < "$1" | tr -s '[:space:]' ... | bash |
d_bash_9020 | ---
+++
@@ -2,7 +2,7 @@
set -e
set -vx
-git clone --depth=1 -b qemu-powernv-for-skiboot-3 git://github.com/open-power/qemu.git
+git clone --depth=1 -b powernv-2.12 git://github.com/legoater/qemu.git
cd qemu
git submodule update --init dtc
export CC="ccache gcc" | bash |
d_bash_9021 | ---
+++
@@ -14,20 +14,23 @@
for plugin in $(grep github.com/hashicorp/vault-plugin- vault/go.mod | cut -f 2 | cut -d ' ' -f 1 | cut -d '/' -f 3)
do
- echo "Fetching $plugin..."
- git clone https://github.com/hashicorp/$plugin
- cd $plugin
- rm -rf vendor
- go get github.com/hashicorp/vault/api@master
- go mod tid... | bash |
d_bash_9022 | ---
+++
@@ -16,7 +16,8 @@
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Copy into tmpdir
-cp -R $DIR/website/ $DEPLOY/
+shopt -s dotglob
+cp -r $DIR/website/* $DEPLOY/
# Change into that directory
pushd $DEPLOY &>/dev/null
@@ -25,6 +26,7 @@
touch .gitignore
echo ".sass-cache" >> .gitignore
echo "bu... | bash |
d_bash_9023 | ---
+++
@@ -2,6 +2,10 @@
sudo -u postgres dropdb pytask
sudo -u postgres createdb -O pytask pytask
+rm -r pytask/profile/migrations/
+rm -r pytask/taskapp/migrations/
+./bin/django schemamigration profile --initial
+./bin/django schemamigration taskapp --initial
./bin/django syncdb
./bin/django migrate profile
... | bash |
d_bash_9024 | ---
+++
@@ -10,7 +10,7 @@
d_x=$(abs $(($a_x - $b_x)))
d_y=$(abs $(($a_y - $b_y)))
- distance=$(echo "sqrt ( $d_x ^ 2 + $d_y ^ 2 )" | bc)
+ distance=$(echo "d = math.sqrt($d_x * $d_x + $d_y * $d_y) print(d - d % 1)" | lua)
unset {a,b}_{x,y}
}
| bash |
d_bash_9025 | ---
+++
@@ -31,7 +31,7 @@
# ./install/purge_carton_install.sh)
$CPANM Carton~1.0.22
-$CPANM --verbose "List::MoreUtils@0.419"
+$CPANM "List::MoreUtils@0.419"
# Always print stack traces when die()ing
$CPANM Carp::Always | bash |
d_bash_9026 | ---
+++
@@ -3,4 +3,5 @@
alias vr='vagrant reload'
alias vup='vagrant up'
alias vp='vagrant provision'
+alias vh='vagrant halt'
alias vdf='vagrant destroy -f' | bash |
d_bash_9027 | ---
+++
@@ -2,5 +2,10 @@
STATUS=`docker inspect -f {{.State.Running}} cuplatform_tomcat_1`
if [ "$STATUS"=="false" ]; then
- cd /home/admincu/cloudunit/cu-compose && /home/admincu/cloudunit/cu-compose/start-with-elk.sh
+ cd /home/admincu/cloudunit/cu-compose
+ /home/admincu/cloudunit/cu-compose/start-with-e... | bash |
d_bash_9028 | ---
+++
@@ -16,3 +16,8 @@
# Install manila devstack integration
cp -r $BASE/new/manila/contrib/devstack/* $BASE/new/devstack
+
+localrc_path=$BASE/new/devstack/localrc
+
+# Set big quota for share networks to avoid limit exceedances
+echo "MANILA_OPTGROUP_DEFAULT_quota_share_networks=50" >> $localrc_path | bash |
d_bash_9029 | ---
+++
@@ -13,7 +13,7 @@
if [ $? == 0 ]; then
git checkout ${BRANCHNAME}
git tag ${BRANCHNAME}
- git checkout master
+ git checkout develop
git branch ${BRANCHNAME} -d
echo " "
echo "Updated list branches, sorted chronologically: " | bash |
d_bash_9030 | ---
+++
@@ -18,3 +18,5 @@
alias path='echo -e ${PATH//:/\\n}'
alias reload="source ~/.zshrc && echo 'Shell config reloaded from ~/.zshrc'"
+
+alias dotfiles="cd $ZSH" | bash |
d_bash_9031 | ---
+++
@@ -9,9 +9,10 @@
#
echo $SH ${MAGENT_DIR}/run-magent.sh $ARGS
$SH ${MAGENT_DIR}/run-magent.sh $ARGS
-MAGENTPID=$!
# Kill the agent if we get killed - TODO: harsher kill?
-trap "$AS_ROOT kill $MAGENTPID; $AS_ROOT killall $MAGENT" EXIT
+# Because the magent backgrounds itself, it's harder to figure out
+# ... | bash |
d_bash_9032 | ---
+++
@@ -12,12 +12,12 @@
function import_shp() {
local shp_file=$1
local table_name=$2
- shp2pgsql -I -g way "$shp_file" "$table_name" | exec_psql | hide_inserts
+ shp2pgsql -s 3857 -I -g geometry "$shp_file" "$table_name" | exec_psql | hide_inserts
}
function import_water() {
- local table_name="osm_o... | bash |
d_bash_9033 | ---
+++
@@ -7,6 +7,11 @@
# fill it with the directories we need
mkdir run tmp logs static profiles
+
+# Note: On some systems zeromq needs access to /proc from
+# the chroot - on Linux this command should do it (make
+# sure you mount it at boot time as well):
+## mkdir -p proc && sudo mount --bind /proc proc
... | bash |
d_bash_9034 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/bash
source /var/www/kindlebox/env/bin/activate
export PROD=1
+python /var/www/kindlebox/run.py clear-directory
python /var/www/kindlebox/run.py tasks | bash |
d_bash_9035 | ---
+++
@@ -22,4 +22,5 @@
vtctlclient SetShardTabletControl -blacklisted_tables=customer,corder -remove commerce/0 rdonly
vtctlclient SetShardTabletControl -blacklisted_tables=customer,corder -remove commerce/0 replica
vtctlclient SetShardTabletControl -blacklisted_tables=customer,corder -remove commerce/0 master
... | bash |
d_bash_9036 | ---
+++
@@ -13,4 +13,6 @@
alias tailpglog='tail -f $APPLIANCE_PG_DATA/pg_log/postgresql.log'
# Appliance Status:
-alias apstatus='echo "EVM Status:";service evmserverd status;echo " ";echo "HTTP Status:";service httpd status'
+alias apstatus='echo;systemctl status evmserverd -n 0;echo; \
+systemctl status httpd.s... | bash |
d_bash_9037 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
export RAILS_ENV=production
bundle exec rackup sidekiq-admin.ru -p 3000 -E production -o 0.0.0.0 &
-bundle exec sidekiq -l /var/log/sidekiq.log --environment production
+bundle exec sidekiq --daemon -l /var/log/sidekiq.log --environment production
+
+tail -f /usr/src/app/log/log... | bash |
d_bash_9038 | ---
+++
@@ -11,7 +11,7 @@
SCRIPT_PATH="/usr/lib/github-hook-processor/${REPO_NAME}.sh"
if [[ -x "${SCRIPT_PATH}" ]] ; then
- if [[ -x "/usr/bin/sudo" ]] ; then
+ if [[ -x "/usr/bin/sudo" ]] && grep -q "${SCRIPT_PATH}" /etc/sudoers ; then
/usr/bin/sudo "${SCRIPT_PATH}"
else
"${SCRIPT_PATH}" | bash |
d_bash_9039 | ---
+++
@@ -9,4 +9,4 @@
}
EOF
-echo "${SPHERE_PROJECT_KEY}:${SPHERE_CLIENT_ID}:${SPHERE_CLIENT_SECRET}" > ".sphere-credentials"
+echo "${SPHERE_PROJECT_KEY}:${SPHERE_CLIENT_ID}:${SPHERE_CLIENT_SECRET}" > ".sphere-project-credentials" | bash |
d_bash_9040 | ---
+++
@@ -20,6 +20,7 @@
-DOPENVDB_BUILD_BINARIES=${EXTRAS} \
-DOPENVDB_BUILD_PYTHON_MODULE=${EXTRAS} \
-DOPENVDB_BUILD_UNITTESTS=${EXTRAS} \
+ -DOPENVDB_HOUDINI_INSTALL_PREFIX=/tmp \
..
# Can only build using one thread with GCC due to memory constraints | bash |
d_bash_9041 | ---
+++
@@ -23,4 +23,4 @@
LOCDIR="$(dirname $(readlink -f $0))"
BUILDDIR="$(readlink -f "$LOCDIR/../../_build")"
export OASIS_GETTEXT_DIR="$BUILDDIR/po"
-exec "$BUILDDIR/src/OASIS" "$@"
+exec "$BUILDDIR/src/cli/OASIS" "$@" | bash |
d_bash_9042 | ---
+++
@@ -61,9 +61,3 @@
)
brew install ${formulae[*]}
-
-# Carthage Zsh Completion
-# https://github.com/Carthage/Carthage/blob/master/Documentation/BashZshCompletion.md#zsh
-ln -Fs /usr/local/Cellar/carthage/0.15/Frameworks/CarthageKit.framework/Versions/A/Scripts/carthage-zsh-completion \
- /usr/local/share/... | bash |
d_bash_9043 | ---
+++
@@ -8,5 +8,6 @@
if [ -s "${SUGGFILE}" ]; then
source $SUGGFILE
+ export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=074"
fi
| bash |
d_bash_9044 | ---
+++
@@ -8,7 +8,7 @@
commit=$(git rev-parse HEAD)
./gradlew javadoc
-cp -r ./build/docs/javadoc ../gh-pages/javadoc
+cp -r ./build/docs/javadoc ../gh-pages/
cd ../gh-pages
| bash |
d_bash_9045 | ---
+++
@@ -3,7 +3,7 @@
# Remove any existing docker-storage configuration. In case of an
# existing configuration, docker-storage-setup will fail.
-clear_docker_storage_congiguration () {
+clear_docker_storage_configuration () {
if [ -f /etc/sysconfig/docker-storage ]; then
sed -i "/^DOCKER_STORAGE... | bash |
d_bash_9046 | ---
+++
@@ -5,7 +5,7 @@
export SUITES='jessie stretch buster'
export REPO='balenalib/rpi-raspbian'
-LATEST='stretch'
+LATEST='buster'
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
date=$(date +'%Y%m%d' -u)
| bash |
d_bash_9047 | ---
+++
@@ -1,6 +1,8 @@
# To install me from the source root:
#
# ln -s ../../scripts/uncrustify/pre-commit.sh .git/hooks/pre-commit
+
+export PATH=/usr/local/bin:$PATH
SCRIPTS_ROOT="./scripts"
if ! $SCRIPTS_ROOT/uncrustify_all.sh; then | bash |
d_bash_9048 | ---
+++
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
-# Install EPOL-Scheme over Petite Chez Scheme
-alias petite="/usr/bin/petite $ZSH/scheme/EOPL-Scheme/chez-init.scm"
+# Install EPOL-Scheme over Chez Scheme
+alias scheme="/usr/local/bin/scheme $ZSH/scheme/EOPL-Scheme/chez-init.scm" | bash |
d_bash_9049 | ---
+++
@@ -6,7 +6,14 @@
trap cleanup EXIT
+GEM_PATH=$(ls vagrant*.gem)
+
set -ex
+
+if [ -f "${GEM_PATH}" ]
+then
+ mv "${GEM_PATH}" package/vagrant.gem
+fi
guests=$(vagrant status | grep vmware | awk '{print $1}')
| bash |
d_bash_9050 | ---
+++
@@ -22,7 +22,8 @@
$ROOT/scripts/generate.sh $RELEASE
cd $OUT
-git clone https://github.com/nodatime/tzvalidate.git -b gh-pages gh-pages
+# Note the use of SSH instead of HTTPS here, for use with deploy keys
+git clone git@github.com:nodatime/tzvalidate.git -b gh-pages gh-pages
ZIPFILE=tzdata$RELEASE-tzva... | bash |
d_bash_9051 | ---
+++
@@ -18,6 +18,7 @@
chromium \
go \
rust \
+ ruby-sass \
kmix \
manjaro-zsh-config
@@ ... | bash |
d_bash_9052 | ---
+++
@@ -6,3 +6,9 @@
# Checks the window size after each command and, if necessary, update the
# values of the variables LINES and COLUMNS.
shopt -s checkwinsize
+
+# Make 'cd **/d' enter './a/b/c/d' (bash 4 only).
+shopt -s autocd 2> /dev/null
+
+# Recursive globbing - ls **/*.txt (bash 4 only).
+shopt -s glob... | bash |
d_bash_9053 | ---
+++
@@ -34,6 +34,8 @@
brew install python3
brew install git
brew install bash-completion
+brew install cairo
+brew install swiftgen
# Remove outdated versions from the cellar.
brew cleanup | bash |
d_bash_9054 | ---
+++
@@ -9,4 +9,4 @@
git checkout $TEST_BRANCH
sbt "project influentJavaSample" "assembly"
-java -XX:+UseG1GC -Xmx16g -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:~/influent-log/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=8 -XX:GCLogFileSize=16m -classpath influent-java-sample/target/influent... | bash |
d_bash_9055 | ---
+++
@@ -1,9 +1,10 @@
#!/bin/bash
-#cp -R ~/Documents/JavaJREs/jre-8u40-linux-i586 ~/git/Rel/_Deployment/product/linux.gtk.x86/jre
-#cp -R ~/Documents/JavaJREs/jre-8u40-linux-x64 ~/git/Rel/_Deployment/product/linux.gtk.x86_64/jre
-cp -R ~/Documents/JavaJREs/jre-8u40-macosx-x64/Contents/Home ~/git/Rel/_Deploymen... | bash |
d_bash_9056 | ---
+++
@@ -18,7 +18,7 @@
---------------------------
"
- cd ${projectRoot}/example;
+ cd ${projectRoot}/example/build_script;
bash build.bash;
fi | bash |
d_bash_9057 | ---
+++
@@ -9,7 +9,7 @@
# Copy files
ISDF=~/.initial-setup-done
if [ ! -f $ISDF ]; then
- for f in .emacs.d/* .gnus.el .config/dunst/config .config/terminator/config .gitconfig .i3/config .i3/autostart .i3status.conf .irssi/config .zfunctions/* .zshrc ; do
+ for f in .emacs.d/* .gnus.el .config/dunst/dunstrc... | bash |
d_bash_9058 | ---
+++
@@ -6,5 +6,6 @@
# The original vgg_normalised.caffemodel can be obtained with:
# "wget -c --no-check-certificate https://bethgelab.org/media/uploads/deeptextures/vgg_normalised.caffemodel"
wget -c https://s3.amazonaws.com/xunhuang-public/adain/decoder.t7
+wget -c https://s3.amazonaws.com/xunhuang-public/ad... | bash |
d_bash_9059 | ---
+++
@@ -11,6 +11,7 @@
aptitude
bash-completion
dialog
+ mtr-tiny
ntp
pv
screen | bash |
d_bash_9060 | ---
+++
@@ -18,6 +18,6 @@
;;
aarch64)
"$SCRIPT_DIR/install_go.sh"
- go get github.com/mattn/cho
+ /usr/local/go/bin/go get github.com/mattn/cho
;;
esac | bash |
d_bash_9061 | ---
+++
@@ -16,7 +16,7 @@
export PYTHON=$PREFIX/bin/python
export PATH=$JAVAPREFIX/bin:$PATH
-if [! -d "$PREFIX/lib64" ]; then
+if [ ! -d "$PREFIX/lib64" ]; then
ln -s "$PREFIX/lib" "$PREFIX/lib64"
fi
| bash |
d_bash_9062 | ---
+++
@@ -2,5 +2,23 @@
cd $(dirname $0)/..
+echo ""
+echo "___________________________________________________________"
+echo ""
+echo " This Docker image is generated from the following repositories:"
+echo " https://github.com/pacmacro/pm-server"
+echo " https://hub.docker.com/r/pacmacro/pm-server/"
+... | bash |
d_bash_9063 | ---
+++
@@ -10,17 +10,19 @@
exit
fi
+kubeconfig=${KUBECONFIG:-"${HOME}/.kube/config"}
regex="$1"
+
poll_delay_secs=5
# Delete all Active namespaces that match the regex
-for ns in $(kubectl get namespaces | grep ${regex} | grep Active | awk '{print $1}'); do
- kubectl delete namespace $ns;
+for ns in $(k... | bash |
d_bash_9064 | ---
+++
@@ -10,6 +10,10 @@
# Install CxxTest.
addpkg cxxtest
+# Install memory and coverage tools.
+addpkg valgrind
+addpkg gcov lcov
+
# Install app dependecies.
addpkg libjsoncpp-dev
addpkg liblog4cxx10-dev | bash |
d_bash_9065 | ---
+++
@@ -12,6 +12,7 @@
# List direcory contents
alias lsa='ls -lahF'
+alias lsal='ls -lahF|less'
alias l='ls -lA1'
alias ll='ls -l'
alias la='ls -lA' | bash |
d_bash_9066 | ---
+++
@@ -8,7 +8,7 @@
if [ ! -e ${INITIALIZATION_FILE} ]; then
download-android
echo y | android update sdk --no-ui --filter tools,platform-tools > /dev/null
- echo y | android update sdk --no-ui --filter build-tools-20.0.0 --all > /dev/null
+ echo y | android update sdk --no-ui --filter x-24.0.3 --all > /... | bash |
d_bash_9067 | ---
+++
@@ -15,7 +15,7 @@
if docker ps | grep dd-test-postgres >/dev/null; then
echo 'the containers already exist, we have to remove them'
- bash postgres/ci/stop-docker.sh
+ bash postgres/test/ci/stop-docker.sh
fi
POSTGRES00_ID=$(docker run -p $PORT:5432 --name $NAME -v $CI_PATH/resources:/docker-entryp... | bash |
d_bash_9068 | ---
+++
@@ -7,4 +7,5 @@
# Check for specified flake8 warnings in python files.
# F401: module imported but unused
-flake8 --ignore=B,C,E,F,I,N,W --select=F401 .
+# F812 list comprehension redefines 'foo' from line N
+flake8 --ignore=B,C,E,F,I,N,W --select=F401,F812 . | bash |
d_bash_9069 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-if [ ! -f packages/FAKE/tools/Fake.exe ]; then
- mono --runtime=v4.0 ./tools/NuGet/nuget.exe install FAKE -OutputDirectory packages -ExcludeVersion -Prerelease
+if [ ! -f tools/FAKE/tools/Fake.exe ]; then
+ mono --runtime=v4.0 ./tools/NuGet/nuget.exe install FAKE -OutputDirect... | bash |
d_bash_9070 | ---
+++
@@ -23,4 +23,4 @@
echo "$OUTPUT" | grep "Error" | wc -l | grep 6
! OUTPUT=$(conda build --no-binstar-upload fail/conda-meta/ 2>&1)
-echo "$OUTPUT" | grep "AssertionError"
+echo "$OUTPUT" | grep "Error: Untracked file(s) ('conda-meta/nope')" | bash |
d_bash_9071 | ---
+++
@@ -6,5 +6,5 @@
groupadd -g $LOCAL_GID cerbero
useradd -d /home/cerbero -g cerbero -M -u $LOCAL_UID -s /bin/bash -G fuse cerbero
find /home/cerbero -xdev \! -path /home/cerbero/cerbero -exec chown cerbero:cerbero \{\} +
-exec su -l cerbero
+su -l cerbero
| bash |
d_bash_9072 | ---
+++
@@ -10,3 +10,7 @@
dpkg-reconfigure -f noninteractive locales
update-locale LANG=en_US.UTF-8
update-locale LC_CTYPE=en_US.UTF-8
+
+# Setup known hosts
+mkdir -p /home/vagrant/.ssh/
+ssh-keyscan -t rsa -H github.com >> /home/vagrant/.ssh/known_hosts | bash |
d_bash_9073 | ---
+++
@@ -1,6 +1,6 @@
OSABR=$(echo $(uname)|tr '[:upper:]' '[:lower:]')
DWN=/tmp/libtensorflow.tgz
-URL=https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$OSABR-x86_64-1.1.0.tar.gz
+URL=https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$OSABR-x86_64-1.2.0.tar.gz
ec... | bash |
d_bash_9074 | ---
+++
@@ -1,6 +1,9 @@
case "$TARGET" in
debian* | ubuntu*)
fpm_depends+=('postgresql' 'libpq-dev' 'nginx | apache2')
+ ;;
+ centos*)
+ fpm_depends+=('postgresql-server' 'postgresql-devel' 'httpd')
;;
esac
| bash |
d_bash_9075 | ---
+++
@@ -21,12 +21,15 @@
# Commit changes
DATE=`date "+%d %b %Y"`
-COMMIT_MESSAGE="Auto commit - $DATE"
+VERSION=`awk -F"'" '/version=/ {print $2}' setup.py`
+COMMIT_MESSAGE="Auto commit version $VERSION - $DATE"
echo "$COMMIT_MESSAGE"
# this is needed to include removed and newly introduced files
git add... | bash |
d_bash_9076 | ---
+++
@@ -21,8 +21,8 @@
cd ~/builder/runs && ( ls | head -n -20 | xargs rm -rf )
cd $D
git clone -b $BRANCH git://g.csail.mit.edu/fscq-impl fscq
+cd fscq/src
echo "Building commit:" "`git show --no-patch --pretty=oneline $BRANCH`"
-cd fscq/src
script $D/make-out.txt -c 'time make'
script $D/checkproofs-out.tx... | bash |
d_bash_9077 | ---
+++
@@ -9,13 +9,13 @@
if [ $# -ne 2 ]; then
echo "Usage: ./jiiifyNagios my.domain.edu [basic]"
else
- if [ ${1:0:8} != 'https://' ]; then
+ if [ ${1:0:8} != 'https://' ] && [ ${1:0:7} != 'http://' ]; then
URL='https://'${1%/}
else
URL=${1%/}
fi
- STATUS=`curl -k -s "${URL}/status/${2}"`
... | bash |
d_bash_9078 | ---
+++
@@ -1,9 +1,11 @@
include logger.Logger
+
+include string.validator.StringValidator
@class
System(){
extendAntOpts(){
- if [[ ${1} =~ 6. ]]; then
+ if [[ $(StringValidator beginsWith 6 ${1}) ]]; then
Logger logProgressMsg "configuring_ANT_OPTS_JVM"
export ANT_OPTS="${ANT_OPTS} -XX:MaxPermSize=... | bash |
d_bash_9079 | ---
+++
@@ -6,4 +6,4 @@
echo "Checking 'setup.py'" && \
python setup.py check --strict --restructuredtext --metadata && \
echo "Checking code style" && \
-yapf --style=google -d -r setup.py base10
+yapf --style=facebook -d -r setup.py base10 | bash |
d_bash_9080 | ---
+++
@@ -1,2 +1,6 @@
VERSION=$(git rev-parse --short HEAD)
-echo $VERSION
+if [ "$VERSION" != "" ]; then
+ echo $VERSION
+else
+ echo "1"
+fi | bash |
d_bash_9081 | ---
+++
@@ -8,7 +8,7 @@
pip install -q ghtools
-REPO="alphagov/govuk-lint"
+REPO="alphagov/govuk_security_audit"
gh-status "$REPO" "$GIT_COMMIT" pending -d "\"Build #${BUILD_NUMBER} is running on Jenkins\"" -u "$BUILD_URL" >/dev/null
if ./jenkins.sh; then | bash |
d_bash_9082 | ---
+++
@@ -1,10 +1,6 @@
#!/usr/bin/env bash
-source ~/.functions.sh
mkdir -p ~/.linuxbrew/{,s}bin
-pathadd ~/.linuxbrew/bin
-pathadd ~/.linuxbrew/sbin
-
-#TODO: give pathadd a for loop
+export PATH=~/.linuxbrew/bin:~/.linuxbrew/sbin:$PATH
unset LD_LIBRARY_PATH PKG_CONFIG_PATH
#apt-get install build-essential c... | bash |
d_bash_9083 | ---
+++
@@ -1,3 +1,8 @@
+if [ ! -d /humgen/atgu1/fs03 ]; then
+ echo "/humgen/atgu1/fs03 not found. Exiting.."
+ exit -1
+fi
+
export TERM=xterm
source /broad/software/scripts/useuse
reuse UGER | bash |
d_bash_9084 | ---
+++
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
+rm -r simple-statistics.github.com
git clone https://github.com/simple-statistics/simple-statistics.github.com.git
node simple-statistics.github.com/update_version.js ../package.json
cd simple-statistics.github.com | bash |
d_bash_9085 | ---
+++
@@ -9,4 +9,6 @@
}
process.chdir(__dirname);
-reporter.run(['test/']);
+reporter.run(['test/'], null, function(failure) {
+ process.exit(failure ? 1 : 0)
+}); | bash |
d_bash_9086 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
KERL_INSTALL_PATH=~/erlang
-KERL_RELEASES="r15b01 r15b02 r15b03 r16b r16b01 r16b02 r16b03-1 maint master"
+KERL_RELEASES="r15b01 r15b02 r15b03 r16b r16b01 r16b02 r16b03-1 17.0 17.0_native maint master"
make build-tests
| bash |
d_bash_9087 | ---
+++
@@ -36,13 +36,12 @@
build-essential \
python \
python2.7 \
- python2.7-dev \
- python-pip
-pip install --upgrade --ignore-installed setuptools
-pip install wheel
+ python2.7-dev
-# Move into root of nupic repository
-pushd `git rev-parse --show-toplevel`
+# Install pip
+python ci/bam... | bash |
d_bash_9088 | ---
+++
@@ -1,3 +1,10 @@
# Editor
-export EDITOR='vim'
-alias m='mvim'
+
+platform='unknown'
+unamestr=`uname`
+
+if [[ "$unamestr" == 'Darwin' ]]; then
+ export EDITOR='mvim'
+else
+ export EDITOR='vim'
+fi | bash |
d_bash_9089 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-S3_BUCKET="ucladevx-website"
+S3_BUCKET="www.ucladevx.com"
DEPLOY_BRANCH="master"
BUILD_FOLDER="dist"
| bash |
d_bash_9090 | ---
+++
@@ -32,7 +32,7 @@
# Register the function so it is called whenever the working
# directory changes.
autoload add-zsh-hook
- add-zsh-hook chpwd update_terminal_cwd
+ add-zsh-hook precmd update_terminal_cwd
# Tell the terminal about the initial directory.
update_terminal_cwd | bash |
d_bash_9091 | ---
+++
@@ -25,7 +25,7 @@
PATH=/Users/alan/.usr/share/npm/bin:$PATH
fi
-if ! { which node > /dev/null; } && [ -d /node ]; then
+if ! { which node > /dev/null 2>&1; } && [ -d /node ]; then
echo "looking for node"
fi
| bash |
d_bash_9092 | ---
+++
@@ -14,7 +14,7 @@
fi
echo "Publishing on npm with tag $TAG_NPM"
- npx @alfresco/adf-cli@alpha npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)"
+ ./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish --npmRegistry $NP... | bash |
d_bash_9093 | ---
+++
@@ -45,4 +45,6 @@
-M Digest::Shabal \
-M Digest::Skein \
-M Digest::Whirlpool \
+ -I lib \
+ -M FSTreeIntegrityWatch \
-o extattr-file-integrity extattr-file-integrity.pl | bash |
d_bash_9094 | ---
+++
@@ -24,7 +24,8 @@
#
# Get a new version of the output
#
-export LIBNETMON_OUTPUTVERSION=2
+export LIBNETMON_OUTPUTVERSION=3
+export LIBNETMON_MONITORUDP=1
echo "Instrumenting '$@' with libnetmon"
exec $@ | bash |
d_bash_9095 | ---
+++
@@ -1,4 +1,4 @@
#forever-service install heatingd -s index.js --start -r pi
-pm2 start index.js --name heatingd -l ~/homecontrol/logs/heatingd
+pm2 start index.js --name heatingd -l ~/homecontrol/logs/heatingd -- -x
pm2 save | bash |
d_bash_9096 | ---
+++
@@ -5,6 +5,8 @@
#export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/local/share/zsh-syntax-highlighting/highlighters
elif [ "${UNAME}" = "FreeBSD" ]; then
SYNFILE=/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+elif [ "${UNAME}" = "Linux" ]; then
+ SYNFILE=/usr/share/zsh/plugins/zsh-synt... | bash |
d_bash_9097 | ---
+++
@@ -15,3 +15,6 @@
# TODO: Rename host name?
# TODO: Rename user?
+# cleanup APT cache and lists
+apt-get clean
+rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | bash |
d_bash_9098 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-apt-get install libffi6 libffi-dev libfreetype6 \
+apt-get install -y libffi6 libffi-dev libfreetype6 \
libfreetype6-dev libpng3 nmap dvipng
pip3 install python-nmap wakeonlan requests pyqtgraph pandas \
psutil termcolor sh cairocffi matplotlib scipy jupyter | bash |
d_bash_9099 | ---
+++
@@ -2,6 +2,18 @@
CASSANDRA_BASE=apache-cassandra-$CASSANDRA_VERSION
-sudo rm -rf /var/lib/cassandra/*
-curl http://apache.arvixe.com/cassandra/$CASSANDRA_VERSION/$CASSANDRA_BASE-bin.tar.gz | tar xz
+n=0
+until [ $n -ge 5 ]
+do
+ sudo rm -rf /var/lib/cassandra/*
+ curl http://apache.arvixe.com/cassa... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.