document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_18700 | ---
+++
@@ -15,10 +15,12 @@
ln -svi "${filepath_git}" "${filepath_home}"
fi
done
+ rm -v "${HOME}/rc/rc" 2>/dev/null
ln -svi "${git_dir}/rc/common/.vim/colors/" "${HOME}/.vim/"
local lower_os="$(uname | tr [A-Z] [a-z])"
- ln -svi "${git_dir}/rc/${lower_os}" $(hostname)"
+ ln -svi "${git_dir}... | bash |
d_bash_18701 | ---
+++
@@ -32,6 +32,8 @@
git tag $next_ref
git tag latest -f
-git push origin master --tags
+git push origin master
+git push origin $next_ref
+git push origin latest -f
npm publish build/npm | bash |
d_bash_18702 | ---
+++
@@ -23,6 +23,6 @@
arch=$(go env GOARCH)
# download kubebuilder and extract it to tmp
-wget --quiet -O - https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${version}/kubebuilder_${version}_${os}_${arch}.tar.gz | tar -xz -C /tmp
+wget --quiet -O - https://github.com/kubernetes-sigs/kubebuild... | bash |
d_bash_18703 | ---
+++
@@ -14,9 +14,9 @@
function configure_enforce_scope {
iniset $KEYSTONE_CONF oslo_policy enforce_scope true
+ iniset $KEYSTONE_CONF oslo_policy enforce_new_defaults true
iniset $KEYSTONE_CONF oslo_policy policy_file policy.yaml
sudo systemctl restart devstack@keystone
- oslopolicy-policy... | bash |
d_bash_18704 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-SUPPORTED_VERSION="3.4"
+SUPPORTED_VERSION="3.5"
COMMAND_TO_USE=""
#This checks whether a particular llvm-config command exists in the system and if it works with the supported version | bash |
d_bash_18705 | ---
+++
@@ -1,9 +1,5 @@
#! /bin/sh
set -e
-apt-get update
-apt-get -y install zip
dotnet restore
dotnet pack -c Release -o /src/packages
dotnet publish -c Release -o /src/publish/dotnet-toolbox
-zip -r /src/publish/dotnet-toolbox /src/publish/dotnet-toolbox
-tar -cvzf /src/publish/dotnet-toolbox.tar.gz /src/pub... | bash |
d_bash_18706 | ---
+++
@@ -3,7 +3,7 @@
if ! builtin command -v yay > /dev/null 2>&1; then
if [ ! -d /tmp/yay ]; then
- (cd /tmp && git clone https://aur.archlinux.org/yay.git)
+ (cd /tmp && git clone https://aur.archlinux.org/yay-bin.git)
fi
sudo pacman -S --noconfirm --needed base-devel
(cd /tmp/yay && makepkg... | bash |
d_bash_18707 | ---
+++
@@ -3,5 +3,5 @@
RETCODE=$(fw_exists dart-sdk)
[ ! "$RETCODE" == 0 ] || { return 0; }
-fw_get http://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-x64-release.zip
+fw_get http://storage.googleapis.com/dart-archive/channels/stable/release/42828/sdk/dartsdk-linux-x64-re... | bash |
d_bash_18708 | ---
+++
@@ -1,7 +1,8 @@
#!/bin/sh -e
if [ "$(expr "$TRAVIS_PHP_VERSION" "<" "5.5")" -eq 1 ]; then
- echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
+ yes '' | pecl install apc
+ #echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
echo "apc.enabl... | bash |
d_bash_18709 | ---
+++
@@ -2,9 +2,9 @@
then
export MACOSX_VERSION_MIN=10.9
export CXXFLAGS="-mmacosx-version-min=${MACOSX_VERSION_MIN}"
- export CXXFLAGS="${CXXFLAGS} -stdlib=libc++ -std=c++11"
+ export CXXFLAGS="${CXXFLAGS} -stdlib=libc++"
export LINKFLAGS="-mmacosx-version-min=${MACOSX_VERSION_MIN}"
- exp... | bash |
d_bash_18710 | ---
+++
@@ -6,3 +6,13 @@
disksize() {
df -h
}
+
+tree() {
+ pwd
+ find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
+}
+
+# recursive rm to all files that has this name
+del() {
+ find . -name $1 -exec rm {} \;
+} | bash |
d_bash_18711 | ---
+++
@@ -7,15 +7,15 @@
#rosrun xacro xacro.py xacro/sandia_hand_right.urdf.xacro > sandia_hand_right.urdf
echo "irobot hands"
-rosrun xacro xacro.py xacro/irobot_hand_left.urdf.xacro > irobot_hand_left.urdf
-rosrun xacro xacro.py xacro/irobot_hand_right.urdf.xacro > irobot_hand_right.urdf
+python ../../model_t... | bash |
d_bash_18712 | ---
+++
@@ -13,6 +13,10 @@
psql -c 'CREATE DATABASE hil;' -U postgres
fi
+# Address #577 via
+# https://stackoverflow.com/questions/2192323/what-is-the-python-egg-cache-python-egg-cache
+mkdir -p ~/.python-eggs
+
# Install HIL
python setup.py install
| bash |
d_bash_18713 | ---
+++
@@ -26,6 +26,8 @@
# update blog
rm -r *
cp -r ../public/. .
+rm atom.xml # remove feed that includes all content types
+mv post/atom.xml . # use post feed as main feed
rm -r post post.html page page.html # remove per-category pages/feeds
# commit | bash |
d_bash_18714 | ---
+++
@@ -6,6 +6,7 @@
CPU=`$HOME/dotfiles/i3blocks/cpu_usage | head -2 | tail -1`
TMP=`$HOME/dotfiles/i3blocks/temperature | head -2 | tail -1`
PURPOSE=`cat $HOME/purpose-log.txt | tail -1`
+TITLE=`playerctl metadata title`
ORGCLOCK=""
if [ -f /tmp/org-clock-flag ]; then
@@ -16,5 +17,5 @@
if [ ! -z "$ORGCLO... | bash |
d_bash_18715 | ---
+++
@@ -20,4 +20,19 @@
cd ..
darcs-fastconvert export R --read-marks=darcs_marks > export_data
-(cd git-R && git fast-import --import-marks=../git_marks < ../export_data)
+
+cd git-R
+git fast-import --import-marks=../git_marks < ../export_data
+
+git reset --hard HEAD
+orig=$(git rev-parse HEAD)
+
+[[ $(cat ... | bash |
d_bash_18716 | ---
+++
@@ -2,7 +2,7 @@
cd GASNet-1.18.2
#make distclean
-./configure --prefix=`pwd`/../built_deps --enable-segment-everything CC='cc -g '
+./configure --prefix=`pwd`/../built_deps --enable-segment-everything CC='gcc -g '
make -j
make install
cd .. | bash |
d_bash_18717 | ---
+++
@@ -10,7 +10,7 @@
function hg(){
# Only expand args for hg commands that deal with paths or branches
case $1 in
- commit|blame|add|log|rebase|forget|up|diff|rm|revert|mv)
+ commit|blame|add|log|rebase|forget|up|diff|rm|revert|mv|strip|export|remove|uncommit)
exec_scmb_expand_args "$_hg_cmd... | bash |
d_bash_18718 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-MINCOVERAGE=88
+MINCOVERAGE=90
coverage erase || exit 1
for i in test_*py ; do PYTHONPATH=.. coverage run -a --source ../faucet $i || exit 1 ; done | bash |
d_bash_18719 | ---
+++
@@ -14,7 +14,7 @@
git fetch origin
echo "Checking out master branch..."
-git checkout origin master
+git checkout origin/master
cd "${REPO_ROOT}"
| bash |
d_bash_18720 | ---
+++
@@ -1,7 +1,7 @@
set -ex
apt-get install ruby rubygems ||
-yum install ruby rubygems ||
+yum install -y ruby rubygems ||
pkgin install ruby rubygems ||
false
| bash |
d_bash_18721 | ---
+++
@@ -3,6 +3,10 @@
Logger(){
logCompletedMsg(){
logInfoMsg completed
+ }
+
+ logDebugMsg(){
+ LoggerUtil getLogMsg debug ${1}.
}
logErrorMsg(){ | bash |
d_bash_18722 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-readonly LOVE_DIR=love_0102
+readonly LOVE_DIR=love_0111
git clone --depth=1 https://github.com/rm-code/love-api api
mkdir docs | bash |
d_bash_18723 | ---
+++
@@ -5,7 +5,7 @@
if ! is_cmd_installed brew; then
echo "Installing Command Line Tools..."
- xcode-select --install
+ sudo xcode-select --install
echo "Installing Rosetta..."
sudo softwareupdate --install-rosetta 2> /dev/null
| bash |
d_bash_18724 | ---
+++
@@ -6,10 +6,10 @@
# Create a list of all files (excluding git files) in the current directory.
find . * -type f | grep -v "\./.\git" > dotfiles.txt
-mkdir -p $DOTFILES_OLD
# Backup all files that currently exist into the folder $DOTFILES_OLD,
# while preserving the directory structure and dereferenci... | bash |
d_bash_18725 | ---
+++
@@ -4,6 +4,21 @@
echo "# Installation tests"
"${0%/*}"/build-artifacts.sh
shopt -s extglob
-dnf install -y exported-artifacts/!(*src).rpm
+pushd exported-artifacts
+ rm -f /etc/yum.conf
+ dnf reinstall -y system-release dnf
+ [[ -d /etc/dnf ]] && [[ -x /usr/bin/dnf ]] && dnf -y reinstall dnf-conf
... | bash |
d_bash_18726 | ---
+++
@@ -1,8 +1,9 @@
DEMO_HEROKU_APP_NAME=somerville-teacher-tool-demo
# Deploy to demo app and migrate
-echo "🚨 ☠️ 🚨 DANGER: About to destroy and rebuild the ⬢ $DEMO_HEROKU_APP_NAME database."
-read -p " This will cause downtime. Continue? [y/N] " -n 1 -r
+echo "🚨 🚨 🚨 DANGER: About to destroy and re... | bash |
d_bash_18727 | ---
+++
@@ -1,6 +1,6 @@
if [[ -f "$HOME/.fzf.zsh" ]]; then
# Change default fzf command to use ag
- export FZF_DEFAULT_COMMAND='ag --nocolor --ignore node_modules -g ""'
+ export FZF_DEFAULT_COMMAND='ag --hidden --nocolor --ignore node_modules --ignore .git -g ""'
# Use 16-color colorscheme
export FZF_DEF... | bash |
d_bash_18728 | ---
+++
@@ -25,7 +25,7 @@
}
cd '/root'
-installer=$(find /root -maxdepth 1 -type f -name 'puppet-enterprise-*')
+installer=$(find /root -maxdepth 1 -type f -name 'puppet-enterprise-*-i386.tar*')
archivefile="${installer##*/}"
dirname="${archivefile%.tar*}"
| bash |
d_bash_18729 | ---
+++
@@ -2,7 +2,7 @@
for i in {1..2..1} ## energies
-do
+do
for j in {1..2..1} ##sample thickness
do
for k in {1..2..1} ##coolant thickness | bash |
d_bash_18730 | ---
+++
@@ -1,13 +1,16 @@
#!/bin/bash
if [ "$TRAVIS_REPO_SLUG" == "JakobOvrum/Dirk" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
+ git clone --recursive --branch=gh-pages https://github.com/${TRAVIS_REPO_SLUG}.git gh-pages
+
+ cd gh-pages
+ git config credential.helper "store... | bash |
d_bash_18731 | ---
+++
@@ -4,7 +4,7 @@
# - https://help.github.com/articles/configuring-a-remote-for-a-fork/
# - https://help.github.com/articles/syncing-a-fork/"
-git ls-remote --exit-code upstream > /dev/null
+git ls-remote --exit-code upstream &> /dev/null
if test $? != 0; then
git remote add upstream https://github.co... | bash |
d_bash_18732 | ---
+++
@@ -6,15 +6,21 @@
# bootstraps a Python 3.7 development environment.
die() {
- echo $*
+ echo "$@"
exit 1
}
-for p in pyenv; do
+for p in pyenv pyenv-virtualenv; do
command -v $p >/dev/null 2>&1 || { die "\`$p\` not found in PATH"; }
done
-CONFIGURE_OPTS=--enable-shared pyenv install 3.7.10
... | bash |
d_bash_18733 | ---
+++
@@ -8,8 +8,5 @@
VERSIONS=$(awscli iam list-policy-versions --policy-arn $POLICY --output text --query "Versions[$(auto_filter VersionId -- $SECOND_RESOURCE)].[VersionId]")
select_one Version "$VERSIONS"
-awscli iam get-policy-version --policy-arn $POLICY --version-id $SELECTED --output table \
- --query... | bash |
d_bash_18734 | ---
+++
@@ -1 +1 @@
-cat 02-display.vim 03-input.vim 04-commands.vim 06-autocommands.vim
+cat 02-display.vim 03-input.vim 04-commands.vim 06-autocommands.vim bundle/molokai/colors/molokai.vim | bash |
d_bash_18735 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/sh
+MPI_VERSION=3.2
+CCI_VERSION=0.3.0
set -e
@@ -8,13 +10,13 @@
cd $HOME && git clone git://git.mcs.anl.gov/bmi bmi;
cd bmi && ./prepare && ./configure --enable-shared --enable-bmi-only --prefix=$HOME/install && make && make install;
# build mpi
- cd $HOME && wget http:... | bash |
d_bash_18736 | ---
+++
@@ -3,7 +3,7 @@
set username "$env(OVPN_LOGIN)\r"
set password "$env(OVPN_PASSWORD)\r"
-spawn openvpn --config /config/$env(OVPN_CONFIG) --script-security 2
+spawn openvpn --cd /config/ --config /config/$env(OVPN_CONFIG) --script-security 2
expect "Enter Auth Username:"
send $username
expect "Enter Aut... | bash |
d_bash_18737 | ---
+++
@@ -2,6 +2,7 @@
SECDIR=$1
SIGN_SERVER=bioserve.local
+MYLOC=`dirname $0`
if [ -z "$SECDIR" ]; then
echo "Please specify a security directory to create"
@@ -11,7 +12,7 @@
mkdir -p $SECDIR
cd $SECDIR || exit 1
-openssl req -config ../bionet-ssl.conf -batch -newkey rsa:2048 -nodes -out pub.csr
+open... | bash |
d_bash_18738 | ---
+++
@@ -15,14 +15,14 @@
mkdir -p ${PROJECT}/DEBIAN
chmod 0755 ${PROJECT}/DEBIAN
-echo "Package: ${PROJECT}
+echo "Package: ${PROJECT}
Version: ${VERSION_NO_SUFFIX}-${RELEASE}
Section: devel
Priority: optional
-Depends: libbz2-dev (>= 1.0), libssl-dev (>= 1.0), libgmp3-dev, build-essential, libicu-dev, zli... | bash |
d_bash_18739 | ---
+++
@@ -5,7 +5,7 @@
source $IROOT/go.installed
return 0; }
-VERSION=1.6
+VERSION=1.5.2
GOROOT=$IROOT/go
fw_get -O https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz | bash |
d_bash_18740 | ---
+++
@@ -10,13 +10,18 @@
export DEBIAN_FRONTEND=noninteractive
- sudo apt-get -q update
- sudo apt-get -q install -y wget software-properties-common python-software-properties apt-transport-https
- wget -q https://repo.vapor.codes/apt/keyring.gpg -O- | sudo apt-key add -
- echo "deb https://re... | bash |
d_bash_18741 | ---
+++
@@ -19,9 +19,21 @@
echo
fi
+if grep -qs "Server\s*=\s*http://bohoomil.com/repo/fonts" $PACMANCONF
+then
+ echo [infinality-bundle-fonts] appears to be in pacman.conf already.
+else
+ echo Adding the [infinality-bundle-fonts] repository...
+ cat >> $PACMANCONF <<-"EOF"
+ [infinality-bundle-... | bash |
d_bash_18742 | ---
+++
@@ -2,7 +2,7 @@
set -exo pipefail
-curl https://api.github.com/repos/open-policy-agent/opa/releases/latest |
+curl -vL https://api.github.com/repos/open-policy-agent/opa/releases/latest |
grep 'browser_download_url.*linux_amd64' |
cut -d : -f 2,3 |
tr -d '"' | | bash |
d_bash_18743 | ---
+++
@@ -6,7 +6,6 @@
frontend-design
govuk-madetech
modelling-services
- navigation
platform_support
publishing-frontend
reliability-engineering | bash |
d_bash_18744 | ---
+++
@@ -3,6 +3,8 @@
set -euo pipefail
cd ${KOKORO_ARTIFACTS_DIR}/git/tink
+# Install protobuf pip packages
+pip3 install protobuf --user
run_bazel_tests() {
( | bash |
d_bash_18745 | ---
+++
@@ -2,30 +2,32 @@
local _sublime_darwin_paths > /dev/null 2>&1
_sublime_darwin_paths=(
- "/usr/local/bin/subl"
- "$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
- "$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
- "/Applications/Sublime Text 2.app/Contents/Shar... | bash |
d_bash_18746 | ---
+++
@@ -1,8 +1,10 @@
#!/bin/sh
# constants, change to your username and apikey
-USERNAME='your_envato_username'
-APIKEY='your_envato_api_key'
+USERNAME0='your_envato_username'
+APIKEY0='your_envato_api_key'
+# USERNAME1='your_second_envato_username'
+# APIKEY1='your_second_envato_api_key'
# read variable f... | bash |
d_bash_18747 | ---
+++
@@ -13,4 +13,4 @@
# Restore the original init script.
mv /etc/rc.local.orig /etc/rc.local
-exec reboot
+exec halt | bash |
d_bash_18748 | ---
+++
@@ -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_18749 | ---
+++
@@ -11,7 +11,7 @@
exit 1
fi
-php composer-setup.php --quiet
+php composer-setup.php --install-dir=$HOME/bin --filename=composer --snapshot --quiet
RESULT=$?
rm composer-setup.php
exit $RESULT | bash |
d_bash_18750 | ---
+++
@@ -3,6 +3,7 @@
set -o errexit
set -o errtrace
set -o nounset
+shopt -s nullglob
tap='travis-tmp/nodenv'
formula='' | bash |
d_bash_18751 | ---
+++
@@ -1,3 +1,15 @@
-cd /built_app
+set -e
+
+if [ -d /bundle ]; then
+ cd /bundle
+ tar xzf *.tar.gz
+ cd /bundle/bundle/programs/server/
+ npm i
+ cd /bundle/bundle/
+else
+ cd /built_app
+fi
+
export PORT=80
+echo "starting meteor app on port:$PORT"
node main.js | bash |
d_bash_18752 | ---
+++
@@ -1,8 +1,10 @@
#!/bin/bash
USER_ID=${LOCAL_USER_ID:-9001}
-adduser -s /bin/bash -u $USER_ID -S -D -h /dehydrated user
-chown -R user /dehydrated
+if ! getent passwd $USER_ID; then
+ adduser -s /bin/bash -u $USER_ID -S -D -h /dehydrated user
+fi
+chown -R $USER_ID /dehydrated
export HOME=/dehydrated
... | bash |
d_bash_18753 | ---
+++
@@ -3,22 +3,22 @@
GIT="/usr/bin/git"
TAR="/bin/tar"
PYTHON=`which python`
-CONFIG_DIR=""
+CONFIG_DIR="$HOME/nc-backup-py-configs"
echo "Using python: $PYTHON"
echo "Back up config dir $CONFIG_DIR"
if [ ! -d "$CONFIG_DIR" ];then
- echo "$HOME/nc-backup-py-configs/ does not exist creating..."
+ ec... | bash |
d_bash_18754 | ---
+++
@@ -16,7 +16,7 @@
cd ${SOURCE_DIR}
env VESPA_MAVEN_EXTRA_OPTS="--no-snapshot-updates --batch-mode --threads ${NUM_THREADS}" sh ./bootstrap.sh java
mvn -V install --no-snapshot-updates --batch-mode --threads ${NUM_THREADS}
-bash ${SOURCE_DIR}/bootstrap-cmake.sh ${SOURCE_DIR}
+cmake3 -DVESPA_UNPRIVILEGED=no ... | bash |
d_bash_18755 | ---
+++
@@ -5,8 +5,8 @@
x=$(($freeMem/10*8))
n=$(($freeMem/10*2))
export JVM_ARGS="-Xmn${n}m -Xms${s}m -Xmx${x}m"
-export RMI_HOST_DEF=-Djava.rmi.server.hostname=$IP
JMETER_LOG="jmeter-server.log" && touch $JMETER_LOG && tail -f $JMETER_LOG &
exec jmeter-server \
+ -D "java.rmi.server.hostname=${IP}" \
-... | bash |
d_bash_18756 | ---
+++
@@ -4,7 +4,7 @@
ln -sf /proc/self/fd /dev
-yaourt -Sy --noconfirm bind
+pacman -Sy --noconfirm bind
mkdir -p /data/bind/
| bash |
d_bash_18757 | ---
+++
@@ -10,3 +10,9 @@
cd $WORKSPACE
sudo PATH=$PATH GOPATH=$GOPATH make dev
sudo PATH=$PATH GOPATH=$GOPATH go get golang.org/x/tools/cmd/vet
+
+# On Changes, don't bother running container puppet once setup has
+# already run.
+if [ ! -z $CHANGES ]; then
+ touch /home/ubuntu/SKIP_CITOOLS_PUPPET
+fi | bash |
d_bash_18758 | ---
+++
@@ -1,6 +1,21 @@
#!/usr/bin/env bash
-function usage_exit() {
+# aliases
+alias cp="cp -i"
+alias ls="ls --color --group-directories-first"
+alias mv="mv -i"
+alias rm="rm -i"
+
+# functions
+function hh() {
+ hostname
+ uname -a
+ lsb_release -a
+}
+
+# Used by percent.sh, for example:
+# usage... | bash |
d_bash_18759 | ---
+++
@@ -21,10 +21,8 @@
declare -r BUILD_TAG="$(date '+%y%m%d%H%M%S')"
declare -r IMG_NAME="debian-builder:${BUILD_TAG}"
-declare -r DEB_RELEASE_BUCKET="gs://k8s-release-dev/debian"
docker build -t "${IMG_NAME}" "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
docker run -it --rm -v "${PWD}/bin:/src/bin... | bash |
d_bash_18760 | ---
+++
@@ -21,8 +21,8 @@
PATH="/opt/bin:$PATH"
fi
-if [ -d /Users/alan/.usr/share/npm/bin ]; then
- PATH=/Users/alan/.usr/share/npm/bin:$PATH
+if [ -d $HOME/.usr/share/npm/bin ]; then
+ PATH=$HOME/.usr/share/npm/bin:$PATH
fi
if [ -e ~/.usr/bin ]; then | bash |
d_bash_18761 | ---
+++
@@ -8,4 +8,4 @@
chown unbound:unbound ${ROOT_TRUST_DIR}
unbound-anchor -a $ROOT_TRUST_ANCHOR_FILE -v
chown unbound:unbound $ROOT_TRUST_ANCHOR_FILE
-exec unbound -d -v -c /etc/unbound/unbound.conf
+exec unbound -p -c /etc/unbound/unbound.conf | bash |
d_bash_18762 | ---
+++
@@ -11,7 +11,7 @@
echo "Integration Tests"
echo "=========================================="
-bin/www 2&>/tmp/echojs.log &
+DEBUG=echo:* bin/www 2&>/tmp/echojs.log &
sleep 2
if [ $# -gt 0 ]; then | bash |
d_bash_18763 | ---
+++
@@ -1,4 +1,3 @@
#!/bin/bash
-./build.sh
-aws deploy create-deployment --application-name ${DEPLOY_APPLICATION_NAME} --region ${DEPLOY_REGION} --deployment-group ${DEPLOYMENT_GROUP} --revision "{\"revisionType\":\"S3\", \"s3Location\": {\"bucket\": \"${DEPLOY_BUCKET}\", \"key\": \"${DEPLOY_KEY}\", \"bundleT... | bash |
d_bash_18764 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
# Update repository
-cd /var/www/website/
+cd /var/www/website/ || exit 1
git checkout master
git pull
@@ -13,7 +13,7 @@
pip install -r requirements.txt
# Configure settings
-cd albertyw.com
+cd albertyw.com || exit 1
ln -sf .env.production .env
# Restart services | bash |
d_bash_18765 | ---
+++
@@ -10,8 +10,13 @@
-Dfs.s3n.awsAccessKeyId=${S3_ID}
" /tachyon/conf/tachyon-env.sh
-PREFIXES=`grep tachyon.underfs.hadoop.prefixes /tachyon/common/src/main/resources/tachyon-default.properties | sed "s|s3n://,||g"`
-# After this change, only S3UnderFileSystem will support s3n://
-sed -i "/export TACHYO... | bash |
d_bash_18766 | ---
+++
@@ -22,6 +22,7 @@
if [ -n "$FILE" ]; then
wget \
-q -S -O - \
+ --content-on-error \
--no-check-certificate \
--ca-certificate="$CERTS_DIR"/ca-cert.pem \
--certificate="$CERTS_DIR"/client-cert.pem \
@@ -33,6 +34,7 @@
else
wget \
-q -S -O - \
+ --content-on-error \
--no-check-certificat... | bash |
d_bash_18767 | ---
+++
@@ -5,6 +5,16 @@
olddir=`pwd`
cd $srcdir
+
+
+
+INTLTOOLIZE=`which intltoolize`
+if test -z $INTLTOOLIZE; then
+ echo "*** No intltoolize found ***"
+ exit 1
+else
+ intltoolize --force --copy --automake || exit $?
+fi
GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then
@@ -20... | bash |
d_bash_18768 | ---
+++
@@ -5,10 +5,11 @@
# Version of CentOS/RHEL
el_version=$1
- # Run tests in Container
+# Run tests in Container
+# We use `--privileged` for cgroup compatability, which seems to be enabled by default in HTCondor 8.6.x
if [ "$el_version" = "6" ]; then
-sudo docker run --rm=true -v `pwd`:/htcondor-ce:rw ce... | bash |
d_bash_18769 | ---
+++
@@ -8,3 +8,5 @@
uploadResponse=$(aws iam upload-server-certificate --server-certificate-name ${dsmFqdn} --certificate-body file:///etc/letsencrypt/archive/${dsmFqdn}/cert1.pem --private-key file:///etc/letsencrypt/archive/${dsmFqdn}/privkey1.pem)
arn=$(echo $uploadResponse | jq -r .ServerCertificateMetadata... | bash |
d_bash_18770 | ---
+++
@@ -6,18 +6,5 @@
bundle exec rake db:create db:structure:load
bundle exec rake db:seed
-if [ ! -d data/redirector ]; then
- mkdir -p data && git clone git@github.com:alphagov/redirector data/redirector
-else
- cd data/redirector && git pull
- cd ../..
-fi
-
-if [ ! -d data/transition-stats ]; then
- m... | bash |
d_bash_18771 | ---
+++
@@ -3,8 +3,7 @@
if [[ `php-config --vernum` -ge 50500 ]]
then
pecl config-set preferred_state beta
- printf "yes\n"
- pecl install apcu
+ printf "yes\n" | pecl install apcu
else
echo 'extension="apc.so"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php... | bash |
d_bash_18772 | ---
+++
@@ -5,6 +5,15 @@
iteration=$3
go get ${project}
+pushd /go/src/github.com/hashicorp/terraform
+git remote add bobtfish https://github.com/bobtfish/terraform.git
+git fetch bobtfish
+git fetch --tags bobtfish
+git checkout 0.4.0-pre1
+popd
+pushd /go/bin
+go build ../src/terraform-provider-yelpaws
+popd
m... | bash |
d_bash_18773 | ---
+++
@@ -23,6 +23,6 @@
[ -d config ] || die "Are you in the root directory of your canvas checkout?"
-for c in amazon_s3 delayed_jobs domain file_store outgoing_mail security scribd external_migration database; do
+for c in amazon_s3 delayed_jobs domain file_store outgoing_mail security external_migration da... | bash |
d_bash_18774 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/ash
-VAULT_ADDR="https://$(hostname -s).node.consul:8200" vault unseal
+VAULT_ADDR="https://$(hostname):8200" vault unseal
| bash |
d_bash_18775 | ---
+++
@@ -19,6 +19,9 @@
rm -fr h2o-dist/tmp
mkdir -p $IMAGEDIR
cp build/h2o.jar $IMAGEDIR
+mkdir $IMAGEDIR/R
+cp h2o-r/R/src/contrib/h2o_${PROJECT_VERSION}.tar.gz $IMAGEDIR/R
+
cd $IMAGEDIR/..
zip -r h2o-dev-${PROJECT_VERSION}.zip h2o-dev-${PROJECT_VERSION}
mv h2o-dev-${PROJECT_VERSION}.zip ${TOPDIR}/target | bash |
d_bash_18776 | ---
+++
@@ -18,6 +18,9 @@
sh $SLI_HOME/config/scripts/sharding/start-shard.sh $mongos_port $num_shards
echo Shards started.
+ulimit -n 20000
+echo Set the maximum number of open file descriptors to 20000
+
mongo admin $SLI_HOME/config/shards/sli_shards.js --eval "var database = '02f7abaa9764db2fa3c1ad852247cd4ff... | bash |
d_bash_18777 | ---
+++
@@ -29,8 +29,10 @@
kill_jobs TERM
}
+K8S_NAMESPACE="${K8S_NAMESPACE:-kube-system}"
+
while read -r p; do
- kubectl -n kube-system exec -ti $p -- $*&
-done <<< "$(kubectl -n kube-system get pods -l k8s-app=cilium | awk '{print $1}' | grep cilium)"
+ kubectl -n "${K8S_NAMESPACE}" exec -ti $p -- $*&
+done ... | bash |
d_bash_18778 | ---
+++
@@ -1,8 +1,11 @@
#!/bin/bash -e
+
+set -e
git clone https://github.com/jasmine/jasmine.github.io.git
cd jasmine.github.io
+export BUNDLE_GEMFILE=$PWD/Gemfile
bundle
bundle exec rake update_edge_jasmine | bash |
d_bash_18779 | ---
+++
@@ -24,4 +24,4 @@
export LC_CTYPE=$LANG
export LC_ALL=en_US.UTF-8
export EDITOR=nvim
-export PATH=$LOCALDIR/go/bin:$PATH
+export PATH=$LOCALDIR/go/bin:$HOME/go/bin:$PATH | bash |
d_bash_18780 | ---
+++
@@ -9,6 +9,7 @@
echo "Creating layer #$layerNumber for $@"
mkdir -p "$layerPath"
+tar --no-recursion -rf "$layerPath/layer.tar" /nix /nix/store
tar -rpf "$layerPath/layer.tar" --hard-dereference --sort=name \
--mtime="@$SOURCE_DATE_EPOCH" \
--owner=0 --group=0 "$@" | bash |
d_bash_18781 | ---
+++
@@ -6,7 +6,7 @@
echo "https://github.com/bell-sw/Liberica/releases/download/8u342+7/bellsoft-jdk8u342+7-linux-amd64.tar.gz"
;;
java11)
- echo "https://github.com/bell-sw/Liberica/releases/download/11.0.15.1+2/bellsoft-jdk11.0.15.1+2-linux-amd64.tar.gz"
+ echo "https://github.com/bell-sw/Liberica/r... | bash |
d_bash_18782 | ---
+++
@@ -2,34 +2,39 @@
# A script to backup all servers using duply
#
-echo "Beginning backups..."
+GREEN='\033[0;32m'
+NC='\033[0m'
+ORANGE='\033[0;33m'
+RED='\033[0;31m'
-echo "Backing up global plugin directory..."
+echo -e "${ORANGE}Beginning backups...${NC}"
+
+echo -e "${ORANGE}Backing up global plugin... | bash |
d_bash_18783 | ---
+++
@@ -14,7 +14,7 @@
set -ex
- git clone -b "$(curl -L https://grpc.io/release)" --single-branch --depth 1 https://github.com/grpc/grpc
+ git clone -b v1.34.0 --single-branch --depth 1 https://github.com/grpc/grpc
cd grpc
git submodule update --init | bash |
d_bash_18784 | ---
+++
@@ -2,5 +2,5 @@
set -ex
mkdir -p build
cd build
-CMAKE_PREFIX_PATH=${HOME}/deps cmake -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DENABLE_COVERAGE="$ENABLE_COVERAGE" -DSANITIZE_ADDRESS=On -DSANITIZE_UNDEFINED=On ..
+CMAKE_PREFIX_PATH=${HOME}/deps cmake -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DENABLE_COVERAGE="$ENABLE_COVE... | bash |
d_bash_18785 | ---
+++
@@ -2,11 +2,12 @@
# this is the command that runs our server
# --noreload is only runs one processes (which we can then kill)
-RUN_SERVER_CMD="cd analytics_dashboard && ./manage.py runserver --noreload"
+RUN_SERVER_SUBCMD="./manage.py runserver --noreload"
+RUN_SERVER_CMD="cd analytics_dashboard && ${RUN_... | bash |
d_bash_18786 | ---
+++
@@ -2,8 +2,10 @@
JAR=../LizardConverter/dist/csvjdbc.jar
find src/main/java/org/relique/ -iname "*.java" > sources.txt
+find src/main/javacc/org/relique/ -iname "*.jj" >> sources.txt
+find src/main/resources -iname "*.properties" >> sources.txt
cat sources.txt > sources-full.txt
-/bin/ls src/java/test/or... | bash |
d_bash_18787 | ---
+++
@@ -1,13 +1,18 @@
#!/usr/bin/env bash
-
-YEARS=1
+#
+# Usage: ./wu.sh [years]
+#
+# If years is not provided as an argument, a default value of 1 is used.
+YEARS=${1:-1}
for airport in `cat airports.txt`
do
mkdir -pv csv/$airport
- for dt in `python -c "from datetime import datetime, timedelta; p... | bash |
d_bash_18788 | ---
+++
@@ -7,7 +7,7 @@
files=`ls -1 -S *.smt2`
for f in $files; do
- stp --output-CNF $f
+ stp --simplifying-minisat --output-CNF $f
cnf=`cat output_*.cnf | wc -l`
if [ $cnf -gt 3 ] ; then
exit 10 | bash |
d_bash_18789 | ---
+++
@@ -1,7 +1,9 @@
#!/bin/bash
set -e
-[ -f transit.db ] && rm transit.db
+timestamp=`date +%Y%m%d%H%M`
+filename=transit-${timestamp}.db
+
[ -f google_transit.zip ] && rm google_transit.zip
[ -d feed ] && rm -r feed
curl -O http://www.transperth.wa.gov.au/TimetablePDFs/GoogleTransit/google_transit.zip
@... | bash |
d_bash_18790 | ---
+++
@@ -17,5 +17,9 @@
logInfoMsg ${1}..
}
+ logRequestMsg(){
+ LoggerUtil getLogMsg info ${1}:
+ }
+
${@}
} | bash |
d_bash_18791 | ---
+++
@@ -2,6 +2,6 @@
echo -n "Please write an output filename (example: output.tar.gz): "
read filename
-tar -cvf $filename *.jpg
+tar -cvf $filename *.jpg *.png
rm *.jpg
echo "tar successfully filename is " >> $filename | bash |
d_bash_18792 | ---
+++
@@ -1,9 +1,25 @@
alias rezshrc="source ~/.zshrc"
-alias .="cd .."
+
+# 'cd ..' if no arguments are provided. Behave like . or sorce otherwise.
+#
+# The . or source builtin requires at least 1 argument. Overload the no
+# argument version to 'cd ..' instead.
+dot() {
+ file=$1
+ if [ $# -gt 0 ]
+ th... | bash |
d_bash_18793 | ---
+++
@@ -4,7 +4,7 @@
# the ordinary bash prompt.
prompt() {
- PS1="${reset_color}[\u@\h \W]$(scm_prompt_info)${reset_color}\$ "
+ PS1="${reset_color}[\u@\h$(scm_prompt_info)${reset_color} \W]\$ "
}
PROMPT_COMMAND=prompt | bash |
d_bash_18794 | ---
+++
@@ -49,3 +49,7 @@
echo "Installing backend."
python setup.py install
popd
+
+echo
+echo "*** REMINDER: run the following. ***"
+echo "source $ENVDIR/bin/env/activate" | bash |
d_bash_18795 | ---
+++
@@ -6,4 +6,3 @@
rm -fr Rules/*
rm -fr Examples/*
nuget restore DevAudit.Mono.sln && xbuild DevAudit.Mono.sln /p:Configuration=RuntimeDebug $*
-cp ./DevAudit.AuditLibrary/bin/Debug/Gendarme.Rules.* ./DevAudit.CommandLine/bin/Debug/ | bash |
d_bash_18796 | ---
+++
@@ -2,11 +2,15 @@
if [[ $TRAVIS_BRANCH == 'master' || $TRAVIS_BRANCH == 'develop' ]]
then
+ echo "Deploying Jar to Maven Central"
mvn deploy -DskipTests --settings settings.xml -Prelease
+else
+ echo "Not deploying jar"
fi
if [[ $TRAVIS_BRANCH == 'master' ]]
then
+ echo "Building Maven Site and... | bash |
d_bash_18797 | ---
+++
@@ -1,2 +1,2 @@
# Execute tests
-nosetests -v test/unit/connectors/*.py test/unit/*.py test/functional/*.py test/QuickTestIM.py test/TestREST.py --with-timer --timer-no-color --with-xunit --with-coverage --cover-erase --cover-html --cover-package=IM
+nosetests -v test/unit/connectors/*.py test/unit/*.py test... | bash |
d_bash_18798 | ---
+++
@@ -11,6 +11,9 @@
if [ "$#" -ne 2 ]; then
"Usage: target/letsencrypt2jks.sh [DOMAIN] [PASSWORD]"
fi
+
+# Delete the JKS from our previous run (if it's still around)
+sudo rm -f le_jiiify.jks
sudo openssl pkcs12 -export \
-in "/etc/letsencrypt/live/$1/fullchain.pem" \ | bash |
d_bash_18799 | ---
+++
@@ -5,4 +5,5 @@
set -e
git checkout master
+git pull origin master
git push "ssh://git@gitolite.word-ac.net/${REPOSITORY_NAME}" master | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.