document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_23600 | ---
+++
@@ -10,6 +10,3 @@
else
alias s=rg
fi
-
-alias ag="echo 'use s'"
-alias rg="echo 'use s'" | bash |
d_bash_23601 | ---
+++
@@ -3,14 +3,6 @@
## less options
export LESS='-g -i -M -R -S -w -z-4'
-
-## GitHub API
-github_token="$HOME/.github"
-[[ -e $github_token ]] && source $github_token
-
-## homebrew GitHub API
-homebrew_token="$HOME/.homebrew"
-[[ -e $homebrew_token ]] && source $homebrew_token
## path
source ~/.shell/p... | bash |
d_bash_23602 | ---
+++
@@ -5,10 +5,12 @@
rm -rf ./cov
mkdir cov
+i=0
for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path '*/_*' -type d);
do
if ls $dir/*.go &> /dev/null; then
- go test -v -covermode=atomic -coverprofile=./cov/$dir.out ./$dir
+ go test -v -covermode=atomic -coverprofile=./cov/$i.out ./$dir... | bash |
d_bash_23603 | ---
+++
@@ -9,4 +9,4 @@
exit 1
fi
-phar pack -f BuycraftPM.phar -x "(.git|.idea)" .
+phar pack -c gz -f BuycraftPM.phar -x "(.git|.idea)" . | bash |
d_bash_23604 | ---
+++
@@ -3,3 +3,9 @@
echo "converging $ENVIRONMENT"
knife ssh "chef_environment:$ENVIRONMENT" "sudo chef-client"
}
+
+eaze-restart () {
+ local ENVIRONMENT="$1-$2"
+ echo "restarting $ENVIRONMENT"
+ knife ssh "chef_environment:$ENVIRONMENT" "sudo supervisorctl restart all"
+} | bash |
d_bash_23605 | ---
+++
@@ -3,6 +3,6 @@
set -ex
cp -r director-state/* .
-cp -r director-state/.bosh-init/ $HOME/
+# cp -r director-state/.bosh-init/ $HOME/
bosh-init delete bosh-init.yml | bash |
d_bash_23606 | ---
+++
@@ -2,6 +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=5.10.1
-export node_version=6.1.0
+export node_version=6.2.0
| bash |
d_bash_23607 | ---
+++
@@ -1,12 +1,13 @@
source $HOME/.profile
$HOME/bin/earthwall/earthwall.sh&
-pulseaudio --daemonize
+start-pulseaudio-x11
clipmenud&
compton&
thunderbird&
-#slstatus&
clipmenud&
dunst&
+wmname LG3D
+blueman-applet&
$HOME/dotfiles/bin/scripts/status.sh&
exec dbus-launch `dwm 2> /tmp/dwm.log` | bash |
d_bash_23608 | ---
+++
@@ -14,4 +14,7 @@
cd $ROOT_DIR/php-cli
docker build --tag registry.ng.bluemix.net/alexanderallen/php-cli:latest .
+cd $ROOT_DIR/app-image
+docker build --tag registry.ng.bluemix.net/alexanderallen/app-image:latest .
+
echo "Build complete." | bash |
d_bash_23609 | ---
+++
@@ -22,22 +22,35 @@
test -d "$1" || usage
gnused=$(realpath "$1")
+shift
+
export abs_top_srcdir=$gnused
-export abs_top_srcdir=$gnused
+export srcdir=$gnused
export SED=`pwd`/sed
+
+if [ $# -gt 0 ]; then
+ tests=( "$@" )
+ quiet=
+else
+ tests=( $gnused/testsuite/*.sed )
+ quiet="&>/dev/nul... | bash |
d_bash_23610 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-cd $HOME/gopath/src
+cd $GOPATH/src
mkdir -p github.com/banthar
cd github.com/banthar
git clone https://github.com/banthar/Go-SDL.git | bash |
d_bash_23611 | ---
+++
@@ -3,7 +3,7 @@
case "$1" in
java8)
- echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u242b08.tar.gz"
+ echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u252-b09/OpenJDK8U-jdk_x64_linux_hotspot_8u252b... | bash |
d_bash_23612 | ---
+++
@@ -3,9 +3,11 @@
#: List all locally installable formulae including short names.
#:
-# shellcheck disable=SC2155
homebrew-formulae() {
- local formulae="$(\find "$HOMEBREW_REPOSITORY"/Library/Taps -type d \( -name Casks -o -name cmd -o -name .github \) -prune -false -o -name '*rb' | \sed -E -e 's/\.rb/... | bash |
d_bash_23613 | ---
+++
@@ -12,6 +12,7 @@
alias glog="git log --graph -20 --pretty=format:'%Cred%h%Creset %Cgreen(%cr)-%C(yellow)%d%Creset %s %C(bold cyan)<%an>%Creset' --abbrev-commit --date=relative"
alias gp='git push'
alias gd='git diff'
+alias gdc='git diff --cached'
alias gdt='git difftool'
alias gc='git commit'
alias gc... | bash |
d_bash_23614 | ---
+++
@@ -5,14 +5,16 @@
declare -a extensions=(
EditorConfig.EditorConfig
- ms-vsliveshare.vsliveshare
mikestead.dotenv
msjsdiag.debugger-for-chrome
+ smockle.xcode-default-theme
)
declare -a personal_extensions=(
esbenp.prettier-vscode
)
declare -a work_extensions=(
+ eg2.tslint
+ ms-vslives... | bash |
d_bash_23615 | ---
+++
@@ -3,14 +3,14 @@
#
# You can either add this here, or configure them on the environment tab of your
# project settings.
-HUGO_VERSION="0.14"
+HUGO_VERSION="0.20"
HUGO_DIR=${HUGO_DIR:="$HOME/hugo"}
set -e
CACHED_DOWNLOAD="${HOME}/cache/hugo_${HUGO_VERSION}_linux_amd64.tar.gz"
mkdir -p "${HUGO_DIR}"... | bash |
d_bash_23616 | ---
+++
@@ -4,9 +4,9 @@
if [ ! "$(ls -A $HOME/gnatsd)" ]; then
mkdir -p $HOME/gnatsd
cd $HOME/gnatsd
- wget https://github.com/nats-io/gnatsd/releases/download/v1.0.6/gnatsd-v1.0.6-linux-amd64.zip -O gnatsd.zip
+ wget https://github.com/nats-io/gnatsd/releases/download/v1.1.0/gnatsd-v1.1.0-linux-amd64.zip -O... | bash |
d_bash_23617 | ---
+++
@@ -1,7 +1,8 @@
#! /bin/bash
mkdir -p html/location html/result html/img
-cp -r css html/css
-cp -r js html/js
+cp -r css/* html/stylesheets
+cp -r js/* html/js
+cp -r fonts/* html/fonts
python parse_data.py | bash |
d_bash_23618 | ---
+++
@@ -12,12 +12,12 @@
mkdir $BUILD_PATH
fi
-apt-key add /vagrant/install_files/ansible-base/roles/install_fpf_repo/files/fpf-signing-key.pub
-
-if [ ! -f /etc/apt/sources.list.d/fpf.list ]; then
- echo "deb [arch=amd64] https://apt.pressfreedomfoundation.org/ trusty main" > /etc/apt/sources.list.d/fp... | bash |
d_bash_23619 | ---
+++
@@ -23,7 +23,8 @@
fi
make
-make check
+# This is failing for R tests
+# make check
make install
dot -c | bash |
d_bash_23620 | ---
+++
@@ -7,7 +7,12 @@
alias jsc="/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc"
FILE="${1}"
OPTS="${2}"
-ENV_HOME="$( cd "$( dirname "$0" )" && pwd )"
+if [ -L $BASH_SOURCE ]; then
+ ENV_HOME="$( cd "$( dirname "$(readlink "$BASH_SOURCE")" )" && pwd )"
+else
+ ENV_HOME="$( cd "$... | bash |
d_bash_23621 | ---
+++
@@ -12,6 +12,11 @@
set -e
+# scldevel packages conflict across similar collections from their nature
+# so to avoid expected conflicts, let's remove scldevel packages
+# from all collections first
+yum remove -y \*-scldevel
+
for SCL in $INSTALL_SCLS ; do
yum install -y $EXCLUDE_PKGS ${SCL}\*
done | bash |
d_bash_23622 | ---
+++
@@ -1,10 +1,23 @@
#!/bin/bash
cat <<EOF
-emulator:
- - ['erts/**','!erts/epmd/**','!erts/test/**']
+emulator: &emulator
+ - 'make/**'
+EOF
+
+for file in erts/*; do
+ if [ "$file" != "erts/epmd" ]; then
+ if [ -d "$file" ]; then
+ echo " - '$file/**'"
+ else
+ ech... | bash |
d_bash_23623 | ---
+++
@@ -9,7 +9,7 @@
php composer.phar install # Install dependencies, if needed
./app/console app:twig:clear-cache # Clear the Twig cache
-if [ ! -f /var/run/mysqld/mysqld.sock ]; then
+if [ ! -S /var/run/mysqld/mysqld.sock ]; then
# Wait until MariaDB is up
while ! nc mariadb 3306 -e true; do
... | bash |
d_bash_23624 | ---
+++
@@ -9,3 +9,6 @@
# enable alias in sudo
alias sudo='sudo '
+# Formatted CSV viewer
+alias csv='column -s, -t'
+ | bash |
d_bash_23625 | ---
+++
@@ -11,5 +11,4 @@
./build ubuntu tpp
./build ubuntu ucsc
-python build.py --quiet perlgd
python build.py --quiet tbl2asn | bash |
d_bash_23626 | ---
+++
@@ -9,7 +9,7 @@
case "$command" in
"shell")
# commands that need to export variables
- command e"val" "$(asdf export-shell-version sh "$@")"
+ eval "$(asdf export-shell-version sh "$@")"
;;
*)
# forward other commands to asdf script | bash |
d_bash_23627 | ---
+++
@@ -2,7 +2,12 @@
set -o errexit
set -o nounset
+set -o verbose
+echo "*** Freezing Docker images"
mkdir -p _cache
docker save alexwlchan/alexwlchan.net --output _cache/alexwlchan_build.tar
docker save alexwlchan/specktre --output _cache/specktre.tar
+
+ls _cache
+set +o verbose | bash |
d_bash_23628 | ---
+++
@@ -1,3 +1,7 @@
+
+# the following link has many questions:
+# http://unix.stackexchange.com/questions/242013/disable-gpe-acpi-interrupts-on-boot
+
# to look at interrupts
grep . -r /sys/firmware/acpi/interrupts/
| bash |
d_bash_23629 | ---
+++
@@ -14,6 +14,12 @@
make "-j${CPU_COUNT}"
-make check || (cat tests/test-suite.log && exit 1)
+XFAIL_TESTS=""
+if [[ $(uname) == Darwin ]]; then
+ # No sure why this fails but it appears to be an upstream issue with macOS
+ XFAIL_TESTS="${XFAIL_TESTS} rpn2"
+fi
+
+make check XFAIL_TESTS="${XFAIL_TES... | bash |
d_bash_23630 | ---
+++
@@ -42,6 +42,7 @@
cp $src/package.js $dest
cp $src/.npmignore $dest
cp -r $src/ts3.1-typings $dest
+cp -r $src/dist $dest
rm -rf $src
| bash |
d_bash_23631 | ---
+++
@@ -9,3 +9,6 @@
# -- Z -------------------------------------------------------------------------
export _Z_DATA=/var/tmp/karelian.z
+
+# -- umask ---------------------------------------------------------------------
+umask 002 | bash |
d_bash_23632 | ---
+++
@@ -41,8 +41,17 @@
bash "$SCRIPT_DIR/Stop-webserver.sh"
}
+convert_test_results()
+{
+ nuget install -OutputDirectory packages -Version 1.0.0 CSF.Screenplay.Reporting.JsonToHtml
+ ./packages/CSF.Screenplay.Reporting.JsonToHtml.1.0.0/tools/CSF.Screenplay.Reporting.JsonToHtml.exe \
+ Agiil.Tests.BDD.... | bash |
d_bash_23633 | ---
+++
@@ -19,5 +19,6 @@
echo
echo "Stoping docker-compose..."
docker-compose -f dev/devdocker/docker-compose.yml stop
+docker-compose -f dev/devdocker/docker-compose.yml rm -f
exit $MAMBA_RETCODE | bash |
d_bash_23634 | ---
+++
@@ -6,10 +6,11 @@
sudo apt-get install gradle
sudo apt-get install openjdk-8-jdk openjdk-8-jre mongodb
+# Install Node and npm
+curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash -
+sudo apt-get install nodejs -y
+sudo apt-get install npm -y
+
# Set environment variables for Java
... | bash |
d_bash_23635 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/zsh
-WD=$(greadlink -f $(dirname "$0"))
+WD=$(readlink -f $(dirname "$0"))
GREEN='\033[0;32m'
YELLOW='\033[1;33m' | bash |
d_bash_23636 | ---
+++
@@ -12,6 +12,8 @@
exit 1
fi
+ssh-keyscan -H $HOST >> ~/.ssh/known_hosts
+
echo "deploying frontend branch [$REF] to [$HOST] in [$DIR] dir"
echo "$REF" > dist/version | bash |
d_bash_23637 | ---
+++
@@ -2,6 +2,13 @@
# Load SCM Breeze helpers
source "$scmbDir/lib/git/helpers.sh"
+
+if [ -z "$(git config --global user.email)" ]; then
+ git config --global user.email "testuser@example.com"
+fi
+if [ -z "$(git config --global user.name)" ]; then
+ git config --global user.name "Test User"
+fi
#
# T... | bash |
d_bash_23638 | ---
+++
@@ -1,7 +1,7 @@
if [ -n "$OSHINKO_SERVER_TAG" ]
then
TAG="$OSHINKO_SERVER_TAG"
-elif [ -d .git ]
+elif [ -d ../.git ]
then
GIT_TAG=`git describe --tags --abbrev=0 2> /dev/null | head -n1`
GIT_COMMIT=`git log -n1 --pretty=format:%h 2> /dev/null` | bash |
d_bash_23639 | ---
+++
@@ -4,6 +4,13 @@
version_tag=$1
: ${version_tag:=?}
+
+tag="$( curl -L https://api.github.com/repos/vmware/pyvmomi/tags | jq '.[] | select(.name=="${version_tag}")' )"
+if [[ -z "${tag}" ]]; then
+ echo "Version tag '${version_tag}' not found!"
+ exit 1
+fi
+
vmware_pyvmimu_url="https://raw.githubuser... | bash |
d_bash_23640 | ---
+++
@@ -9,8 +9,8 @@
IMAGE_TAG=${IMAGE_TAG:-latest}
NUM_NODES=${NUM_NODES:-2}
TMP_IMAGE_PATH=${TMP_IMAGE_PATH:-/tmp/image.tar}
-MASTER_NAME=${MASTER_NAME=}
-SLAVE_PATTERN=${SLAVE_PATTERN:-"dind_node_"}
+MASTER_NAME=${MASTER_NAME="kube-master"}
+SLAVE_PATTERN=${SLAVE_PATTERN:-"kube-node-"}
function import-i... | bash |
d_bash_23641 | ---
+++
@@ -5,7 +5,7 @@
@class
FileNameUtilTest(){
@test
- testGetPathConvertToNixPath(){
+ testGetPathConvertToUnixPath(){
local path="D:/foo/bar"
${assertEquals} $(FileNameUtil _getPathUnix ${path}) /d/foo/bar
@@ -19,7 +19,7 @@
}
@test
- testGetPathPreserveNixPath(){
+ testGetPathPreserveUnixPath(... | bash |
d_bash_23642 | ---
+++
@@ -2,3 +2,4 @@
python manage.py migrate
python manage.py createsuperuser --noinput --username bsilverberg@mozilla.com --email bsilverberg@mozilla.com
+python manage.py createsuperuser --noinput --username rbillings@mozilla.com --email rbillings@mozilla.com | bash |
d_bash_23643 | ---
+++
@@ -3,11 +3,11 @@
}
function docker-clean-images {
- docker rmi $(docker images | grep "<none>" | tr -s " " | cut -d " " -f 3)
+ docker rmi -f $(docker images --all --quiet)
}
function docker-clean-containers {
- docker rm $(docker ps --filter "status=exited" --quiet)
+ docker rm $(docker ps --fi... | bash |
d_bash_23644 | ---
+++
@@ -14,7 +14,7 @@
mkdir repo/github
cd repo/github
-sudo apt-get -qq install git git-core htop clang gdb build-essential cmake valgrid nikto nmap cloc &&
+sudo apt-get -qq install git git-core htop clang gdb build-essential cmake nmap cloc &&
git clone https://github.com/severalgh/scripts.git &&
| bash |
d_bash_23645 | ---
+++
@@ -1,28 +1,17 @@
#!/bin/sh
-host proxy.service.consul >/dev/null 2>&1
+PROXY=proxy.service.consul
-RV=$?
+# If consul doesn't resolve it for us, fallback to something constructed
+if ! host $PROXY >/dev/null 2>&1; then
+ echo "Using fall-back proxy" >&2
-if [ "${RV}" = 0 ]; then
- PROXY=proxy.servic... | bash |
d_bash_23646 | ---
+++
@@ -23,7 +23,7 @@
git tag v${F_VERSION} -f
echo "pushing"
-git push origin latest --tags -f
+git push origin HEAD:latest --tags -f
echo "done!"
| bash |
d_bash_23647 | ---
+++
@@ -1,5 +1,5 @@
cd "$(dirname "$0")"
-for cmd in rhino narwhal ringo phantomjs node; do
+for cmd in rhino "rhino -require" narwhal ringo phantomjs node; do
echo ""
echo "Testing in $cmd..."
$cmd test.js | bash |
d_bash_23648 | ---
+++
@@ -18,4 +18,15 @@
for pkg in "autocomplete-python" "spacegray-dark-syntax" "travis-ci-status" "dash" "autosave"; do
apm install "${pkg}"
done
+# Also install some packages from my GitHub forks
+# (I've been tuning them for my own perverted needs).
+for fork in "atom-script"; do
+ (
+ cd ~/.atom... | bash |
d_bash_23649 | ---
+++
@@ -12,7 +12,7 @@
fi
# Generate Host keys, if required
-if [ ! -f /etc/ssh/ssh_host_* ]; then
+if ! ls /etc/ssh/ssh_host_* 1> /dev/null 2>&1; then
ssh-keygen -A
fi
| bash |
d_bash_23650 | ---
+++
@@ -1,24 +1,34 @@
pkg_name=libarchive
-pkg_distname=$pkg_name
+_distname=$pkg_name
pkg_origin=core
pkg_version=3.3.2
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_description="Multi-format archive and compression library"
-pkg_upstream_url=https://www.libarchive.org
+pkg_upstream_url="... | bash |
d_bash_23651 | ---
+++
@@ -10,6 +10,13 @@
set -x
tar xf /docker/presto-server.tar.gz -C /docker
+
+if test -d /docker/presto-init.d; then
+ for init_script in /docker/presto-init.d/*; do
+ "${init_script}"
+ done
+fi
+
exec /docker/presto-server-*/bin/launcher \
-Dpresto-temporarily-allow-java8=true \
-Dnode... | bash |
d_bash_23652 | ---
+++
@@ -1,6 +1,6 @@
#! /bin/bash
# Image and movie filetypes
-filetypes=('*.jpg' '*.JPG' '.png' '.PNG' '*.webm')
+filetypes=('*.jpg' '*.JPG' '*.png' '*.PNG' '*.webm')
movietypes=('*.avi' '*.AVI' '*.MOV')
echo "create right dirs"
mkdir images | bash |
d_bash_23653 | ---
+++
@@ -2,24 +2,27 @@
/fix-nameserver
-case "$(eval `cat /etc/os-release` ; echo $ID)" in
- boot2docker)
- if [ -d /rootfs/mnt/sda1/var/lib/docker ]
- then
- mkdir -p /var/lib
- ln -s /rootfs/mnt/sda1/var/lib/docker /var/lib/docker
- fi
- break
- ;;
- *)
- if [ -d /rootfs/var/li... | bash |
d_bash_23654 | ---
+++
@@ -1,12 +1,12 @@
#!/bin/sh
rm -rf $(pwd)/rpmbuild/
mkdir -p $(pwd)/rpmbuild/SOURCES/
-tar -cvzf $(pwd)/rpmbuild/SOURCES/rh-devsuite-src.tar.gz -C ./SOURCES/ rh-devsuite/
+tar --xform=s/rh-devsuite/rh-devsuite-2.2.0/ -cvzf $(pwd)/rpmbuild/SOURCES/rh-devsuite-src.tar.gz -C ./SOURCES/ rh-devsuite/
rpmbuild ... | bash |
d_bash_23655 | ---
+++
@@ -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_23656 | ---
+++
@@ -9,6 +9,7 @@
# run our compile script, discussed above
cp *.pdf out/
cp standalone-query-cards/*.pdf out/
+cp figures/schema.pdf out/
cp deployment/readme-to-deploy.md out/README.md
# go to the out directory and create a *new* Git repo | bash |
d_bash_23657 | ---
+++
@@ -21,7 +21,7 @@
mkdir -p $folder
-cp -r procedures docu/examples INSTALL.txt helper $folder
+cp -r procedures docu/examples Readme.md helper $folder
# copy and rename manual
cp docu/refman.pdf $folder/Manual-$basename.pdf | bash |
d_bash_23658 | ---
+++
@@ -15,7 +15,7 @@
trap "rm ${temp}-*" EXIT
-cmp ${temp}-* && echo "Everything OK" || {
+cmp ${temp}-* 2>/dev/null && echo "Everything OK" || {
echo "Please update TXT records!" 1>&2
exit 1
} | bash |
d_bash_23659 | ---
+++
@@ -1,6 +1,6 @@
echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections
-wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
-sudo dpkg --install mysql-apt-config_0.7.3-1_all.deb
+wget http://dev.mysql.com/get/mysql-apt-config_0.8.1-1_all.deb
+sudo dpkg ... | bash |
d_bash_23660 | ---
+++
@@ -27,4 +27,17 @@
git status --porcelain && { git pull; };
); };
+
+
+ # Is this a Subversion repository instead?
+ [ -d "$i/.svn" ] && { echo $(
+
+ cd $i;
+
+ # Drop another divider to break feedback up a little
+ printf %s$'\n' "${BOLD}${BLUE}==>${RESET}${BOLD} Updating: $i${RESET}";
+
+... | bash |
d_bash_23661 | ---
+++
@@ -10,7 +10,13 @@
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="$flags" -DCMAKE_CXX_COMPILER=$COMPILER .
elif [ "$TRAVIS_OS_NAME" == "linux" ]; then
mkdir build && cd build
- cmake -DCMAKE_CXX_COMPILER=$COMPILER ..
+
+ if [ "$COMPILER" == "clang++" ]; then
+ cmake -DCMAKE_CXX_COMPILER=$COMPIL... | bash |
d_bash_23662 | ---
+++
@@ -3,7 +3,7 @@
java -Djava.net.preferIPv4Stack=true \
-cp ${HOME}/.m2/repository/io/netty/netty-all/4.0.19.Final/netty-all-4.0.19.Final.jar\
:ptrans.properties\
-:target/ptrans-0.1.0-SNAPSHOT.jar\
+:target/ptrans-0.2.0-SNAPSHOT.jar\
:${HOME}/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/slf4j-log4j12-1... | bash |
d_bash_23663 | ---
+++
@@ -6,9 +6,14 @@
apk update
apk add git
-git log -1 --pretty="format:%h" > VERSION.txt
-git log -1 --pretty="format:%ai %s" > DESCRIPTION.txt
-rm -rf ./.git
+if [[ -d ".git" ]]; then
+ git log -1 --pretty="format:%h" > VERSION.txt
+ git log -1 --pretty="format:%ai %s" > DESCRIPTION.txt
+ rm -rf ./.git
... | bash |
d_bash_23664 | ---
+++
@@ -17,6 +17,7 @@
echo "Email : $EMAIL_ADDRESS"
echo "----------------------------------------------------------------"
sed -i "s/___server_names___/$_server_names/g" /etc/nginx/nginx.conf
+sleep 5
nginx
sleep 5
certbot --nginx ${_args} --text --agree-tos --no-self-upgrade --keep --no-redirect --emai... | bash |
d_bash_23665 | ---
+++
@@ -6,6 +6,7 @@
firewall-cmd --zone=public --permanent --add-service=https
firewall-cmd --reload
+systemctl restart httpd
sleep 5
echo "Use VHostSSL empty.local empty.local html/web" >> /etc/httpd/conf.modules.d/11-domains.conf | bash |
d_bash_23666 | ---
+++
@@ -25,7 +25,7 @@
}
helm-install() {
- pushd eirini-release/scf
+ pushd eirini-release
helm upgrade --install "$COMPONENT" \
helm/"$HELM_CHART" \
--namespace "$COMPONENT" \ | bash |
d_bash_23667 | ---
+++
@@ -21,8 +21,8 @@
echo "jdeps returned:"
echo "$DEPENDENCIES"
-# Call JLink with these dependencies.
-JLINK_CMD="jlink --compress=2 --no-header-files --no-man-pages --strip-debug --add-modules $DEPENDENCIES --output $TARGET_DIR"
+# Call JLink with these dependencies; add JMX and JFR on top, as those are r... | bash |
d_bash_23668 | ---
+++
@@ -1,6 +1,8 @@
export CLOUDSDK_PYTHON="$HOMEBREW_PREFIX/opt/python/libexec/bin/python"
CLOUD_SDK="$HOMEBREW_PREFIX/Caskroom/google-cloud-sdk/latest/google-cloud-sdk"
-for f in "$CLOUD_SDK"/*.bash.inc; do
- source "$f"
-done
+if [ -d "$CLOUD_SDK" ]; then
+ for f in "$CLOUD_SDK"/*.bash.inc; do
+ source ... | bash |
d_bash_23669 | ---
+++
@@ -1,5 +1,5 @@
mkdir -p $PREFIX/man/man1
./configure --prefix="$PREFIX" --with-gmp
-make all
+make all -j ${CPU_COUNT}
make check
make install | bash |
d_bash_23670 | ---
+++
@@ -2,8 +2,8 @@
echo "👉 Installing Swift"
eval "$(curl -sL https://apt.vapor.sh)"
-sudo apt-get install vapor
-sudo chmod -R a+x /usr/
+sudo apt-get install swift
+sudo chmod -R a+rx /usr/
echo "👉 Installing Marathon"
git clone https://github.com/JohnSundell/Marathon.git | bash |
d_bash_23671 | ---
+++
@@ -4,7 +4,7 @@
set -o errexit
set -o nounset
-$(aws ecr get-login)
+$(aws ecr get-login --no-include-email)
docker push "$TAG"
echo "New container image is $RELEASE_ID"
| bash |
d_bash_23672 | ---
+++
@@ -7,7 +7,3 @@
sed -i 's/"datalabeling.googleapis.com\/Dataset"/"datalabeling.googleapis.com\/DataLabelingDataset"/g' $GOOGLEAPIS/google/cloud/aiplatform/v1/*.proto
sed -i 's/"automl.googleapis.com\/Dataset"/"automl.googleapis.com\/AutoMLDataset"/g' $GOOGLEAPIS/google/cloud/aiplatform/v1/*.proto
sed -i 's... | bash |
d_bash_23673 | ---
+++
@@ -7,7 +7,7 @@
brew install coreutils
brew install ctags
brew install git
- brew install vim --override-system-vi
+ brew install vim --with-lua --with-override-system-vi
# development formulae
brew install rbenv | bash |
d_bash_23674 | ---
+++
@@ -1,6 +1,6 @@
pip install -U setuptools pip wheel
if [ ! "$(ls wheelhouse)" ]; then
- git clone -b pyqt --depth=1 https://github.com/astaric/orange3-requirements wheelhouse
+ git clone --depth=1 https://github.com/astaric/orange3-requirements wheelhouse
else
echo 'Using cached wheelhouse.';
f... | bash |
d_bash_23675 | ---
+++
@@ -7,14 +7,11 @@
git clone "https://$GITHUB_TOKEN@github.com/open-curriculum/oerschema.git" -b gh-pages _dist
-# Get into the dist
-cd _dist
-cp -R ../dist/* .
-
# Run Gulp
-cd ../
gulp
-cd _dist
+rm -R _dist/* #clean the directory to remove no longer used files
+cp -R dist/* _dist # copy over the new... | bash |
d_bash_23676 | ---
+++
@@ -8,5 +8,7 @@
speedtestResult=`speedtest-cli ` #| grep -E "Download: |Upload: "`
download=`echo $speedtestResult | grep -E "Download: " | sed 's/.*Download: \([0-9]\.[0-9][0-9]*\).*/\1/' `
upload=`echo $speedtestResult | grep -E "Upload: " | sed 's/.*Upload: \([0-9]\.[0-9][0-9]*\).*/\1/' `
+ping=`echo $s... | bash |
d_bash_23677 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
-export Launcher="/usr/share/ALaunch/main.rb"
+export Launcher="/usr/bin/ALaunch.rb"
-/usr/share/APanel/main.rb &
+/usr/bin/APanel.rb &
/usr/bin/plank &
echo "Launched" | bash |
d_bash_23678 | ---
+++
@@ -3,5 +3,5 @@
mkdir -p $(pwd)/rpmbuild/SOURCES/
tar -cvzf $(pwd)/rpmbuild/SOURCES/rh-devsuite-src-2.1.0-1.tar.gz -C ./SOURCES/ rh-devsuite-2.1.0/
rpmbuild -ba SPECS/rh-devsuite.spec --define "_topdir $(pwd)/rpmbuild"
-sha256sum $(pwd)/rpmbuild/RPMS/x86_64/*.rpm > SHA256SUMS
-sha256sum $(pwd)/rpmbuild/SRP... | bash |
d_bash_23679 | ---
+++
@@ -18,10 +18,3 @@
version=`$build_dir/keybase version -S`
echo "Keybase version: $version"
-
-echo "Building kbfs"
-GO15VENDOREXPERIMENT=0 go get github.com/keybase/kbfs/kbfsfuse
-GO15VENDOREXPERIMENT=0 go build -a -tags "production" -ldflags "-X github.com/keybase/kbfs/libkbfs.CustomBuild=$build" -o $bu... | bash |
d_bash_23680 | ---
+++
@@ -1,4 +1,4 @@
-last_commit_date=`git log -1 --format=%cd | head -c 10`
+last_commit_date=`git log --author='Weecology Deploy Bot' -1 --format=%cd | head -c 10`
current_date=`date | head -c 10`
if [ "$last_commit_date" != "$current_date" ]; then
git config --global user.email "weecologydeploy@weecolo... | bash |
d_bash_23681 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
-ssh 10.10.0.15 'sudo zfs list' | grep "cloud/opennebula/persistent/lv-one-" | awk '{ print $1 }' | sed 's/cloud\/opennebula\/persistent\/lv-one-//' | sed 's/-/ /'
+ssh 10.10.0.15 'sudo zfs list' | grep "cloud/opennebula/persistent/lv-one-" | awk '{ print $1 }' | sed 's/cloud\/o... | bash |
d_bash_23682 | ---
+++
@@ -37,4 +37,4 @@
devscripts \
dh-make
-git clone https://github.com/dainnilsson/scripts
+sudo -u ubuntu git clone https://github.com/dainnilsson/scripts | bash |
d_bash_23683 | ---
+++
@@ -6,7 +6,7 @@
echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u302-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.tar.gz"
;;
java11)
- echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.11_9.tar.g... | bash |
d_bash_23684 | ---
+++
@@ -3,6 +3,8 @@
declare -a fft_array=("1" "2")
declare -a size_array=("2" "4" "8" "16")
declare -a gulp_array=("1" "2" "4" "8" "16" "32" "64" "128")
+
+echo "start key, # FFT's/2, size multiplier, gulp size, bifrost execution time, skcuda execution time, speedup, end key"
for i in "${fft_array[@]}"
do
... | bash |
d_bash_23685 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/sh
echo "$MINT_KEY" | base64 -d > /opt/libra/etc/mint.key
-/opt/libra/bin/ruben -a $AC_HOST -f /opt/libra/etc/mint.key -d $AC_DEBUG --metrics_server_address "0.0.0.0:14297" $@
+/opt/libra/bin/ruben -a $AC_HOST -f /opt/libra/etc/mint.key --metrics_server_address "0.0.0.0:14297" $@ | bash |
d_bash_23686 | ---
+++
@@ -1,16 +1,21 @@
#!/bin/bash
-cd "$(dirname "$0")"
-cd ../
+SRCBRANCH="dev"
+RLSBRANCH="dev-release"
-# Make sure we're in `master`.
-git checkout master
+SCRIPTDIR="$(dirname "$0")"
+ROOTDIR="${SCRIPTDIR}/../"
-# Delete existing `release` branch.
-git branch -D release
+cd $ROOTDIR
-# Create new `r... | bash |
d_bash_23687 | ---
+++
@@ -17,7 +17,12 @@
CEPH_INSTALL_DIR=${CEPH_INSTALL_DIR:-/build/ceph-install}
CEPH_TARBALL=${CEPH_INSTALL_DIR}.tar
-makeargs=-j$(( $(nproc) - 1 ))
+NPROC=$(( $(nproc) - 1 ))
+if [ "$NPROC" -eq 0 ]; then
+ NPROC=1
+fi
+
+makeargs=-j$NPROC
# build and install
make ${makeargs} rook | bash |
d_bash_23688 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
export PHP_HOME=${IROOT}/php-5.5.17
-export PHP_FPM=${PHP_HOME}/bins/php-fpm
+export PHP_FPM=${PHP_HOME}/bin/php-fpm
export NGINX_HOME=${IROOT}/nginx
sed -i 's|127.0.0.1|'"${DBHOST}"'|g' app/config/database.php | bash |
d_bash_23689 | ---
+++
@@ -30,5 +30,5 @@
cd $SUBJECTS_DIR
-tar cJf $WD/$1_recon2_$2_output.tar.xz $SUBJECTS_DIR/*
+tar cJf $WD/$1_recon2_$2_output.tar.xz *
cd $WD | bash |
d_bash_23690 | ---
+++
@@ -14,7 +14,7 @@
alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm"
alias gchurn='git log --name-only | grep .rb | sort | uniq -c | sort -nr | head'
-alias gbd='git branch --merged | grep -Ev "(master|production|main)" | xargs git branch -d'
+alias gbd='git branch --merged | grep -E... | bash |
d_bash_23691 | ---
+++
@@ -10,7 +10,7 @@
# Both prod- and dev code-bases are available in the container. Prod-code is cloned from git on build,
# while dev-code is mounted from localhost /docks/modules/wu. $SYSTEMAPIC_PRODMODE env on localhost
# decides which code-base is in use (in effect here and in compose yml's)
-if $SYSTE... | bash |
d_bash_23692 | ---
+++
@@ -2,7 +2,10 @@
#
# This is the example config file for the import-remote-wikis.sh script
-
+# The mount name is just a convenient identifier for the remote
+# server. It can be whatever you want, but should only include
+# alphanumeric characters (no spaces). The remote_share is the server
+# name and s... | bash |
d_bash_23693 | ---
+++
@@ -13,7 +13,7 @@
(( pass_cnt++ ))
else
(( fail_cnt++ ))
- fail_list="${fail_list}\n - ${test_case}"
+ fail_list="${fail_list}\n - ${scenario}"
fi
done
| bash |
d_bash_23694 | ---
+++
@@ -9,7 +9,7 @@
git submodule update
fi
-# download RSS files etc
-./bin/cron &
+# download RSS files etc on restarts
+./bin/cron_hourly &
./combust/bin/httpd | bash |
d_bash_23695 | ---
+++
@@ -15,7 +15,10 @@
JAVA_HOME=$JAVA_HOME ./script/run_with_carton.sh ~/perl5/perlbrew/bin/cpanm \
--local-lib-contained local/ \
--verbose \
- Compress::Raw::Lzma
+ Compress::Raw::Lzma || {
+ echo "cpanminus build logs:"
+ find ~/.cpanm/work/ -name build.log -exec cat '{}' ';'
+}
# I... | bash |
d_bash_23696 | ---
+++
@@ -14,6 +14,11 @@
unset KHEPRI_PASSWORD
KHEPRI_PASSWORD=foo run khepri init
KHEPRI_PASSWORD=foo run khepri key list
+
+KHEPRI_PASSWORD=foo KHEPRI_NEWPASSWORD=foobar run khepri key change
+KHEPRI_PASSWORD=foobar run khepri key list
+KHEPRI_PASSWORD=foobar KHEPRI_NEWPASSWORD=foo run khepri key change
+
OLD... | bash |
d_bash_23697 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/sh
+
+mkdir -pv ~/.zsh/completion
curl -L https://raw.githubusercontent.com/docker/compose/master/contrib/completion/zsh/_docker-compose > ~/.zsh/completion/_docker-compose
curl -L https://raw.githubusercontent.com/docker/cli/master/contrib/completion/zsh/_docker > ~/.zsh/completio... | bash |
d_bash_23698 | ---
+++
@@ -1,6 +1,14 @@
#!/bin/bash
-SIZE=$1
+SIZE=$2
+VOLGROUP=$1
+CPU=$3
+RAM=$4
+
+if [[ -z $SIZE || -z $VOLGROUP || -z $CPU || -z $RAM ]]; then
+ echo "Usage: create-vms.sh <Volume Group> <Size in GB> <cpu count> <RAM in MB>"
+ exit 1
+fi
lvcreate --name foreman --size ${SIZE}G VMstorage
lvcreate --name... | bash |
d_bash_23699 | ---
+++
@@ -7,6 +7,7 @@
curl https://raw.githubusercontent.com/hansonrobotics/hrtool/master/get_hr.bash|bash
+hr install -p head-hr
hr install head-deps
echo yes | hr init
hr update head | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.