document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_24100
--- +++ @@ -1,5 +1,6 @@ # Tweaks from Github export RUBY_HEAP_MIN_SLOTS=$((1e6)) +export RUBY_GC_HEAP_INIT_SLOTS=$((1e6)) export RUBY_HEAP_SLOTS_INCREMENT=$((1e6)) export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 export RUBY_GC_MALLOC_LIMIT=$((1e8))
bash
d_bash_24101
--- +++ @@ -15,7 +15,7 @@ COMPREPLY=( $(compgen -W "$cmds" -- "$cur") ) elif [[ "$prev" = "-c" ]]; then local CONFIG_FILES - CONFIG_FILES=$(find -L . -depth 1 -name '*yaml' -or -name '*.sh' | sed -e 's:^\./::') + CONFIG_FILES=$(find -L . -maxdepth 2 -name '*.yaml' -or -name '*.s...
bash
d_bash_24102
--- +++ @@ -2,7 +2,7 @@ VERSION="$(python ./src/version.py)" DEST="./dist/fpp.$VERSION.tar.gz" mkdir -p ./dist/ -tar -cf $DEST src/*.py fpp +tar -czf $DEST src/*.py fpp sed -i '' -e "s#url .*#url \"https://github.com/facebook/PathPicker/releases/download/$VERSION/fpp.$VERSION.tar.gz\"#g" ./fpp.rb HASH=$(cat $D...
bash
d_bash_24103
--- +++ @@ -2,12 +2,13 @@ set -e -if [ -z "$1" ]; then - echo "path of project is required" - exit 1 +path="$1" +if [ -z "$path" ]; then + echo "using pwd $(pwd)" + path=$(pwd) fi -path=$(realpath "$1") +path=$(realpath "$path") name=$(basename "$path") project=$(echo "$path" | sed -e "s;^$GOPATH/;;") @@ ...
bash
d_bash_24104
--- +++ @@ -3,7 +3,5 @@ vardebug INDEXHTML [ -f "${INDEXHTML}" ] || bail_out "File >${INDEXHTML}< missing." sed -i'' "s%GAWATI_PROXY:\"[^\"]*\"%GAWATI_PROXY:\"https://data.${GAWATI_URL_ROOT}\"%g" "${INDEXHTML}" - sed -i'' "s%GAWATI_DOCUMENT_SERVER:\"[^\"]*\"%GAWATI_DOCUMENT_SERVER:\"https://media.${GAWATI_U...
bash
d_bash_24105
--- +++ @@ -22,7 +22,7 @@ touch /var/log/s3-sync.log echo "Doing initial sync with S3" - /usr/bin/aws s3 sync s3://$S3_BUCKET /var/jenkins_home + /usr/bin/aws s3 sync s3://$S3_BUCKET /var/jenkins_home --exclude "*workspace/*" --exclude "*lastSuccessfulBuild/*" --exclude "*lastStableBuild/*" --exclude "*last...
bash
d_bash_24106
--- +++ @@ -22,7 +22,7 @@ sourceDir=$2 findFileName=$3 - for src in $(find -H "$sourceDir" -maxdepth 1 -name "$findFileName") + for src in $(find -H "$sourceDir" -maxdepth 1 -name "$findFileName" -not -name .DS_Store -not -name .git -not -name .gitignore) do sourceBase="$(basename "${src}")" ds...
bash
d_bash_24107
--- +++ @@ -10,12 +10,20 @@ export CHECKERFRAMEWORK=`readlink -f ${CHECKERFRAMEWORK:-../checker-framework}` export PATH=$AFU/scripts:$JAVA_HOME/bin:$PATH +git -C /tmp/plume-scripts pull > /dev/null 2>&1 \ + || git -C /tmp clone --depth 1 -q https://github.com/plume-lib/plume-scripts.git + cd ${AFU} ./gradlew a...
bash
d_bash_24108
--- +++ @@ -10,7 +10,7 @@ if [[ -d $DIST_DIR ]] then - sudo rm -rf $DIST_DIR/* $DIST_DIR/.* + sudo rm -rf $DIST_DIR/* fi mkdir -p $DIST_DIR
bash
d_bash_24109
--- +++ @@ -14,4 +14,4 @@ export S3_KEY S3_SECRET S3_BUCKET # Prepend DEBUG=* on the line below for more verbosity -./bin/capture.js -u -a -l 1 +./bin/capture.js --upload --all --parallel 1
bash
d_bash_24110
--- +++ @@ -10,10 +10,12 @@ mkdir -p `pwd`/dist chmod 777 `pwd`/dist +docker rm -f pyinstaller || true docker run -v `pwd`/:/code --name pyinstaller calico-build \ pyinstaller calicoctl.py -a -F -s --clean docker rm -f pyinstaller || true +docker rm -f docopt || true docker run -v `pwd`/:/code --name docop...
bash
d_bash_24111
--- +++ @@ -1,4 +1,3 @@ -#! /bin/sh -for v in 2.10 2.11 ; do - mvn -Dscala.binary.version=$v $* -done +#! /bin/bash +mvn -Dscala.binary.version=2.10 -Dscala.version=2.10.6 "$@" +mvn -Dscala.binary.version=2.11 -Dscala.version=2.11.7 "$@"
bash
d_bash_24112
--- +++ @@ -13,6 +13,11 @@ pkg_include_dirs=(include Include) pkg_interpreters=(bin/python bin/python3 bin/python3.5) +do_prepare() { + sed -i.bak 's/#zlib/zlib/' Modules/Setup.dist + sed -i -re "/(SSL=|_ssl|-DUSE_SSL|-lssl).*/ s|^#||" Modules/Setup.dist +} + do_build() { ./configure --prefix=${pkg_pr...
bash
d_bash_24113
--- +++ @@ -22,10 +22,7 @@ sed -i -e "s!^version = .*!version = \"$VERSION\"!" r/Cargo.toml # Update the version in the Rust crate -sed -i -e "s!^version = .*!version = \"$VERSION\"!" rust/Cargo.toml - -# Update the version in the CLI app -sed -i -e "s!^version = .*!version = \"$VERSION\"!" cli/Cargo.toml +sed -i...
bash
d_bash_24114
--- +++ @@ -1,8 +1,4 @@ #!/bin/bash -x -source '/usr/local/lib/rvm' -export GEM_HOME="/home/jenkins/bundles/${JOB_NAME}" -mkdir -p "${GEM_HOME}" -bundle install +bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment bundle exec rake db:migrate -bundle exec rake stats bundle exec rake
bash
d_bash_24115
--- +++ @@ -10,8 +10,9 @@ export KBNAME="webbox_$ME" export RWW_JAR="${SECURESTORE_HOME}/rww/read-write-web.jar" export RWW_PORT="8213" -export LOG_RWW="$HOME/.webbox/data/logs/rww.log" -export LOG_SECURESTORE="$HOME/.webbox/data/logs/webbox_server.log" -export LOG_4S="$HOME/.webbox/data/logs/4store.log" +export L...
bash
d_bash_24116
--- +++ @@ -1,9 +1,16 @@ #!/bin/bash -# Pull requests and commits to other branches shouldn't try to deploy -if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "master" ]; then - echo "Skipping deploy codes" +# Pull requests shouldn't try to deploy +if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then + ...
bash
d_bash_24117
--- +++ @@ -2,5 +2,5 @@ # Sublime: 'subl -w' # MacVim: 'mvim' # Vim: 'vim' -export EDITOR="subl" -export GEM_EDITOR="subl" +export EDITOR="subl -w" +export GEM_EDITOR="subl -w"
bash
d_bash_24118
--- +++ @@ -19,7 +19,7 @@ make "$@" check # Upload coverage -if test -n "${CODECOV_TOKEN:-}"; then +if test -n "${COVERAGE:-}"; then curl --retry 5 -s https://codecov.io/bash > codecov.bash bash codecov.bash -Z fi
bash
d_bash_24119
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -find /srv/backup-data -not \( -path /srv/backup-data/lost+found -prune \) -type f -mtime +30 -delete +find /srv/backup-data -not \( -path /srv/backup-data/lost+found -prune \) -type f -mtime +30 -exec rm {} +
bash
d_bash_24120
--- +++ @@ -6,6 +6,12 @@ dir="$( cd "$( dirname "${BASH_SOURCE[0]}")" && pwd )" source "$dir/dotfiles-support" + +if [[ -e ~/.Brewfile ]]; then + BREWFILE=~/.Brewfile +else + BREWFILE="$dir/brew/Brewfile" +fi pull_master() { cd "$dir" \ @@ -26,7 +32,7 @@ bundle_check() { # the "or true" is necessary t...
bash
d_bash_24121
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -awk '/^CREATE TABLE IF NOT EXISTS/ { print "DROP TABLE " $6 ";" }' $(dirname $0)/tables.sql -awk '/^CREATE INDEX/ { print "DROP INDEX " $3 ";" }' $(dirname $0)/indexes.sql +awk '/^CREATE TABLE IF NOT EXISTS/ { print "DROP TABLE IF EXISTS " $6 ";" }' $(dirname $0)/tables.sql +awk ...
bash
d_bash_24122
--- +++ @@ -16,3 +16,5 @@ workon oooq cd /tmp/oooq pip install --no-cache-dir -r requirements.txt -r quickstart-extras-requirements.txt +# https://review.openstack.org/477482 +pip install --no-cache-dir jinja2>=2.9.6
bash
d_bash_24123
--- +++ @@ -48,6 +48,6 @@ commitMessage1="$nextVersion" commitMessage2="Changelog: $GITILES_REPO_URL/+log/refs/tags/$prevVersion..refs/tags/$nextVersion" -git tag -a $nextVersion -m "$commitMessage1" -m "$commitMessage2" +git tag -s $nextVersion -m "$commitMessage1" -m "$commitMessage2" echo "Tag created. Now ...
bash
d_bash_24124
--- +++ @@ -1,3 +1,3 @@ -gnome-terminal -e "python /home/baptiste/kites/robokite/Motors/joystick.py" -gnome-terminal -e "python /home/baptiste/kites/robokite/Motors/motorJoy.py" -gnome-terminal -e "mavproxy.py --master=localhost:14550 --aircraft=robokite" +x-terminal-emulator -e "python Motors/joystick.py" +x-termina...
bash
d_bash_24125
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env bash -while getopts "e:f" opt; do +while getopts "e:f:" opt; do case $opt in e) config="$OPTARG" ;; @@ -23,6 +23,11 @@ exit fi +if [ -z "$pidFile" ]; then + printf "No pidFile was provided." + exit +fi + if [[ ! " ${configs[@]} " =~ " ${config} "...
bash
d_bash_24126
--- +++ @@ -3,7 +3,7 @@ ./autogen.sh ./configure -make --jobs=2 +make --jobs=2 V=1 if [ -n "$VALGRIND_TEST" ]; then libtool execute valgrind --leak-check=full --error-exitcode=1 -- \
bash
d_bash_24127
--- +++ @@ -21,10 +21,12 @@ # - GNU core utilities # - GNU `find`, `locate`, `updatedb`, `xargs` brew install git coreutils findutils grc spark zsh +brew install gnu-sed --default-names # common packages brew install ack brew install ansible +brew install bash-completion brew install dnsmasq brew install dr...
bash
d_bash_24128
--- +++ @@ -29,3 +29,9 @@ sudo apt-get -y install \ docker-engine + +sudo groupadd docker + +sudo gpasswd -a ${USER} docker + +sudo service docker restart
bash
d_bash_24129
--- +++ @@ -1,8 +1,8 @@ #!/usr/bin/env bash -FILES=(terminator awesome) +dir=$DOTFILES/linux/configs +FILES=$(ls $dir) p=$HOME/.config -dir=$DOTFILES/linux/configs function link() { local folder=$1
bash
d_bash_24130
--- +++ @@ -11,7 +11,3 @@ apt-get -y install build-essential apt-get -y install git openjdk-8-jdk --no-install-recommends zlib1g-dev pip install cython buildozer python-for-android - -# latest sh is too slow, use a previous working version -# CF https://github.com/amoffat/sh/issues/378 -pip install sh\<1.12.5
bash
d_bash_24131
--- +++ @@ -7,13 +7,12 @@ ../build.sh # Start the server -../start_server.sh --debug=true & +../start_server.sh --debug=true >>/out.log 2>&1 & sleep 3 # Start another few clients -../indispenso --seed="https://127.0.0.1:897/" --hostname="client-one" --debug=true & -../indispenso --seed="https://127.0.0.1:897/...
bash
d_bash_24132
--- +++ @@ -1,8 +1,8 @@ #!/bin/bash -grunt jshint - KARMA=./node_modules/karma/bin/karma +MOCHA=./node_modules/mocha/bin/mocha $KARMA start config/karma.conf.js --no-auto-watch --single-run --reporters=dots --browsers=PhantomJS $KARMA start config/karma.midway.conf.js --no-auto-watch --single-run --reporters=...
bash
d_bash_24133
--- +++ @@ -6,7 +6,7 @@ [ "$TRAVIS_COMMIT" ] && source travis/env.sh GRADLE_FLAGS= -[ "$TRAVIS_COMMIT" ] && GRADLE_FLAGS='--no-color -q' +[ "$TRAVIS_COMMIT" ] && GRADLE_FLAGS='--no-color' for p in poco sqlite3 libodb libodb-sqlite gtest gmock; do ./gradlew $GRADLE_FLAGS ${p}:publish
bash
d_bash_24134
--- +++ @@ -10,4 +10,4 @@ $OVNSUDO docker rmi ovn-scale-test-ovn $OVNSUDO docker rmi ovn-scale-test-base # Find the <none> image and delete it -$OVNSUDO docker rmi $(docker images | grep none | awk -F' +' '{print $3}') +$OVNSUDO docker rmi $($OVNSUDO docker images | grep none | awk -F' +' '{print $3}')
bash
d_bash_24135
--- +++ @@ -1,6 +1,7 @@ #!/bin/bash -# These depend on bootstrap.d to be entered as a file provisioner in the json +# This requires that bootstrap.d be entered as a file provisioner in +# the packer json file. for s in /tmp/bootstrap.d/[0-9][0-9]-* ; do echo "BCE: Sourcing bootstrap.d script '${s}'."
bash
d_bash_24136
--- +++ @@ -8,7 +8,8 @@ allrepos="$subrepos $devrepo $masterrepo" EXM_SVN=https://svn.mcs.anl.gov/repos/exm/sfw -GITHUB_ROOT=https://github.com/timarmstrong +#GITHUB_ROOT=https://github.com/timarmstrong +GITHUB_ROOT=git@github.com:timarmstrong for subrepo in $subrepos do
bash
d_bash_24137
--- +++ @@ -10,4 +10,3 @@ echo $(pwd) git pull g++ -v -std=c++11 -Wall -D__LINUX_ALSA__ -o ./bin/audioprobe main.cpp ../rtaudio/RtAudio.cpp -I../rtaudio -I../rtaudio/include -lasound -lpthread -./bin/audioprobe
bash
d_bash_24138
--- +++ @@ -9,3 +9,10 @@ mod="`echo "${Mod}" | tr '[:upper:]' '[:lower:]'`" LINKFLAGS="`pkg-config --libs $module gio-unix-2.0 glib-2.0 | tr ' ' '\n' | sed 's/^/-Xlinker /' | tr '\n' ' '`" CCFLAGS="`pkg-config --cflags $module gio-unix-2.0 glib-2.0 | tr ' ' '\n' | sed 's/^/-Xcc /' | tr '\n' ' ' `" +TAC="tail -r" +...
bash
d_bash_24139
--- +++ @@ -4,6 +4,8 @@ # golang { pushd /usr/local + apt-get install -y jq + apt-get clean GO_INFO=$(curl 'https://golang.org/dl/?mode=json' | jq '.[0].files[] | select(.os == "linux" and .arch == "amd64")') GO_TAR="$(echo "$GO_INFO" | jq -r '.filename')" GO_SHA="$(echo "$GO_INFO" | jq -r '.sha256')"
bash
d_bash_24140
--- +++ @@ -1,4 +1,10 @@ #!/bin/sh + +# I got the idea for dropping the schema as a way to clear out the db from +# http://www.postgresql.org/message-id/200408241254.19075.josh@agliodbs.com. I +# don't have permission to drop and create the db as a whole on Heroku +# Postgres. + echo "DROP SCHEMA public CASCADE" | ...
bash
d_bash_24141
--- +++ @@ -19,7 +19,7 @@ --allow-dupe \ --allow-redirect \ --set-timeout 150 \ - --white-list "example1.com,example2.com,example3.com,html5sec.org,github.com/sonarwhal/" \ + --white-list "example1...
bash
d_bash_24142
--- +++ @@ -1,10 +1,16 @@ #!/usr/bin/env sh -# Docker ENTRYPOINT script to use `envsubst` to insert environment variables -# into the Nginx config. +set -eu + +# Increase the number of worker connections from the +# default of 1024 to avoid the warning "1024 worker_connections are not enough, reusing connections" ...
bash
d_bash_24143
--- +++ @@ -33,7 +33,8 @@ export MAILDIR="$HOME/.mail" # Force gpg-agent to use the current tty -export GPG_TTY=$(tty) +tty_path=$(tty) +export GPG_TTY=$tty_path # Source something from all shells for private ENV vars if [[ -f "$HOME/.secrets" ]]; then
bash
d_bash_24144
--- +++ @@ -2,7 +2,7 @@ cd $(git rev-parse --show-toplevel) dt=`date -u +%d.%m.%Y-%H:%M:%S` -if [ "$(git st --porcelain src/js/masha.js | cut -b1)" == "M" ]; then +if [ "$(git status --porcelain src/js/masha.js | cut -b1)" == "M" ]; then # Adding version to js out=`sed "s/\\.version = \"[^\"]*\";/\\.v...
bash
d_bash_24145
--- +++ @@ -27,6 +27,10 @@ # create jupyter base dir (needed for config retrieval) mkdir ~/.jupyter +# Building should work without yarn installed globally, so uninstall the +# global yarn that Travis installs automatically. +sudo rm -rf `which yarn` +yarn --version # Install and enable the server extension p...
bash
d_bash_24146
--- +++ @@ -1,5 +1,19 @@ #!/bin/bash +# Set Magento file permissions and ownership +SRC=/home/www/naturalremedy/src +chown -R www:www $SRC +find $SRC -type f -exec chmod 400 {} + +find $SRC -type d -exec chmod 500 {} + +find $SRC/var/ -type f -exec chmod 600 {} + +find $SRC/media/ -type f -exec chmod 600 {} + +fin...
bash
d_bash_24147
--- +++ @@ -2,16 +2,25 @@ # Query on the www-server domain with default DNS server, # fire HTTP request with bash TCP socket pseudo-path and echo result # USAGE: dnsquery_sanity_checker.sh <domain> -# NOTICE: depandence on drill(or dig), curl -_TOOLCHAIN_DNS="drill" _STR_DOMAIN="$1" -_POSIX_REGEX_DNS_RECORD=...
bash
d_bash_24148
--- +++ @@ -2,6 +2,11 @@ set -euo pipefail mkdir -p bundle-analysis dist + +# Remove anything already in dist. The Dockerfile builds the assets already, +# but not the production versions, so paths like app.js exist, and we don't +# want to deploy those to production. +rm dist/* echo "--- :webpack: Building We...
bash
d_bash_24149
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash set -e -docker images -q 'librarytest/*' | xargs docker rmi -f +docker images 'librarytest/*' | awk 'NR>1 { print $1":"$2 }' | xargs -r docker rmi
bash
d_bash_24150
--- +++ @@ -12,7 +12,7 @@ echo "$file not found. You can create this file to install additional plugins not already included in the docker image." fi -rm /var/run/dbus/pid +rm -f /var/run/dbus/pid /var/run/avahi-daemon/pid dbus-daemon --system avahi-daemon -D
bash
d_bash_24151
--- +++ @@ -14,9 +14,20 @@ # limitations under the License. set -e set -x +BASE_URL='http://paddlepaddle.cdn.bcebos.com/model_zoo/embedding' -# download the dictionary and pretrained model -for file in baidu.dict model_32.emb model_64.emb model_128.emb model_256.emb -do - wget http://paddlepaddle.bj.bcebos.co...
bash
d_bash_24152
--- +++ @@ -7,14 +7,16 @@ # # always generate current sums # -rm --force "${current}" +echo "Generating checksum file..." md5sum documentation/documentation.gradle > "${current}" -find documentation/src/ -type f -exec md5sum {} + > "${current}" +md5sum $(find documentation/src/ -type f) >> "${current}" +md5sum $(...
bash
d_bash_24153
--- +++ @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e - +set -x export GOOGLE_CREDENTIALS_FILE="/tmp/google-account.json" export GCLOUD_PROJECT="terraform-ci-acc-tests" export TF_ACC=1 @@ -15,7 +15,7 @@ # to disk for use in tests. echo "${GOOGLE_ACCOUNT_JSON}" > /tmp/google-account.json -set -x + # Create GO...
bash
d_bash_24154
--- +++ @@ -15,7 +15,7 @@ adb_shell () { local RET ADB_LOG ADB_LOG=$(mktemp "${TMPDIR:-/tmp}/adb-XXXXXXXX") - adb shell "$@" ";" echo \$? | tee "$ADB_LOG" + adb "$1" shell "$@" ";" echo \$? | tee "$ADB_LOG" sed -i -e 's![[:cntrl:]]!!g' "$ADB_LOG" # Remove \r. RET=$(sed -e '$!d' "$ADB_LOG") #...
bash
d_bash_24155
--- +++ @@ -4,9 +4,10 @@ cd binning-project mkdir data - -ln -s ../contigs data/ -ln -s ../reads data/ +cd data +ln -s ../../contigs . +ln -s ../../reads . +cd .. snakemake --list-target-rules snakemake --dryrun concoct_inputtable_10K_all
bash
d_bash_24156
--- +++ @@ -25,6 +25,7 @@ # Wait for MySQL to start listening to connections wait_for_line "mysqld: ready for connections." ${MYSQL_DATA}/out export REFSTACK_TEST_MYSQL_URL="mysql+pymysql://root@localhost/test?unix_socket=${MYSQL_DATA}/mysql.socket&charset=utf8" +mysql --no-defaults -S ${MYSQL_DATA}/mysql.socket -...
bash
d_bash_24157
--- +++ @@ -9,7 +9,7 @@ # sed pattern taken from https://www.robustperception.io/monitoring-directory-sizes-with-the-textfile-collector/ # # Author: Antoine Beaupré <anarcat@debian.org> -echo "# HELP anarcat_dir_space_bytes Disk space used by some directories" -echo "# TYPE anarcat_dir_space_bytes gauge" +echo "# ...
bash
d_bash_24158
--- +++ @@ -8,9 +8,11 @@ git remote set-url origin "https://${GH_TOKEN}@github.com/gsnewmark/beatha.git" lein2 with-profile prod do clean, compile + ls -alF git checkout gh-pages git pull origin gh-pages cp dev-resources/public/js/beatha.js js/beatha.js + ls -alF git add js/beatha.js git stat...
bash
d_bash_24159
--- +++ @@ -2,10 +2,17 @@ # TODO: This needs to be replaced with proper puppet script branch="tornado-backend" -echo "Deploying for production..." +echo "######### {INFO} : Deploying for production... #########" +echo "######### {INFO} : Current GIT status #########" git status +echo "######### {INFO} : Sync via...
bash
d_bash_24160
--- +++ @@ -1,10 +1,14 @@ #!/bin/sh -exec 3<data1.i exec 4<data2.i -cat <&4 | while read H; do +function f() { + exec 3<data1.i cat <&3 | while read F; do echo $H $F done +} + +cat <&4 | while read H; do + f done
bash
d_bash_24161
--- +++ @@ -1,15 +1,25 @@ #!/bin/bash # Per https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04 +echo "" echo "Confirming, no swap yet" +echo "" swapon -s fallocate -l 1G /swapfile chmod 600 /swapfile mkswap /swapfile swapon /swapfile +echo "" echo "Should have swap now:" +echo "...
bash
d_bash_24162
--- +++ @@ -27,7 +27,7 @@ url(r'^$', 'helloworld.views.home', name='home'), )" | tee /var/www/helloworld/helloworld/urls.py -sed -i "s|ALLOWED_HOSTS = \[\]|ALLOWED_HOSTS = \['*'\]|" settings.py +sed -i "s|ALLOWED_HOSTS = \[\]|ALLOWED_HOSTS = \['*'\]|" /var/www/helloworld/helloworld/settings.py # Setup Apac...
bash
d_bash_24163
--- +++ @@ -12,27 +12,27 @@ # Store an install log of all npm/pip/apt-get installs preexec() { - if [ $1 =~ "^npm install" ]; then + if [[ $1 =~ "^npm install" ]]; then echo "$1" >> "${HOME}/.install-log" fi - if [ $1 =~ "^gem install" ]; then + if [[ $1 =~ "^gem install" ]]; then ...
bash
d_bash_24164
--- +++ @@ -1,9 +1,13 @@ #!/usr/bin/env bash + +# Skip everything relying on travis secure variables when on a pull requests if [ "$1" == "browserstack" ]; then if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then grunt browserstack; exit $?; + else + echo "Skipping browserstack. (it's ...
bash
d_bash_24165
--- +++ @@ -3,7 +3,7 @@ kernel="$(uname -s)" if [ $kernel == "Darwin" ] ; then SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" - architecture="mac" + architecture="macosx" elif [ $kernel == "Linux" ] ; then SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" architecture="linux"
bash
d_bash_24166
--- +++ @@ -1,7 +1,7 @@ # Enable `fuck` for correcting misspellings -if type thefuck >/dev/null; then - eval $(thefuck --alias) -fi +#if type thefuck >/dev/null; then +# eval $(thefuck --alias) +#fi # Auto jump [[ -r "/usr/share/z/z.sh" ]] && source /usr/share/z/z.sh
bash
d_bash_24167
--- +++ @@ -1,4 +1,4 @@ echo "Running Production Site" git clone https://Discordius:$GITHUB_CREDENTIALS_REPO_PAT@github.com/$GITHUB_CREDENTIALS_REPO_NAME.git Credentials -NODE_OPTIONS=--max_old_space_size=3512 ./build.js -run --settings ./Credentials/$SETTINGS_FILE_NAME --production +NODE_OPTIONS=--max_old_space...
bash
d_bash_24168
--- +++ @@ -24,5 +24,7 @@ fi done && -git diff --stat +git diff --stat && +git diff | grep ^+.*$ | grep -o https:\/\/www\.gov\.uk.*, | sed s/,//g > cache/diff_of_new_urls && +cat cache/diff_of_new_urls | xargs curl -o /dev/null -sL --head -w '%{http_code} %{url_effective}\n' | grep www\.gov\.uk > status_of_new...
bash
d_bash_24169
--- +++ @@ -1,3 +1,7 @@ -find ${project.name}/plugins -name "*.jar" -type f -exec cp '{}' ${project.name}/plugins ';' -cd / -/${project.name}/bin/${project.name} $@ +if [ "$SCRIPTS_MODE" = true ] ; then + find ${project.name}/scripts -type f -exec /${project.name}/bin/${project.name} cli '{}' ';' +else + find $...
bash
d_bash_24170
--- +++ @@ -2,6 +2,7 @@ echo "************************* SETTING ENV VARS ************************* " export PRINCIPAL="mesos_master" export FRAMEWORK_USER="magellan" +export MASTER_ADDRESS="10.144.144.10:5050" echo "************************* BUILDING WITH MAVEN ************************* " mvn package $@ echo "*...
bash
d_bash_24171
--- +++ @@ -10,6 +10,7 @@ # shellcheck disable=SC2006,SC2046 brew install \ bash-completion `: autocompletion for bash terminal` \ + grep `: faster gnu grep` \ htop `: better top` \ iftop `: top for network I/O` \ jq `: parse and prettify json` \
bash
d_bash_24172
--- +++ @@ -12,4 +12,4 @@ cd registration-api/registration; mvn clean package docker:build; cd -; cd try-policy-api/tryPolicy; mvn clean package docker:build; cd -; cd iexhub/iexhub; mvn clean package docker:build; cd -; -cd uaa; ...
bash
d_bash_24173
--- +++ @@ -17,6 +17,10 @@ then # React DocGen library build of source comments into a JSON file for documentation site NODE_ENV=test npm run build-docs + else exit $? fi + else exit $? fi +else exit $? fi +
bash
d_bash_24174
--- +++ @@ -4,7 +4,7 @@ ntpdate -v -b 0.freebsd.pool.ntp.org # Install curl and ca_root_nss -pkg install -y curl ca_root_nss; +pkg install -y curl ca_root_nss dmidecode; # Emulate the ETCSYMLINK behavior of ca_root_nss; this is for FreeBSD 10, # where fetch(1) was massively refactored and doesn't come with
bash
d_bash_24175
--- +++ @@ -1,5 +1,4 @@ #!/bin/bash # Need at least python 2.7 to run unittest discovery -python2 -m unittest discover -python3 -m unittest discover +python -m unittest discover
bash
d_bash_24176
--- +++ @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Collect static files python manage.py collectstatic --noinput
bash
d_bash_24177
--- +++ @@ -22,7 +22,7 @@ readonly remote="bootstrap-upstream" rm -rf .gsutil # This causes verify flags to fail... -git remote remove "${remote}" || true +git remote remove "${remote}" 2>/dev/null || true git remote add "${remote}" 'https://github.com/kubernetes/kubernetes.git' git remote set-url --push "${re...
bash
d_bash_24178
--- +++ @@ -20,4 +20,4 @@ ./scripts/generate-test-bosh-lite-manifest ./templates/$BLOBSTORE_TYPE.yml fi -cp deployments/bits-service-release.yml "../manifests/manifest-$VERSION_FILE.yml" +cp deployments/bits-service-release.yml ../manifests/manifest-$VERSION.yml
bash
d_bash_24179
--- +++ @@ -4,11 +4,13 @@ apt-get -y install build-essential apt-get -y install devscripts apt-get -y install debhelper +apt-get -y install jq git clone git://github.com/stefanbirkner/jetbrains-dpkg.git cd jetbrains-dpkg -./build-package -p idea-iu -dpkg -i repository/debian/pool/idea-iu-*.deb +./build-package -...
bash
d_bash_24180
--- +++ @@ -17,7 +17,7 @@ # limitations under the License. HOSTNAME=$1 -SUDO='false' +SUDO='true' BARE='false' PYTHON3='false' PYPY='false'
bash
d_bash_24181
--- +++ @@ -10,4 +10,4 @@ apt-get -y install nodejs -npm install -g express-generator +npm install -g serve-favicon morgan cookie-parser body-parser debug jade express express-generator
bash
d_bash_24182
--- +++ @@ -10,6 +10,9 @@ sudo rm -f .env cp $ENV_FILE .env +if [ "$GIT_BRANCH" != "master" ]; then + sed -i '' -e "s#^TRANSIFEX_PUSH=.*#TRANSIFEX_PUSH=false#" .env 2>/dev/null || true +fi docker-compose -f docker-compose.builder.yml run -e BUILD_NUMBER=$BUILD_NUMBER -e GIT_BRANCH=$GIT_BRANCH builder dock...
bash
d_bash_24183
--- +++ @@ -18,10 +18,12 @@ } # max -create_package darwin x64 ./app/img/app.icns -create_package linux ia32 ./app/img/app.ico -create_package linux x64 ./app/img/app.ico -create_package win32 ia32 ./app/img/app.ico -create_package win32 x64 ./app/img/app.ico -grunt create-windows-installer - +#create_package dar...
bash
d_bash_24184
--- +++ @@ -28,6 +28,7 @@ #download own package cd ~/catkin_ws/src/ -git clone https://github.com/ryuichiueda/raspimouse_ros.git +rsync -av ./ ~/catkin_ws/src/raspimouse_ros/ +#git clone https://github.com/ryuichiueda/raspimouse_ros.git cd ~/catkin_ws catkin_make
bash
d_bash_24185
--- +++ @@ -27,7 +27,7 @@ alias hhf='hidehiddenfiles'; # Instant Server for Current Directory - https://gist.github.com/JeffreyWay/1525217 -alias server='open http://localhost:8000 && python -m SimpleHTTPServer' +alias server='open http://localhost:8000 && php -S localhost:8000' # Open /etc/hosts file alias h...
bash
d_bash_24186
--- +++ @@ -5,9 +5,14 @@ cat > /etc/apache2/conf-available/dyn-vhost.conf <<EOF UseCanonicalName Off +SetEnvIf X-Forwarded-For "^(.*\..*\..*\..*)|(.*:.*:.*:.*:.*:.*:.*:.*)" proxied LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon -CustomLog "/srv/${WP_ENV}/logs/access_log" vcommon -ErrorLog "/srv/${WP_ENV}/logs/e...
bash
d_bash_24187
--- +++ @@ -1,6 +1,7 @@ # SETUP # - Install xcode # - Install xcode command line tools +# - Install DropDMG, including the dropdmg command line tool # - Setup source directories as specified in README.md # (copy CEF binary, run scripts/make_symlinks.sh, etc.) # - Set BRACKETS_SRC environment variable, pointi...
bash
d_bash_24188
--- +++ @@ -5,7 +5,7 @@ ATOMCMD=$(cygpath "$(dirname "$0")/atom.cmd" -a -w) else pushd "$(dirname "$0")" > /dev/null - if [ "grep -q Microsoft /proc/sys/kernel/osrelease" ]; then + if [[ $(uname -r) == *-Microsoft ]]; then # We are in Windows Subsystem for Linux, map /mnt/drive ATOMCMD="$(echo $PWD...
bash
d_bash_24189
--- +++ @@ -2,9 +2,10 @@ find "$@" -type f -print0 | xargs -0 sed -i -r \ -e 's/Drupal\\wmcontroller\\Entity\\(AbstractPresenter|HasPresenterInterface|PresenterInterface)/Drupal\\wmpresenter\\Entity\\\1/g' \ + -e 's/Drupal\\wmcontroller\\Service\\Cache\\(.+)/Drupal\\wmpage_cache\\\1/g' \ + -e 's/Drupal\\wmcon...
bash
d_bash_24190
--- +++ @@ -2,4 +2,4 @@ set -e -xcodebuild -workspace EmonCMSiOS.xcworkspace -scheme EmonCMSiOS -sdk iphonesimulator -destination "name=iPhone SE" test | xcpretty +xcodebuild -workspace EmonCMSiOS.xcworkspace -scheme EmonCMSiOS -sdk iphonesimulator -destination "name=iPhone SE" test | xcpretty && exit ${PIPESTAT...
bash
d_bash_24191
--- +++ @@ -1,5 +1,13 @@ #!/usr/bin/env sh cd /Users/lopopolo/Downloads -rm *.torrent.imported +shopt -s nullglob +found=0 +for i in *.torrent.imported; do + found=1 +done +shopt -u nullglob + +[ $found -eq 1 ] && rm *.torrent.imported +
bash
d_bash_24192
--- +++ @@ -1,7 +1,11 @@ #!/bin/sh +clear_dock () { + defaults write com.apple.dock persistent-apps -array +} + dock () { - DIRECTORY="/Users/`whoami`/$1"; + DIRECTORY="/Users/`whoami`/Applications/$1.app"; XML="<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string...
bash
d_bash_24193
--- +++ @@ -9,11 +9,13 @@ i3-wm \ dmenu \ tmux \ - alacritty \ python3 \ python3-dev \ + +sudo snap --classic install alacritty # fzf should be downloaded from git in ubuntu git clone --depth 1 https://github.c...
bash
d_bash_24194
--- +++ @@ -4,13 +4,19 @@ video) gst-launch --gst-plugin-path=`pwd`/src/.libs \ v4l2src ! video/x-raw-rgb,width=320, height=240,fps=10 ! \ - dmtx scale=2 ! \ + dmtx scale=2 timeout=100 ! \ + queue ! ffmpegcolorspace ! xvimagesink +;; +video-eos) +gst-launch --gst-plugin-path=`pwd`/src/.libs \ + v4l2src ! video/x-...
bash
d_bash_24195
--- +++ @@ -6,6 +6,8 @@ export GOPATH=$(pwd)/gopath base=`pwd` + +cd gopath/src/github.com/nats-io/gnatsd out="${base}/compiled-${GOOS}" @@ -16,8 +18,6 @@ filename="gnatsd-${version}-${GOOS}-${GOARCH}" -cd gopath/src/github.com/nats-io/gnatsd - echo "building ${filename} with version ${version}" sed -...
bash
d_bash_24196
--- +++ @@ -1,6 +1,9 @@ #!/bin/sh OLD_VERSION=$(git describe --abbrev=0 --tags | tr -d 'v\n') +if [ -n "$2" ]; then + OLD_VERSION="$2" +fi VERSION="$1" if [ -z "$VERSION" ]; then
bash
d_bash_24197
--- +++ @@ -30,7 +30,7 @@ /^# cni_plugin_dirs = \["/ { s/# //g - s|"/usr/|"'"${PREFIX}"'/| + s|"/usr/libexec/|"'"${PREFIX}"'/lib/| } /^# network_config_dir = "/ {
bash
d_bash_24198
--- +++ @@ -21,4 +21,4 @@ rm -rf caramelomartins.github.io/* caramelomartins.github.io/.git rmdir caramelomartins.github.io -exit 0; +exit 1;
bash
d_bash_24199
--- +++ @@ -38,3 +38,6 @@ mkdir -p ~/.m2 cp settings.xml.tmpl ~/.m2/settings.xml + +mkdir -p .m2/repository +ln -s $(pwd)/.m2/repository ~/.m2/repository
bash