document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_17200 | ---
+++
@@ -5,7 +5,9 @@
local time=$(BaseUtil timestamp)
buildMessage(){
- echo "${time} [$(StringUtil toUpperCase ${1})] $(StringUtil replace $2 - space)"
+ _message=$(StringUtil capitalize $2)
+
+ echo "${time} [$(StringUtil toUpperCase ${1})] $(StringUtil replace $_message - space)"
}
$@ | bash |
d_bash_17201 | ---
+++
@@ -4,15 +4,8 @@
chmod +x configure
+echo "int flint_test_multiplier(){return 1;}" > test_helpers.c
./configure --prefix=$PREFIX --with-gmp=$PREFIX --with-mpfr=$PREFIX
-
make
-
-# Travis timeouts when running tests on OS X.
-if [ "$(uname)" == "Linux" ]
-then
- make check
-fi
-
+make check
make ins... | bash |
d_bash_17202 | ---
+++
@@ -13,6 +13,9 @@
alias c='z'
alias d='docker'
alias ls='ls --color'
+# load custom functions
+fpath=( $ZSHRC/functions "${fpath[@]}" )
+autoload -Uz ckd
# OS specific code
[ `uname` '==' "Linux" ] && source "$ZSHRC/linux.zsh"; | bash |
d_bash_17203 | ---
+++
@@ -11,7 +11,7 @@
StringUtil toUpperCase $(StringUtil strip cmd Version)_VERSION)
fi
- echo ${cmd}
+ ${cmd}
}
GLASSFISH_VERSION(){ | bash |
d_bash_17204 | ---
+++
@@ -1,9 +1,24 @@
sasswatch() {
- param_count="${#}"
- command="style.scss:style.css"
+ # Usage:
+ # $ sasswatch
+ # sass [...] --watch "style.scss:style.css"
+ #
+ # $ sasswatch my_style
+ # sass [...] --watch "my_style.scss:my_style.css"
+ #
+ # $ sasswatch my_style.c... | bash |
d_bash_17205 | ---
+++
@@ -1,3 +1,5 @@
+#!/bin/sh
+
head -n 1 $1 > initial_visits.csv
grep "initial_visit" $1 >> initial_visits.csv
head -n 1 $1 > followup_visits.csv | bash |
d_bash_17206 | ---
+++
@@ -1,7 +1,7 @@
set -e
make update-lock
git init
-ls --ignore={deps,run.me.first.sh} | xargs git add
+ls | grep -v "^\(deps\|run.me.first.sh\)\$" | xargs git add
git add .gitignore rebar.config.lock
git commit -m "Initial commit"
git tag 0.1.0 | bash |
d_bash_17207 | ---
+++
@@ -29,10 +29,9 @@
. "$bin_path/utils.sh"
get_configured_registries | while read config ; do
-
- repo="$(echo "$config" | awk '{print $1}')"
- username="$(echo "$config" | awk '{print $2}')"
- api_key="$(echo "$config" | awk '{print $3}')"
+ repo="$(echo "$config" | cut --delimiter = --fields ... | bash |
d_bash_17208 | ---
+++
@@ -24,3 +24,4 @@
export LC_CTYPE=$LANG
export LC_ALL=en_US.UTF-8
export EDITOR=nvim
+export PATH=$PATH:$HOME/go/bin | bash |
d_bash_17209 | ---
+++
@@ -1,8 +1,37 @@
#!/usr/bin/env bash
log() {
- echo -e "$@"
+ echo -e "$@" >&2
}
+
+error_exit() {
+ echo "Error: $1"
+ exit 1
+}
+
+require() {
+ which $1 > /dev/null || error_exit "$0 requires $1"
+}
+
+help() {
+ log "Usage:
+
+ SYNOPSIS
+
+ OpenSource is a tiny shell script that allows you ... | bash |
d_bash_17210 | ---
+++
@@ -12,7 +12,7 @@
pandoc \
-f gfm -t html5 \
--css github-md.css -Vpagetitle=capstone-sys \
- --standalone --self-contained \
+ --standalone \
${base}.md -o ${base}.html
}
| bash |
d_bash_17211 | ---
+++
@@ -10,7 +10,13 @@
## Wait a few seconds to make sure database comes up
## then apply evolutions
-sleep 5
+
+## Wait for database to start
+docker run --name up-checker-database \
+ --env DOCKER_HOST=$DOCKER_HOST \
+ --rm \
+ overview/up-checker database
+
docker run --name db-evolution-applier \
-... | bash |
d_bash_17212 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/sh
-echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu" "trusty-updates/kilo main" > /etc/apt/sources.list.d/cloudarchive-kilo.list
+echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu" "trusty-updates/liberty main" > /etc/apt/sources.list.d/cloudarchive-liberty.list
| bash |
d_bash_17213 | ---
+++
@@ -2,11 +2,11 @@
# This Shell Script will build and use the latest jMonkeyEngine git version, so there might be some undiscovered engine bugs, watch out!
# Also if you want to revert to releases and bintray builds, you need to uninstall them from your local maven repo...
echo "Downloading the Engine, this... | bash |
d_bash_17214 | ---
+++
@@ -9,7 +9,7 @@
echo "usage: cp-parents.sh [ARGS] SRC/FILE* DEST"
echo "Copies SRC/FILE* to DEST/SRC/FILE"
echo "A single token ARGS is optional, and must start with dash"
- echo "Emulates GNU's cp $ARGS --parents SRC/FILE* DEST"
+ echo "Emulates GNU's cp ARGS --parents SRC/FILE* DEST"
}
crash(... | bash |
d_bash_17215 | ---
+++
@@ -17,6 +17,7 @@
R -e "rmarkdown::render('scrnaseq-mouse-scdd.Rmd', clean=FALSE)"
R -e "rmarkdown::render('scrnaseq-human-mast.Rmd', clean=FALSE)"
R -e "rmarkdown::render('scrnaseq-mouse-mast.Rmd', clean=FALSE)"
+R -e "rmarkdown::render('scrnaseq-human-wilcox.Rmd', clean=FALSE)"
+R -e "rmarkdown::render('... | bash |
d_bash_17216 | ---
+++
@@ -1,8 +1,8 @@
export P4VERSION=$(command p4 -V | awk -F/ '/Rev. P4/ {print $3}')
p4() {
- typeset -a args
- local args=( $@ )
- local cmd=$args[1]
+ local args cmd
+ args=( $@ )
+ cmd=$args[1]
local p4aliases=$HOME/.p4aliases
local bp4oaliases=${XDG_CONFIG_HOME:-$HOME/.config... | bash |
d_bash_17217 | ---
+++
@@ -1,5 +1,3 @@
#!/bin/bash
-sudo docker run -ti --device /dev/nvidia0:/dev/nvidia0 --device \
- /dev/nvidiactl:/dev/nvidiactl --device /dev/nvidia-uvm:/dev/nvidia-uvm \
- -v "$(dirname "`pwd`")":/home/theano/research --net=host djpetti/rpinets-theano /bin/bash
+sudo nvidia-docker run -ti -v "$(dirname "... | bash |
d_bash_17218 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-f2py2.7 -c -m _intro ../Fortran/utils.f90 intro_shared.f90 intro_direct.f90 intro_2d.f90 intro_3d.f90
+f2py3.4 -c -m _intro ../Fortran/utils.f90 intro_shared.f90 intro_direct.f90 intro_2d.f90 intro_3d.f90 | bash |
d_bash_17219 | ---
+++
@@ -13,8 +13,8 @@
git config user.name "Travis-CI"
git config user.email "travis@travis"
- npm run swagger bundle --json -o deploy_to_gh_pages/swagger.json
- npm run swagger bundle --yaml -o deploy_to_gh_pages/swagger.json
+ npm run swagger bundle -- --json -o deploy_to_gh_pages/swagger.json
+ npm... | bash |
d_bash_17220 | ---
+++
@@ -24,7 +24,7 @@
echo "" >> $HOST_VAR
echo "# Flag indicating if the server software should or should not be" \
"patched" >> $HOST_VAR
- echo "server_patch: $YUM_UPDATE" >> $HOST_VAR
+ echo "server_patch: \"$YUM_UPDATE\"" >> $HOST_VAR
else
echo "$HOST_VAR already exists, ski... | bash |
d_bash_17221 | ---
+++
@@ -3,3 +3,4 @@
cp -R scriptmodules/ports/* "/home/pi/RetroPie-Setup/scriptmodules/ports/"
cp -R scriptmodules/emulators/* "/home/pi/RetroPie-Setup/scriptmodules/emulators"
cp -R scriptmodules/supplementary/* "/home/pi/RetroPie-Setup/scriptmodules/supplementary"
+cp -R scriptmodules/libretrocores/* "/home/... | bash |
d_bash_17222 | ---
+++
@@ -6,5 +6,9 @@
echo "--- Verifying branch is based on current master"
exit_unless_master_merged
-echo "--- Pushing branch"
-git push origin $BUILDKITE_COMMIT:master
+echo "--- Merging and pushing branch"
+git checkout master
+git merge origin/master
+git merge origin/$BUILDKITE_BRANCH
+git push origin ma... | bash |
d_bash_17223 | ---
+++
@@ -3,7 +3,9 @@
# Make the ccache objects CPU-specific by including /proc/cpuinfo when hashing
# input files. This is necessary for objects compiled with `-march=native`
-export CCACHE_EXTRAFILES=/proc/cpuinfo
+# TODO: Find alternative solution since this file can change dynamically (e.g.
+# the `cpu MHz`... | bash |
d_bash_17224 | ---
+++
@@ -11,9 +11,3 @@
go test ./triemux
USE_COMPILED_ROUTER=1 bundle exec rspec
-
-bundle exec fpm \
- -s dir -t deb \
- -n ${PROJECT_NAME} -v 0.${BUILD_NUMBER} \
- --prefix /usr/bin \
- ${PROJECT_NAME} | bash |
d_bash_17225 | ---
+++
@@ -4,7 +4,9 @@
export STACK_BUILD_DIR="$PWD"
cd "$(dirname "$0")/../.."
#TODO: set up gpg-agent forwarding for package signing (see http://superuser.com/questions/161973/how-can-i-forward-a-gpg-key-via-ssh-agent).
-gpg --export-secret-keys --armor `git config --get user.email` >"gpg-secret-key.asc~"
+# TO... | bash |
d_bash_17226 | ---
+++
@@ -10,7 +10,7 @@
rm -r release-*.zip || true
}
hash(){
- find build -name \*.js -execdir shasum -a 512 \{\} +
+ shasum -a 512 `find build -name \*.js | sort`
}
echo Running first build | bash |
d_bash_17227 | ---
+++
@@ -1,6 +1,12 @@
#!/bin/bash
-XCODE_THEME_PATH=$HOME/Library/Developer/Xcode/UserData/FontAndColorThemes/
+THEME_FILE="dpree.dvtcolortheme"
+SOURCE_PATH="$HOME/dev/dotfiles/install_scripts/resources/"
+XCODE_THEME_PATH="$HOME/Library/Developer/Xcode/UserData/FontAndColorThemes/"
-mkdir -p $XCODE_THEME_PA... | bash |
d_bash_17228 | ---
+++
@@ -29,11 +29,17 @@
fi
}
+ipsec_settings()
+{
+ echo 32768 > /proc/sys/net/ipv4/xfrm4_gc_thresh || true
+}
+
chmod 600 content/etc/racoon/psk.txt
create_dummy
proxyarp
route_tables
+ipsec_settings
stage_files
| bash |
d_bash_17229 | ---
+++
@@ -1,5 +1,11 @@
#!/bin/bash
+
+# Exit immediately on errors.
+set -e
+
+# Run from the src/tools directory which includes all our crates.
cd $(dirname "$0")/tools
+
PKGS="-p cretonne -p cretonne-reader -p cretonne-tools"
cargo build $PKGS
cargo doc $PKGS | bash |
d_bash_17230 | ---
+++
@@ -8,15 +8,6 @@
OUTPUT_FILE="${CACHEDIR}MODULE.txt"
SEPARATOR=' = '
-# Skip manual check
-if [ "$1" = 'manualcheck' ]; then
- echo 'Manual check: skipping'
- exit 0
-fi
-
-# Create cache dir if it does not exist
-mkdir -p "${CACHEDIR}"
-
# Business logic goes here
# Output data here | bash |
d_bash_17231 | ---
+++
@@ -20,7 +20,7 @@
if [ ! -f /usr/bin/vim ]; then
$REMOVE vim
fi
-add-apt-repository ppa:jonathonf/vim
+add-apt-repository ppa:pi-rho/dev
apt update
$INSTALL vim vim-nox
# vim-plug: the best vim plugin manager as of December 25, 2016 | bash |
d_bash_17232 | ---
+++
@@ -22,7 +22,7 @@
cd $target
for file in *; do
echo - .${file}
- cp -r ${file} ${INSTALL_DIR}/.${file}
+ ln -s ${file} ${INSTALL_DIR}/.${file}
done
cd $root
done | bash |
d_bash_17233 | ---
+++
@@ -3,7 +3,7 @@
# Ensure rbenv gets loaded if it is available
if [[ -d $HOME/.rbenv ]]; then
export PATH=$PATH:$HOME/.rbenv/bin
- eval "$(rbenv init - --no-rehash)"
+ eval "$(rbenv init -)"
fi
alias b='bundle' | bash |
d_bash_17234 | ---
+++
@@ -14,13 +14,12 @@
# Write headers to output file, if it does not yet exist
if [[ ! -f $output_file ]] ; then
echo Creating $output_file
- $script_dir/speedtest-cli-extras/bin/speedtest-csv --header > $output_file
+ (echo -ne "pi_revision\\t"; $script_dir/speedtest-cli-extras/bin/speedtest-csv -... | bash |
d_bash_17235 | ---
+++
@@ -8,12 +8,16 @@
OutputX=`date +%F`
for j in doesNotExist expected exists manifest doNotProcess testing notReady ready released down superseded
do
-count=`grep $j $tpath/allstatus | wc -l`
-countother=$(($countother - $count))
-OutputX=$OutputX,$count
-#echo $OutputX
+ count=`grep $j $tpath/allstatus | w... | bash |
d_bash_17236 | ---
+++
@@ -12,7 +12,8 @@
}
function recipe_build {
- ./configure --static --prefix=/
+ # See https://stackoverflow.com/questions/21396988/zlib-build-not-configuring-properly-with-cross-compiler-ignores-ar.
+ CHOST=x86_64-unknown-redox ./configure --static --prefix=/
make -j"$(nproc)"
skip=1
} | bash |
d_bash_17237 | ---
+++
@@ -4,7 +4,11 @@
sudo apt-get install iotop iftop htop
sudo apt-get install finger whois tree traceroute
sudo apt-get install vim zip
+
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
+cd ~/.dotfiles
+git checkout files/bashrc # Seriously, WTF is heroku doing modifying my personal files?
+cd ... | bash |
d_bash_17238 | ---
+++
@@ -12,7 +12,7 @@
git clone https://github.com/CraneStation/wasi-libc
cd wasi-libc
-git reset --hard f645f498dfbbbc00a7a97874d33082d3605c3f21
+git reset --hard 1fad33890a5e299027ce0eab7b6ad5260585e347
make -j$(nproc) INSTALL_DIR=/wasm32-wasi install
cd .. | bash |
d_bash_17239 | ---
+++
@@ -16,14 +16,23 @@
# See if commit message includes "update"
git log --name-status HEAD^..HEAD | grep "update" || exit 0
-echo "(Creat/updat)ing lockfile"
+echo "Updating lockfiles"
yarn
+
+cd examples/node && yarn upgrade
+cd -
+
+cd examples/protractor && yarn upgrade
+cd -
+
+cd examples/typescript &... | bash |
d_bash_17240 | ---
+++
@@ -21,7 +21,7 @@
cd $1
if [ -f testcase.proto ]; then
protoc --cpp_out=. testcase.proto
- $CXX -std=c++11 -I../../include -o testcase testcase.cpp testcase.pb.cc -lprotobuf-lite -pthreads
+ $CXX -std=c++11 -I../../include -o testcase testcase.cpp testcase.pb.cc -lprotobuf-lite -pthread
./te... | bash |
d_bash_17241 | ---
+++
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
-sleep 30
+dockerize -wait tcp://greenplum:5432 -timeout 1m
bundle exec rake | bash |
d_bash_17242 | ---
+++
@@ -14,7 +14,7 @@
_run mkdir -p "$MAKEDIR/$1-$2"
cd "$MAKEDIR/$1-$2"
- _run cmake -DBUILD=$1 -DLUA=$2 "$ROOT"
+ _run cmake -DBUILD=$1 -DLUA=$2 -DCMAKE_INSTALL_PREFIX=/usr "$ROOT"
}
_runeach _configure | bash |
d_bash_17243 | ---
+++
@@ -2,8 +2,8 @@
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
./ruby/rvm-installer
source ~/.rvm/scripts/rvm
- rvm install --quiet-curl 2.3
- rvm --default use 2.3
+ rvm install --quiet-curl 2.4
+ rvm --default use 2.4
fi
gem install ... | bash |
d_bash_17244 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
pushd /var/lib/postgresql/data >/dev/null
-openssl req -new -newkey rsa:4096 -x509 -nodes -out server.crt -keyout server.key -batch
+openssl req -new -newkey rsa:4096 -x509 -days 365000 -nodes -out server.crt -keyout server.key -batch
chmod 600 server.key
sed -i "s/^#ssl = off/... | bash |
d_bash_17245 | ---
+++
@@ -2,4 +2,8 @@
# This script tests both the natty and scaffolding crates, to make sure that
# changes to natty's public API do not break the scaffolding terminal
-cargo test && cd scaffolding && cargo test && cd ..
+test_subcrate() {
+ cd $1 && cargo test && cd ..
+}
+
+cargo test && test_subcrate 'no... | bash |
d_bash_17246 | ---
+++
@@ -8,7 +8,7 @@
fuser -k 8080/tcp ; sleep 10
else
./gradlew &
- sleep 420
+ sleep 300
curl --retry 10 --retry-delay 5 -I http://localhost:8080/ | grep "HTTP/1.1 200 OK"
fuser -k 8080/tcp ; sleep 10
fi | bash |
d_bash_17247 | ---
+++
@@ -13,6 +13,6 @@
for server in "${!servers[@]}"; do
echo "testing connectivity to: $server (${servers["$server"]})";
- nc -z -w 10 -v ${servers["$server"]};
+ nc -z -w 10 -v "${servers["$server"]}";
echo "";
done | bash |
d_bash_17248 | ---
+++
@@ -1,6 +1,10 @@
log "cleaning files"
-cp /dev/null /var/log/auth.log >/dev/null
+if [ -e /var/log/auth.log ]; then
+ cp /dev/null /var/log/auth.log >/dev/null
+else
+ cp /dev/null /var/log/authlog >/dev/null
+fi
log "substituting placeholders for real data in config files"
| bash |
d_bash_17249 | ---
+++
@@ -8,3 +8,53 @@
local checksum_setting_name=checksum_${1//[\/ ]/_} # Replace all '/' and ' ' by '_'
ynh_app_setting_delete $app $checksum_setting_name
}
+
+# Start or restart a service and follow its booting
+#
+# usage: ynh_check_starting "Line to match" [Log file] [Timeout] [Service name]
+#
+# | arg... | bash |
d_bash_17250 | ---
+++
@@ -16,6 +16,14 @@
sed /tmp/2/etc/fstab -i -e "s|^.* / |${part2} / |"
sed /tmp/2/etc/fstab -i -e "s|^.* /boot |${part1} /boot |"
+if [ -e /mnt/ssh ]; then
+ cp /mnt/ssh /tmp/1/
+fi
+
+if [ -e /mnt/ssh.txt ]; then
+ cp /mnt/ssh.txt /tmp/1/
+fi
+
if ! grep -q resize /proc/cmdline; then
sed -i 's| qu... | bash |
d_bash_17251 | ---
+++
@@ -3,7 +3,8 @@
set -e
cp node_modules/testpilot-metrics/testpilot-metrics.js src/vendor
-cp node_modules/kinto-http/dist/kinto-http.js src/sidebar/vendor
-cp node_modules/quill/dist/quill.js src/sidebar/vendor
+
+cp node_modules/kinto-http/dist/kinto-http.min.js src/sidebar/vendor/kinto-http.js
+cp node_... | bash |
d_bash_17252 | ---
+++
@@ -6,6 +6,13 @@
# Install vim vundle
dotfiles_install_remote_component GITHUB VundleVim/Vundle.vim .vim/bundle/Vundle.vim
+# Install vim plugins
+vim +PluginInstall +qall
+
# Install config
dotfiles_install_component .vim $HOME/.vim
dotfiles_install_component .vimrc $HOME/.vimrc
+
+# Build YouComplete... | bash |
d_bash_17253 | ---
+++
@@ -13,6 +13,8 @@
(cd ./tools/stationxml; go build; ./stationxml -output ../../.tmp/geonet-meta/stationxml/complete.xml)
+mkdir -p .tmp/geonet-meta/seed || exit 255
+
exit $errcount
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 | bash |
d_bash_17254 | ---
+++
@@ -18,7 +18,7 @@
sed -i.bak 's/$ac_cv_func_oggpack_writealign/yes/' configure
# finally, run configuration script
- emconfigure ./configure --disable-oggtest --with-ogg=$dir/libogg --with-ogg-libraries=$dir/libogg/src/.libs --disable-asm
+ emconfigure ./configure --disable-oggtest --with-ogg=$dir... | bash |
d_bash_17255 | ---
+++
@@ -8,8 +8,8 @@
cd delta-lang.github.io
DELTA_VERSION=$TRAVIS_COMMIT
-echo $DELTA_VERSION > src-backend/.delta-version
-git add src-backend/.delta-version
+echo $DELTA_VERSION > server/.delta-version
+git add server/.delta-version
git commit --message "Update Delta version to $DELTA_VERSION" --author "De... | bash |
d_bash_17256 | ---
+++
@@ -10,8 +10,8 @@
git fetch https://github.com/thelounge/thelounge.git refs/pull/${1}/head
git checkout FETCH_HEAD
git rebase master
-npm install
-NODE_ENV=production npm run build
-npm test || true
+yarn install
+NODE_ENV=production yarn build
+yarn test || true
shift
-npm start -- "$@"
+yarn start "$@" | bash |
d_bash_17257 | ---
+++
@@ -4,11 +4,11 @@
exit
fi
DIR=$(dirname $1)/$(basename $1)
-for f in `/usr/local/bin/aws s3 ls s3://t-ip$DIR/ | awk '{print $4}'`;
+for f in `aws s3 ls s3://t-ip$DIR/ | awk '{print $4}'`;
do
if [ ! -f /hdfs$DIR/$f ]; then
echo $f
- /usr/local/bin/aws s3 cp s3://t-ip$DIR/$f /tmp/
+ aws s3 cp... | bash |
d_bash_17258 | ---
+++
@@ -7,3 +7,6 @@
mkdir /.output/buildutil
cp /go/bin/* /.output/buildutil/.
+
+echo 'Contents of /.output/buildutil are:'
+ls -l /.output/buildutil | bash |
d_bash_17259 | ---
+++
@@ -7,26 +7,27 @@
function node_install {
echo " - Node install: $1"
- npm install -g $1 > /dev/null
+ sudo npm install -g $1 > /dev/null
}
-cho "+ apt-get update"
+echo "+ apt-get update"
apt-get update > /dev/null
-echo "+ intall node"
+sudo apt-get --purge remove node
+
+echo "+ Pre... | bash |
d_bash_17260 | ---
+++
@@ -3,7 +3,7 @@
# namely: a review by admin, with id=1 and jdoe user
ssh -o UserKnownHostsFile=/dev/null \
-o StrictHostKeyChecking=no \
- -i ./id_rsa_jdoe \
+ -i ./data/id_rsa_jdoe \
-p 29418 \
jdoe@localhost \
gerrit review ${1:-1,1} -m "$(shuf -n5 /usr/share/dict/american-englis... | bash |
d_bash_17261 | ---
+++
@@ -5,6 +5,16 @@
exit 1
}
+# recordings are saved in /data/eyra, need to make sure our server
+# has permissions to write there.
+if [ ! -d "/data" ]; then
+ sudo mkdir "/data"
+fi
+if [ ! -d "/data/eyra" ]; then
+ sudo mkdir "/data/eyra"
+fi
+sudo chown $USER "/data/eyra"
+
sudo service ap... | bash |
d_bash_17262 | ---
+++
@@ -21,7 +21,7 @@
# Note: for internal (aka pre-release) versions, the version should have
# "-INTERNAL" appended. Parts of the code will look for this to distinguish
# between released and internal versions.
-VERSION=2.8.0-cdh5-INTERNAL
+VERSION=2.7.0
GIT_HASH=$(git rev-parse HEAD)
BUILD_TIME=`date`
HE... | bash |
d_bash_17263 | ---
+++
@@ -2,7 +2,12 @@
RUNTIMES="provided go1.x nodejs4.3 nodejs6.10 nodejs8.10 nodejs10.x python2.7 python3.6 python3.7 ruby2.5 java8 dotnetcore2.0 dotnetcore2.1"
+echo -n "Enter repository passphrase: "
+read -s DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE
+echo
+
export DOCKER_CONTENT_TRUST=1
+export DOCKER_... | bash |
d_bash_17264 | ---
+++
@@ -8,12 +8,6 @@
# build
python setup.py sdist bdist_wheel
-# register
-twine register \
- --username allonhadaya \
- --password `pass show pypi` \
- dist/*.tar.gz
-
# upload
twine upload \
--skip-existing \ | bash |
d_bash_17265 | ---
+++
@@ -4,7 +4,7 @@
/* This file is autogenerated by the build system */
var VERSION='#VERSION#';
var ENABLE_DUAL_ENGINES=false;
-var IS_TEST_NET=false;
+var IS_TEST_NET=window.location.port == "6886";
var FORCE_LOCAL_HOST=true;
var PRIVATE_ENABLED=false;
var WALLET_NAME='FIMKrypto'; | bash |
d_bash_17266 | ---
+++
@@ -1,6 +1,17 @@
#!/bin/bash
set -e
#set -x
+
+if [ "${LOG}" == "TRUE" ]; then
+ LOG_DIR=/var/log/letsencrypt
+ LOG_FILE=${LOG_DIR}/runtime.log
+ mkdir -p ${LOG_DIR}
+ touch ${LOG_FILE}
+
+ UUID=$(cat /proc/sys/kernel/random/uuid)
+ exec > >(read message; echo "$(date -Iseconds) ${UUID} [info] $message"... | bash |
d_bash_17267 | ---
+++
@@ -19,5 +19,5 @@
echo 'export GOPATH=~/' > /etc/profile.d/gopath.sh
# Install fpm
-sudo apt-get install -y rubygems
+sudo apt-get install -y ruby-dev gcc
sudo gem install fpm --no-ri --no-rdoc | bash |
d_bash_17268 | ---
+++
@@ -5,7 +5,7 @@
# Cloning to default dir
echo "=> Downloading sample-cuteness from git"
printf "\r=> "
- command git clone "git@github.com:NativeScript/sample-cuteness.git"
+ command git clone "https://github.com/NativeScript/sample-cuteness.git"
cd sample-cuteness
fi
| bash |
d_bash_17269 | ---
+++
@@ -3,22 +3,23 @@
SOURCE_DIR="@CMAKE_SOURCE_DIR@"
BINARY_DIR="@CMAKE_BINARY_DIR@"
+# $1 - file to copy from source to binary directory
copyFile() {
mkdir -p -v $(dirname "$BINARY_DIR/$1")
cp -u -v "$SOURCE_DIR/$1" "$BINARY_DIR/$1"
}
-for FILE in $(find "$SOURCE_DIR/configs" -name "*.xml" -pr... | bash |
d_bash_17270 | ---
+++
@@ -26,4 +26,4 @@
ENVOY_ARGS=${ENVOY_ARGS:-""}
${CONFIGMANAGER} $@ &
-${ENVOY} -c ${BOOTSTRAP_FILE} --disable-hot-restart ${ENVOY_ARGS}
+${ENVOY} -c ${BOOTSTRAP_FILE} --disable-hot-restart --log-format '%L%m%d %T.%e %t envoy] [%t][%n]%v' ${ENVOY_ARGS} | bash |
d_bash_17271 | ---
+++
@@ -4,7 +4,9 @@
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
echo -e "Starting to update gh-pages\n"
+ ls -l
convert ./simplept.ppm $HOME/simplept.jpg
+
cd $HOME
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis CI" | bash |
d_bash_17272 | ---
+++
@@ -34,7 +34,11 @@
ruby-dev \
nodejs-legacy \
npm \
- phantomjs
+ phantomjs \
+ libffi-dev \
+ libgeos-dev \
+ libproj-dev \
+ libgdal-dev
gem install bundler
| bash |
d_bash_17273 | ---
+++
@@ -1,4 +1,3 @@
GIT=https://gitlab.redox-os.org/redox-os/orbital.git
-BRANCH=redox-unix
CARGOFLAGS="--bin orbital -- -C lto"
DEPENDS="orbdata" | bash |
d_bash_17274 | ---
+++
@@ -8,6 +8,7 @@
brew cask install atom
brew cask install carbon-copy-cloner
brew cask install ccmenu
+brew cask install cyberduck
brew cask install dash
brew cask install dropbox
brew cask install firefox
@@ -22,3 +23,4 @@
brew cask install textwrangler
brew cask install visual-studio-code
brew cask ... | bash |
d_bash_17275 | ---
+++
@@ -19,8 +19,8 @@
if [ "${IS_SNAPSHOT}" = false ] ; then
git reset --hard @
- git checkout develop
- git merge master
+ git checkout -b for_appcast origin/develop
+ git merge --ff-only for_build
cp appcast.xml appcast_snapshot.xml
git commit appcast_snapshot.xml -m "Update appcas... | bash |
d_bash_17276 | ---
+++
@@ -15,6 +15,7 @@
--jscomp_off=deprecated \
--jscomp_off=lintChecks \
--jscomp_off=analyzerChecks \
+ --jscomp_warning=unusedLocal \
--js='**.js' \
--js='!**_test.js' \
--js='!**_perf.js' \ | bash |
d_bash_17277 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
-source venv/bin/activate
+source $HOME/.bashrc
+source $HOME/trackercise/venv/bin/activate
python manage.py backup_data_to_s3
+deactivate | bash |
d_bash_17278 | ---
+++
@@ -6,7 +6,7 @@
# Build the classpath
CLASSPATH=""
- for filename in $(ls -1 "$LCF_HOME/processes/jar") ; do
+ for filename in $(ls -1 "$LCF_HOME"/processes/jar) ; do
if [ -n "$CLASSPATH" ] ; then
CLASSPATH="$CLASSPATH":"$LCF_HOME"/processes/... | bash |
d_bash_17279 | ---
+++
@@ -6,7 +6,7 @@
CFG_PARAMS=
if [ $TRAVIS_OS_NAME == osx ]; then
- CFG_PARAMS="-DLLVM_DIR=/usr/local/Cellar/llvm/5.0.1/lib/cmake/llvm"
+ CFG_PARAMS="-DLLVM_DIR=/usr/local/opt/llvm@5/lib/cmake/llvm"
fi
if [ $TRAVIS_OS_NAME == linux ]; then | bash |
d_bash_17280 | ---
+++
@@ -6,7 +6,7 @@
mkdir -p "$HOME"
-. ./share/ruby-install/ruby-install.sh
+. $PWD/share/ruby-install/ruby-install.sh
function oneTimeSetUp() { return; }
function setUp() { return; } | bash |
d_bash_17281 | ---
+++
@@ -17,9 +17,9 @@
function jump() {
local jumpline=$(cat ${BOOKMARKS_FILE} | $(fzfcmd) --bind=ctrl-y:accept --tac)
if [[ -n ${jumpline} ]]; then
- local jumpdir=$(echo $jumpline | awk '{print $3}' | sed "s#~#$HOME#")
+ local jumpdir=$(echo $jumpline | awk '{$1=$2="";print}' | xargs | ... | bash |
d_bash_17282 | ---
+++
@@ -2,24 +2,27 @@
. /etc/sysconfig/heat-params
-DOCKER_DEV=/dev/disk/by-id/virtio-${DOCKER_VOLUME:0:20}
-
attempts=60
-while [[ ! -b $DOCKER_DEV && $attempts != 0 ]]; do
- echo "waiting for disk $DOCKER_DEV"
+while [ ${attempts} -gt 0 ]; do
+ device_name=$(ls /dev/disk/by-id | grep ${DOCKER_VOLUME... | bash |
d_bash_17283 | ---
+++
@@ -1,13 +1,28 @@
source ../coreutils/plan.sh
pkg_name=coreutils-static
+pkg_origin=core
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
-pkg_dirname=${pkg_distname}-${pkg_version}
+pkg_description="\
+The GNU Core Utilities are the basic file, shell and text manipulation \
+utilities of the... | bash |
d_bash_17284 | ---
+++
@@ -2,5 +2,5 @@
dd if=/dev/zero of=sd.bin bs=64M count=1
fi
-qemu-system-arm -M vexpress-a9 -kernel rtthread.elf -nographic -sd sd.bin
+qemu-system-arm -M vexpress-a9 -kernel rtthread.elf -nographic -sd sd.bin -net nic -net tap
| bash |
d_bash_17285 | ---
+++
@@ -1,6 +1,6 @@
TEXT=`cat CHANGELOG.md| sed -n "/##\ $VERSION/,/##/p"`
-TEXT=`echo "$TEXT" | sed '1d;$d'`
+TEXT=`echo "$TEXT" | sed '1d;$d' | sed 's/\[\]//g'`
echo "gh release create $VERSION -n \"## What's Changed\r\n$TEXT\""
| bash |
d_bash_17286 | ---
+++
@@ -12,7 +12,7 @@
cd laravel-latest
-composer require 'laravel/framework:dev-master as 7' --with-dependencies --no-update
+composer require 'laravel/framework:dev-master as 7' --update-with-dependencies --no-update
composer require bugsnag/bugsnag-laravel --no-update
composer update --no-dev | bash |
d_bash_17287 | ---
+++
@@ -2,15 +2,16 @@
PW=/usr/sbin/pw
CHOWN=/usr/sbin/chown
AWK=/usr/bin/awk
+HOME_DIR=/usr/home
pw_create_account ( ) {
echo "Adding user $1 with password $1"
- mkdir -p ${BOARD_FREEBSD_MOUNTPOINT}/usr/home/$1
- $PW useradd -n $1 -s /bin/csh -g wheel -w yes -V ${BOARD_FREEBSD_MOUNTPOINT}/etc/ -d... | bash |
d_bash_17288 | ---
+++
@@ -1,5 +1,5 @@
# Make sure udev doesn't block our network
-if grep -q -i "release 6" /etc/redhat-release ; then
+if uname -r | grep -q el6 ; then
sudo rm -rf /etc/udev/rules.d/70-persistent-net.rules
sudo rm -rf /lib/udev/rules.d/75-persistent-net-generator.rules
fi | bash |
d_bash_17289 | ---
+++
@@ -2,8 +2,17 @@
set -e
-for x in $(find . -name '*.atop'); do
- ./plot.py $(dirname $x)/$(basename $x .atop) &
+for x in $(find . -name '*.phases'); do
+ base="$(dirname $x)/$(basename $x .phases)"
+ (
+ ./plot.py $base > $base.log 2>&1
+ if [[ "$?" != 0 ]]; then
+ echo... | bash |
d_bash_17290 | ---
+++
@@ -25,17 +25,3 @@
# Set the Finder prefs for showing a few different volumes on the Desktop.
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
-
-# Run the screensaver if we're in the bottom-left hot corner.
-d... | bash |
d_bash_17291 | ---
+++
@@ -7,11 +7,12 @@
nginx-full \
tmux \
openvpn \
- python-pillow \
+ python-dev \
python-virtualenv \
python-pip \
postgresql \
- python-psycopg2"
+ libpg-dev"
+
. util.sh
| bash |
d_bash_17292 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-export PYTHONPATH=/home/goodmami/pydelphin/:"$PYTHONPATH"
+export PYTHONPATH=~/pydelphin/:"$PYTHONPATH"
python3 profound.py "$@" | bash |
d_bash_17293 | ---
+++
@@ -18,7 +18,7 @@
wrap git remote add mirror "https://${HASHIBOT_USER}:${HASHIBOT_TOKEN}@github.com/${remote_repository}" \
"Failed to add mirror repository (${remote_repository}) for sync"
-wrap git update \
+wrap git remote update \
"Failed to update mirror repository (${remote_repository}) f... | bash |
d_bash_17294 | ---
+++
@@ -2,7 +2,7 @@
set -e
py.test --cov=demo_python_at tests
-flake8 demo_python_at/
+flake8 $(find . -iname "*.py")
pydocstyle --config=.pydocstyle demo_python_at
pylint demo_python_at/
| bash |
d_bash_17295 | ---
+++
@@ -36,4 +36,9 @@
args+=(-check)
fi
-addlicense "${args[@]}" .
+if ! addlicense "${args[@]}" . ; then
+ set +x
+ echo -e "\n------------------------------------------------------------------------"
+ echo "Error: license missing in one or more files. Run \`$0 run\` to update them."
+ exit 1
+fi | bash |
d_bash_17296 | ---
+++
@@ -13,6 +13,6 @@
for specstyle in "suse" "fedora"; do
echo "run ${spec} for ${specstyle}"
renderspec --spec-style ${specstyle} ${spec} \
- -o $WORKSPACE/logs/`basename ${spec}`.${specstyle}
+ -o $WORKSPACE/logs/${spec##*/}.${specstyle}
done
don... | bash |
d_bash_17297 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/bash
-cd /opt/superdesk/client/ && grunt template
+cd /opt/superdesk/client/dist &&
+sed -i -e "s/http:\/\/localhost:5000\/api/$(echo $SUPERDESK_URL | sed 's/\//\\\//g')/g" index.html -e "s/ws:\/\/localhost:5100/$(echo $SUPERDESK_WS_URL | sed 's/\//\\\//g')/" &&
nginx &
cd /opt/sup... | bash |
d_bash_17298 | ---
+++
@@ -1,4 +1,4 @@
# sup yarn
# https://yarnpkg.com
-export PATH="$HOME/.yarn/bin:$PATH"
+export PATH="$PATH:`yarn global bin`" | bash |
d_bash_17299 | ---
+++
@@ -12,10 +12,10 @@
out="${base}/compiled-${GOOS}"
semver=`grep "VERSION =" server/const.go | cut -d\" -f2`
-timestamp=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
+timestamp=`date -u +"%Y-%m-%dT%H_%M_%SZ"`
git_rev=`git rev-parse --short HEAD`
-version="${semver}-${git_rev}-${timestamp}"
+version="${semver}+${git_r... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.