conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Include license (BSD-new) in archive\n"
},
{
"from": "human",
"value": "#!/bin/sh -x\nCLASSPATH=../craftbukkit-1.1-R2.jar javac *.java -Xlint:deprecation -Xlint:unchecked\nrm -rf me\nmkdir -p me/exphc/EnchantMore\nmv *.class me/exphc/EnchantMore/\njar cf EnchantMore... | shell | chosen |
[
{
"from": "system",
"value": "Validate TB with 4-fold\nmultiwave\n"
},
{
"from": "human",
"value": "./scripts/cleanvalidate.sh pearson-3d\nmkdir -p out images\nrm out/* images/*\n mpiexec -n 8 ./bin/pearson-3d.out 1000 100\n./scripts/plot-pearson-bin.py out/monitor-*.txt\n"
},
{
"from": ... | shell | chosen |
[
{
"from": "system",
"value": "Make sure IPython<6 is used for Python 2.7\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -ex\n\n# Install NJOY 2016\n./tools/ci/travis-install-njoy.sh\n\n# Running OpenMC's setup.py requires numpy/cython already\npip install numpy cython\n\n# pytest installed ... | shell | chosen |
[
{
"from": "system",
"value": "Make debugging merge.py in the test suite possible.\n\nChange-Id: Ie30f0421601cbd5cf8f88dcc3dcf818b1db589ba\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -ue\nresult=\"\"\ncleanup() {\n if [ -n \"$result\" ] ; then\n rm -f $result\n fi\n}\ntrap cl... | shell | chosen |
[
{
"from": "system",
"value": "Add conda update step, to make sure things are in sync\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -ev\n\n# Determine which python version we will install\ncase \"${PYTHON_VERSION:-3}\" in\n 2*)\n Miniconda=\"Miniconda2\"\n ;;\n 3*)\n ... | shell | chosen |
[
{
"from": "system",
"value": "Add docker images cleanup command after pushing new ones\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -exou pipefail\n\nsudo rm -rf /usr/local/bin/*aptomi* /etc/aptomi /var/lib/aptomi ~/.aptomi\n\nhostname\n\nls -la\n\nexport PATH=$PATH:\"$WORKSPACE\"/bin\nex... | shell | chosen |
[
{
"from": "system",
"value": "Bump rbenv ruby versions on testing\n"
},
{
"from": "human",
"value": "#!/bin/bash\n#\n# rbenv version\n\nset -e\n\nfunction run {\n for version in 2.2.6 2.4.4 2.5.4 HEAD; do\n rm -f Gemfile.lock\n MAIL_GEM_VERSION=$version bundle install\n MAIL_GEM_VERSIO... | shell | chosen |
[
{
"from": "system",
"value": "Fix test reference to obsolete ostree-pull\n\nIt was leftover in my buildroot =/\n"
},
{
"from": "human",
"value": "#!/bin/bash\n#\n# Copyright (C) 2011 Colin Walters <walters@verbum.org>\n#\n# This library is free software; you can redistribute it and/or\n# modify ... | shell | chosen |
[
{
"from": "system",
"value": "Replace initial gradle build with compileJava\n"
},
{
"from": "human",
"value": "cd $(dirname $0)\ncd ../complete\nmvn clean package\njava -jar target/gs-rest-service-0.1.0.jar &\nPID=$!\nsleep 10\ncurl -s http://localhost:8080/greeting > target/actual.json\nkill -9... | shell | chosen |
[
{
"from": "system",
"value": "Test first, build docs later. Faster test feedback from hudson.\n"
},
{
"from": "human",
"value": "# $WORKSPACE\n# $JOB_NAME\necho \necho \necho Building MarineMap docs : revision $MERCURIAL_REVISION\necho\necho\npython build_docs.py -d /var/www/marinemap-docs -j /... | shell | chosen |
[
{
"from": "system",
"value": "Build kontrol and fujin too\n"
},
{
"from": "human",
"value": "#! /bin/bash\n\nexport GOPATH=$(cd \"$(dirname \"$0\")\"; pwd)\nexport GIT_DIR=$GOPATH/../.git\n\nldflags=\"-X koding/tools/lifecycle.version $(git rev-parse HEAD)\"\nservices=(\n\tkoding/broker\n\tkodin... | shell | chosen |
[
{
"from": "system",
"value": "Set vagrant test cluster default NUM_MINIONS=2\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n# Copyright 2014 The Kubernetes Authors All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except ... | shell | chosen |
[
{
"from": "system",
"value": "Use Aptivate CKAN for travis build\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -e\n\necho \"This is travis-build.bash...\"\n\necho \"Installing the packages that CKAN requires...\"\nsudo apt-get update -qq\nsudo apt-get install postgresql-$PGVERSION solr-jet... | shell | chosen |
[
{
"from": "system",
"value": "Add examples for host and port.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\necho \"[+] Installing pynessus ...\"\nsudo python setup.py install\n\necho \"[+] Configuring pynessys ...\"\necho -n \"Nessus server hostname: \"\nread NESSUS_SERVER\necho -n \"Nessus ... | shell | chosen |
[
{
"from": "system",
"value": "Tweak on order of pull and checkout\n"
},
{
"from": "human",
"value": "cd ..\necho checking out $1\n\n# We cd to the given directory, look and see if the branch exists...\n# If it does, we make sure we are in that branch.\n# Then we go back to the previous directory... | shell | chosen |
[
{
"from": "system",
"value": "Remove ./node_modules/ before npm install on CI\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -e\n\nexport GOVUK_WEBSITE_ROOT=https://www.gov.uk\n\nnpm install\n\nnpm run test:unit\nnpm run shell:cheapseats\n"
},
{
"from": "gpt",
"value": "#!/bin/b... | shell | chosen |
[
{
"from": "system",
"value": "Add a backups folder to mount jenkins_master volume\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\necho \"Creating user jenkins\"\nuseradd jenkins \\\n && passwd -d jenkins \\\n && mkdir -p /home/jenkins/.ssh\n && chown -R jenkins:jenkins /home/jenkins \\\n ... | shell | chosen |
[
{
"from": "system",
"value": "Support bash version is less than 4.3\n"
},
{
"from": "human",
"value": "# bash\n\nequals_var() {\n declare -p $1 >/dev/null 2>&1 || return 1\n declare -p $2 >/dev/null 2>&1 || return 1\n declare -n equals_var__left=$1\n declare -n equals_var__right=$2\n # 非配列\... | shell | chosen |
[
{
"from": "system",
"value": "Travis-CI: Make sure numpy is therefore *before* install starts.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nif [ \"$TRAVIS_OS_NAME\" == \"linux\" ]; then\n echo \"OK\"\nelif [ \"$TRAVIS_OS_NAME\" == \"osx\" ]; then\n brew install gcc\n brew link --... | shell | chosen |
[
{
"from": "system",
"value": "Call `docker inspect` only after calling `docker load`\n"
},
{
"from": "human",
"value": "#!/bin/bash -ex\n\nTARBALL_EXISTS=false\n\nif [[ -e ~/docker/digdag-build.tar.gz ]]; then\n TARBALL_EXISTS=true\n gunzip -c ~/docker/digdag-build.tar.gz | docker load\nfi... | shell | chosen |
[
{
"from": "system",
"value": "REorder experiments to match the table in the paper\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nSTART_WITH=$1\n\n(cd experiments; git pull)\n\nfor branch in raft-45 raft-46 raft-56 raft-58 raft-58-initialization raft-42 raft-66; do\n if [ \"$START_WITH\" != \... | shell | chosen |
[
{
"from": "system",
"value": "WIP: Upgrade to Splash V2 Standards"
},
{
"from": "human",
"value": "\necho Start Prestashop\n\ncomposer install --prefer-dist --no-interaction --no-progress --no-dev\nbash tests/check_file_syntax.sh\nbash travis-scripts/install-prestashop\n\n"
},
{
"from": ... | shell | chosen |
[
{
"from": "system",
"value": "Revert \"Move .nvmrc before nvm init in CI\"\n\nThis reverts commit b708fc1c0b5f7aa73e775ceabcfe16e5f03d07f0.\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -e\n\n# setup nvm\nmv ../../../.nvmrc nvmrc # Remove for init otherwise nvm init could fail\nif [[ \"$OS... | shell | chosen |
[
{
"from": "system",
"value": "Use Pegasus provided notification script\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nexport PATH=$PEGASUS_BIN_DIR:$PATH\n\ncd $PEGASUS_SUBMIT_DIR\n\n# use a temp file for the message body\nTMPFILE=`mktemp -t pegasus-notification.XXXXXXXXXX` || exit 1\n\ncat >>... | shell | chosen |
[
{
"from": "system",
"value": "Revert \"removed gevent from one other place\"\n\nThis reverts commit dc109ac5509a367fffb21e618d0fc034fadeb3f2.\n"
},
{
"from": "human",
"value": "#! /usr/bin/env bash\n\necho \"Running prestart.sh with RELEASE=${RELEASE}\"\n\nwhile [ ! -f /app/syft/setup.py ]\ndo\n... | shell | chosen |
[
{
"from": "system",
"value": "Fix glrp alias assignment syntax\n"
},
{
"from": "human",
"value": "# Use `hub` as our git wrapper:\n# http://defunkt.github.com/hub/\nhub_path=$(which hub)\nif [[ -f $hub_path ]]\nthen\n alias git=$hub_path\nfi\n\n# The rest of my fun git aliases\nalias gl='git ... | shell | chosen |
[
{
"from": "system",
"value": "Use deployed revision for acceptance tests\n"
},
{
"from": "human",
"value": "#!/bin/bash\n#\n# Runs acceptance tests.\n#\n# Needs DOCKER_REPOSITORY, BASE_URL and optionally NUM_PROCS\n#\n# To set them go to Job -> Configure -> Build Environment -> Inject\n# passwor... | shell | chosen |
[
{
"from": "system",
"value": "Change rollup test from 30 minutes to 10 minutes.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\ncurl -s http://localhost:8080/api/v1/rollups/rollup -XPOST -H'Content-type:application/json' -d '\n\t[\n\t {\n\t \"metric_name\": \"test_metric\",\n\t ... | shell | chosen |
[
{
"from": "system",
"value": "Install apt-get dependencies before vim install\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nln -sf ~/dotfiles/vim/vimrc ~/.vimrc\nln -sf ~/dotfiles/ruby/irbrc ~/.irbrc\nln -sf ~/dotfiles/zsh/zshrc ~/.zshrc\nln -sf ~/dotfiles/git/config ~/.gitconfig\n\nif [ $SP... | shell | chosen |
[
{
"from": "system",
"value": "Make the swift install script cd back to where it starts\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nSWIFT_URL=https://swift.org/builds/swift-3.0-preview-1/ubuntu1404/swift-3.0-preview-1/swift-3.0-preview-1-ubuntu14.04.tar.gz\n\n# Install Swift\ncd ${HOME}\nwg... | shell | chosen |
[
{
"from": "system",
"value": "Fix race condition in test\n\nOn OSX systems, zap takes longer to start, and as a result the curl command hits a closed port. Added a busy loop that will wait for the port to be open and accepting connections before we hit it with the test."
},
{
"from": "human",
"v... | shell | chosen |
[
{
"from": "system",
"value": "Initialize virtualenv when running Deve::NYTProf profiler\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nworking_dir=`dirname $0`\n\nsource $working_dir/set_perl_brew_environment.sh\n\nset -u\nset -o errexit\n\n# Make sure Inline::Python uses correct virtualenv\... | shell | chosen |
[
{
"from": "system",
"value": "Add pull of dietmarw/notebook again\n"
},
{
"from": "human",
"value": "#!/bin/bash\nTOKEN=`head -c 30 /dev/urandom | xxd -p`\n\ndocker rm -f `docker ps -aq`\n\n#docker pull dietmarw/notebook\n\ndocker run --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN \\\n -... | shell | chosen |
[
{
"from": "system",
"value": "script: Add check if fifo files already exist.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nmkfifo fifo0 fifo1\npython ./bar.py > fifo0 < fifo1 &\nlemonbar -p -f \"Droid Sans-9\" -f \"FontAwesome-11\" -g1366x22 eDP1 < fifo0 > fifo1\n\ntrap 'kill $(jobs -p)' EXI... | shell | chosen |
[
{
"from": "system",
"value": "Comment out legacy pman calling.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n# Start chris server\npython manage.py runserver 0.0.0.0:8000\n# Start pman server\npman --raw 1 --http --port 5010 --listeners 12\n\nexec \"$@\"\n"
},
{
"from": "gpt",
"... | shell | chosen |
[
{
"from": "system",
"value": "Move bundle back into exec command to avoid timeout\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -e\n\nif [ \"$1\" = 'ahn' ]; then\n if [ -z \"$SECRETS_BUCKET_NAME\" ]; then\n echo >&2 'error: missing SECRETS_BUCKET_NAME environment variable'\n exit ... | shell | chosen |
[
{
"from": "system",
"value": "Remove the backup file immediately\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n# This script is a developer tool, to be used by maintainers\n# to update '@since TODO' entries with actual Jenkins release versions.\n\nset -euo pipefail\n\nme=\"$( basename \"$0\"... | shell | chosen |
[
{
"from": "system",
"value": "Make sure to pull latest from github as part of deployment\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nrm -rf drafthouse-seat-finder\nCGO_ENABLED=0 go build -a --installsuffix cgo --ldflags=\"-s\" .\ndocker build -t jroyal/drafthouse-seat-finder .\ndoc... | shell | chosen |
[
{
"from": "system",
"value": "Add lightpaper to Mac software installation list.\n"
},
{
"from": "human",
"value": "set -e\nruby -e \"$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)\"\n\n# Install GNU core utilities (those that come with OS X are outdated)\n# Don’t forget to add `$(brew --p... | shell | chosen |
[
{
"from": "system",
"value": "Add alias for opening SourceTree\n"
},
{
"from": "human",
"value": "# Shortcuts\nalias c='clear'\nalias h='history'\nalias hgrep='history | grep'\n\n# Extend existing commands\nalias ls='ls -FG'\nalias git=hub # https://github.com/github/hub\nalias tree='tree --dirs... | shell | chosen |
[
{
"from": "system",
"value": "containers/ws: Change tagging schema from date to cockpit version\n\nThe upstream version number is a more useful description. Tags already\nhave an associated creation date anyway.\n"
},
{
"from": "human",
"value": "#!/bin/sh\nset -eux\n\nif [ -z \"${RUNC:-}\" ]; t... | shell | chosen |
[
{
"from": "system",
"value": "Add zsh support for completion of full command line\n"
},
{
"from": "human",
"value": "if [[ ! -o interactive ]]; then\n return\nfi\n\ncompctl -K _rbenv rbenv\n\n_rbenv() {\n local word words completions\n read -cA words\n word=\"${words[2]}\"\n\n if [ \"${#w... | shell | chosen |
[
{
"from": "system",
"value": "Remove XV11 code in favor of Sanse Sweep.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\nMAPFILE=${HOME}/.arlobot/rosmaps/${1}\nif [ $# -eq 0 ]\nthen\n echo \"You must provide a map file name.\"\n echo \"Run listMaps.sh for a list of your maps.\"\n ... | shell | chosen |
[
{
"from": "system",
"value": "Revert jmh parameter change (-f 20 -> -wi 5 -i 5 -f 1)\n"
},
{
"from": "human",
"value": "../cpuPreBenchmark.sh\nsudo update-alternatives --set java /usr/lib/jvm/java-8-oracle/jre/bin/java; \nexport JAVA_HOME=/usr/lib/jvm/java-8-oracle\njava -jar target/benchmarks.j... | shell | chosen |
[
{
"from": "system",
"value": "[resources] Remove failing test from deps\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n# This script executes outside of the Python virtual environment,\n# hence the packages installed will be system-wide, and not\n# specific to the virtual environment.\n\necho... | shell | chosen |
[
{
"from": "system",
"value": "Disable automatic puppet restarting on our machines. We should work toward getting these internal scripts out of the public repo. No ticket for this as it's pure IT work.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n# check that puppet is running and start it if ... | shell | chosen |
[
{
"from": "system",
"value": "Add mdp for Markdown Preview.\n"
},
{
"from": "human",
"value": "alias reload!='. ~/.zshrc'\nalias @='open /Applications/Atom.app; atom '\nalias shenv='sshpass -p \"devpass\" ssh dev@commerce.mesh.mx.local'\nalias startenv='VBoxManage startvm platform-dev --type hea... | shell | chosen |
[
{
"from": "system",
"value": "Update list alias to show human readable\n"
},
{
"from": "human",
"value": "alias reload!='. ~/.zshrc'\nalias l='ls -al'\nalias mkp='mkdir -p'\n"
},
{
"from": "gpt",
"value": "alias reload!='. ~/.zshrc'\nalias l='ls -ahl'\nalias mkp='mkdir -p'\n"
}
] | shell | chosen |
[
{
"from": "system",
"value": "Handle the case of unknown operations and support HPKPinx\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\njava -jar /opt/certzure/certzure.jar $1 $2 $3 $4\n"
},
{
"from": "gpt",
"value": "#!/bin/sh\n\nif [ $1 = 'deploy_challenge' ] || [ $1 = 'clean_chall... | shell | chosen |
[
{
"from": "system",
"value": "Reset bosh releases before mounting into the bosh-release-test container\n\n- This prevents a 'blob cannot be found' error due to the docker container looking for the blob in the home/.bosh directory (this directory was not volume mounted from the host machine)\n\n[#164914118](... | shell | chosen |
[
{
"from": "system",
"value": "Disable pulse on OSX by default\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nCFLAGS=${CFLAGS}\nLDFLAGS=${LDFLAGS}\n\ncase \"${ARCH}\" in\n x86_64*)\n CFLAGS=\"${CFLAGS} -m64 -march=core2 -mtune=core2\"\n LDFLAGS=\"${LDFLAGS} -m64\"\n ;;\n ... | shell | chosen |
[
{
"from": "system",
"value": "Use cached variable for git cl completion\n\n__git_cl_all_commands is used to cache the result of\n__git_cl_commands(), but the actual code wasn't using it and was calling\nthe function everytime instead.\n\nChange-Id: Ia2ce32b7de2812349808ec9aceeacf5adf463700\nReviewed-on: htt... | shell | chosen |
[
{
"from": "system",
"value": "bots: Put back golang into rhel/centos-7 images\n\nWe still need these for running builds/tests for the stable rhel-7.x\nbranches.\n\nCloses #12351\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -eu\n\n# Download cockpit.spec, replace `npm-version` macro and ... | shell | chosen |
[
{
"from": "system",
"value": "Make sure xz-utils are installed.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n# This runs inside docker container as root to build GRTE\n\nset -ex\napt-get update\napt-get install -y texinfo texi2html\n\nGRTE_PREFIX=$1\nGRTE_TMPDIR=$2\nmkdir ${GRTE_PREFIX}\n\n... | shell | chosen |
[
{
"from": "system",
"value": "Remove and replace IP address restrictions for service nodes\n\nService nodes work in a warden container, applications connect to the nodes from other than 127.0.0.1.\n"
},
{
"from": "human",
"value": "#!/bin/bash -ex\n\n# gems\ngem install cf admin-cf-plugin --no-r... | shell | chosen |
[
{
"from": "system",
"value": "Remove previous version of docs when creating new one\n"
},
{
"from": "human",
"value": "bash gradlew dokkaHtml\nbash gradlew dokkaJavadoc\n\nmkdir -p docs\n\n# Dokka documentation will be the main page\ncp -R build/dokka/html docs\n\npushd docs\nmv html dist\npopd\... | shell | chosen |
[
{
"from": "system",
"value": "Fix android build on macOS\n"
},
{
"from": "human",
"value": "#!/bin/sh\nfor container in $(docker ps -aq); do\n echo deleting container: $container\n docker rm $container\ndone\n\nfor image in $(docker images --format \"{{.ID}}\"); do\n echo deleting $ima... | shell | chosen |
[
{
"from": "system",
"value": "Print folding log statements for unit tests only if we run make check\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n#\n# Copyright (c) 2018 The Bitcoin Core developers\n# Copyright (c) 2019 The BitcoinUnlimited developers\n# Distributed under the MIT softw... | shell | chosen |
[
{
"from": "system",
"value": "Use cut instead of awk\n"
},
{
"from": "human",
"value": "#!/bin/sh -e\n\ncmdname=\"$(basename $0)\"\nbin_path=\"$( cd $(dirname $0) && pwd )\"\n\nusage() {\n cat << USAGE >&2\nUsage:\n $cmdname [-h] [--help]\n\n -h\n --help\n Show this help message... | shell | chosen |
[
{
"from": "system",
"value": "Modify CI pipeline task to print bundler and ruby environment\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nset -e\n\nmy_dir=\"$( cd $(dirname $0) && pwd )\"\nrelease_dir=\"$( cd ${my_dir} && cd ../.. && pwd )\"\nworkspace_dir=\"$( cd ${release_dir} && c... | shell | chosen |
[
{
"from": "system",
"value": "[bashrc] Update kudu1 for Ubuntu Bionic.\n"
},
{
"from": "human",
"value": "DIR_THIS=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\nsource $DIR_THIS/ubuntu_common.bash\n\nsource $DIR_THIS/../ros/setup_ros_130s-kudu1.bash\n"
},
{
"from": "gpt",
... | shell | chosen |
[
{
"from": "system",
"value": "Use `gp` to create a tracking branch and push\n\nIt also includes a fail-safe to prevent accidental usage of `-f` or\n`--force` and remind the user to use `--force-with-lease`.\n"
},
{
"from": "human",
"value": "function git_current_branch() {\n git symbolic-ref HE... | shell | chosen |
[
{
"from": "system",
"value": "Fix remove arguments in runner\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nHOST=\"127.0.0.1\"\nPORT=5432\nUSER=\"root\"\nPASSWORD=\"\"\nDB=\"root\"\n\nfor i in \"$@\"\ndo\ncase $i in\n --gpgsql-host=*)\n HOST=\"${i#*=}\"\n shift # past argument=value\... | shell | chosen |
[
{
"from": "system",
"value": "FIx glob usage to avoid problems with directories that contain spaces\n\nSigned-off-by: Joas Schilling <ab43a7c9cb5b2380afc4ddf8b3e2583169b39a02@schilljs.com>\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nfunction recursive_optimize_images() {\n\tcd \"$1... | shell | chosen |
[
{
"from": "system",
"value": "Update openresty + minor fixes"
},
{
"from": "human",
"value": "#!/bin/bash\n\nVERSION=${1:-\"1.9.3.2\"}\nPKG=ngx_openresty-$VERSION\n\napt-get update\napt-get install -y libpcre3-dev build-essential libssl-dev sudo libreadline-dev libncurses5-dev libpcre3-dev libss... | shell | chosen |
[
{
"from": "system",
"value": "Fix removal of dist files if dist folder is not existing\n"
},
{
"from": "human",
"value": "#!/usr/bin/env zsh\nset -e\n\nif [ $# -eq 0 ]\n then\n echo \"No version number supplied\"\n exit 1\nfi\n\nexport VERSION=$1\nexport KP_SVN=\"http://svn.km3net.de/auxi... | shell | chosen |
[
{
"from": "system",
"value": "Support ADT bundle on any platform\n"
},
{
"from": "human",
"value": "# Add tools and platform-tools directories to the system PATH if they exist\n# (and are not already in the system PATH)\nfor toolpath in ~/adt-bundle-linux-x86_64/sdk/{platform-,}tools; do\n if... | shell | chosen |
[
{
"from": "system",
"value": "Use makefile on Semaphore and print what rustfmt version is being used.\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -Eeu\n\ncd service_crategen\ngit submodule update --init\ncargo run -- generate -c ./services.json -o ../rusoto/services\ndiff=$(git diff)\nif... | shell | chosen |
[
{
"from": "system",
"value": "Revert \"revert this patch once the mac builder is working\"\n\nThis reverts commit f16747624b1dba1e6ddc2743e08841f25f03bfea.\n"
},
{
"from": "human",
"value": "# Run tests\nif [[ \"$(uname)\" = \"Darwin\" ]]; then\n timeout_cmd=\"gtimeout\"\nelse\n timeout_cm... | shell | chosen |
[
{
"from": "system",
"value": "Set VSFTPD_PATH on travis to test ftp code\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nset -e\nset -x\n\n# bottle does not support python 2.4, so for that\n# we have to run the app using system python (2.7) in a separate process.\n# bottle supports python 2.5, b... | shell | chosen |
[
{
"from": "system",
"value": "Fix to Destiny 2 bash scrip\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nset -e\n\nAPI_KEY=`less ../secrets.yaml | grep destiny2_api_key | awk '{print $2}'`\n\nSTRIKER=2958378809\nSUNBREAKER=3105935002\nSENTINEL=3382391785\n\nNIGHTSTALKER=3225959819\nA... | shell | chosen |
[
{
"from": "system",
"value": "Upgrade Java 8 version in CI image\n\nCloses gh-22517\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -e\n\ncase \"$1\" in\n\tjava8)\n\t\t echo \"https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u252-b09/OpenJDK8U-jdk_x64_linux_hotspot_8u2... | shell | chosen |
[
{
"from": "system",
"value": "chore(build): Normalize sort between coreutils versions\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nset -e\nset -o pipefail\n\nfinder () {\n echo -n ' '\n find $@ -type f | sort | xargs echo -n ||:\n}\n\necho -n \"nobase_dist_pkgdata_DATA = \\$(L... | shell | chosen |
[
{
"from": "system",
"value": "Update postgresql to 9.4.1209 JDBC 42\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -e\n\nmkdir -p $TEAMCITY_DATA_PATH/lib/jdbc $TEAMCITY_DATA_PATH/config\nif [ ! -f \"$TEAMCITY_DATA_PATH/lib/jdbc/postgresql-9.3-1103.jdbc41.jar\" ];\nthen\n echo \"Downloadi... | shell | chosen |
[
{
"from": "system",
"value": "Switch from deprecated scheduler.rb to background-worker.rb.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -e\n\nif [ \"$1\" = 'zammad' ]; then\n echo -e \"\\n Starting services... \\n\"\n\n # starting services\n service postgresql start\n service elasti... | shell | chosen |
[
{
"from": "system",
"value": "Add script to check if MANIFEST.json is changes in wpt\n"
},
{
"from": "human",
"value": "#!/bin/bash\ndiff=$(git diff -- tests/**/MANIFEST.json)\necho \"$diff\"\n[[ ! $diff ]]\n"
},
{
"from": "gpt",
"value": "#!/bin/bash\ndiff=$(git diff -- tests/wpt/**... | shell | chosen |
[
{
"from": "system",
"value": "Allow extra arguments to be passed to soyweb (e.g. --port)\n\nSummary: Pass any extra arguments down to the soyweb executable in soyweb-local.sh\n\nTest Plan:\n```\n$ ./docs/soyweb-local.sh --port 8080\nListening on /0:0:0:0:0:0:0:0:8080\n$ ./docs/soyweb-local.sh\nListening on... | shell | chosen |
[
{
"from": "system",
"value": "FIX : correct docker syntax error\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\ndocker rm -vf $(docker ps -aq)\ndocker volume rm -f $(docker volume ls -q)\ndocker rmi -f $(docker images -q)\n\n\n"
},
{
"from": "gpt",
"value": "#!/bin/bash\n\ndocker r... | shell | chosen |
[
{
"from": "system",
"value": "Remove relative .local/bin from PATH\n"
},
{
"from": "human",
"value": "\n# prepend_colon(val, var)\nprepend_colon() {\n if [ -z \"$2\" ]; then\n echo \"$1\"\n else\n echo \"$1:$2\"\n fi\n}\n\n# prepend_PATHs(path)\nprepend_PATHs() {\n if [ -d \"$1/sbin\" ... | shell | chosen |
[
{
"from": "system",
"value": "Fix virtualbox install script to fail properly if an error occurs\n"
},
{
"from": "human",
"value": "set -ex\n\nif ! grep --quiet \"deb http://download.virtualbox.org/virtualbox/debian '$(lsb_release -cs)' contrib non-free\" /etc/apt/sources.list.d/virtualbox.list; ... | shell | chosen |
[
{
"from": "system",
"value": "Add postgres tool to path for osx\n"
},
{
"from": "human",
"value": "export PATH=$PATH:$HOME/.bin/\n\n# Set default go workspace\nexport GOPATH=$HOME/.go\nexport PATH=$PATH:$HOME/.go/bin\n\nif [[ \"$os\" = \"$linux_str\" ]]; then\n #PATH\n export PATH=$PATH:$H... | shell | chosen |
[
{
"from": "system",
"value": "Add alias to make finding files easier\n\nI constantly type \"find . -name foo*\" or some other variation. I\nfigured it was time to make the syntax much easier to remember :)\n"
},
{
"from": "human",
"value": "alias l='ls -F'\nalias ll='ls -lhF'\nalias la='ls -lhaF... | shell | chosen |
[
{
"from": "system",
"value": "Change name of test fastq in biojenkins script\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -xe\n\nwdir=`pwd`\n\nrm -rf build\nmkdir build && cd build\n\ncmake $wdir\nmake\n\n# for use in tests below\ntmpdir=biojenkins-out/$RANDOM\nmkdir -p $tmpdir\n\n# tes... | shell | chosen |
[
{
"from": "system",
"value": "Change target version to 25\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\ncase \"${TRAVIS_OS_NAME}\" in\n osx)\n example_tmp/node_modules/.bin/appium --session-override > appium.out &\n ;;\n linux)\n android list avd\n touch /home/travis/.android/rep... | shell | chosen |
[
{
"from": "system",
"value": "Update the wasi-libc bundled with libstd\n"
},
{
"from": "human",
"value": "#!/bin/sh\n#\n# ignore-tidy-linelength\n\nset -ex\n\n# Originally from https://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz\ncurl https://ci-mirrors.rust-lan... | shell | chosen |
[
{
"from": "system",
"value": "Update extension install script for Composer\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nrsync -Rarz admin ../../../\nrsync -Rarz catalog ../../../\nrm -Rf vendor"
},
{
"from": "gpt",
"value": "#!/bin/sh\n\ncd ./vendor/andyvr/stripe-payments\nrsync -... | shell | chosen |
[
{
"from": "system",
"value": "Fix typo in mysql prep for cinder controller.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\necho \necho [+] Installing cinder packages for controller\necho \nsleep 2\n\napt-get install -y cinder-api\napt-get install -y cinder-scheduler\n\nsource /root/pa... | shell | chosen |
[
{
"from": "system",
"value": "Prepare replica: Exit after incorrect usage\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n# Prepares the replica file.\n\n# If any command here fails, exit the script\nset -e\n\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\nsource $DIR/config.sh... | shell | chosen |
[
{
"from": "system",
"value": "Update make invocation (allow job parallelism)\n"
},
{
"from": "human",
"value": "#!/dev/null\n\nif ! test \"${#}\" -ge 1 ; then\n\techo \"[ee] invalid arguments; aborting!\" >&2\n\texit 1\nfi\n\n_do_exec1 make -f <(\n\t\tcat <<'EOS'\n.DEFAULT : default\n.PHONY :\n.... | shell | chosen |
[
{
"from": "system",
"value": "Use new `sentry config generate-secret-key`\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -e\n\n# first check if we're passing flags, if so\n# prepend with sentry\nif [ \"${1:0:1}\" = '-' ]; then\n\tset -- sentry \"$@\"\nfi\n\ncase \"$1\" in\n\tcelery|cleanu... | shell | chosen |
[
{
"from": "system",
"value": "Remove navigation team from morning seal\n\nThis team no longer exists."
},
{
"from": "human",
"value": "#!/bin/bash\n\nteams=(\n content-tools\n email\n frontend-design\n govuk-madetech\n modelling-services\n navigation\n platform_support\n publishing-front... | shell | chosen |
[
{
"from": "system",
"value": "Change Impala version to v1.0.1\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n# Copyright 2012 Cloudera Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You ... | shell | chosen |
[
{
"from": "system",
"value": "Increase TOC depth because of changed headings\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\npandoc -s -S --toc -c api_2_0_spec.css api_2_0_spec.md -o api_2_0_spec.html\n\n"
},
{
"from": "gpt",
"value": "#!/bin/bash\n\npandoc -s -S --toc --toc-depth=... | shell | chosen |
[
{
"from": "system",
"value": "Update pkg-config to work with MinGW\n\nAdd rant.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nsource CONFIG.sh\n\nif [ -n \"$1\" ]; then\n cd $1\nfi\n\n# pkg-config usually requires GLIB, which requires pkg-config. Conjure a chicken\n# to lay you an egg lik... | shell | chosen |
[
{
"from": "system",
"value": "Add the PyObjC frameworks to test runner\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nsudo easy_install pip\nsudo pip install ez_setup\nsudo pip install -q pyyaml\nsudo pip install mock\nsudo pip install mox\nsudo pip install google_apputils\npython -m unittest... | shell | chosen |
[
{
"from": "system",
"value": "Remove -e flag from docker login\n\n[ci skip]\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\ndocker login -e=\".\" -u=\"$QUAY_USERNAME\" -p=\"$QUAY_PASSWORD\" quay.io\ndocker tag keboola/gmail-extractor quay.io/keboola/gmail-extractor:$TRAVIS_TAG\ndocker images\n... | shell | chosen |
[
{
"from": "system",
"value": "Make post deploy test silent\n"
},
{
"from": "human",
"value": "status_code=$(curl --write-out %{http_code} \"http://counter.born2code.net/foo\")\nif [ $status_code -ne 200 ]; then\n fail \"Deploy failure: site returned $status_code, 200 was expected\";\nfi\n"
},... | shell | chosen |
[
{
"from": "system",
"value": "Add missing grep -v filter."
},
{
"from": "human",
"value": "#!/bin/bash\n# set -x\n\n# This list is from https://charlie.bz/blog/things-that-clear-rubys-method-cache\n\nIGNORE_FILE=/tmp/cache_busters_ignore\ncat script/ignores | ruby -ne 'puts $_.split(/\\s+###/)[0... | shell | chosen |
[
{
"from": "system",
"value": "Mark buildkite-agent executable in docker image\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -e\n\nimage_tag=\"buildkiteci/agent:buildkite-agent-linux-build-${BUILDKITE_BUILD_NUMBER}\"\n\nrm -rf pkg\nmkdir -p pkg\n\necho '--- Downloading :linux: binaries'\nbu... | shell | chosen |
[
{
"from": "system",
"value": "Add --stat option to show some commit dtl incl filenames\n"
},
{
"from": "human",
"value": "#!/bin/bash\n# Displays entire git log in a useful format.\n# Ref: http://githowto.com/history\n# intention is to pipe this as input to egrep to look for desired pattern(s).... | shell | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.