document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_15900 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
source "$HOME/.rvm/scripts/rvm"
-rvm use "2.0.0-p247@tahi"
+rvm use "2.0.0-p247@tahi" --create
set -e
| bash |
d_bash_15901 | ---
+++
@@ -3,16 +3,33 @@
# then run `remux sebastion` to establish or reattach
# a tmux session called `base` on host `sebastion`
+_remux_print () {
+ color=$1
+ message=$2
+ printf "\033[$color""m$message\033[0m"
+}
+
+_remux_eval () {
+ blue=34
+ command=$1
+ _remux_print $blue "$command\n"
+ eval $comm... | bash |
d_bash_15902 | ---
+++
@@ -6,6 +6,5 @@
apk -U add upx curl wget alpine-sdk &&
curl http://cvs.schmorp.de/App-Staticperl/bin/staticperl -o ./staticperl && chmod +x ./staticperl && \
./staticperl mkapp exiftool.bin --boot exiftool_wrapper.pl perl.bundle && \
-upx exiftool.bin
[ -e ./staticperl ] && rm ./staticperl | bash |
d_bash_15903 | ---
+++
@@ -7,10 +7,10 @@
killall -q polybar
while pgrep -u $UID -x polybar > /dev/null; do sleep 1; done
-if type "xrandr"; then
- for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
- MONITOR=$m polybar --reload main &
- done
-else
- polybar --reload main &
-fi
+# if type "xrandr"; then
... | bash |
d_bash_15904 | ---
+++
@@ -6,6 +6,11 @@
# The First 2 digits are fixed as 07 so that it can be identified from other system MAC Addresses
# $RANDOM generates a random number
+# Approach 1
mac_address=$(echo "$RANDOM"|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/07:\1:\2:\3:\4:\5/')
+echo -e $mac_address "\t<---------------... | bash |
d_bash_15905 | ---
+++
@@ -4,4 +4,4 @@
export ONEARTH_VERSION=2.6.3 # This must be manually incremented with each OnEarth version
# The onearth release to use in the Docker image tag (e.g. onearth-wms:{ONEARTH_VERSION}-{ONEARTH_RELEASE}).
-export ONEARTH_RELEASE=1 # This must be manually incremented with each OnEarth build
+exp... | bash |
d_bash_15906 | ---
+++
@@ -3,7 +3,7 @@
echo "Host node server backup script (c) Pedro Amador 2011-2014"
# Determine backup period
period=''
-if [ `cal | awk 'NF==7&&NR>2{print $1;exit}'` == $(date +%d) ]
+if [ `cal | awk 'NF==7&&NR>2{print $1;exit}'` == $(date +%e) ]
then
# Monthly; first sunday of month
period='monthly' | bash |
d_bash_15907 | ---
+++
@@ -4,7 +4,7 @@
process_properties() {
if [[ -f "$1" ]]; then
- while IFS='=' read -r key value; do
+ while IFS='=' read -r key value || [[ -n "$key" ]]; do
if [[ -n "$value" ]]; then
if [[ "$key" == "BOOT_JAVA_COMMAND" ]]; then
java_com... | bash |
d_bash_15908 | ---
+++
@@ -1 +1 @@
-awscli lambda list-functions --output table --query "Functions[$(auto_filter FunctionName Runtime 'to_string(MemorySize)' 'to_string(Timeout)' -- $@)].{\"1.Name\":FunctionName,\"2.Runtime\":Runtime,\"3.Timeout\":Timeout,\"4.MemorySize\":MemorySize}"
+awscli lambda list-functions --output table --... | bash |
d_bash_15909 | ---
+++
@@ -32,10 +32,10 @@
cat $mac/key-bindings.dict | indent
# http://xahlee.info/kbd/osx_keybinding_key_syntax.html
- # echo ' /* Compose Key: F19 */'
- # echo -n ' "\UF716" = '
- echo ' /* Compose Key: F12 */'
- echo -n ' "\UF70F" = '
+ echo ' /* Compose Key: F19 */'
+ echo -n ... | bash |
d_bash_15910 | ---
+++
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
#
# Script to initialize angular app
+set -e
# @log startup time
START_SERVER_TEIM=$(date +%s) | bash |
d_bash_15911 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/bash
if [ $# -lt 1 ]; then
+ echo "usage: $0 rev_num"
echo "error: must specify a version number"
exit 1
fi | bash |
d_bash_15912 | ---
+++
@@ -1,6 +1,8 @@
include app.server.validator.AppServerValidator
include app.server.version.constants.AppserverVersionConstants
include app.server.version.override.AppServerVersionOverride
+
+include base.vars.BaseVars
include string.util.StringUtil
include string.validator.StringValidator
@@ -9,9 +11,6... | bash |
d_bash_15913 | ---
+++
@@ -2,9 +2,9 @@
sudo -k
echo Copying examples/py into the system
-echo WARNING: this will remove /etc/lithos from the system
-echo ... hoping you run this in virtual machine
-echo ... but let you think 10 seconds
+echo WARNING: This Command will remove /etc/lithos from the system
+echo ... hopefully you r... | bash |
d_bash_15914 | ---
+++
@@ -4,6 +4,9 @@
echo "The script must be run as root !"
exit 0
fi
+
+# Refresh PPAs
+sudo apt-get autoremove && sudo apt-get autoclean
# Install GParted
wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
@@ -24,5 +27,13 @@
apt-get install python-glade2
apt-get install s... | bash |
d_bash_15915 | ---
+++
@@ -2,4 +2,4 @@
set -o errexit
-dpkg-query -f '${Package}\t${Status}\n' -W '*'
+dpkg-query -f '${Package}\t${Status}\n' -W '*' | awk '{print $1"\t"$4}' | bash |
d_bash_15916 | ---
+++
@@ -4,6 +4,7 @@
cd `dirname $0`
+git co upgrades.csv && \
git fetch && \
git rebase origin/master && \
rm -rf build && \ | bash |
d_bash_15917 | ---
+++
@@ -1,5 +1,19 @@
#!/bin/bash
set -euo pipefail
+
+# fix automake
+sed -i.bak '1 s|^.*$|#!/usr/bin/env perl|g' $PREFIX/bin/aclocal
+sed -i.bak '1 s|^.*$|#!/usr/bin/env perl|g' $PREFIX/bin/automake
+
+# fix autoconf
+sed -i.bak '1 s|^.*$|#!/usr/bin/env perl|g' $PREFIX/bin/autom4te
+sed -i.bak '1 s|^.*$|#!/usr... | bash |
d_bash_15918 | ---
+++
@@ -20,10 +20,10 @@
# Remove bgclang directories
echo "Removing RPM directory $RPMDIR..."
-# rm -rf $RPMDIR
+rm -rf $RPMDIR
echo "Removing RPM database directory $RPMDBPATH..."
-# rm -rf $RPMDBPATH
+rm -rf $RPMDBPATH
echo "Removing install directory $PREFIX_BASE/$VERSION..."
-# rm -rf $PREFIX_BASE/$VERS... | bash |
d_bash_15919 | ---
+++
@@ -1,3 +1,4 @@
alias reload='. ~/.bashrc'
alias a='atom .'
alias shitter='cd ~/git/veralite/ && bin/lasttripped; cd - > /dev/null'
+alias drun='docker run --rm -i -t' | bash |
d_bash_15920 | ---
+++
@@ -6,5 +6,5 @@
CHECK_TO_RUN=$2
clang-tidy --checks=${CHECK_TO_RUN} --disable-checks="" ${INPUT_FILE} \
- -- --std=c++11 \
+ -- --std=c++11 -x c++ \
| FileCheck ${INPUT_FILE} | bash |
d_bash_15921 | ---
+++
@@ -4,10 +4,17 @@
./autogen.sh
CC=clang CFLAGS='-Wall -O1 -g -fsanitize=address -fno-sanitize-recover' LDFLAGS='-fsanitize=address -fno-sanitize-recover' ./configure
-make clean all
+make clean all tools
./examples/encoder_example -k 4 ${VIDEOS}/claire_qcif-2frames.y4m -o out.$$.ogv
./examples/dump_vide... | bash |
d_bash_15922 | ---
+++
@@ -18,7 +18,9 @@
source tensorflow/tools/ci_build/release/common.sh
-python -m pip install --upgrade twine
+# TODO(mihaimaruseac): Convert all builds to start from a virtualenv to isolate
+# from Kokoro setup
+python -m pip install --upgrade --user twine
# Copy and rename to tf_nightly
for f in $(ls... | bash |
d_bash_15923 | ---
+++
@@ -7,5 +7,5 @@
curl -sSf https://sh.rustup.rs | sh -s -- -y
# shellcheck source=/dev/null
-source $HOME/.cargo/env
+source "${HOME}/.cargo/env"
rustc --version | bash |
d_bash_15924 | ---
+++
@@ -9,6 +9,7 @@
readonly subtree="Utilities/KWSys/vtksys"
readonly repo="http://public.kitware.com/KWSys.git"
readonly tag="master"
+readonly shortlog="true"
readonly paths="
"
| bash |
d_bash_15925 | ---
+++
@@ -9,7 +9,7 @@
echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.13%2B8/OpenJDK11U-jdk_x64_linux_hotspot_11.0.13_8.tar.gz"
;;
java17)
- echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17%2B35/OpenJDK17-jdk_x64_linux_hotspot_17_35.tar.gz"
+ ... | bash |
d_bash_15926 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/bash
-packer build analyze.json
+packer="/usr/local/bin/packer"
+$packer build analyze.json
docker import - baseball/analyze:latest < analyze.tar | bash |
d_bash_15927 | ---
+++
@@ -1,8 +1,7 @@
#!/bin/bash
echo Creating the Swarm, making this host the Manager
-#docker swarm init --advertise-addr 10.10.10.20
-docker swarm init
+docker swarm init --advertise-addr 10.10.10.10
echo Capture the manager and worker tokens
MANAGER_TOKEN=$(docker swarm join-token --quiet manager)
@@ -... | bash |
d_bash_15928 | ---
+++
@@ -6,7 +6,6 @@
src/javascript/services/share.js \
src/javascript/services/imageloader.js \
src/javascript/controllers/home.js \
- src/javascript/controllers/collection.js \
--mangle \
--compress \
-o www/dist/javascript/tuchong.min.js \ | bash |
d_bash_15929 | ---
+++
@@ -4,10 +4,10 @@
set -e
-./fake-gcs-server -backend memory -scheme http -port 8080 -data $PWD/examples/data &
+export STORAGE_EMULATOR_HOST=http://localhost:8080
+./fake-gcs-server -backend memory -data $PWD/examples/data -scheme http -port 8080 &
(
- export STORAGE_EMULATOR_HOST=http://localhost:808... | bash |
d_bash_15930 | ---
+++
@@ -36,24 +36,16 @@
function before {
git checkout -b existing_feature
- add_local_commit $main_branch_name 'new_commit_in_main'
+ add_local_commit $main_branch_name 'new_local_commit_in_main'
+ add_remote_commit $main_branch_name 'new_remote_commit_in_main'
checkout_branch... | bash |
d_bash_15931 | ---
+++
@@ -10,11 +10,20 @@
# # m h dom mon dow command
# 0 0 * * * /etc/buildkite-agent/docker-cleanup.sh
-# Delete all exited containers
-docker rm $(docker ps -aq --no-trunc --filter "status=exited") || echo "No finished containers to remove"
+# Delete all exited containers first
+exited_containers=$(docke... | bash |
d_bash_15932 | ---
+++
@@ -15,10 +15,6 @@
# $tool_dir
#./src/prepare_galaxy_tools/prepare_genometools_tools.sh \
-# $galaxy_tool_dir \
-# $tool_dir
-
-#./src/prepare_galaxy_tools/prepare_cluster_sequence_tools.sh \
# $galaxy_tool_dir \
# $tool_dir
| bash |
d_bash_15933 | ---
+++
@@ -2,6 +2,6 @@
##############
#Tarring files
##############
-tar -czf $1.tar.gz $1
-echo $1.tar.gz
-exit 0
+xargs tar -czf $1.tar.gz
+&& echo $1.tar.gz
+&& exit 0 | bash |
d_bash_15934 | ---
+++
@@ -1,7 +1,14 @@
function bers_changed_vs_origin_master() {
- local bers_changed_vs_origin_master_FILES=`git_files_changed_vs_origin_master | grep spec | grep "_spec.rb$"`
- if [ `echo $bers_changed_vs_origin_master_FILES | wc -l` -gt 0 ]; then
- echorun bers `echo $bers_changed_vs_origin_master_FILES |... | bash |
d_bash_15935 | ---
+++
@@ -7,8 +7,8 @@
find /python /app ! -user app -exec chown app:app {} \;
update-python-env() {
- if [ -f /requirements.txt ]; then
- echo -n "* Installing packages from /requirements.txt"
+ if [ -f /app/requirements.txt ]; then
+ echo -n "* Installing packages from /app/requirements.txt"
g... | bash |
d_bash_15936 | ---
+++
@@ -2,7 +2,7 @@
total=0
count=1
-limit_for_each=10
+limit_for_each=100
function exec_test() {
total=`expr $total + 1` | bash |
d_bash_15937 | ---
+++
@@ -25,9 +25,7 @@
brew cask install imageoptim
brew cask install intellij-idea
brew cask install istat-menus
-brew cask install iterm2
brew cask install java
-brew cask install kitematic
brew cask install mactracker
brew cask install macvim
brew cask install markright | bash |
d_bash_15938 | ---
+++
@@ -10,8 +10,8 @@
array=(../samples/*)
-printf "%40s %10s %10s -> %10s\n" "file_name" "state" "test_size" "enc_size "
-echo "----------------------------------------------------------------------------"
+printf "%40s %10s %10s -> %10s (%10s)\n" "file_name" "state" "orig_size" "enc_size" "diff_size"
+echo... | bash |
d_bash_15939 | ---
+++
@@ -31,9 +31,11 @@
dst="$HOME/.$dotfile"
cmd="cp -pr $src $dst"
+ mkdir -p "$HOME/.backups"
+
if [[ -e $dst ]]; then
msg "[ backup ] $dst"
- mv "$dst" "$dst.backup"
+ mv "$dst" "$HOME/.backups/$dotfile"
msg "[ replace ] $dst"
eval "$cmd"
else | bash |
d_bash_15940 | ---
+++
@@ -19,4 +19,4 @@
RAILS_ENV=development rake karma:install karma:run_once
rake spec
-bundle exec cucumber
+rake cucumber | bash |
d_bash_15941 | ---
+++
@@ -3,3 +3,4 @@
# localhost tests
docker exec -it localhost_mile_1 npm test
docker exec -it localhost_engine_1 npm test
+docker exec -it localhost_engine_1 cd public && npm test | bash |
d_bash_15942 | ---
+++
@@ -1,6 +1,8 @@
# hub (http://github.com/defunkt/hub)
# brew install hub
[ `which hub` ] && alias git='nocorrect hub'
+
+alias trog='trash **/*.orig'
alias -g A='|ack'
alias -g L='|less' | bash |
d_bash_15943 | ---
+++
@@ -16,4 +16,5 @@
exit 1
fi
+echo "All the necessary files are present"
exit 0 | bash |
d_bash_15944 | ---
+++
@@ -50,6 +50,12 @@
getCommandsByAnnotation ${testFile} @test) kappa
}
+ @test
+ testGetValidFunctions(){
+ ${assertEquals} $(CommandValidator
+ getValidFunctions ${testFile}) kappa
+ }
+
local assertEquals="TestUtil assertEquals"
local testDir=$(pwd)/bash-toolbox/test/dependencies
local testF... | bash |
d_bash_15945 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-if [ "$TRAVIS_REPO_SLUG" == "openxc/openxc-android" ] && [ "$TRAVIS_JDK_VERSION" == "openjdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "automate-javadoc" ]; then
+if [ "$TRAVIS_REPO_SLUG" == "openxc/openxc-android" ] && [ "$TRAVIS_JDK_VERSION" == "op... | bash |
d_bash_15946 | ---
+++
@@ -5,9 +5,11 @@
if [[ $TRAVIS_BRANCH == 'master' ]] && [[ $TRAVIS_PULL_REQUEST = false ]]
then
# add remote ssh-key to key-storage
+ # first add remote host to known hosts
ssh-keyscan -t rsa $DEPLOY_HOST 2> /dev/null | sort -u - ~/.ssh/known_hosts -o ~/.ssh/known_hosts
- openssl aes-256-cbc -K $encrypt... | bash |
d_bash_15947 | ---
+++
@@ -1,7 +1,11 @@
#!/usr/bin/env bash
ID=${1:-fad27d57a0820d7f25e830e4fa01b61e}
-CMD="http --verbose --verify no --follow alb-2018072720411595490000001e-1254405108.us-east-2.elb.amazonaws.com/assets/id/${ID}/resized?width=240&height=160"
-#CMD="http --verbose --verify no --follow https://www.orfeo.io/asset... | bash |
d_bash_15948 | ---
+++
@@ -13,10 +13,10 @@
# check branch (see: http://stackoverflow.com/a/229606)
branch=$(git branch)
-#if [[ "$branch" != *"master"* ]]; then
-# echo "Not on master branch, but on branch '$branch' -- not uploading wheel";
-# exit 0;
-#fi
+if [[ "$branch" != *"master"* ]]; then
+ echo "Not on master branch,... | bash |
d_bash_15949 | ---
+++
@@ -19,8 +19,17 @@
_golang_normalize_env;
GOPATH=$(printf "$GO_ENV/$1\n")
+ if [ -z "$_GOENV_OLD_PATH" ]; then
+ # We have no old path - we can undonditionally set it
+ _GOENV_OLD_PATH="$PATH"
+ fi
+
+ PATH=$_GOENV_OLD_PATH:$GOPATH/bin
+
if [ -d "$GOPATH" ]; then
... | bash |
d_bash_15950 | ---
+++
@@ -1,10 +1,14 @@
include array.util.ArrayUtil
+
+include file.name.util.FileNameUtil
include logger.util.LoggerUtil
include props.util.PropsUtil
include string.util.StringUtil
+
+include system.validator.SystemValidator
PropsReaderUtil(){
getPropsFileName(){
@@ -30,7 +34,7 @@
if [[ ! -e ${1... | bash |
d_bash_15951 | ---
+++
@@ -7,6 +7,7 @@
# git config --global user.email "jrh3k5@gmail.com"
# apt-get install default-jdk
# apt-get install maven
+# git clone https://github.com/jrh3k5/flume-agent-maven-plugin.git
#
# From the root directory of the project, run:
# mvn clean install | bash |
d_bash_15952 | ---
+++
@@ -11,11 +11,14 @@
export MYIP=`ip route get 8.8.8.8 | head -1 | cut -d' ' -f8`
echo "MYIP: $MYIP"
-sed -i -e "s/router.default.svc.cluster.local/${MYIP}.nip.io/g" $CDIR/master-config.yaml
+sed -i -e "s/router.default.svc.cluster.local/${MYIP}.nip.io/g" $CDIR/master/master-config.yaml
echo "NEW CONFIG: ... | bash |
d_bash_15953 | ---
+++
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
-# do all of the docker squash steps....
+# do all of the docker squash steps.
+# REQUIRES: docker-squash: https://github.com/jwilder/docker-squash
if [ ! $# -gt 1 ]; then
echo "Usage: ./squash-image.sh <image> [docker-squash options| ...]" | bash |
d_bash_15954 | ---
+++
@@ -8,9 +8,9 @@
export CONTAINER_NAME=ci_native_multiprocess
export DOCKER_NAME_TAG=ubuntu:20.04
-export PACKAGES="cmake python3"
+export PACKAGES="cmake python3 llvm clang"
export DEP_OPTS="DEBUG=1 MULTIPROCESS=1"
export GOAL="install"
-export BITCOIN_CONFIG="--enable-external-signer --enable-debug"
+e... | bash |
d_bash_15955 | ---
+++
@@ -2,7 +2,7 @@
TMP=run/tmp
rm -rf build/bosun $TMP
-git clone -b master --single-branch --depth 1 .. build/bosun
+git clone -b master --single-branch .. build/bosun
docker build -t bosun-build build
ID=$(docker run -d bosun-build)
mkdir -p $TMP/hbase $TMP/bosun $TMP/tsdb | bash |
d_bash_15956 | ---
+++
@@ -46,3 +46,4 @@
run_test ./tests/scripts/check-names.sh
run_test ./tests/scripts/check-generated-files.sh
run_test ./tests/scripts/check-files.py
+run_test ./tests/scripts/doxygen.sh | bash |
d_bash_15957 | ---
+++
@@ -8,7 +8,6 @@
yum -y install centos-release-scl
yum -y install ${collection}\*
- rpm -qa --qf '%{NAME}-%{VERSION}-%{RELEASE} %{SIGPGP:pgpsig} %{SIGGPG:pgpsig}\n'
keyid=$(gpg --list-packets /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo | grep -e '^\s*keyid' | awk '{print tolower($NF)}')
echo ... | bash |
d_bash_15958 | ---
+++
@@ -1,5 +1,4 @@
#!/bin/sh
-#feel free to clean this up ive made no attempt to write this overly portable ...
datadir="./data"
| bash |
d_bash_15959 | ---
+++
@@ -1,15 +1,12 @@
source $HOME/.profile
-# $HOME/bin/earthwall/earthwall.sh&
-feh --bg-scale /home/rl/Pictures/wallpaper.jpg
+feh --bg-scale $HOME/Pictures/wallpaper.jpg
start-pulseaudio-x11
-clipmenud&
-compton&
-thunderbird&
+#compton&
clipmenud&
dunst&
wmname LG3D
blueman-applet&
$HOME/dotfiles/bin/... | bash |
d_bash_15960 | ---
+++
@@ -6,7 +6,7 @@
set -o pipefail
-curl -fL https://github.com/coreos/rkt/releases/download/v${ACI_VERSION}/rkt_${ACI_VERSION}-1_amd64.deb -o rkt.deb
+curl -fL https://github.com/rktproject/rkt/releases/download/v${ACI_VERSION}/rkt_${ACI_VERSION}-1_amd64.deb -o rkt.deb
dpkg -x rkt.deb ${ROOTFS}
rm -v $... | bash |
d_bash_15961 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-set -ex
+set -e
# Update the latest-release branch with the most recent tagged release
@@ -13,14 +13,8 @@
# check to make sure the tag doesn't already exist
if ! git rev-parse $VERSION_TAG >/dev/null 2>&1; then
echo "Using the most recent tag: $VERSION_TAG and cre... | bash |
d_bash_15962 | ---
+++
@@ -1,46 +1,25 @@
#!/bin/bash
-# Runs pre-commit tests.
-#
-# Instead of failing on first error, complete all checks, then fail if need be.
-# Echo go's version to verify against go's behavior below.
-# Different versions do different things with respect to vendored code.
-go version
+rc=0
-# Assert stat... | bash |
d_bash_15963 | ---
+++
@@ -22,3 +22,6 @@
sudo zypper install -t pattern devel_basis
sudo pip3 install -r ~/environment/requirements.txt -U
+
+echo "KEYMAP=en-latin9" > /etc/vconsole.conf
+ | bash |
d_bash_15964 | ---
+++
@@ -17,8 +17,12 @@
rm profile.out
fi
- # Then we test the race condition without plugin tests.
- go test -race $d -v cover
+ # Then we test other tests with race detection
+ go test -race -coverprofile=profile.out -covermode=atomic $d -v
+ if [ -f profi... | bash |
d_bash_15965 | ---
+++
@@ -7,6 +7,6 @@
# Set up the versions to be used
# Don't export them as their used in the context of other calls
-coreth_version=${CORETH_VERSION:-'v0.5.5-rc.1'}
+coreth_version=${CORETH_VERSION:-'v0.5.6-rc.0'}
# Release of AvalancheGo compatible with previous database version
prev_avalanchego_version=$... | bash |
d_bash_15966 | ---
+++
@@ -19,6 +19,7 @@
--pid-path=/var/log/nginx/nginx.pid \
--http-log-path=/var/log/nginx/access.log \
--user=${WWW_USER} --group=${WWW_GROUP} \
+ --with-http_auth_request_module \
--with-http_ssl_module \
--with-http_v2_module \
--without-http_ssi_module \ | bash |
d_bash_15967 | ---
+++
@@ -1,9 +1,16 @@
#!/bin/bash
-
VIM_ROOT=$HOME/.vim
RANDOM_NR=`shuf -i 1000-90000 -n 1`
INSTALL_ROOT=`pwd`
+
+platform='unknown'
+unamestr=`uname`
+if [[ "$unamestr" == 'Linux' ]]; then
+ platform='linux'
+elif [[ "$unamestr" == 'Darwin' ]]; then
+ platform='osx'
+fi
if [ -d $VIM_ROOT -o -L $VIM_... | bash |
d_bash_15968 | ---
+++
@@ -9,6 +9,7 @@
# Pull typings from the cache and attempt to get latest
cp -r $HOME/typings .
tsd reinstall -so; true
+cp -r typings $HOME
# install Karma test suite and modules
npm install karma | bash |
d_bash_15969 | ---
+++
@@ -11,7 +11,7 @@
git commit -am "Release version $version and update docs" --author="orbit-tools <orbit@ea.com>"
echo Create release notes from previous commit messages
-releaseNotes=curl -sH "$AUTH" "$GH_REPO/orbit/orbit/commits\?since\=$(curl -sH $AUTH" "$GH_REPO/orbit/orbit/releases" | jq '.[0].creat... | bash |
d_bash_15970 | ---
+++
@@ -8,7 +8,9 @@
echo ${line} | /srv/syslog/bin/import_logs.py \
--url=https://${MATOMO_FQDN}/ --token-auth=${MATOMO_AUTH_TOKEN} \
--idsite=${MATOMO_SITEID} --recorders=4 \
- --enable-http-errors --enable-http-redirects --enable-bots \
+ --enable-http-errors \
+ --enable-http-redirects ... | bash |
d_bash_15971 | ---
+++
@@ -15,9 +15,10 @@
git checkout master
lein set-version $new_version
lein update-dependency org.onyxplatform/onyx $new_version
-sed -i '' 's/$current_version/"$new_version"/g' README.md
+sed -i.bak 's/$current_version/"$new_version"/g' README.md
+git add README.md project.clj
-git commit -am "Release ver... | bash |
d_bash_15972 | ---
+++
@@ -3,6 +3,6 @@
# Deploy a snapshot build to Sonatype. Only non-pull requests will be deployed.
#
-if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
+if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
mvn --settings scripts/mvn_settings.xml -DskipTests=true source:jar javadoc:jar deploy
fi | bash |
d_bash_15973 | ---
+++
@@ -11,4 +11,8 @@
rm -rf Makefile src/*.coffee
# Remove the git repo info
rm -rf .git
+ # Remove the c files we no longer need (the sqlite3 node module has a massive ~5M c file)
+ find . -name '*.c' -delete
+ # And the tar files (sqlite3 module again)
+ find . -name '*.tar.*' -delete
fi | bash |
d_bash_15974 | ---
+++
@@ -10,3 +10,4 @@
sudo rm -rf /tmp/*
sudo rm -rf /vagrant
+sudo rm -rf /etc/puppet | bash |
d_bash_15975 | ---
+++
@@ -1,8 +1,9 @@
d=$(python -c 'from __future__ import print_function; import distutils.sysconfig as s; print(s.get_python_lib())')
-rm -fv $d/*.so
+srw_path='env/work/srw_python'
+rm -fv ${srw_path}/*.so
make all
(
- cd env/work/srw_python
+ cd ${srw_path}
install -m 644 {srwl,uti}*.py srwlpy*.s... | bash |
d_bash_15976 | ---
+++
@@ -12,4 +12,4 @@
cp -r dist "vantage-$VERSION"
cp install.sh README.md LICENSE "vantage-$VERSION/"
-tar -cvzf "vantage-$VERSION.tar.gz" "vantage-$VERSION"
+tar -cvzf "vantage-$VERSION.tar.gz" -C "vantage-$VERSION" . | bash |
d_bash_15977 | ---
+++
@@ -5,11 +5,11 @@
BN=aspell6-en-2015.04.24-0
F=${BN}.tar.bz2
-URL=ftp://ftp.gnu.org/gnu/aspell/dict/en/${F}
+URL=http://ftp.gnu.org/gnu/aspell/dict/en/${F}
echo "# setting up Aspell dictionaries!!"
(
- cd /tmp
+ cd data
curl -o $F $URL
tar xjf $F
rm $F | bash |
d_bash_15978 | ---
+++
@@ -4,18 +4,19 @@
set -o pipefail
test_dir=dist/build
temp_dir=$test_dir/parse-tmp
+kicad_mod_dir=$temp_dir/kicad-data
test_executable=$test_dir/parse
root_dir=$(pwd)
mkdir -p $test_dir
+mkdir -p $temp_dir
-if [ ! -d "$temp_dir" ]; then
- git clone --depth=1 "https://github.com/kasbah/kicad_footpri... | bash |
d_bash_15979 | ---
+++
@@ -10,14 +10,13 @@
echo -e ?'Build Branch with Snapshot => Branch ['$CIRCLE_BRANCH']'
./gradlew clean build $SWITCHES
elif [ $CIRCLE_TAG ]; then
- RELEASE_VERSION=$(echo $CIRCLE_TAG | sed 's/^v\(.*\)/\1/')
- echo -e 'Build Branch for Release => Branch ['$CIRCLE_BRANCH'] Tag ['$CIRCLE_TAG'] Version ... | bash |
d_bash_15980 | ---
+++
@@ -15,4 +15,4 @@
this_script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$this_script_dir/install.sh"
-install_driver "$*"
+install_driver $* | bash |
d_bash_15981 | ---
+++
@@ -6,5 +6,6 @@
export PGPORT=5432
export MASTER_DATA_DIRECTORY=/data/gpdata/master/gpseg-1
export PGDATABASE=gptest
+createdb gptest
cd /home/gpadmin/gpdb_src/gpMgmt
make -f Makefile.behave behave flags="$BEHAVE_FLAGS" | bash |
d_bash_15982 | ---
+++
@@ -2,6 +2,7 @@
-- Test to make sure the app shuts down propertly on reconfiguration
+local basic_apps = require("apps.basic.basic_apps")
local intel = require("apps.intel_mp.intel_mp")
local lib = require("core.lib")
@@ -15,6 +16,10 @@
rxq = 0,
txq = 0,
... | bash |
d_bash_15983 | ---
+++
@@ -4,6 +4,7 @@
sbcl --load quicklisp.lisp \
--eval '(quicklisp-quickstart:install)' \
+ --eval '(let ((ql-util::*do-not-prompt* t)) (ql:add-to-init-file))' \
--eval '(ql:quickload :cffi)' \
--eval '(ql:quickload :cffi-grovel)' \
--eval '(ql:quickload :cxml)' \ | bash |
d_bash_15984 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/sh
-virtualenv -p python3.4 env
+virtualenv -p python3.7 env
. ./env/bin/activate
pip install -r requirements.txt | bash |
d_bash_15985 | ---
+++
@@ -10,7 +10,8 @@
for (( c=1; c<=${count}; c++ )); do
triton instance create \
--name="student-${c}" "${image}" "${package}" \
- --network="${private},${public}" \
+ --network="${public},${private}" \
+ -t "sdc_docker=true" \
... | bash |
d_bash_15986 | ---
+++
@@ -1,23 +1,19 @@
#!/bin/bash
-DATAFOLDER=/usr/local/share/appdata/torigemubot/
-APPFOLDER=/usr/local/lib/torigemubot/
-SYSTEMDFOLDER=/etc/systemd/system/
+DATAFOLDER=/usr/local/share/appdata/torigemubot
+APPFOLDER=/usr/local/lib/torigemubot
+SYSTEMDFOLDER=/etc/systemd/system
-if [ ! -d "$DATAFOLDER" ]; th... | bash |
d_bash_15987 | ---
+++
@@ -2,9 +2,13 @@
set -e -o pipefail
SCRIPTDIR=$(cd -P $(dirname $0); pwd)
+DOCKERFILE=${SCRIPTDIR}/docker-compose-test.yml
-docker-compose -f ${SCRIPTDIR}/docker-compose-test.yml up -d
-sleep 2
+docker-compose -f $DOCKERFILE stop
+docker-compose -f $DOCKERFILE rm -f
+docker-compose -f $DOCKERFILE up -d
... | bash |
d_bash_15988 | ---
+++
@@ -9,5 +9,24 @@
elif hash apt 2>/dev/null; then
echo "Debian"
- # TODO
+ # TODO: termite
+ # sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/local/bin/termite 60
+
+ # krypt.co
+ # curl https://krypt.co/kr | sh
+
+ # Thunar File Manager
+ ... | bash |
d_bash_15989 | ---
+++
@@ -3,7 +3,7 @@
set -ex
readonly GRADLE_PROJECTS=(
- # "java/dagger/hilt/android/plugin"
+ "java/dagger/hilt/android/plugin"
"javatests/artifacts/dagger"
"javatests/artifacts/hilt-android/pluginMarker"
) | bash |
d_bash_15990 | ---
+++
@@ -2,6 +2,10 @@
# Set up container
docker run -d --name zookeeper --net=host meldrum/docker-zookeeper-kerberos
+
+# TODO: Fix this
+echo "Waiting while kerberos load data..."
+sleep 20
# Copy our Client JaaS file over to conf directory
docker cp zookeeper:/opt/zookeeper-3.5.2-alpha/conf/zookeeper-clien... | bash |
d_bash_15991 | ---
+++
@@ -2,10 +2,12 @@
./go javadocs || exit
# Python
-./go py_docs || exit
+./go //py:setup //py:init py_docs || exit
# Ruby
./go //rb:docs || exit
+
+git checkout rb/Gemfile.lock
# switch to gh-pages and copy the files
git checkout gh-pages || exit | bash |
d_bash_15992 | ---
+++
@@ -7,17 +7,17 @@
# Find double New Lines at the end of files
if [[ $(find . -type f -exec sh -c '[ -z "$(sed -n "\$p" "$1")" ]' _ {} \; -print | wc -l) -gt 0 ]]; then
find . -type f -exec sh -c '[ -z "$(sed -n "\$p" "$1")" ]' _ {} \; -print
- echo "Test1"
FOUND=1
fi
# Find missing New Line... | bash |
d_bash_15993 | ---
+++
@@ -1,10 +1,10 @@
-#!/bin/bash
+#!/bin/bash -x
export GIT_WORKBENCH_STDOUT_LOG=$(tty)
if [ "$PYTHONPATH" = "" ]
then
- export PYTHONPATH=${BUILDER_TOP_DIR}/Source
+ export PYTHONPATH=${BUILDER_TOP_DIR}/Source:${BUILDER_TOP_DIR}/Source/Common
else
- export PYTHONPATH=${BUILDER_TOP_DIR}/Source:$PYTHONPATH
+... | bash |
d_bash_15994 | ---
+++
@@ -3,4 +3,4 @@
SCRIPT_DIR=$(dirname $(readlink -f $0))
java -classpath "$SCRIPT_DIR/../conf:$SCRIPT_DIR/../lib/*" \
- dk.statsbiblioteket.medieplatform.newspaper.editionRecords.EditionRecordRelationsMaintainerComponent -c $SCRIPT_DIR/../conf/config.properties
+ dk.statsbiblioteket.medieplatform.newsp... | bash |
d_bash_15995 | ---
+++
@@ -15,7 +15,7 @@
echo "" >> /etc/motd
echo "" >> /etc/motd
-cat >> /etc/straycat-base-image << EOF
+cat >> /etc/site-base-image << EOF
$vm_name
| bash |
d_bash_15996 | ---
+++
@@ -4,15 +4,15 @@
set -x
-if [ ! -f "./build/splitsh-lite" ]; then
- bash build/install-split.sh
+if [ ! -f "./bin/splitsh-lite" ]; then
+ bash bin/install-split.sh
fi
CURRENT_BRANCH="2.x"
function split()
{
- SHA1=`./build/splitsh-lite --prefix=$1 --origin=origin/$CURRENT_BRANCH`
+ S... | bash |
d_bash_15997 | ---
+++
@@ -5,4 +5,5 @@
package=/org/apache/commons/validator/javascript
perl ${cmdpath}/jsdoc.pl --project-summary ${dirtoprocess}${package}/package.html --project-name "Package org.apache.commons.validator.javascript" --page-footer "Copyright 2000-2003 - Apache Software Foundation
" -d ${outputto}/${package} -r... | bash |
d_bash_15998 | ---
+++
@@ -14,8 +14,10 @@
echo === Creating documentation
doxygen Doxyfile
echo === Creating nightly tarball and zip
-tar -pczf $MT_WEB_DIR/latest.tar.gz $MT_DIR/*
-zip -r $MT_WEB_DIR/latest.zip $MT_DIR/*
+cd $MT_DIR
+cd ..
+tar -pczf $MT_WEB_DIR/latest.tar.gz MADTraC
+zip -r $MT_WEB_DIR/latest.zip MADTraC
echo ... | bash |
d_bash_15999 | ---
+++
@@ -7,8 +7,10 @@
[ ! $EMSDK ] && pushd emsdk && source ./emsdk_env.sh && popd
# Compile LLVM bitcode
+# XXX FIXME: We'd like to enable pcre2, but somehow,
+# this fails in the github automated testing environment.
pushd ../..
-emconfigure ./configure --disable-editline --disable-sat-solver --disable-java... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.