document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_8900 | ---
+++
@@ -7,4 +7,11 @@
# Removing modest user data folder
rm -rf /home/user/.modest
+# Restore the security modules settings
+if [ -f "/usr/bin/nsscfg" ] ; then
+nsscfg -c /home/user/.modest/cache -m "Maemosec certificates" -l /usr/lib/libmaemosec_certman.so.0
+fi
+
+
+
exit 0 | bash |
d_bash_8901 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
for d in */ ; do
echo "Building $d"
- (cd "$d" ; npm run build)
+ (cd "$d" ; yarn run build)
done | bash |
d_bash_8902 | ---
+++
@@ -30,6 +30,7 @@
LOG_TRACE_FILE=/tmp/mistral-trace-itests-$DATE.log
sed -i s:/var/log/mistral.log:$LOG_FILE:g $LOG_CONFIG_FILE
sed -i s:/var/log/mistral_wf_trace.log:$LOG_TRACE_FILE:g $LOG_CONFIG_FILE
+sed -i s:INFO:DEBUG:g $LOG_CONFIG_FILE
service mistral start
| bash |
d_bash_8903 | ---
+++
@@ -2,6 +2,7 @@
# carthage.sh
# Usage example: ./carthage.sh build --platform iOS
+# This script was copied from here: https://github.com/Carthage/Carthage/issues/3019#issuecomment-665136323
set -euo pipefail
| bash |
d_bash_8904 | ---
+++
@@ -1,4 +1,5 @@
-
-nuget restore FbxSharpBuild.sln && \
- xbuild /p:Configuration=Debug FbxSharpBuild.sln && \
- nunit-console ./FbxSharpTests/bin/Debug/FbxSharpTests.dll
+#!/bin/bash
+set -e
+nuget restore FbxSharpBuild.sln
+xbuild /p:Configuration=Debug FbxSharpBuild.sln
+nunit-console ./FbxSharpTests/bin... | bash |
d_bash_8905 | ---
+++
@@ -9,7 +9,7 @@
popd
pushd tripleo-quickstart-extras
-git fetch https://git.openstack.org/openstack/tripleo-quickstart-extras refs/changes/36/414336/20 && git checkout FETCH_HEAD
+git fetch https://git.openstack.org/openstack/tripleo-quickstart-extras refs/changes/36/414336/22 && git checkout FETCH_HEAD
... | bash |
d_bash_8906 | ---
+++
@@ -24,8 +24,5 @@
eval $(echo "$releaseResponse" | grep -m 1 "id.:" | grep -w id | tr : = | tr -cd '[[:alnum:]]=')
[ "$id" ] || { echo "Error: Failed to get release id for tag: $tag"; echo "$releaseResponse" | awk 'length($0)<100' >&2; exit 1; }
-# Construct edit release url
-GH_EDIT_RELEASE_URL"$GH_REPO/... | bash |
d_bash_8907 | ---
+++
@@ -24,7 +24,7 @@
# confd -interval $CONFIG_REFRESH -node $ETCD > /var/log/confd.log 2>&1 &
# echo "[nginx] confd is now monitoring etcd for changes..."
echo "[nginx] etcd updater is now updating etcd with changes..."
-etcd_updater_service.rb
+etcd_updater_service.rb start
# Start the Nginx service usin... | bash |
d_bash_8908 | ---
+++
@@ -13,10 +13,11 @@
ln -fv $HOME/src/go/misc/git/hooks/* .git/hooks/
;;
$HOME/src/haskell/*)
- git addignore '/dist/'
+ git ignore '/dist/'
+ git ignore '/dist-newstyle/'
;;
$HOME/src/rust/*)
- git addignore '*.rs.bk'
- git addignore '/target/'
+ git ignore '/target/'
+ ... | bash |
d_bash_8909 | ---
+++
@@ -2,5 +2,6 @@
set -e
bundle install --path "${HOME}/bundles/${JOB_NAME}"
+export GOVUK_APP_DOMAIN=dev.gov.uk
bundle exec rake test
bundle exec rake publish_gem | bash |
d_bash_8910 | ---
+++
@@ -12,3 +12,6 @@
. /etc/bash_completion
fi
fi
+
+# Ensure tmux works with 256 colors
+TERM=screen-256color | bash |
d_bash_8911 | ---
+++
@@ -1,2 +1,2 @@
-hosts=$(awk '/^Host / {print $2}' ~/.ssh/config 2>/dev/null | tr ' ' "\n")
+local hosts=$(awk '/^Host / {print $2}' ~/.ssh/config.d/* | grep -v '*')
zstyle ':completion:*:hosts' hosts $hosts | bash |
d_bash_8912 | ---
+++
@@ -6,28 +6,17 @@
export ARCH=`uname -m`
-# Pull known working tools toward the end of 2016
-wget http://dl.google.com/android/repository/android-ndk-r13b-linux-${ARCH}.zip
-wget https://dl.google.com/android/repository/tools_r25.2.5-linux.zip
-wget https://dl.google.com/android/repository/platform-tools... | bash |
d_bash_8913 | ---
+++
@@ -4,8 +4,8 @@
cd "$(dirname $0)/.."
PATH=bin/:$PATH
-SOURCE=docs/source
-TARGET=docs/build
+SOURCE=${SOURCE:-docs/source}
+TARGET=${TARGET:-docs/build}
sphinx-apidoc -f -T -e -o ${SOURCE}/apidoc pyramid_jsonapi
# Generate config docs from python method | bash |
d_bash_8914 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
-docker build --tag="kurron/java-8:1.8.0.25" .
+docker build --tag="kurron/java:1.8.0.25" . | bash |
d_bash_8915 | ---
+++
@@ -25,3 +25,7 @@
screen -S badge_daemon -d -m /bin/bash -c \
"PYTHONPATH=$(pwd) python3 -m apiserver.scripts.badge_daemon.py"
+
+# Run game deletion job at 8 AM UTC = midnight PST (DOES NOT account
+# for DST)
+{ crontab -l -u worker; echo "0 8 * * * $(pwd)/delete_old_games.sh"; } | crontab -u worker... | bash |
d_bash_8916 | ---
+++
@@ -6,7 +6,7 @@
dir=~/dotfiles
files=".aliases .bash_profile .bash_prompt .bashrc .divvy .iterm_bertocq_profile .rubocop.yml
-.gitconfig .gitignore_global .gitmessage git-completion.bash"
+.gitconfig .gitignore_global .gitmessage .git-completion.bash"
# create symlinks on ~/ for each dotfile
for file... | bash |
d_bash_8917 | ---
+++
@@ -6,7 +6,7 @@
./script/install-all.sh
# Do this last to set default terminal to oh-my-zsh
-env zsh -l
+chsh -s $(which zsh)
else
| bash |
d_bash_8918 | ---
+++
@@ -5,4 +5,4 @@
# run_buildbots.sh
cd /libcxx
git pull
-source utils/docker/scripts/run_buildbots.sh "$@"
+/libcxx/utils/docker/scripts/run_buildbots.sh "$@" | bash |
d_bash_8919 | ---
+++
@@ -1,6 +1,6 @@
alias dc="docker"
alias doc="docker"
alias img="clear; docker images; echo; docker ps -a"
-alias psa="clear; docker ps --all; echo; docker images"
+alias psa="clear; docker ps --all --format \"table {{.Image}}\t{{.Names}}\t{{.Ports}}\t{{.Status}}\"; echo; docker images"
alias rmi="clear; d... | bash |
d_bash_8920 | ---
+++
@@ -9,11 +9,15 @@
# If Go is not installed, skip the rest of this script.
go version &>/dev/null || return
-# Set this to the directory you use for your Go workspace; by default, this just
-# assumes it is ~/go if that directory exists.
+# Set this to your Go workspace directory; by default, this assumes ... | bash |
d_bash_8921 | ---
+++
@@ -13,6 +13,7 @@
sed -i '' '/"author"/d' dist/firefox/manifest.json
sed -i '' '/"minimum_chrome_version"/d' dist/firefox/manifest.json
sed -i '' '/"content_security_policy"/d' dist/firefox/manifest.json
+sed -i '' '/"browser_style"/d' dist/firefox/manifest.json
sed -i '' 's/, "js\/ga.js"//' dist/firefox/... | bash |
d_bash_8922 | ---
+++
@@ -6,6 +6,9 @@
export BOSH_INSTALL_TARGET=/usr/local
cd /tmp/cpi-release
+
+# Remove old/sync'd releases
+rm -f dev_releases/bosh-vsphere-cpi/*.tgz
# Create a CPI dev release, which we use to install mkisofs packages.
bosh create release --with-tarball | bash |
d_bash_8923 | ---
+++
@@ -23,6 +23,7 @@
--enable-portaudio \
--enable-sdl --with-sdl-config-path=/usr/win32/bin \
--enable-qt4 \
+ --enable-mozilla --with-mozilla-sdk-path=/usr/win32/gecko-sdk \
--enable-activex \
--enable-sse --enable-mmx \
--enable-libcddb \ | bash |
d_bash_8924 | ---
+++
@@ -13,3 +13,11 @@
# Delete key
bindkey '\e[3~' delete-char
+
+# Customize the behavior of backward-delete-word
+function slash-backward-delete-word() {
+ local WORDCHARS="${WORDCHARS:s@/@}"
+ zle backward-kill-word
+}
+zle -N slash-backward-delete-word
+bindkey '^W' slash-backward-delete-word | bash |
d_bash_8925 | ---
+++
@@ -6,6 +6,8 @@
alias gca='git commit -a'
alias gch='git checkout'
alias gb='git branch'
+alias gbr='git branch -r'
+alias gba='git branch -a'
alias gm='git merge --no-ff' # keep commit from feature when merging
# Analysis | bash |
d_bash_8926 | ---
+++
@@ -2,8 +2,17 @@
# dotnet configuration
if command -v dotnet > /dev/null; then
+ dotnet_bin="$HOME/.dotnet/tools"
+
# Opt-out of telemetry
export DOTNET_CLI_TELEMETRY_OPTOUT=true
+
+ # Add global tools to our PATH
+ build_path "$dotnet_bin" "$PATH"
+ # shellcheck disable=SC2154
+ ... | bash |
d_bash_8927 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/sh
set -o xtrace
-docker push $DOCKER_REGISTRY_NAME/$IMAGE_NAME
+if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then
+ docker push $DOCKER_REGISTRY_NAME/$IMAGE_NAME
+fi | bash |
d_bash_8928 | ---
+++
@@ -1,6 +1,10 @@
#!/bin/bash
set -e
+
+curl -fsSL https://raw.githubusercontent.com/neovim/neovim/master/.ci/common.sh | source /dev/stdin
+
+set_environment /opt/neovim-deps
if [ ! -d $TRAVIS_BUILD_DIR/_neovim ]
then | bash |
d_bash_8929 | ---
+++
@@ -1,6 +1,14 @@
#!/bin/bash
set -ex
+
+if [ -e "jenkins-env" ]; then
+ cat jenkins-env \
+ | grep -E "(RECOMMENDER_API_TOKEN|JENKINS_URL|GIT_BRANCH|GIT_COMMIT|BUILD_NUMBER|ghprbSourceBranch|ghprbActualCommit|BUILD_URL|ghprbPullId)=" \
+ | sed 's/^/export /g' \
+ > ~/.jenkins-env
+ so... | bash |
d_bash_8930 | ---
+++
@@ -3,7 +3,7 @@
if [ -z "$1" ]
then
echo "$0 <outpath>"
-elif which -s svn
+elif which svn >/dev/null
then
if [ -d .svn ]
then | bash |
d_bash_8931 | ---
+++
@@ -6,10 +6,11 @@
desktop_capture="kazam"
pdf_viewer="imagemagick"
video_editor="kdenlive"
+webdav_client="cadaver"
sudo apt-get update -qq
sudo apt-get install -y aptitude
-sudo aptitude install -y nkf git screen vim rubygems1.9.1 ruby1.9.1-dev ipython g++ trash-cli python-pip ${pdf_viewer} ${image_vi... | bash |
d_bash_8932 | ---
+++
@@ -1,17 +1,29 @@
source ../busybox/plan.sh
pkg_name=busybox-static
+pkg_origin=core
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
-pkg_dirname=${pkg_distname}-${pkg_version}
-
+pkg_description="\
+BusyBox is the Swiss Army Knife of embedded Linux. BusyBox combines tiny \
+versions of many... | bash |
d_bash_8933 | ---
+++
@@ -3,4 +3,6 @@
if [ "$HOST" = "pro.local" ]; then
alias vm="tab-color 0 200 0; cd; cd vagrant; vagrant up && vagrant ssh"
alias htop="sudo htop"
+ alias vim="nvim"
+ alias v="nvim"
fi | bash |
d_bash_8934 | ---
+++
@@ -1,14 +1,14 @@
#!/usr/bin/env bash
-apt-get update
+apt-get update -qq 1> /dev/null
# Dev requirements
-apt-get install -y python-flask python-cherrypy3
+apt-get install -qq -y python-flask python-cherrypy3 1> /dev/null
# Build requirements
-apt-get install -y devscripts debhelper python-all python-... | bash |
d_bash_8935 | ---
+++
@@ -29,8 +29,6 @@
file_env 'POSTGRES_PASSWORD'
file_env 'MENTOR_GOOGLE_CALENDAR'
file_env 'GOOGLE_API_KEY'
-file_env 'MAILGUN_DOMAIN_DEV'
-file_env 'MAILGUN_SECRET_DEV'
file_env 'MAILGUN_DOMAIN'
file_env 'MAILGUN_SECRET'
| bash |
d_bash_8936 | ---
+++
@@ -17,6 +17,7 @@
fi
# Proftpd
+echo "Install proftp..."
wget https://github.com/proftpd/proftpd/archive/v1.3.5a.tar.gz
tar -zxvf v1.3.5a.tar.gz | tail
rm v1.3.5a.tar.gz
@@ -31,8 +32,15 @@
--with-modules=mod_sql:mod_sql_passwd:mod_sql_postgres
make
sudo make install
+cd ../
rm -rf proftpd-1.3.5... | bash |
d_bash_8937 | ---
+++
@@ -3,7 +3,7 @@
# Mcrypt is a common dependency for 5.5+ apps, so it is installed by default with those scripts
# Ensure you include in provisioning AFTER php.sh
-PACKAGE_NAME='php-'
+PACKAGE_NAME='php'
echo "Installing Mcrypt php extension"
| bash |
d_bash_8938 | ---
+++
@@ -11,6 +11,7 @@
local remote_dir="$RELEASE_NAME/$(cat $VERSION_FILE)/"
create-directory "$remote_dir"
copy-file "$remote_dir"
+ echo "Copied $FILE to $remote_dir"
}
# copied from ci/scripts/recreate-bosh-lite.sh | bash |
d_bash_8939 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
echo "Generating TLS certs..."
-cd certs && generate-cert --host ${PARROT_HOST:-parrot}
+mkdir -p certs && cd certs && generate-cert --host ${PARROT_HOST:-parrot} | bash |
d_bash_8940 | ---
+++
@@ -1 +1 @@
-awscli organizations list-accounts --output table --query "sort_by(Accounts,&Name)[$(auto_filter Name Id Status Email -- $@)].{\"1.Name\":Name,\"2.Id\":Id,\"3.Status\":Status,\"4.Email\":Email}"
+awscli organizations list-accounts --output table --query "sort_by(Accounts,&Name)[$(auto_filter Name... | bash |
d_bash_8941 | ---
+++
@@ -6,18 +6,29 @@
echo -e "$GITHUB_DEPLOY_KEY" | base64 -d > ~/.ssh/deploy.key
chmod 600 ~/.ssh/deploy.key
-# fetch gh-pages branch
-cd ../..
-git clone --depth=1 --branch=gh-pages git@github.com:vivliostyle/vivliostyle.js.git gh-pages
-cd gh-pages
-
# git configuration
git config user.email "kwkbtr@viv... | bash |
d_bash_8942 | ---
+++
@@ -12,7 +12,7 @@
# Math::MatrixReal, for prinseq-graph
aptitude -y --without-recommends install libjson-perl libcairo-perl libtext-simpletable-perl libcontextual-return-perl libwant-perl cpanminus
#cpanm Contextual::Return Exception::Class Test::{Warn,Exception,Differences,Deep} Math::Cephes Math::MatrixR... | bash |
d_bash_8943 | ---
+++
@@ -7,7 +7,7 @@
MODE=libtensorflow
PLATFORM=linux
CONTEXT=/usr/local/ # run as sudo if the context directory is not owned
-VERSION=1.14.0
+VERSION=1.15.0
# setup
$PYTHON setup_tensorflow.py -m $MODE -p $PLATFORM -c $CONTEXT -v $VERSION | bash |
d_bash_8944 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-REV=15d770400eed9018f18bddf83dd65cb7789280a5
+REV=96d1334e567237b1507cd277938e7ae2de75ff51
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")" | bash |
d_bash_8945 | ---
+++
@@ -21,7 +21,7 @@
make -C ./scripts/schema/ setup
if [ $TRAVIS ]; then
- CQLSH="/usr/local/cassandra/bin"
+ CQLSH="/usr/local/cassandra/bin/cqlsh"
else
CQLSH="cqlsh"
fi | bash |
d_bash_8946 | ---
+++
@@ -6,7 +6,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u242b08.tar.gz"
;;
java11)
- echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.6_10.t... | bash |
d_bash_8947 | ---
+++
@@ -25,6 +25,9 @@
# install nokogiri dependencies
apt-get install -y libxslt-dev libxml2-dev
+# additonal tools to build new versions
+apt-get install -y rake
+
# setup project
cd /vagrant
bundle install | bash |
d_bash_8948 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash -ex
-$VENV=_virtualenv
+VENV=_virtualenv
if [ ! -d $VENV ]; then
virtualenv --no-site-packages $VENV | bash |
d_bash_8949 | ---
+++
@@ -12,10 +12,10 @@
exit 1;
fi
-wget -O build/split-lite.tar.gz "${url}"
-tar -zxpf build/split-lite.tar.gz --directory ./build/
-chmod +x build/splitsh-lite
-rm build/split-lite.tar.gz
+wget -O bin/split-lite.tar.gz "${url}"
+tar -zxpf bin/split-lite.tar.gz --directory ./bin/
+chmod +x bin/splitsh-lite... | bash |
d_bash_8950 | ---
+++
@@ -1,11 +1,18 @@
#!/bin/bash
+UGLIFY='../third_party/uglifyjs/bin/uglifyjs'
FILES=(
'../src/initialize.js'
'../src/pointermap.js'
'../src/dispatcher.js'
'../src/platform-events.js'
- '../src/flick.js'
- '../src/finalize.js'
)
-cat ${FILES[@]} | ../third_party/uglifyjs/bin/uglifyjs -o point... | bash |
d_bash_8951 | ---
+++
@@ -2,10 +2,11 @@
# Format output of alias print dump into more readable format
awk -F= 'BEGIN {
- TABLE_FMT = "%-21s | %-60s";
+ TABLE_FMT = "%-21s | %-59s";
row = sprintf(TABLE_FMT, "ALIAS", "COMMAND");
print row;
- print "--------------------------------";
+ ... | bash |
d_bash_8952 | ---
+++
@@ -20,7 +20,7 @@
# Find all examples with a `pubspec.yaml` file.
echo "Checking formatting of all examples..."
-if ! dart format "$@" bin lib test 2>&1 | awk '{print " | " $0}'; then
+if ! dart format "$@" example 2>&1 | awk '{print " | " $0}'; then
echo "----------------------------------------------... | bash |
d_bash_8953 | ---
+++
@@ -3,7 +3,7 @@
# Install Ruby.
if [[ "$(type -P rbenv)" ]]; then
- versions=(2.1.3) # 2.0.0-p576 1.9.3-p547)
+ versions=(2.4.0)
rubies=($(setdiff "${versions[*]}" "$(rbenv whence ruby)"))
if (( ${#rubies[@]} > 0 )); then | bash |
d_bash_8954 | ---
+++
@@ -1,7 +1,7 @@
ISO=${ISO-out/grub.iso}
make || exit $?
VGA="-vga std"
-NETDEV="user,id=vmnet0 -redir tcp:5555::80"
+NETDEV="user,id=vmnet0,hostfwd=tcp::5555-:80"
#NETDEV=${NETDEV-tap,id=vmnet0,script=no,ifname=tap0,downscript=no}
# New syntax required if using -machine q35
#CD="-drive file=$ISO,if=none... | bash |
d_bash_8955 | ---
+++
@@ -9,38 +9,8 @@
function port() { lsof -i tcp:"$1"; }
-function cleanlocal() {
- echo "Before cleanup:";
- git branch;
- echo "----";
- git branch --merged | grep -v "\*" | xargs -n 1 git branch -D;
- echo "----";
- echo "After cleanup:";
- git branch;
-}
-
-function mergeFirstIntoSecond() {
- g... | bash |
d_bash_8956 | ---
+++
@@ -7,6 +7,10 @@
cp -a /etc/sysctl.d/11-gce-network-security.conf /HOST/etc/sysctl.d/11-gce-network-security.conf
cp -a /etc/udev/rules.d/*gce*rules /HOST/etc/udev/rules.d/
+if [ -f /HOST/etc/NetworkManager/dispatcher.d/11-dhclient ]; then
+ sed -i 's|^PATH=.*|PATH=/bin:/usr/bin:/sbin:/usr/local/bin|' ... | bash |
d_bash_8957 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
app=$1
-total_number=3
+total_number=5
link_name () { echo "$app-$1-$2"; }
link_path () { echo "$path/$(link_name $1 $2)"; } | bash |
d_bash_8958 | ---
+++
@@ -1,9 +1,7 @@
#Download with title
# Youtube-dl options are:
-# -t, --title use title in file name
# -w, --no-overwrites do not overwrite files
# -c, --continue resume partially downloaded files
-# -n, --netrc use .netrc authentication data
-alias... | bash |
d_bash_8959 | ---
+++
@@ -5,7 +5,7 @@
smartmeter_data=`curl --silent $igor_protocol://$igor_host/p1?format=json`
case x$smartmeter_data in
-*smartMeter*)
+x'{'*)
echo $smartmeter_data | igorVar --put application/json sensors/$igor_pluginName
;;
*) | bash |
d_bash_8960 | ---
+++
@@ -25,9 +25,9 @@
for file in ${files[@]}; do
for task in $(StringUtil strip tasks Formatter); do
if [[ ${task} == enforceLocalVariables &&
- ! ${skipVariableValidation} =~ ${file} ]]; then
+ ${skipVariableValidation} =~ ${file} ]]; then
- Formatter ${task} ${file}
+ continue
else
... | bash |
d_bash_8961 | ---
+++
@@ -1,13 +1,12 @@
#!/bin/bash
addon_bin=cfx
-
-type cfx 2>&1 >/dev/null || return;
+type $addon_bin >/dev/null 2>&1 || return;
# Trying to connect with nightly
firefox_bin=/opt/firefox/firefox
[[ -x $firefox_bin ]] &&
- alias cfx="cfx -b $firefox_bin"
+ alias $addon_bin="$addon_bin -b $firefox_bi... | bash |
d_bash_8962 | ---
+++
@@ -10,3 +10,8 @@
echo "Installing font-hack"
brew cask install caskroom/fonts/font-hack
fi
+
+if [ ! "$(brew cask ls | grep font-fira-code)" ]; then
+ echo "Installing font-hack"
+ brew cask install caskroom/fonts/font-fira-code
+fi | bash |
d_bash_8963 | ---
+++
@@ -10,6 +10,7 @@
ln -s /mnt/fuelphp /home/vagrant/fuelphp
cp /mnt/fuelphp/vagrant/*.conf /etc/httpd/conf.d
curl get.fuelphp.com/oil | sh
+sed -i 's/^#ServerName www.example.com:80$/ServerName localhost:80/' /etc/httpd/conf/httpd.conf
sed -i 's/^;date.timezone =$/date.timezone = Asia\/Tokyo/' /etc/php.ini... | bash |
d_bash_8964 | ---
+++
@@ -5,7 +5,7 @@
#sleep 5s
logFile=`ls -t | head -1`
tail $logFile
- serId=`echo $logFile | sed -e 's/\..*$//'`
+ serId=`echo $logFile | sed -e 's/\.log$//'`
cd ../Master_algorithm
groovy -cp 'target/algorithm-1.0-SNAPSHOT.jar:/root/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar' src/main/java/... | bash |
d_bash_8965 | ---
+++
@@ -7,6 +7,8 @@
olddir=`pwd`
cd "$srcdir"
+# GNU gettext automake support doesn't get along with git.
+# https://bugzilla.gnome.org/show_bug.cgi?id=661128
touch -t 200001010000 po/gdk-pixbuf.pot
GTKDOCIZE=`which gtkdocize` | bash |
d_bash_8966 | ---
+++
@@ -44,6 +44,9 @@
rm -rf dist
python setup.py sdist
+
+rm km3pipe/.git_revision_*
+
twine upload dist/*
git checkout master | bash |
d_bash_8967 | ---
+++
@@ -1,8 +1,12 @@
#!/usr/bin/env bash
set -eu
+
+if [[ $# -ne 2 ]]; then
+ echo "Usage: $0 BUILD_DIR S3_BUCKET"
+ exit 1
+fi
BUILD_DIR=$1
S3_BUCKET=$2
-aws s3 rm --recursive "s3://$S3_BUCKET/"
-aws s3 cp --recursive "$BUILD_DIR" "s3://$S3_BUCKET/" --grants read=uri=http://acs.amazonaws.com/groups... | bash |
d_bash_8968 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
-version="19.03.13"
+version="19.03.14"
echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz"; | bash |
d_bash_8969 | ---
+++
@@ -27,7 +27,9 @@
for test in $@
do
TOTAL=$(($TOTAL + 1))
- output "<tr> <th>${test}</th>"
+ output "<tr>"
+ outputLinkIfExists "${test}.zomp" "${test}"
+ # output "<tr> <th>${test}</th>"
if [ -e ${test}.ll ];
then | bash |
d_bash_8970 | ---
+++
@@ -5,19 +5,14 @@
declare -a extensions=(
EditorConfig.EditorConfig
- lehni.vscode-titlebar-less-macos
- PeterJausovec.vscode-docker
smockle.xcode-default-theme
)
declare -a personal_extensions=(
esbenp.prettier-vscode
)
declare -a work_extensions=(
- eg2.tslint
msjsdiag.debugger-for-chr... | bash |
d_bash_8971 | ---
+++
@@ -5,8 +5,14 @@
for i in `ls`; do
if [[ -d $i ]]; then
cd $i
+ ARCHETYPE_VERSION=`cat pom.xml | grep version | grep SNAPSHOT | sed -e 's/[\<\>]/ /g' | awk '{print $2}'`
mvn install
mvn install -B -N -Parchetype
cd ..
+ mvn archetype:generate -DarchetypeGroupId=com.betfair.cougar... | bash |
d_bash_8972 | ---
+++
@@ -5,17 +5,16 @@
THISRUN="$DOMAIN.html.tmp"
DIFFRESULT="$DOMAIN.diff"
EMAIL="me@example.com"
-CURLCMD="curl -s -L -H \"Cache-Control: no-cache\""
cd $HOME/dommon
-`$CURLCMD -o $THISRUN $DOMAIN`
+curl -s -L -H "Cache-Control: no-cache" $DOMAIN > $THISRUN
diff $LASTRUN $THISRUN > $DIFFRESULT
if [... | bash |
d_bash_8973 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/bash
+DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
clr_red=$(tput setaf 1)
clr_reg=$(tput sgr0)
@@ -9,6 +10,6 @@
fi
mkdir -p ~/bin
-ln -sf scripts/git-web ~/bin/
-ln -sf mac/scripts/git-web-open ~/bin/
+ln -sf $DIR/scripts/git-web ~/bin/
+ln -sf $DIR/mac/scripts/git-... | bash |
d_bash_8974 | ---
+++
@@ -7,23 +7,17 @@
echo '#######################################################################'
}
-for i in `oc get pods | cut -f 1 -d ' ' | grep -v NAME`
+for pod in `oc get pods -o jsonpath='{.items[*].metadata.name}'`
do
- runcmd "oc logs $i"
- if [ "$?" -gt "0" ]
- then
- runcmd ... | bash |
d_bash_8975 | ---
+++
@@ -12,7 +12,7 @@
mkdir -p "$dest_dir"
cp -a "$repo_dir" "$dest_dir"
chown -R statbot "$dest_dir"
-install -m644 "$1" "$dest_dir/config.json"
+install -m400 "$1" "$dest_dir/config.json"
install -m644 "$repo_dir/misc/statbot.service" /etc/systemd/system/statbot.service
systemctl daemon-reload | bash |
d_bash_8976 | ---
+++
@@ -1,4 +1,4 @@
#! /bin/sh
gorunner="$(dirname "$0")/../Resources/gorunner"
-"$gorunner" -s -t "go test" go test $("$gorunner" go list)
+"$gorunner" go test $("$gorunner" go list) | bash |
d_bash_8977 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/bash
+
+set -e
+set -o pipefail
if [ $# -lt 2 ]; then
echo "Usage: `basename $0` <REGEX> <OUTPUT>" | bash |
d_bash_8978 | ---
+++
@@ -29,6 +29,7 @@
whois\
pydf\
ncdu\
+ super\
colordiff\
xclip
| bash |
d_bash_8979 | ---
+++
@@ -4,7 +4,17 @@
# to verify that they're all on either master or stable/ branches
#
-hashes=$(git show --format='%b' --quiet $1 | sed -nr 's/^.cherry picked from commit (.*).$/\1/p')
+commit_hash=""
+
+# Check if the patch is a merge patch by counting the number of parents.
+# If the patch has 2 parents,... | bash |
d_bash_8980 | ---
+++
@@ -21,7 +21,7 @@
popd
popd
-args="test tests:${TEST_SET:-all} $(append_intellij_jvm_options test-junit) $@"
+args="test tests:${TEST_SET:-all} $(append_intellij_jvm_options test-junit) ${ADDITIONAL_ARGS:-$@}"
echo "Running ./pants $args"
./pants $args | bash |
d_bash_8981 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-distro=$(lsb_release -i|cut -f 2 -d ":"|tr -d "\t")
+distro=$(lsb_release -i|cut -f 2 -d ":"|tr -d "\t"|tr [:upper:] [:lower:])
SUDO=''
if (( $EUID != 0))
@@ -8,19 +8,25 @@
SUDO='sudo'
fi
-if [ $distro == "Fedora" ]
+if [ $distro == "fedora" ]
then
$SUDO dnf -y inst... | bash |
d_bash_8982 | ---
+++
@@ -1,4 +1,4 @@
-FILTER=$(auto_filter ID DomainName Status "(Aliases.Items||[''])|join(',',@)" -- $@)
+FILTER=$(auto_filter Id DomainName Status "(Aliases.Items||[''])|join(',',@)" -- $@)
DISTRIBUTIONS=$(awscli cloudfront list-distributions --output text --query "DistributionList.Items[$FILTER].[Id]")
sel... | bash |
d_bash_8983 | ---
+++
@@ -3,6 +3,8 @@
WORKING_DIR=`pwd`
ABS_DIR=$WORKING_DIR/ActionBarSherlock-4.2.0
ABS_LIBRARY_DIR=$WORKING_DIR/ActionBarSherlock-4.2.0/library
+
+export SDK=`grep sdk.dir local.properties | cut -d'=' -f2`
if [ ! -d $ABS_DIR ]; then
# Download ActionBarSherlock
@@ -14,7 +16,7 @@
# Prepare the Ac... | bash |
d_bash_8984 | ---
+++
@@ -30,8 +30,8 @@
# copy and rename manual
cp docu/refman.pdf $folder/Manual-$basename.pdf
-# copy autorun script into example6 folder
-cp $folder/helper/autorun-test.bat $folder/examples/Example6
+# copy autorun scripts into example6 folder
+cp $folder/helper/autorun*.bat $folder/examples/Example6
git... | bash |
d_bash_8985 | ---
+++
@@ -5,7 +5,7 @@
set -u
# Make a list of all non-vendored packages.
-PKGS=$(go list ./... | grep -v /vendor/ | grep -v /tools/ | grep -v /testhelpers/)
+PKGS=$(go list ./... | grep -v "/vendor\|/tools\|/testhelpers\|/releases\|/cmd")
PKGS_DELIM=$(echo $PKGS | sed -e 's/ /,/g')
echo "Check that the code... | bash |
d_bash_8986 | ---
+++
@@ -6,7 +6,8 @@
source ${DOTFILES_PATH}/lib/bash/path_variable.sh
-for INC_FILE in .; do
+echo "Load alias files"
+for INC_FILE in $(find ${DOTFILES_PATH}/alias |grep -v "all.sh"); do
echo "Load alias file: ${INC_FILE}"
. ${INC_FILE}
done | bash |
d_bash_8987 | ---
+++
@@ -10,6 +10,7 @@
chmod go-r ${SSH_KEY}
ssh-add ${SSH_KEY}
+mkdir -p ~/.ssh
ssh-keyscan github.com > ~/.ssh/known_hosts
cd bosh-cpi-src-out | bash |
d_bash_8988 | ---
+++
@@ -33,4 +33,5 @@
# Install profiler and tools
$CPANM Devel::NYTProf
+$CPANM Devel::Cover
$CPANM lib::core::only | bash |
d_bash_8989 | ---
+++
@@ -9,7 +9,7 @@
fi
testname="merge check for `pwd|sed "s/.*\///"`"
-echo "##teamcity[testStarted name='$testname' captureStandardOutput='<true/false>']"
+echo "##teamcity[testStarted name='$testname' captureStandardOutput='true']"
command="git --no-pager log --no-color $SINCE..$UNTIL"
# TODO Why do I ... | bash |
d_bash_8990 | ---
+++
@@ -18,3 +18,20 @@
# check for ${word} in ${string}
test "${string#*$word}" != "$string" && echo "$word found in $string"
+
+# parse arguments
+while [ $# -gt 0 ]; do
+ case $1 in
+ --help|-h)
+ log "Help here"
+ ;;
+ --arg)
+ if [ -z "$2" ]; then
+ ... | bash |
d_bash_8991 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-BASEDIR=$(dirname "$0")
+BASEDIR=$(dirname -- "$(readlink -f -- "${BASH_SOURCE}")")
mkdir -p $BASEDIR/logs
log_file=$(date "+%Y_%m_%d-%H_%M_%S") | bash |
d_bash_8992 | ---
+++
@@ -7,23 +7,20 @@
# Copyright (c) 2016 Jonathan 'theJPster' Pallant <github@thejpster.org.uk>
#
-MODE=debug
-#ARGS=-v for verbose mode
-ARGS=
+echo "Running xargo debug..."
+xargo build --example launchpad_blink
-if [ "$1" == "--release" ];
-then
- MODE=release
- ARGS=--release
-fi
+echo "Running ... | bash |
d_bash_8993 | ---
+++
@@ -7,8 +7,8 @@
return 1
fi
- if [[ "$1" =~ ^http[|s]:// ]]; then
- osascript -e "tell app 'Droplr' to shorten '$1'"
+ if [[ "$1" =~ ^https?:// ]]; then
+ osascript -e 'tell app "Droplr" to shorten "'"$1"'"'
else
open -ga /Applications/Droplr.app "$1"
fi | bash |
d_bash_8994 | ---
+++
@@ -17,7 +17,7 @@
git reset --hard
git clean -df
git merge --ff-only
- git submodule update --init --recursive
+ git submodule update --recursive
fi
echo ""
fi | bash |
d_bash_8995 | ---
+++
@@ -15,8 +15,7 @@
echo "${TRAVIS_TAG}"
return
else
- echo "${TRAVIS_BRANCH}"
- return
+ return 'latest'
fi
}
| bash |
d_bash_8996 | ---
+++
@@ -10,5 +10,5 @@
export PATH="${PHP_HOME}/bin:${PHP_HOME}/sbin:$PATH"
-${PHP_FPM} --fpm-config ${FWROOT}/config/php-fpm.conf -g ${TROOT}/deploy/php-fpm.pid
+$PHP_FPM --fpm-config ${FWROOT}/config/php-fpm.conf -g ${TROOT}/deploy/php-fpm.pid
${NGINX_HOME}/sbin/nginx -c ${TROOT}/deploy/nginx.conf | bash |
d_bash_8997 | ---
+++
@@ -7,7 +7,7 @@
pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony.com
-echo "Installing PHPUnit"
+echo "Installing PHPUnit - note this might take a while"
pear install phpunit/PHPUnit
echo "PHPUnit and Pear installed" | bash |
d_bash_8998 | ---
+++
@@ -16,7 +16,7 @@
exit 1
fi
-go get github.com/jmtuley/protobuf/{proto,protoc-gen-gogo,gogoproto}
+go get github.com/gogo/protobuf/{proto,protoc-gen-gogo,gogoproto}
pushd events
mkdir -p $TARGET/events | bash |
d_bash_8999 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
ROOT=$TRAVIS_BUILD_DIR/..
cd $ROOT
-git clone https://github.com/typetools/jsr308-langtools.git
+hg clone https://bitbucket.org/typetools/jsr308-langtools
cd jsr308-langtools/
./.travis-build.sh
| bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.