document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_1200 | ---
+++
@@ -6,10 +6,15 @@
git checkout master
yarn build-prod
git add -A
- git commit -m ":rocket:"
+
+ TAG=$(egrep '"version": "([0-9]+\.[0-9]+\.[0-9]+"),' package.json | egrep -o '[0-9]+\.[0-9]+\.[0-9]+')
+
+ git commit -m ":rocket: v$TAG"
+ git tag -a "v$TAG" -m "v$TAG"
# push to ... | bash |
d_bash_1201 | ---
+++
@@ -16,6 +16,7 @@
# Sleep a bit to be sure that node2 is up and ready to answer us
#sleep 120
+ip addr show
opsbro gossip detect --auto-join
cat /var/log/opsbro/gossip.log
@@ -24,7 +25,7 @@
if [ $NB_MEMBERS != 2 ]; then
echo "BAD number of members: $NB_MEMBERS"
-
+ opsbro gossip members
e... | bash |
d_bash_1202 | ---
+++
@@ -5,5 +5,6 @@
if [ "${CODESPACES:-}" = "true" ]; then
code \
--install-extension eamodio.gitlens \
- --install-extension flesler.url-encode
+ --install-extension flesler.url-encode \
+ >&/dev/null
fi | bash |
d_bash_1203 | ---
+++
@@ -1,9 +1,23 @@
#!/bin/bash
+dependencies=(git python3 python3-dev python3-setuptools)
+proc_serve_user="procserve"
+install_dir="/opt"
#Update package repos and install dependencies
apt-get update
-dependencies=(git python3 python3-dev python3-setuptools)
for dep in "${dependencies[@]}"
do
apt-g... | bash |
d_bash_1204 | ---
+++
@@ -5,7 +5,6 @@
export GEM_HOME=$RUN_DIR/.beehive_gem_home
export GEM_PATH=$RUN_DIR/.beehive_gem_home:`gem env path`
export PATH=$RUN_DIR/.beehive_gem_home/bin:$PATH
-
echo $$ > $PIDFILE
@@ -18,6 +17,6 @@
echo "Using start.sh file"
exec /bin/sh start.sh
else
- echo "./script/server -p $PORT"
-... | bash |
d_bash_1205 | ---
+++
@@ -7,7 +7,7 @@
./$appName > /dev/null &
sdl_pid=$!
echo "SDL pid "$sdl_pid
-sleep 3
+sleep 10
test -e /proc/$sdl_pid || exit 1
cd $dirATF
echo $sdl_pid > sdl.pid | bash |
d_bash_1206 | ---
+++
@@ -8,6 +8,9 @@
neutron quota-update --tenant_id $PROJECTID --subnet 10000
openstack flavor create --ram 64 --disk 0 --vcpus 1 --id 27 ovntenant
+# Add a SG rule to allow ping
+neutron security-group-rule-create --direction ingress --protocol icmp default
+
OVN_TENANT=$(openstack project show -f value -c... | bash |
d_bash_1207 | ---
+++
@@ -17,8 +17,8 @@
fi
echo -e "\n"
- echo th dataset_creator.lua -c "$dir/labels.csv" -d "$dir" "${dir}.t7" | tee $temp
- th dataset_creator.lua -c "$dir/labels.csv" -d "$dir" "${dir}.t7" | tee $temp
+ echo th dataset_creator.lua --csv "$dir/labels.csv" --dir "$dir" "${dir}.t7" | tee $temp... | bash |
d_bash_1208 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Script to perform a release of vector-web.
# | bash |
d_bash_1209 | ---
+++
@@ -18,7 +18,12 @@
# limitations under the License.
################################################################################
-echo "Starting Apache Karaf"
-exec $KARAF_HOME/bin/karaf
+if [ "$1" = "server" ]; then
+ echo "Starting Apache Karaf (server mode)"
+ exec $KARAF_HOME/bin/karaf server
+e... | bash |
d_bash_1210 | ---
+++
@@ -11,3 +11,13 @@
mkdir -p "${LIB_DIR}"
cp -R "${BUILD_DIR}/Paste/paste" "${LIB_DIR}"
cp -R "${BUILD_DIR}/youtube-dl/youtube_dl" "${LIB_DIR}"
+
+(
+ cd "${LIB_DIR}/youtube_dl"
+ echo 'Patching youtube_dl'
+ sed 's/import fcntl/# Removed fcntl import/g' utils.py > utils.py.temp
+ mv utils.py.te... | bash |
d_bash_1211 | ---
+++
@@ -21,8 +21,10 @@
version=`grep '^VERSION' namebench-$$/libnamebench/version.py | cut -d\' -f2`
mv namebench-$$ namebench-$version
cd namebench-$version
+svn log > ChangeLog.txt &
./namebench.py -q5 -j50 -x -o /tmp/$$.csv -O 8.8.8.8
-svn log > ChangeLog.txt
+echo "Waiting for changelog"
+wait
find . -na... | bash |
d_bash_1212 | ---
+++
@@ -18,6 +18,7 @@
# build libpatlms
cd libpatlms
+./autogen.sh
./configure --prefix=${PATLMS_INSTALL_DIR}
make
make install
@@ -30,6 +31,7 @@
# build server
cd ${START_DIR}/server
+./autogen.sh
./configure --prefix=${SERVER_INSTALL_DIR}
make
make install
@@ -37,6 +39,7 @@
# build agent
cd ${... | bash |
d_bash_1213 | ---
+++
@@ -3,10 +3,23 @@
# Path
# -------------------------------------------------------------------------
- PATH=$DOTFILES/bin
+# Dotfiles binaries.
+PATH=$DOTFILES/bin
+
+# Development binaries.
PATH=$PATH:~/dev/bin
-PATH=$PATH:$GOPATH/bin
-PATH=$PATH:$GOROOT/bin
-PATH=$PATH:/usr/local/bin:/usr/bin:/bin... | bash |
d_bash_1214 | ---
+++
@@ -1,35 +1,39 @@
#!/bin/sh
set -e
-# ruby 2.2.2+: rack activesupport
-# ruby 2.0+: mime-types
-# (jruby 1.7 is ruby 1.9)
-extras="$(ruby -e '
- rubyVersion = Gem::Version.new(RUBY_VERSION)
- puts (
- (
- rubyVersion >= Gem::Version.new("2.2.2") ? [
- "rack",
- "activesupport",
- ] : []
- ) + ... | bash |
d_bash_1215 | ---
+++
@@ -2,6 +2,7 @@
cd /srv/servermon/servermon
sed -i -e 's/managed = False/managed = True/' puppet/models.py
-./manage.py syncdb --migrate --noinput
+./manage.py syncdb --noinput
+./manage.py migrate --noinput
# And now undo it
sed -i -e 's/managed = True/managed = False/' puppet/models.py | bash |
d_bash_1216 | ---
+++
@@ -1,4 +1,5 @@
rm -r ./build/*
grunt
find ./build/ -type f -exec gzip "{}" \; -exec mv "{}.gz" "{}" \;
-aws s3 sync ./build/ s3://fucking-eu-cookies/ --exclude ".gitignore" --cache-control "public, max-age=604800" --content-encoding gzip --delete
+aws s3 sync ./build/ s3://fucking-eu-cookies/ --exclude '*... | bash |
d_bash_1217 | ---
+++
@@ -3,11 +3,18 @@
INITIAL_DIR=`pwd`
SOURCE_DIR=$(dirname "$0")
BUILD_DIR=build
+UNIX_NAME=`uname`
# Default 'make' to a number of jobs equal to CPU threads, but lower it
# if the memory available is too low, to avoid a lock up (e.g for RPi)
NUM_JOBS=`nproc`
-MEM_AVAIL=`grep MemAvailable /proc/meminfo ... | bash |
d_bash_1218 | ---
+++
@@ -20,7 +20,7 @@
alias docker-remove-none-images="docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")"
# ZSH
-alias reload="source ~/.zshrc"
+alias reload="source $HOME/.zshrc"
# OS
alias l="ls -lah"
@@ -39,4 +39,4 @@
alias yadev="yarn add --dev"
# Dev
-alias dev="cd ~/Developer"
+... | bash |
d_bash_1219 | ---
+++
@@ -7,5 +7,5 @@
if ! grep -q "/usr/local/bin/fish" /etc/shells; then
echo "/usr/local/bin/fish" | sudo tee -a /etc/shells
- chsh -s "/usr/local/bin/fish"
fi
+chsh -s "/usr/local/bin/fish" | bash |
d_bash_1220 | ---
+++
@@ -15,7 +15,6 @@
emmet
fold-comments
highlight-selected
- jsdoc
todo-show
editorconfig
) | bash |
d_bash_1221 | ---
+++
@@ -11,7 +11,7 @@
INSTALLER="brew install"
elif [[ "$(uname)" == "Linux"* ]]; then
echo "--> Sleep to wait nix-env ready"
- sleep 180
+ sleep 300
# Source /etc/profile, it will set up nix, shadowenv and other goodies
. /etc/profile | bash |
d_bash_1222 | ---
+++
@@ -12,6 +12,9 @@
chmod +x $SWAGGER
fi
+# Remove old stuff.
+(cd $DIR/; rm -rf models restapi/operations/)
+
(cd $DIR/..; $SWAGGER generate server --name=weaviate --spec=openapi-specs/schema.json --default-scheme=https)
(cd $DIR/..; $SWAGGER generate client --spec=openapi-specs/schema.json --default-s... | bash |
d_bash_1223 | ---
+++
@@ -2,7 +2,7 @@
set -ev
-mysql -e 'CREATE DATABASE IF NOT EXISTS mondrian_test;'
+mysql -e 'CREATE DATABASE IF NOT EXISTS mondrian_test DEFAULT CHARACTER SET utf8;'
mysql -e "GRANT ALL PRIVILEGES ON mondrian_test.* TO 'mondrian_test'@'localhost' IDENTIFIED BY 'mondrian_test';"
psql -c "CREATE ROLE mo... | bash |
d_bash_1224 | ---
+++
@@ -10,8 +10,8 @@
echo "Creating admin user"
python manage.py shell -c "from django.contrib.auth.models import User; User.objects.filter(email='admin@humanitec.com').delete(); User.objects.create_superuser('admin', 'admin@humanitec.com', 'admin')"
-echo "Loading config fixtures"
-python manage.py loaddata... | bash |
d_bash_1225 | ---
+++
@@ -5,5 +5,17 @@
sudo -u nsd HOME=/opt/local/etc/nsd nsd-control-setup
rm /opt/local/etc/nsd/.rnd
+# Create nsd_listen.conf file with all ip addresses managed
+# by vmadm sdc:nics / mdata
+NSD_LISTEN_CONF='/opt/local/etc/nsd/nsd_listen.conf'
+echo > ${NSD_LISTEN_CONF}
+if mdata-get sdc:nics 1>/dev/null 2>... | bash |
d_bash_1226 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-IMAGE_VERSION='0.2.4'
+IMAGE_VERSION='0.2.5'
docker rmi -f jorvis/gales-gce
docker build --no-cache -t jorvis/gales-gce:latest -t jorvis/gales-gce:${IMAGE_VERSION} . | bash |
d_bash_1227 | ---
+++
@@ -5,8 +5,8 @@
rm -rf $CHECKOUT_DIR
git clone https://github.com/creationix/nvm.git $CHECKOUT_DIR
cd nvm
-VERSION=`git describe --abbrev=0 --tags`
-git checkout master
-git reset --hard $VERSION
+TAG=`git describe --abbrev=0 --tags`
+VERSION=`echo $TAG |sed 's/^[^0-9]*//'`
+git reset --hard $TAG
cd ..
-f... | bash |
d_bash_1228 | ---
+++
@@ -4,6 +4,7 @@
echo "* ruby 1.8.7-p249 build *" &&
echo "*************************************************************************************************" &&
echo "" &&
+rm Gemfile.lock &&
source /usr/local/rvm/scripts/rvm &&
rvm u... | bash |
d_bash_1229 | ---
+++
@@ -1,3 +1,5 @@
+sudo apt-get update
+
sudo apt-get install -qq libgeos++-dev libproj-dev build-essential liblzo2-dev liblzma-dev zlib1g-dev libprotobuf-c0-dev postgresql-contrib-9.3 postgresql-9.3-postgis-2.1-scripts libprotobuf-c0 zlib1g
# Se placer dans le dossier /tmp | bash |
d_bash_1230 | ---
+++
@@ -11,6 +11,9 @@
# Assume we are running in the chef-bcpc directory
+knife actor map
+knife group add actor admins $(hostname -f)
+
# Are we running under Vagrant? If so, jump through some extra hoops.
if [[ -d /home/vagrant ]]; then
knife bootstrap -E $2 $1 -i /chef-bcpc-host/vbox/insecure_privat... | bash |
d_bash_1231 | ---
+++
@@ -38,3 +38,11 @@
fi
open "http://localhost:${PORT}" && python -m SimpleHTTPServer $PORT
}
+
+dockerImages() {
+ if [ $# -eq 1 ]; then
+ docker images | grep "$1" | awk '{print $1 ":" $2}';
+ else
+ docker images | awk '{print $1 ":" $2}';
+ fi
+} | bash |
d_bash_1232 | ---
+++
@@ -16,15 +16,19 @@
[ $LM == nolm ] && COMMON_CMD="--char-discount=0.1"
[ $LM == nolm ] && COMMON_LM_CONF=""
- [ $LM == trigram ] && COMMON_LM_CONF="$COMMON_LM_CONF net.lm.path 'lms/wsj_trigram_no_initial_eos/LG_pushed_withsyms.fst'"
+ if [ $LM == lm ]
+ then
+ LM_PATH=${LM_PATH:=l... | bash |
d_bash_1233 | ---
+++
@@ -1,2 +1,4 @@
#!/bin/sh
+# Things to do after doing a clean SVN update to add the proper files.
+ln -vfs CHANGES NEWS
autoreconf -i -s | bash |
d_bash_1234 | ---
+++
@@ -12,7 +12,7 @@
do
if [ $redirected = N ]; then
prove -l tests/unit/sources/${site}_valid_lines.t
- prove -l tests/in_progress/${site}/
+ prove -l tests/integration/in_progress/${site}/
fi
done
) < sites.csv | bash |
d_bash_1235 | ---
+++
@@ -1,9 +1,9 @@
-#PKGURL=https://bitbucket.org/libgd/gd-libgd/downloads/libgd-2.1.1.tar.gz
-PKGURL=http://ecem.ece.ubc.ca/~cpetersen/libgd-2.1.1.tar.gz
+PKGURL=https://github.com/libgd/libgd/archive/gd-2.1.1.tar.gz
+PKGHASH=b089ee7fc0b47b8aa4c2c70087506806637f03be
+package_download $PKGURL $PKGHASH
-PKGHASH... | bash |
d_bash_1236 | ---
+++
@@ -28,6 +28,10 @@
clean_site_name=$(slug $site_name)
site_id=$(get_site_id $clean_site_name)
-echo "deleting site"
+if [ -z "$site_id" ]; then
+ echo "site already deleted"
+else
+ echo "deleting site"
-netlify sites:delete --force "${site_id}"
+ netlify sites:delete --force "${site_id}"
+fi | bash |
d_bash_1237 | ---
+++
@@ -19,3 +19,14 @@
service docker start
echo "==> Enabling docker to start on reboot"
chkconfig docker on
+
+curl -L https://github.com/docker/compose/releases/download/1.6.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
+chmod +x /usr/local/bin/docker-compose
+ln -s /usr/local/bin/d... | bash |
d_bash_1238 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# Using git-subsplit
+# https://github.com/dflydev/git-subsplit
GIT_SUBSPLIT=$(pwd)/$(dirname $0)/git-subsplit.sh
| bash |
d_bash_1239 | ---
+++
@@ -20,12 +20,6 @@
cmd="curl --silent -X GET -H 'content-type: application/json' -H 'fog-user-token: ${testServerUserToken}' -H 'fog-api-token: ${testServerApiToken}' http://${testServerIP}/fog/task/active -d '{\"hostID\": [${hostID}]}'"
result=$(eval $cmd)
-echo
-echo
-echo "$cmd"
-echo
-echo
-
echo $re... | bash |
d_bash_1240 | ---
+++
@@ -14,7 +14,7 @@
# Get documentation templates and assets
if [[ ! -d zf-mkdoc-theme ]];then
- wget -O zf-mkdoc-theme.tgz https://github.com/weierophinney/zf-mkdoc-theme/archive/0.1.2.tar.gz ;
+ wget -O zf-mkdoc-theme.tgz https://github.com/weierophinney/zf-mkdoc-theme/archive/0.1.3.tar.gz ;
mk... | bash |
d_bash_1241 | ---
+++
@@ -4,7 +4,7 @@
printf "\n\033[1m\033[34m%s\033[0m\n\n" "[macos-confs] ${1}…"
}
-function install_powerline_fonts() {
+function install_powerline() {
pip install --upgrade powerline-shell
}
| bash |
d_bash_1242 | ---
+++
@@ -1,12 +1,21 @@
#! /usr/bin/env bash
set -eu
+
+
+##Parse long and short OPTIONS
+OPTIONS=$(getopt -o hn: -l name:,os:,help -- "$@")
+
+if [ $? != 0 ]; then
+ echo "Failed to parse arguments."
+ exit 1
+fi
# Call yourself with -h if no arguments
[[ -z $@ ]] && ./$0 -h && exit 1
-while [[ $# -g... | bash |
d_bash_1243 | ---
+++
@@ -12,6 +12,7 @@
brew install python@2
pip2 install --upgrade setuptools
pip2 install --upgrade pip
+ pip2 install --upgrade wheel
pip2 install --upgrade virtualenv
virtualenv venv -p python2
source venv/bin/activate
@@ ... | bash |
d_bash_1244 | ---
+++
@@ -1,9 +1,9 @@
#!/bin/sh
# some package
-sudo yum install java
-sudo yum install openssl
-sudo yum install openssl-devel
+sudo yum -y install java
+sudo yum -y install openssl
+sudo yum -y install openssl-devel
# Elasticsearch
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch... | bash |
d_bash_1245 | ---
+++
@@ -2,10 +2,10 @@
cd third_party_sources
git clone --branch v1.2.9 https://github.com/madler/zlib.git
-wget https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.tar.gz
-tar zxvf boost_1_75_0.tar.gz
-mv boost_1_75_0 boost
-rm boost_1_75_0.tar.gz
+wget https://dl.bintray.com/boostorg/release/1... | bash |
d_bash_1246 | ---
+++
@@ -1,9 +1,14 @@
#!/bin/bash
# the line run in the mask function can be substituted for your own masking software. In this example it calls a SQL script
+# You need to validate all the variables
+# Is your ORACLE_SID the one called by workflow? In this example it is called: unmasked
+# Is your ORACLE... | bash |
d_bash_1247 | ---
+++
@@ -5,4 +5,6 @@
#
# autor: Marcelo dos Santos
#
-git clone https://github.com/rakanalh/emacs-dashboard ~/.emacs.d/temp/dashboard
+mkdir temp
+git clone https://github.com/vermiculus/magithub ~/.emacs.d/temp/magithub
+git clone https://github.com/zonuexe/right-click-context ~/.emacs.d/temp/right-click-conte... | bash |
d_bash_1248 | ---
+++
@@ -1,6 +1,11 @@
#!/bin/sh
set -e -x
+
+# Try to merge master into the current branch, and abort if it doesn't exit
+# cleanly (ie there are conflicts). This will be a noop if the current branch
+# is master.
+git merge --no-commit origin/master || git merge --abort
bundle install --deployment
| bash |
d_bash_1249 | ---
+++
@@ -1 +1,6 @@
-PATH=~/bin:~/.local/bin:$PATH
+if [ -d ~/bin ]; then
+ PATH=$PATH:~/bin
+fi
+if [ -d ~/.local/bin ]; then
+ PATH=$PATH:~/.local/bin
+fi | bash |
d_bash_1250 | ---
+++
@@ -5,8 +5,8 @@
cd $FOLDER
-# Lock and Wake Up
-/usr/bin/powerd_test -p >/dev/null
+# Wake Up
+lipc-set-prop com.lab126.powerd wakeUp 1
sleep 10
@@ -19,7 +19,7 @@
wget http://cn-vpn.grisge.info/weather/weather.png -O $FOLDER/$FILE
# Lock screen
-/usr/bin/powerd_test -h >/dev/null
+/usr/bin/power... | bash |
d_bash_1251 | ---
+++
@@ -3,8 +3,19 @@
VERSION_MAJOR=0
VERSION_MINOR=1
-DIALOG="whiptail"
+DIALOG="$(which dialog 2>/dev/null)"
+if [ -z "$DIALOG" ]; then
+ DIALOG="$(which whiptail 2>/dev/null)"
+fi
+
+if [ -z "$DIALOG" ]; then
+ echo "Neither dialog or whiptail found."
+ exit -1
+fi
+
+echo $DIALOG
+exit 0
function dlg
{... | bash |
d_bash_1252 | ---
+++
@@ -1,5 +1,8 @@
# set fish as default shell
-chsh -s /usr/bin/fish
+if ! fgrep -q '/usr/local/bin/fish' /etc/shells; then
+ echo '/usr/local/bin/fish' | sudo tee -a /etc/shells
+fi
+chsh -s /usr/local/bin/fish
# install oh-my-fish
curl -L https://github.com/oh-my-fish/oh-my-fish/raw/master/bin/install |... | bash |
d_bash_1253 | ---
+++
@@ -27,7 +27,7 @@
function monitor_stop {
if [ ! -z "$MONITOR_PID" ]; then
- kill $MONITOR_PID
+ kill $MONITOR_PID || true
fi
}
| bash |
d_bash_1254 | ---
+++
@@ -3,10 +3,6 @@
set -euo pipefail
export MSYS2_FC_CACHE_SKIP=1
-
-cp /etc/pacman.d/mirrorlist.mingw64 /etc/pacman.d/mirrorlist.backup
-rankmirrors -r mingw64 -v /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist.mingw64
-cat /etc/pacman.d/mirrorlist.mingw64
pacman --noconfirm -Suy
| bash |
d_bash_1255 | ---
+++
@@ -12,6 +12,7 @@
crashplan
doxie
dropbox
+ fantastical
firefox
google-chrome
google-drive | bash |
d_bash_1256 | ---
+++
@@ -14,7 +14,9 @@
ln -sf $DOTFILES/.gitignore ~/.gitignore
# Tools
+sudo apt-get install autojump -y
sudo apt-get install mosh -y
+ln -sf $DOTFILES/.tmux.conf ~/.tmux.conf
# Vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | bash |
d_bash_1257 | ---
+++
@@ -9,6 +9,14 @@
sudo apt-get update
echo "----------------------------------------"
+echo
+echo "========================================"
+echo "Host remove packages"
+echo "----------------------------------------"
+sudo apt-get remove -y \
+ python-pytest \
+
+echo "-----------------------------------... | bash |
d_bash_1258 | ---
+++
@@ -7,7 +7,7 @@
export IS_CI=1
# Select our Xcode version
-sudo xcode-select -s /Applications/Xcode_13.3.app
+sudo xcode-select -s /Applications/Xcode_14.1.app
# Remove the pre-installed Cocoapods binary
rm /usr/local/bin/pod | bash |
d_bash_1259 | ---
+++
@@ -29,7 +29,7 @@
mkdir build
cd build
if [ "$platform" == 'linux' -a "$machine" != 'armv7l' ]; then
- cmake $CMAKE_COMMON_VARIABLES ..
+ cmake $CMAKE_COMMON_VARIABLES -DLLVM_USE_OPROFILE=ON ..
else
cmake $CMAKE_COMMON_VARIABLES ..
fi | bash |
d_bash_1260 | ---
+++
@@ -11,5 +11,5 @@
# Draft documents
for tag in dotnet fog pkgcloud shade; do
tools/build-rst.sh firstapp \
- --tag ${tag} --target "draft/firstapp-${tag}"
+ --tag ${tag} --target "api-ref/draft/firstapp-${tag}"
done | bash |
d_bash_1261 | ---
+++
@@ -24,12 +24,12 @@
cd ..
cp --parents -v -t gh-page \
./node_modules/jointjs/dist/joint.all.css \
- ./webui/logic.css \
./node_modules/jquery/dist/jquery.min.js \
./node_modules/lodash/index.js \
./node_modules/backbone/backbone-min.js \
./node_modules/jointjs/dist/joint.all.js \
- ./webui/logic.... | bash |
d_bash_1262 | ---
+++
@@ -1 +1 @@
-export MAVEN_OPTS="-Xmx800m -Xss2048k"
+export MAVEN_OPTS="-Xmx800m -Xss2048k -DgenerateBackupPoms=false" | bash |
d_bash_1263 | ---
+++
@@ -1,3 +1,9 @@
+if [ ! -d "$HOME/.sdkman" ]; then
+ curl -s "https://get.sdkman.io" | bash
+fi
+
+source "$HOME/.sdkman/bin/sdkman-init.sh"
+
# Set JAVA_HOME
JRE=$(readlink -f $(which java))
JDK=$(readlink -f $(which javac)) | bash |
d_bash_1264 | ---
+++
@@ -29,6 +29,8 @@
log_options:
- syslog-address=udp://${syslog_host}:${syslog_port}
- tag="{{.Name}}"
+ haproxy:
+ syslog: ${syslog_host}:${syslog_port}
EOF
cat > tmp/release_version.yml <<EOF | bash |
d_bash_1265 | ---
+++
@@ -82,11 +82,11 @@
cd examples/03_mapper_evaluation_SE
cd bams
- snakemake -p
+ snakemake -p --allow-ambiguity
cd ..
rm -fR ~/.smbl
- snakemake -p
+ snakemake -p --allow-ambiguity
)
| bash |
d_bash_1266 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/bash
+
+set -u
+set -o errexit
working_dir=`dirname $0`
| bash |
d_bash_1267 | ---
+++
@@ -1,17 +1,20 @@
#!/bin/#!/usr/bin/env bash
-
+echo "Installing packages"
# Install modules
sh ./install_packages.sh
+echo "Generating synthetic users"
# Generate 2 fake web site users
python3 user_generator.py --n=2
+echo "Generating synthetic events"
rm *.out
# Generate 10 events
python3 event_... | bash |
d_bash_1268 | ---
+++
@@ -4,7 +4,7 @@
set -a
FPF_CI=true
-read -e -p "Enter a build designator: " -i "${USER}" BUILD_NUM
+read -e -p "Enter a build designator: " -i "${USER}" CIRCLE_BUILD_NUM
read -e -p "Enter AWS region: " -i "us-west-1" CI_AWS_REGION
read -e -p "Enter AWS EC2 type: " -i "t2.small" CI_AWS_TYPE
read -e -p "... | bash |
d_bash_1269 | ---
+++
@@ -11,23 +11,18 @@
case $i in
--gpgsql-host=*)
HOST="${i#*=}"
- shift # past argument=value
;;
--gpgsql-port=*)
PORT="${i#*=}"
- shift # past argument=value
;;
--gpgsql-dbname=*)
DB="${i#*=}"
- shift # past argument=value
;;
--gpgsql-user=*)
US... | bash |
d_bash_1270 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/sh
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+DIR=`dirname $0`
+echo "BASEDIR $DIR"
oc login -u test -p test --insecure-skip-tls-verify=true https://localhost:8443
oc delete project enmasse-ci
| bash |
d_bash_1271 | ---
+++
@@ -6,5 +6,11 @@
# Create base installation
./install.sh install
+# Install macOS preferences
+if [ "$(uname)" == "Darwin" ]; then
+ echo "macOS (Darwin) detected; sourcing macOS preferences"
+ ./macOS/install.sh
+fi
+
# Install vim plugins and configurations
./vim/install.sh | bash |
d_bash_1272 | ---
+++
@@ -4,7 +4,7 @@
cp hub_bash_completion.sh ~/.hub_bash_completion.sh
cp gitignore ~/.gitignore
cp gitconfig ~/.gitconfig
-cp hub_bash_completion.sh ~/.hub_bash_completion.sh
+cp hg_bash_completion ~
cp hgrc ~/.hgrc
cp inputrc ~/.inputrc
cp pythonrc ~/.pythonrc | bash |
d_bash_1273 | ---
+++
@@ -9,7 +9,7 @@
# find all fastq files that are older than certain date
# filter out the X FCs only
-FASTQS=$(find ${DEMUX_DIR}/{*ALXX,*CCXX,*CCXY} -name *.fastq.gz ! -newermt ${CUTOFF_DATE})
+FASTQS=$(find ${DEMUX_DIR}/{*ALXX,*CCXX,*CCXY,*CCX2} -name *.fastq.gz ! -newermt ${CUTOFF_DATE})
# get the run... | bash |
d_bash_1274 | ---
+++
@@ -4,7 +4,7 @@
source "${DOTFILES_ROOT}/lib/colors.sh"
source "${DOTFILES_ROOT}/lib/git.sh"
-ps1_prompt() {
+git_info_for_ps1() {
local prompt=""
if is_a_git_repo; then
@@ -34,7 +34,7 @@
PS1="\[\033]0;\$(basename "\\w")\007\]" # show basename of the current directory as window title
PS1+="\w"... | bash |
d_bash_1275 | ---
+++
@@ -1,7 +1,7 @@
GIT=https://gitlab.redox-os.org/redox-os/cargo.git
GIT_UPSTREAM=https://github.com/rust-lang/cargo.git
BRANCH=redox
-BUILD_DEPENDS=(openssl zlib)
+BUILD_DEPENDS=(curl openssl zlib)
function recipe_build {
sysroot="$(realpath ../sysroot)" | bash |
d_bash_1276 | ---
+++
@@ -7,8 +7,14 @@
python --version
pip --version
pip install flake8
+
+EXCLUDES=''
+if [[ $PYTHON == 'py27' ]]; then
+ EXCLUDES='--exclude pyfakefs/fake_pathlib.py,tests/fake_pathlib_test.py'
+fi
+
# stop the build if there are Python syntax errors or undefined names
-flake8 . --count --select=E901,E999... | bash |
d_bash_1277 | ---
+++
@@ -10,7 +10,7 @@
# Extract papers
tmpdir=$(mktemp -d)
-openssl aes-256-cbc -d -in $paperbin -pass pass:$password -out $tmpdir/decrypt
+openssl aes-256-cbc -d -in $paperbin -pass pass:$password -md sha256 -out $tmpdir/decrypt
if [ $? -ne 0 ]; then
echo "Unable to decrypt $paperbin"
rm -rv $tmpdir | bash |
d_bash_1278 | ---
+++
@@ -6,5 +6,9 @@
rm -r bin/
cp settings.json.default settings.json
+
+awk '!/AssemblyInformationalVersion/' Properties/AssemblyInfo.cs > assembly.temp && mv assembly.temp Properties/AssemblyInfo.cs
+echo "[assembly: AssemblyInformationalVersion(\"$(git rev-parse --verify HEAD)\")]" >> Properties/AssemblyIn... | bash |
d_bash_1279 | ---
+++
@@ -4,7 +4,7 @@
# This list is from https://charlie.bz/blog/things-that-clear-rubys-method-cache
IGNORE_FILE=/tmp/cache_busters_ignore
-cat script/ignores | ruby -ne 'puts $_.split(/\s+###/)[0]' > $IGNORE_FILE
+cat script/ignores | grep -v "^$" | ruby -ne 'puts $_.split(/\s+###/)[0]' > $IGNORE_FILE
egr... | bash |
d_bash_1280 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
### USAGE
-# curl https://raw.githubusercontent.com/jenkins-infra/azure/master/scripts/init-ubuntu1404.sh && sudo ./init-ubuntu1404.sh
+# curl -O https://raw.githubusercontent.com/jenkins-infra/azure/master/scripts/init-ubuntu1404.sh && sudo bash ./init-ubuntu1404.sh && newgrp do... | bash |
d_bash_1281 | ---
+++
@@ -34,4 +34,4 @@
done
dotfiles_echo "Dotfiles installation complete!"
-dotfiles_echo "Complete Brew Bundle installation with 'brew bundle install --global'"
+dotfiles_echo "Complete Brew Bundle installation with 'brew bundle install -v --global'" | bash |
d_bash_1282 | ---
+++
@@ -10,13 +10,13 @@
git submodule update --init
# The version of the toolkit defined by the pinned submodule
-PINNED_SUBMODULE_VERSION=`cat app/assets/VERSION.txt`
+PINNED_SUBMODULE_VERSION=`cat govuk_frontend_toolkit/VERSION.txt`
# Force the submodule to pull the latest and checkout origin/master
git... | bash |
d_bash_1283 | ---
+++
@@ -2,7 +2,7 @@
yum -y install gsl-devel
-PYTHON_VERSIONS=("cp35-cp35m" "cp36-cp36m" "cp37-cp37m" "cp38-cp38" "cp39-cp39")
+PYTHON_VERSIONS=("cp35-cp35m" "cp36-cp36m" "cp37-cp37m" "cp38-cp38" "cp39-cp39" "cp310-cp310")
for PYTHON_VERSION in ${PYTHON_VERSIONS[@]}; do
/opt/python/${PYTHON_VERSION}/... | bash |
d_bash_1284 | ---
+++
@@ -1,9 +1,11 @@
-# Install a package
+# Install one or more packages
#
# Usage:
-# option Package emacs-nox11
+# option Package apache mysql php
+
# Make sure package database gets initialized.
option PackageInit
-strategy_add $PHASE_FREEBSD_OPTION_INSTALL pkg -c ${BOARD_FREEBSD_MOUNTPOINT} -y $1
-
+... | bash |
d_bash_1285 | ---
+++
@@ -26,7 +26,7 @@
GIT_COMMIT_SHORT=${GIT_COMMIT:0:7}
fi
-if [ "x$RELEASE" = "xtrue" ]; then
+if [ "x$BUILD_RELEASE" = "xtrue" ]; then
BUILD_ID=$BUILD_NUMBER
else
BUILD_ID=$BUILD_NUMBER.$(date +%y%m%d)git${GIT_COMMIT_SHORT} | bash |
d_bash_1286 | ---
+++
@@ -13,7 +13,7 @@
}
start musashi /media/musashi 8080
start staging $HOME/staging 8081
-start staging $HOME/media 8082
+start media $HOME/media 8082
start timothy /media/timothy/movies 8083
start usb1 /run/media/zero/USB20FD 8084
start usb2 /run/media/zero/f538fa97-80d3-4ef3-9010-99460637a69a 8085 | bash |
d_bash_1287 | ---
+++
@@ -12,7 +12,7 @@
export PYTHONPATH="src"
pytest \
--cov=src \
- -n 2 \
+ -n 4 \
-s \
--junitxml=build/pytest-$envname.xml \
src/tests src/integration_tests | bash |
d_bash_1288 | ---
+++
@@ -1,6 +1,6 @@
+# !/bin/bash
+
# After getting ASDF installed, run this script...
-
-set -e
###########################################################################
# Custom
@@ -14,9 +14,9 @@
# Generalized
asdf_setup() {
- asdf plugin-add $1
- asdf install $1 $2
- asdf global $1 $2
+ asdf plu... | bash |
d_bash_1289 | ---
+++
@@ -1,6 +1,6 @@
# Use `hub` as our git wrapper:
# http://defunkt.github.com/hub/
-hub_path=$(readlink -f `which hub`)
+hub_path=$(which hub)
if (( $+commands[hub] ))
then
alias git=$hub_path | bash |
d_bash_1290 | ---
+++
@@ -1,2 +1,2 @@
./build-common.sh
-electron-packager build Squiffy --platform=linux --arch=x64 --version=0.29.2 --app-bundle-id=uk.co.textadventures.squiffy --helper-bundle-id=uk.co.textadventures.squiffy.helper --app-version=4.0.0
+electron-packager build Squiffy --platform=linux --arch=x64 --version=0.28.3... | bash |
d_bash_1291 | ---
+++
@@ -8,9 +8,9 @@
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo -H gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --import
sudo chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg
sudo apt-get up... | bash |
d_bash_1292 | ---
+++
@@ -1,26 +1,26 @@
#!/bin/sh
-
-TESTS="1 2 3"
if [ $# -lt 1 ] ; then
echo 'Specify binary to run as the first argument'
exit 1
fi
-for _t in $TESTS ; do
- $1 ${TEST_DIR}/$_t.in ${TEST_DIR}/$_t.out
+
+for _tin in ${TEST_DIR}/*.in ; do
+ _t=`echo $_tin | sed -e 's/.in$//'`
+ $1 $_t.in $_t.out
if [ $... | bash |
d_bash_1293 | ---
+++
@@ -1,12 +1,11 @@
#!/usr/bin/env bash
if [ -z "$1" ]; then
- echo "Usage: $0 <vk_id>"
+ echo "Usage: $0 <vk_id>" 1>&2
exit 1
fi
-function notify
-{
+notify() {
TEXT="offline"
if [ "$2" -ne 0 ]
then | bash |
d_bash_1294 | ---
+++
@@ -7,7 +7,8 @@
secrets_uri="s3://${state_bucket}/google-oauth-secrets.yml"
export oauth_client_id
export oauth_client_secret
- if aws s3 ls "${secrets_uri}" > /dev/null ; then
+ secrets_size=$(aws s3 ls "${secrets_uri}" | awk '{print $3}')
+ if [ "${secrets_size}" != 0 ] && [ -n "${secrets_size}"... | bash |
d_bash_1295 | ---
+++
@@ -26,5 +26,5 @@
echo "
samtools view -bh -@ $THREADS -f 2 -o ${c}.bam VCAP_dedup.realigned.bam $c \
&& samtools index -@ $THREADS ${c}.bam ${c}.bai
- " | qsub -N samtools-${THREADS}-chr${c} -cwd -V -l h_rt=02:00:00 -l h_vmem=100M #-pe threaded $THREADS
+ " | qsub -N samtools-${THREADS}-... | bash |
d_bash_1296 | ---
+++
@@ -24,7 +24,7 @@
mkdir -p ${TEMPLATE_DIR}
pushd ../game_engine
- GOPATH=$(pwd) go run templater.go -filepath=${TEMPLATE_DIR}
+ GOPATH=$(pwd) go run engine.go -write_templates=true -template_out_dir=${TEMPLATE_DIR}
popd
}
| bash |
d_bash_1297 | ---
+++
@@ -7,3 +7,6 @@
# Create an "incoming" folder, where new analyses will land
mkdir -p "$1/incoming/"
+
+# Populate sqlite3 db file
+sqlite3 "$1/samples.sqlite" 'CREATE TABLE `samples` (`mwid` TEXT PRIMARY KEY NOT NULL,`mwpath` TEXT NOT NULL);' | bash |
d_bash_1298 | ---
+++
@@ -2,17 +2,19 @@
uncrustify="uncrustify -c .uncrustify.cfg --replace --no-backup"
-# We indent each thing twice because ident is not idempotent - in some cases
-# it will flip-flop between two indentation styles.
+# We indent each thing twice because uncrustify is not idempotent - in some
+# cases it wi... | bash |
d_bash_1299 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
mkdir -p "$HOME/.vim/bundle/gocode/autoload"
-mkdir -p "$HOME/.vim/bundle/gocode/ftplugin"
+mkdir -p "$HOME/.vim/bundle/gocode/ftplugin/go"
cp "${0%/*}/autoload/gocomplete.vim" "$HOME/.vim/bundle/gocode/autoload"
-cp "${0%/*}/ftplugin/go/gocomplete.vim" "$HOME/.vim/bundle/gocode/f... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.