document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_22100
--- +++ @@ -16,9 +16,8 @@ COMPREPLY=( $(compgen -W "${data}" ${cur}) ) return 0 ;; accept-work) - git fetch --all COMPREPLY=( - $(compgen -W "$(git branch --remotes --list)" -- ${cur}) + $(compgen -W "$(git fetch --all &>/dev/nul...
bash
d_bash_22101
--- +++ @@ -6,7 +6,7 @@ # Build models rm -Rf build/ -mkdir -p build/full/ build/ecommerce/ build/address-book/ +mkdir -p build/ecommerce/ build/address-book/ bin/schema generate-types build/address-book/ tests/config/address-book.yml bin/schema generate-types build/ecommerce/ tests/config/ecommerce.yml
bash
d_bash_22102
--- +++ @@ -11,5 +11,5 @@ # Color scheme BASE16_SHELL=$HOME/.config/nvim/plugged/base16-shell/ [ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)" -alias darkbg="base16_tomorrow-night" -alias lightbg="base16_tomorrow" +alias darkbg="base16_gruvbox-dark-hard" +alias ...
bash
d_bash_22103
--- +++ @@ -14,16 +14,16 @@ source /usr/local/bin/virtualenvwrapper.sh # Install IPython globally -sudo pip install ipython -sudo pip install ipdb +pip install ipython +pip install ipdb # Instal IPython notebook dependencies -sudo pip install pyzmq -sudo pip install jinja2 -sudo pip install tornado +pip instal...
bash
d_bash_22104
--- +++ @@ -19,6 +19,7 @@ --cap-add 'SETGID' \ --cap-add 'SETUID' \ --cap-add 'SYS_CHROOT' \ + --cap-add 'SYS_RESOURCE' \ --net='bridge' \ --name="${CNAME}" \ --hostname="${CNAME}" \
bash
d_bash_22105
--- +++ @@ -12,7 +12,7 @@ git clone https://github.com/galaxyproject/galaxy.git $galaxy_dir fi -cp -r tools/ $galaxy_dir/tools +cp -r tools/ $galaxy_dir/ # Prepare galaxy tools ./src/prepare_galaxy_tools.sh $galaxy_dir
bash
d_bash_22106
--- +++ @@ -3,6 +3,5 @@ if [ "$TRAVIS_BRANCH" = 'deploy' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then mvn deploy \ -DskipTests \ - -X \ --settings deployment/settings.xml fi
bash
d_bash_22107
--- +++ @@ -22,5 +22,6 @@ export S3_PORT=${s3_endpoint_port} pushd ${release_dir} > /dev/null + go get ./vendor/github.com/onsi/ginkgo/ginkgo ginkgo -r -focus="S3 COMPATIBLE" integration/ popd > /dev/null
bash
d_bash_22108
--- +++ @@ -12,4 +12,4 @@ -v "$local_config_dir":/srv/query-coordinator/configs \ -e SERVER_CONFIG="/srv/query-coordinator/configs/application.conf" \ -p 6030:6030 \ - -t "$image" + "$image"
bash
d_bash_22109
--- +++ @@ -19,6 +19,6 @@ const ( EOH -sed -n 's/^[ ]*\(SIG[A-Z0-9][A-Z0-9]*\).*/ \1 = UnixSignal(syscall.\1)/p' "$1" +sed -n 's/^[ ]*\(SIG[A-Z0-9][A-Z0-9]*\)[ ].*/ \1 = UnixSignal(syscall.\1)/p' "$1" echo ")"
bash
d_bash_22110
--- +++ @@ -29,5 +29,6 @@ install_npm_pkg ts-node install_npm_pkg esbuild install_npm_pkg jest +install_npm_pkg npm-check-updates install_node_version 12.16.3 --reinstall-packages-from=default
bash
d_bash_22111
--- +++ @@ -1,9 +1,9 @@ #!/bin/bash -mvn package +mvn -Djava.awt.headless=true package pushd angularjs-portal-frame -mvn tomcat7:redeploy +mvn -Djava.awt.headless=true tomcat7:redeploy popd pushd angularjs-portal-home -mvn tomcat7:redeploy +mvn -Djava.awt.headless=true tomcat7:redeploy popd
bash
d_bash_22112
--- +++ @@ -1,7 +1,27 @@ #!/bin/bash + +WAIT_SERVICE_READY=10 + +function check_service(){ + status=$($WORKDIR/control status) + echo $status | grep -q "stoped" + if [ $? -eq 0 ] ; then + return 1 + else + return 0 + fi +} + tar -zxf $PACKDIR/$PACKFILE -C $WORKDIR cp $CONFIGDIR/$CONFIGFILE $WORKDIR/fram...
bash
d_bash_22113
--- +++ @@ -17,13 +17,14 @@ zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # History -export HISTSIZE=1007 +export HISTSIZE=25000 export SAVEHIST=$HISTSIZE export HISTFILE="$HOME/.zsh_history" -setopt hist_ignore_all_dups # Ignore duplicate commands -setopt hist_ignore_space # Ignore commands ...
bash
d_bash_22114
--- +++ @@ -1,5 +1,5 @@ # Find SSH agent socket file -ssh_sock_file=$(compgen -G "/tmp/ssh-*/agent.*") +ssh_sock_file=$(compgen -G "/tmp/ssh-*/agent.*" | head -n 1) if [[ -z $SSH_AUTH_SOCK && -S $ssh_sock_file ]]; then export SSH_AUTH_SOCK=$ssh_sock_file fi
bash
d_bash_22115
--- +++ @@ -3,7 +3,7 @@ # print the error to stderr prefixed with caller info terr () { - echo "$caller:" $@ >&2 + echo "$caller: $@" >&2 } # get variable values and functions for testing
bash
d_bash_22116
--- +++ @@ -9,6 +9,7 @@ autocomplete-paths \ autocomplete-python \ color-picker \ + editorconfig \ file-icons \ git-projects \ hex \
bash
d_bash_22117
--- +++ @@ -7,6 +7,7 @@ # Issue for MacOS: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib if [ $(uname) == "Darwin" ]; then + brew unlink python@2 brew upgrade fi
bash
d_bash_22118
--- +++ @@ -1,18 +1,25 @@ -#!/bin/sh +#!/bin/bash SCRIPTLOC=$(readlink -f "$0") FOLDERLOC=$(dirname "$SCRIPTLOC") + +SettingsLoc="$FOLDERLOC/Settings" cd "$FOLDERLOC" git pull -# remove package.json from vscode extensions, as it blocks pulling updates -files=$(find "Settings/vscode/extensions/"*/package.jso...
bash
d_bash_22119
--- +++ @@ -3,7 +3,7 @@ DOMAIN=tls-o-matic.com mkdir -p ca/ec mkdir -p ca/ec/private -mkdir -p ca/ec/newcerts ca/ec/certs +mkdir -p ca/ec/newcerts ca/ec/certs ca/ec/request cd ca/ec echo 1000 > serial touch index.txt
bash
d_bash_22120
--- +++ @@ -12,7 +12,7 @@ cat > /home/$USERNAME/.ssh/config <<"EOL" Host falcon.jaspersoft.com HostName falcon.jaspersoft.com - IdentityFile ~/.ssh/<private_key> + IdentityFile ~/.ssh/id_dsa EOL chown $USERNAME:$USERNAME /home/$USERNAME/.ssh/config
bash
d_bash_22121
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash ################################################################################ # symlink_dotfiles.sh @@ -9,6 +9,13 @@ set -e # Terminate script if anything exits with a non-zero value set -u # Prevent unset variables + +fancy_echo() { + local fmt="$1"; shift ...
bash
d_bash_22122
--- +++ @@ -1,4 +1,6 @@ #/bin/sh + +set -x -e if [ "x$TEST_DOC" == "xYES" ]; then python ./doc/scripts/docgen.py --test
bash
d_bash_22123
--- +++ @@ -1,5 +1,5 @@ _activate_rvm () { - unalias rvm + alias rvm &> /dev/null && unalias rvm # rvm appends this to .bashrc: PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting @@ -10,3 +10,6 @@ # lazy load alias rvm='_activate_rvm; rvm' + +# Turn it on so we have gem-installed utils in $PATH....
bash
d_bash_22124
--- +++ @@ -1,13 +1,13 @@ cd $WORKSPACE -echo -e "\n\nnpm install -g bower" +echo "\n\nnpm install -g bower" sudo npm install -g bower -echo -e "\n\nnpm install -g grunt-cli" +echo "\n\nnpm install -g grunt-cli" sudo npm install -g grunt-cli -echo -e "\n\nbower install" +echo "\n\nbower install" sudo bower instal...
bash
d_bash_22125
--- +++ @@ -13,7 +13,7 @@ } # Only back up /Users -for dir_path in ls -d /*/; do +for dir_path in /*/; do if [[ "$dir_path" != '/Users/' ]]; then exclude_dir "$dir_path" fi
bash
d_bash_22126
--- +++ @@ -19,8 +19,8 @@ # Install Puppet labs repository rpm -ivh ${REPO_URL} >/dev/null -# Install Puppet agent package... -yum install -y puppet-agent +# Install Puppet agent package: Puppet v4.3.1 +yum install -y puppet-agent-1.3.2-1.el7.x86_64 # Allow call Puppet by sudo echo "Defaults secure_path = /sb...
bash
d_bash_22127
--- +++ @@ -5,6 +5,16 @@ if [ ! -d fixtures ]; then echo "Run create_fixtures.sh to generate fixtures" + exit 1 +fi + +if [ $# -ne 1 ]; then + echo "Usage: $0 TRANSFER_MODE REQUEST_TYPE" + exit 1 +fi + +if [ "$1" != "octet" ] && [ "$1" != "netascii" ]; then + echo "Transfer mode must be 'octet' or...
bash
d_bash_22128
--- +++ @@ -26,7 +26,7 @@ :q! EOF - nvim -s "${file_cmd}" "${file_in}" + ${EDITOR} -s "${file_cmd}" "${file_in}" rm "${file_cmd}"
bash
d_bash_22129
--- +++ @@ -1,18 +1,13 @@ # -# enable gzipping of images +# Gzip the final image # -GZIPIMAGE=$1 - -# compress the image, since it's easier to SCP around this way gzip_image() { - if [ -n "${GZIPIMAGE}" ]; then - echo "Compressing image" - if [ -f $IMG.gz ]; then - rm $IMG.gz - ...
bash
d_bash_22130
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -set -e +set -ex source ./script/ci/includes.sh echo "--- Verifying branch is based on current master"
bash
d_bash_22131
--- +++ @@ -21,4 +21,4 @@ ;; esac -echo "##[add-path]$PWD/hub/bin" +echo "$PWD/hub/bin" >> $GITHUB_PATH
bash
d_bash_22132
--- +++ @@ -1,3 +1,6 @@ +# Source .bashrc because --init-file doesn't support it +. ~/.bashrc + IN_COMMAND_EXECUTION="1" prompt_start() { printf "\033]133;A\007" @@ -48,5 +51,12 @@ } update_prompt -PROMPT_COMMAND=${PROMPT_COMMAND:+"$PROMPT_COMMAND; "}'precmd' +prompt_cmd() { + ${ORIGINAL_PROMPT_COMMAND} + ...
bash
d_bash_22133
--- +++ @@ -7,4 +7,4 @@ fi # This will build, package and upload the app to GitHub. -build --win --mac -p always +node_modules/.bin/build --win --mac -p always
bash
d_bash_22134
--- +++ @@ -3,7 +3,7 @@ #Control Relay module USB with Crelay # ########################################### readonly libs='libftdi1 libftdi-dev libhidapi-libusb0 libhidapi-dev libusb-1.0-0 libusb-1.0-0-dev perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python...
bash
d_bash_22135
--- +++ @@ -12,6 +12,8 @@ # There's no good reason this should be set. But unset it anyways. unset DEVSHELL_PROJECT_ID gcloud config set project "$PROJECT_ID" + # Change directory to ./scripts + cd $(dirname "$0") ./deploy_api.sh ./deploy_app.sh response=$(./query_api.sh BOS quiet)
bash
d_bash_22136
--- +++ @@ -1,11 +1,10 @@ #! /bin/sh -# ln -s $DOTFILES/bootstrap_gitconfig.sh .bootstrap_gitconfig.sh -# then in .zshrc ./.bootstrap_gitconfig.sh +ln -s $DOTS/bootstrap_gitconfig.sh .bootstrap_gitconfig.sh # aliases managed by git .aliases file and zsh git plugin -# git config --global user.name "Michaux Kelle...
bash
d_bash_22137
--- +++ @@ -9,7 +9,7 @@ echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.11_9.tar.gz" ;; java16) - echo "https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16%2B36/OpenJDK16-jdk_x64_linux_hotspot_16_36.tar....
bash
d_bash_22138
--- +++ @@ -11,12 +11,15 @@ cp -a ~/.m2/repository/lein-voom/lein-voom/. artifacts/lein-voom/lein-voom/. || true docker build -t lein-test:${ver} --build-arg LEIN_VER=${ver} --build-arg VOOM_VER=${LEIN_VOOM_VERSION} . for test in $LEIN_TESTS; do - docker run -i --rm \ - --name lei...
bash
d_bash_22139
--- +++ @@ -21,4 +21,4 @@ for s in $(seq 0 500 "$(get_number_of_users)"); do get_users "$s" -done +done | sort --field-separator=@ --key=2 --key=1
bash
d_bash_22140
--- +++ @@ -23,6 +23,7 @@ install_cask mamp rm -rf '/Applications/MAMP PRO' install_cask keybase +install_cask postman echo "Installing Quick Look plugins..."
bash
d_bash_22141
--- +++ @@ -12,7 +12,7 @@ rm -rf $DIR # Clone the current repo into temp folder -git clone git@git.squareup.com:square/dagger.git $DIR +git clone git@github.com:square/dagger.git $DIR # Move working directory into temp folder cd $DIR @@ -21,13 +21,14 @@ git checkout -t origin/gh-pages # Delete everything ...
bash
d_bash_22142
--- +++ @@ -18,4 +18,7 @@ # Install gems gem install bundler gem install builder +chef gem install knife-ec2 +chef gem install knife-solo +gem install knife-solo_data_bag gem install tmuxinator
bash
d_bash_22143
--- +++ @@ -1 +1,4 @@ export EDITOR='vim' + +# http://unix.stackexchange.com/questions/197839/why-does-exporting-vim-as-editor-in-zsh-disable-keyboard-shortcuts +set -o emacs
bash
d_bash_22144
--- +++ @@ -3,7 +3,7 @@ # Zip it rm -f antlr4-cpp-runtime-source.zip zip -r antlr4-cpp-runtime-source.zip "README.md" "cmake" "demo" "runtime" "CMakeLists.txt" "License.txt" "deploy-macos.sh" "deploy-source.sh" "deploy-windows.cmd" "VERSION" \ - -X -x "*.DS_Store*" "antlrcpp.xcodeproj/xcuserdata/*" "*Build*" "*De...
bash
d_bash_22145
--- +++ @@ -5,6 +5,8 @@ set -o pipefail # error on unset variables set -u +# print commands +set -x MFLAGS=${*:-} # MFLAGS are the parent make call's flags (see Makefile) SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" @@ -15,8 +17,8 @@ VOLUME_OPTIONS=":Z" fi -echo docker run \ +dock...
bash
d_bash_22146
--- +++ @@ -3,13 +3,13 @@ echo ">>> Installing Elasticsearch" # Set some variables -ELASTICSEARCH_VERSION=1.7.1 # Check http://www.elasticsearch.org/download/ for latest version +ELASTICSEARCH_VERSION=2.0.0 # Check http://www.elasticsearch.org/download/ for latest version # Install prerequisite: Java # -qq im...
bash
d_bash_22147
--- +++ @@ -7,6 +7,7 @@ # install a bunch of packages # in order of each line: # spotify + deps for local play +# skype + other instant messages client # replace vi with vim # google drive sync # discord + font for discord icons @@ -16,7 +17,7 @@ trizen -S --needed --noconfirm \ spotify zenity ffmpeg0.10 \ ...
bash
d_bash_22148
--- +++ @@ -20,3 +20,15 @@ ./bin/sshk-update cd - >/dev/null fi + +if [ -d ~/.ssh ]; then + cd ~/.ssh + git remote set-url origin git@github.com:lightster/.ssh.git + cd - >/dev/null +fi + +if [ -d ~/.dotfiles ]; then + cd ~/.dotfiles + git remote set-url origin git@github.com:lightster/.dotf...
bash
d_bash_22149
--- +++ @@ -1,3 +1,8 @@ wget -O ~/.vocab "http://bit.ly/1WinY8l" -echo 'chmod +x ~/.vocab' >> ~/.bashrc -echo '~/.vocab' >> ~/.bashrc +if [[ "$OSTYPE" == "linux-gnu" ]]; then + OSBASHRC=bashrc +elif [[ "$OSTYPE" == "darwin"* ]]; then + OSBASHRC=bash_profile +fi +echo 'chmod +x ~/.vocab' >> ~/.$OSBASHRC +echo '~/.v...
bash
d_bash_22150
--- +++ @@ -18,4 +18,5 @@ cd linuxsetup -make +make -j 4 +make all -j 4
bash
d_bash_22151
--- +++ @@ -30,12 +30,12 @@ -Dgpg.passphrase="" \ -DaltDeploymentRepository="staging::default::file://$PWD/staging" -git init --bare staging.git - git tag -u "$GPG_KEYNAME" -m "Jumi $RELEASE_VERSION" -m "$CHANGELOG" "$TAG" "$GO_REVISION_SOURCES" -git push staging.git "$TAG" ruby scripts/bump-release-c...
bash
d_bash_22152
--- +++ @@ -13,7 +13,7 @@ git clone "https://$GH_TOKEN@github.com/proteus-h2020/proteus-charts.git" --branch=gh-pages gh-pages cd gh-pages -cp -R $CURRENT_DIR/docs . +cp -Rf $CURRENT_DIR/docs . git add -A . git commit -m "[DOCS-$TRAVIS_BUILD_NUMBER] Generate JSDoc site (#$TRAVIS_COMMIT)." git push -q origin gh...
bash
d_bash_22153
--- +++ @@ -18,4 +18,9 @@ done echo "Install the composer global package" -composer g install +if type "php" > /dev/null 2>&1; then + composer g install +else + echo "php command not does not exist!" + echo "Skip the composer global install." +fi
bash
d_bash_22154
--- +++ @@ -4,6 +4,7 @@ if [[ $REV = *"ARCH"* ]]; then echo "ArchLinux" sudo pacman -S --needed docker + sudo systemctl enable docker.service else echo "Debian"
bash
d_bash_22155
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash set -ex pushd ~/ -wget https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-osx-x86_64.zip -unzip protoc-3.5.1-osx-x86_64.zip +wget https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip +unzip protoc-3.5.1-linux-x86_64.zip ...
bash
d_bash_22156
--- +++ @@ -9,11 +9,11 @@ BSDINIT_URL="https://github.com/pellaeon/bsd-cloudinit/archive/master.tar.gz" -[ ! -x "/usr/local/bin/python2.7" ] && { +[ ! `which python2.7` ] && { echo 'python2.7 Not Found !' exit 1 } -PYTHON="/usr/local/bin/python2.7" +PYTHON=`which python2.7` fetch -o - $BSDINIT_URL | t...
bash
d_bash_22157
--- +++ @@ -25,5 +25,5 @@ echo 480 echo Start end2end test runner -chimp --ddp=http://localhost:3100 --mocha --path=tests/end2end --browser=phantomjs -- $TEST +chimp --ddp=http://localhost:3100 --mocha --path=tests/end2end --browser=phantomjs -- $TEST tests/end2end/setup.js
bash
d_bash_22158
--- +++ @@ -9,4 +9,4 @@ rake cartodb:db:create_user EMAIL="${EMAIL}" PASSWORD="${PASSWORD}" SUBDOMAIN="${USERNAME}" rake cartodb:db:set_unlimited_table_quota["${USERNAME}"] rake cartodb:db:create_new_organization_with_owner ORGANIZATION_NAME="${ORGANIZATION_NAME}" USERNAME="${USERNAME}" ORGANIZATION_SEATS=100 ORGA...
bash
d_bash_22159
--- +++ @@ -2,7 +2,7 @@ # Generate a changelog for all PRs after the Lerna migration (git tag v7.7.0) # See docs at https://github.com/lerna/lerna-changelog -lerna-changelog --from v7.7.0 > CHANGELOG.md +lerna-changelog --from 7.7.0 --next-release-from-metadata > CHANGELOG.md # Add the pre-Lerna changelog to t...
bash
d_bash_22160
--- +++ @@ -13,9 +13,16 @@ # Let test server know we should allow testing. export PHP_CURL_CLASS_TEST_MODE_ENABLED="yes" +# Determine which phpunit to use. +if [[ -f "vendor/bin/phpunit" ]]; then + phpunit_to_use="vendor/bin/phpunit" +else + phpunit_to_use="phpunit" +fi + # Run tests. -phpunit --version -p...
bash
d_bash_22161
--- +++ @@ -5,4 +5,5 @@ echo root:toor | chpasswd useradd -m -G users,wheel -s /bin/bash chris echo chris:changeme | chpasswd +echo 'chris ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/chris EOF
bash
d_bash_22162
--- +++ @@ -5,13 +5,10 @@ ansible-playbook site.yml --become-user=ubuntu --vault-password-file /keys/grits_vault_password --private-key /var/lib/jenkins/.ssh/id_rsa --tags niam #Upload new docker image to S3 -ssh -i /var/lib/jenkins/.ssh/id_rsa ubuntu@niam.eha.io " - sudo rm /tmp/niam.tar.gz - sudo docker save ...
bash
d_bash_22163
--- +++ @@ -21,6 +21,7 @@ sudo -E $DEST/heat/heat_integrationtests/prepare_test_network.sh cd $DEST/tempest +sudo sed -i -e '/group_regex/c\group_regex=heat_integrationtests\\.api\\.test_heat_api(?:\\.|_)([^_]+)' .testr.conf sudo tempest run --regex heat_integrationtests sudo -E $DEST/heat/heat_integrationtes...
bash
d_bash_22164
--- +++ @@ -6,12 +6,12 @@ alias files='dpkg -L' alias selections='dpkg --get-selections' -alias install='sudo apt-get install' -alias reinstall='sudo apt-get install --reinstall' +alias install='sudo apt install' +alias reinstall='sudo apt install --reinstall' -alias update='sudo apt-get update' -alias upgrade=...
bash
d_bash_22165
--- +++ @@ -6,5 +6,6 @@ sudo shell_manager clean sudo apt-get install -y --force-yes cyberstakes-online-2014 +sudo apt-get clean sudo shell_manager deploy -b cyberstakes-online-2014 -n $INSTANCES
bash
d_bash_22166
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash set -e -version="20.10.13" +version="20.10.14" echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz";
bash
d_bash_22167
--- +++ @@ -1,5 +1,4 @@ #!/bin/sh -# //TODO Investigate why the /_/. is being highlighted as if it's a syntax error (yet appears to work fine); this also applies to install script (but no TODO there because lazy) # It's doing a sed replacement. Given file path 'i' replace any _ with . for i in ${PWD}/config.d/_...
bash
d_bash_22168
--- +++ @@ -15,7 +15,6 @@ handbrake hex-fiend iterm2 - java jiggler kap #mactex @@ -28,8 +27,7 @@ qlstephen qlvideo rectangle - sonos - soundflower + homebrew/cask-drivers/sonos spotify #texpad viscosity
bash
d_bash_22169
--- +++ @@ -7,9 +7,9 @@ export LESSHISTFILE=- # swiftenv -which swiftenv >/dev/null && eval "$(swiftenv init -)" +which swiftenv >/dev/null && eval "$(swiftenv init --no-rehash -)" # rbenv -which rbenv >/dev/null && eval "$(rbenv init -)" +which rbenv >/dev/null && eval "$(rbenv init --no-rehash -)" # pyenv -wh...
bash
d_bash_22170
--- +++ @@ -3,6 +3,8 @@ # https://docs.docker.com/compose/install/#install-compose-on-linux-systems # needs root apt install docker.io curl +echo "Adding current user to 'docker' group, log out and in again for this to take effect. You'll then be able to run docker commands without sudo." +adduser $USER docker do...
bash
d_bash_22171
--- +++ @@ -9,10 +9,9 @@ # alias gdv='git diff -w "$@" | vim -R -' alias gfgr='git fetch && git rebase' # alias gits="git status" -# alias gl='git log --graph --abbrev-commit' -# alias gll='gl --pretty=oneline' -# alias glg="gl --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --date=rel...
bash
d_bash_22172
--- +++ @@ -17,7 +17,7 @@ # List direcory contents alias lsa='ls -lah' -#alias l='ls -la' +alias l='ls -la' alias ll='ls -l' alias la='ls -A' alias sl=ls # often screw this up
bash
d_bash_22173
--- +++ @@ -1,5 +1,5 @@ add_tar_apt() { - curl -fsSL http://ftp.debian.org/debian/pool/main/t/tar/tar_1.29-1_amd64.deb -o /tmp/tar.deb && \ + curl -fsSL http://ftp.debian.org/debian/pool/main/t/tar/tar_1.29b-1.1_amd64.deb -o /tmp/tar.deb && \ dpkg -i /tmp/tar.deb && rm -f /tmp/tar.deb }
bash
d_bash_22174
--- +++ @@ -3,7 +3,7 @@ case "$1" in java8) - echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u212-b04/OpenJDK8U-jdk_x64_linux_hotspot_8u212b04.tar.gz" + echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u222-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u222b...
bash
d_bash_22175
--- +++ @@ -5,5 +5,12 @@ # Starts figwheel so changes are immediately loaded into the running browser window and appear # without requiring a page reload. -./script/common/build.sh hot-reload +if which rlfe; then + WRAPPER='rlfe ' +elif which rlwrap; then + WRAPPER='rlwrap ' +else + WRAPPER='' +fi +exec bash...
bash
d_bash_22176
--- +++ @@ -30,6 +30,7 @@ echo "Removing tests recursively" find "${path}"/.. -type d -iname "test*" -print0 | xargs -0 rm -rf +find "${path}"/.. -type f -iname "test*.js" -print0 | xargs -0 rm -rf echo "Removing empty files and directories" find "${path}"/.. -empty -print0 | xargs -0 rm -rf
bash
d_bash_22177
--- +++ @@ -1,7 +1,8 @@ #!/bin/bash -absval= +#absval= +# Advanced Bash Scripting Guide, p. 699 abs () { if [ "$1" -lt 0 ] @@ -29,10 +30,18 @@ # Clean the produced files from testing signed multiplications for ((muls=${LOLIMIT2} ; muls <= ${HILIMIT2} ; muls++)) do - $(abs $muls) + abs $muls rm -rf k...
bash
d_bash_22178
--- +++ @@ -7,5 +7,5 @@ export GOROOT=`go env GOROOT` export GOPATH=~/dev/go else - [[ $verbose ]] && e_error " .. no Go installation found" + [[ $verbose ]] && df_error " .. no Go installation found" fi
bash
d_bash_22179
--- +++ @@ -7,13 +7,13 @@ SKIP_PBUILDER=true ## Pick which one to build -- the Asheesh fork, or the Alioth packaging -if [[ "$USE_ALIOTH" -eq "true" ]] ; then +if [[ "$USE_ALIOTH" == "true" ]] ; then GIT_URL="https://alioth.debian.org/anonscm/git/collab-maint/alpine.git" else GIT_URL="https://github.co...
bash
d_bash_22180
--- +++ @@ -12,6 +12,8 @@ cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 \ + -DCMAKE_INSTALL_PREFIX=${PREFIX}\ + -DCMAKE_PREFIX_PATH=${PREFIX}\ -DBUILD_SHARED_LIBS=ON . make -j${CPU_COUNT}
bash
d_bash_22181
--- +++ @@ -21,13 +21,13 @@ ( echo "Artifacts" echo "" - echo " sha256 file" + echo " sha256 file" ) >> $release_dir/notes.md for file in $( meta4 files --metalink=$metalink_path ); ...
bash
d_bash_22182
--- +++ @@ -1,14 +1,40 @@ #!/usr/bin/env bash +html="make -C docs html" +linkcheck=$(make -C docs linkcheck | grep 'broken') +grammar="write-good `find ./docs -not \( -path ./docs/drafts -prune \) -name '*.rst'` --passive --so --no-illusion --thereIs --cliches" + +if [[ $TRAVIS != "" ]]; then + OUTPUT=$TRAVIS_BU...
bash
d_bash_22183
--- +++ @@ -11,7 +11,7 @@ config=$3 src_id=$(docker inspect -f '{{ .Id }}' "$src") -dest_id=$(cat /app/empty.tar | docker import - "$dest") +dest_id=$(cat /app/empty.tar | docker import -) jq ".config=$config" "$DOCKER_ROOT/graph/$dest_id/json" > "$DOCKER_ROOT/graph/$dest_id/json.tmp" mv "$DOCKER_ROOT/graph/$...
bash
d_bash_22184
--- +++ @@ -18,6 +18,7 @@ # development tools brew install git +brew install git-flow brew install hub brew install macvim --override-system-vim brew install reattach-to-user-namespace @@ -27,10 +28,18 @@ brew install nvm brew install z brew install markdown +brew install midnight-commander brew install ...
bash
d_bash_22185
--- +++ @@ -2,7 +2,7 @@ PACKAGE_NAME=${EXECUTABLE_NAME:?} TMP=$(mktemp -d)/$PACKAGE_NAME BINDIR=$TMP/bin -SHAREDIR=$TMP/share +SHAREDIR=$TMP/share/$PACKAGE_NAME ZIPFILE=$TMP/${EXECUTABLE_NAME:?}.zip INSTALLSH=scripts/install.sh LICENSE=LICENSE
bash
d_bash_22186
--- +++ @@ -1,13 +1,12 @@ #!/bin/bash -# Exit immediately if anything goes wrong, instead of making things worse. -. "$REPO_ROOT"/bootstrap/shared/shared_functions.sh +source "$REPO_ROOT"/bootstrap/shared/shared_functions.sh load_configs -if [[ -n "$SHARED_PROXY_SETUP" ]] || { +[ -n "$SHARED_PROXY_SETUP" ] || {...
bash
d_bash_22187
--- +++ @@ -31,6 +31,8 @@ curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C /opt/homebrew fi +export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH" + brew bundle echo
bash
d_bash_22188
--- +++ @@ -27,7 +27,7 @@ ##Update node modules echo " - Starting npm install" cd "$DEPLOYDIR" -npm install; +npm install --production; echo " - Finished npm update" ##Update bower deps
bash
d_bash_22189
--- +++ @@ -13,6 +13,7 @@ export MONGO_URL=$(snapctl get mongo-url) export MONGO_OPLOG_URL=$(snapctl get mongo-oplog-url) export ROOT_URL=$(snapctl get siteurl) + export REG_TOKEN=$(snapctl get reg-token) # We know that mongodb IS running # Let's save the PID someplace
bash
d_bash_22190
--- +++ @@ -1,6 +1,12 @@ #!/bin/sh backupdir=~/Backups/ + +if [[ $# -eq 0 ]] ; then + echo 'Usage: tidyup <dir1> <dir2> ... <dirN>' + echo 'Tidies ~/<dirN> to ~/Backups/<dirN>' + exit 0 +fi for var in "$@" do @@ -9,7 +15,7 @@ if [ -d "$source" ] ; then destination=$backupdir$var mkdir ...
bash
d_bash_22191
--- +++ @@ -6,6 +6,7 @@ echo echo 'removing unneeded files and cache...' yum -y clean all +rm -rf /var/cache/yum find / -iname VBoxGuestAdditions.iso -delete rm -rf /tmp/rubygems-*
bash
d_bash_22192
--- +++ @@ -1,2 +1,6 @@ -# Install htop -sudo apt-get install htop -y +# Install useful utils +sudo apt-get install htop curl git build-essential -y + +# Install Node.js +curl -sL https://deb.nodesource.com/setup | sudo bash - +sudo apt-get install nodejs build-essential -y
bash
d_bash_22193
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -euo pipefail -cd /usr/local +cd ${APP_DIR}/venv git clone https://github.com/HerculesJack/assignment-1910 cd assignment-1910 bash install.sh
bash
d_bash_22194
--- +++ @@ -1,10 +1,17 @@ #!/bin/bash +region=$(aws configure get region); userArn=$(aws iam get-user --query User.Arn); baseArn=${userArn:1:26}; +accountId=${userArn:14:10}; + +sed -e s/\<region\>/$region/g -e s/\<accountid\>/$accountId/g alsl-ec2-launch-policy.json > tmp.json aws iam create-user --user-name...
bash
d_bash_22195
--- +++ @@ -1,6 +1,6 @@ install_tar_debian() { curl -fsSL http://ftp.debian.org/debian/pool/main/t/tar/tar_1.29-1_amd64.deb -o /tmp/tar.deb && \ - dpkg -i /tmp/tar.deb + dpkg -i /tmp/tar.deb && rm -f /tmp/tar.deb } install_tar_alpine() {
bash
d_bash_22196
--- +++ @@ -1,16 +1,26 @@ #!/bin/sh +function runcmd { + echo '' + echo "$1 : " + $1 2> /dev/null + echo '' + echo '#######################################################################' +} + for i in `oc get pods | cut -f 1 -d ' ' | grep -v NAME` do - echo "LOGS FOR $i" - oc logs $i 2> /dev...
bash
d_bash_22197
--- +++ @@ -10,7 +10,7 @@ ( VERSION="287" - ${RESOURCES_FETCH_URL_SCRIPT} http://last.cbrc.jp/last/index.cgi/archive/${VERSION}.zip + ${RESOURCES_FETCH_URL_SCRIPT} http://last.cbrc.jp/last/index.cgi/archive/${VERSION}.zip ${VERSION}.zip ...
bash
d_bash_22198
--- +++ @@ -7,8 +7,6 @@ brew cask install iterm2 brew cask install atom -brew cask install sourcetree -brew cask install gitter brew cask install structurer brew cask install toggldesktop brew cask install dockertoolbox @@ -19,7 +17,6 @@ brew cask install cyberduck brew cask install vlc brew cask install tr...
bash
d_bash_22199
--- +++ @@ -7,7 +7,7 @@ ROOT=${QTRPI_ROOT-/opt/qtrpi} TARGET_DEVICE=${QTRPI_TARGET_DEVICE-'linux-rasp-pi2-g++'} -QT_VERSION=${QTRPI_QT_VERSION-'5.7'} +QT_VERSION=${QTRPI_QT_VERSION-'v5.7.0'} TARGET_HOST=$QTRPI_TARGET_HOST case $TARGET_DEVICE in
bash