conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Use the most recent version of ADB from the SDK if necessary.\n\nThis removes ADB from the Skia checkout and also does some quick\nchecks to make sure the version of ADB used meets a minimum threshold\n\nReview URL: https://codereview.chromium.org/692513003\n" }, { "fro...
shell
chosen
[ { "from": "system", "value": "Support having version-specific lxc-config as conf/${DISTRIBUTION}-${RELEASE}\n\nif present, this is used, otherwise conf/${DISTRIBUTION} as before.\n" }, { "from": "human", "value": "#!/bin/bash\nset -e\n\nsource common/ui.sh\n\n# TODO: Create file with build date ...
shell
chosen
[ { "from": "system", "value": "Build HDF5 1.12 with 1.10 default API version\n" }, { "from": "human", "value": "#!/bin/bash\n\nset -e\n\nif [ -z ${HDF5_DIR+x} ]; then\n echo \"Using OS HDF5\"\nelse\n echo \"Using downloaded HDF5\"\n #python3 -m pip install requests\n #python3 ci/get_h...
shell
chosen
[ { "from": "system", "value": "Allow '=' to be cleverly combined\n" }, { "from": "human", "value": "function filter()\n{\n GREEN=\"\\033[32m\"\n YELLOW=\"\\033[33m\"\n RESET=\"\\033[0m\"\n\n filters=\"\"\n for arg in \"$@\"\n do\n param=\"\"\n if [ \"${arg:0:1}\" =...
shell
chosen
[ { "from": "system", "value": "Automate graph generation on git Kernel" }, { "from": "human", "value": "echo \"diff\"\nfor i in {1..6};do echo -n \"rc\"$i\",\";git diff v4.7-rc$i v4.7-rc`expr $i + 1`| wc -l;done\n\necho \"add\"\nfor i in {1..6};do git diff v4.7-rc$i v4.7-rc`expr $i + 1`| grep \"^...
shell
chosen
[ { "from": "system", "value": "Use precmd hook for updating OS X proxy icon\n\nUsing the chpwd hook function causes some junk to be printed to STDOUT after\nreturning from a subshell wherein the working directory was changed. In rare\ncases, this can cause issues with 3rd party tools. An example is this issu...
shell
chosen
[ { "from": "system", "value": "Build docker image as part of local deploy\n" }, { "from": "human", "value": "#!/usr/bin/env bash\nset -e\n\nROOT=$(dirname \"$0\")\nHELM_DIR=\"$ROOT/../helm_deploy/cla-public/\"\n\nkubectl config use-context docker-for-desktop\n\nhelm upgrade cla-public \\\n $HELM...
shell
chosen
[ { "from": "system", "value": "Fix importer failing on pypy due to wrong pypy version\n\nimporter requires pypy >= 2.6 but debian stable only supplies 2.4\n" }, { "from": "human", "value": "#!/bin/bash\n# Copyright (c) 2015 The Pycroft Authors. See the AUTHORS file.\n# This file is part of the Py...
shell
chosen
[ { "from": "system", "value": "Disable ingress for non-multi-deploy staging deploy\n\nSo that the Ingress doesn't conflict with the non-Helm one. Once we're\nready, we can edit the current ingress and tnen allow this one to take over\n" }, { "from": "human", "value": "#!/usr/bin/env bash\nset -e\...
shell
chosen
[ { "from": "system", "value": "Remove ttl from browsermobproxy test instance\n" }, { "from": "human", "value": "#!/bin/bash\nexec /browsermob-proxy/bin/browsermob-proxy -port 9090 -proxyPortRange 9091-9091 -ttl 5\n" }, { "from": "gpt", "value": "#!/bin/bash\nexec /browsermob-proxy/bin...
shell
chosen
[ { "from": "system", "value": "Return non-zero error code if tests failed\n" }, { "from": "human", "value": "#!/bin/bash\n\nexport PYTHONPATH=$PWD:$PWD/..:$PYTHONPATH\n\ndjango-admin.py test --settings=tests.settings_get_asset_handler\ndjango-admin.py test --settings=tests.settings_get_finder\ndj...
shell
chosen
[ { "from": "system", "value": "Address issue in ipsec connections hang\n\nThis will increate the net.ipv4.xfrm4_gc_thresh setting to 32768.\n" }, { "from": "human", "value": "#!/bin/bash\n\n. ${CATTLE_HOME:-/var/lib/cattle}/common/scripts.sh\n\nARPDEV=arpproxy\nNETDEV=eth0\nTABLE=200\n\ncreate_du...
shell
chosen
[ { "from": "system", "value": "Increase timeout to install requirements\n" }, { "from": "human", "value": "#!/usr/bin/env bash\nset -ex\n\n# on Python 2.7, use the system versions of numpy, scipy, and matplotlib\n# and the minimum version of cython and networkx\nif [[ $TRAVIS_PYTHON_VERSION == 2....
shell
chosen
[ { "from": "system", "value": "Use a dev version of mistralclient\n" }, { "from": "human", "value": "#!/bin/bash\nset -eux\nset -o pipefail\n\nrm -rf ~/venv;\nvirtualenv ~/venv;\n~/venv/bin/pip install --editable ~/python-tripleoclient;\n~/venv/bin/pip install tripleo-common==5.0.0.0b2 os-cloud-c...
shell
chosen
[ { "from": "system", "value": "Expand search for FPM binary\n\nAdd another directory to the search for FPM binary since\nRHEL installs FPM under /usr/local/share/gems/.\n\nResolves PROD-568\n\nChangeLog:\n -\n" }, { "from": "human", "value": "#!/bin/sh\n\ngem=`whereis gem | head -n 1 | awk '{ pri...
shell
chosen
[ { "from": "system", "value": "Change distribution to use abendstern.default.rc.\n\nExclude abendstern.rc from main distribution, but include it in\nupdates so that the configuration merge works properly (the Windows\nport root always keeps the default configuration).\n" }, { "from": "human", "va...
shell
chosen
[ { "from": "system", "value": "Print a banner every time we start a new run, to make it easier to\ntell (in the logs).\n\nAuditors: chris\n\nTest plan:\nRan the commands manually.\n" }, { "from": "human", "value": "#!/bin/sh\n\n# Kick off the exercise icon scraping process\n#\n# NOTE: before runn...
shell
chosen
[ { "from": "system", "value": "Make this script not care where it is run from by getting the llvm src\nroot from the llvm-config script.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@29632 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "#!/bin/sh\n##===- utils/...
shell
chosen
[ { "from": "system", "value": "Enhance enviroment for differences in systems\n" }, { "from": "human", "value": "#!/bin/bash\n\nPYTHON3=python3\nPYTHON2=python2\n\nfor P in wget ant \"${PYTHON3}\" python3-pip python python-pip python-virtualenv\ndo\n\tif ! dpkg-query -s $P | grep ok.installed >/de...
shell
chosen
[ { "from": "system", "value": "Check the certificate by default\n" }, { "from": "human", "value": "#!/bin/bash\n# Ensure a separate script is called in the event of an error\n#\n# Include in your builds via\n# \\curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/utilties/check_ur...
shell
chosen
[ { "from": "system", "value": "Index Lists Files On Server\n\nBefore, the index pulled the reports that existed locally to link\nto. Since we don't sync these, that's probably a bad idea. Now, it ssh's\ninto the server (totalcrazyhack.net), and pulls the names of the reports\nfrom there for linking.\n" }, ...
shell
chosen
[ { "from": "system", "value": "Add SQLCipher build to iOS CI\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\necho \"========> Add github as known host\"\n[ -d \"${HOME}/.ssh\" ] || mkdir \"${HOME}/.ssh\"\nssh-keyscan github.com >> \"${HOME}/.ssh/known_hosts\"\n\ncd $HOME/lib-ledger-core...
shell
chosen
[ { "from": "system", "value": "Revert \"Make GetDomRVersionCommand more reliable\"\n" }, { "from": "human", "value": "#!/bin/bash\n\n# As the last command send to router before any rules operation, wait until boot up done\n\n__TIMEOUT=240\n__FLAGFILE=/var/cache/cloud/boot_up_done\ndone=0\nfor i i...
shell
chosen
[ { "from": "system", "value": "Update SS Lab Q8.a to take arguments\n\nSigned-off-by: Karthik Nayak <f21e23168db91f2bd3ec812184a2ac51d05a196a@gmail.com>\n" }, { "from": "human", "value": "echo \"Enter the two filenames\"\nread file1\nread file2\nperm1=`ls -l $file1 | gawk '{ print $1}'`\nperm2=`l...
shell
chosen
[ { "from": "system", "value": "Add debugging output in case of varnish test failure\n" }, { "from": "human", "value": "#!/bin/bash\n\n# Caution: This is common script that is shared by more SCLS.\n# If you need to do changes related to this particular collection,\n# create a copy of this file ins...
shell
chosen
[ { "from": "system", "value": "Update configuration files to install LVM\n" }, { "from": "human", "value": "#!/bin/bash\n#\n# Run from new VM console or SSH session\n\necho =============================\necho \"Install new packages\"\necho =============================\n\napt-get update\napt-get ...
shell
chosen
[ { "from": "system", "value": "Add alias for a custom top command\n" }, { "from": "human", "value": "# --------------------------------------------\n# Shortcuts\n# --------------------------------------------\nalias e=\"$EDITOR\"\nalias v=\"$VISUAL\"\nalias vi=\"$VISUAL\"\nalias vim=\"$VISUAL\"\n...
shell
chosen
[ { "from": "system", "value": "Fix submodule checkout method in jenkins script\n" }, { "from": "human", "value": "#!/bin/bash\n\nset -xe\n\nif [ \"$CABAL\" == \"\" ]; then\n CABAL=cabal\nfi\n\n\n(cd Obsidian; git checkout master-dev) \n\n$CABAL sandbox init\n\nOPTS=\"-j --ghc-option=-j3\"\n$CA...
shell
chosen
[ { "from": "system", "value": "Update install script for webdrivers\n" }, { "from": "human", "value": "#!/bin/bash\n\nfunction install_firefox_driver {\n wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz\n tar -xvf geckodriver-v0.19.1-l...
shell
chosen
[ { "from": "system", "value": "Add sudo to usage text for clarity\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\n# Usage: ./gulp-tracer.sh [name]\n\nfunction traceProc {\n echo \"Running strace for $1\"\n strace -tp \"$(pgrep -l $(echo \"$1\") | awk '{ print $1}')\" -etrace=stat ...
shell
chosen
[ { "from": "system", "value": "Remove coffeelint code.. error when any step fails" }, { "from": "human", "value": "#!/bin/sh\n\necho \"Downloading latest Atom release...\"\ncurl -s -L \"https://atom.io/download/mac\" \\\n -H 'Accept: application/octet-stream' \\\n -o atom.zip\n\nmkdir atom\nunz...
shell
chosen
[ { "from": "system", "value": "Install and use node v5 by default\n" }, { "from": "human", "value": "brew install nvm\n\nnvm install 0.12\nnvm use 0.12\nnvm alias default 0.12\n\n# Globally install with npm\n\npackages=(\n diff-so-fancy\n grunt\n gulp\n http-server\n nodemon\n r...
shell
chosen
[ { "from": "system", "value": "Clean yum cache and use upstrem repos for epel\n" }, { "from": "human", "value": "#!/bin/bash\n# Copyright (c) 2015 Intel Corporation\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the L...
shell
chosen
[ { "from": "system", "value": "Enable retina support on non-retina mac" }, { "from": "human", "value": "# hidden files in finder\n# 10.7\ndefaults write com.apple.finder AppleShowAllFiles -bool YES\n# 10.8\ndefaults write com.apple.Finder AppleShowAllFiles YES\n\n# safari debug menu\ndefaults wri...
shell
chosen
[ { "from": "system", "value": "Install ruby prior to unpacking gem\n" }, { "from": "human", "value": "#!/usr/bin/env bash\nset -e\n\nORIGIN=$(pwd)\n\n# Get our directory\nSOURCE=\"${BASH_SOURCE[0]}\"\nwhile [ -h \"$SOURCE\" ] ; do SOURCE=\"$(readlink \"$SOURCE\")\"; done\nDIR=\"$( cd -P \"$( dirn...
shell
chosen
[ { "from": "system", "value": "Add reload and status alises to postgres\n" }, { "from": "human", "value": "# Aliases to stop, start and restart Postgres\n# Paths noted below are for Postgress installed via Homebrew on OSX\n\nalias startpost='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/pos...
shell
chosen
[ { "from": "system", "value": "Add comment about ansible-galaxy to role creation script\n" }, { "from": "human", "value": "#!/usr/bin/env sh\n\nBASEDIR=\"$(cd \"$(dirname \"$0\")\"; pwd)\"\n#echo \"$BASEDIR\"\n\ncd \"$BASEDIR\"\n\nif [ -z $1 ]; then\n#\techo \"usage: $0 role_name\"\n\texit 1\nfi\...
shell
chosen
[ { "from": "system", "value": "CI: Fix the way unbound variable is checked\n" }, { "from": "human", "value": "#!/bin/bash\n\nset -euo pipefail\n\nif [ -z $PLATFORM ]; then\n echo \"PLATFORM must be set.\"\n exit 1\nfi\n\nif [ -z $COVERAGE ]; then\n COVERAGE=OFF\nfi\n\ncmake -H. -Bbuild -...
shell
chosen
[ { "from": "system", "value": "Add missing shebang to descripe which shell shall be used.\n" }, { "from": "human", "value": "function generate() {\n OPTIONS=\"\"\n\n if [ \"$ASAN\" = \"ON\" ] ; then\n OPTIONS=\"$OPTIONS -DCPPCORE_ASAN=ON\"\n else\n OPTIONS=\"$OPTIONS -DCPPC...
shell
chosen
[ { "from": "system", "value": "Revert \"Temporarily install Loris from my fork\"\n\n612952c3b3b1e8815e052b5a21ec5c4e76f1f8ab\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n# Install Loris on Ubuntu\n\nset -o errexit\nset -o nounset\n\nLORIS_COMMIT=\"0fd16011b9df73581d61444db264c2b9e4aec8...
shell
chosen
[ { "from": "system", "value": "Prepare for the launch of 0.4.9" }, { "from": "human", "value": "#!/bin/bash\n\nVERSION=0.4.8\nTMPDIR=/tmp/google-api-php-client\nRELFILE=/tmp/google-api-php-client-${VERSION}.tar.gz\n\nrm -f $RELFILE\nrm -rf $TMPDIR\nmkdir $TMPDIR\ncp -r * $TMPDIR\ncd $TMPDIR\nfind...
shell
chosen
[ { "from": "system", "value": "Add jasmine to the list\n" }, { "from": "human", "value": "#\n# Install Homebrew packages / npm correctly for OSX\n#\n\n#!/bin/sh\n\nset -e\n\n# npm default global packages\npackages=(\n grunt-cli\n gulp\n http-server\n uglify-js\n jshint\n yo\n bower\n node...
shell
chosen
[ { "from": "system", "value": "Add Chromium work path to CDPATH\n" }, { "from": "human", "value": "#!/bin/bash\n\nexport GOMA_DIR=${HOME}/goma\nexport GYP_DEFINES=\"use_goma=1\"\n" }, { "from": "gpt", "value": "#!/bin/bash\n\nexport GOMA_DIR=${HOME}/goma\nexport GYP_DEFINES=\"use_goma...
shell
chosen
[ { "from": "system", "value": "Remove debug mode from DBIx regeneration\n" }, { "from": "human", "value": "# This script regenerates the DBIx classes for the RNAseqDB\n\n# Necessary arguments\n# $HOST_COMMAND must be something like mysql-prod-vb\nHOST_COMMAND=$1\n# The name of the RNAseq database...
shell
chosen
[ { "from": "system", "value": "Add fetch every loop... Not sure if this is 300000% janky but it may just work\n" }, { "from": "human", "value": "#!/bin/bash\nwhile true; do\n if $(git rev-parse HEAD) == $(git rev-parse @{u}); then\n git pull\n fi\ndone\n" }, { "from": "gpt", ...
shell
chosen
[ { "from": "system", "value": "Put in debugging for failing push-to-prod step (sigh)\n" }, { "from": "human", "value": "#!/bin/bash\n\nset -e\nsource ./script/ci/includes.sh\n\n# Add production git remote if required\nPROD_TEST=`git remote | grep -s 'production' || true`\nif [[ \"$PROD_TEST\" != ...
shell
chosen
[ { "from": "system", "value": "Install proper version of ruby\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\n# Ruby with rbenv\ngit clone https://github.com/sstephenson/rbenv.git ~/.rbenv\necho 'export PATH=\"$HOME/.rbenv/bin:$PATH\"' >> ~/.bashrc\necho 'eval \"$(rbenv init -)\"' >> ~/...
shell
chosen
[ { "from": "system", "value": "Use day in log formatting\n\nUsing day in the sort order makes it much easier to find appropriate\nlogs.\n" }, { "from": "human", "value": "#!/bin/bash\n# Runs system wide ansible configured in /etc\nset -eu\n\n. /etc/default/system-ansible\n\nif [[ -z \"${SYS_ANSIB...
shell
chosen
[ { "from": "system", "value": "Revert \"create VM as normal user\"\n\nThis reverts commit 2d8eb004fba4b5c4618f7f5bfcea88254f560d1f.\n" }, { "from": "human", "value": "#!/bin/bash\n\n# TODO(lpetrut): remove hardcoded stuff\nMANILA_SERVICE_SECGROUP=\"manila-service\"\nNET_ID=$(neutron net-list | gr...
shell
chosen
[ { "from": "system", "value": "Update Zsh History Substring Search Keybindings\n\n- WSL1 doesn't set the same WSL environment variables as WSL2, but it\n requires the same keybindings for zsh history substring search\n" }, { "from": "human", "value": "# Completion\nautoload -U compinit\ncompinit...
shell
chosen
[ { "from": "system", "value": "Fix typo: porta -> port\n" }, { "from": "human", "value": "#!/bin/sh\n\nif [ \"xxx$root\" = \"xxx\" ];\nthen\n # The -t is required on OS X. It provides a template file path for\n # the kernel to use.\n root=\"$(mktemp -d -t leitXXXX)\"\n echo \"Root int...
shell
chosen
[ { "from": "system", "value": "Fix the path to chrome canary\n" }, { "from": "human", "value": "# Global aliases\nalias -g ...='../..'\nalias -g ....='../../..'\nalias -g .....='../../../..'\nalias -g C='| wc -l'\nalias -g H='| head'\nalias -g L=\"| less\"\nalias -g N=\"| /dev/null\"\nalias -g S=...
shell
chosen
[ { "from": "system", "value": "Remove redundant build of recipes\n" }, { "from": "human", "value": "#! /bin/bash\n\nbase=$PWD\n\n# Script below uses obvious-ci to build AND UPLOAD the packages with recipes.\npython affiliate-builder/build_recipes.py\n\nto_build=$(cat build_order.txt)\ncd bdist_co...
shell
chosen
[ { "from": "system", "value": "Fix app location for deletion.\n" }, { "from": "human", "value": "#!/bin/bash\n\nSTATIC=/home/ubuntu/static\nMIGRATIONS=/home/ubuntu/migrations\nSCRIPTS=/home/ubuntu/scripts\nAPP=/home/.local/bin/features\n\nif [ -d \"$STATIC\" ]; then\n rm -rf $STATIC\nfi\n\nif ...
shell
chosen
[ { "from": "system", "value": "Allow input into bash file.\n" }, { "from": "human", "value": "# Demonstrates how to run many input files with summarizer.py\n# \n# Simple bash snippet that demonstrates how to run summarizer.py with many\n# input files (many files each with a list of words to summa...
shell
chosen
[ { "from": "system", "value": "Use the grpc plugin for protobuf generation\n" }, { "from": "human", "value": "#!/bin/sh\nprotoc -I=./api/pokemon --go_out=./api/pokemon ./api/pokemon/pokemon.proto" }, { "from": "gpt", "value": "#!/bin/sh\nprotoc -I=./api/pokemon --go_out=plugins=grpc:....
shell
chosen
[ { "from": "system", "value": "Use mandoc to generate html manpages\n\ngroff and mandoc both suck at this. But mandoc sucks slightly less.\n" }, { "from": "human", "value": "#!/bin/sh\n\nmkdir -p html\nSTYLE='/^<style type=\"text\\/css\">/a\\ body { margin-left: auto; margin-right: auto;...
shell
chosen
[ { "from": "system", "value": "Include badges in deployed artifact\n" }, { "from": "human", "value": "# This script takes care of building your crate and packaging it for release\n\nset -ex\n\nmain() {\n local src=$(pwd) \\\n stage=\n\n case $TRAVIS_OS_NAME in\n linux)\n ...
shell
chosen
[ { "from": "system", "value": "Fix secrets path for real this time\n" }, { "from": "human", "value": "# Copyright 2019 Google\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 may obtain a copy of the...
shell
chosen
[ { "from": "system", "value": "Break pjsua command line options into individual lines\n" }, { "from": "human", "value": "#!/bin/bash\n\n# SCRIPT TO LAUNCH PJSUA FROM PARAMETERS\n\n\nSIP_ADDRESS=$1\n\nCONFIG_FILE=/home/jibri/pjsua.config\n\nCAPTURE_DEV=23\nPLAYBACK_DEV=24\n\nPID_DIR=/var/run/jibri...
shell
chosen
[ { "from": "system", "value": "Fix rysnc command--it didn't recurse\n" }, { "from": "human", "value": "#!/bin/bash\n\nset -e\n\nSCRIPTSDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\ncd $SCRIPTSDIR/..\n\n# generate docs\nmkdir -p build\ncd build\ncmake .. \nmake doc\ncd ..\n\n# mak...
shell
chosen
[ { "from": "system", "value": "Use version instead of \"help\" for universal linux\n" }, { "from": "human", "value": "tar xzvf hyperdex-1.3.dev-linux-amd64.tar.gz -C /usr/local\nexport PATH=/usr/local/hyperdex/bin:${PATH}\n\nhyperdex --help\n" }, { "from": "gpt", "value": "tar xzvf hy...
shell
chosen
[ { "from": "system", "value": "Add version args to test calls to nunit console\n" }, { "from": "human", "value": "mono ./testrunner/NUnit.Console.3.0.1/tools/nunit3-console.exe ./FreecraftCore.Serializer.Strategy.Tests/bin/Debug/FreecraftCore.Serializer.Strategy.Tests.dll\nmono ./testrunner/NUnit...
shell
chosen
[ { "from": "system", "value": "Add non interactive flags for certificate generation\n\nSigned-off-by: Julien CLEMENT <f9ecf83322d80dfc908234dfba8da9e18a58cfab@epita.fr>\n" }, { "from": "human", "value": "WORKSPACE_ID=$1\nPRIMARYKEY=$2\nARTIFACTS_LOCATION=$3\nDNS_NAME=$4\n\nwget $ARTIFACTS_LOCATIO...
shell
chosen
[ { "from": "system", "value": "Remove aosp calendar from always_remove\n" }, { "from": "human", "value": "#!/bin/sh\n# Eric McCann (Nuclearmistake) 2014\n\nalways_clean() {\ncat <<EOF\n/system/app/Provision/Provision.apk\n/system/app/QuickSearchBox/QuickSearchBox.apk\n/system/app/priv-app/SetupWi...
shell
chosen
[ { "from": "system", "value": "Create only version 5.5.x packages because they are not compatible with 5.0-4.x versions.\n" }, { "from": "human", "value": "#!/bin/bash\n\n# This script creates Sentinl 5 packages for the releases below.\n# Example:\n# ./createReleases.sh ~/Downloads/5-release/...
shell
chosen
[ { "from": "system", "value": "Add software update to bootstrap script" }, { "from": "human", "value": "#!/bin/bash\n\nxcode-select --install\nruby -e \"$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)\"\nbrew install saltstack\nread -p \"Enter salt master-server address: \" addr...
shell
chosen
[ { "from": "system", "value": "Use no proxy when connecting to VSim\n" }, { "from": "human", "value": "#!/bin/bash\nsleep 5\necho \"Trying VSIM cluster setup on $1\"\ncurl -X POST -d @cluster_setup \"http://admin@$1/servlets/netapp.servlets.admin.XMLrequest_filer\"\nsleep 25\ncurl -X POST -d @ssh...
shell
chosen
[ { "from": "system", "value": "Add stop on error to the vagrant box script (and also the verbose output)\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\n# List all the outdated vagrant boxes, and do an upgrade for each one\nvagrant box outdated --global 2>/dev/null | grep outdated | tr ...
shell
chosen
[ { "from": "system", "value": "Use the right path for project directory.\n" }, { "from": "human", "value": "#!/bin/bash\n\n# Wrapper for 'entrypoint.sh' that defines 'ICEKIT_DIR' and\n# 'ICEKIT_PROJECT_DIR', environment variables.\n\ncat <<EOF\n# `whoami`@`hostname`:$PWD$ go.sh $@\nEOF\n\nset -e\...
shell
chosen
[ { "from": "system", "value": "Remove classification for many different layers as it shows no improvement\n" }, { "from": "human", "value": "#!/usr/bin/env zsh\nset -e\n\ncd ..\n\nfind ../resources -type d -not -name \"resources\" | while read directory\ndo\n dataset=$(basename $directory)\n\n...
shell
chosen
[ { "from": "system", "value": "Increase rsync timeout to 5 mins\n" }, { "from": "human", "value": "#!/bin/bash\n\nset -o errexit\nset -o pipefail\n\nDOCKER_ROOT=${DOCKER_ROOT:-/var/lib/docker}\nBTRFS_ROOT=${BTRFS_ROOT:-$DOCKER_ROOT/btrfs/subvolumes}\n\nsrc=$1\ndest=$2\nconfig=$3\n\nsrc_id=$(docke...
shell
chosen
[ { "from": "system", "value": "Remove bash-specific code from build scripts\n" }, { "from": "human", "value": "#!/bin/sh\n\nset -e\n\necho \"Compile the CSS files\"\n\nSASSC=sassc\nSCSS_SRC=src/css\nCSS_OUT=../public/assets/css\nMANIFEST_DIR=$(readlink -e ../src/template/)\nMANIFEST=\"$MANIFEST_D...
shell
chosen
[ { "from": "system", "value": "Switch newer-than logic to get the desired behavior\n\nIn the old version, the function returned true (0) if the cache file\nwas newer than the Cakefile, which was *always* unless the Cakefile\nhad been updated. Therefore we generated the file every time unless\nthe Cakefile wa...
shell
chosen
[ { "from": "system", "value": "Allow manual override of SWPATH (needed for Planware).\n\ngit-svn-id: 9ecf60ce9baff443e30a0472d3fd222fcb8117cf@9318 7b97033b-253e-4a5c-9b07-e25f9089a9fd\n" }, { "from": "human", "value": "# This script reads commands from stdin and sends them to Specware, to\n# be e...
shell
chosen
[ { "from": "system", "value": "Add cluster-up to bazel exclude list\n\nmake deps-update, and other targets which run\n/hack/bazel-generate.sh, are updating the BUILD.bazel files.\nSince cluster-up folder is vendored, it shouldnt be updated.\nThis commit align all the targets to not create files\nin the folde...
shell
chosen
[ { "from": "system", "value": "Update after-build on CI script for latest stable Rust version\n" }, { "from": "human", "value": "#!/bin/bash\n\n# Cribbed from an excellent guide by Steve Klabnik:\n# http://www.steveklabnik.com/automatically_update_github_pages_with_travis_example/\n\nset -o errex...
shell
chosen
[ { "from": "system", "value": "Fix script to be compatible with zsh.\n" }, { "from": "human", "value": "###\n# completion written by Alexey Shockov\n# on github : alexeyshockov\n#\nfunction _lunchy {\n COMPREPLY=()\n local cur=${COMP_WORDS[COMP_CWORD]}\n local cur_pos=$COMP_CWORD;\n\n case \"...
shell
chosen
[ { "from": "system", "value": "Add our source to the path as well\n" }, { "from": "human", "value": "#! /bin/sh\n\n# Download the script to install everything\ncurl https://raw.githubusercontent.com/dmwm/WMCore/master/test/deploy/deploy_unittest.sh > /home/dmwm/ContainerScripts/deploy_unittest.sh...
shell
chosen
[ { "from": "system", "value": "Add 'merge' to bash autocompletion\n" }, { "from": "human", "value": "#!/bin/sh\n\n_git-scripts()\n{\n local cmd=\"${1##*/}\"\n local cur=${COMP_WORDS[COMP_CWORD]}\n local line=${COMP_LINE}\n\n # Check to see what command is being executed.\n case \"$cmd\"...
shell
chosen
[ { "from": "system", "value": "Debug emsdk installation on circle\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\nset -e\n\nEMSCRIPTEN_DOWNLOAD_URL='https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz'\nEMSDK_PATH=\"./emsdk-portable/emsdk\"\n\nif [ ! -f $EMS...
shell
chosen
[ { "from": "system", "value": "Replace initial gradle build with compileJava\n" }, { "from": "human", "value": "#!/bin/sh\ncd $(dirname $0)\n\ncd ../complete\n\nmvn clean package\nret=$?\nif [ $ret -ne 0 ]; then\nexit $ret\nfi\nrm -rf target\n\n./gradlew build\nret=$?\nif [ $ret -ne 0 ]; then\nex...
shell
chosen
[ { "from": "system", "value": "Set default permissions for newly created data files.\n" }, { "from": "human", "value": "#!/bin/sh\nset -e\n\n\nuseradd -M sysrepo-user1\nuseradd -M sysrepo-user2\nuseradd -M sysrepo-user3\n\ngroupadd sysrepo-users\n\nusermod -a -G sysrepo-users sysrepo-user1\nuserm...
shell
chosen
[ { "from": "system", "value": "Add an elapsed timestamp to the banner for CI.\n\nLooks like:\n\n```\n[== 00:00 Banner message ==]\n```\n\nTesting Done:\nSee: https://travis-ci.org/pantsbuild/pants/jobs/50841075 for example output\n\nBugs closed: 1109\n\nReviewed at https://rbcommons.com/s/twitter/r/1775/\n" ...
shell
chosen
[ { "from": "system", "value": "Fix version name generation when there are no tag\n\nSet the version to be \"unknown\" when the git repository does not contain\nany tags.\n" }, { "from": "human", "value": "#!/bin/sh\n\nset -e\n\nif [ -d .git ] ; then\n version=\"$(git describe --dirty)\"\nelif ...
shell
chosen
[ { "from": "system", "value": "Tag docker image before pushing it to dockerhub\n" }, { "from": "human", "value": "#!/bin/bash\n\nif [ \"$TRAVIS_BRANCH\" == \"master\" ]; then\n TAG=latest\n if [ ! -z \"$TRAVIS_TAG\" ]; then\n TAG=$TRAVIS_TAG\n fi\n\n docker login -u=\"$DOCKER_USERNAME\" -p...
shell
chosen
[ { "from": "system", "value": "Fix for spurious 'cb() never called' errors.\n\nSome Jenkins builds are erroring when attempting to set up the\nnpm environment with the error:\n\n`npm ERR! cb() never called!`\n\nAlthough it could point to a couple of different things, it is more classically\na sign of a dirty...
shell
chosen
[ { "from": "system", "value": "Add nohup to startup script to further ensure process survive.\n" }, { "from": "human", "value": "SCRIPTDIR=$(cd $(dirname \"$0\") && pwd)\n# This is the primary script to\n# Start the entire robot\nif ! (${SCRIPTDIR}/ros_prep.sh)\nthen\n echo \"ROS Prep Failed, ...
shell
chosen
[ { "from": "system", "value": "test_record: Check that the screenshots were saved to disk\n\n`stbt record` saves screenshots to disk each time the user presses a\nremote control button. Now the unit test actually checks that those\nscreenshots are being saved to disk.\n" }, { "from": "human", "va...
shell
chosen
[ { "from": "system", "value": "Disable the npm propressbar in travis land\n\nWe don't actually have anyone looking at it, it's slow, and\nall tests run this, wasting at least several seconds each time.\n\nhttps://github.com/npm/npm/issues/11283\n" }, { "from": "human", "value": "set -v\n\nif [[ -...
shell
chosen
[ { "from": "system", "value": "Change Evaluation of ssh-add to after check\n" }, { "from": "human", "value": "#!/usr/bin/env bash\nset -e\n\n. $TRAVIS_BUILD_DIR/bin/setup.sh\n\n# Install hugo static site generator from GitHub releases page.\ncurl -s -L \"https://github.com/spf13/hugo/releases/dow...
shell
chosen
[ { "from": "system", "value": "Fix MariaDB tests on Travis CI (Trusty)\n" }, { "from": "human", "value": "OS_CODENAME=$(lsb_release --codename --short)\n\napt-get purge mysql*\n\napt-get install python-software-properties\napt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb08...
shell
chosen
[ { "from": "system", "value": "Use `find` to like crd files to make array consistent\n\nSigned-off-by: JoshVanL <525f14a1257c4e494fcfb5b458ace90de1e9c01d@gmail.com>\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\n# Copyright 2019 The Jetstack cert-manager contributors.\n#\n# Licensed un...
shell
chosen
[ { "from": "system", "value": "Decrease false positives in API changes" }, { "from": "human", "value": "#!/bin/bash\n\ncd `dirname $0`/../openfisca/france\n\ngit fetch --all\n\nfrom=${1:-HEAD}\nto=${2:-openfisca/master}\n\ngit log $from..$to | egrep '(Rename|Introduce|Deprecate)' | egrep -v '(\\(...
shell
chosen
[ { "from": "system", "value": "Use correct mount path for docker tox\n\nThe `themattrix/tox` image require that the source dir mount is\nlocated at /app.\n" }, { "from": "human", "value": "#!/usr/bin/env bash\nMOUNT_FOLDER=/django-rest-knox\ndocker run --rm -it -v $(pwd):$MOUNT_FOLDER -w $MOUNT_F...
shell
chosen
[ { "from": "system", "value": "Fix OCR deletion in Datafari" }, { "from": "human", "value": "#!/bin/bash\n#\n#\n# MCF control script\n#\n#\n\ncd $MCF_HOME\n\nOPTIONSFILE=\"options.env.unix\"\nOPTIONS=$(cat \"$OPTIONSFILE\")\n\n\n\ncmd_start() {\n echo \"Starting MCF Agent ...\"\n ./executec...
shell
chosen
[ { "from": "system", "value": "Remove call to brew prune\n" }, { "from": "human", "value": "is_osx || return 0\n\n(\n\t# Homebrew packages to install\n\tpackages=(\n\t\tbat\n\t\tcmake\n\t\tcolordiff\n\t\tdos2unix\n\t\tfd\n\t\tfzf\n\t\tgh\n\t\tgit\n\t\thtop\n\t\thub\n\t\tjq\n\t\tmas\n\t\tnmap\n\t\...
shell
chosen
[ { "from": "system", "value": "Use the post-signature commit for building wheels\n" }, { "from": "human", "value": "#!/bin/bash\n# http://redsymbol.net/articles/unofficial-bash-strict-mode/\nset -euxo pipefail\nIFS=$'\\n\\t'\ncurl --request POST --form \"token=$CI_JOB_TOKEN\" --form ref=master \\...
shell
chosen
[ { "from": "system", "value": "Revert \"solenv: if RR is set, skip gdb backtrace, since it's recorded already\"\n\nThis reverts commit ea980f3de1da84de730541217bd497a4d3bb3642.\n" }, { "from": "human", "value": "#!/bin/sh\n#\n#\n# This file is part of the LibreOffice project.\n#\n# This Source Co...
shell
chosen
[ { "from": "system", "value": "Add wait for selenium server, add browser name.\n" }, { "from": "human", "value": "#!/bin/bash\n\nsource /opt/bin/functions.sh\n\nexport GEOMETRY=\"$SCREEN_WIDTH\"\"x\"\"$SCREEN_HEIGHT\"\"x\"\"$SCREEN_DEPTH\"\n\nfunction shutdown {\n kill -s SIGTERM $NODE_PID\n wa...
shell
chosen