document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_1300
--- +++ @@ -5,7 +5,7 @@ mkdir .working cat src/uk/co/tombooth/pollock.cljs | python tools/clojure-to-markdown.py > .working/out.md -pandoc --mathjax --template=tools/pandoc-template.html -s .working/out.md -o .working/index.html +pandoc --mathjax --template=tools/pandoc-template.html -s .working/out.md | sed -E '...
bash
d_bash_1301
--- +++ @@ -4,6 +4,11 @@ nc -z -w3 192.168.1.1 8123 && export http_proxy="http://192.168.1.1:8123" chmod 755 /vagrant/package/package.sh +apt-get update -yq +apt-get install -yq build-essential + +# Ensure we can get to fpm +export PATH=$PATH:/var/lib/gems/1.8/bin /vagrant/package/package.sh /vagrant/substrate...
bash
d_bash_1302
--- +++ @@ -9,7 +9,8 @@ cp -fR ../scripts/* . cp -fR ../src/*.py var/lib/stackops/ -tar cvfz ../dist/stackops-agent.tgz * +tar cvf ../dist/stackops-agent.tar * +gzip ../dist/stackops-agent.tar cd .. rm -fR build
bash
d_bash_1303
--- +++ @@ -5,11 +5,11 @@ # This script requires `tree` to be installed. # Print header -echo '= Wiki contents =' +echo '= Table of contents =' echo cd "$1" -while read -r line; do +while IFS='' read -r line; do # Assuming there are no files with ── in their name. filename="$(<<<"$line" sed -r 's/.*── (...
bash
d_bash_1304
--- +++ @@ -3,7 +3,7 @@ git clone https://github.com/geramirez/concourse-filter &>/dev/null pushd concourse-filter go build &>/dev/null - CREDENTIAL_FILTER_PARAMS=STACKS,DEPLOYMENT_NAME,SSH_AGENT_PID,CF_EDGE,IAAS,RUBYGEM_MIRROR,BOSH_LITE_NAME,AZURE_BOSH_USER,BOSH_USER,LANGUAGE,CI_CF_USERNAME + CREDENTIAL_FILTE...
bash
d_bash_1305
--- +++ @@ -1,9 +1,12 @@ #!/usr/bin/env bash docker login -u $DOCKER_USER -p $DOCKER_PASS + export REPO=wwwthoughtworks/build-your-own-radar -export TAG=latest -export COMMIT=${CIRCLE_SHA1:0:8} -docker build -f Dockerfile -t $REPO:$COMMIT . -docker tag $REPO:$COMMIT $REPO:$TAG -docker push $REPO +export TAG=${CI...
bash
d_bash_1306
--- +++ @@ -5,7 +5,7 @@ #basic shell setup to mimic ubuntu export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ " -LSCOLORS='d'; export LSCOLORS +LSCOLORS=d; export LSCOLORS export PAGER=less export EDITOR=vim alias grepc="grep -nr --color=always"
bash
d_bash_1307
--- +++ @@ -5,8 +5,10 @@ # Setting --hostname-override is a workaround for https://github.com/kubernetes/kubeadm/issues/653 # Setting --cloud-provider is a workaround for https://github.com/kubernetes/kubeadm/issues/620 +# Setting --authentication-token-webhook allows authenticated Prometheus access to the Kubele...
bash
d_bash_1308
--- +++ @@ -6,4 +6,19 @@ git fetch analyzer git merge --no-commit -s recursive -X theirs analyzer/accounting-analyzer make distclean -./build_analyzer.sh + +echo Building Analyzer +if [ ! -d "asm" ]; then + echo Configuring Analyzer + mkdir asm + cd asm && emconfigure ../configure --disable-multithread --disabl...
bash
d_bash_1309
--- +++ @@ -4,9 +4,13 @@ echo "starting directory: `pwd`" -BIN=$( cd "$( dirname "$0" )" && pwd ) +INPUT_DIR=$1 +OUTPUT_DIR=$2 -echo "BIN=${BIN}" +echo "input directory: ${INPUT_DIR}" +echo "output directory: ${OUTPUT_DIR}" +#BIN=$( cd "$( dirname "$0" )" && pwd ) +#echo "BIN=${BIN}" #echo "Starting launche...
bash
d_bash_1310
--- +++ @@ -2,11 +2,11 @@ ./node_modules/.bin/standard-version -git status -s | grep '^ M' -if [ "$?" -eq "0" ] ; then - echo "You have modified files. Sorry, you have to take care of that before I publish" - exit -fi +# git status -s | grep '^ M' +# if [ "$?" -eq "0" ] ; then +# echo "You have modified file...
bash
d_bash_1311
--- +++ @@ -1,5 +1,5 @@ function yaprox() { - local usage proxy_user proxy_server proxy_pwd + local usage proxy_user proxy_server proxy_pwd proxy_url usage="yaprox sets your http_proxy and https_proxy environment variables @@ -20,8 +20,8 @@ ;; c) echo "ht...
bash
d_bash_1312
--- +++ @@ -1,11 +1,14 @@ #!/bin/bash -set -x - -# Source our environment variables that contain -# our: user, password, endpoint -if [ -r $HOME/.tsp ] -then - source $HOME/.tsp -fi curl -i -X POST -u "$TSP_EMAIL:$TSP_API_TOKEN" -H "Content-Type: application/json" -d '{"title": "test event", "fingerprintFields":...
bash
d_bash_1313
--- +++ @@ -21,4 +21,4 @@ sleep 1 done -exec xpra attach tcp:localhost:30000 +exec xpra attach tcp/localhost:30000
bash
d_bash_1314
--- +++ @@ -4,11 +4,11 @@ a=0 echo "===> Pushing to own home directory" -git push --tags "$owndir" || a=1 +git push --tags "$owndir" : || a=1 echo "===> Repacking" ( cd "$owndir" && git repack --max-pack-size=1 --window=250 --depth=250 -d -l ) echo "===> Pushing to BerliOS" -git push --tags ssh://m-a@git.be...
bash
d_bash_1315
--- +++ @@ -1,3 +1,5 @@ +#!/bin/bash +set -ev test -d cython-hidapi || git clone https://github.com/trezor/cython-hidapi (cd cython-hidapi; git pull; git submodule init; git submodule update) test -d python-trezor || git clone https://github.com/akhavr/python-trezor
bash
d_bash_1316
--- +++ @@ -1,6 +1,20 @@ #!/bin/bash -for i in `seq 1961 1977`; +for i in `seq 1961 1974`; do tar -czf documents/briefings_$i.tar.gz documents/Briefings_$i* done + +tar -czf documents/briefings_1975_1-6.tar.gz documents/Briefings_1975-01.pdf \ + documents/Briefings_1975-02.pdf documents/Briefings_1975-...
bash
d_bash_1317
--- +++ @@ -34,3 +34,19 @@ echo "----------------------------------------" +( + cd /tmp + # Download ptyget to enable ptybandage. + wget https://storage.googleapis.com/prjxray-deps-debs/ptyget_6_amd64.deb + sudo dpkg --install ptyget_6_amd64.deb + which ptybandage + ptybandage --help || true + + # Upgrade pstree...
bash
d_bash_1318
--- +++ @@ -18,6 +18,9 @@ setopt COMPLETE_IN_WORD setopt IGNORE_EOF +# Change to a directory by just entering name +setopt auto_cd + # don't expand aliases _before_ completion has finished # like: git comm-[tab] setopt complete_aliases
bash
d_bash_1319
--- +++ @@ -16,6 +16,7 @@ echo " COPYING IMAGE FILES <comment : number of files copied should be more restrained, no?>" cp -r $xml_src_dir $html_dir/ +cp $xml_src_dir/ProActive.css $html_dir/ echo " GENERATING html pages in $html_dir" xmlto xhtml -o $html_dir -m $xml_src_dir/PA_config.xsl $xml_src_dir/...
bash
d_bash_1320
--- +++ @@ -13,8 +13,8 @@ cd $SITE_DIR - # Reset files where only commit metadata has changed - ruby ../.travis/clean.rb + # Reset files where only commit metadata has changed (disable until commit metadata is generated) + # ruby ../.travis/clean.rb # commit site git config user.email "ditaotbot@gmai...
bash
d_bash_1321
--- +++ @@ -13,4 +13,4 @@ --response-types code,id_token,token \ --grant-types implicit,refresh_token,authorization_code \ --scope openid,offline,offline_access,profile,email,address,phone \ - --callbacks https://op.certification.openid.net:60848/authz_cb,https://op.certification.openid.net:61290/au...
bash
d_bash_1322
--- +++ @@ -24,5 +24,3 @@ docker build -t "${IMG_NAME}" "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" docker run -it --rm -v "${PWD}/bin:/src/bin" "${IMG_NAME}" $@ - -printf "%s" "${BUILD_TAG}" | gsutil cp - "${DEB_RELEASE_BUCKET}/latest"
bash
d_bash_1323
--- +++ @@ -1,5 +1,3 @@ -echo "Linux detected" - sudo apt-get install -y g++-4.8 libstdc++6-4.7-dev sudo apt-get install -y libXmu-dev libXi-dev libgl-dev dos2unix git wget sudo apt-get install -y libfreetype6-dev libglew-dev pkg-config @@ -8,14 +6,13 @@ sudo add-apt-repository -y ppa:george-edison55/cmake-3.x s...
bash
d_bash_1324
--- +++ @@ -17,7 +17,7 @@ # we assume that we're running in a virtualenv with all mbuild already installed and tested # install additional packages required for doc generation -conda install --yes sphinx==1.8.5 numpydoc sphinx sphinx_rtd_theme widgetsnbextension ipywidgets +conda install --yes sphinx==1.8.5 numpy...
bash
d_bash_1325
--- +++ @@ -13,6 +13,11 @@ cmd=$EDITOR else project=$* + fi + + if [[ -z "$project" ]]; then + echo "You have to specify a project name." + return fi for basedir ($PROJECT_PATHS); do
bash
d_bash_1326
--- +++ @@ -30,4 +30,7 @@ brew cask install ${line} done +# Remove Brew's cache +brew cleanup -s + echo "===== END ===="
bash
d_bash_1327
--- +++ @@ -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_1328
--- +++ @@ -1,20 +1,28 @@ #!/bin/bash -sleep 15 +vm_name=$1 +sleep 10 +# MAC=`VBoxManage showvminfo ${vm_name} | grep MAC | grep vboxnet0 | awk -F ":" '{print $3}' | cut -c 2-13` +# MAC=`echo ${MAC} | awk 'BEGIN{FS=""}{print $1$2":"$3$4":"$5$6":"$7$8":"$9$10":"$11$12}' | tr '[:upper:]' '[:lower:]'` +# MAC=`echo $MA...
bash
d_bash_1329
--- +++ @@ -6,12 +6,14 @@ tox +# Check that NEWS file is up-to-date. +grep "$VERSION" NEWS.rst || echo "Version $VERSION missing in NEWS file." + # Check for uncommited changes. set +e git diff --quiet && git diff --cached --quiet retcode=$? set -e - if [[ $retcode != 0 ]]; then echo "There are uncomm...
bash
d_bash_1330
--- +++ @@ -1,6 +1,6 @@ alias reload!='. ~/.zshrc' -if [[ "$(uname -s)" == "Linux" ]]; then +if which xdg-open &> /dev/null; then alias open="xdg-open" fi
bash
d_bash_1331
--- +++ @@ -2,7 +2,7 @@ pip install --upgrade pip echo "Installing TensorPy..." -pip install -r requirements.txt +pip install -r requirements.txt --upgrade python setup.py install value="$(uname)" if [ $value == "Linux" ]
bash
d_bash_1332
--- +++ @@ -20,7 +20,7 @@ rm -rf build mkdir build cd build -cmake -DFUNCTIONAL_TESTS=TRUE -DUNIT_TESTS=TRUE .. +cmake -DFUNCTIONAL_TESTS=TRUE -DUNIT_TESTS=TRUE -DENABLE_THIRD_PARTY_COPY=TRUE .. make -j $CORES make abi-check (ctest --no-compress-output -T Test || true)
bash
d_bash_1333
--- +++ @@ -10,7 +10,7 @@ DUCTTAPE=$(which ducttape) tutorialDir=$(cd $rootDir/tutorial; pwd) -for tape in $tutorialDir/*/*.tape; do +for tape in $tutorialDir/*.tape; do dir=$(dirname $tape) basefile=$(basename $tape .tape) customSh=$dir/$basefile.sh
bash
d_bash_1334
--- +++ @@ -13,7 +13,11 @@ exit 0 fi -vulture \ +VULTURE_SUPPRESSIONS=$(dirname "${BASH_SOURCE[0]}")/lint-python-dead-code-whitelist +if ! vulture \ --min-confidence 60 \ $(git rev-parse --show-toplevel) \ - $(dirname "${BASH_SOURCE[0]}")/lint-python-dead-code-whitelist + "${VULTURE_SUPPRESSIO...
bash
d_bash_1335
--- +++ @@ -13,3 +13,9 @@ if [ -d /usr/local/node ]; then export PATH="${PATH}:/usr/local/node/bin" fi + + +if [ -d ${HOME}/Workspace/FlameGraph ]; then + # useful: checkout https://github.com/brendangregg/FlameGraph.git to ~/Workspace for flame utils + export PATH="${PATH}:${HOME}/Workspace/FlameGraph" +f...
bash
d_bash_1336
--- +++ @@ -1,31 +1,15 @@ -#!/bin/sh -############################ -# .make.sh -# This script creates symlinks from the home directory to any desired dotfiles in ~/dotfiles -############################ +#!/bin/sh -x -########## Variables +DOTFILES_DIR=~/Code/dotfiles -dir=~/Code/dotfiles # dot...
bash
d_bash_1337
--- +++ @@ -10,7 +10,13 @@ git commit -m "Whatever" git checkout gh-pages git merge -X theirs --squash gh-pages-temp -git commit -m "Travis Reports #$TRAVIS_BUILD_NUMBER" + +if [ $TRAVIS_PULL_REQUEST ] +then + git commit -m "Travis reports PR#$TRAVIS_PULL_REQUEST" +else + git commit -m "Travis Reports build#...
bash
d_bash_1338
--- +++ @@ -2,8 +2,7 @@ set -e # actual static-analysis -#Re-enable with AGP7 -#./gradlew --stacktrace lintDebug lintRelease lintCanary --continue +./gradlew --stacktrace lintDebug lintRelease lintCanary --continue #see https://github.com/actions/cache/issues/133 [[ -n "${GITHUB_ACTIONS}" ]] && chmod -R a+rwx...
bash
d_bash_1339
--- +++ @@ -1,20 +1,20 @@ #! /bin/sh -CKAN_INSTALL_DIR=../ckan +CKAN_INSTALL_DIR=../ckan/ -python setup.py extract_messages --mapping-file babel.cfg --output ../ckan/ckan/i18n/ckanext.pot +python setup.py extract_messages --mapping-file babel.cfg --output i18n/ckanext.pot for LANG in fr es ca it bg tr do - i...
bash
d_bash_1340
--- +++ @@ -5,7 +5,7 @@ if [ -z "$MARIADB_DATA_EXISTS" ] then - docker run -d -v /var/lib/mysql --name mariadb-data debian + docker run -d -v /var/lib/mysql --name mariadb-data ubuntu:14.04 fi if ! [ -z "$MARIADB_EXISTS" ]
bash
d_bash_1341
--- +++ @@ -1,4 +1,13 @@ #!/usr/bin/env bash -\easy_install-2.7 pip -\pip install ansible + +\pip --version + +if [ $? -gt 0 ]; then + \easy_install-2.7 pip +fi + \ansible --version + +if [ $? -gt 0 ]; then + \pip install ansible +fi
bash
d_bash_1342
--- +++ @@ -14,6 +14,8 @@ sudo ln -sf $PWD/bfgminer.sh /etc/init.d/ sudo ln -sf $PWD/repartition.sh /etc/init.d/ sudo ln -sf $PWD/lcd /etc/dhcp/dhclient-exit-hooks.d/ +sudo ln -sf $PWD/lcd-loop /usr/bin/ +sudo ln -sf $PWD/get_asic_stats.awk /usr/bin/ sudo update-rc.d ioboard.sh defaults sudo update-rc.d bfgmin...
bash
d_bash_1343
--- +++ @@ -29,4 +29,9 @@ fi done +ip link set eno1 down +if [[ $1 = "--wifi" ]]; then + ip link set wlp3s0 down +fi + powertop
bash
d_bash_1344
--- +++ @@ -4,4 +4,4 @@ echo 'Running Unit tests' -./vendor/bin/phpunit +phpunit
bash
d_bash_1345
--- +++ @@ -1,4 +1,7 @@ # use up/down keys on the command line to do <Ctrl-R>-style reverse-i-search # through history using the substring before the cursor on the current line -bindkey "^[[A" history-beginning-search-backward -bindkey "^[[B" history-beginning-search-forward +if [[ "$(uname -s)" == "Darwin" ]] +the...
bash
d_bash_1346
--- +++ @@ -1,8 +1,6 @@ #!/bin/bash declare -a whitelist declare -a blacklist - -perms_file=$1 IFS=', ' @@ -10,11 +8,13 @@ local comm=$1 shift local arr=($@) - echo $arr - if [ $arr = "\/" ] + if [ "$arr" = "\/" ] then return 0 + elif [ -z $arr ] + then + r...
bash
d_bash_1347
--- +++ @@ -4,6 +4,7 @@ cd "$(dirname "$0")/.." fi +rm -rf build xcrun xcodebuild \ -scheme iOSTestApp \ -workspace iOSTestApp.xcworkspace \
bash
d_bash_1348
--- +++ @@ -18,10 +18,10 @@ check_if_plugin_exists $plugin check_if_version_exists $plugin $version - if [ -f $file ] && grep $plugin $file > /dev/null; then - sed -i -e "s/$plugin .*/$plugin $version/" $file + if [ -f "$file" ] && grep $plugin "$file" > /dev/null; then + sed -i -e "s/$plugin .*/$plug...
bash
d_bash_1349
--- +++ @@ -6,6 +6,9 @@ # don't rely on Debian/Ubuntu Docker engine apt-get remove docker-engine +# make sure we start from scratch +pip uninstall docker-py +pip uninstall docker set -e set -x
bash
d_bash_1350
--- +++ @@ -9,15 +9,15 @@ SSHD=${SSHD:-/usr/sbin/sshd} cmd="./ssh2${EXEEXT}" -srcdir=`cd $srcdir; pwd` +srcdir=`cd "$srcdir"; pwd` PRIVKEY=$srcdir/etc/user export PRIVKEY PUBKEY=$srcdir/etc/user.pub export PUBKEY -chmod go-r $srcdir/etc/host* -$SSHD -f /dev/null -h $srcdir/etc/host \ +chmod go-rwx "$srcdi...
bash
d_bash_1351
--- +++ @@ -10,8 +10,6 @@ # Navigate command history matching typed input using up/down arrow keys bind '"\e[A": history-search-backward' 2> /dev/null bind '"\e[B": history-search-forward' 2> /dev/null -# Enable the tab key to cycle through completions for ambiguous matches -bind 'TAB:menu-complete' 2> /dev/null ...
bash
d_bash_1352
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright 2019 Authors of Cilium +# Copyright 2019-2021 Authors of Cilium # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,11 +18,12 @@ get_remote () { local remote + local...
bash
d_bash_1353
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh -SRC_VERSION=1.4.0 +SRC_VERSION=1.8.0 SRC_NAME=rustc-${SRC_VERSION}-src SRC_PATH=https://static.rust-lang.org/dist/${SRC_NAME}.tar.gz
bash
d_bash_1354
--- +++ @@ -9,7 +9,8 @@ CRITICALITY=${CRITICALITY:-critical} set -e -if nova-manage service list | tail -n +2 | grep XXX; then +source /etc/sensu/stackrc +if nova service-list | tail -n +4 | grep -v '^+-' | cut -d'|' -f 3,7 | grep down; then echo "a nova service is down" if [ "$CRITICALITY" == "warning" ]; ...
bash
d_bash_1355
--- +++ @@ -8,7 +8,7 @@ else ( echo "wget cmocka $PKGNAME" - wget http://cmocka.org/files/1.1/$PKGNAME + curl -L http://cmocka.org/files/1.1/$PKGNAME > $PKGNAME echo "cmocka: build" rm -rf include lib build
bash
d_bash_1356
--- +++ @@ -7,7 +7,7 @@ set -o xtrace # print commands as they are executed cat >> /etc/apt/sources.list <<EOF -deb http://download.opensuse.org/repositories/home:/sionescu/Ubuntu_14.04/ ./ +deb http://download.opensuse.org/repositories/home:/sionescu/Ubuntu/ ./ EOF cat >> /etc/apt/preferences <<EOF
bash
d_bash_1357
--- +++ @@ -1,7 +1,6 @@ #!/bin/bash ###################### -# makesymlinks.sh -# This script creates symlinks from the home directory to all files from ~/dotfiles +# Creates symlinks from the home directory to the specified files ###################### dir=~/dotfiles
bash
d_bash_1358
--- +++ @@ -9,7 +9,7 @@ ISO="VBoxGuestAdditions_$VER.iso"; mkdir -p /tmp/vbox; mount -o loop $HOME_DIR/$ISO /tmp/vbox; - sh /tmp/vbox/VBoxLinuxAdditions.run \ + sh /tmp/vbox/VBoxLinuxAdditions.run --nox11 \ || echo "VBoxLinuxAdditions.run exited $? and is suppressed." \ "For...
bash
d_bash_1359
--- +++ @@ -6,5 +6,5 @@ if test ! $(which brew) then echo " Installing Homebrew for you." - ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" 2>&1 | sed -ne "s/^/ /" + ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" 2>&1 | sed "s/^/ /" fi
bash
d_bash_1360
--- +++ @@ -46,7 +46,7 @@ local old=" " fi - echo ${input} | sed "s#${old}#${new}#g" + echo ${input} | sed "s;${old};${new};g" } returnOption(){
bash
d_bash_1361
--- +++ @@ -7,12 +7,12 @@ go run build/build.go > tmp/_config.yml grep -P "\tVersion" main.go | tr -d '\t' -for GOOS in darwin linux windows; do +for GOOS in windows linux darwin; do EXT="" if [ $GOOS = "windows" ]; then EXT=".exe" fi - for GOARCH in 386 amd64; do + for GOARCH in amd64 386; do export ...
bash
d_bash_1362
--- +++ @@ -17,6 +17,9 @@ VERSION=${TARBALL%%.tar*} VERSION=${VERSION//*-} +# Add the mostcurrent repo, we may have dependencies in it +echo -e '[current]\nbaseurl=file:///data/repos/current\nenabled=1\ngpgcheck=0' > /etc/yum.repos.d/current.repo + sed -i -e "s/Version:.*/Version: $VERSION/g" *.spec sed -i -e "...
bash
d_bash_1363
--- +++ @@ -10,7 +10,16 @@ alias jrn='jr new' alias jrt='jr transition' -function jro { - namespace="$(jq -r .namespace < ~/.jira_terminal_configuration.json)" - xdg-open "https://${namespace}/browse/$1" +function jrns { + jq -r .namespace < ~/.jira_terminal_configuration.json } + +if dcheck xdg-open; then + ...
bash
d_bash_1364
--- +++ @@ -1,7 +1,20 @@ #!/usr/bin/env bash +KAFKA_HOST="kafka" +KAFKA_PORT=9092 INFLUXDB_HOST="influxdb" INFLUXDB_PORT=8086 + +while true +do + echo "Waiting for Kafka connection at $KAFKA_HOST:$KAFKA_PORT. This may take a while..." + timeout 1 bash -c "cat < /dev/null > /dev/tcp/$KAFKA_HOST/$KAFKA_PORT" + ...
bash
d_bash_1365
--- +++ @@ -8,13 +8,16 @@ echo "Installing Powerline fonts..." if [[ ! -d $HOME/fonts ]]; then + cd $HOME git clone https://github.com/powerline/fonts.git --depth=1 # Run the installer: - cd fonts; ./install.sh + cd fonts; ./install.sh; cd .. + # Clean up: + rm -rf $HOME/fonts # Touch a file to say we are d...
bash
d_bash_1366
--- +++ @@ -11,6 +11,6 @@ cd $EXTRAS/basic_example -npm install --loglevel error express +npm install --loglevel error express@3.4.8 cd $CURRENT_DIR
bash
d_bash_1367
--- +++ @@ -2,9 +2,17 @@ cd $(dirname $0) cd .. +FLAKE8="" if which flake8 >/dev/null 2>&1; then + FLAKE8=flake8 +fi +if which flake8-python2 >/dev/null 2>&1; then + FLAKE8=flake8-python2 +fi + +if [ -n "${FLAKE8}" ]; then set -e - flake8 --ignore=E,W *.py assnet tests bin/* + ${FLAKE8} --ignore...
bash
d_bash_1368
--- +++ @@ -18,7 +18,7 @@ # Target (e.g.: pypitest, pypi): target=https://test.pypi.org/legacy/ if [[ $# -eq 1 ]] ; then - target=https://pypi.org/legacy/ + target=https://upload.pypi.org/legacy/ fi # Package:
bash
d_bash_1369
--- +++ @@ -1,9 +1,3 @@ -if [[ -n $SSH_CONNECTION ]]; then - export PS1='%m:%3~$(git_info_for_prompt)%# ' -else - export PS1='%3~$(git_info_for_prompt)%# ' -fi - export EDITOR='vi' export PAGER="less" export LESS="-R" @@ -11,7 +5,7 @@ export PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH" # ad...
bash
d_bash_1370
--- +++ @@ -1,5 +1,5 @@ -for f in _data/year/*.yml +for f in _data/year/*${1}.yml do ./year-build.sh $f done
bash
d_bash_1371
--- +++ @@ -7,7 +7,7 @@ rm -rf autom4te.cache configure COPYING depcomp INSTALL install-sh Makefile.in \ missing aclocal.m4 debug ltmain.sh config.guess config.sub config.log \ - config.status Makefile libtool 2> /dev/null + config.status Makefile libtool libltdl 2> /dev/null find -name Makefile.in -exec rm {} ...
bash
d_bash_1372
--- +++ @@ -1,4 +1,18 @@ #!/bin/bash + +# Copyright 2018 The Kubernetes Authors All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/lic...
bash
d_bash_1373
--- +++ @@ -3,3 +3,4 @@ alias sprunge="curl -F 'sprunge=<-' http://sprunge.us" alias vi="vim" alias host="host -N3" +alias dl='curl --silent -w "Total: %{time_total}\nDNS: %{time_namelookup}\nConnect: %{time_connect}\nPretransfer: %{time_pretransfer}\nRedirect: %{time_redirect}\...
bash
d_bash_1374
--- +++ @@ -5,9 +5,10 @@ set -x BUCKET_NAME=${1:-juju-ci-image-streams} -IMAGE_ID=`nova image-list|grep "14\.04.*PVHVM"|cut -d "|" -f 2` STREAMS_DIR=`mktemp -d -t juju-ci-image-metadata.XXXXXX` CDN_ENDPOINT=`keystone endpoint-get --service "rax:object-cdn"|grep publicURL|cut -d "|" -f 3` + +IMAGE_ID=`nova image...
bash
d_bash_1375
--- +++ @@ -1,3 +1,3 @@ bindkey "^y" beginning-of-line -bindkey "^b" backward-word -bindkey "^f" forward-word +bindkey "^1" backward-word +bindkey "^0" forward-word
bash
d_bash_1376
--- +++ @@ -10,8 +10,8 @@ sudo yum install -y --nogpg rabbitmq-server; elif [[ "$APT_GET_CMD" != "" ]]; then sudo apt-get -y install libvirt-bin libvirt-dev syslinux pxelinux rabbitmq-server qemu-kvm net-tools; -sudo systemctl stop rabbimq-server -sudo systemctl disable rabbimq-server +sudo systemctl stop rabbitmq...
bash
d_bash_1377
--- +++ @@ -1,18 +1,28 @@ #!/bin/bash # setgroup.sh groupname -# Set the group name in /etc/hosts and /etc/hostname +# Set the group name in /etc/hosts, /etc/hostname and /home/pi/TP-IoT/*.py #test="/Users/Luppy/Raspberry Pi" test="" +# Update hosts and hostname files. groupname="${1:?Specify a group name e....
bash
d_bash_1378
--- +++ @@ -10,3 +10,5 @@ wget https://github.com/Kitware/CMake/releases/download/v${MAJOR}.${MINOR}.${REVISION}/cmake-${VERSION}-${OS}-x86_64.tar.gz tar -xf cmake-${VERSION}-${OS}-x86_64.tar.gz export PATH=${PWD}/cmake-${VERSION}-${OS}-x86_64/bin:${PATH} +echo "Extracted CMake and set PATH=$PATH" +cmake --version
bash
d_bash_1379
--- +++ @@ -1,6 +1,7 @@ #!/bin/bash -e -export KEY_FILE=private-config/environments/softlayer/concourse/ha-maintenance.key +export KEY_FILE=../../../private-config/environments/softlayer/concourse/ha-maintenance.key +chmod 600 ${KEY_FILE} printf "Downloading HAProxy config... \n" ssh -oStrictHostKeyChecking=no -...
bash
d_bash_1380
--- +++ @@ -21,3 +21,6 @@ zocker run -n build "$RELEASE" "freebsd-update --not-running-from-cron fetch install; rm -rf /var/db/freebsd-update/files" zocker commit build "$RELEASE" zocker rm build +zocker create -n build "$RELEASE" "tcsh" +zocker commit build "$RELEASE" +zocker rm build
bash
d_bash_1381
--- +++ @@ -23,6 +23,6 @@ _gibo() { - reply=($( find $HOME/.gitignore-boilerplates -name "*.gitignore" -exec basename \{\} .gitignore \; )) + compadd $( find $HOME/.gitignore-boilerplates -name "*.gitignore" -exec basename \{\} .gitignore \; ) } -compctl -K _gibo gibo +compdef _gibo gibo
bash
d_bash_1382
--- +++ @@ -16,7 +16,7 @@ if [ $RESULT != 0.00 ]; then exit 1; fi cosmic-ray load cosmic-ray.nosetest.conf -cosmic-ray report adam_tests.nosetest +#cosmic-ray report adam_tests.nosetest #cosmic-ray survival-rate adam_tests.nosetest RESULT=`cosmic-ray survival-rate adam_tests.nosetest` if [ $RESULT != 0.00 ]; t...
bash
d_bash_1383
--- +++ @@ -10,7 +10,7 @@ # - Grigori Fursin, grigori.fursin@cTuning.org, 2017 # -export CK_CXX_FLAGS_FOR_CMAKE="${CK_CXX_FLAGS_FOR_CMAKE} -std=c++11 -DCL_VERSION_2_0" +export CK_CXX_FLAGS_FOR_CMAKE="${CK_CXX_FLAGS_FOR_CMAKE} -std=c++11" export CK_CMAKE_EXTRA="${CK_CMAKE_EXTRA} \ -DOPENCL_LIBRARIES:FILEPATH=...
bash
d_bash_1384
--- +++ @@ -4,6 +4,7 @@ mkdir -p dist ./scrunchItUp.py cp wcp.js dist/ -cp html/wclogo.jpg dist/ -cp html/player.css dist/ +cp html/*.jpg dist/ +cp html/*.png dist/ +cp html/*.css dist/ cp html/player-packed.html dist/index.html
bash
d_bash_1385
--- +++ @@ -1,5 +1,7 @@ #!/usr/bin/env bash source activate sklearn-porter +python -m $(python -c 'import sys; print("http.server" if sys.version_info[:2] > (2,7) else "SimpleHTTPServer")') 8080 & serve_pid=$! python -m unittest discover -vp '*Test.py' +kill $serve_pid source deactivate
bash
d_bash_1386
--- +++ @@ -2,4 +2,4 @@ source $DOTFILES/source/50_node.sh # Install latest Node.js, set as default, install global npm modules. -nave_install latest +nave_install stable
bash
d_bash_1387
--- +++ @@ -9,5 +9,6 @@ ros-kinetic-ros-controllers\ ros-kinetic-teleop-twist-keyboard\ ros-kinetic-velodyne-gazebo-plugins\ + ros-kinetic-pointcloud-to-laserscan\ ros-kinetic-mcl-3dl\ ros-kinetic-mcl-3dl-msgs
bash
d_bash_1388
--- +++ @@ -6,7 +6,7 @@ echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u212-b04/OpenJDK8U-jdk_x64_linux_hotspot_8u212b04.tar.gz" ;; java11) - echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.2%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.2_9.tar...
bash
d_bash_1389
--- +++ @@ -15,4 +15,4 @@ -s SDL2_IMAGE_FORMATS='["png"]' \ --preload-file res \ -O2 \ - -o heligun.html + -o index.html
bash
d_bash_1390
--- +++ @@ -27,14 +27,6 @@ # hack prevent commons-logging-1.1-dev rm /home/projects/maven/repository-staging/to-ibiblio/maven2/commons-logging/commons-logging/1.1-dev/commons-logging-1.1-dev.jar* - -# get poms from svn and generate checksums -( - /home/projects/maven/components/maven-meeper/src/bin/update-poms.s...
bash
d_bash_1391
--- +++ @@ -10,14 +10,8 @@ # TODO: support just pieces of branch name if [[ $1 == "" ]] then - echo "Usage: $0 branch [destination]" + echo "Usage: $0 branch " exit 1 -fi - -# Check if destination was given as option -if [[ $2 == "local" ]] -then - IPA_DIR=~/dev/freeipa fi pushd $IPA_DIR
bash
d_bash_1392
--- +++ @@ -1,4 +1,2 @@ #!/bin/bash -source /var/www/paso2015/.venv/bin/activate -cd /var/www/paso2015/elecciones_2015_caba/api_backend -python scripts/tranform_data_api.py +source /var/www/paso2015/.venv/bin/activate && cd /var/www/paso2015/elecciones_2015_caba/api_backend && python scripts/tranform_data_api.py
bash
d_bash_1393
--- +++ @@ -1,15 +1,11 @@ #!/bin/bash -# TODO: If this list is updated so often, consider extract using `dpkg -I` -readonly PREREQUISITES=( - libpango1.0-0 - libxss1 - libappindicator1 - xdg-utils -) readonly CHROME_DEB=/tmp/google-chrome-stable_current_amd64.deb wget -O "${CHROME_DEB}" \ "https://dl.go...
bash
d_bash_1394
--- +++ @@ -11,6 +11,17 @@ mkdir -p $BUILD_DIR/ereuse-data/inventory $BUILD_DIR/ereuse-data/images cp device_inventory/config.ini $BUILD_DIR/ereuse-data +IMAGE=eReuseOS +cp dist/iso/$IMAGE-$VERSION.iso $BUILD_DIR/ereuse-data/images/$IMAGE.iso +cat > $BUILD_DIR/ereuse-data/images/$IMAGE.iso.syslinux << EOF +LABEL ...
bash
d_bash_1395
--- +++ @@ -33,6 +33,8 @@ gox -osarch="${TARGETS}" --output="pkg/${BINARY}-{{.OS}}-{{.Arch}}" -ldflags="-X main.Version=${VERSION}" ./... DEV_BINARY="${BINARY}-$(go env GOOS)-$(go env GOARCH)" +MAIN_GOPATH=${GOPATH%%:*} cp pkg/${DEV_BINARY} bin/ +cp pkg/${DEV_BINARY} ${MAIN_GOPATH}/bin/ echo "Built version: $...
bash
d_bash_1396
--- +++ @@ -1,5 +1,4 @@ #!/usr/bin/env bash php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" -php -r "if (hash_file('SHA384', 'composer-setup.php') === '070854512ef404f16bac87071a6db9fd9721da1684cd4589b1196c3faf71b9a2682e2311b36a5079825e155ac7ce150d') { echo 'Installer verified'; } else { e...
bash
d_bash_1397
--- +++ @@ -4,6 +4,9 @@ lsb_dist="$(. /etc/lsb-release && echo "$DISTRIB_ID")" lsb_release="$(. /etc/lsb-release && echo "$DISTRIB_RELEASE")" + +# When using this script to upgrade an old image, we need to clean some old files +rm -f /etc/init/nbd-root-disconnect.conf case "$lsb_dist" in Ubuntu)
bash
d_bash_1398
--- +++ @@ -13,7 +13,7 @@ brew install httrack brew install maven brew install gradle -brew install yarn +brew install yarn --without-node brew install httpie brew install git bash-completion
bash
d_bash_1399
--- +++ @@ -16,3 +16,6 @@ apm upgrade --no-confirm >/dev/null fi + +# Fix keyboard repeat config +defaults write com.github.atom ApplePressAndHoldEnabled -bool false
bash