document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_16300 | ---
+++
@@ -4,7 +4,7 @@
rev=`git rev-list --count HEAD`
echo "namespace HCEngine" > $out
echo "{" >> $out
-echo " class Versionning" >> $out
+echo " static class Versionning" >> $out
echo " {" >> $out
echo " public const string Value = \"$api.$rev.*\";" >> $out
echo " }" >> $out | bash |
d_bash_16301 | ---
+++
@@ -16,8 +16,6 @@
# Plugin that generates completion functions automatically from getopt-style help texts.
zgen load RobSis/zsh-completion-generator
# Set up easy auto updating, both of zgen and the bundles loaded in your configuration.
- set ZGEN_PLUGIN_UPDATE_DAYS=30
- set ZGEN_SYSTEM_U... | bash |
d_bash_16302 | ---
+++
@@ -1,6 +1,16 @@
#!/bin/bash
set -e
+
+# Install the .NET Core 2.2 runtime, as we use ASP.NET Core 2.2 at the moment.
+# In the future we'll update to ASP.NET Core 3.0, we can use just the .NET Core 3.0 SDK.
+
+wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packa... | bash |
d_bash_16303 | ---
+++
@@ -9,3 +9,4 @@
alias compile='mvn clean install -DskipTests=true'
alias mtree='mvn dependency:tree'
+alias mvnd='mvn dependency:resolve' | bash |
d_bash_16304 | ---
+++
@@ -11,7 +11,6 @@
alias html-day-options='html-option-list -w 2 {1..31} | pbcopy';
alias apl='apl --noColor'
alias md5='md5 -q'
-alias php='/Applications/MAMP/bin/php/php5.6.7/bin/php'
# Global function for full-screening the terminal window. | bash |
d_bash_16305 | ---
+++
@@ -1,5 +1,7 @@
#!/bin/bash
set -eu
+
+# P3B1 TEST 1
if (( ${#} != 1 ))
then
@@ -24,9 +26,7 @@
$EMEWS_PROJECT_ROOT/swift/workflow.sh $SITE -a $CFG_SYS $CFG_PRM
# Wait for job
-TURBINE_OUTPUT=$( cat turbine-directory.txt )
-JOBID=$( cat $TURBINE_OUTPUT/jobid.txt )
-queue_wait $SITE $JOBID
+queue_wait... | bash |
d_bash_16306 | ---
+++
@@ -1,6 +1,6 @@
VERSION=3.7
TAR=http://download.netsurf-browser.org/netsurf/releases/source-full/netsurf-all-$VERSION.tar.gz
-BUILD_DEPENDS=(curl expat libjpeg libpng openssl sdl zlib freetype liborbital)
+BUILD_DEPENDS=(curl expat libjpeg libpng openssl sdl zlib freetype liborbital libiconv)
DEPENDS="ca-c... | bash |
d_bash_16307 | ---
+++
@@ -10,10 +10,8 @@
}
function lvm_initramfs_hook() {
- LVM_INITRAMFS_HOOK=/etc/initramfs-tools/scripts/local-top/lvm2
- echo "#!/bin/bash" > LVM_INITRAMFS_HOOK
- echo "vgchange -ay" >> LVM_INITRAMFS_HOOK
- chmod a+x LVM_INITRAMFS_HOOK
+ LVM_INITRAMFS_HOOK=/usr/share/initramfs-tools/scripts/local-to... | bash |
d_bash_16308 | ---
+++
@@ -10,7 +10,7 @@
else
/bin/autoupdate-server \
-k /keys/private.key \
- -l 127.0.0.1:9999 \
+ -l 0.0.0.0:9999 \
-p https://update.getlantern.org/ \
-o getlantern \
-n lantern | bash |
d_bash_16309 | ---
+++
@@ -19,5 +19,5 @@
# Set up database
cp config/database.yml.example config/database.yml
-rake db:create
-rake db:schema:load
+rake db:create --trace
+rake db:schema:load --trace | bash |
d_bash_16310 | ---
+++
@@ -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_16311 | ---
+++
@@ -14,6 +14,7 @@
export USE_TLS=${USE_TLS:-"no"}
export TLS_VERIFY=${TLS_VERIFY:-"may"}
export INBOUND_TLS=${INBOUND_TLS:-"yes"}
+export RAW_CONFIG=${RAW_CONFIG:-""}
echo $RELAY_HOST_NAME > /etc/mailname
| bash |
d_bash_16312 | ---
+++
@@ -8,26 +8,26 @@
echo ;
if [[ "$OID" == "" ]]; then
- echo "USAGE: ./generate_random_user_and_pass.sh [oid]";
- echo ;
- exit 1;
+ echo "USAGE: ./generate_random_user_and_pass.sh [oid]";
+ echo ;
+ exit 1;
fi
# Random 4 digits
#
-RANDFOUR=`tr -dc 0-9 < /dev/urandom | head -c 4`;
+RANDFOUR=$... | bash |
d_bash_16313 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
if ! [ -d "${ZDOTDIR:-$HOME}/.zprezto" ]; then
- git clone --recursive -j8 https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
+ git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
fi | bash |
d_bash_16314 | ---
+++
@@ -10,15 +10,15 @@
# Install oh-my-zsh
curl -L http://install.ohmyz.sh | sh > /tmp/oh-my-zsh-install.log
-# Symlink kristoffer.zsh-theme to $HOME/.oh-my-zsh/themes/
-ln -s $(pwd)/kristoffer.zsh-theme $HOME/.oh-my-zsh/themes/kristoffer.zsh-theme
+# Copy kristoffer.zsh-theme to $HOME/.oh-my-zsh/themes/
+cp... | bash |
d_bash_16315 | ---
+++
@@ -2,7 +2,7 @@
set -ex
-RKT_VERSION="v1.2.0"
+RKT_VERSION="v1.5.1"
DEST_DIR="/usr/local/bin"
sudo mkdir -p /etc/rkt/net.d | bash |
d_bash_16316 | ---
+++
@@ -11,7 +11,7 @@
echo "Secure variables available: $IS_SECURE"
if [ $IS_JDK7 -eq 0 -a $IS_AS7 -eq 0 -a $IS_SECURE -eq 0 ]; then
- mvn -s .travis-sonatype-settings.xml -DperformRelease -DskipTests deploy
+ mvn -s .travis-sonatype-settings.xml -DperformRelease -DskipTests -DJBOSS_REPO=true deploy
else
... | bash |
d_bash_16317 | ---
+++
@@ -1 +1,12 @@
+# final commit
+cd $1
+cat <<EOF >README.md
+My GitHub Contributions Calendar
+================================
+This repository was generated with [GitHub Contributions](https://github.com/IonicaBizau/github-contributions) generator. Thanks, @IonicaBizau.
+EOF
+git add .
+git commit -m 'Added... | bash |
d_bash_16318 | ---
+++
@@ -1 +1,8 @@
+#!/bin/sh
+
+sysctl -w net.netfilter.nf_conntrack_tcp_timeout_time_wait=10
+sysctl -w net.ipv4.tcp_fin_timeout=10
+sysctl -w net.ipv4.tcp_tw_recycle=1
+sysctl -w net.ipv4.tcp_tw_reuse=1
+
rm -rf /tmp/faucet*log /tmp/gauge*log /tmp/faucet-tests* ; killall ryu-manager ; ./faucet_mininet_test.py ... | bash |
d_bash_16319 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/sh
+
+node -v
case "$PLATFORM" in
"clj") | bash |
d_bash_16320 | ---
+++
@@ -5,8 +5,9 @@
echo 'C++ install'
(
sudo apt-get update
- #sudo apt-get install libboost-program-options-dev -y
- sudo apt-get install libboost-all-dev
+ sudo apt-get install libboost-program-options-dev -y
+ sudo apt-get install libboost-log-dev -y
+ #sudo apt-get install libboost-all-dev
... | bash |
d_bash_16321 | ---
+++
@@ -8,4 +8,4 @@
fi;
data_path=$(dirname $(readlink -f "$0"))
-docker run -v $data_path:/data -w=/data -e APT_PROXY=$APT_PROXY -e DEBIAN_FRONTEND=noninteractive $1 /data/run-ubuntu.sh
+docker run --rm -v $data_path:/data -w=/data -e APT_PROXY=$APT_PROXY -e DEBIAN_FRONTEND=noninteractive $1 /data/run-ubuntu... | bash |
d_bash_16322 | ---
+++
@@ -15,11 +15,12 @@
# Install required ruby versions
rbenv install 2.3.1
-rbenv global 2.3.1
+
+cd /vagrant || exit
+
gem install bundler
rbenv rehash
-cd /vagrant || exit
bundle install
bin/rake db:drop | bash |
d_bash_16323 | ---
+++
@@ -1,4 +1,11 @@
#!/bin/bash
+
+if [ "$(id -u)" == "0" ]; then
+ echo "This script must be run as user" 1>&2
+ exit 1
+fi
+
+sudo
usage()
{ | bash |
d_bash_16324 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
apt-get update
-apt-get --yes install git zerofree qemu qemu-kvm iptables
+apt-get --yes install git zerofree qemu qemu-kvm iptables iproute2
apt-get clean
curl -fsSLo "/usr/local/bin/docker" "https://get.docker.com/builds/Linux/x86_64/docker-1.9.1" | bash |
d_bash_16325 | ---
+++
@@ -13,7 +13,7 @@
echo ""
echo " The Dockerfile is as follows:"
echo ""
-cat Dockerfile
+cat docker/Dockerfile
echo ""
echo "___________________________________________________________"
echo "" | bash |
d_bash_16326 | ---
+++
@@ -8,11 +8,15 @@
$dot_env_path/bin"
EGREP=`which egrep`
+SED=`which sed`
+
function pathmunge () {
# If it exists then remove it so we can shuffle it to the end or beginning of the PATH
if echo $PATH | $EGREP "(^|:)$1($|:)" > /dev/null ; then
- safe_param=$(printf "%s\n" "$1" | sed 's/[][\.*^$(... | bash |
d_bash_16327 | ---
+++
@@ -14,6 +14,6 @@
fi
# Install homebrew packages
-brew install grc coreutils spark
+brew install grc coreutils spark ack ctags ffmpeg git mutt siege tidy tmux tofrodos watch wget youtube-dl yuicompressor
exit 0 | bash |
d_bash_16328 | ---
+++
@@ -9,7 +9,7 @@
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.15.1+2/bellsoft-jdk11.0.15.1+2-linux-amd64.tar.gz"
;;
java17)
- echo "https://github.com/bell-sw/Liberica/releases/download/17.0.3+7/bellsoft-jdk17.0.3+7-linux-amd64.tar.gz"
+ echo "https://github.com/bell-sw/Liberica... | bash |
d_bash_16329 | ---
+++
@@ -23,3 +23,7 @@
zle -N down-line-or-beginning-search
bindkey "^[[A" up-line-or-beginning-search # Up
bindkey "^[[B" down-line-or-beginning-search # Down
+
+# Add back beginning and end of line shortcuts in Vim mode:
+bindkey '^a' vi-beginning-of-line
+bindkey '^e' vi-end-of-line | bash |
d_bash_16330 | ---
+++
@@ -9,14 +9,14 @@
echo "possible subcomponents are:"
echo
echo "base bin contrib etc games gnu include lib libexec"
- echo "release sbin share sys ubin usbin"
+ echo "release sbin share sys tools ubin usbin"
echo
echo "You may also specify all to extract all subcomponents."
exit 1
fi
if [ "$1"... | bash |
d_bash_16331 | ---
+++
@@ -1,6 +1,5 @@
#!/bin/bash
-set -e
set -v
# Enable APIs | bash |
d_bash_16332 | ---
+++
@@ -2,8 +2,17 @@
git clone https://github.com/zeromq/zeromq4-1
cd zeromq4-1
-git checkout "tags/v4.1.3"
+git checkout "tags/v4.1.4"
./autogen.sh
./configure --with-libsodium=no
make -j 8
sudo make install
+cd ..
+
+git clone https://github.com/zeromq/czmq
+cd czmq
+./autogen.sh
+./configure
+make
+sud... | bash |
d_bash_16333 | ---
+++
@@ -3,7 +3,7 @@
thirdparty_module_name='GoogleTest'
upstream_git_url='https://github.com/google/googletest.git'
-upstream_git_branch='master'
+upstream_git_branch='release-1.10.0'
github_compare=true
| bash |
d_bash_16334 | ---
+++
@@ -1,7 +1,8 @@
#!/bin/bash
TARGET_DB=$1
-PGUSER=${2:-postgres}
+ADMIN_PGUSER="postgres"
+PGUSER=${2:-${ADMIN_PGUSER}}
PYTHON_LIBRARY_NAME='cartodb_services'
function usage {
@@ -32,4 +33,4 @@
echo "* Creating extension cdb_geocoder"
psql -U ${PGUSER} -d ${TARGET_DB} -c "${CDB_GEOCODER_EXTENSION_CRE... | bash |
d_bash_16335 | ---
+++
@@ -31,6 +31,7 @@
fi
done
+iptables -I FORWARD -o eth0 -d $(ip -o -4 addr show dev eth0 | awk '{print $4}') -j REJECT
echo "Checking hypervisor..."
echo "[1/1] basic domain start..." | bash |
d_bash_16336 | ---
+++
@@ -6,6 +6,7 @@
# Create all the expected directories
+ mkdir -p $TMP/bin
mkdir -p $TMP/etc/rc.d/
mkdir -p $TMP/lib
mkdir -p $TMP/native/usr/bin
@@ -13,17 +14,20 @@
mkdir -p $TMP/usr/bin
mkdir -p $TMP/usr/sbin
+ # Crete reuired binaries for chroot
+ cp /bin/* $TMP/bin
+
#... | bash |
d_bash_16337 | ---
+++
@@ -8,5 +8,6 @@
gvm install go1.6.2 --prefer-binary
fi
+go get github.com/ericchiang/pup
+go get github.com/ichinaski/pxl
go get github.com/aykamko/tag
-go get github.com/ericchiang/pup | bash |
d_bash_16338 | ---
+++
@@ -9,7 +9,8 @@
mkdir build && cd build
-LDFLAGS="-lrt" cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_VERBOSE_MAKEFILE=1
+# TODO(hzeller): even though gperftools are installed, -ltcmalloc is not found.
+LDFLAGS="-lrt" cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREF... | bash |
d_bash_16339 | ---
+++
@@ -12,8 +12,8 @@
mkdir -p /etc/quantum
rm -f /etc/apt/sources.list.d/folsom.list
echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/folsom main" > /etc/apt/sources.list.d/folsom.list
-apt-get install -f
-apt-get update && apt-get dist-upgrade
+apt-get -y install -f
+apt-get -y upda... | bash |
d_bash_16340 | ---
+++
@@ -1,3 +1,3 @@
-export PATH=".:bin:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH"
+export PATH=".:bin:/usr/local/bin:/usr/local/sbin:$HOME/.sfs:$ZSH/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH" | bash |
d_bash_16341 | ---
+++
@@ -10,7 +10,7 @@
cp Fira-4.202/otf/* $font_dir/;
elif [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
wget "http://www.carrois.com/downloads/fira_mono_3_2/FiraMonoFonts3206.zip";
- unzip FiraMono3206.zip;
+ unzip FiraMonoFonts3206.zip;
mkdir -p ~/.fonts
cp Fira*/WEB/TTF/*.ttf ~/.fonts;
cp Fira*/OT... | bash |
d_bash_16342 | ---
+++
@@ -2,7 +2,7 @@
# version of your package
-VERSION_openjpeg=2.3.1
+VERSION_openjpeg=2.4.0
# dependencies of this recipe
DEPS_openjpeg=() | bash |
d_bash_16343 | ---
+++
@@ -6,7 +6,7 @@
mvn clean package -B -T 3
else
if [ ${RUN_SLOW_TESTS} == 'true' ]; then
- mvn clean test -B -T 3 -Pslow-tests,skip-sass
+ mvn clean test -B -T 2 -Pslow-tests,skip-sass
else
mvn clean test -B -T 3
fi | bash |
d_bash_16344 | ---
+++
@@ -18,8 +18,7 @@
esac
fi
-if [ $# -ge 1 ]
-then
+if [ $# -ge 1 ]; then
case $1 in
on) synclient PalmDetect=1
echo ' PalmDetect is now on' | bash |
d_bash_16345 | ---
+++
@@ -6,4 +6,4 @@
./configure --enable-xcache
make
sudo make install
-cp ../xcache.ini ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d
+echo zend_extension=~/.phpenv/versions/$(phpenv version-name)/lib/php/extensions/no-debug-non-zts-20090626/xcache.so > ~/.phpenv/versions/$(phpenv version-name)/etc/con... | bash |
d_bash_16346 | ---
+++
@@ -16,4 +16,4 @@
bosh create release --name $cpi_release_name --version $semver --with-tarball
popd
-mv dev_releases/$cpi_release_name/$cpi_release_name-$semver.tgz ../candidate/
+mv bosh-google-cpi-boshrelease/dev_releases/$cpi_release_name/$cpi_release_name-$semver.tgz ../candidate/ | bash |
d_bash_16347 | ---
+++
@@ -1,6 +1,4 @@
python setup.py sdist
python setup.py bdist_wheel --python-tag py26
-python setup.py bdist_wheel --python-tag py27
-python setup.py bdist_wheel --python-tag py32
-python setup.py bdist_wheel --python-tag py33
+python setup.py bdist_wheel --python-tag py27.py32.py33
python setup.py bdist_whe... | bash |
d_bash_16348 | ---
+++
@@ -10,6 +10,9 @@
execute "defaults write com.apple.terminal FocusFollowsMouse -string true" \
"Make the focus automatically follow the mouse"
+execute "defaults write com.apple.terminal SecureKeyboardEntry -bool true" \
+ "Enable 'Secure Keyboard Entry'"
+
execute "defaults write com.apple.termin... | bash |
d_bash_16349 | ---
+++
@@ -1,7 +1,19 @@
-for x in $(cat include/protobuf-desc.h | \
- sed -n '/PB_AUTOGEN_START/,/PB_AUTOGEN_STOP/p' | \
- fgrep -v 'PB_AUTOGEN_S' | sed -e 's/,.*$//' -e 's/PB_//'); do
- x_la=$(echo $x | tr 'A-Z' 'a-z')
- x_uf=$(echo $x_la | sed -e 's/^./\u&/' -e 's/_./\U&/g' -e 's/_//g')
+TR="y/ABCDEFGHIJKLMNOPQR... | bash |
d_bash_16350 | ---
+++
@@ -6,8 +6,8 @@
git clone https://github.com/VahidGh/ChannelWorm.git
-#rm ChannelWorm/channelworm/db.sqlite3
-#rm -rf ChannelWorm/channelworm/web_app/media/*
+rm ChannelWorm/channelworm/db.sqlite3
+rm -rf ChannelWorm/channelworm/web_app/media/*
cp -r ChannelWorm/channelworm/* ~/app-root/runtime/repo
... | bash |
d_bash_16351 | ---
+++
@@ -4,7 +4,9 @@
# make sure your key doesn't have a passphrase or the fetch will
# fail
-cd $HOME
+DOTFILES_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
+
+cd $DOTFILES_ROOT
[ -d ".git" ] && git remote update &> /dev/null
cd $HOME/.vim | bash |
d_bash_16352 | ---
+++
@@ -1,3 +1,6 @@
#!/bin/sh
-python openid/test/test*.py
+# naive version that doesn't run enough tests:
+# python openid/test/test*.py
+
+python3 -m unittest openid.test.test_suite | bash |
d_bash_16353 | ---
+++
@@ -6,7 +6,8 @@
echo "**********************************"
echo
-pip install xlsxwriter setuptools;
+pip install xlsxwriter setuptools;
+pip install sphinx rtd_sphinx_theme;
npm install apidoc;
python setup.py install;
pip install -e .; | bash |
d_bash_16354 | ---
+++
@@ -1,5 +1,5 @@
function knife_ssh() {
- grep -q $1 ~/.knife_comp~ 2> /dev/null || rm -f ~/.knife_comp~;
+ grep -q $1 ~/.knife_comp~ || rm -f ~/.knife_comp~;
ssh $(knife node show $1 | awk '/IP:/{print $2}')
}
@@ -9,7 +9,7 @@
echo "\nGenerating ~/.knife_comp~..." >/dev/stderr
knife node... | bash |
d_bash_16355 | ---
+++
@@ -1,2 +1,2 @@
-curl https://cdn.rawgit.com/jprichardson/string.js/master/lib/string.js > ./vendor/assets/javascripts/string.js
-curl https://cdn.rawgit.com/jprichardson/string.js/master/lib/string.min.js > ./vendor/assets/javascripts/string.min.js
+curl https://raw.githubusercontent.com/jprichardson/string.... | bash |
d_bash_16356 | ---
+++
@@ -25,6 +25,7 @@
brew install --cask google-chrome
brew install --cask google-drive
brew install --cask bbedit
+brew install --cask snagit
# nerdfonts and symbols for iTterm
brew tap homebrew/cask-fonts | bash |
d_bash_16357 | ---
+++
@@ -28,7 +28,7 @@
if [[ $platform == "linux" ]]; then
sudo apt-get update
- sudo apt-get install -y git cmake build-essential autoconf libtool python-dev python-numpy python-pip libboost-all-dev unzip libjpeg8-dev
+ sudo apt-get install -y git cmake build-essential autoconf curl libtool python-dev pyt... | bash |
d_bash_16358 | ---
+++
@@ -10,6 +10,7 @@
export CLASSPATH
java -Dpython.cachedir.skip=false -Dpython.cachedir=/tmp \
+ -Djava.library.path=lib \
org.python.util.jython CEPengine/main.py
exit 0 | bash |
d_bash_16359 | ---
+++
@@ -1,12 +1,17 @@
#!/bin/bash
# Thanks to: http://sfviapgh.com/blog/2016/2/18/how-to-deploy-rails-with-aws-codedeploy
-export RAILS_ENV=production
+. /home/ubuntu/outages.secret
cd /var/www/autism-funding.com/html
sudo chmod 750 bin/*
+logs="log/production.log log/puma-production.stdout.log log/puma-pro... | bash |
d_bash_16360 | ---
+++
@@ -5,4 +5,4 @@
apt-get install -y apt-transport-https
apt-add-repository 'deb https://github.com/mzhaom/lrte/releases/download/v2.0_0 ./'
apt-get update
-apt-get install lrtev2-crosstoolv2-gcc-4.9 lrtev2-crosstoolv2-clang-3.7
+apt-get install -y --force-yes lrtev2-crosstoolv2-gcc-4.9 lrtev2-crosstoolv2-cl... | bash |
d_bash_16361 | ---
+++
@@ -2,7 +2,7 @@
set -eo pipefail
-TOOLS_PATH="/Users/travis/prl-tools-mac.iso"
+TOOLS_PATH="/Users/vagrant/prl-tools-mac.iso"
# Parallels Tools specific items
if [ -e .PACKER_BUILDER_TYPE ] || [[ "$PACKER_BUILDER_TYPE" == parallels* ]]; then
if [ ! -e "$TOOLS_PATH" ]; then | bash |
d_bash_16362 | ---
+++
@@ -1,4 +1,2 @@
# pip should only run if there is a virtualenv currently activated
export PIP_REQUIRE_VIRTUALENV=true
-# cache pip-installed packages to avoid re-downloading
-export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache | bash |
d_bash_16363 | ---
+++
@@ -10,5 +10,6 @@
echo "requirements ok"
else
# Changes
+ echo -e "\033[0;31mRequirements are inconsistent. Did you run 'make requirements'?\033[0m"
exit 1
fi | bash |
d_bash_16364 | ---
+++
@@ -29,7 +29,9 @@
# TODO: användare/root och hosts i olika färger
# Några tecken ska inte behandlas som om de ingick i ord
-export WORDCHARS=${WORDCHARS//[=\/&;<>]}
+#export WORDCHARS=${WORDCHARS//[=\/&;<>]}
+autoload select-word-style
+select-word-style bash
# emacs bindings
bindkey -e | bash |
d_bash_16365 | ---
+++
@@ -1,4 +1,8 @@
if which jenv > /dev/null; then eval "$(jenv init -)"; fi
+
+# Set Java7/Java8 home (retrolambda)
+export JAVA7_HOME=${HOME}/.jenv/versions/1.7
+export JAVA8_HOME=${HOME}/.jenv/versions/1.8
# Maven
export MAVEN_OPTS="-Xmx1024m -Dfile.encoding=UTF-8 -Djava.awt.headless=true" | bash |
d_bash_16366 | ---
+++
@@ -3,8 +3,17 @@
source $HOME/miniconda/etc/profile.d/conda.sh
conda activate test
+# Select build with QtMultimedia
+if [ "$PYTHON_VERSION" = "2.7" ]; then
+ export BUILD=py27h22d08a2_0
+elif [ "$PYTHON_VERSION" = "3.5" ]; then
+ export BUILD=py35h751905a_0
+else
+ export BUILD=py36h751905a_0
+f... | bash |
d_bash_16367 | ---
+++
@@ -17,6 +17,7 @@
scripts=$($FIND -type f -not -regex \
'.+(check-env-dep|gitignore|kdb_zsh_completion|run_dev_env|sed|(Docker|Jenkins|Vagrant)file.*|\.(cmake|fish|in|md|txt))$' | \
xargs)
+exit_if_fail 'Unable to locate shell scripts via `find`'
checkbashisms $scripts
ret=$?
# 2 means skipped fil... | bash |
d_bash_16368 | ---
+++
@@ -16,6 +16,6 @@
if [ "$TRAVIS_REPO_SLUG" = "syscoin/syscoin" -a "$TRAVIS_EVENT_TYPE" = "cron" ]; then
git log --merges --before="2 days ago" -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit
- travis_retry gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys $(<contrib/v... | bash |
d_bash_16369 | ---
+++
@@ -1,4 +1,8 @@
#!/bin/sh
+
+# Install homebrew and homebrew cask
+ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
+brew install caskroom/cask/brew-cask
# Install vim
ln -sf ~/.dotfiles/vim/colors ~/.vim/colors | bash |
d_bash_16370 | ---
+++
@@ -7,5 +7,11 @@
fi
sed -i 's/<google\/protobuf-c\/protobuf-c.h>/"protobuf.h"/g' packets.pb-c.h
+
+if ! cat packets.pb-c.c | grep "PROTOBUF_C_NO_DEPRECATED" > /dev/null; then
+ echo "Warning: protobuf-c-compiler < 0.14 detected, trying to fix the output"
+ sed -i 's| NULL,NULL /\* reserved1, reserve... | bash |
d_bash_16371 | ---
+++
@@ -1,6 +1,6 @@
DOCKER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-if [ `uname` == 'Linux' ]; then
+if [ `uname` == 'Linux' -o `uname` == 'Darwin' ]; then
XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}
DOCKER_DATA_HOME=$XDG_DATA_HOME/dockerhq
else | bash |
d_bash_16372 | ---
+++
@@ -5,7 +5,7 @@
./gradlew check realUseCaseTest
if [ -z "$ONLY_CHECK" ]; then
./gradlew cobertura
- ~/jpm/bin/codacy-coverage-reporter -language Java --coverageReport build/reports/cobertura/coverage.xml --projectToken "$codacy_project_token"
+ ~/jpm/bin/codacy-coverage-reporter --language Java -... | bash |
d_bash_16373 | ---
+++
@@ -4,11 +4,18 @@
PR_REFSPEC='+refs/pull/*:refs/remotes/origin/pr/*'
+err() {
+ echo "$@" >&2
+ exit 1
+}
+
add_pr_refs() {
if ! git config --get-all remote.origin.fetch | grep -F "$PR_REFSPEC" > /dev/null; then
git config --add remote.origin.fetch "$PR_REFSPEC"
fi
}
+
+[ -n "$... | bash |
d_bash_16374 | ---
+++
@@ -16,8 +16,15 @@
function set_shutit_options() {
local CNAME
+ local OPTS
CNAME=shutit_test_container_$(dd if=/dev/urandom bs=256 count=1 2>/dev/null | md5sum | awk '{print $1}')
- export SHUTIT_OPTIONS="-s container name $CNAME"
+ OPTS=${1:-none}
+ if [[ "$OPTS" = "none" ]]
+ then
+ export SHUTIT_O... | bash |
d_bash_16375 | ---
+++
@@ -6,6 +6,10 @@
echo "> Installing default applications ..."
sh ./installation/deps.sh
+
+echo "> Making directory: ~/.vimos"
+mkdir ~/.vimos
+cp ./start/main.txt ~/.vimos/
echo "> Setting up .vimrc file"
| bash |
d_bash_16376 | ---
+++
@@ -1,22 +1,27 @@
#!/bin/bash
set -euxo pipefail
-VERSION=2.4.0
+VERSION=2.4.2
CACHE_DIR="/vagrant/libressl"
+BUILD_DIR="$HOME/build"
mkdir -p "$CACHE_DIR"
cd "$CACHE_DIR"
if ! gpg --list-keys | grep -q D5E4D8D5; then
- curl http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl.asc | gpg --import
+ if ... | bash |
d_bash_16377 | ---
+++
@@ -1,6 +1,9 @@
# for colors
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
+
+# grep colors
+export GREP_OPTIONS='--color=auto'
# alias for listing
alias ll='ls -lah' | bash |
d_bash_16378 | ---
+++
@@ -6,5 +6,5 @@
git remote remove origin
git remote add origin "https://${GITHUB_TOKEN}@github.com:DankGamesStudios/Tankr.git"
-npm list --depth 0
+npm install
npm run-script deploy | bash |
d_bash_16379 | ---
+++
@@ -41,7 +41,9 @@
lerna run --scope truffle-* test --stream
elif [ "$COVERAGE" = true ]; then
-
- nyc lerna run test && cat ./coverage/lcov.info && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage ./.nyc_output
+ echo "******************"
+ echo $PWD
+ echo "... | bash |
d_bash_16380 | ---
+++
@@ -3,5 +3,5 @@
# Requires
# pacman.sh
-pacman -S nfs-utils
+pacman -S --noconfirm nfs-utils
systemctl enable rpc-statd.service | bash |
d_bash_16381 | ---
+++
@@ -33,6 +33,7 @@
zle -N newtab
+bindkey -e
bindkey '^[^[[D' backward-word
bindkey '^[^[[C' forward-word
bindkey '^[[5D' beginning-of-line | bash |
d_bash_16382 | ---
+++
@@ -4,7 +4,7 @@
export OC_URI='dev.rdu2c.fabric8.io:8443'
export OC_USERNAME='Not set'
export OC_PASSWD='Not set'
-export OC_PROJECT=$(whoami)'-greenfield-test'
+export OC_PROJECT="${OC_USERNAME}-greenfield-test"
#AWS credentials
export AWS_ACCESS_KEY_ID='Not set'
@@ -21,7 +21,7 @@
#AWS RDS configur... | bash |
d_bash_16383 | ---
+++
@@ -17,10 +17,20 @@
gcc
bpftrace
python3
+python3-pip
python3-dev
+python3-venv
python3-neovim
python
python-dev
+python-pip
+git
+subversion
+tree
+silversearcher-ag
+libssl-dev
+libffi-dev
+sqlite3
"
virt-builder \ | bash |
d_bash_16384 | ---
+++
@@ -9,7 +9,7 @@
alias dki='docker images' # List Docker images
alias dkrmac='docker rm $(docker ps -a -q)' # Delete all Docker containers
alias dkrmlc='docker-remove-most-recent-container' # Delete most recent (i.e., last) Docker container
-alias dkrmui='docker rmi $(docker images | grep "^<none>" | awk... | bash |
d_bash_16385 | ---
+++
@@ -1,17 +1,17 @@
#!/bin/sh -e
-BUILDROOT=build
-if [ -e ${BUILDROOT}/src ]; then
+BUILDROOT=$(cd $(dirname $0) && pwd)/build
+if [ -e "${BUILDROOT}/src" ]; then
(
- cd ${BUILDROOT}/src
+ cd "${BUILDROOT}/src"
# Delete all the projects except the big OpenCV download.
ls | grep prefix | grep -v Ope... | bash |
d_bash_16386 | ---
+++
@@ -12,21 +12,21 @@
if test "x`uname | grep -i cygwin`" != "x"; then
echo 'Need to run "dos2unix base/inc/RVersion.h"'
- dos2unix base/inc/RVersion.h
+ dos2unix core/base/inc/RVersion.h
fi
echo "New version is `cat build/version_number`. Updating dependencies..."
# compile all files that ... | bash |
d_bash_16387 | ---
+++
@@ -3,4 +3,9 @@
if [ -n "$RUNTIME_OPTS" ]; then
echo 'export JAVA_OPTIONS="$JAVA_OPTIONS '"$RUNTIME_OPTS"'"' >> /var/opt/jfrog/artifactory/etc/default
fi
+if [ -n "$(grep artdist /var/opt/jfrog/artifactory/etc/default)" ] ; then
+ sed -i s/-Dartdist=rpm/-Dartdist=docker/g /etc/opt/jfrog/artifactory/defa... | bash |
d_bash_16388 | ---
+++
@@ -1,6 +1,8 @@
-# Aliases to stop, start and restart Postgres
-# Paths noted below are for Postgress installed via Homebrew on OSX
+# Aliases to control Postgres
+# Paths noted below are for Postgres installed via Homebrew on OSX
alias startpost='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgre... | bash |
d_bash_16389 | ---
+++
@@ -26,8 +26,7 @@
git checkout master
git pull origin master
git fetch --tags
- git branch -D $tag
- git checkout tags/$tag -b $tag
+ git checkout tags/$tag -b "build-release-$tag"
echo "npm: clean and build package"
rm -rf node_modules
@@ -42,7 +41,7 @@
echo "Git cleanup"
git checko... | bash |
d_bash_16390 | ---
+++
@@ -18,10 +18,5 @@
echo "Storage provisioning config file: $STORAGE_PROVISION_CONFIG_FILE"
-source $ENV_PATH/$ENVIRONMENT/cluster-node-names
+# source $ENV_PATH/$ENVIRONMENT/cluster-node-names
source $ENV_PATH/$ENVIRONMENT/open_ports
-
-echo "Random Open Ports for debug pupose"
-echo "Open Ports TCP Int... | bash |
d_bash_16391 | ---
+++
@@ -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_16392 | ---
+++
@@ -1,7 +1,7 @@
NAME=dissertation.tex
pdflatex $NAME
bibtex $NAME
-makeglossaries
+makeglossaries dissertation
pdflatex $NAME
pdflatex $NAME
sh clean.sh | bash |
d_bash_16393 | ---
+++
@@ -6,7 +6,7 @@
common_rc_path=$(readlink ~/.bashrc)
dotfiles_repo=$(dirname "${common_rc_path:?}")
-cd "${dotfiles_repo:?}"
+pushd "${dotfiles_repo:?}" > /dev/null
local_branch_name=$(git name-rev --name-only HEAD)
tracking_branch_name=$(git for-each-ref --format='%(upstream)' "$(git symbolic-ref -q HE... | bash |
d_bash_16394 | ---
+++
@@ -1,3 +1,3 @@
# System execution path
-export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:$HOME/bin
+export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:$HOME/.cabal/bin:$HOME/bin | bash |
d_bash_16395 | ---
+++
@@ -24,19 +24,6 @@
rm -r "$WORKON_HOME"/"$(basename "$PWD")"
}
-# Remake Python virtualenv belonging to CWD and reinstall pip requirements
-rmkenv() {
- if [ -f "$VIRTUAL_ENV/bin/python3" ]; then
- local binary=python3
- elif [ -f "$VIRTUAL_ENV/bin/python2" ]; then
- local binary=python2
- fi
- if [ ! ... | bash |
d_bash_16396 | ---
+++
@@ -1,4 +1,5 @@
GIT=https://github.com/FFmpeg/FFmpeg
+BRANCH=release/3.3
function recipe_update {
echo "skipping update"
@@ -9,8 +10,8 @@
./configure \
--enable-cross-compile \
--target-os=redox \
- --arch=x86_64 \
- --cross_prefix=x86_64-unknown-redox- \
+ ... | bash |
d_bash_16397 | ---
+++
@@ -1,10 +1,12 @@
#!/bin/bash
-virtualenv /tmp/build_turbodbc_wheel_venv
-source /tmp/build_turbodbc_wheel_venv/bin/activate
+VENV_DIR=/tmp/build_cpp_odbc_wheel_venv_${label}
+
+virtualenv ${VENV_DIR}
+source ${VENV_DIR}/bin/activate
pip install wheel
python setup.py bdist_wheel --dist-dir @CMAKE_INSTA... | bash |
d_bash_16398 | ---
+++
@@ -5,7 +5,7 @@
# .children[-2] selects the one before the last which is the all distro
latestSnapshotPath=`
http get https://repo.gradle.org/gradle/api/storage/$repo/ \
- | jq -r '[ .children[] | select(.uri | startswith("/gradle-kotlin-dsl-4.9-")) ][-2].uri'`
+ | jq -r '[ .children[] | ... | bash |
d_bash_16399 | ---
+++
@@ -21,7 +21,7 @@
# Loop until confd has updated the haproxy config
n=0
-until confd -onetime -node "$ETCD_NODE"; do
+until confd -onetime -node "$ETCD_HOST"; do
if [ "$n" -eq "4" ]; then config_fail; fi
echo "[dynamic-ambassador] waiting for confd to refresh haproxy.cfg"
n=$((n+1))
@@ -30,4 +30... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.