document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_14900 | ---
+++
@@ -3,9 +3,11 @@
if [[ "$1" = "memsqld" ]]; then
memsql-ops start
-
+
+ #Eliminate Minimum Core Count Requirement
+ memsql-ops memsql-update-config --all --key minimum_core_count --value 0
+
if [[ "$IGNORE_MIN_REQUIREMENTS" = "1" ]]; then
- memsql-ops memsql-update-config --... | bash |
d_bash_14901 | ---
+++
@@ -29,10 +29,10 @@
dist/calicoctl profile $PROFILE rule show | grep "1 deny"
# Test that adding and removing a tag works.
-! (dist/calicoctl profile $PROFILE tag show | grep $TAG)
+(! dist/calicoctl profile $PROFILE tag show | grep $TAG)
dist/calicoctl profile $PROFILE tag add $TAG
dist/calicoctl profi... | bash |
d_bash_14902 | ---
+++
@@ -1,8 +1,8 @@
#!/bin/bash
-for TABLE in $(bq ls "${GCP_BIGQUERY_DATASET}_${PIPELINE_DATE}"); do
+for TABLE in $(bq ls "${GCP_BIGQUERY_DATASET}_${PIPELINE_DATE}" | awk '{print $1}' | tail +3 | xargs); do
echo "Removing table '${GCP_BIGQUERY_DATASET}.$TABLE'"
- bq rm -f "${GCP_BIGQUERY_DATASET}.$TA... | bash |
d_bash_14903 | ---
+++
@@ -14,7 +14,7 @@
set -e
## uncomment the line below for debugging this script!
-#set -x
+set -x
# parse command line args
for i in "$@"
@@ -34,7 +34,7 @@
esac
done
-## cleanup any nightly builds (.dmg, .jar, .zip, tar.bz2, .sha256 files) that are older than 2 weeks
+## cleanup any nightly build... | bash |
d_bash_14904 | ---
+++
@@ -26,4 +26,4 @@
#
# Run carthage command
-carthage "${carthage_command}" --"${platform}" iOS ${NO_USE_BINARIES} ${VERBOSE_MODE}
+carthage "${carthage_command}" --"${platform}" ${NO_USE_BINARIES} ${VERBOSE_MODE} | bash |
d_bash_14905 | ---
+++
@@ -6,7 +6,7 @@
CFG_PARAMS=
if [ $TRAVIS_OS_NAME == osx ]; then
- CFG_PARAMS="-DLLVM_DIR=/usr/local/opt/llvm@6/lib/cmake/llvm"
+ CFG_PARAMS="-DLLVM_DIR=/usr/local/opt/llvm/lib/cmake/llvm"
fi
if [ $TRAVIS_OS_NAME == linux ]; then | bash |
d_bash_14906 | ---
+++
@@ -1,5 +1,6 @@
android_sdk=$HOME/.local/opt/android_sdk
if [ -f $android_sdk/platform-tools/adb ]; then
- pathmunge $android_sdk/platform-tools after
+ export ANDROID_HOME=$android_sdk
+ pathmunge $ANDROID_HOME/platform-tools after
fi
unset android_dsk | bash |
d_bash_14907 | ---
+++
@@ -1,4 +1,4 @@
-VCAP_SERVICES_NEW_RELIC_LICENSE_KEY=$(echo "${VCAP_SERVICES-}" | jq -r '.[keys | select(.[] | contains("newrelic"))[0]].credentials.licenseKey')
+VCAP_SERVICES_NEW_RELIC_LICENSE_KEY=$(echo "${VCAP_SERVICES-}" | jq -r .newrelic[0].credentials.licenseKey)
if [ -z "${VCAP_SERVICES_NEW_RELIC_LIC... | bash |
d_bash_14908 | ---
+++
@@ -21,7 +21,7 @@
file=Dockerfile
echo "Building $package"
-cabal install --jobs --only-dependencies
+until cabal install --jobs --only-dependencies; do :; done
cabal configure --ghc-options "$ghc_options"
cabal build --jobs
| bash |
d_bash_14909 | ---
+++
@@ -7,3 +7,6 @@
wget $CHROME_URL -P $HOME/downloads
dpkg -i $HOME/downloads/$CHROME_PACKAGE_NAME
apt-get install -f
+
+# Remove custom frame
+jq -c '.browser.custom_chrome_frame = false' $CHROME_PREFERENCES_LOC > tmp.$$.json && mv tmp.$$.json $CHROME_PREFERENCES_LOC | bash |
d_bash_14910 | ---
+++
@@ -8,6 +8,9 @@
# Kill all running fuzzers
pkill afl-fuzz
+
+# Clean up the queues (many files, inodes)
+rm -rf findings/*/queue
mkdir -p $UNIT_TESTS_PATH
| bash |
d_bash_14911 | ---
+++
@@ -14,9 +14,10 @@
# install Torch7
# instructions from: http://torch.ch/docs/getting-started.html
-curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
git clone https://github.com/torch/distro.git $INSTALL_DIR --recursive
-cd $INSTALL_DIR; ./install.sh -b
+cd $INSTALL_DI... | bash |
d_bash_14912 | ---
+++
@@ -17,13 +17,8 @@
-a -f "/usr/src/app/export_city_index.sql"
}
-function cleanup_index_file() {
- sed -i '.original' 's/#//g' /usr/src/app/export/city_index.csv
-}
-
function main() {
export_city_index
- cleanup_index_file
}
main | bash |
d_bash_14913 | ---
+++
@@ -3,10 +3,16 @@
HOST_DATA_PATH=/resin-data/resin-supervisor
HOST_SOCKET=${HOST_DATA_PATH}/${SOCKET_NAME}
SUPERVISOR_SOCKET_PATH=/data
+COMMAND_SOCKET=${SUPERVISOR_SOCKET_PATH}/host
-echo "
- rm -f ${HOST_SOCKET}
- socat UNIX-LISTEN:${HOST_SOCKET} EXEC:'${HOST_DATA_PATH}/enter.sh ${1}',pty,setsid,setpgi... | bash |
d_bash_14914 | ---
+++
@@ -6,8 +6,8 @@
rm -f *.html
rm -f *.adoc
for f in *.md; do
- pandoc "${f}" -f gfm -t html -s | sed "s/\.md/.html/g" > "${f%.md}.html"
- pandoc "${f}" -f gfm -t asciidoc -s | sed "s/\.md/.adoc/g" > "${f%.md}.adoc"
+ pandoc "${f}" -f markdown_github -t html -s | sed "s/\.md/.html/g" > "${f%.md}.... | bash |
d_bash_14915 | ---
+++
@@ -16,8 +16,8 @@
curl -o /tmp/download https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
echo "1862f4c3d3907e59b04a757cfda0ea7aa9ef39274af99a784f5be843c80c6772 /tmp/download" | sha256sum -c
-
-tar -xzf /tmp/download -C /usr/local --strip-components=1
+mkdir /usr/local/go
+tar -xzf /tmp/dow... | bash |
d_bash_14916 | ---
+++
@@ -7,6 +7,10 @@
export SHELLOPTS
SLUGOWNER=${TRAVIS_REPO_SLUG%/*}
+if [[ "$SLUGOWNER" == "" ]]; then
+ SLUGOWNER=typetools
+fi
+
# jsr308-langtools
if [ -d ../jsr308-langtools ] ; then | bash |
d_bash_14917 | ---
+++
@@ -10,9 +10,9 @@
##
# First, check for root
if [ $(whoami) != "root" ]
- then
- echo "ERROR: Please run as root (using sudo or some other means).";
- exit;
+ then
+ echo "ERROR: Please run as root (using sudo or some other means).";
+ exit;
fi
@@ -24,24 +24,26 @@
if [ $pyth_loc ... | bash |
d_bash_14918 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
PYTHON="/usr/bin/python3"
-DEPENDANCIES="webcam python3-pip"
+DEPENDANCIES="webcam python3-pip libjpeg8-dev"
for pkg in ${DEPENDANCIES}; do
dpkg -l ${pkg} > /dev/null 2>&1
@@ -9,6 +9,10 @@
sudo apt-get install ${pkg}
fi
done
+
+if [ ! -f /usr/lib/lbjpeg.so ]; the... | bash |
d_bash_14919 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/bash
+
+# Switch to the stable-website branch
+git checkout stable-website
# Set the tmpdir
if [ -z "$TMPDIR" ]; then | bash |
d_bash_14920 | ---
+++
@@ -12,7 +12,7 @@
git checkout v4.0.0-alpha.5
# Link and import our custom variables
-sed -i -e '1i@import "customvars";\' scss/_variables.scss
+echo '@import "customvars";' >> scss/_custom.scss
ln -s ../../../sass/customvars.scss scss/
# Rebuild Bootstrap | bash |
d_bash_14921 | ---
+++
@@ -11,7 +11,7 @@
eval "$(ssh-agent -s)" #start the ssh agent
ssh-add .travis/id_rsa
- gulp cd:pushAndRun
+ gulp cd
elif [ $TRAVIS_BRANCH = "staging" ]; then
echo "Deploying to staging and testing"
| bash |
d_bash_14922 | ---
+++
@@ -38,7 +38,7 @@
chmod +x $buildFile
# Cleanup
- if test ! -d $tempFolder; then
+ if test -d $tempFolder; then
rm -rf $tempFolder
fi
fi | bash |
d_bash_14923 | ---
+++
@@ -15,4 +15,5 @@
src/React/Socket/:git@github.com:react-php/socket.git
src/React/Http/:git@github.com:react-php/http.git
src/React/Espresso/:git@github.com:react-php/espresso.git
+ src/React/Dns/:git@github.com:react-php/dns.git
" --heads=master | bash |
d_bash_14924 | ---
+++
@@ -11,6 +11,7 @@
export BOSH_CA_CERT=$(bosh2 int ${VARS_YAML} --path /director_ssl/ca)
bosh2 int ${VARS_YAML} --path /sl_sshkey/private_key > /tmp/private.key
export BOSH_ALL_PROXY=ssh+socks5://root@${DIRECTOR_NAME}:22?private-key=/tmp/private.key
+ chmod 600 /tmp/private.key
else
exp... | bash |
d_bash_14925 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/sh
export PYTHONUNBUFFERED=true
cd /vagrant/provisioning
-ansible-playbook containers.yml
+# NOTE: sudo is needed because inventory-lxc.py must be executed with root user.
+sudo ansible-playbook containers.yml | bash |
d_bash_14926 | ---
+++
@@ -16,7 +16,7 @@
$DIR/../. $1:$WEBROOT/
-rsync -alz --delete --stats --progress --exclude=".*" --exclude 'public/content' $DIR/../. $1:$WEBROOT/
+rsync -alz --delete --stats --progress --exclude=".env" --exclude=".git" --exclude 'public/content' $DIR/../. $1:$WEBROOT/
cd - > /dev/null 2>&1
| bash |
d_bash_14927 | ---
+++
@@ -18,11 +18,11 @@
elif [[ -f /etc/debian_version ]] ; then
cp /etc/debian_version $TMP/etc/debian_version
else
- fatal "$OS is not supported."
+ echo "$OS is not supported."
fi
;;
*)
- fatal "$OS is not supported."
+ echo "$OS is not supporte... | bash |
d_bash_14928 | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -ueo pipefail
#scriptDir=$(scala -e 'println(new java.io.File("'$(dirname $0)'").getAbsolutePath)')
-scriptDir=$(dirname $0)
+scriptDir=$(readlink -f $(dirname $0))
echo >&2 "Building JAR..."
(cd $scriptDir/target/scala-2.9.2/classes; zip -qr $scriptDir/ducttape.... | bash |
d_bash_14929 | ---
+++
@@ -14,8 +14,8 @@
mkdir -p local
# Install swift
-SWIFT_BRANCH=swift-3.0.2-release
-SWIFT_VERSION=swift-3.0.2-RELEASE
+SWIFT_BRANCH=swift-3.1.1-release
+SWIFT_VERSION=swift-3.1.1-RELEASE
SWIFT_PLATFORM=ubuntu14.04
SWIFT_URL=https://swift.org/builds/$SWIFT_BRANCH/$(echo "$SWIFT_PLATFORM" | tr -d .)/$SWIF... | bash |
d_bash_14930 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
dir=${1}
-refspec=${2:-257a5bab4cf4eb4153a4e96963ca5ffe9f2eaa59} # projectriff/fats master as of 2018-12-13
+refspec=${2:-e07e958748330d96e8ca5f4e9a29d176374492ac} # projectriff/fats master as of 2018-12-13
if [ ! -f $dir ]; then
mkdir -p $dir | bash |
d_bash_14931 | ---
+++
@@ -13,5 +13,7 @@
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_IDENTITY_API_VERSION=3
+
+alias openstack=/usr/bin/openstack
" > /root/keystonerc_admin_v3
| bash |
d_bash_14932 | ---
+++
@@ -9,7 +9,7 @@
echo ""
echo ">>> Running configlet..."
bin/fetch-configlet
-bin/configlet .
+bin/configlet lint .
pushd exercises
echo "" | bash |
d_bash_14933 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash -ex
-export LANG=en_US.UTF-8 LC_COLLATE=C LC_CTYPE=C
-./wiktionary-edges.awk enwiktionary.tsv |
+export LANG=en_US.UTF-8 LC_COLLATE=C
+LC_CTYPE=C ./wiktionary-edges.awk enwiktionary.tsv |
sed -e 's/ {2,}//g' |
sort --parallel=$(nproc) -t $'\t' -S1G -k1 -k2 |
../count.awk > edge... | bash |
d_bash_14934 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/sh
-lein trampoline run -m clojure.main script/histogram.clj
+lein trampoline run -m clojure.main script/histogram-command-line.clj | bash |
d_bash_14935 | ---
+++
@@ -14,3 +14,6 @@
# Open all generated files in Sublime
alias rg="$DOTFILES_ROOT/ruby/rails_g_and_open.rb"
+
+# Start foreman using Procfile.personal
+alias pfore="foreman start -f Procfile.personal" | bash |
d_bash_14936 | ---
+++
@@ -4,7 +4,7 @@
brew outdated
echo '## gem (bundler)'
-bundle outdated
+bundle outdated --strict
echo '## pip'
pip3 list --outdated | bash |
d_bash_14937 | ---
+++
@@ -1,9 +1,10 @@
#!/bin/bash
# This is the main build script.
-# Make sure to only run this from the project root!
set -euo pipefail
+
+cd "$(dirname "$0")"
mkdir -p build
| bash |
d_bash_14938 | ---
+++
@@ -1,17 +1,30 @@
#!/bin/sh
# This script executes GTest tests in a controlled manner.
+# Setting VERBOSE_TESTS lets output go to stderr instead of a log.
test_prg="$1"
test_name=`basename "$test_prg"`
+rc=0
-"$test_prg" \
- --gtest_output=xml:"${test_name}_details.xml" \
- 2> "${test_name}_st... | bash |
d_bash_14939 | ---
+++
@@ -1,4 +1,8 @@
#!/usr/bin/env bash
echo "Configuring brew autoupdate..."
-brew autoupdate --upgrade --cleanup --enable-notificationn --start
+if brew autoupdate --status | grep -v 'Autoupdate is installed and running.' > /dev/null; then
+ brew autoupdate --upgrade --cleanup --enable-notification --start... | bash |
d_bash_14940 | ---
+++
@@ -11,6 +11,7 @@
brew cask install flux
brew cask install google-chrome
brew cask install iterm2
+brew cask install java
brew cask install kindle
brew cask install knock
brew cask install sizeup | bash |
d_bash_14941 | ---
+++
@@ -4,17 +4,18 @@
sudo su
# update before provisioning
-apt-get update -y
+apt-get -y update
# install essentials
apt-get install -y python-software-properties
apt-get install -y build-essential git nano curl mc
# update after essentials (especially python-software-properties)
-apt-get update -y
+... | bash |
d_bash_14942 | ---
+++
@@ -2,9 +2,10 @@
#
# Copy ALL env variables to gradle properties file
#
-# Useful to setup easy any CI service.
+# You may want another output file then use PROPERTIES_FILE_PATH variable for that
#
-# You may want another output file then use PROPERTIES_FILE_PATH variable for that
+# Note: you can use S... | bash |
d_bash_14943 | ---
+++
@@ -5,8 +5,8 @@
### Install Miniconda
MINICONDA=Miniconda-latest-Linux-x86_64.sh
-MINICONDA_MD5=$(curl -s http://repo.continuum.io/miniconda/ | grep -A3 $MINICONDA | sed -n '4p' | sed -n 's/ *<td>\(.*\)<\/td> */\1/p')
-wget http://repo.continuum.io/miniconda/$MINICONDA
+MINICONDA_MD5=$(curl -s https://rep... | bash |
d_bash_14944 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
KEY_PATH=".likelines_secret_key"
-echo "[KEY] Generating seret key..."
+echo "[KEY] Generating secret key..."
if [ -f "$KEY_PATH" ]; then
echo "[KEY] Old key found in: $KEY_PATH" | bash |
d_bash_14945 | ---
+++
@@ -7,7 +7,3 @@
./install_dependencies_linux.sh
./compile_libraries_linux.sh --with-python-version 3.5 boost ref_blas_lapack umfpack idas superlu superlu_mt bonmin nlopt # compile everything except Trilinos and deal.II
./compile_linux.sh --with-python-version 3.5 dae superlu superlu_mt ipopt bonmin nlopt ... | bash |
d_bash_14946 | ---
+++
@@ -3,7 +3,11 @@
hash brew || bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
-brew install ag coreutils ispell findutils icdiff rlwrap go jq
+if [ -f /opt/homebrew/bin/brew ]; then
+ eval "$(/opt/homebrew/bin/brew shellenv)"
+fi
+
+brew install ag coreutil... | bash |
d_bash_14947 | ---
+++
@@ -10,7 +10,7 @@
WATSON=$(egrep -i "$KEYWORDS_EMMAWATSON" "$NEWPAGES")
- categorize "WATSON" "Watson"
+ categorize "WATSON" "Emma Watson"
debug_end "Emma Watson"
| bash |
d_bash_14948 | ---
+++
@@ -1,6 +1,4 @@
#!/bin/bash
-
-sbt compile
cd docker-kerberos
| bash |
d_bash_14949 | ---
+++
@@ -4,4 +4,4 @@
source env/bin/activate
source production-env.sh
-/var/www/pmg-cms/env/bin/newrelic-admin run-program /var/www/pmg-cms/env/bin/gunicorn -w 4 backend.app:app --bind 127.0.0.1:5005 --timeout 30 --log-file -
+/var/www/pmg-cms/env/bin/newrelic-admin run-program /var/www/pmg-cms/env/bin/gunicor... | bash |
d_bash_14950 | ---
+++
@@ -38,17 +38,6 @@
exit 1
fi
- cd A
-
- bc=$(git branch | wc -l)
- if [ $bc -gt 1 ]; then
- err "Should only have one branch"
- git branch
- exit 1
- fi
-
- cd ..
-
exit_remote
}
| bash |
d_bash_14951 | ---
+++
@@ -18,7 +18,7 @@
alias lt='ls -lt --color=tty'
alias lrt='ls -lrt --color=tty'
-alias ltt='last | tac | tail -n20'
+alias ltt='last -a | tac | tail -n20'
alias pe='ps -eFlT'
alias px='ps aux'
alias nst='netstat --all --tcp --udp --numeric' | bash |
d_bash_14952 | ---
+++
@@ -14,5 +14,5 @@
fi
TMPVCF=$OUTVCF.temp
-zcat $INVCF | awk '$5!="<*:DEL>" && $5!="*"' | bgzip -c > $TMPVCF \
+${BCFTOOLS} view -e '%TYPE="other"' $INVCF --output-type z --output-file $TMPVCF \
&& ${TABIX} -p vcf -f $TMPVCF && mv $TMPVCF.tbi $OUTVCF.tbi && mv $TMPVCF $OUTVCF | bash |
d_bash_14953 | ---
+++
@@ -3,7 +3,6 @@
node_modules/.bin/uglifyjs \
src/javascript/libs/imageblob-loader.js \
src/javascript/app.js \
- src/javascript/ui.js \
src/javascript/services/store.js \
src/javascript/services/share.js \
src/javascript/services/imageloader.js \ | bash |
d_bash_14954 | ---
+++
@@ -13,4 +13,4 @@
# Minimum sizes for full size vm images -- needed for update.
MIN_VDISK_SIZE_FULL=6072
-MIN_STATEFUL_FS_SIZE_FULL=2048
+MIN_STATEFUL_FS_SIZE_FULL=3072 | bash |
d_bash_14955 | ---
+++
@@ -1,4 +1,4 @@
-echo no | android create avd --force -n test -t "$1" --abi armeabi-v7a
+echo no | android create avd --force -n test -t "$1" --abi armeabi-v7a-"$1"
emulator -avd test -no-audio -no-window &
android-wait-for-emulator
adb shell input keyevent 82 & | bash |
d_bash_14956 | ---
+++
@@ -26,6 +26,7 @@
aws-cli
wdiff
fzf
+ fasd
rbenv
docker
composer | bash |
d_bash_14957 | ---
+++
@@ -9,7 +9,7 @@
GO_VERSION=($(go version))
-if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.2|go1.3|go1.4') ]]; then
+if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.2|go1.3|go1.4|go1.5') ]]; then
echo "Unknown go version '${GO_VERSION}', skipping gofmt."
exit 0
fi | bash |
d_bash_14958 | ---
+++
@@ -26,6 +26,6 @@
if [ $PYTHON \< "3.4" ]; then $CONDA_INSTALL enum34; fi
# Install dependencies for building the docs
# Note: sphinx 1.5.4 has a bug
-$CONDA_INSTALL sphinx=1.4 sphinx_rtd_theme pygments
+$CONDA_INSTALL sphinx=1.5.1 sphinx_rtd_theme pygments
# Install dependencies for code coverage (codeco... | bash |
d_bash_14959 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh -eu
-PORT="55555"
+PORT="50000"
if [ $# -eq 1 ]; then
PORT="$1"
fi | bash |
d_bash_14960 | ---
+++
@@ -2,6 +2,9 @@
# Does a full cross build of all scala/akka versions.
DEFAULT_COMMAND="+publishSigned; sonatypeBundleRelease"
+
+# Assumes osx
+export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
VERSION="$(git describe --tags)"
echo "Version: $VERSION" | bash |
d_bash_14961 | ---
+++
@@ -1,13 +1,10 @@
#!/bin/bash
-
-pushd ..
-exp stop
-popd
pod install
pushd ..
# resolve possible packager conflicts introduced by pod install
exp prepare-detached-build --platform ios --skipXcodeConfig 1
-exp r -c
popd
+
+echo "Finished installing and cleaning up dependencies. Be sure and serve or ... | bash |
d_bash_14962 | ---
+++
@@ -1,2 +1,4 @@
+#!/bin/bash
+# The 'courtesy loader' is required for Python to run these directly
find ~/.arlobot/rosmaps/ -name *.yaml -type f -printf "%f\n"|sed -e "s/.yaml//"
| bash |
d_bash_14963 | ---
+++
@@ -1,3 +1,6 @@
# Depends on _env.sh variables.
export PATH="./bin:$GOBIN:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
+
+# Go binaries (eg, godoc)
+export PATH=$PATH:/usr/local/opt/go/libexec/bin | bash |
d_bash_14964 | ---
+++
@@ -1,9 +1,11 @@
#!/bin/sh -x
+
+ETCD_VER=0.4.2
ETCD_DIR=/tmp/etcd
ETCD_ZIP=/tmp/etcd.tar.gz
-ETCD_URL=https://github.com/coreos/etcd/releases/download/v0.3.0/etcd-v0.3.0-linux-amd64.tar.gz
+ETCD_URL=https://github.com/coreos/etcd/releases/download/v${ETCD_VER}/etcd-v${ETCD_VER}-linux-amd64.tar.gz
e... | bash |
d_bash_14965 | ---
+++
@@ -4,7 +4,7 @@
export ENV_FILE=/etc/environment
-sed -i -e 's/^CU_DATABASE_USER_'$4'=.*$/CU_DATABASE_USER_'$4'="'$1'/g' $ENV_FILE
-sed -i -e 's/^CU_DATABASE_PASSWORD_'$4'=.*$/CU_DATABASE_PASSWORD_'$4'="'$2'/g' $ENV_FILE
-sed -i -e 's/^CU_DATABASE_DNS_'$4'=.*$/CU_DATABASE_DNS_'$4'="'$3'/g' $ENV_FILE
+sed... | bash |
d_bash_14966 | ---
+++
@@ -4,12 +4,5 @@
./configure --prefix=${PREFIX} --disable-dependency-tracking --enable-only64bit
-SYSLWR=`uname | tr '[:upper:]' '[:lower:]'`
-
-mv ${SRC_DIR}/coregrind/link_tool_exe_${SYSLWR} ${SRC_DIR}/coregrind/link_tool_exe_${SYSLWR}_orig
-echo '#!/usr/bin/env perl' >> ${SRC_DIR}/coregrind/link_tool_... | bash |
d_bash_14967 | ---
+++
@@ -23,7 +23,7 @@
export GIT_EDITOR="nano"
export VISUAL="gedit"
-export LANG="en_GB.UTF-8"
+export LANG="en_US.UTF-8"
export EDITOR VISUAL GIT_EDITOR
# XDG Settings | bash |
d_bash_14968 | ---
+++
@@ -4,8 +4,7 @@
# Avoid the tempation to skip the boot animation. CI scripts use that to figure out when the device is ready.
# The emulator is started in the background. This is to avoid holding up the build until we need it.
-android-update-sdk --components=sys-img-v7a-android-21 --accept-licenses='andr... | bash |
d_bash_14969 | ---
+++
@@ -25,13 +25,11 @@
docker inspect -f '
## Docker Metadata
-Image ID: `{{ .Id }}`
-Created: `{{ .Created }}`
-Arch: `{{ .Os }}`/`{{ .Architecture }}`
-{{ if .Config.Entrypoint }}Entrypoint: `{{ json .Config.Entrypoint }}`
-{{ end }}{{ if .Config.Cmd }}Command: `{{ json .Config.Cmd }}`
-{{ end }}
-Environm... | bash |
d_bash_14970 | ---
+++
@@ -26,17 +26,34 @@
exit 0
fi
-printenv | grep '_API_KEY' | cut --delimiter = --fields 1 | while read envvar_name; do
- delivery_target_name="$(echo $envvar_name | awk -F '_API_KEY' '{print $1; print $3}')"
+get_configured_registries() {
+ # Read docker registry configuration from set of 3 envir... | bash |
d_bash_14971 | ---
+++
@@ -8,5 +8,3 @@
kubectl apply -f https://raw.githubusercontent.com/contiv/vpp/master/k8s/contiv-vpp.yaml
kubectl get pods --all-namespaces
kubectl taint nodes --all node-role.kubernetes.io/master-
-
- | bash |
d_bash_14972 | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Install the latest version of yarn
-curl -o- -L https://yarnpkg.com/install.sh | bash
+sudo curl -o- -L https://yarnpkg.com/install.sh | bash
# install composer if not already installed
if [ ! -f /usr/local/bin/composer ] | bash |
d_bash_14973 | ---
+++
@@ -9,6 +9,10 @@
ln -s "$DOTFILES/.tmux.conf" $HOME/
ln -s "$DOTFILES/.ssh_config" $HOME/.ssh/config
+# Vim configs
+ln -s "$DOTFILES/.vimrc" $HOME/
+ln -s "$DOTFILES/.gvimrc" $HOME/
+
# Fish config
ln -s "$DOTFILES/fish/config.fish.$OS" $HOME/.config/fish/config.fish
ln -s "$DOTFILES/fish/functions" $... | bash |
d_bash_14974 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
if [ -d regression/.git ]; then
- if [ -e regression/README.md ] && [ `head -1 regression/README.md` == "cclib-data" ]; then
+ if [ -e regression/README.md ] && [ $(head -1 regression/README.md | cut -d " " -f 2) == "cclib-data" ]; then
echo "Updating regression ... | bash |
d_bash_14975 | ---
+++
@@ -8,4 +8,6 @@
autologin-user=ubuntu
" > /etc/lightdm/lightdm.conf.d/autologin.conf
+echo "ubuntu:ubuntu" | chpasswd
+
systemctl reboot | bash |
d_bash_14976 | ---
+++
@@ -1,10 +1,10 @@
# Build libSetSerial.so
-gcc -shared -fPIC SetSerial.c -o libSetSerial.so -v
+gcc -m32 -shared -fPIC SetSerial.c -o libSetSerial.so -v
# Create path if needed
-mkdir -p ../../../MatterControl/bin/Debug/
-mkdir -p ../../../MatterControl/bin/Release/
+mkdir -p ../../../../bin/Debug/
+mkdir... | bash |
d_bash_14977 | ---
+++
@@ -14,6 +14,10 @@
cp /tmp/functions /mnt/sysimage/etc/confluent/
. /tmp/functions
cp /tmp/cryptboot /mnt/sysimage/tmp/
+echo Port 2222 >> /etc/ssh/sshd_config.anaconda
+echo Match LocalPort 22 >> /etc/ssh/sshd_config.anaconda
+echo " ChrootDirectory /mnt/sysimage" >> /etc/ssh/sshd_config.anaconda
+kill... | bash |
d_bash_14978 | ---
+++
@@ -24,7 +24,7 @@
## Install enrique
cd /home/vagrant/enrique
+sudo python setup.py develop
sudo pip install -r requirements.txt
-sudo python setup.py develop
### Others required by enrique
sudo apt-get install git -y | bash |
d_bash_14979 | ---
+++
@@ -1,4 +1,13 @@
#!/bin/bash
+
+# fix autoconf
+sed -i.bak -e '1 s|^.*$|#!/usr/bin/env perl|g' $PREFIX/bin/autoheader \
+ $PREFIX/bin/autom4te $PREFIX/bin/autoreconf $PREFIX/bin/autoscan \
+ $PREFIX/bin/autoupdate $PREFIX/bin/ifnames
+# fix automake
+sed -i.bak -e '1 s|^.*$|#!/usr/bin/env perl|g' $PREF... | bash |
d_bash_14980 | ---
+++
@@ -16,4 +16,7 @@
BUILD_VERSION=$(/usr/libexec/PlistBuddy -c "print CFBundleVersion" "${INFO_PLIST_PATH}")
DATE="$(date +%Y%m%d%H%M)"
+#remove old ipas
+rm -rf ${WORKSPACE}/build/*.ipa
+
xcrun -sdk iphoneos PackageApplication -v ${WORKSPACE}/build/Release-iphoneos/mihua.app -o ${WORKSPACE}/build/mihua_V$... | bash |
d_bash_14981 | ---
+++
@@ -7,7 +7,7 @@
[Service]
User=`whoami`
-ExecStart=`which gunicorn` --certfile=fullchain.pem --keyfile=privkey.pem glitch.server:app
+ExecStart=`which gunicorn` --certfile=fullchain.pem --keyfile=privkey.pem glitch.server:app --workers=4
WorkingDirectory=`pwd`
"|sudo tee /etc/systemd/system/glitch.servi... | bash |
d_bash_14982 | ---
+++
@@ -2,17 +2,19 @@
LLVM_PATH=`llvm-config --src-root`
LIBOBJC_PATH=`pwd`
if [ x$LLVM_PATH != x ] ; then
- cd $LLVM_PATH
- cd lib/Transforms
- if [ ! -d GNURuntime ] ; then
- mkdir GNURuntime
+ if [ -d $LLVM_PATH ] ; then
+ cd $LLVM_PATH
+ cd lib/Transforms
+ if [ ! -d GNURuntime ] ; then
+ mkdir GNURu... | bash |
d_bash_14983 | ---
+++
@@ -9,6 +9,6 @@
# Perform the bumpversion, then perform the post-processing on the CHANGELOG.md
# to update the version comparison list.
bump2version "${1}"
-URL="https://github.com/SethMMorton/natsort/compare"
+URL="https://github.com/SethMMorton/fastnumbers/compare"
sed -E "s|(<!---Comparison links-->)|... | bash |
d_bash_14984 | ---
+++
@@ -19,28 +19,23 @@
python3 server.py &
}
-function run_go_client {
+function run_clients {
echo '## Go client' && sleep 10
cd /app/go
time ./go -num 100000
-}
-function run_py_client {
echo '## Py client' && sleep 10
cd /app/py
time python3 client.py 100000
}
-
# Setup
bash /ap... | bash |
d_bash_14985 | ---
+++
@@ -24,7 +24,7 @@
snapshot_repo="https://repository.hazelcast.com/snapshot"
release_repo="https://repository.hazelcast.com/release"
- prepare_using_maven "hazelcast-enterprise-all" "$version" ${release_repo} ${snapshot_repo}
+ prepare_using_maven "hazelcast-enterprise" "$vers... | bash |
d_bash_14986 | ---
+++
@@ -1,3 +1,18 @@
+# Use `hub` as our git wrapper:
+# http://defunkt.github.com/hub/
+#
+# I use JRuby substantially, and we want to make sure hub is run using MRI
+# regardless of which Ruby you're using or else the `git status` in your prompt
+# will take seven thousand seconds to run `ls`.
+#
+# I'm hardc... | bash |
d_bash_14987 | ---
+++
@@ -5,8 +5,10 @@
# Declare libraries to install
declare -A libraries
-libraries["ATP"]="www.evilinnocence.com:/var/git/ATP.git"
-libraries["ATPCore"]="www.evilinnocence.com:/var/git/atp-modules/ATPCore.git"
+libraries["ATP"]="https://github.com/DaemonAlchemist/atp-base.git"
+libraries["ATPAdmin"]="https:/... | bash |
d_bash_14988 | ---
+++
@@ -19,11 +19,11 @@
if [ ! -z "${TRAVIS_TAG}" ]; then
echo "Will release application to iTunes Connect";
fastlane release;
- let OPERATION_RESULT="$?";
+ let OPERATION_RESULT="$?";
elif [ "$TRAVIS_PULL_REQUEST" = 'false' ] && [ "$TRAVIS_BRANCH" = 'master' ]; then
echo ... | bash |
d_bash_14989 | ---
+++
@@ -3,6 +3,7 @@
export METASHAREDIR=$(dirname "$0")
export SOLR_ROOT=$(cd "$METASHAREDIR/../solr" ; pwd)
export SOLR_LOG=$SOLR_ROOT/solr.log
+export SOLR_PORT=8983
export SOLR_STOP_PORT=8079
export SOLR_STOP_KEY=stopkey
@@ -22,7 +23,7 @@
# Actually start solr
(cd "$SOLR_ROOT"
-nohup java -DSTOP.POR... | bash |
d_bash_14990 | ---
+++
@@ -38,6 +38,6 @@
fi
if [[ "$INFINITE_SLEEP" == "true" ]]; then
- cat
+ tail -f /dev/null
fi
| bash |
d_bash_14991 | ---
+++
@@ -6,5 +6,9 @@
brew cask install sourcetree
brew install wget
+# install MacVim
+unzip software/MacVim.zip
+cp -r MacVim.app /Applications
+
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
| bash |
d_bash_14992 | ---
+++
@@ -1,7 +1,12 @@
#!/bin/bash
+echo "================= Starting OVS =================="
service openvswitch-switch start
-cd /tests
+
+cd /faucet-src/tests
+
+echo "=========== Running faucet unit tests ==========="
time python -m unittest -v faucet_mininet_test
-echo "======================================... | bash |
d_bash_14993 | ---
+++
@@ -16,8 +16,8 @@
# Download and install puppet
mkdir setup-temp
cd setup-temp
-wget https://apt.puppetlabs.com/puppetlabs-release-pc1-`lsb_release -c -s`.deb || exit 1
-dpkg -i puppetlabs-release-pc1-`lsb_release -c -s`.deb || exit 1
+wget https://apt.puppetlabs.com/puppetlabs-release-`lsb_release -c -s`.... | bash |
d_bash_14994 | ---
+++
@@ -4,3 +4,6 @@
brew cask install alfred
brew cask update alfred
+
+# Link brew cask apps to Alfred
+brew cask alfred link | bash |
d_bash_14995 | ---
+++
@@ -1,26 +1,31 @@
-# Based on ssh-agent code
-
local GPG_ENV=$HOME/.gnupg/gpg-agent.env
-function start_agent {
- /usr/bin/env gpg-agent --daemon --enable-ssh-support --write-env-file ${GPG_ENV} > /dev/null
- chmod 600 ${GPG_ENV}
- . ${GPG_ENV} > /dev/null
+function start_agent_nossh {
+ eval $(/usr/... | bash |
d_bash_14996 | ---
+++
@@ -8,8 +8,13 @@
docker build -t kommunalcrowd/node-dev:0.1 /srv/docker/nodejs
# run docker container
-docker run -d -t -p 3000:3000 -v /srv/source:/src --name="nodejs-dev" kommunalcrowd/node-dev:0.1
+docker run -d -t -p 1337:1337 -v /srv/source:/src --name="nodejs-dev" kommunalcrowd/node-dev:0.1
-alias... | bash |
d_bash_14997 | ---
+++
@@ -6,4 +6,6 @@
iconv -f utf-8 -t ascii//TRANSLIT $BASEDIR/dist/main.js > $BASEDIR/dist/main2.js
mv -f $BASEDIR/dist/main2.js $BASEDIR/dist/main.js
+
+echo "[*] Bettercap needs sudo privileges. Please enter your user password."
sudo bettercap -T ${SOURCEIP} --proxy --proxy-module injectjs --js-file $BASE... | bash |
d_bash_14998 | ---
+++
@@ -37,7 +37,7 @@
fi
if test $errors = no
then
- arch cr $2 $OFILES
+ ${ASAR-arch} cr $2 $OFILES
rm $OFILES
else
echo $2 not made, due to compilation errors | bash |
d_bash_14999 | ---
+++
@@ -2,7 +2,17 @@
#Copyright 2014 Brendan Perrine
# This is a simple bash script that shows the offset to UTC from your current time zone
-
-
-echo " $(date +%H) - $(date -u +%H) "|bc
-
+
+#note that can't have same day on different years as are not that many time zones
+if [ $(date +%j) -eq $(date ... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.