document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_13600 | ---
+++
@@ -8,4 +8,5 @@
security create-keychain -p "" $KEYCHAIN
security import export/DeveloperIDCA.cer -k $KEYCHAIN -T /usr/bin/codesign
security import export/DeveloperID.p12 -k $KEYCHAIN -P $KEY_PASSWORD -T /usr/bin/codesign
+security set-key-partition-list -S apple-tool:,apple: -s -k "" $KEYCHAIN
security d... | bash |
d_bash_13601 | ---
+++
@@ -1,4 +1,4 @@
-for p in apt systemctl; do
+for p in apt aptitude systemctl; do
if type "$p" >/dev/null ; then
alias "$p"="sudo $p"
fi | bash |
d_bash_13602 | ---
+++
@@ -2,4 +2,5 @@
cd packages
aws s3 cp btr3baseball.zip s3://baseball-workbench-builds/btr3baseball/btr3baseball-${CODEBUILD_BUILD_ID}.zip
-aws lambda update-function-code --s3-bucket baseball-workbench-builds --s3-key btr3baseball-${CODEBUILD_BUILD_ID}.zip
+aws lambda update-function-code --function-name ... | bash |
d_bash_13603 | ---
+++
@@ -10,6 +10,8 @@
sentry-cli releases set-commits --auto "$VERSION"
+sentry-cli releases deploys "$VERSION" new -e production
+
wait-for-it "redis:6379" -- echo "Redis up and running"
wait-for-it "memcached:11211" -- echo "Memcached up and running" | bash |
d_bash_13604 | ---
+++
@@ -1,9 +1,10 @@
#!/bin/bash
-$WRKDIR/core/cf-promises/cf-promises -sjson > _generated/syntax_map.json
+mkdir -p $WRKDIR/_generated/lib/3.7
+$WRKDIR/core/cf-promises/cf-promises -sjson > $WRKDIR/documentation-generator/_generated/syntax_map.json
for lib in $WRKDIR/masterfiles/lib/3.7/*.cf
do
- out="${li... | bash |
d_bash_13605 | ---
+++
@@ -16,8 +16,7 @@
# Move Weekly email optin list
mkdir HarvardX/CombinedCourseData
-mkdir HarvardX/CombinedCourseData/email_opt_in
-mv harvardx-email_opt_in-* HarvardX/CombinedCourseData/email_opt_in
+mv harvardx-email_opt_in-* HarvardX/CombinedCourseData
#Now, decrypt everything, set up separate direc... | bash |
d_bash_13606 | ---
+++
@@ -12,9 +12,9 @@
# create pfx key store
echo create pfx key store: $pfx_store_file
-openssl pkcs12 -export -out $pfx_store_file -passout pass:$key_store_password -inkey $key_pem_file -in $cert_pem_file
+openssl pkcs12 -export -out $pfx_store_file -passout pass:$KEY_STORE_PASSWORD -inkey $key_pem_file -in... | bash |
d_bash_13607 | ---
+++
@@ -10,11 +10,11 @@
cols="$(tput cols)"
if ! $(tmux has-session -t $name &>/dev/null); then
tmux new-session -d -n code -s $name -x${cols-150} -y50
- tmux split-window -t $name:0
- tmux new-window -a -d -n server -t $name:0
- tmux new-window -a -d -n console -t $name:1
+ tmux split-wind... | bash |
d_bash_13608 | ---
+++
@@ -1,2 +1,3 @@
#!/bin/sh
+mkdir -p /usr/local/bin
cp openvr/bin/win64/openvr_api.dll /usr/local/bin | bash |
d_bash_13609 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
-# This shell script sets up a PS4 controller
+# This shell script sets up a PS3 controller
xboxdrv --detach-kernel-driver --led 2 --silent &
#jstest-gtk
#js-store /dev/input/js0 | bash |
d_bash_13610 | ---
+++
@@ -29,7 +29,10 @@
for script in $HOOK_DIR/{{ item }}.d/*{sh,py} ; do
if [ -f $script -a -x $script ]; then
echo $OLDREV $NEWREV $REF | $script
- if [[ $? -ne 0 ]] ; then exit $? ; fi
+ if [ $? -ne 0 ]; then
+ echo "error, blocking commit"
+ ... | bash |
d_bash_13611 | ---
+++
@@ -1,4 +1,10 @@
#!/bin/bash
+
+if [ ! -d media ] ; then
+ echo 'You first need to clone the game directory (media) from SVN:' >&2
+ echo 'svn clone https://svn.code.sf.net/p/gritengine/code media' >&2
+ exit 1
+fi
cp -v grit media/Grit.linux.x86_64
cp -v gsl media/Tools/gsl.linux.x86_64 | bash |
d_bash_13612 | ---
+++
@@ -1,8 +1,18 @@
#! /bin/bash
+DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+
+jshint $DIR
+
+result=$?
+if [[ $result != 0 ]]
+ # Exit if the linter didn't pass
+ then exit $result
+fi
+
meteor test-packages \
- "$(pwd)/packages/rest" \
- "$(pwd)/packages/json-routes" \
- "$(pwd)/packages/r... | bash |
d_bash_13613 | ---
+++
@@ -1,13 +1,13 @@
#!/bin/bash
-set -ev
+set -ex
# Create a new tag if the version file has been updated and a tag for that
# version doesn't already exist.
# Are we on master branch?
# We shouldn't push tags for version bump branches.
-BRANCH=`git rev-parse --abbrev-ref HEAD`
-if [[ "$BRANCH" == "mas... | bash |
d_bash_13614 | ---
+++
@@ -7,5 +7,5 @@
#
mkgit() {
- mkdir -p "$1" && git init "$1"
+ mkdir -p "$1" && cd "$1" && git i && cd ..
} | bash |
d_bash_13615 | ---
+++
@@ -2,38 +2,43 @@
run_segment() {
- local tmp_file="${TMUX_POWERLINE_DIR_TEMPORARY}/wan_ip.txt"
- local wan_ip
+ local tmp_file="${TMUX_POWERLINE_DIR_TEMPORARY}/wan_ip.txt"
+ local wan_ip
- if [ -f "$tmp_file" ]; then
- if shell_is_osx || shell_is_bsd; then
- last_update=$(stat -f "%m" ${... | bash |
d_bash_13616 | ---
+++
@@ -2,6 +2,7 @@
pip install wheel
+pip install boto==2.36.0
pip wheel --wheel-dir packaging/source/wheels --requirement "https://raw.githubusercontent.com/cloudify-cosmo/cloudify-agent/$CORE_TAG_NAME/dev-requirements.txt"
pip wheel --find-links packaging/source/wheels --wheel-dir packaging/source/whe... | bash |
d_bash_13617 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-# This script will systematically recompute hashes for specified php modules
+# This script will systematically recompute hashes for specified php modules.
#
# To use this script, simply run it from the top-level of this repo after updating
# 'tasks/build-binary-new/... | bash |
d_bash_13618 | ---
+++
@@ -2,7 +2,7 @@
yesterday=`date --date="3 days ago" +"%Y%m%d"`
year=`date --date="3 days ago" +"%Y"`
cd $1
-./generate_ingest_submit.py --startdate $yesterday --enddate $yesterday --location /tmp/ingest_logs --data_source faxbox
+./generate_ingest_submit.py --startdate $yesterday --enddate $yesterday --loc... | bash |
d_bash_13619 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
echo "Installing requests for python"
-sudo pip install requests
+pip install requests
echo "apt-get for mono/nunit/npm packages"
sudo apt-get -qq update | bash |
d_bash_13620 | ---
+++
@@ -17,12 +17,15 @@
Linux)
LIBTOOLIZE=libtoolize
;;
+SunOS)
+ LIBTOOLIZE=libtoolize
+ ;;
*)
warn "unrecognized platform:" `uname -s`
LIBTOOLIZE=libtoolize
esac
-automake_version=$(automake --version | tr ' ' '\n' | egrep '^[0-9]\.[0-9a-z.-]+')
+automake_version=`automake --versi... | bash |
d_bash_13621 | ---
+++
@@ -2,12 +2,15 @@
apt-get update
-apt-get install -y libxslt-dev libxml2-dev
+# The DB clients are required for the aws plugin
+apt-get install -y libxslt-dev libxml2-dev libmysqlclient-dev libpq-dev libsqlite3-dev
gem install bosh_cli --no-ri --no-rdoc
# Plugin required for 'bosh aws create' and b... | bash |
d_bash_13622 | ---
+++
@@ -34,7 +34,7 @@
CLASSPATH="`echo ./lib/endorsed/*.jar | tr ' ' $S`"
export CLASSPATH
-echo Using classpath: \"$CLASSPATH\"
+echo "Using classpath: $CLASSPATH"
"$PWD/./tools/ant/bin/ant" -logger org.apache.tools.ant.NoBannerLogger -emacs $@
unset CLASSPATH | bash |
d_bash_13623 | ---
+++
@@ -16,6 +16,8 @@
esac
test -f Cargo.lock || cargo generate-lockfile
+ # clean to reduce the disk usage
+ cargo clean
cargo build --release
# TODO Update this to package the right artifacts | bash |
d_bash_13624 | ---
+++
@@ -13,6 +13,7 @@
find . -name "makeRelease.sh" -exec rm -rf {} \; &>/dev/null
find . -name "local_*" -exec rm -rf {} \; &>/dev/null
find . -name "static" -exec rm -rf {} \; &>/dev/null
+find . -name ".idea" -exec rm -rf {} \; &>/dev/null
cd ..
tar c google-api-php-client | gzip > $RELFILE
rm -rf $TMPDI... | bash |
d_bash_13625 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh -e
-ARGS="$@"
+ARGS=$*
echo "Database uploader started with arguments: $ARGS"
# some IBAN codes are not valid according to the XSD, let's fix this | bash |
d_bash_13626 | ---
+++
@@ -1,11 +1,12 @@
#/bin/sh
if [[ "$WATIR_WEBDRIVER_BROWSER" = "chrome" ]]; then
- curl -k https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
+ curl https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo -s 'echo "deb http://dl.google.com/linux/chrome... | bash |
d_bash_13627 | ---
+++
@@ -2,7 +2,7 @@
set -ev
if [ "${COMPONENT}" == "game-server" ]; then
- export CXX=g++
+ export CXX=g++-5
cd game-server
mkdir -p build && cd build
cmake -DTEST=ON .. | bash |
d_bash_13628 | ---
+++
@@ -7,7 +7,7 @@
./build-application.sh test-implementation
if [ -f './kilns' ]; then
- ./kilns -c ${1:-2} tests/run-tests.kiln
+ ./kilns -c ${1:-2} tests/run-tests
else
echo '`kilns` does not exist'
fi | bash |
d_bash_13629 | ---
+++
@@ -18,4 +18,8 @@
echo "Copying sample ini file to config.ini"
cp config.sample.ini config.ini
fi
+if [ ! -z '$HOST' ]; then
+ echo "Setting local shard host name"
+ echo "shard.currentHost = $HOST:8080" >> config.ini
+fi
echo "Please edit config.ini for local settings." | bash |
d_bash_13630 | ---
+++
@@ -10,4 +10,4 @@
# @raycast.currentDirectoryPath ~/dev/slack/slack-objc
# @raycast.packageName Slack
-bazel build --config=development -- //App:Slack
+bazel build -- //App:Slack | bash |
d_bash_13631 | ---
+++
@@ -28,6 +28,7 @@
pushd $GOPATH/src/github.com/docker/docker/
make binary
version=`cat VERSION`
+ popd
golem-docker $version $@
}
| bash |
d_bash_13632 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-mkdir -p "${SYMROOT}/pacts"
+mkdir -p "${SRCROOT}/../build"
which pact-mock-service
-pact-mock-service start --pact-specification-version 2.0.0 --log "${SYMROOT}/pact.log" --pact-dir "${SYMROOT}/pacts" -p 1234
+pact-mock-service start --pact-specification-version 2.0.0 --log... | bash |
d_bash_13633 | ---
+++
@@ -16,7 +16,7 @@
echo "User $sandbox_user initialized"
fi
-sudo -iu $sandbox_user NODE_PATH=$NODE_PATH:`npm root -g`:`npm root` python3 /usr/local/bin/jupyter-notebook\
+sudo -iu $sandbox_user PROJ_LIB=/usr/share/proj NODE_PATH=$NODE_PATH:`npm root -g`:`npm root` python3 /usr/local/bin/jupyter-notebo... | bash |
d_bash_13634 | ---
+++
@@ -47,7 +47,11 @@
if $cuda; then
pacman -S --noconfirm --needed \
cuda \
- cudnn
+ cudnn \
+ nccl
+ rm -vf /usr/bin/nvidia*
+ rm -vf /usr/lib/libnvidia*
+ rm -vf /usr/lib/libcuda*
fi
paccache -rfk0 | bash |
d_bash_13635 | ---
+++
@@ -6,14 +6,8 @@
zip -r function.zip package.json node_modules/* lib/* .env fkeychecks.sh index.js
-aws lambda upload-function \
- --function-name bawlk-s3-importer \
- --function-zip function.zip \
- --runtime nodejs \
- --role arn:aws:iam::674223647607:role/lambda_exec_role \
- --handler index.... | bash |
d_bash_13636 | ---
+++
@@ -3,7 +3,7 @@
openssl aes-256-cbc -K $encrypted_cdaf52794220_key -iv $encrypted_cdaf52794220_iv -in .travis/signing.gpg.enc -out signing.gpg -d
gpg --import signing.gpg
-GPG_EXECUTABLE=gpg mvn -B -q -DskipTests -s ./.travis/settings.xml -pl ./,crd-generator,api -P ossrh clean package gpg:sign deploy
+G... | bash |
d_bash_13637 | ---
+++
@@ -22,3 +22,7 @@
# Pull all updates - first a general pull and then submodules.
${GITCONFIG} alias.pullall "!bash -c \"git pull && git submodule update --init\""
+
+${GITCONFIG} alias.add-example "!bash -c \"git checkout -b AddExample_$1\""
+
+${GITCONFIG} alias.merge-example "!bash -c \"git checkout mas... | bash |
d_bash_13638 | ---
+++
@@ -15,5 +15,9 @@
echo "4a334000.pru0" > /sys/bus/platform/drivers/pru-rproc/bind
echo "4a338000.pru1" > /sys/bus/platform/drivers/pru-rproc/bind
+# Wait for rpmsg driver to set up
+# TODO: maybe add a check that /dev/rpmsg_pru31 exists?
+sleep 0.5
+
# Start up userspace adc driver
./src/software/adc-co... | bash |
d_bash_13639 | ---
+++
@@ -19,6 +19,3 @@
# Pushes directory to the current Finder directory.
alias pushdf='pushd "$(pfd)"'
-
-# Go to sleep
-alias afk='osascript -e ''tell app "System Events" to sleep''' | bash |
d_bash_13640 | ---
+++
@@ -3,13 +3,13 @@
IMAGE_NAME=pinata-sshd
CONTAINER_NAME=pinata-sshd
-LOCAL_STATE=~/.pinata-sshd
LOCAL_PORT=2244
AUTHORIZED_KEYS=$(ssh-add -L | base64 -w0)
+KNOWN_HOSTS_FILE=$(mktemp)
+
+trap "rm ${KNOWN_HOSTS_FILE}" EXIT
docker rm -f ${CONTAINER_NAME} >/dev/null 2>&1 || true
-rm -rf ${LOCAL_STATE}
-m... | bash |
d_bash_13641 | ---
+++
@@ -9,4 +9,6 @@
source="stack-s3/cflinuxfs2$SUFFIX-*.tar.gz"
destination=stack-archive/cflinuxfs2$SUFFIX-$(cat version/number).tar.gz
-mv "$source" "$destination"
+# here, we actually want globbing, so:
+# shellcheck disable=SC2086
+mv $source "$destination" | bash |
d_bash_13642 | ---
+++
@@ -26,7 +26,9 @@
echo "CREATE DATABASE $dbname" | mysql -u $username -p$password
rm -f /tmp/recover_root_mysql.ini
- killall -w mysqld
+ killall mysqld
+ sleep 5
+ killall -9 mysqld
service mysql start
fi | bash |
d_bash_13643 | ---
+++
@@ -7,7 +7,9 @@
export SITE_DIR=$PWD/dita-ot.github.io
#if [ "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "develop" ]; then
- # run site generation into
+ # Clean target output directory before generating new output
+ rm -rf "$SITE_DIR/dev/*"
+ # Generate site output in /dev folder
./grad... | bash |
d_bash_13644 | ---
+++
@@ -23,9 +23,9 @@
if [ $# -eq 0 ]; then
- ansible-playbook ansible/desktop.yml --ask-become-pass
+ sudo ansible-playbook ansible/desktop.yml
else
- ansible-playbook ansible/desktop.yml --ask-become-pass -t=$1
+ sudo ansible-playbook ansible/desktop.yml -t=$1
fi
exit 0 | bash |
d_bash_13645 | ---
+++
@@ -28,8 +28,8 @@
${PYTHON:-} ../../implib-gen.py -q --target $TARGET libinterposed.so
ln -sf ../../scripts/ld ${PREFIX}ld
trap "rm -f $PWD/${PREFIX}ld" EXIT
-if $CC --version | grep -q clang; then
- # Clang does not allow overriding ld via playing with PATH
+if $CC --version | grep -q 'clang\|^lcc'; then... | bash |
d_bash_13646 | ---
+++
@@ -14,6 +14,7 @@
go get github.com/buildbox/github-release
echo '--- download artifacts'
+rm -rf pkg
mkdir -p pkg
buildbox-artifact download "pkg/*" pkg
| bash |
d_bash_13647 | ---
+++
@@ -1,7 +1,5 @@
#!/bin/bash
echo "Inserting Keys!"
-DEVISE_SECRET_TOKEN=`bundle exec rake secret`
-echo $DEVISE_SECRET_TOKEN
-echo "export DEVISE_SECRET_TOKEN=$DEVISE_SECRET_TOKEN" >> ~/.bash_profile
-echo "export SECRET_KEY_BASE=f4cd2c8dcfb4a3bc3f2696f8bc01305bda70c5e88e94b4d5e96bea4670ad896862660f80b48fcf... | bash |
d_bash_13648 | ---
+++
@@ -9,7 +9,7 @@
# generate BUILD files
bazel run \
--config=${ARCHITECTURE} \
- //:gazelle -- -exclude vendor/google.golang.org/grpc
+ //:gazelle -- -exclude vendor/google.golang.org/grpc --exclude cluster-up
# inject changes to libvirt BUILD file
bazel run \ | bash |
d_bash_13649 | ---
+++
@@ -5,3 +5,10 @@
ruby allocate.rb
rm -rf output
bundle exec rake guides:generate:html
+
+# Then, manually type these commands:
+# $ git add .
+# $ git commit -m "Publish foo bar"
+# $ git push origin japanese
+# $ git push heroku japanese:master
+ | bash |
d_bash_13650 | ---
+++
@@ -2,38 +2,7 @@
cabal sandbox init
-cabal sandbox add-source deps/snaplet-postgresql-simple
-
-#! /bin/sh
-
-cabal sandbox init
-
-echo "Depend on snap-1.0 from github. Move to Hackage version when snap-1.0 is released"
-cabal sandbox add-source deps/servant-snap/deps/snap/deps/io-streams
-cabal sandbox... | bash |
d_bash_13651 | ---
+++
@@ -6,7 +6,6 @@
NOW=$(date +"%F-%H-%M-%S")
DISTANT_DUMP_FOLDER="~/dumps/dump-$NOW"
-LATEST_DUMP_SYMLINK='dump-latest'
LOCAL_DUMP_FOLDER='./dump'
@@ -20,7 +19,8 @@
exit 1
fi
-ssh $USER@sgmap.fr "mongodump --db $DATABASE && mv dump $DISTANT_DUMP_FOLDER && rm $LATEST_DUMP_SYMLINK && ln -s $DIR_N... | bash |
d_bash_13652 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
# makes blink(1) turn red for $pomodoro_length minutes and then green for $break_length minutes
-blink_path=".././blink1-tool"
+blink_path="`which blink1-tool`"
pomodoro_color="255,0,0"
| bash |
d_bash_13653 | ---
+++
@@ -6,7 +6,7 @@
cd /jepsen
# Use either upstream jepsen or any required fork, e.g.:
# if ! git clone https://github.com/aphyr/jepsen
-if ! git clone -b rabbit_pcmk https://github.com/bogdando/jepsen
+if ! git clone -b dev https://github.com/bogdando/jepsen
then
cd ./jepsen
git remote update | bash |
d_bash_13654 | ---
+++
@@ -31,7 +31,7 @@
mkdir -p ../final/$directoryName
for pngName in $directoryName*.png; do
echo "Png name is $pngName"
- ocrName=$(echo $pngName | sed 's/png/txt/g')
+ ocrName=$(echo $pngName | sed 's/\.png//g')
tesseract $pngName ../final/$ocrName -l ron
done
done | bash |
d_bash_13655 | ---
+++
@@ -11,4 +11,4 @@
OUT_DIR=out DIST_DIR="$DIST_DIR" ANDROID_HOME=`pwd`/prebuilts/fullsdk-linux frameworks/support/gradlew -p frameworks/support --no-daemon test jacocoTestReport zipEcFiles --info --offline -Pandroidx.enableAffectedModuleDetection
OUT_DIR=out/ui DIST_DIR="$DIST_DIR/ui" ANDROID_HOME=`pwd`/pr... | bash |
d_bash_13656 | ---
+++
@@ -37,4 +37,4 @@
fi
-composer install --dev --prefer-source
+composer install --prefer-source | bash |
d_bash_13657 | ---
+++
@@ -11,6 +11,6 @@
export PAGER="$(command -vp less)"
export VISUAL="$EDITOR"
-type fd &> /dev/null && export FZF_DEFAULT_COMMAND='fd --type f'
+type fd &> /dev/null && export FZF_DEFAULT_COMMAND='fd --hidden --type f'
export PATH="$PATH:$HOME/bin" | bash |
d_bash_13658 | ---
+++
@@ -20,8 +20,13 @@
cp -r dist npm/
cp LICENSE npm/
-cp package.json npm/
cp README.md npm/
+
+node -e "var package = require('./package.json'); \
+ delete package.scripts; \
+ delete package.nyc; \
+ delete package.devDependencies; \
+ require('fs').writeFileSync('./npm/package.json', JSON.stringify(... | bash |
d_bash_13659 | ---
+++
@@ -4,10 +4,10 @@
cp ~/projects/dotfiles/keyboard/.Xmodmap ~/.Xmodmap
# Copy the main xkp file to the right pace
-cp ~/projects/dotfiles/keyboard/us /usr/share/X11/xkb/symbols/us
+sudo cp ~/projects/dotfiles/keyboard/us /usr/share/X11/xkb/symbols/us
# Copy the basic types file
-cp ~/projects/dotfiles/k... | bash |
d_bash_13660 | ---
+++
@@ -7,7 +7,7 @@
identity=$(mktemp)
echo "$COMPOSE_SSH_KEY" >$identity
-ssh -fo ExitOnForwardFailure=yes \
+ssh -fo ExitOnForwardFailure=yes -o StrictHostKeyChecking=no \
-NT compose@$COMPOSE_SSH_PUBLIC_HOSTNAME -p $COMPOSE_SSH_PUBLIC_PORT \
-i $identity \
-L 127.0.0.1:28015:${ips[$((DYNO % nodes)... | bash |
d_bash_13661 | ---
+++
@@ -7,7 +7,7 @@
fi
GOCHAN_VERBOSE=0
GOCHAN_VERSION="0.9"
-GOCHAN_BUILDTIME=$(date +%y%m%d.%H%m)
+GOCHAN_BUILDTIME=$(date +%y%m%d.%H%M)
CGO_ENABLED=0
GOARCH=amd64
SUFFIX="" | bash |
d_bash_13662 | ---
+++
@@ -7,3 +7,4 @@
alias vl='less *.log(.om[1])'
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
alias glo='/usr/bin/git log --pretty=format:"%h - %an, %<(15)%ar : %s"'
+alias sdu='du -h --max-depth 1 | sort -h' | bash |
d_bash_13663 | ---
+++
@@ -11,6 +11,7 @@
conda skeleton pypi femagtools
echo "Build package.."
+conda build femagtools
dest_dir=`conda build femagtools --output`
echo "File located under $dest_dir"
| bash |
d_bash_13664 | ---
+++
@@ -1,24 +1,22 @@
-#!/bin/bash
-
# debug.sh
# Toggle command verbosity
if $debug
then
- export sshkeygen="ssh-keygen"
- export aptget="apt-get -y"
- export curl="curl"
- export wget="wget"
- export gitclone="git clone"
- export grep="grep"
- export ping="ping"
+ sshkeygen=(ssh-ke... | bash |
d_bash_13665 | ---
+++
@@ -1,7 +1,16 @@
#!/bin/sh
-sudo apt install -y golang-go
-go get -u -v github.com/nsf/gocode
+GO111MODULE=on go get -v golang.org/x/tools/gopls@latest
+GO111MODULE=on CGO_ENABLED=0 go get -v -trimpath -ldflags '-s -w' github.com/golangci/golangci-lint/cmd/golangci-lint
+go get -u -v golang.org/x/tools/cmd/g... | bash |
d_bash_13666 | ---
+++
@@ -1,12 +1,12 @@
-function count_to_migrate() { grep -Ril --include \*.coffee "angular.module" ./src/app; }
-function count_migrated() { grep -Ril --include \*.ts "@Component" ./src/app; }
+function count_to_migrate() { grep -Ril --include \*.coffee "angular.module" ./src/app | sed 's/^/- [ ] /'; }
+function... | bash |
d_bash_13667 | ---
+++
@@ -7,4 +7,4 @@
bundle exec rake validate
bundle exec rake lint
-bundle exec rake test:git
+bundle exec rake test | bash |
d_bash_13668 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
version=$(grep -A1 "hammer-bench" pom.xml | grep -ioh "[0-9.]*")
-#mvn clean install
+mvn clean install
DIST=hammer-bench-$version
rm -rf $DIST
mkdir $DIST | bash |
d_bash_13669 | ---
+++
@@ -2,5 +2,5 @@
#Copy the RPMs out and back to the shared folder
cd /vagrant
-rsync --no-relative -vahu ~/rpmbuild/RPMS/* .
+rsync --no-relative -vahu ~/rpmbuild/RPMS ~/rpmbuild/SRPMS .
| bash |
d_bash_13670 | ---
+++
@@ -6,11 +6,11 @@
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
-_gpg_env="$HOME/.gnupg/gpg-agent.env"
-
if (( ! $+commands[gpg-agent] )); then
return
fi
+
+_gpg_env="$HOME/.gnupg/gpg-agent.env"
function _gpg-agent-start() {
gpg-agent --daemon --enable-ssh-support --write-env-file "${_gpg_env}"... | bash |
d_bash_13671 | ---
+++
@@ -34,4 +34,5 @@
ln -s /initctl_faker /sbin/initctl
#Install inventory file
-echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
+echo "[local]" > /etc/ansible/hosts
+echo "localhost ansible_connection=local" >> /etc/ansible/hosts | bash |
d_bash_13672 | ---
+++
@@ -19,6 +19,7 @@
jsdoc -d "$BUILD_DIR" *.js README.md
cd "$BUILD_DIR"
+git add .
git commit -a -m "Rebuild documentation"
git push origin gh-pages
| bash |
d_bash_13673 | ---
+++
@@ -11,6 +11,9 @@
fi
echo "This instance is configured to use Salt Bundle in /etc/salt/grains !"
+
+echo "Copying /etc/salt/grains to /etc/venv-salt-minion"
+cp /etc/salt/grains /etc/venv-salt-minion/grains
if [ -x /usr/bin/dnf ]; then
INSTALLER=yum | bash |
d_bash_13674 | ---
+++
@@ -27,4 +27,7 @@
# Overwrite .vimrc
curl -L http://sh.owentrueblood.com/dotfiles/.vimrc > $HOME/.vimrc
+# Set vim as system default editor
+update-alternatives --set editor /usr/bin/vim.basic
+
finish | bash |
d_bash_13675 | ---
+++
@@ -14,6 +14,10 @@
fi
}
+ isFilePath(){
+ isPath ${1} || isFile ${1}
+ }
+
isPath(){
local filePath=$(readvar ${1})
local pattern='\(/[a-zA-Z\]\+\)\+' | bash |
d_bash_13676 | ---
+++
@@ -23,8 +23,8 @@
OUT=etc/gitinfo.txt
-git describe --all > $OUT
-git describe --always >> $OUT
+git --git-dir=$dotgit describe --all > $OUT
+git --git-dir=$dotgit describe --always >> $OUT
date "+%b %d %Y, %H:%M:%S" >> $OUT
exit 0 | bash |
d_bash_13677 | ---
+++
@@ -5,31 +5,31 @@
# Installs brew cask packages, assumes brew is installed
/usr/local/bin/brew cask install \
- qlmarkdown \
- quicklook-json \
- qlcolorcode \
- qlstephen \
- betterzipql \
- qlimagesize \
- qlvideo \
- google-chrome \
- atom \
- docker \
- docker-toolbox \
- alfred \
- vlc \... | bash |
d_bash_13678 | ---
+++
@@ -9,6 +9,8 @@
contexts+=("dev${i}->${devices[${i}]}")
done
THEANO_FLAGS="floatX=float32,device=${devices[0]}"
+# Disabling this optimization makes multinomial sampling a bit faster.
+THEANO_FLAGS="${THEANO_FLAGS},optimizer_excluding=local_gpua_multinomial_wor"
if [ ${#devices[@]} -gt 1 ]
then
THEANO... | bash |
d_bash_13679 | ---
+++
@@ -12,4 +12,4 @@
# Package files into tar.gz
rm -f goojs-jsdoc*.tar.gz
-tar zcf goojs-jsdoc_$(date +%d%h%y_%H%M).tar.gz ${DOC_DIR}
+tar zcf goojs-jsdoc_$(date +%d%h%Y_%H%M).tar.gz ${DOC_DIR} | bash |
d_bash_13680 | ---
+++
@@ -17,6 +17,7 @@
brew install ripgrep
brew install fd
brew install google-cloud-sdk
+brew install sf-pwgen
# application software in casks
brew install --cask moom | bash |
d_bash_13681 | ---
+++
@@ -19,6 +19,8 @@
rm -f rsync.log
./sync-lib.sh "$SOURCE" "$DEST" \
--exclude "5*" \
+ --exclude "6rolling/" \
+ --exclude "6x/" \
--exclude "*.drpm" \
--exclude "iso" \
--exclude "livecd" \ | bash |
d_bash_13682 | ---
+++
@@ -20,3 +20,8 @@
# Install fish plugins
# shellcheck disable=2016
"$(which fish)" -c 'curl -fsSL https://git.io/fisher | source && fisher install (cat ~/.config/fish/fish_plugins)'
+
+# Install asdf plugins
+asdf plugin add nodejs
+asdf plugin add ruby
+asdf plugin-add pnpm | bash |
d_bash_13683 | ---
+++
@@ -25,6 +25,14 @@
done
}
+panes_all_sessions() {
+ current=$(tmux display-message -p '#S')
+ tmux list-panes -a -F '#S #I.#P' |
+ while read session pane; do
+ [[ $current != $session ]] && echo "$session:$pane"
+ done
+}
+
# take all lines
# append copy with replaced non word ch... | bash |
d_bash_13684 | ---
+++
@@ -18,7 +18,9 @@
N=12000
function abc {
- stack exec cardano-keygen -- --genesis-file genesis.bin -f "secrets/secret-{}.key" -m $M -n 12000 --richmen-share 0.94 --testnet-stake 19072918462000000 --utxo-file "$utxo_file" --randcerts --blacklisted "$blacklist" --fake-avvm-seed-pattern "avvm/fake-{}.seed" ... | bash |
d_bash_13685 | ---
+++
@@ -7,7 +7,7 @@
echo "Starting CCU2 init scripts"
for i in /etc/init.d/S*; do echo; echo "Starting $i"; $i start; done
-
+killall hss_led #Because it is very verbose when it cannot find the CCU2 leds
echo "Done starting CCU2 init scripts"
/bin/sh
| bash |
d_bash_13686 | ---
+++
@@ -22,7 +22,7 @@
echo $ID
read -r -d '' SQL <<_EOF_
-INSERT INTO daily_price (stock_id,date,price) SELECT $ID,timestamp,close FROM temp WHERE price > 0;
+INSERT INTO daily_price (stock_id,date,price) SELECT $ID,timestamp,close FROM temp WHERE close > 0;
--DROP TABLE IF EXISTS temp;
_EOF_
| bash |
d_bash_13687 | ---
+++
@@ -1,19 +1,22 @@
#!/bin/bash
caller_dir=$PWD
-smartcar_test_dir="${TRAVIS_BUILD_DIR}/test"
-coverage_report_dir="${TRAVIS_BUILD_DIR}/coverage-reports"
+script_dir=$(dirname "$0")
+smartcar_test_dir="${script_dir}/test"
+coverage_report_dir="${script_dir}/coverage-reports"
# Specify which directories a... | bash |
d_bash_13688 | ---
+++
@@ -7,7 +7,7 @@
dir=$(dirname $1)
name=$(basename $1)
-out=$1.run.out
+out="$dir/test.out"
exec 2> $out
which consul &>/dev/null | bash |
d_bash_13689 | ---
+++
@@ -38,3 +38,6 @@
return 1
fi
unset progname
+
+# Enable audio echo cancellation in Pulseaudio if supported
+export PULSE_PROP='filter.want=echo-cancel' | bash |
d_bash_13690 | ---
+++
@@ -21,7 +21,7 @@
fi
if [[ ! -e /cache/base-$DISTRO-$ARCH.tgz ]]; then
- run pbuilder-dist $DISTRO $ARCH create
+ run pbuilder-dist $DISTRO $ARCH create --updates-only
run mv ~/pbuilder/$BASE_TGZ /cache/base-$DISTRO-$ARCH.tgz
fi
if [[ ! -e ~/pbuilder/$BASE_TGZ ]]; then | bash |
d_bash_13691 | ---
+++
@@ -13,7 +13,6 @@
echo "Cleaning up"
rm -rf package
rm "${PKG_NAME}"-*
- rm -rf tmp
set -e
}
@@ -44,7 +43,7 @@
git push --force origin master:${LATEST_BRANCH_NAME}
cd -
-# cleanup package / tmp folder
+# cleanup
cleanup
echo "Congratulations, the latest package has been successfully re... | bash |
d_bash_13692 | ---
+++
@@ -1,9 +1,7 @@
# Use `hub` as our git wrapper:
# http://defunkt.github.com/hub/
-hub_path=$(which hub)
-if (( $+commands[hub] ))
-then
- alias git=$hub_path
+if [ -f /usr/local/rbenv/shims/hub ]; then
+ alias git="hub"
fi
# The rest of my fun git aliases | bash |
d_bash_13693 | ---
+++
@@ -1,4 +1,6 @@
#! /bin/bash
+# This script will generate input at different clevels
+# to help test behavior locally.
set -e
| bash |
d_bash_13694 | ---
+++
@@ -12,7 +12,8 @@
dartium --version
pub run test -p vm -x codegen
pub run angular_test \
+ --experimental-serve-script=tool/build.dart \
--serve-arg=--port=8080 \
- --test-arg=--platform=dartium \
+ --test-arg=--platform=chrome \
--test-arg=--tags=codegen \
--test-arg=--exclude-tags... | bash |
d_bash_13695 | ---
+++
@@ -5,11 +5,11 @@
. ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh -q
echo " done"
-HDF5_ROOT=/afs/cern.ch/user/d/dguest/afswork/public/hdf5/hdf5-1.8.19/install/
-echo "set HDF5_ROOT to ${HDF5_ROOT}"
-
echo "================ setting up CMake ======================"
lsetup cmake
echo "============ set... | bash |
d_bash_13696 | ---
+++
@@ -4,14 +4,15 @@
#SBATCH -N 1 # All cores on one machine
#SBATCH -p irizarry,serial_requeue # Partition
#SBATCH --mem 60000 # Memory request
-#SBATCH -t 0-5:00 # Maximum execution time (D-HH:MM)
+#SBATCH -t 0-2:00 # Maximum execu... | bash |
d_bash_13697 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
--rm -r dist
+rm -r dist
python setup.py sdist
twine upload dist/* | bash |
d_bash_13698 | ---
+++
@@ -7,7 +7,7 @@
[Service]
User=`whoami`
-ExecStart=`which gunicorn` --certfile=fullchain.pem --keyfile=privkey.pem glitch.server:app --workers=4
+ExecStart=`which gunicorn` --certfile=fullchain.pem --keyfile=privkey.pem glitch.server:app --workers=4 --log-level=debug
WorkingDirectory=`pwd`
"|sudo tee /e... | bash |
d_bash_13699 | ---
+++
@@ -1,3 +1,31 @@
#!/usr/bin/env bash
+#===============================================================================
+#
+# SecureServer
+#
+#===============================================================================
-# agent placeholder
+os_name=$(awk -F ' release ' '{print $1}' /etc/redhat-release)... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.