conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Use minecraft 1.8.5 for building spigot\n" }, { "from": "human", "value": "#\n# Spigot BuildTools\n# http://www.spigotmc.org/wiki/buildtools/\n#\n\nexport MAVEN_OPTS=\"-Xmx2G\"\njava -Xmx2G \\\n\t-jar BuildTools.jar\n\t# --rev 1.8.4\n" }, { "from": "gpt", ...
shell
chosen
[ { "from": "system", "value": "Fix typo + make test script executable.\n" }, { "from": "human", "value": "#!/bin/bash\n\nK8S_SOURCE_DIR=~/work/kubernetes\n\nmake\n${K8S/SOURCE_DIR}/cluster/kubectl.sh create -f testas.json \n${K8S/SOURCE_DIR}/cluster/kubectl.sh create -f testrc.json \n" }, {...
shell
chosen
[ { "from": "system", "value": "Fix PATH, ./bin can cause infinite loops of pain\n" }, { "from": "human", "value": "export PATH=\"./bin:$ZSH/bin:/usr/local/bin:/usr/local/sbin:$PATH\"\nexport MANPATH=\"/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH\"\n" }, { "from": "gpt",...
shell
chosen
[ { "from": "system", "value": "Update doctest test to run with the correct dirs\n" }, { "from": "human", "value": "#!/bin/bash\n\n# Load testing framework\n. ./testlib.sh\n\n# Test setup\n. ./test_setup.sh\n\nTEST_SUITE_NAME=\"Run python doctests\"\n\n# Don't count the total number of tests\nTOTA...
shell
chosen
[ { "from": "system", "value": "Add test for `rhino -require`.\n" }, { "from": "human", "value": "cd \"$(dirname \"$0\")\"\nfor cmd in rhino narwhal ringo phantomjs node; do\n\techo \"\"\n\techo \"Testing in $cmd...\"\n\t$cmd test.js\ndone\necho \"\"\necho \"Testing in a browser...\"\nopen index.h...
shell
chosen
[ { "from": "system", "value": "Use bash calculator instead of bc\n" }, { "from": "human", "value": "#!/bin/bash\n\nprintf_new() {\n str=$1\n num=$2\n v=$(printf \"%-${num}s\" \"$str\")\n printf \"${v// / }\"\n}\n\nRED='\\033[0;31m'\nGREEN='\\033[0;32m'\nNC='\\033[0m' # No Color\nCOMMAND=$1\nCHRLE...
shell
chosen
[ { "from": "system", "value": "Add path to redict config\n" }, { "from": "human", "value": "#!/bin/bash\n\n\nif [ \"$TRAVIS_BRANCH\" == \"rc-master\" ]; then\n S3_BUCKET=\"s3://sendgrid-knowledge-center-production\"\nelse\n S3_BUCKET=\"s3://sendgrid-knowledge-center-staging\"\nfi\nAWS_ACCESS_KE...
shell
chosen
[ { "from": "system", "value": "Create wd path before SetWorkingDirectory\n" }, { "from": "human", "value": "#!/bin/bash -e\n\nsource $GOPHER_INSTALLDIR/lib/gopherbot_v1.sh\n\nif [ $# -lt 3 ]\nthen\n echo \"Not enough arguments to git-sync; usage: git-sync <url> <branch> <dir> (true)\" >&2\n ...
shell
chosen
[ { "from": "system", "value": "Fix CI condition where fidelity check runs" }, { "from": "human", "value": "#!/usr/bin/env bash\n\n##\n# Copyright 2019 Google Inc. All Rights Reserved.\n# Licensed under the Apache License, Version 2.0 (the 'License');\n# you may not use this file except in complia...
shell
chosen
[ { "from": "system", "value": "Remove RVM from build script.\n" }, { "from": "human", "value": "#!/bin/bash -x\nsource '/usr/local/lib/rvm'\nexport GEM_HOME=\"/home/jenkins/bundles/${JOB_NAME}\"\nmkdir -p \"${GEM_HOME}\"\nbundle install && bundle exec rake db:create db:migrate db:test:prepare && ...
shell
chosen
[ { "from": "system", "value": "Update travis message when building framework on travis\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\nset -e\nset -o pipefail\n\nif [[ ${PLATFORM} == \"osx\" ]]; then\n # Build osx project\n echo \"Building osx project\"\n CMAKE_OPTIONS=\"-DUNIT...
shell
chosen
[ { "from": "system", "value": "CHG: Update travis, apparently path can not be set from various script\n" }, { "from": "human", "value": "#! /bin/bash\nset -e\necho \"Build Library\"\n# Update path for finding deps\nexport PATH=${OPENBLAS_ROOT}:${OPENCV_ROOT}:${DOXYGEN_ROOT}/bin:${PATH}\ncd $TRAVI...
shell
chosen
[ { "from": "system", "value": "Add additional if statement to remove var=\"undefined\".\n" }, { "from": "human", "value": "#!/bin/bash\n#$ -l h_rt=%(timelimit)s\n#$ -N %(runname)s\n#$ -o %(qsublogname)s\n#$ -j y\n#$ -v PATH,PYTHONPATH,LD_LIBRARY_PATH\n#$ -S /bin/bash\n%(extra_qsub_params)s\n\nech...
shell
chosen
[ { "from": "system", "value": "Include `scripts` in Keter bundle\n" }, { "from": "human", "value": "#!/bin/bash -ex\n\n# Creates Keter bundle of app.\n# See: https://github.com/snoyberg/keter#bundles\n\n\n# Find app binary:\nzoomhub=$(find .stack-work/dist -type f -name zoomhub | tr -d '\\n')\n\n...
shell
chosen
[ { "from": "system", "value": "Add small examples for iteration on users.\n" }, { "from": "human", "value": "#! /bin/bash\n\n./cosy.lua server:filter \"return function (yield, store) for i = 1, 10 do yield (i, i) end end\"\n./cosy.lua server:filter \"return function (yield, store) for i = 1, 10 d...
shell
chosen
[ { "from": "system", "value": "Use OUTPUT_DIR rather than BIN\n" }, { "from": "human", "value": "#!/bin/bash\n\nsource activate mu18SV4\n\necho \"starting directory: `pwd`\"\n\nBIN=$( cd \"$( dirname \"$0\" )\" && pwd )\n\necho \"BIN=${BIN}\"\n\n#echo \"Starting launcher\"\n#echo \" SLURM_JOB_NU...
shell
chosen
[ { "from": "system", "value": "Make collect and list files executable\n" }, { "from": "human", "value": "#!/bin/bash\n\n# Check if user is root\nif [ \"$(id -u)\" -ne \"0\" ] ; then\n\techo \"This script must be executed with root privileges.\"\n exit 1\nfi\n\n# Variables prompts\nread -p \"Wh...
shell
chosen
[ { "from": "system", "value": "ci(Travis): Set upstream and pull before push\n" }, { "from": "human", "value": "#!/bin/sh\n\n# Bash function for doing things as part of Travis build\n#\n# Why? mostly because Travis deployment scripts need to be a\n# a single command https://docs.travis-ci.com/use...
shell
chosen
[ { "from": "system", "value": "Switch root to use fish shell as well\n" }, { "from": "human", "value": "#!/bin/sh\n\nbrew install fish\ngrep -q '^/usr/local/bin/fish$' /etc/shells; or echo '/usr/local/bin/fish' | \\\n sudo tee -a /etc/shells\nchsh -s /usr/local/bin/fish\n" }, { "from":...
shell
chosen
[ { "from": "system", "value": "Refactor update all qor repos script\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\nroot=$GOPATH/src/github.com/qor\n\ntmp_dir=$(mktemp -d)\n\ntrap \"rm -rf $tmp_dir\" EXIT\n\nfunction pull_chances {\n local pkg=$(basename $1)\n local pkg_path=$root...
shell
chosen
[ { "from": "system", "value": "Revert \"[freebsd] Install automake before kicking off the build.\"\n\nThis reverts commit 08ab68049266ba528ec2dd7f0d1611e391eda8dd.\n" }, { "from": "human", "value": "#! /usr/bin/env bash\n\nOS=$(uname -s)\nif test x\"${OS}\" != x\"FreeBSD\"; then\n wget -N http...
shell
chosen
[ { "from": "system", "value": "Use Admin user to install chaincode" }, { "from": "human", "value": "EXT_CC_IP=$1\nHOST_IP=$2\nCHANNEL_ID=mychannel\n\nexport PKGID=basic_1.0:5a294a12a1a89cd4eed3d4234fbc79f42eab2ac20cd176bc8ebbc07c597cd0ee\n\n# Set hostname of external chaincode node\necho $EXT_CC_...
shell
chosen
[ { "from": "system", "value": "Disable network access by default\n" }, { "from": "human", "value": "#!/bin/sh\n#$Id$\n#Copyright (c) 2016 Pierre Pronchery <khorben@defora.org>\n#This file is part of DeforaOS Desktop Phone\n#This program is free software: you can redistribute it and/or modify\n#it...
shell
chosen
[ { "from": "system", "value": "Use broth to grab butler to push butler\n" }, { "from": "human", "value": "#!/bin/bash -xe\n\nif [ -n \"${CI_COMMIT_TAG}\" ]; then\n # pushing a stable version\n export CHANNEL_SUFFIX=\"\"\n export USER_VERSION=`echo ${CI_COMMIT_TAG} | tr -d \"v\"` # v9.0.0 => 9....
shell
chosen
[ { "from": "system", "value": "Use ENV variables to specify the cert and key file in the generate script\n\nThis will allow us to generate new postgres certs with the following command:\n\nNEW_CERT_FILE=/var/www/miq/vmdb/certs/postgres.crt \\\nNEW_KEY_FILE=/var/www/miq/vmdb/certs/postgres.key \\\ngenerate_mi...
shell
chosen
[ { "from": "system", "value": "Remove jest from global npm package installer\n\nIt doesn't work for some projects where jest is configured differently.\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\nsource ~/dotfiles/setup/header.sh\n# Load in environment variables for brew, nvm, node,...
shell
chosen
[ { "from": "system", "value": "Add full path to packer\n" }, { "from": "human", "value": "#!/bin/bash\n\npacker build analyze.json\ndocker import - baseball/analyze:latest < analyze.tar \n" }, { "from": "gpt", "value": "#!/bin/bash\n\npacker=\"/usr/local/bin/packer\"\n$packer build an...
shell
chosen
[ { "from": "system", "value": "Add loom to deps for CI\n" }, { "from": "human", "value": "#!/bin/bash\nif [ $TRAVIS_OS_NAME == 'osx' ]; then\n export PATH=\"$HOME/miniconda/bin:$PATH\"\n source $HOME/miniconda/bin/activate\n ## Somehow we need this to execute the setup.py at all...\n #pip ins...
shell
chosen
[ { "from": "system", "value": "Add python-paramiko to vagrant provision script\n" }, { "from": "human", "value": "#!/usr/bin/env bash\napt-get update -qq 1> /dev/null\n\n# Dev requirements\napt-get install -qq -y python-flask python-cherrypy3 python-objgraph htop 1> /dev/null\n\n# Build requireme...
shell
chosen
[ { "from": "system", "value": "Update JDK 10 build number\n" }, { "from": "human", "value": "#!/bin/bash\nset -e\n\nJDK_FEATURE=10\nJDK_BUILD=31\nJDK_ARCHIVE=jdk-${JDK_FEATURE}-ea+${JDK_BUILD}_linux-x64_bin.tar.gz\n\ncd ~\nwget http://download.java.net/java/jdk${JDK_FEATURE}/archive/${JDK_BUILD}/...
shell
chosen
[ { "from": "system", "value": "Print status of all tests\n" }, { "from": "human", "value": "include command.validator.CommandValidator\n\nTestExecutor(){\n\texecuteTest(){\n\t\tlocal testClass=${1}\n\n\t\tlocal path=($(echo ${testClass} | sed \"s#\\([A-Z]\\)# \\1#g\"))\n\n\t\tfor p in ${path[@],,...
shell
chosen
[ { "from": "system", "value": "Modify to be able to run regardless of current directory\n" }, { "from": "human", "value": "#!/bin/bash\n. ohai/find-ruby.sh\n$RUBY_BIN ohai/ohai2nad.rb\n" }, { "from": "gpt", "value": "#!/bin/bash\n\n# Need to figure out our script dir, resolving symlin...
shell
chosen
[ { "from": "system", "value": "Replace xcsel function with just an alias\n" }, { "from": "human", "value": "#xc function courtesy of http://gist.github.com/subdigital/5420709\nfunction xc {\n local xcode_proj\n xcode_proj=(*.{xcworkspace,xcodeproj}(N))\n\n if [[ ${#xcode_proj} -eq 0 ]]; then\n...
shell
chosen
[ { "from": "system", "value": "Fix gtest package: remove reference to legacy NACL_GLIBC variable\n\nThis package is disabled by default (since it ships with the\nSDK) so it doesn't get the tested regularly.\n\nTBR=binji\n\nReview URL: https://codereview.chromium.org/679263002\n" }, { "from": "human",...
shell
chosen
[ { "from": "system", "value": "Use ~/.ssh/config instead of ~/.ssh/known_hosts for ssh host name auto-completion.\n" }, { "from": "human", "value": "# Show auto-completion on first tab (default is second tab).\nbind 'set show-all-if-ambiguous on'\n# No empty command completion.\nshopt -s no_empty...
shell
chosen
[ { "from": "system", "value": "Remove <pathspec> to enforce removals in CI builds\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\n# CI deployment script (runs after publish script)\n\nif [ \"$TRAVIS_PULL_REQUEST\" = \"false\" -a \"$TRAVIS_BRANCH\" = \"develop\" ]; then\n export SSH_DIR...
shell
chosen
[ { "from": "system", "value": "Make script work for crontab\n" }, { "from": "human", "value": "#!/bin/bash\n# See https://help.github.com/articles/generating-ssh-keys/ to enable SSH to GitHub, needed for sript\npython /var/www/Swind/py/getSMHI.py\ngit add ./data\ngit commit -q -m 'Latest day'\ngi...
shell
chosen
[ { "from": "system", "value": "Remove bundle install from script.\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\nsource ~/.rvm/scripts/rvm\nrvm use default\nbundle install\nbundle exec pod trunk push\n" }, { "from": "gpt", "value": "#!/usr/bin/env bash\n\nsource ~/.rvm/scri...
shell
chosen
[ { "from": "system", "value": "Fix repo path for helm publish script.\n" }, { "from": "human", "value": "#!/bin/sh\n\ncrVersion=\"0.2.3\"\nhelmVersion=\"3.0.2\"\nchartDir=\"./charts/orbit\"\nowner=\"orbit\"\nrepo=\"orbit.githib.com/orbit\"\ntoken=$GITHUB_TOKEN\nplatform=\"linux\"\n\ncurl -sSLo he...
shell
chosen
[ { "from": "system", "value": "Add some docs about some possible dependencies needed\n\nThanks to stefw for trying this out and reporting these issues :)\n" }, { "from": "human", "value": "#!/bin/bash\n\n# this script will install vagrant-hostmanager and patch it with the extra\n# features that a...
shell
chosen
[ { "from": "system", "value": "Extend `gh` function to open issues/pulls/wiki pages.\n" }, { "from": "human", "value": "function gh() {\n open \"https://$(git config remote.origin.url | sed 's/\\.git//' | sed 's/https:\\/\\///' | sed 's/git:\\/\\///' | sed 's/git@//' | tr ':' '/')\"\n}\n" }, ...
shell
chosen
[ { "from": "system", "value": "Update cask command and applications installed for new DSL\n" }, { "from": "human", "value": "#!/bin/sh\n#\n# This installs some native OS X apps\n\nbrew tap phinze/homebrew-cask\nbrew install brew-cask\n\nfunction installcask() {\n brew cask install \"${@}\" 2> ...
shell
chosen
[ { "from": "system", "value": "Fix for the shell script so ENV sets up right\n" }, { "from": "human", "value": "#!/bin/sh\n\n# Path on the file system where the BI server was installed\nBI_SERVER_PATH=/usr/local/pentaho/server/biserver-ce\n\n# URL that the BI server can is running on (needed to p...
shell
chosen
[ { "from": "system", "value": "Add header to binding-c binding-commons Makefiles\n\ngit-svn-id: 6cb0c57df7a4a7d32342646683f5f1b5f4d88845@2215 9ab3861e-6c05-4e1b-b5ef-99af60850597\n" }, { "from": "human", "value": "#!/bin/bash\n\n scriptDir=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\...
shell
chosen
[ { "from": "system", "value": "Load datetime when interactive. General tidy.\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\nfunction interactive_load() {\n export TERM=xterm-256color\n export PATH=$HOME/bin:$PATH\n module color util\n source \"$(module_get_path interactive)...
shell
chosen
[ { "from": "system", "value": "tests: Add --exclude integer,parse_iso8601 (temporarily) to make Travis pass until uninitialized read issue in FormatISO8601DateTime is fixed\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n#\n# Copyright (c) 2019 The Bitcoin Core developers\n# Distributed u...
shell
chosen
[ { "from": "system", "value": "Move schema fix after presite" }, { "from": "human", "value": "#!/bin/bash\n\nset -x\nset -e\n\nscripts/pre-deploy.sh\ncp build/vega-lite-schema.json _data/ # the latest schema may not have been copied\n\ngit checkout gh-pages\ngit pull\ngit merge master --no-edit\...
shell
chosen
[ { "from": "system", "value": "Include zip files in binaries\n\ngit-svn-id: bc509ec38c1227b3e85ea1246fda136342965d36@1396520 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "#!/bin/sh\n\n# Get all files, inc .md1, .sha1\n# Run above the module.\n\n# mkdir -p repository.apac...
shell
chosen
[ { "from": "system", "value": "Add encoding to launcher script to fix UTF-8 issue.\n" }, { "from": "human", "value": "#!/bin/bash\n\njava -jar basking-*-jar-with-dependencies.jar \"$@\"\n" }, { "from": "gpt", "value": "#!/bin/bash\n\njava -Dfile.encoding=UTF-8 -jar basking-*-jar-with-...
shell
chosen
[ { "from": "system", "value": "Make sure we return success when clang-format is absent.\n" }, { "from": "human", "value": "#!/usr/bin/env bash\nif [ -z \"$CARP\" ]\nthen\n if [ -z \"$NIX_CC\" ]\n then\n\tstack build\n else\n\tcabal build\n fi\nfi\ncommand -v clang-format >/dev/null &&...
shell
chosen
[ { "from": "system", "value": "Remove use of `which` in place of a hash check for xcpretty\n" }, { "from": "human", "value": "#/usr/bin/env bash\n\n# Binaries\n\nXCRUN=$(which xcrun)\nXCPRETTY=$(which xcpretty)\nMKDIR=$(which mkdir)\nRM=$(which rm)\n\n# Project / Folders\n\nDERIVED_DATA_FOLDER=De...
shell
chosen
[ { "from": "system", "value": "Remove chmod commands for ant. Both executables comes with right permision from SVN\n\n\ngit-svn-id: fea306228a0c821168c534b698c8fa2a33280b3b@20453 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "#!/bin/sh\n\n# Copyright 2002-2004 The Apache ...
shell
chosen
[ { "from": "system", "value": "Exit at the end of clippy run\n" }, { "from": "human", "value": "#!/bin/bash\nset -eux -o pipefail\n\nif [ \"$PROJECT\" = \"docker\" ]; then\n\tpip install PyYAML\n\tpython generate-compose.py 1 > docker-compose.yml\n\tdocker-compose build\n\tdocker-compose up &\n\t...
shell
chosen
[ { "from": "system", "value": "Add PYTHONPATH env variable to fix import error\n" }, { "from": "human", "value": "#!/bin/bash\n\npython3.6 -m venv thinglang-env\nsource thinglang-env/bin/activate\npip install -r requirements.txt\n\nmkdir /app-src/build\ncd /app-src/build\ncmake ..\nmake\n/app-src...
shell
chosen
[ { "from": "system", "value": "Delete existing mysql data at installation MySQL 8.0.\n\nThis follow up 110284835d5088b409d146f5adeaa7525a696caa\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\nset -eux\n\napt-get purge -qq '^mysql*' '^libmysql*'\napt-key adv --keyserver pgp.mit.edu --rec...
shell
chosen
[ { "from": "system", "value": "Switch to nmap instead of arp-scan\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\n# -----------------------------------------------------------------------------\n# Info:\n# \tMiroslav Vidovic\n# \tlocal_network.sh\n# \t30.11.2016.-20:01:36\n# -----------...
shell
chosen
[ { "from": "system", "value": "Set the path for Cabal which is installed using HomeBrew\n" }, { "from": "human", "value": "#!/bin/bash -e\n\nLINE_SEPARATOR=\"===========================================\"\n\nmain() {\n arg_check $@\n build\n separate\n generate_report $@\n}\n\narg_check() {\n ...
shell
chosen
[ { "from": "system", "value": "Document Jsonpath and connecting to an individual container.\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\nkubectl exec -i -t $(kubectl get pod -l \"app=php-fpm\" -o jsonpath='{.items[0].metadata.name}') -- bash\n" }, { "from": "gpt", "value"...
shell
chosen
[ { "from": "system", "value": "Add the ability to run a single test\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\n# Note: run from root\n\nset -e\n\ntimestamp=$(date +%s)\nnamespace=\"e2e-tests-${timestamp}-$RANDOM\"\n\ntmpdir=`mktemp -d 2>/dev/null || mktemp -d -t 'valuetmpdir'`\ncp ...
shell
chosen
[ { "from": "system", "value": "Use $GNUPGHOME in GPG agent startup\n\nUse the value of $GNUPGHOME, to facilitate moving GPG's home.\n\nThis lets users who keep their GPG keyring on external devices or alternate\nfolders use the gpg-agent autostarting, even if $HOME/.gnupg does not exist.\n" }, { "fro...
shell
chosen
[ { "from": "system", "value": "Fix eventreg for hibernate interface issue.\n\nAlso eventreg fixes for new bw-util.\n\nAdd bw-util iml files\n" }, { "from": "human", "value": "#!/bin/bash\n\nrepo=~/bw-git/\n\ncd $repo\n\ninstall() {\n git clone git@github.com:Bedework/$1.git\n cd $1/\n mvn -q c...
shell
chosen
[ { "from": "system", "value": "Fix the CMD for Ubuntu.\n\nSigned-off-by: dlorenc <6cfcbe01c7994c3ade13f503f8673a231c7d9aac@google.com>\n" }, { "from": "human", "value": "#!/bin/bash\n\nreset_cmd() {\n local original_image_name=$1\n local container_id=$2\n local output_image_name=$3\n\n ...
shell
chosen
[ { "from": "system", "value": "Fix the build on Linux.\n" }, { "from": "human", "value": "#!/bin/sh\n\nexec 4<data2.i\n\nfunction f() {\n\texec 3<data1.i\n\tcat <&3 | while read F; do\n\t\techo $H $F\n\tdone\n}\n\ncat <&4 | while read H; do\n\tf\ndone\n" }, { "from": "gpt", "value": "...
shell
chosen
[ { "from": "system", "value": "Switch to the dumb protocol of git\n\nSwitch to the [dumb protocol](http://git-scm.com/book/en/v2/Git-Internals-Transfer-Protocols) of git" }, { "from": "human", "value": "#! /bin/bash\n\ngitresult=$( { git status | grep \"fatal: Not a git repository\" > /dev/null; ...
shell
chosen
[ { "from": "system", "value": "Use the correct paths, usernames for deploy" }, { "from": "human", "value": "#!/bin/bash\n\n# Set permissions properly, since appspec.yml gets this wrong.\nchown -R ricsun:web /vol/www/richmondsunlight.com/\nchmod -R g+w /vol/www/richmondsunlight.com/\n\n# Set up Ap...
shell
chosen
[ { "from": "system", "value": "Move to specific chain defined in compose file\n" }, { "from": "human", "value": "#!/bin/bash\n\nset -m\n\nif [ ! -f /config/.rabbitmq_password_set ]; then\n\t/set_rabbitmq_password.sh\nfi\n\nIPV6=`ip -6 addr list dev eth0 | grep global | sed \"s/.*inet6 //;s+/80.*+...
shell
chosen
[ { "from": "system", "value": "Fix permissions for data location\n" }, { "from": "human", "value": "#!/bin/bash\n\nSERVERTYPE=\"\"\n\ncase \"$1\" in\n\tsite-server)\n\t\tSERVERTYPE=\"--site-server\"\n\t\t;;\nesac\n\n# are we installed already?\nif [ -x /etc/init.d/papercut ]; then\n /etc/i...
shell
chosen
[ { "from": "system", "value": "Add drush @hostmaster uli to docker entrypoint.\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\nHOSTNAME=`hostname --fqdn`\n\n# Returns true once mysql can connect.\n# Thanks to http://askubuntu.com/questions/697798/shell-script-how-to-run-script-after-mys...
shell
chosen
[ { "from": "system", "value": "Put output directly to data/\n" }, { "from": "human", "value": "#!/bin/bash\n\nREPONAME=${1:-fedora}\n\ndnf repograph --repoid $REPONAME | cat - | tail -n +2 > $REPONAME.dot\ncd data && ln -s ../$REPONAME.dot packages && cd ../\n" }, { "from": "gpt", "va...
shell
chosen
[ { "from": "system", "value": "Create SCRAM credentials when running tests\n" }, { "from": "human", "value": "#!/bin/bash -ex\n\ntestCommand=\"$1\"\nextraArgs=\"$2\"\n\nexport HOST_IP=$(ifconfig | grep -E \"([0-9]{1,3}\\.){3}[0-9]{1,3}\" | grep -v 127.0.0.1 | awk '{ print $2 }' | cut -f2 -d: | he...
shell
chosen
[ { "from": "system", "value": "Allow creation of a virtualenv for artefact build\n" }, { "from": "human", "value": "#!/bin/bash -e\n\nif [ -z \"$VIRTUAL_ENV\" ]; then\n echo \"ERROR: You are not running within a virtual environment\" >&2\n exit 1\nfi\n\nmkdir -p artefacts; rm -f artefacts/*\nmk...
shell
chosen
[ { "from": "system", "value": "Build proper version based on tag + commit id\n" }, { "from": "human", "value": "#!/bin/bash\n\nmvn package\n\nversion=$(git describe | sed 's/^v//')\n\ntar -cv quickstart.sh VarSim.jar generate_small_test_ref.py varsim.py varsim_somatic.py | gzip > varsim-$version....
shell
chosen
[ { "from": "system", "value": "Clean users with a creation date of more than one day before cookie expiration\n" }, { "from": "human", "value": "#!/bin/bash\n\n# Summary: \n# This script will remove users, calendars and farming actions of anonymous users that \n# are more than one week old.\n...
shell
chosen
[ { "from": "system", "value": "Use pip search instead of pip show.\n\nPip on the warrior doesn't have a show function.\n" }, { "from": "human", "value": "#!/bin/bash\nsudo apt-get update\nif ! pip show requests 2>/dev/null | grep -q 'Version:'\nthen\n echo \"Installing python-requests\"\n sudo ...
shell
chosen
[ { "from": "system", "value": "Add note for running single test\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\n# Note: run from root\n\nset -e\n\ntimestamp=$(date +%s)\nnamespace=\"e2e-tests-${timestamp}-$RANDOM\"\n\ntmpdir=`mktemp -d 2>/dev/null || mktemp -d -t 'valuetmpdir'`\ncp e2e/...
shell
chosen
[ { "from": "system", "value": "Make sure the npm and apt-get caches are cleaned.\n" }, { "from": "human", "value": "if [ $NODE_ENV == 'production' ]; then\n\tnode ./node_modules/coffee-script/bin/coffee -c ./src\n\t# We don't need coffee-script at runtime\n\tnpm uninstall coffee-script\n\t# Remov...
shell
chosen
[ { "from": "system", "value": "Add the user folder from pip install --user and new editor\n" }, { "from": "human", "value": "\nbindirs=(\n \"/bin/\"\n \"/sbin/\"\n \"/usr/local/opt/postgresql@10/bin\" #befor /usr/bin for useage on macOS\n \"/usr/local/opt/postgresql@11/bin\" #befor /u...
shell
chosen
[ { "from": "system", "value": "Update bash builtins and fix loops.\n" }, { "from": "human", "value": "#!/bin/bash\n\n# Nikita Kouevda\n# 2012/12/22\n\n# Iterate over the given albums\nfor ALBUM in \"$@\"; do\n # Establish the album url and hash\n if [ -n \"`curl -sI \"http://imgur.com/a/$AL...
shell
chosen
[ { "from": "system", "value": "Add a set of sed commands to fetch directly from mysql.\n\nDon't bother taking the workaround by exporting the CSV by hand,\nanymore.\n" }, { "from": "human", "value": "#!/bin/bash\n# This script is used to fetch all player information and output it as CSV.\n# The o...
shell
chosen
[ { "from": "system", "value": "Fix: TEST Python 3 version of the KV leveldb backend\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\n/etc/init.d/opsbro start\n\nNODE_UUID=$(opsbro agent print uuid)\n\nCPU_KEY=\"__health/$NODE_UUID//var/lib/opsbro/global-configuration/packs/linux/monitori...
shell
chosen
[ { "from": "system", "value": "Call set -e only after checking whether sw_vers is available\n" }, { "from": "human", "value": "#!/bin/bash\n\nset -e\n\n_=`which sw_vers`\nif [ 0 -eq $? ] # macOS\nthen\n\tname=`sw_vers -productName`\nelse\n\tname=`uname -s`\nfi\necho \"${name}\" | awk '{ gsub(\" \...
shell
chosen
[ { "from": "system", "value": "Reset min pylint to 9.0.\n" }, { "from": "human", "value": "#!/bin/bash\n\nFAUCETHOME=`dirname $0`\"/../..\"\nPYTHONPATH=$FAUCETHOME:$FAUCETHOME/clib\n\nMINRATING=9.2\n\nlintfile=`tempfile`.lint\n\nfor f in $* ; do\n PYTHONPATH=$PYTHONPATH pylint --rcfile=/dev/nu...
shell
chosen
[ { "from": "system", "value": "Make import script work better\n" }, { "from": "human", "value": "#!/bin/bash\nset -e\n\n[ -f transit.db ] && rm transit.db\n[ -f google_transit.zip ] && rm google_transit.zip\n[ -d feed ] && rm -r feed\ncurl -O http://www.transperth.wa.gov.au/TimetablePDFs/GoogleT...
shell
chosen
[ { "from": "system", "value": "Use fgrep to detect whether we're on GSM hotspot\n" }, { "from": "human", "value": "#!/bin/sh\nif [ -f /sys/class/net/ppp0/statistics/rx_bytes ] ; then\n\tUSAGE=$(vnstat --oneline | sed 's/1;.*;\\([^;]*\\);[^;]*;[^;]*;[^;]*;[^;]*$/\\1/')\n\techo $USAGE\n\n\tORDER=$(...
shell
chosen
[ { "from": "system", "value": "Upgrade Java 16 version in CI image\n\nCloses gh-27560\n" }, { "from": "human", "value": "#!/bin/bash\nset -e\n\ncase \"$1\" in\n\tjava8)\n\t\t echo \"https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u302-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u302b...
shell
chosen
[ { "from": "system", "value": "Make sure VMs get turned off.\n" }, { "from": "human", "value": "#!/bin/bash\ncwd=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")\" && pwd)\"\nsource \"$cwd/settings.sh\"\n\n\n#Start the commands going in unison.\nfor i in \"${storageNodes[@]}\"\ndo\n ssh -o ConnectTim...
shell
chosen
[ { "from": "system", "value": "Check OCLint: Reformat file with `shfmt`\n" }, { "from": "human", "value": "@INCLUDE_COMMON@\n\necho\necho CHECK SOURCE WITH OCLINT\necho\n\ncommand -v oclint >/dev/null 2>&1 || { echo \"Could not locate OCLint\" >&2; exit 0; }\n\ntest -f \"@PROJECT_BINARY_DIR@/comp...
shell
chosen
[ { "from": "system", "value": "Upgrade JDK versions in CI image\n" }, { "from": "human", "value": "#!/bin/bash\nset -e\n\ncase \"$1\" in\n\tjava17)\n\t\techo \"https://github.com/bell-sw/Liberica/releases/download/17.0.4.1+1/bellsoft-jdk17.0.4.1+1-linux-amd64.tar.gz\"\n\t;;\n\tjava18)\n\t\techo \...
shell
chosen
[ { "from": "system", "value": "Set current git hash as build name\n" }, { "from": "human", "value": "#!/bin/bash\n\n# Install Box2 and put it in the path\n# https://github.com/box-project/box2\n\nbox build\n" }, { "from": "gpt", "value": "#!/bin/bash\n\n# Install Box2 and put it in th...
shell
chosen
[ { "from": "system", "value": "Change to checking port 80" }, { "from": "human", "value": "#!/bin/bash\n\nfor i in `seq 1 10`;\ndo\n HTTP_CODE=`curl --write-out '%{http_code}' -o /dev/null -m 10 -q -s http://localhost:4080`\n if [ \"$HTTP_CODE\" == \"200\" ]; then\n echo \"Successfully pulle...
shell
chosen
[ { "from": "system", "value": "Exclude external modules from static analysis.\n" }, { "from": "human", "value": "#!/bin/sh\necho \"Running pylint...\"\npylint *.py lingtools\necho \"Running flake8...\"\nflake8 *.py lingtools\nnosetests --with-doctest\n" }, { "from": "gpt", "value": "#...
shell
chosen
[ { "from": "system", "value": "Move validation to before method call\n" }, { "from": "human", "value": "include base.comparator.BaseComparator\n\ninclude math.exception.MathException\n\ninclude string.util.StringUtil\ninclude string.validator.StringValidator\n\nMathUtil(){\n\tif [[ ! $(StringVali...
shell
chosen
[ { "from": "system", "value": "Refactor so that messages match commands\n" }, { "from": "human", "value": "#!/bin/bash\n# Source this file to get remux into your path\n# then run `remux sebastion` to establish or reattach\n# a tmux session called `base` on host `sebastion`\n\nremux () {\n host=$...
shell
chosen
[ { "from": "system", "value": "Modify script to initialize submodules\n" }, { "from": "human", "value": "#!/bin/sh\n\n# Variables\nlicense=custom\nproject=\"notes-0.9.0\"\nauthorEmail=\"awesomeness.notes@gmail.com\"\n\n# Remove old build\nif [ -d \"$project\" ]; then\n printf '%s\\n' \"Removin...
shell
chosen
[ { "from": "system", "value": "Upgrade CI to Docker 20.10.17\n\nCloses gh-31297\n" }, { "from": "human", "value": "#!/bin/bash\nset -e\n\nversion=\"20.10.16\"\necho \"https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz\";\n" }, { "from": "gpt", "value": "#!/bin/...
shell
chosen
[ { "from": "system", "value": "Upgrade CI to Docker 20.10.8\n\nCloses gh-27573\n" }, { "from": "human", "value": "#!/bin/bash\nset -e\n\nversion=\"20.10.7\"\necho \"https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz\";\n" }, { "from": "gpt", "value": "#!/bin/ba...
shell
chosen
[ { "from": "system", "value": "Remove .gitmodules from syncing to home directory.\n" }, { "from": "human", "value": "#!/bin/bash\n\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\nHOMEDIR=${HOME}\nignoredfiles=(.git LICENSE.md README.md push.sh setup.sh update.sh install.sh install...
shell
chosen
[ { "from": "system", "value": "FIX allow empty gh-page commits\n" }, { "from": "human", "value": "#!/bin/bash\nset -x -e\ngit clone git@github.com:$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git -b gh-pages public\ncp -rf dist/* public/\ncd public\ngit config --global user.email \"psastras@...
shell
chosen
[ { "from": "system", "value": "Make sure bootstrap succeeds before continuing\n" }, { "from": "human", "value": "#!/usr/bin/env bash\nif [[ $OSTYPE =~ \"darwin\" ]]; then\n\n./script/bootstrap.sh\n\n./script/install-all.sh\n\n# Do this last to set default terminal to oh-my-zsh\nchsh -s $(which zs...
shell
chosen
[ { "from": "system", "value": "Clean up comment in rabbitmq\n\nChange-Id: I87ff9b8319d29cc41ab7a0fb63025b434fab10f8\nPartially-Implements: blueprint remove-config-internal\n" }, { "from": "human", "value": "#!/bin/bash\n\nset -o errexit\n\nCMD=\"/usr/sbin/rabbitmq-server\"\nARGS=\"\"\n\n# loading...
shell
chosen