document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_24000 | ---
+++
@@ -19,8 +19,9 @@
function __gvmtool_help {
echo ""
echo "Usage: gvm <command> <candidate> [version]"
+ echo " gvm offline <enable|offline>"
echo ""
- echo " command : install, uninstall, list, use, current, version, default, selfupdate, broadcast or help"
+ echo " command : install, ... | bash |
d_bash_24001 | ---
+++
@@ -5,5 +5,7 @@
export PATH="$PATH:/usr/local/bin:$(go env GOPATH)/bin"
export PATH="$PATH:$HOME/.config/yarn/global/node_modules/.bin"
+export PATH="/usr/local/bin:$PATH"
+
[[ -d "$HOME/.mix/escripts" ]] && export PATH="$PATH:$HOME/.mix/escripts"
[[ -d "$HOME/.rvm" ]] && export PATH="$PATH:$HOME/.rvm/b... | bash |
d_bash_24002 | ---
+++
@@ -1,2 +1,2 @@
-#!/bin/bash
+#!/bin/sh
nosetests -w /Users/Harold/Documents/Code/Python/NFC/tests | bash |
d_bash_24003 | ---
+++
@@ -10,7 +10,7 @@
echo "Releasing commit ${release_commit}..."
# Remove -SNAPSHOT from version
-master_version=`mvn -B help:evaluated -Dexpression=project.version | grep "^[^\s]*-SNAPSHOT$" | sed 's/\(.*\)-SNAPSHOT/\1/'`
+master_version=`mvn -B help:evaluate -Dexpression=project.version | grep "^[^\s]*-SN... | bash |
d_bash_24004 | ---
+++
@@ -2,5 +2,5 @@
# All this does is set what node version all of my stuff uses.
# Since the merge and update to 4.0, I have found a need to stick to a specific relaese to keep
# things stable
-export node_version=6.6.0
+export node_version=6.9.2
| bash |
d_bash_24005 | ---
+++
@@ -14,6 +14,9 @@
[port]=port
)
pkg_exposes=(port)
+pkg_binds_optional=(
+[shield]="port provisioning_key"
+)
pkg_svc_user="root"
pkg_svc_group="$pkg_svc_user" | bash |
d_bash_24006 | ---
+++
@@ -15,6 +15,6 @@
then
rm urls.txt
fi
-$WGETCMD -e robots=off --no-check-certificate -m $1 2>&1 | grep '^--' | awk '{ print $3 }' | grep -v '\.\(css\|js\|png\|gif\|jpg\|JPG\)$' > urls.txt
+$WGETCMD -e robots=off --no-check-certificate -m $1 2>&1 | grep '^--' | awk '{ print $3 }' | grep -v '\.\(\[Cc\]\[Ss... | bash |
d_bash_24007 | ---
+++
@@ -1,6 +1,15 @@
#!/bin/sh
+
+test -n "${srcdir}" || srcdir=`dirname "$0"`
+test -n "${srcdir}" || srcdir="$(pwd)"
+
+olddir="$(pwd)"
+cd "$srcdir"
+
export ACLOCAL="aclocal -I m4"
intltoolize
autoreconf -i
-./configure "$@"
+
+cd "$olddir"
+"$srcdir/configure" "$@" | bash |
d_bash_24008 | ---
+++
@@ -10,6 +10,7 @@
fi
alias lsa="ls -a"
+alias lsd="find ./ -type d | sed -e 's/[^-][^\/]*\//--/g;s/--/ |-/'"
alias ..="cd .."
alias ...="cd ../.." | bash |
d_bash_24009 | ---
+++
@@ -12,8 +12,9 @@
gstreamer0.10-tools gstreamer0.10-plugins-base \
gstreamer0.10-plugins-good gstreamer0.10-plugins-bad \
python-gst0.10 python-opencv python-numpy \
+ moreutils python-jinja2 \
python-docutils python-nose pep8 pylint expect \
- gstreamer0.10-ffmpeg git moreutils v4l-... | bash |
d_bash_24010 | ---
+++
@@ -9,6 +9,8 @@
-e HUBOT_MUMBLE_PASSWORD=${HUBOT_MUMBLE_PASSWORD} \
-e HUBOT_WOW_API_KEY=${HUBOT_WOW_API_KEY} \
-e HUBOT_FORECAST_API_KEY=${HUBOT_FORECAST_API_KEY} \
+ -e HUBOT_GOOGLE_CSE_KEY=${HUBOT_GOOGLE_CSE_KEY} \
+ -e HUBOT_GOOGLE_CSE_ID=${HUBOT_GOOGLE_CSE_ID} \
-d \
-p 808... | bash |
d_bash_24011 | ---
+++
@@ -2,12 +2,15 @@
# Requires: xsltproc
cd "$(dirname "$0")"
-xsltproc parse-meta.xsl ../step1/*.xml > meta.txt
+# read file name from meta.txt
+file=$(grep '^File:' ../meta.txt | cut -d' ' -f2)
+
+xsltproc parse-meta.xsl "../step1/$file" > meta.txt
lines=$(wc -l meta.txt | cut -d' ' -f1)
start=$(expr $l... | bash |
d_bash_24012 | ---
+++
@@ -2,8 +2,8 @@
set -eux
-CHARTS=${PWD}/charts
-DIST=${PWD}/charts-dist
+CHARTS=./charts
+DIST=./charts-dist
helm repo add aptomi http://aptomi.io/charts
helm repo update | bash |
d_bash_24013 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8004,server=y,suspend=n"
+export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8008,server=y,suspend=n"
export PORT="8083"
# Restolino configuration
@@ -10,7 +10,7 @@
#Development: reloadable
mvn... | bash |
d_bash_24014 | ---
+++
@@ -6,6 +6,12 @@
docker run --rm cyberdojo/versioner:latest
echo CYBER_DOJO_WEB_SHA="$(image_sha)"
echo CYBER_DOJO_WEB_TAG="$(image_tag)"
+
+ echo CYBER_DOJO_NGINX_SHA=279fa4b86e4ba744af5cb3064c2597c20bdeedf6
+ echo CYBER_DOJO_NGINX_TAG=279fa4b
+
+ echo CYBER_DOJO_MODEL_SHA=9b7d3118482160458ed18f2... | bash |
d_bash_24015 | ---
+++
@@ -14,8 +14,8 @@
currentTag="$(git describe --tags)"
currentVersion="$(cat "$DIR/VERSION")"
currentSha="$(git describe --always --long --dirty --abbrev=8)"
-if [[ "$currentTag" == "$currentVersion" ]]; then
- echo -en "$currentTag"
+if [[ "$currentTag" == "v$currentVersion" ]]; then
+ echo -en "$current... | bash |
d_bash_24016 | ---
+++
@@ -20,7 +20,7 @@
--manual-test-mode \
$store_flags \
--text \
- -r \
+ --no-redirect \
--agree-dev-preview \
--agree-tos \
--email "" \ | bash |
d_bash_24017 | ---
+++
@@ -1,6 +1,6 @@
#! /usr/bin/env bash
-npm rebuild
+# npm rebuild
echo ">> Starting server..."
| bash |
d_bash_24018 | ---
+++
@@ -2,7 +2,30 @@
set -e
-until ls "/media/nook/My Files" > /dev/null 2>&1; do file -s /dev/sdc > /dev/null 2>&1 || true; sleep 0.1; done
+file -s /dev/sdc > /dev/null 2>&1 || true
+
+until ls "/media/nook/My Files" > /dev/null 2>&1; do
+
+ file -s /dev/sdc > /dev/null 2>&1 || true
+
+ rl -c 1 << END
+W... | bash |
d_bash_24019 | ---
+++
@@ -2,6 +2,6 @@
set -euo pipefail
echo "+++ :jest: Running Jest"
-npm run test --silent | cat # remove 🐈 when this patch (https://github.com/facebook/jest/pull/1864) lands in Jest
+npm run test --silent
echo "👌 Looks good to me!" | bash |
d_bash_24020 | ---
+++
@@ -15,7 +15,7 @@
--detach \
--publish 8080:8080 \
--link maven-artifact-notifier-postgres \
- --volume $DIR/../maven-artifact-notifier-webapp/target/maven-artifact-notifier.war:/usr/local/tomcat/webapps/maven-artifact-notifier.war \
+ --volume $DIR/../maven-artifact-n... | bash |
d_bash_24021 | ---
+++
@@ -11,5 +11,5 @@
rm -rf $HOME/.dotfiles
cd $HOME
-rm .vimrc* .zshrc* .tmux.conf .gitconfig* .aliases
+rm .vimrc* .zshrc* .tmux.conf .gitconfig*
rm -rf applications | bash |
d_bash_24022 | ---
+++
@@ -2,7 +2,8 @@
rm home/pi/hack-clock/run_clock.py
rm home/pi/hack-clock/blocks_clock.xml
-rm home/pi/hack-clock/backups/*
+rm home/pi/hack-clock/backups/run_clock.*
+rm home/pi/hack-clock/backups/blocks_clock.*
cd ..
echo "Compressing file..." | bash |
d_bash_24023 | ---
+++
@@ -8,7 +8,7 @@
commit_hash=$(cat $BUILD_TAG.yaml| shyaml get-value commits.0.commit_hash)
distro_hash=$(cat $BUILD_TAG.yaml| shyaml get-value commits.0.distro_hash)
-dlrnapi --url https://$DELOREAN_HOST/api-$RDO_VERSION \
+dlrnapi --url https://$DELOREAN_PUBLIC_HOST/api-$RDO_VERSION \
--username ciu... | bash |
d_bash_24024 | ---
+++
@@ -6,3 +6,4 @@
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export ENHANCD_FILTER=fzf
+export ENHANCD_DISABLE_DOT=1 | bash |
d_bash_24025 | ---
+++
@@ -19,9 +19,14 @@
fi
LAUNCH_FLAGS="-e"
+# Some terminals don't work properly when the launch command is wrapped in quotes, so this
+# is a hacky way to bypass them when necessary
+QUOTE_CHAR="\""
if [ "$LAUNCH_TERM" == "gnome-terminal" ]; then
LAUNCH_FLAGS="-- bash -c "
+elif [ "$LAUNCH_TERM" == ... | bash |
d_bash_24026 | ---
+++
@@ -19,5 +19,5 @@
fi
# Copy scripts
-cp $SRCPATH/src/scripts/* $IPATH/
-cp $SRCPATH/src/plotters/* $IPATH/
+cp $SRCPATH/src/scripts/*.py $IPATH/
+cp $SRCPATH/src/plotters/*.py $IPATH/ | bash |
d_bash_24027 | ---
+++
@@ -1,2 +1,4 @@
#!/bin/bash
+
+#GET API request storing the response in the clipboard"
curl -s --request GET localhost:8080/realclipper/api/v1.0/clipboard | xclip -selection clipboard | bash |
d_bash_24028 | ---
+++
@@ -19,4 +19,4 @@
ADD api_keys.py /chess/api_keys.py
EOF
-sudo docker build -t haldean/chess-frontend .
+sudo docker build --rm=true -t haldean/chess-frontend . | bash |
d_bash_24029 | ---
+++
@@ -19,6 +19,9 @@
# Clean up network interface persistence
rm -f /etc/udev/rules.d/70-persistent-net.rules;
+mkdir -p /etc/udev/rules.d/70-persistent-net.rules;
+rm -f /lib/udev/rules.d/75-persistent-net-generator.rules;
+rm -rf /dev/.udev/;
for ndev in `ls -1 /etc/sysconfig/network-scripts/ifcfg-*`; d... | bash |
d_bash_24030 | ---
+++
@@ -15,6 +15,6 @@
minikube_get_ip
say "Waiting for kubernetes to be available."
-while ! nc -w 2 -v ${minikube_ip} 8443 2>&1 > /dev/null; do
- sleep 1 # wait for 1/10 of the second before check again
+until (echo > /dev/tcp/${minikube_ip}/8443) &> /dev/null; do
+ sleep 1
done | bash |
d_bash_24031 | ---
+++
@@ -1,3 +1,11 @@
# ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ff00ff,bg=cyan,bold,underline"
ZSH_AUTOSUGGEST_STRATEGY=(completion history)
+
+bindkey "^Y" autosuggest-accept
+#bindkey autosuggest-execute
+#bindkey autosuggest-clear
+#bindkey autosuggest-fetch
+#bindkey autosuggest-disable
+#bindkey autosuggest-... | bash |
d_bash_24032 | ---
+++
@@ -15,7 +15,7 @@
cp ../libtool plaintext
../gfsplit -n 3 -m 5 plaintext cyphertext
-SHARES=$(ls cyphertext.* | wc -l)
+SHARES=$(ls cyphertext.* | wc -l | tr -d ' ')
if [ "$SHARES" != 5 ]; then
echo "Share count created was not five" | bash |
d_bash_24033 | ---
+++
@@ -3,10 +3,10 @@
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
- ./gradlew --stacktrace build
+ ./gradlew --stacktrace --info build
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'B... | bash |
d_bash_24034 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-wget https://releases.hashicorp.com/terraform/0.8.4/terraform_0.8.4_linux_amd64.zip -O /tmp/terraform.zip
+wget https://releases.hashicorp.com/terraform/0.8.6/terraform_0.8.6_linux_amd64.zip -O /tmp/terraform.zip
mkdir /tmp/terraform
unzip /tmp/terraform.zip -d /tmp/terraform... | bash |
d_bash_24035 | ---
+++
@@ -2,4 +2,5 @@
bitcoind_container_id="$(docker ps -q --filter label=com.docker.compose.project=btcpayservertests --filter label=com.docker.compose.service=bitcoind)"
address=$(docker exec -ti $bitcoind_container_id bitcoin-cli -datadir="/data" getnewaddress)
-docker exec -ti $bitcoind_container_id bitcoi... | bash |
d_bash_24036 | ---
+++
@@ -14,6 +14,7 @@
./manage.py geo_import helsinki --divisions
./manage.py geo_import espoo --divisions
./manage.py geo_import hsy --divisions
+ ./manage.py update_parking_areas
}
function stage_2 { | bash |
d_bash_24037 | ---
+++
@@ -33,7 +33,7 @@
}
get_ctrl() {
- [ -n "$1" ] && exit 1
+ [ -z "$1" ] && exit 1
echo $(fuel node --env $1 | awk '/controller/ {print $1;exit}')
}
| bash |
d_bash_24038 | ---
+++
@@ -2,7 +2,7 @@
set +e
-VERSION="release-branch.go1.12"
+VERSION="release-branch.go1.13"
export CGO_ENABLED=0
| bash |
d_bash_24039 | ---
+++
@@ -1,19 +1,30 @@
-#!/bin/sh
+#!/bin/bash
set -e
+
+cd "$(dirname "${BASH_SOURCE[0]}")"
module="BTree"
scheme="BTree-Mac"
version="$(grep VERSION_STRING version.xcconfig | sed 's/^VERSION_STRING = //' | sed 's/ *$//')"
-tag="v$version"
+case "$version" in
+*-dev)
+ # For dev versions, use the curre... | bash |
d_bash_24040 | ---
+++
@@ -3,8 +3,15 @@
# Fast fail the script on failures.
set -e
+# Verify Dart 2.0 strict mode compatibility.
+if [ "${TRAVIS_DART_VERSION}" = "dev" ]; then
+ echo "Verifying Dart 2.0 strict mode ..."
+ dart --preview-dart-2 test/all_tests.dart
+fi
+
# Verify the coverage of the tests.
if [ "${COVERALLS_T... | bash |
d_bash_24041 | ---
+++
@@ -10,7 +10,7 @@
mkdir /opt/lucee/config/server
mkdir /opt/lucee/config/web
mkdir /opt/lucee/$jar_folder
-curl -L -k -o /opt/lucee/lucee.zip $jar_url
+curl --location -o /opt/lucee/lucee.zip $jar_url
if [ -f "/opt/lucee/lucee.zip" ]; then
echo "Download Complete" | bash |
d_bash_24042 | ---
+++
@@ -13,7 +13,7 @@
sed -n '/^\// ! {
s%.*/ %%
- s% *%\
+ s%[ ][ ]*%\
%g
p
}' target/$cpu/test.s |
@@ -24,7 +24,7 @@
sed -n '/^data:/,$ {
/^data:/ ! {
s%.*: %%
- s% *%\
+ s%[ ][ ]*%\
%g
p
} | bash |
d_bash_24043 | ---
+++
@@ -1,27 +1,24 @@
#! /bin/sh
-export PATH=$PATH:.
+# Increase maximum opened files (required by box.phar):
+ulimit -Sn 2048
+
+export PATH="${PATH}:${PWD}"
# Download composer if it does not exist:
-composer=$(which composer.phar)
-if [ -z ${composer} ]
-then
- curl -sS https://getcomposer.org/installe... | bash |
d_bash_24044 | ---
+++
@@ -3,4 +3,4 @@
XCODE_THEME_PATH=$HOME/Library/Developer/Xcode/UserData/FontAndColorThemes/
mkdir -p $XCODE_THEME_PATH
-ln -s "$HOME/dev/dotfiles/install_scripts/resources/dpree.dvtcolortheme" $XCODE_THEME_PATH
+cp "$HOME/dev/dotfiles/install_scripts/resources/dpree.dvtcolortheme" $XCODE_THEME_PATH | bash |
d_bash_24045 | ---
+++
@@ -20,4 +20,5 @@
PID=$(docker inspect --format {{.State.Pid}} "$DOCKER_NAME")
fi
-sudo nsenter --target $PID --mount --uts --ipc --net --pid -- $REAL_SHELL
+sudo nsenter --target "$PID" --mount --uts --ipc --net --pid -- "$REAL_SHELL"
+ | bash |
d_bash_24046 | ---
+++
@@ -21,7 +21,7 @@
if [[ "$UPDATE_MIME_FILE" == "yes" ]]; then
(grep -E '^[[:space:]]*#' "$MIMETYPES_FILE";
- echo "$MIMETYPES" | sed 's,;,\n,g') > "$MIMETYPES_FILE".tmp
+ for t in $(echo "$MIMETYPES" | sed 's,;, ,g'); do echo $t; done) > "$MIMETYPES_FILE".tmp
mv "$MIMETYPES_FILE".tmp "$MIMETYPES... | bash |
d_bash_24047 | ---
+++
@@ -4,4 +4,4 @@
# It runs the appropriate commands depending on the task requested.
# Otherwise compile and check as normal
-qmake QMAKE_CXX=$CXX QMAKE_CC=$CC QMAKE_LINK=$CXX QMAKE_LINK_SHLIB=$CXX && make && ./unittest.sh
+qmake -qt=$QT QMAKE_CXX=$CXX QMAKE_CC=$CC QMAKE_LINK=$CXX QMAKE_LINK_SHLIB=$CXX && ... | bash |
d_bash_24048 | ---
+++
@@ -7,6 +7,6 @@
-DWRAP_PYTHON:BOOL=ON \
-DWRAP_RUBY:BOOL=OFF \
-DUSE_SYSTEM_ITK:BOOL=ON \
- /home/itk/src/SimpleITK/Superbuild > /dev/null
+ /home/itk/src/SimpleITK/SuperBuild > /dev/null
echo "Building SimpleITK"
make -j2 > /dev/null | bash |
d_bash_24049 | ---
+++
@@ -29,7 +29,7 @@
alias btw='nice'
alias obtw='nohup'
-alias nomz='ps -aux'
+alias nomz='ps aux'
alias nomnom='killall'
alias byes='exit' | bash |
d_bash_24050 | ---
+++
@@ -2,7 +2,7 @@
set -e
brew install check
-brew install --HEAD valgrind
+brew install valgrind
brew install graphviz
brew install python
brew install mbedtls | bash |
d_bash_24051 | ---
+++
@@ -6,10 +6,22 @@
__CMD='npm run coverage'
subpath_run_cmd ${__SRC_PATH} "$__CMD"
+echo "NG ROOT 20:"
+cd ${__SRC_PATH}DeepNgRoot/Tests/Frontend/coverage/*/
+head -20 coverage-final.json
+
+echo "NG TODO 20:"
+cd ${__SRC_PATH}DeepNgToDo/Tests/Frontend/coverage/*/
+head -20 coverage-final.json
+
### Merge... | bash |
d_bash_24052 | ---
+++
@@ -4,6 +4,7 @@
alias g='git status'
alias u='pbpaste | uglifyjs --mangle 2>/dev/null | pbcopy'
alias strip-meta='exiftool $@ "-All=" -overwrite_original'
+alias fuck-this-shit='git reset --hard HEAD; git clean -fd'
# Global function for full-screening the terminal window. | bash |
d_bash_24053 | ---
+++
@@ -15,6 +15,39 @@
fi
export PATH=$CONDA_PATH/bin:$PATH
-# Updating conda
-conda update -y conda setuptools
+function patch_conda() {
+ # Patch conda to prevent a users ~/.condarc from infecting the build
+ for F in $CONDA_PATH/lib/python3.*/site-packages/conda/common/configuration.py; do
+ if grep -q "#... | bash |
d_bash_24054 | ---
+++
@@ -20,4 +20,4 @@
fi
docker run -v `pwd`:/srv carto/${DOCKER} bash test/run_tests_docker.sh ${NODEJS_VERSION} && \
- docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v
+ docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v | bash |
d_bash_24055 | ---
+++
@@ -6,11 +6,16 @@
script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
. $script_dir/common.sh
-echo -e "${cyan}Building base proxy image, if necessary...${NC}"
-image_exists=$(docker images | grep "proxy-base-image") || true
+# use sha-1 digest of base image Dockerfle as its Docker image tag, so w... | bash |
d_bash_24056 | ---
+++
@@ -3,6 +3,8 @@
# use brew install lastpass-cli
lpass show "Shared-Flintstone"/ci-config --notes > config.yml
github_ssh_key=$(lpass show "Shared-Flintstone"/Github --notes)
+bluemix_cloudfoundry_username=$(lpass show "Shared-Flintstone"/"Bluemix Cloud Foundry User" --username)
+bluemix_cloudfoundry_passwo... | bash |
d_bash_24057 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.2%2B8/OpenJDK17U-jdk_x64_linux_hotspot_17.0.2_8.tar.gz"
;;
java18)
- echo "https://github.com/adoptium/temurin18-binaries/releases/download/jdk18-2022-02-15-13-13-beta/OpenJDK18-jdk_x64_linux_hotspot_20... | bash |
d_bash_24058 | ---
+++
@@ -16,6 +16,13 @@
# create dotfiles_old in homedir
echo "Creating $olddir for backup of any existing Dotfiles in ~"
mkdir -p "$olddir"
+sleep 1
+echo "...done"
+echo
+
+# clean out dotfiles_old
+echo "Cleaning out $olddir to hold fresh backups"
+find ~/Dotfiles_old/ -not -path ~/Dotfiles_old/ -delete
sle... | bash |
d_bash_24059 | ---
+++
@@ -4,10 +4,11 @@
echo 'Python install'
(
- sudo pip install --upgrade pip
- sudo pip install biopython
- sudo pip install pylint
- sudo pip install ./python
+ #virtualenv python/biotool_dev
+ #source python/biotool_dev/bin/activate
+ pip install --user biopython
+ pip install --user pylin... | bash |
d_bash_24060 | ---
+++
@@ -5,7 +5,7 @@
# Install Swift
mkdir ~/bin
-swiftURL="https://swift.org/builds/swift-3.0-preview-1/ubuntu1404/swift-3.0-preview-1/swift-3.0-preview-1-ubuntu14.04.tar.gz"
+swiftURL="https://swift.org/builds/swift-3.0-preview-4/ubuntu1510/swift-3.0-PREVIEW-4/swift-3.0-PREVIEW-4-ubuntu15.10.tar.gz"
swiftFi... | bash |
d_bash_24061 | ---
+++
@@ -1,12 +1,14 @@
#!/bin/zsh
+# For additional information on the options available, refer to
+# section EXPANSION OF PROMPT SEQUENCES of zshmisc(1)
eval PR_NO_COLOUR='${terminfo[sgr0]%}'
read -r -d '' PROMPT <<EOF
$PR_SET_CHARSET$PR_STITLE${(e)PR_TITLEBAR}\
[\
-$PR_GREEN%n@%m$PR_NO_COLOUR:\
-$PR_CYAN%... | bash |
d_bash_24062 | ---
+++
@@ -18,9 +18,9 @@
if [ -e "$2" -o "$2" = "-" ]; then
# file exists, or user specified stdin
- cat "$2" | base64 -d | openssl rsautl -decrypt -inkey "$1"
+ cat "$2" | base64 --decode | openssl rsautl -decrypt -inkey "$1"
else
# No such file and isn't stdin, assume it's base64
- echo "$2"... | bash |
d_bash_24063 | ---
+++
@@ -21,7 +21,8 @@
gperf \
autoconf-archive \
libevent-dev \
- libgoogle-glog-dev
+ libgoogle-glog-dev \
+ wget
git clone https://github.com/facebook/fbthrift || true
cd fbthrift/thrift | bash |
d_bash_24064 | ---
+++
@@ -3,9 +3,14 @@
function title {
WIDTH=80
PADDING=$(($WIDTH - ${#1}))
+ echo
printf "\033[44;97m%*s\n" $WIDTH
printf "%*s%*s\n" $(( $PADDING / 2 + ${#1} )) "$1" $(( $PADDING / 2 + $PADDING % 2 ))
printf "%*s\n\033[0;0m" $WIDTH
+ echo
}
title "DOTFILES Installation"
+
+title "Install OS ... | bash |
d_bash_24065 | ---
+++
@@ -16,7 +16,7 @@
fi
else
__process_msg "API timeout exceeded. Unable to connect to API."
- exit
+ exit 1
fi
api_response=$(curl -s -o /dev/null -w "%{http_code}" $api_url) || true | bash |
d_bash_24066 | ---
+++
@@ -1,33 +1,39 @@
-# If virtualenvwrapper.sh is not if available, there's nothing to do
-type virtualenvwrapper.sh &>/dev/null || return
+if ! type virtualenvwrapper.sh &>/dev/null; then
+ # virtualenvwrapper.sh is not available so just add some simple, but
+ # helpful aliases
+ for d in ~/.virtualen... | bash |
d_bash_24067 | ---
+++
@@ -1,7 +1,9 @@
#!/bin/bash
if [ "$PHPCS" == 1 ]; then
- ARGS="-p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP --ignore=vendor/ .";
+ vendor/bin/phpcs --config-set installed_paths vendor/cakephp/cakephp-codesniffer;
+
+ ARGS="-p --extensions=php --standard=CakePHP --igno... | bash |
d_bash_24068 | ---
+++
@@ -18,3 +18,6 @@
# Remove attack surface: Remove service avahi-daemon
sed -i "/avahi-daemon/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages
+
+# Speed up build: Remove NOOBS exports
+rm -f ${BASE_DIR}/stage2/EXPORT_NOOBS | bash |
d_bash_24069 | ---
+++
@@ -27,7 +27,7 @@
# Check goimports
echo "==> Checking that code complies with goimports requirements..."
-goimports_files=$(find . -name '*.go' | grep -v vendor | xargs goimports -l)
+goimports_files=$(find . -name '*.go' | grep -v vendor | xargs goimports -l -local github.com/terraform-providers/terrafo... | bash |
d_bash_24070 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/sh
-echo "cltv_expiry_delta=36\nhtlc_minimum_msat=0\nfee_base_msat=10\nfee_prop_millionths=100\nmin_final_cltv_expiry=9" > anno.conf
+echo "cltv_expiry_delta=36\nhtlc_minimum_msat=0\nfee_base_msat=10\nfee_prop_millionths=100" > anno.conf
echo "dust_limit_sat=546\nmax_htlc_value_in_fli... | bash |
d_bash_24071 | ---
+++
@@ -20,5 +20,8 @@
sed -i -e 's/zookeeper_hosts = .*$/zookeeper_hosts = '"$ZK_HOSTS"'/' $MIDO_CFG/$MIDO_CFG_FILE
+# Update cluster logs to report DEBUG
+sed -i 's/<root level="INFO">/<root level="DEBUG">/' logback.xml
+
# Run cluster
exec /sbin/init | bash |
d_bash_24072 | ---
+++
@@ -10,7 +10,7 @@
apm install file-icons
apm install fonts
#apm install project-plus
-apm install git-plus
+#apm install git-plus
apm install remote-edit
#apm install markdown-preview
#apm install markdown-preview-plus | bash |
d_bash_24073 | ---
+++
@@ -2,6 +2,6 @@
set -e
-./performDownload.sh
-./performBuild.sh
-./fixupSymlinks.sh
+./scripts/performDownload.sh
+./scripts/performBuild.sh
+./scripts/fixupSymlinks.sh | bash |
d_bash_24074 | ---
+++
@@ -27,7 +27,7 @@
export GORP_TEST_DIALECT=sqlite
go test $coveralls_testflags $GOBUILDFLAG $@ .
-if [ -z ${COVERALLS_TOKEN+x} ]
+if [ -z "$COVERALLS_TOKEN" ]
then
if [[ `go version` == *"1.4"* ]]
then | bash |
d_bash_24075 | ---
+++
@@ -2,26 +2,29 @@
main() {
if [ $TRAVIS_OS_NAME = linux ]; then
+ mkdir -p deps
+ cd deps
+ if [ ! -d "SDL2-2.0.4" ]; then
+ wget https://www.libsdl.org/release/SDL2-2.0.4.tar.gz -O sdl2.tar.gz
+ tar xzf sdl2.tar.gz
- mkdir -p deps
- cd deps
- wget https://www.lib... | bash |
d_bash_24076 | ---
+++
@@ -35,5 +35,5 @@
make "$@" -C ./depends/ V=1 NO_QT=1
./autogen.sh
-./configure --prefix="${PREFIX}" --with-gui=no "$LCOV_ARG" CXXFLAGS='-Wno-deprecated-declarations -Wno-placement-new -Wno-terminate -Werror -Og -g'
+./configure --prefix="${PREFIX}" --with-gui=no --enable-hardening "$LCOV_ARG" CXXFLAGS='-... | bash |
d_bash_24077 | ---
+++
@@ -1,4 +1,8 @@
#!/usr/bin/env bash
+
+if [ -z "$TRAVIS_PYTHON_VERSION" ]; then
+ echo "Build is not targetting a Python version, can't run CI" >&2; exit 1
+fi
set -euo pipefail
| bash |
d_bash_24078 | ---
+++
@@ -22,6 +22,7 @@
pip install scipy
pip install pandas
pip install xarray
+pip install loom
pip install scikit-learn
pip install matplotlib
pip install seaborn | bash |
d_bash_24079 | ---
+++
@@ -27,7 +27,14 @@
# Fixes for 1.5.4 #############
-# these are all moved to debian/copyright
+# moved to debian/copyright
+rm AUTHORS.txt
+rm LICENSE.txt
+rm lib/booki/site_static/js/tiny_mce/classes/firebug/FIREBUG.LICENSE
+rm lib/booki/site_static/js/tiny_mce/license.txt
+rm lib/booki/site_static/js/... | bash |
d_bash_24080 | ---
+++
@@ -1,21 +1,63 @@
#!/bin/bash
# This script runs the Jekyll server locally with GitHub Pages metadata properly disabled.
+
+SCRIPT_NAME="${0##*/}"
pages_dirpath='../gh-pages'
config_filepath="$pages_dirpath"'/_config.yml'
local_config_filepath="$pages_dirpath"'/_config_local.yml'
-config_entries_to... | bash |
d_bash_24081 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/bash
+cd ..
mkdir -p build
cd build
| bash |
d_bash_24082 | ---
+++
@@ -24,7 +24,7 @@
SED="sed -i.bak -r -e"
fi
-PROVIDER_URL="https:\/\/github.com\/terraform-providers\/terraform-provider-azurerm"
+PROVIDER_URL="https:\/\/github.com\/terraform-providers\/terraform-provider-azurerm\/issues"
$SED "s/GH-([0-9]+)/\[#\1\]\($PROVIDER_URL\/\1\)/g" -e 's/\[\[#(.+)([0-9])\)]... | bash |
d_bash_24083 | ---
+++
@@ -3,9 +3,11 @@
__un_named='0'
__catalogue="${1}"
-for __range in $(__get_range "${__catalogue}" ITEM); do
+__clean_pack < "${__catalogue}" > "/tmp/texpackcatalogue"
-__read_range "${__catalogue}" "${__range}" > "/tmp/readrangetmp"
+for __range in $(__get_range "/tmp/texpackcatalogue" ITEM); do
+
+__re... | bash |
d_bash_24084 | ---
+++
@@ -22,7 +22,7 @@
echo "test -r $rc && source $rc"
}
-dir=${0%/*/*}
+dir=${0%/*}/..
# Load `term.sh` first (see sh/loader.sh).
include $dir/sh/term.sh | bash |
d_bash_24085 | ---
+++
@@ -2,6 +2,7 @@
./nvidia-installer \
--accept-license \
+ --expert \
--no-distro-scripts \
--no-glvnd-egl-client \
--no-glvnd-glx-client \
@@ -10,6 +11,7 @@
--no-kernel-module-source \
--no-nvidia-modprobe \
--no-precompiled-interface \
+ --no-questions \
--no-... | bash |
d_bash_24086 | ---
+++
@@ -11,16 +11,31 @@
echo "[rDSN.Python] make"
make install
+cd ..
+
echo "[rDSN.Python] install python2.7"
sudo apt-get install -y python2.7
-echo "[rDSN.Python] install pip"
-sudo apt-get install -y python-pip
-cd ../src
-sudo python setup.py install
+
+
+echo "[rDSN.Python] Install virtualenv"
+sudo p... | bash |
d_bash_24087 | ---
+++
@@ -34,8 +34,8 @@
# set up testing configuration
export MERCURY_BUILD_CONFIGURATION="Debug"
export MERCURY_DASHBOARD_MODEL="Nightly"
-export MERCURY_DO_COVERAGE="true"
-export MERCURY_DO_MEMCHECK="true"
+export MERCURY_DO_COVERAGE="false"
+export MERCURY_DO_MEMCHECK="false"
# export variable needed for ... | bash |
d_bash_24088 | ---
+++
@@ -10,3 +10,9 @@
echo "You forgot the colon dumbass!";
fi
}
+
+# Build a gitignore file for project
+# See https://www.gitignore.io/
+function gi() {
+ curl -L -s "https://www.gitignore.io/api/$@";
+} | bash |
d_bash_24089 | ---
+++
@@ -6,8 +6,8 @@
client='./build/client'
-css=$client`cat $client/assets.json | jq -r '.index.css'`
-js=$client`cat $client/assets.json | jq -r '.index.js'`
+css=$client/../`cat $client/assets.json | jq -r '.index.css'`
+js=$client/../`cat $client/assets.json | jq -r '.index.js'`
css_size=`stat -f%z "$... | bash |
d_bash_24090 | ---
+++
@@ -1,12 +1,12 @@
#!/bin/sh
output=$(./test_GslVectorSpaceCtor 2>&1)
ret=$?
-if [ ret != 0 ]
+if [ $ret != 0 ]
then
exit 0
fi
-if [ ret == 0 ]
+if [ $ret == 0 ]
then
exit 1
fi | bash |
d_bash_24091 | ---
+++
@@ -1,6 +1,8 @@
#!/bin/bash
rustup update
-cargo install-update racer rusty-tags cargo-update mdbook fd-find exa tealdeer skim bat cargo-benchcmp tokei amethyst_tools
+cargo install-update racer rusty-tags cargo-update mdbook fd-find \
+ exa tealdeer skim bat cargo-benchcmp tokei amethyst_tools \
+ ... | bash |
d_bash_24092 | ---
+++
@@ -10,6 +10,10 @@
exit
fi
+if [[ -z "${MUSIKCUBE_BUILD_HOST_PORT}" ]]; then
+ MUSIKCUBE_BUILD_HOST_PORT=22
+fi
+
GLOB=${1}
if [[ -z "${GLOB}" ]]; then
@@ -20,5 +24,5 @@
echo "copying build artifacts to host..."
echo " from: ${GLOB}"
ls -al "${GLOB}"
-sshpass -p ${MUSIKCUBE_BUILD_HOST_PW} s... | bash |
d_bash_24093 | ---
+++
@@ -7,6 +7,7 @@
popd
# Wait for Meteor to come online, up to N seconds.
+set -x
for i in $(seq 90)
do
nc -z localhost 3000
@@ -29,4 +30,3 @@
# Now, actually run the tests
make action-run-tests
- | bash |
d_bash_24094 | ---
+++
@@ -1,10 +1,47 @@
#!/usr/bin/env bash
set -o errexit
-shopt -s extglob
+set -o errtrace
+set -o nounset
-for formula in ./!(nodenv-vars).rb; do
- brew audit --strict "$formula"
- brew install "$formula"
- brew test "$formula"
-done
+tap='travis-tmp/nodenv'
+formula=''
+
+main () {
+ tap_repo
+ trap... | bash |
d_bash_24095 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: buildconf.sh,v 1.9 2002-09-10 12:00:20 adam Exp $
+# $Id: buildconf.sh,v 1.10 2003-05-06 12:09:53 adam Exp $
set -x
dir=`aclocal --print-ac-dir`
if [ -f $dir/yaz.m4 ]; then
@@ -9,6 +9,7 @@
fi
libtoolize --force
automake -a
+automake -a
autoconf
if [ -f config.cach... | bash |
d_bash_24096 | ---
+++
@@ -2,12 +2,9 @@
set -eo pipefail
linux() {
- local url="https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.5/shellcheck"
- if which sudo >/dev/null 2>&1; then
- sudo curl -Lso /usr/bin/shellcheck "$url"
- else
- curl -Lso /usr/bin/shellcheck "$url"
- fi
+ sudo curl -Lso \
+ ... | bash |
d_bash_24097 | ---
+++
@@ -2,7 +2,7 @@
# Install Homebrew & brew-cask
-ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
+ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap caskroom/cask
brew install brew-cask
brew tap caskroom/versions | bash |
d_bash_24098 | ---
+++
@@ -1,24 +1,10 @@
-osis()
-{
- local n=0
- if [[ "$1" = "-n" ]]; then n=1;shift; fi
-
- # echo $OS|grep $1 -i >/dev/null
- uname -s |grep -i "$1" >/dev/null
-
- return $(( $n ^ $? ))
-}
-
-osis Darwin &&
-{
+OS=$(uname -s)
+if [ "$OS" == "Darwin" ]; then
wget -O mono.pkg http://download.mono-... | bash |
d_bash_24099 | ---
+++
@@ -4,7 +4,11 @@
[ -x "`which clang++`" ] && CXX=clang++
case $( uname -s ) in
Darwin) alias vwlibtool=glibtoolize
- AC_PATH=/opt/local/share;;
+ if [ -d /opt/local/share ]; then
+ AC_PATH="/opt/local/share"
+ else
+ AC_PATH="/usr/local/share"
+ fi;;
*) alias vwlibtool=libtoolize;;
esac
| bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.