document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_16500 | ---
+++
@@ -47,7 +47,6 @@
done
# Cleanup after install
- brew prune
brew cleanup
)
| bash |
d_bash_16501 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash -eux
# Install git
-apt-get -y update
-apt-get -y install git
+apt -y update
+apt -y install git
| bash |
d_bash_16502 | ---
+++
@@ -36,7 +36,3 @@
--localstatedir=${pkg_svc_var_path}
make
}
-
-do_install() {
- make install
-} | bash |
d_bash_16503 | ---
+++
@@ -13,4 +13,4 @@
ln -s /opt/firefox33/firefox /usr/bin/firefox
mkdir /var/selenium
cp /var/www/vm/selenium-2.44.0.jar /var/selenium
-cp .bash_aliases ~/
+cp /var/www/vm/.bash_aliases ~ | bash |
d_bash_16504 | ---
+++
@@ -3,9 +3,11 @@
set -e
if ! [ -z "${HTTPS_PROXY_CERT}" ]; then
- sudo cp $HTTPS_PROXY_CERT /usr/share/ca-certificates
- sudo sh -c "echo '$(basename ${HTTPS_PROXY_CERT})' >> /etc/ca-certificates.conf"
- sudo /usr/sbin/update-ca-certificates
+ if ! $(grep -q "${HTTPS_PROXY_CERT}" '/etc/ca-certificates... | bash |
d_bash_16505 | ---
+++
@@ -1,24 +1,9 @@
#!/bin/bash
-# Set up /usr/lib/ignition, copying contents from /usr/share/oem.
set -e
-case "$1" in
-normal)
- src=/mnt/oem
- mkdir -p "${src}"
- mount /dev/disk/by-label/OEM "${src}"
- # retry-umount may not be necessary, but be cautious
- trap 'retry-umount "${src}"' EX... | bash |
d_bash_16506 | ---
+++
@@ -1,19 +1,6 @@
#!/bin/sh
. /opt/kolla/config-nova.sh
-
-check_required_vars CONFIG_NETWORK
-
-# Configure eth1 as a physcial interface for nova flat network
-cat > /etc/sysconfig/network-scripts/ifcfg-eth1 <<EOF
-DEVICE="eth1"
-BOOTPROTO="none"
-ONBOOT="yes"
-DEFROUTE="yes"
-TYPE="Ethernet"
-EOF
-
-/sbi... | bash |
d_bash_16507 | ---
+++
@@ -7,7 +7,7 @@
python manage.py migrate
echo "from django.contrib.auth.models import User;
from django.contrib.auth.hashers import make_password;
-User.objects.create(is_staff='true',is_superuser='true', username='$DJANGO_SUPERUSER_USERNAME', email='$DJANGO_SUPERUSER_EMAIL', password=make_password('$DJA... | bash |
d_bash_16508 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
[[ ! -e static-analysis ]] && mkdir static-analysis
cd static-analysis
-scan-build cmake ..
+scan-build --status-bugs cmake ..
make clean
-scan-build make
+scan-build --status-bugs make | bash |
d_bash_16509 | ---
+++
@@ -1 +1,7 @@
eval "$(npm completion 2>/dev/null)"
+
+# Install and save to dependencies
+alias npms="npm i -S "
+
+# Install and save to dev-dependencies
+alias npmd="npm i -D " | bash |
d_bash_16510 | ---
+++
@@ -24,7 +24,7 @@
chown "$OWNER":"$GROUP" "$ab_loc".tgz
else
echo 'Tar failed! (exit code '"$?"'). Out of disk space?'
- chown "$OWNER":"$GROUP" "$ab_loc".tgz
+ chown "$OWNER":"$GROUP" "$ab_loc".sql
fi
stem="$(pwd)/$PREFIX" | bash |
d_bash_16511 | ---
+++
@@ -1,9 +1,8 @@
-#!/bin/env bash
+#!/usr/bin/env bash
filename=${1%.*}
-
-gcc -o bf-compile bf-compile.c
-./bf-compile ${filename}.bf
-nasm -s -f elf64 -o ${filename}.o ${filename}.asm
+gcc -o bf-compile bf-compile.c && \
+./bf-compile ${filename}.bf && \
+nasm -s -f elf64 -o ${filename}.o ${filename}.as... | bash |
d_bash_16512 | ---
+++
@@ -7,4 +7,7 @@
rm -f /usr/share/applications/messengerfordesktop.desktop
# Config files
-rm -f -r ~/.config/Messenger
+rm -f -r /home/$SUDO_USER/.config/Messenger/
+
+# Cache
+rm -f -r /home/$SUDO_USER/.cache/Messenger | bash |
d_bash_16513 | ---
+++
@@ -30,6 +30,8 @@
cd src/github.com/cloudfoundry/cf-acceptance-tests
./bin/test \
-keepGoing \
+ -progress \
+ -timeout=1h30m \
-randomizeAllSpecs \
-skipPackage=helpers \
-skip="${SKIP_REGEX}" \ | bash |
d_bash_16514 | ---
+++
@@ -11,9 +11,14 @@
#Stop the script if its started as root
if [ "$(id -u)" -eq 0 ]; then
- echo "You shouldn't start Etherpad-Lite as root!" 1>&2
- echo "Use authbind if you want to use a port lower than 1024 -> http://en.wikipedia.org/wiki/Authbind" 1>&2
- exit 1
+ echo "You shouldn't start Ether... | bash |
d_bash_16515 | ---
+++
@@ -1,11 +1,6 @@
### Defaults
_sbp_host_color_bg=${_sbp_host_color_bg:-$_sbp_color_dgrey}
_sbp_host_color_fg=${_sbp_host_color_fg:-$_sbp_color_lgrey}
-
-if [[ "${USER}" == "root" ]]; then
- _sbp_host_color_fg=0
- _sbp_host_color_bg=1
-fi
function _sbp_generate_host_segment {
local host_value
@@ -15... | bash |
d_bash_16516 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
if [ -f /.dockerinit ]; then
- wget -q http://ftp.de.debian.org/debian/pool/main/p/phantomjs/phantomjs_2.0.0+dfsg-1_amd64.deb
- dpkg -i phantomjs_2.0.0+dfsg-1_amd64.deb
+ wget -q https://gitlab.com/axil/phantomjs-debian/raw/master/phantomjs_1.9.8-0jessie_amd64.deb
+ d... | bash |
d_bash_16517 | ---
+++
@@ -17,7 +17,7 @@
pandoc --read=html --write=rst "$read_file" -o "$write_file"
sed -ie "1,6d" "$write_file"
- sed -ie "s/\Module //" "$write_file"
+ sed -ie "1s/\Module //" "$write_file"
LINE_1=`cat $write_file | wc -l`
LINE_2=`expr $LINE_1 - 10`
sed -ie "$LINE_2,\$d" "$write_... | bash |
d_bash_16518 | ---
+++
@@ -17,4 +17,7 @@
assert_raises "exec_on $HOST1 c1 $PING c2"
assert_raises "exec_on $HOST1 c2 $PING c1"
+$SSH $HOST1 docker rm -f c1 c2
+$SSH $HOST1 docker network rm testsubnet
+
end_suite | bash |
d_bash_16519 | ---
+++
@@ -1,7 +1,6 @@
# Load in NVM, even if we don't have it
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
-[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# NVM auto install / switch based on project .nvmrc... | bash |
d_bash_16520 | ---
+++
@@ -19,7 +19,7 @@
# docker run -i -t --rm -v $PWD:/v -w /v --net=host buildpack-deps:14.04 /v/.travis/python.release.sh
export TENSORFLOW_INSTALL="$(python setup.py --package-version)"
-export PYTHON_VERSION="python python3 python3.5 python3.6"
+export PYTHON_VERSION="python2.7 python3.4 python3.5 python3... | bash |
d_bash_16521 | ---
+++
@@ -20,9 +20,6 @@
alias grep='grep --color=auto'
-# grep history
-alias gh='fc -l 0 | grep'
-
alias dh='dirs -v' # directory history
# Find a file with a pattern in name: | bash |
d_bash_16522 | ---
+++
@@ -1,4 +1,4 @@
-function config {
+config () {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
if [[ ! -d $HOME/.cfg ]]; then | bash |
d_bash_16523 | ---
+++
@@ -16,7 +16,7 @@
cd *_vtr-verilog-to-routing
source $SCRIPT_DIR/steps/git.sh
-if [ $VTR_TEST == "vtr_strong" ]; then
+if [ $VTR_TEST == "vtr_reg_strong" ]; then
source $SCRIPT_DIR/steps/vtr-min-setup.sh
else
source $SCRIPT_DIR/steps/vtr-full-setup.sh | bash |
d_bash_16524 | ---
+++
@@ -28,3 +28,24 @@
# cd, same functionality as j in autojump
alias j='fasd -e cd -d'
+
+_mydirstack() {
+ local -a lines list
+ for d in $dirstack; do
+ lines+="$(($#lines+1)) -- $d"
+ list+="$#lines"
+ done
+ _wanted -V directory-stack expl 'directory stack' \
+ compadd "$@" -ld lines ... | bash |
d_bash_16525 | ---
+++
@@ -29,9 +29,6 @@
echo "Import table schema..."
mysql -u root inquisition < build/src/inquisition.sql || exit 1
-# setup log db
-redis-cli set log_id 0
-
# run any tests
python -m pytest build/tests/ || exit 1
| bash |
d_bash_16526 | ---
+++
@@ -12,4 +12,4 @@
gem install --no-document toys
# This is not called from autorelease, so don't run publish-reporter-script
-toys release perform -v --base-dir=generated --all=^google-apis- --enable-docs --enable-rad < /dev/null
+toys release perform -v --base-dir=generated --all=^google-apis- --enable-d... | bash |
d_bash_16527 | ---
+++
@@ -1,5 +1,6 @@
# Initialize completion
autoload -Uz compinit && compinit
+zstyle ':completion:*' menu select=20
# Initialize editing command line
autoload -U edit-command-line && zle -N edit-command-line | bash |
d_bash_16528 | ---
+++
@@ -1,2 +1,3 @@
rm -r json-schema_snapshot/src
cp -r src/ json-schema_snapshot/src
+rm json-schema_snapshot/src/schema.json | bash |
d_bash_16529 | ---
+++
@@ -24,7 +24,7 @@
SED="sed -i.bak -r -e"
fi
-PROVIDER_URL="https:\/\/github.com\/terraform-providers\/terraform-provider-random"
+PROVIDER_URL="https:\/\/github.com\/terraform-providers\/terraform-provider-random\/issues"
$SED "s/GH-([0-9]+)/\[#\1\]\($PROVIDER_URL\/\1\)/g" -e 's/\[\[#(.+)([0-9])\)]$/... | bash |
d_bash_16530 | ---
+++
@@ -23,10 +23,22 @@
virtualenv -p /usr/local/bin/python env
source env/bin/activate
+# install cython separately (doesn't work in requirements.txt for me)
+pip install- --upgrade cython
+
# install the required modules
#pip install --ignore-installed --upgrade -r requirements.txt
pip install --ignore-i... | bash |
d_bash_16531 | ---
+++
@@ -31,5 +31,5 @@
echo "[downloading $url]"
wget --quiet "$url" >/dev/null 2>&1
fi
- kenken "$file"
+ kenken "$file" && rm "$file"
done | bash |
d_bash_16532 | ---
+++
@@ -5,7 +5,7 @@
VERSION="VERSION-GOES-HERE"
DOWNLOAD_URL=${BATECT_DOWNLOAD_URL:-"DOWNLOAD-URL-GOES-HERE"}
-ROOT_CACHE_DIR=${BATECT_CACHE_DIR:-"~/.batect/cache"}
+ROOT_CACHE_DIR=${BATECT_CACHE_DIR:-"$HOME/.batect/cache"}
CACHE_DIR="$ROOT_CACHE_DIR/$VERSION"
JAR_PATH="$CACHE_DIR/batect-$VERSION.jar"
| bash |
d_bash_16533 | ---
+++
@@ -11,7 +11,19 @@
## Parse command line
FILENAME=$1
-LANGCODE=$2
+MOZLANG=$2
+
+## Handle exceptions where Mozilla language definition doesn't equal Vidalia's
+case "$MOZLANG" in
+ 'es-ES') LANGCODE='es'
+ ;;
+ 'pt-PT') LANGCODE='pt'
+ ;;
+ 'zh-CN') LANGCODE='zh-cn'
+ ;;
+ *) LANGCOD... | bash |
d_bash_16534 | ---
+++
@@ -1 +1,5 @@
-export EDITOR='subl'
+# Only set this if we haven't set $EDITOR up somewhere else previously.
+if [ "$EDITOR" == "" ] ; then
+ # Use sublime for my editor.
+ export EDITOR='subl'
+fi | bash |
d_bash_16535 | ---
+++
@@ -1,4 +1,11 @@
#!/usr/bin/env bash
+
+echo "This script will build the openHABian Raspberry Pi image file."
+echo "That's probably not what you wanted to do."
+echo ""
+
+# Remove the following if you know what you are doing
+echo "Exiting."; exit 1
# Make sure only root can run our script
if [[ $EUID ... | bash |
d_bash_16536 | ---
+++
@@ -15,6 +15,14 @@
else
:
fi
+
+ for list in "chromium" "firefox";do
+ BROWSER=$(which $list 2> /dev/null)
+ if [ $? -eq 0 ];then
+ sudo ln -snf $BROWSER /usr/bin/x-www-browser
+ break
+ fi
+ done
}
install_extra | bash |
d_bash_16537 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/sh
+rm -rf js
echo -n "@REVISION =" > _revision.coffee
git log | grep Author: | wc -l >>_revision.coffee
cake.coffeescript build | bash |
d_bash_16538 | ---
+++
@@ -20,7 +20,7 @@
BASEDIR=$(dirname "$BASH_SOURCE")
ABSOLUTE_BASEDIR=$(realpath "$BASEDIR/..")
-DOCKER_IMAGE_GOLANG=marcnuri/golang-1.16-java11
+DOCKER_IMAGE_GOLANG=marcnuri/golang-1.17-java11
docker run \
--rm ... | bash |
d_bash_16539 | ---
+++
@@ -6,7 +6,7 @@
API_STAGE="beta"
WORKDIR="tmp"
-SWAGGER_FILE="${WORKDIR}/swagger.json"
+SWAGGER_FILE="${WORKDIR}/swagger.yaml"
SWAGGER_URI="s3://${ARTIFACTS_BUCKET}/api/${API_STAGE}/swagger.yaml"
CODEGEN_VERSION="2.2.2"
CODEGEN_URL="http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/\ | bash |
d_bash_16540 | ---
+++
@@ -1,5 +1,7 @@
runTests() {
- ./gradlew connectedPlayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notAnnotation=de.test.antennapod.IgnoreOnCi
+ ./gradlew connectedPlayDebugAndroidTest \
+ -Pandroid.testInstrumentationRunnerArguments.notAnnotation=de.test.antennapod.IgnoreOnCi ... | bash |
d_bash_16541 | ---
+++
@@ -1,8 +1,8 @@
# set nvcc as the underlying C++ compiler for Open MPI
-export OMPI_CXX=$TRILINOS_DIR/packages/kokkos/config/nvcc_wrapper
+export OMPI_CXX=$TRILINOS_DIR/packages/kokkos/bin/nvcc_wrapper
# set nvcc as the underlying C++ compiler for MPICH
-export MPICH_CXX=$TRILINOS_DIR/packages/kokkos/conf... | bash |
d_bash_16542 | ---
+++
@@ -1,5 +1,7 @@
#!/bin/bash
# https://github.com/phosphorjs/phosphor/wiki/TypeDoc-Publishing
+set -e
+
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "develop" ]]
then
echo "-- will build docs --" | bash |
d_bash_16543 | ---
+++
@@ -26,6 +26,8 @@
INSTALLER="Miniconda3-latest-Linux-x86_64.sh"
wget "https://repo.continuum.io/miniconda/${INSTALLER}"
bash "${INSTALLER}" -b -p "${CONDA_PATH}"
+# Update conda base to the latest.
+"${CONDA_PATH}/bin/conda" update -n base -c defaults conda
# Init python 2.7 environment.
"${CONDA_PATH}... | bash |
d_bash_16544 | ---
+++
@@ -12,6 +12,7 @@
ENV_VARIABLE=$(echo "$line" | sed -e "s/^$PREFIX//" | cut -f1 -d"=")
VALUE=$(echo "$line" | cut -d"=" -f2-)
sed -i "s/%7B%7B$ENV_VARIABLE%7D%7D/$VALUE/g" /app/index.html
+ sed -i "s/{{$ENV_VARIABLE}}/$VALUE/g" /app/index.html
done <<< "$ENV_VARIABLES"
nginx -g "daemon off;" | bash |
d_bash_16545 | ---
+++
@@ -6,6 +6,8 @@
# put in the following:
# ./tests/run_tests.sh
#
+
+set -x
pushd $WORKSPACE
| bash |
d_bash_16546 | ---
+++
@@ -19,4 +19,5 @@
exit 1
fi
+echo "Writing RelaxNG into $destination"
trang -Irnc -Orng $source $destination | bash |
d_bash_16547 | ---
+++
@@ -4,3 +4,6 @@
gd^() {
git diff $1^ $1
}
+gdt^() {
+ git difftool $1^ $1
+} | bash |
d_bash_16548 | ---
+++
@@ -13,10 +13,13 @@
extra_args="${extra_args} -e PYTHON_VERSIONS=${PYTHON_VERSIONS}"
fi
-for ARCH in i686 x86_64; do
+
+ARCHS=${ARCH:-"i686 x86_64"}
+
+for ARCH in ${ARCHS}; do
docker build --pull=true --rm=true -t simpleitk_manylinux_${ARCH} -f Dockerfile-${ARCH} .
- docker run --storage-o... | bash |
d_bash_16549 | ---
+++
@@ -1,4 +1,6 @@
#! /bin/sh
+
+# Must source zshrc before executing this file
ln -s $DOTS/bootstrap_gitconfig.sh .bootstrap_gitconfig.sh
# aliases managed by git .aliases file and zsh git plugin
@@ -12,8 +14,8 @@
git config --global push.default tracking
git config --global rerere.enabled true
-git co... | bash |
d_bash_16550 | ---
+++
@@ -24,7 +24,7 @@
init_manuals "$PROJECT"
setup_manuals "$PROJECT"
;;
- django-openstack-auth)
+ django_openstack_auth)
setup_django_openstack_auth
;;
horizon) | bash |
d_bash_16551 | ---
+++
@@ -41,4 +41,4 @@
write_params $tmpfile "lre1-aws/ert-upgrade-params" "upgrade_ert_aws_current_params"
write_params $tmpfile "lre1-gcp/install-pcf-params" "install_pcf_gcp_current_params"
-fly -tc02 sp -p pcf-pipelines -c ci/pcf-pipelines/pipeline.yml -l $tmpfile -l <(lpass show pcf-pipelines-params --not... | bash |
d_bash_16552 | ---
+++
@@ -10,8 +10,6 @@
sudo apt-add-repository -y ppa:snwh/pulp
# Atom editor
sudo add-apt-repository -y ppa:webupd8team/atom
-# Neovim
-sudo add-apt-repository -y ppa:neovim-ppa/unstable
# Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo ... | bash |
d_bash_16553 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
find . -type d -name build | xargs rm -rf
-
+find . -type d -name xtend-gen | xargs rm -rf | bash |
d_bash_16554 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash -xue
function install_deb {
- sudo aptitude install -y python-dev libffi-dev
+ sudo aptitude install -y python-dev libffi-dev gcc
}
function install_centos { | bash |
d_bash_16555 | ---
+++
@@ -8,20 +8,8 @@
unset MANPATH
source ${PERLBREW_ROOT}/etc/bashrc
-#if [[ -z "$PERLBREW_BASHRD_VERSION" ]]
-# then
-# echo "if branch taken"
-# source ~/perl5/perlbrew/etc/bashrc
-#fi
-
-#Switch to the right version and filter useless message.
-
-perlbrew use perl-5.16.3@mediacloud 2> >(grep -v 'ma... | bash |
d_bash_16556 | ---
+++
@@ -1,4 +1,7 @@
# apm upgrade --no-confirm
+
+# Only use as much as you need. Every package will slow down the Startup of Atom
+# See Timecop (Ctrl + Shift + P, then type Timecop)
### general
apm install editorconfig
@@ -44,4 +47,4 @@
### color viewer
# apm install pigments
-apm install color-picker
... | bash |
d_bash_16557 | ---
+++
@@ -4,6 +4,12 @@
set -o pipefail
+echo "Installing Xcode Command Line Tools"
+xcode-select --install
+
+echo "Seting up cocoapods"
+pod setup
+
echo "Installing vim plugins"
git submodule init
git submodule update | bash |
d_bash_16558 | ---
+++
@@ -1,6 +1,25 @@
#!/bin/bash
set -e
+
+for aag in *.aag; do
+ # Since ABC cannot read *.aag, read the *.aig instead
+ # (which would have been created by the reference aig2aig utility)
+ ../../yosys-abc -c "read -c ${aag%.*}.aig; write ${aag%.*}_ref.v"
+ ../../yosys -p "
+read_verilog ${aag%.*... | bash |
d_bash_16559 | ---
+++
@@ -2,7 +2,8 @@
#
# Drive HTML generation for a Python manual.
#
-# This is probably *not* useful outside of the standard Python documentation.
+# This is probably *not* useful outside of the standard Python documentation,
+# but suggestions are welcome and should be sent to <python-docs@python.org>.
#
#... | bash |
d_bash_16560 | ---
+++
@@ -1,2 +1,2 @@
-export PATH="./bin:$HOME/bin:$ZSH/bin:$HOME/.rbenv/shims:/usr/local/bin:/usr/local/sbin:$HOME/.sfs:$PATH"
+export PATH="./bin:$HOME/bin:$ZSH/bin:$HOME/.rbenv/shims:$HOME/.cargo/bin:/usr/local/bin:/usr/local/sbin:$HOME/.sfs:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local... | bash |
d_bash_16561 | ---
+++
@@ -10,10 +10,10 @@
# Upgrade oh_my_zsh
_oh_my_zsh_upgrade() {
- upgrade_oh_my_zsh
+ bash "${HOME}/.oh-my-zsh/tools/upgrade.sh"
}
# Remove oh_my_zsh
_oh_my_zsh_down() {
- uninstall_oh_my_zsh
+ bash "${HOME}/.oh-my-zsh/tools/uninstall.sh"
} | bash |
d_bash_16562 | ---
+++
@@ -3,7 +3,7 @@
openssl aes-256-cbc -K $encrypted_cdaf52794220_key -iv $encrypted_cdaf52794220_iv -in .travis/signing.gpg.enc -out signing.gpg -d
gpg --import signing.gpg
-GPG_EXECUTABLE=gpg mvn -DskipTests -s ./.travis/settings.xml -pl ./,crd-generator,api -P ossrh clean package gpg:sign deploy
+GPG_EXE... | bash |
d_bash_16563 | ---
+++
@@ -16,9 +16,3 @@
./zoe.py user-rm test
echo "Export an application template"
./zoe.py pre-app-export hdfs > /tmp/zoe-hdfs.json
-echo "Upload the template as a new application"
-./zoe.py app-new /tmp/zoe-hdfs.json
-echo "Get the application back from Zoe"
-./zoe.py app-get hdfs
-echo "Delete the app"
-./zo... | bash |
d_bash_16564 | ---
+++
@@ -1,3 +1,5 @@
+#!/bin/sh
+
#
# Copyright 2011-2012 Jeff Bush
#
@@ -19,9 +21,19 @@
# then disassembling it and comparing the results. assembler-test.asm
# is manually generated to hit all of the major instruction forms
#
+
../../tools/assembler/assemble -o assembler-test.hex assembler-test.asm
-../... | bash |
d_bash_16565 | ---
+++
@@ -13,3 +13,8 @@
export RBENV_ROOT="/usr/local/var/rbenv"
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
+
+# OpenSSL override
+# Use the curl-ca bundle until OS X updates their certs
+
+export SSL_CERT_FILE="/usr/local/share/ca-bundle.crt" | bash |
d_bash_16566 | ---
+++
@@ -1,9 +1,9 @@
#! /bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd );
-FILE="$DIR/web/config/$2".env
-START=$DIR"/"$1
-USAGE="Usage: ./start.sh <startscript> <config>"
+FILE="$DIR/web/config/$1".env && shift
+START="$DIR/$1" && shift
+USAGE="Usage: ./start.sh <config> <startscript> [startscr... | bash |
d_bash_16567 | ---
+++
@@ -1,6 +1,6 @@
#! /usr/bin/env bash
-npm rebuild
+# npm rebuild
echo ">> Starting server..."
| bash |
d_bash_16568 | ---
+++
@@ -5,7 +5,7 @@
export JRE_HOME=/usr/lib/jvm/java-8-oracle
# Install gremlin-server
-wget --no-check-certificate -O $HOME/apache-tinkerpop-gremlin-server-$GREMLIN_SERVER_VERSION-bin.zip https://www.apache.org/dyn/closer.cgi?action=download&filename=tinkerpop/$GREMLIN_SERVER_VERSION/apache-tinkerpop-gremli... | bash |
d_bash_16569 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
## Script Variables
-REPODIR=$(pwd);
+REPO_D=$(pwd);
USER_SHELL=$(getent passwd $LOGNAME | cut -d : -f 7);
USE_BASH=$(test "$USER_SHELL" = "/bin/bash");
@@ -17,30 +17,32 @@
#### TODO: Save the affected files in a backup directory
# Bash
if $USE_BASH;
- then ... | bash |
d_bash_16570 | ---
+++
@@ -4,8 +4,10 @@
git clone git://github.com/sstephenson/rbenv.git "$HOME/.rbenv"
# Load rbenv on login
-echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> "$HOME/.profile"
-echo 'eval "$(rbenv init -)"' >> "$HOME/.profile"
+cat > "$HOME/.profile" <<'EOF'
+export PATH="$HOME/.rbenv/bin:$PATH"
+eval "$(rbenv in... | bash |
d_bash_16571 | ---
+++
@@ -1,5 +1,8 @@
#!/bin/bash
-export DYLD_LIBRARY_PATH=$PREFIX/lib
+CFLAGS=-I$PREFIX/include
make
-make install
+
+mv bamhash_checksum_bam $PREFIX/bin
+mv bamhash_checksum_fasta $PREFIX/bin
+mv bamhash_checksum_fastq $PREFIX/bin | bash |
d_bash_16572 | ---
+++
@@ -8,4 +8,3 @@
eval $cmd
fi
fi
-sed -i -e 's/#auth = true/auth = true/g' /etc/mongodb.conf | bash |
d_bash_16573 | ---
+++
@@ -5,15 +5,22 @@
if [[ $PACKER_BUILDER_TYPE =~ virtualbox ]]; then
echo "==> Installing VirtualBox guest additions"
- # Some of these packages should already have been installed in the kickstart
- dnf -y install kernel-headers-"$(uname -r)" kernel-devel-"$(uname -r)" gcc make perl
- # Need t... | bash |
d_bash_16574 | ---
+++
@@ -25,7 +25,7 @@
# Run consensus tests
echo "Running consensus tests..."
-./gradlew test --tests com.msgilligan.mastercoin.consensus.msc.ConsensusSpec
+./gradlew test --tests com.msgilligan.mastercoin.consensus.msc.*
GRADLESTATUS=$?
exit $GRADLESTATUS | bash |
d_bash_16575 | ---
+++
@@ -18,7 +18,10 @@
mkdir -p /boot.tmp
mkdir -p /root.tmp
-SKIP_WARNING=1 SKIP_BACKUP=1 BRANCH=stable WANT_PI4=1 SKIP_CHECK_PARTITION=1 BOOT_PATH=/boot.tmp ROOT_PATH=/root.tmp /usr/bin/rpi-update
+# Use this Firmware hash
+HASH=$1
+
+SKIP_WARNING=1 SKIP_BACKUP=1 BRANCH=stable WANT_PI4=1 SKIP_CHECK_PARTITIO... | bash |
d_bash_16576 | ---
+++
@@ -8,6 +8,9 @@
CADIR="/etcpki/ca-trus-source/anchors"
elif [ "$ID" = "ubuntu" ]; then
CADIR="/usr/local/share/ca-certificates"
+else
+ echo "$0: ERROR: UNKNOWN OS '$ID'"
+ exit 1
fi
mkdir -p $CADIR
@@ -23,3 +26,5 @@
cp $crt $CADIR/
done
update-ca-certificates
+
+exit 0 | bash |
d_bash_16577 | ---
+++
@@ -14,8 +14,8 @@
"Name": "'${dnsname}'.",
"Type": "A",
"AliasTarget": {
- "HostedZoneId": "Z35SXDOTRQ7X7K",
- "DNSName": "'${ctrlDnsName}'",
+ "HostedZoneId": "Z54BUX0B2EC7C",
+ "DNSName": "'${ctrlDnsName}'.",
"Evalua... | bash |
d_bash_16578 | ---
+++
@@ -1,7 +1,22 @@
#!/bin/bash
-# credit to: https://moquet.net/blog/distributing-php-cli/
+INSTALL_DIR=~/.cdev
+ICON_COMPLETE_COLOUR=`tput setaf 2`
+NO_COLOUR=`tput sgr0`
+
+ICON_COMPLETE="${ICON_COMPLETE_COLOUR}\xcf\xbe${NO_COLOUR}"
+
+TARGET_RELEASE_PATH="${INSTALL_DIR}/cdev-local.phar"
+TARGET_RELEASE... | bash |
d_bash_16579 | ---
+++
@@ -3,10 +3,13 @@
# Remove trailing whitespace, and replace tabs with the appropriate number of spaces
for file in `find . -name "*.hs"`; do
- echo "$file"; emacs --batch "$file" \
+ echo "$file"; emacs --batch -Q "$file" \
--eval '(setq-default indent-tabs-mode nil)' \
--eval '(wh... | bash |
d_bash_16580 | ---
+++
@@ -10,6 +10,7 @@
fi
RECIPE="${1}"
+DOCKER=echo "${RECIPE}" | cut -d "-" -f 1 # Allow e.g., a recipe called "inkscape-standalone" to use the "inkscape" Docker image
mkdir -p ./out/
@@ -17,7 +18,7 @@
# There is a Dockerfile, hence build using Docker
mv recipes/$RECIPE/Recipe ./out/Recipe
sed ... | bash |
d_bash_16581 | ---
+++
@@ -23,7 +23,7 @@
TAG=`git describe --tag --abbrev=0 upstream/master 2>/dev/null`
fi
echo "New version detected $TAG"
-rdopkg info $PKG |grep -A1 $version-uc
+rdopkg findpkg $PKG |grep -A1 $version-uc
#
read -n 2 | bash |
d_bash_16582 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-js=`cat ../lib/nbv.js | base64`
-html=`cat ../lib/scaffold.html | base64`
+js=`cat ../lib/nbv.js | base64 -w 0`
+html=`cat ../lib/scaffold.html | base64 -w 0`
cat stub.go | sed "s|%js%|$js|g" | sed "s|%html%|$html|g" > nbview.go
| bash |
d_bash_16583 | ---
+++
@@ -4,7 +4,7 @@
echo "This script must be run as root" 1>&2
exit 1
fi
-mkdir /tmp/deploy-setup
+mkdir -p /tmp/deploy-setup
pushd /tmp/deploy-setup
git clone https://github.com/sbearcsiro/deploy
cd deploy | bash |
d_bash_16584 | ---
+++
@@ -1,15 +1,13 @@
#!/bin/bash -xue
function install_deb {
- sudo aptitude install -y python-dev libffi-dev python-pip
+ sudo aptitude install -y python-dev libffi-dev
}
function install_centos {
# GCC installed automatically in debian because of recommended packages
# Doing that manual... | bash |
d_bash_16585 | ---
+++
@@ -22,10 +22,12 @@
if test -z "$ZEROMQ_BUILDS"; then
if ! [[ `uname` =~ CYGWIN ]]; then
- ZEROMQ_BUILDS="cc4py"
+ ZEROMQ_BUILDS=`getPythonBuild`
fi
fi
+ZEROMQ_BUILD=`getPythonBuild`
ZEROMQ_DEPS=
+ZEROMQ_UMASK=002
######################################################################
#
@@... | bash |
d_bash_16586 | ---
+++
@@ -1,14 +1,12 @@
#!/bin/sh
-# if the proxy is around, use it
-nc -z -w3 192.168.1.1 8123 && export http_proxy="http://192.168.1.1:8123"
OUTPUT_DIR="${VAGRANT_SUBSTRATE_OUTPUT_DIR:-substrate-assets}"
mkdir -p /vagrant/${OUTPUT_DIR}
chmod 755 /vagrant/substrate/run.sh
-TRAVIS=1 su vagrant -l -c 'brew... | bash |
d_bash_16587 | ---
+++
@@ -11,7 +11,7 @@
apt-get install -y git-core make automake gcc pkg-config bison flex php5-cli
# Install mandatory libraries
-apt-get install -y libpcre3-dev libfcgi-dev libedit-dev libbz2-dev libcunit1-dev
+apt-get install -y libpcre3-dev libfcgi-dev libedit-dev libbz2-dev libcunit1-dev libxml2-dev
# ... | bash |
d_bash_16588 | ---
+++
@@ -5,7 +5,6 @@
fi
if type "nvim" > /dev/null 2>&1; then
- rm -rf $HOME/.config/nvim $HOME/.vimrc
mkdir -p $HOME/.config/nvim
mkdir -p $HOME/.config/coc
@@ -17,14 +16,16 @@
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
nvim -u $PWD/nvim/config.d/init.vim +PlugInsta... | bash |
d_bash_16589 | ---
+++
@@ -11,6 +11,12 @@
else
echo "Linking $2."
fi
+
+ if [ ! -d $(dirname $2) ]; then
+ echo "Making directory $(dirname $2)"
+ mkdir -p $(dirname $2)
+ fi
+
if [[ $1 == /* ]]; then
ln -s $1 $2
else | bash |
d_bash_16590 | ---
+++
@@ -4,7 +4,7 @@
fi
# see this bug report for more info https://github.com/cloudbec/nuagebec-docker-ubuntu/issues/1
-UPCASED_UPCASED_SSH_SERVER = `echo "$SSH_SERVER" | tr '[a-z]' '[A-Z]'`
+UPCASED_UPCASED_SSH_SERVER=`echo "$SSH_SERVER" | tr '[a-z]' '[A-Z]'`
if [ "$UPCASED_SSH_SERVER" == "FALSE" ] || [ ... | bash |
d_bash_16591 | ---
+++
@@ -9,4 +9,4 @@
gsettings set org.gnome.desktop.interface enable-animations false
# Set desktop background color
-gsettings set org.gnome.desktop.background primary-color '#221a15'
+gsettings set org.gnome.desktop.background primary-color '#1a1410' | bash |
d_bash_16592 | ---
+++
@@ -4,7 +4,6 @@
export LIBMESH_DIR=$SCRIPT_DIR/../libmesh/installed
export METHODS=${METHODS:="opt oprof dbg"}
-export JOBS=${JOBS:=1}
cd $SCRIPT_DIR/..
@@ -30,5 +29,10 @@
--disable-warnings \
--enable-openmp $*
-make -j $JOBS
+# let LIBMESH_JOBS be either MOOSE_JOBS, or... | bash |
d_bash_16593 | ---
+++
@@ -13,8 +13,9 @@
PATH="$PATH:$HOME/perl5/bin";
PATH="$HOME/.yarn/bin:$PATH"
PATH="$HOME/.config/kubectx:$PATH"
- # PATH=".git/safe/../../bin:$PATH"
- # PATH=".git/safe/../../node_modules/.bin:$PATH"
+ PATH=".git/safe/../../bin:$PATH"
+ PATH=".git/safe/../../node_modules/.bin:$PATH"
+ PATH="$PAT... | bash |
d_bash_16594 | ---
+++
@@ -9,9 +9,10 @@
# Run Gulp
gulp
-rm -R _dist/* #clean the directory to remove no longer used files
-cp -R dist/* _dist # copy over the new, correct build
-cd _dist # enter the directory to begin the commit
+cd _dist/
+ls | grep -v .git | parallel rm -R #clean the directory to remove no longer used files
... | bash |
d_bash_16595 | ---
+++
@@ -10,16 +10,19 @@
# run docker compose up for docker tests
sudo docker-compose -f travis/docker-compose.test.yml up -d
+# waiting 10 secs for fully operational cluster
+sleep 10
+
# cat kafka logs to check things are working
-sudo docker-compose ps
-sudo docker-compose logs kafka_monitor
-sudo docker-c... | bash |
d_bash_16596 | ---
+++
@@ -12,8 +12,8 @@
export MPM_MAXCONNECTIONS=${MPM_CONNECTIONS:-0}
# SMTP
-export SMTP_HOST=${SMTP_HOST-${SMTP_PORT_25_TCP_ADDR:-'localhost'}}
-export SMTP_PORT=${SMTP_PORT-${SMTP_PORT_25_TCP_PORT:-'25'}}
+export SMTP_HOST=${SMTP_PORT_25_TCP_ADDR-${SMTP_HOST:-'localhost'}}
+export SMTP_PORT=${SMTP_PORT_25_... | bash |
d_bash_16597 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-CC=avr-gcc CXX=c++ LINK="-mmcu=atmega128 -Wl,-gc-sections" COMP="-O2 -ggdb -Wa,-mmcu=atmega128 -mmcu=atmega128 -ffunction-sections -fdata-sections" cmake -DARCH=AVR -DWORD=8 -DOPSYS=NONE -DSEED=LIBC -DSHLIB=OFF -DSTBIN=ON -DTIMER=NONE -DWITH="DV;BN;FB;EB;PB;CP;MD" -DBENCH=20 -DT... | bash |
d_bash_16598 | ---
+++
@@ -21,8 +21,8 @@
alias week="date +%V"
# IP addresses
-alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias localip="ipconfig getifaddr en0"
+alias externalip="dig +short myip.opendns.com @resolver1.opendns.com"
# Show sizes for all files and folders in current location
alias howbig="... | bash |
d_bash_16599 | ---
+++
@@ -12,6 +12,7 @@
git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
git merge -s recursive -X theirs TEMP_BRANCH -m "Merge into gh-pages: ${SHA}" || true
git status --porcelain | awk '{if ($1=="DU") print $2}' | xargs git rm
+ git add .
git commit -m "Merge into gh-pages: ${SHA}... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.