conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add support for bare '~+' and '~-'.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nexpandPath() {\n local path\n local -a pathElements resultPathElements\n IFS=':' read -r -a pathElements <<<\"$1\"\n : \"${pathElements[@]}\"\n for path in \"${pathElements[@]... | shell | chosen |
[
{
"from": "system",
"value": "Copy inventory.yml.example to inventory.yml if needed\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\n# check if using Vagrant\ngrep -q \"^\\s*use_vagrant:\\s*yes\" inventory.yml\nif [ \\( $? -eq 0 \\) -a \\( -f \"$(which vagrant)\" \\) ]; then\n # check if vagrant... | shell | chosen |
[
{
"from": "system",
"value": "Update PHP to 7.3\nDrop alternate package location because PHP 7.3 is officially in repo\n"
},
{
"from": "human",
"value": "apt-get install -y apt-transport-https lsb-release ca-certificates\n\nif [ ! -e /etc/apt/sources.list.d/sury.php.list ]; then\n\twget -O /etc/... | shell | chosen |
[
{
"from": "system",
"value": "Increase ssh key lifetime in ssh-agent\n\nSometimes an ansible run will take more than one hour.\n"
},
{
"from": "human",
"value": "function ssh() {\n keyLifeTime=1h\n\n for key in ~/.ssh/id_*~*.pub; do\n ssh-key-added \"$key\" || _ssh-add -t $keyLifeTime \"$ke... | shell | chosen |
[
{
"from": "system",
"value": "Install new version of Docker\n"
},
{
"from": "human",
"value": "### Installing docker service\n# Reference: https://docs.docker.com/engine/installation/linux/ubuntulinux/\n\nsudo apt-get update\nsudo apt-get install apt-transport-https ca-certificates\nsudo apt-key... | shell | chosen |
[
{
"from": "system",
"value": "Use utf8 for MySQL test database"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -ev\n\nmysql -e 'CREATE DATABASE IF NOT EXISTS mondrian_test;'\nmysql -e \"GRANT ALL PRIVILEGES ON mondrian_test.* TO 'mondrian_test'@'localhost' IDENTIFIED BY 'mondrian_test';\"\n\... | shell | chosen |
[
{
"from": "system",
"value": "Fix issue causing failing tests to erroneously pass.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nset -o errexit\nset -o verbose\nset -o pipefail\nset -o nounset\nset -o errtrace\n\n__file=developer-scripts/travis/test-script.cmake.sh\n\n# Error tracing... | shell | chosen |
[
{
"from": "system",
"value": "Fix for fuelweb-iso accidentially deletion\n\nChange-Id: Ie8bdd50166402ef8c0c4ad4e11e20f9f3e0d0558\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n/usr/bin/find /srv/downloads /var/www/fuelweb-iso -mtime +10 -delete 2>&1 | logger -t seed-downloads-cleanup\n/usr/bi... | shell | chosen |
[
{
"from": "system",
"value": "Revert \"Attempt to use destination property\"\n\nThis reverts commit 1a1bd46cc875167273284b4bfb7a2ff554945fde.\n"
},
{
"from": "human",
"value": "#!/bin/bash -ex\n\npushd `dirname $0`/.. > /dev/null\nroot=$(pwd -P)\npopd > /dev/null\n\n# gather some data about the ... | shell | chosen |
[
{
"from": "system",
"value": "Allow jupyter to run as root inside Docker image\n\nSigned-off-by: Guy Thouret <b5cd271b521acc9a180d5ff625e8f9a71c235729@thouret.uk>\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n#\n# generate configuration, cert, and password if this is the first run\n#\nif [ !... | shell | chosen |
[
{
"from": "system",
"value": "Add group write permissions to the shared folder.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n#set -ex\n\nsudo groupadd --force starwars\n\n# password is starwars\n\nfor i in luke leia han chewbacca kylo rey finn poe \ndo\n echo \"$i\"\n sudo useradd --co... | shell | chosen |
[
{
"from": "system",
"value": "Expand X2 to include INT_R on far right edge.\n\nSigned-off-by: Keith Rothman <1bc19627a439baf17510dc2d0b2d250c96d445a5@users.noreply.github.com>\n"
},
{
"from": "human",
"value": "export XRAY_DATABASE=\"artix7\"\nexport XRAY_PART=\"xc7a50tfgg484-1\"\nexport XRAY_RO... | shell | chosen |
[
{
"from": "system",
"value": "Add missing parameter `--strategy=TestRunner=standalone` to test script for Javascript on MacOS.\n\nPiperOrigin-RevId: 438014357\n"
},
{
"from": "human",
"value": "#!/bin/bash\n# Copyright 2022 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"L... | shell | chosen |
[
{
"from": "system",
"value": "Add the example to the travis script\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -e\nexport DISPLAY=:99.0\nsh -e /etc/init.d/xvfb start\n\nnpm run clean\nnpm run build\nnpm test\nnpm run test:coverage\nexport PATH=\"$HOME/miniconda/bin:$PATH\"\nnpm run docs\... | shell | chosen |
[
{
"from": "system",
"value": "Fix set npm auth token script\n"
},
{
"from": "human",
"value": "#!/bin/bash\ncat < .npmrc\n//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN\nEOF\n"
},
{
"from": "gpt",
"value": "#!/bin/bash\ncat << EOF > .npmrc\n//registry.npmjs.org/:_authToken=$NPM_AUT... | shell | chosen |
[
{
"from": "system",
"value": "Use apache2 to bring up a page indicating backend server\n"
},
{
"from": "human",
"value": "#!/bin/bash -v\napt-get update -y\napt-get install -y nginx > /tmp/nginx.log\n"
},
{
"from": "gpt",
"value": "#!/bin/bash -v\napt-get update -y\napt-get install -... | shell | chosen |
[
{
"from": "system",
"value": "Fix RPM build script to properly handle release versions.\n"
},
{
"from": "human",
"value": "#!/bin/sh\nset -e\ncd ../../\nDUB_PATH=`pwd`\n#rm -f ~/rpmbuild/SOURCES/dub.tar.gz\n#tar -pczf ~/rpmbuild/SOURCES/dub.tar.gz source build-files.txt build.sh LICENSE*\ncd ins... | shell | chosen |
[
{
"from": "system",
"value": "Use exit instead of return.\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nfunction getYCMcommit() {\n if [ -d pack/matteo/start/YouCompleteMe ]; then\n here=$PWD\n cd pack/matteo/start/YouCompleteMe && \\\n git show -q --oneline | cut -d\" ... | shell | chosen |
[
{
"from": "system",
"value": "Correct website deployment script errors.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n#\n# Deploys the current Dagger website to the gh-pages branch of the GitHub\n# repository. To test the site locally before deploying run `jekyll --server`\n# in the website/ d... | shell | chosen |
[
{
"from": "system",
"value": "Disable build for archived projects\n"
},
{
"from": "human",
"value": "#!/bin/sh\ncd $(dirname $0)\n\nfunction build {\n ./$1/ci.sh\n ret=$?\n if [ $ret -ne 0 ]; then\n exit $ret\n fi\n}\n\nbuild lite-device-resolver\nbuild lite-site-preference-ha... | shell | chosen |
[
{
"from": "system",
"value": "Migrate ryu-rfproxy to routeflow organisation\n\nSigned-off-by: Joe Stringer <16a9a54ddf4259952e3c118c763138e83693d7fd@wand.net.nz>\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nRYU_GIT=\"https://github.com/joestringer/ryu-rfproxy.git\"\nRYU_BRANCH=\"origin/master... | shell | chosen |
[
{
"from": "system",
"value": "Change travis script to get the proper branch for surefire-parser new feature.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\ncd scripts\nchmod +x install_git_rebase_last.sh\n./install_git_rebase_last.sh\n\nif [[ $? != 0 ]]\nthen\n echo \"Error while i... | shell | chosen |
[
{
"from": "system",
"value": "Use top-level Dockerfile to build image\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\necho \"Connecting to docker hub\"\necho \"$DOCKER_PASSWORD\" | docker login -u \"$DOCKER_USERNAME\" --password-stdin\n\necho \"Building...\"\ndocker build -t reactiflux/discord... | shell | chosen |
[
{
"from": "system",
"value": "Use mirrors when fetching pypi parkages (should be much faster)\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n# abort on any errors\nset -e\n\n# check that we are in the expected directory\ncd \"$(dirname $BASH_SOURCE)\"/..\n\n\n# Some env variables used during ... | shell | chosen |
[
{
"from": "system",
"value": "Fix handling of filenames containing whitespace.\n\nPR: bin/112860\nMFC in: 3 days\n"
},
{
"from": "human",
"value": "#! /bin/sh\n# ex:ts=8\n\n# $FreeBSD$\n\ncase \"$1\" in\n\t*.Z)\n\t\texec uncompress -c $1\t2>/dev/null\n\t\t;;\n\t*.gz)\n\t\texec gzip -d -c $... | shell | chosen |
[
{
"from": "system",
"value": "Use a function instead of an alias for BSD tac\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nset -o errexit; # Stop the script if any command fails.\nset -o pipefail; # \"The pipeline's return status is the value of the last\n # (righ... | shell | chosen |
[
{
"from": "system",
"value": "Add ability to ping db\n\nWhile here, make ping function more reusable\n"
},
{
"from": "human",
"value": "#!/bin/bash -e\n\n#\n# idgames.sh - simple idgames API ping script\n#\n\nbase='http://www.doomworld.com/idgames/api/api.php'\njson='&out=json'\naction='?action=... | shell | chosen |
[
{
"from": "system",
"value": "Add dependency install to update script\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -e\necho \"Updating checkout\"\ngit pull\n\necho \"Updating static files\"\nexport DJANGO_SETTINGS_MODULE=rippl.prod_settings\npython rippl/manage.py collectstatic --noinput\... | shell | chosen |
[
{
"from": "system",
"value": "Update DB restore script to properly handle different DBs\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\n# This a script for restoring the local env-logger database from a backup snapshot.\n\nset -e\n\nif [ $# -ne 2 ]; then\n cat <<EOF\nThis a script for restori... | shell | chosen |
[
{
"from": "system",
"value": "Set git editor to nvim\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\n# Comply with XDG Base Directory Specification\ngit_config_dir=\"$XDG_CONFIG_HOME/git\"\n\n# Reset Git config directory\nrm -rf \"$git_config_dir\"\nmkdir -p \"$git_config_dir\"\n\n# Ge... | shell | chosen |
[
{
"from": "system",
"value": "Switch to doc for doctest\n\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -e\nset -x\n\nmake test-doc\n"
},
{
"from": "gpt",
"value": "#!/bin/bash\n\nset -e\nset -x\nif [[ \"$SDIST\" != \"true\" ]]; then\n pushd .\n cd doc\n make doctest... | shell | chosen |
[
{
"from": "system",
"value": "Fix compile using newer Xcode SDK or gcc on Linux.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -e\n\nflags=()\n\nsdk=/Developer/SDKs/MacOSX10.4u.sdk\nif [[ -e $sdk ]]; then\n flags+=(-mmacosx-version-min=10.4 -isysroot \"$sdk\")\nfi\n\nfor arch in i386 ... | shell | chosen |
[
{
"from": "system",
"value": "Fix doc generation on Linux\n"
},
{
"from": "human",
"value": "#!/bin/sh\nrm -rf html\ndoxygen Doxyfile\ncp -r css fonts images js ieee-ram-2012-ompl.pdf html\n\ncd html\nfor f in md_doc_markdown_*; do mv $f `echo $f | cut -c17-1000`; done\nrm *8md_source.html\n\nfo... | shell | chosen |
[
{
"from": "system",
"value": "Improve the script to generate ON AuthN tokens\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nCONFIG_DIR=${SECANT_CONFIG_DIR:-/etc/secant}\nsource ${CONFIG_DIR}/secant.conf\nexport ONE_XMLRPC=$ONE_XMLRPC\noneuser login secant --cert \"$CERT_PATH\" --key \... | shell | chosen |
[
{
"from": "system",
"value": "Fix download_crystal() is terminated abnormally\n"
},
{
"from": "human",
"value": "function download_crystal() {\n # If a previous download does not exist, then always re-download\n if [ ${force_fetch} = true ] || [ ! -f ${crystal_path}/$(crystal_download_file) ];... | shell | chosen |
[
{
"from": "system",
"value": "Rework initialization script to support forking\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\ngit clone https://github.com/N4SJAMK/teamboard-io io\ngit clone https://github.com/N4SJAMK/teamboard-api api\ngit clone https://github.com/N4SJAMK/teamboard-clie... | shell | chosen |
[
{
"from": "system",
"value": "Create parent directories as needed\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nset -e\n\nfunction update_link()\n{\n dest=\"$HOME/.$1\"\n if [[ ! -e $dest || -L $dest ]]; then\n echo \"Updating $dest\"\n ln -sf \"`readlink -f $1`\"... | shell | chosen |
[
{
"from": "system",
"value": "Fix bugs to allow npm dependencies to be detected correctly\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nDEPENDENCIES=(npm go)\ndeclare -A NPM_DEPENDENCIES=([bower]=bower [grunt]=grunt-cli)\nREQUIRED_GO_VERSION=1.6\n\nfunction is_installed {\n command -v $1 >/... | shell | chosen |
[
{
"from": "system",
"value": "Clone the content-schemas to supply fixture data in test\n"
},
{
"from": "human",
"value": "#!/bin/bash -x\n\nset -e\n\nexport FACTER_govuk_platform=test\nexport RAILS_ENV=test\nexport DISPLAY=\":99\"\nexport GOVUK_APP_DOMAIN=dev.gov.uk\n\nbundle install --path \"${... | shell | chosen |
[
{
"from": "system",
"value": "Fix rbenv-related build issues on Jenkins"
},
{
"from": "human",
"value": "#!/bin/sh\nset -e\nrm -f Gemfile.lock\nbundle install --path \"${HOME}/bundles/${JOB_NAME}\"\nbundle exec rake\nbundle exec rake publish_gem\n"
},
{
"from": "gpt",
"value": "#!/bi... | shell | chosen |
[
{
"from": "system",
"value": "Fix SELinux httpd connect to redis socket"
},
{
"from": "human",
"value": "# Copyright © 2017 Feature.su. All rights reserved.\n# Licensed under the Apache License, Version 2.0\n\nyum -y install redis\n\nsed -i \"s/# unixsocket \\/tmp\\/redis.sock/unixsocket \\/var\... | shell | chosen |
[
{
"from": "system",
"value": "Reduce patch url in unix64"
},
{
"from": "human",
"value": "#!/bin/sh\n\ndighome=~/diglog\n\nmkdir $dighome\ncd $dighome\n\nwget http://john-lazzaro.github.io/chipmunk/pickup/sources/psys-1.61.tar.gz\nwget http://john-lazzaro.github.io/chipmunk/pickup/sources/log-5.... | shell | chosen |
[
{
"from": "system",
"value": "Allow specification of _spec.rb files to test\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\n# To enable debugging of the logstash internals during the tests:\n# export TEST_DEBUG=true\n\nsudo stop logstash\n\nset -e\n\ndir=\"$(dirname $0)\"\n\ncd $dir\n\n/opt/logs... | shell | chosen |
[
{
"from": "system",
"value": "ct: Add a final final step.\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\n\nSCRIPT_DIR=$(dirname \"$0\")\nBACKUP_DIR=~/.dotfiles.backup\nTARGET_DIR=~\n\nmain () {\n mkdir -p \"$BACKUP_DIR\"\n\n if ! cd \"$SCRIPT_DIR/dot\"; then\n echo \"$SCRIPT_DIR: C... | shell | chosen |
[
{
"from": "system",
"value": "Add fixing new file for instalation\n\nSigned-off-by: Jacobo Tibaquira <d8d2a0ed36dd5f2e41c721fffbe8af2e7e4fe993@gmail.com>\n"
},
{
"from": "human",
"value": "#!/bin/env bash\n\ndbpath=$(find /usr -type f -name \"script.db\" 2>/dev/null)\n\nif [[ $dbpath ]]; then\n ... | shell | chosen |
[
{
"from": "system",
"value": "Remove useless deployment scripts part\n\npython-varlink is now deployed on pypi through git tag creation and travis\ntriggering, so we can now remove some useless part of the deployment script.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -e\n\nversion=\"$... | shell | chosen |
[
{
"from": "system",
"value": "Add support for testing imagestreams on RHEL9\n\nSigned-off-by: Petr \"Stone\" Hracek <5ec98b824b3d06300936ce230b04e9851e98fc96@redhat.com>\n"
},
{
"from": "human",
"value": "#!/bin/bash\n#\n# Functions for tests for the Ruby S2I image in OpenShift.\n#\n# IMAGE_NAME... | shell | chosen |
[
{
"from": "system",
"value": "Update docker command to support PIP SQL Mapping\n\nPIP SQL Mapping requires another port forward, 61012, and increased\nsysctl sized for messages: kernel.msgmax=1048700 and kernel.msgmnb=65536000\n\nThis doesn't affect applications that don't listen on port 61012\nor need incr... | shell | chosen |
[
{
"from": "system",
"value": "Add a manual trigger to clean the cache on CI\n\nWhen we bump a low-level dependency, such as `libc`, a large number of\ncrates are rebuilt and this can grow our cache to the point where\ncaching hits a timeout (and is not persisted).\n\nBy changing the value of `manual_stamp` ... | shell | chosen |
[
{
"from": "system",
"value": "Update command to get StumpWM pid\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\n## customize these\n## use host=. for local host\nap=\"/usr/local/bin/mpg123\"\nnms=\"${HOME}/files/media/audio/chime.mp3\"\ncount=0\nhost=.\nnewcount=0\npath=~/mail/new\nport=22\nuser... | shell | chosen |
[
{
"from": "system",
"value": "Fix support for nested Jenkins jobs"
},
{
"from": "human",
"value": "userAtHost() {\n echo $(id -nu)-at-$(hostname -s)\n}\n\nchangeset() {\n echo \"${GIT_COMMIT:-$(git 2>/dev/null rev-parse HEAD)}\"\n}\n\nchangeset_short() {\n printf '%.7s' \"${1:-$(changeset)}\"... | shell | chosen |
[
{
"from": "system",
"value": "Use the last re2 tag before C++11 was introduced\n\nRecently (cd505f4597d) re2 was changed to use C++11 atomics, so before\nwe enable -std=c++11 in CFLAGS, prepare a release that explicitly checks\nout the last tag (2016-02-01) before the change.\n\nThis is the commit which int... | shell | chosen |
[
{
"from": "system",
"value": "Set a slightly lower resolution for my big monitor\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nIN=\"eDP1\"\nEXT=\"DP1\"\n\nxrandr > /dev/null\nxrandr | grep \"$EXT disconnected\" > /dev/null\n\nif [ $? -eq 0 ]; then\n xrandr --output $IN --primary --m... | shell | chosen |
[
{
"from": "system",
"value": "Fix bug in previous commit.\n"
},
{
"from": "human",
"value": "export GALAXY_SLOTS_CONFIGURED=\"1\"\nif [ -n \"$SLURM_NTASKS\" ]; then\n # May want to multiply this by ${SLURM_CPUS_PER_TASK:-1}.\n # SLURM_NTASKS is total tasks over all nodes so this is \n #... | shell | chosen |
[
{
"from": "system",
"value": "appveyor: Fix spaces in MSYS path\n"
},
{
"from": "human",
"value": "cd /c/projects/plib-build\n/c/Program Files\\ (x86)/CMake/bin/cmake -DCMAKE_BUILD_TYPE=$configuration -G\"$CMAKE_GENERATOR\" $BOOST_ARGS /c/projects/plib\nmake\n/c/Program Files\\ (x86)/CMake/bin/c... | shell | chosen |
[
{
"from": "system",
"value": "Allow setting component as an argument\n"
},
{
"from": "human",
"value": "#!/bin/bash -exu\n\nexport DEBUG=true \nexport GLI_DEBUG=true \n\nDISTRIBUTION=$1\nCOMPONENT=$(echo $GIT_BRANCH | sed 's/^origin\\\\///' | tr '/' '.')\n\ndebify publish --component $COMPONENT ... | shell | chosen |
[
{
"from": "system",
"value": "Resolve issue with deploy script\n"
},
{
"from": "human",
"value": "# Deploy to all sites in parallel\necho \"🚢 Fetching from GitHub...\";\ngit fetch origin\n\necho \"🚢 Deploying...\";\nyarn run concurrently \\\n --names \"demo,somerville,new-bedford\" \\\n -c... | shell | chosen |
[
{
"from": "system",
"value": "Remove setopt correct, it’s fucking annoying"
},
{
"from": "human",
"value": "# makes color constants available\nautoload -U colors\ncolors\n\n# enable colored output from ls, etc\nexport LSCOLORS=\"Gxfxcxdxbxegedabagacad\"\n\n# History settings\nsetopt hist_ignore_... | shell | chosen |
[
{
"from": "system",
"value": "Fix configuration in Docker script\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -e\n\nREPO_PATH=`pwd`\nSHARED_PATH=/tmp/`ls -1 /tmp/ | grep -E ^drone_shared | head -n 1`\n\necho \"Drone systems check...\"\necho \"--------------------------------------------... | shell | chosen |
[
{
"from": "system",
"value": "Tweak gid script a bit\n"
},
{
"from": "human",
"value": "alias reload='. ~/.bashrc'\nalias a='atom .'\nalias shitter='cd ~/git/veralite/ && bin/lasttripped; cd - > /dev/null'\nalias drun='docker run --rm -i -t'\nalias rnl='rename-and-link'\nalias gid='pbpaste | rub... | shell | chosen |
[
{
"from": "system",
"value": "Add pip check to linters\n\npip check reports if there is a mismatch between requirements and the\ninstalled packages. This is sometimes missed by auto-update tools.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n# This Source Code Form is subject to the terms of... | shell | chosen |
[
{
"from": "system",
"value": "Remove the check for OEM partition, not used\n"
},
{
"from": "human",
"value": "#!/bin/bash\n# Set up /usr/lib/ignition, copying contents from /usr/share/oem.\n\nset -e\n\ncase \"$1\" in\nnormal)\n src=/mnt/oem\n mkdir -p \"${src}\"\n mount /dev/disk/by-lab... | shell | chosen |
[
{
"from": "system",
"value": "Fix script to not require CDing into directory first.\n\ngit-svn-id: 9ecf60ce9baff443e30a0472d3fd222fcb8117cf@9299 7b97033b-253e-4a5c-9b07-e25f9089a9fd\n"
},
{
"from": "human",
"value": "#Check the number of arguments supplied:\nif [ $# -ne 2 ]\nthen\n echo \"tes... | shell | chosen |
[
{
"from": "system",
"value": "Add placeholder for puppet enterprise server hostname\n"
},
{
"from": "human",
"value": "#!/bin/bash\nyum install -y puppet\n\nPUPPET_CONF=$(cat <<'END_OF_CONFIG'\n[main]\n logdir = /var/log/puppet\n rundir = /var/run/puppet\n ssldir = $vardir/ssl\n serv... | shell | chosen |
[
{
"from": "system",
"value": "Exclude .git dir from pep8 checks\n"
},
{
"from": "human",
"value": "# Copyright (C) 2017 Open Source Robotics Foundation\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# Y... | shell | chosen |
[
{
"from": "system",
"value": "Build Surelog with -j in kokoro\n\nSigned-off-by: Rafal Kapuscik <6a7be3d4d2afb8bd1d0b737d2f237a3071b5d393@antmicro.com>\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -e\n\ncd github/$KOKORO_DIR/\n\nsource ./.github/kokoro/steps/hostsetup.sh\nsource ./.githu... | shell | chosen |
[
{
"from": "system",
"value": "Add usage, source in subshell\n"
},
{
"from": "human",
"value": "#!/bin/dash\n# sunrose: generic theme switcher.\n# Copyright 2012 Tom Vincent <http://tlvince.com/contact>\n\nmodules=\"${modules:-sunrose.d}\"\n\n# $1 - String: 'light' or 'dark'\n[ -d \"$modules\" ] ... | shell | chosen |
[
{
"from": "system",
"value": "Remove / prefix from name returned by make_container.\n"
},
{
"from": "human",
"value": "[ -n \"$DEBUG\" ] && set -x\nif [ -z \"$SCHEME\" ]; then \n SCHEME=\"$(docker run --rm --entrypoint sh $PROVIDER -c 'echo $DATABASE_SCHEME')\"\nfi\n\nDOKDB_TEST_PORT=\"$(docker... | shell | chosen |
[
{
"from": "system",
"value": "Fix database connectivity issues to cairis-mysql\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -x\nmysql -h cairis-mysql --user=root < createdb.sql\nmysql -h cairis-mysql --user=cairisuser --password=cairisuser --database=cairis_default < $CAIRIS_SRC/sql/init.... | shell | chosen |
[
{
"from": "system",
"value": "Improve network handling for CDAP VM\n"
},
{
"from": "human",
"value": "#!/bin/bash\n#\n# Copyright © 2015 Cask Data, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n# use this file except in compliance with the License. You... | shell | chosen |
[
{
"from": "system",
"value": "Update 'no plugin installed' message\n"
},
{
"from": "human",
"value": "plugin_list_command() {\n local plugins_path=$(get_plugin_path)\n\n if ls $plugins_path &> /dev/null; then\n for plugin_path in $plugins_path/* ; do\n echo \"* $(basename $plugin_path)... | shell | chosen |
[
{
"from": "system",
"value": "Use symlinks to make hbsfy requireable\n\nand generalize the test runner\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nset -eu\n\ncd test/\nnpm link hbsfy\nnode test.js\nnode browserify_test.js\nnode custom_extension_test.js\n\n"
},
{
"from": "gpt",
"v... | shell | chosen |
[
{
"from": "system",
"value": "Remove fetching notes from monorepo\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\n# Configures LLVM to be build and installed in the current directory.\n# http://llvm.org/docs/GettingStarted.html#for-developers-to-work-with-a-git-monorepo\n#\n# Usage: ./... | shell | chosen |
[
{
"from": "system",
"value": "Make test runner more robust\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nsemaphore=test-server/target/semaphore\n\nrm -f $semaphore\njava -jar test-server/target/test-server.jar 7001 $semaphore &\nserver_pid=$!\n\necho \"Waiting for test server to start...\"\n... | shell | chosen |
[
{
"from": "system",
"value": "Add window class and name\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nif [ -n \"${XAUTHORITY}\" ] && [ -n \"${HOST_HOSTNAME}\" ]\nthen\n if [ \"${HOSTNAME}\" != \"${HOST_HOSTNAME}\" ]\n then\n [ -f ${XAUTHORITY} ] || touch ${XAUTHORITY}\n xauth add ${H... | shell | chosen |
[
{
"from": "system",
"value": "Fix sourcing the openrc file\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nset -e\n\nif [ -z \"$OS_PASSWORD\" ] || [ -z \"$OS_TENANT_ID\" ]; then\n if [ -s $HOME/.openrc ]; then\n printf \"Loading OpenStack credentials from $HOME/.openrc...\\n\"\n ... | shell | chosen |
[
{
"from": "system",
"value": "Fix JAR path in crash aggregate dag.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nif [[ -z $bucket || -z $date ]]; then\n echo \"Missing arguments!\" 1>&2\n exit 1\nfi\n\ngit clone https://github.com/mozilla/telemetry-batch-view.git\ncd telemetry-batch-view... | shell | chosen |
[
{
"from": "system",
"value": "Stop force setting postgres port\n"
},
{
"from": "human",
"value": "#!/bin/sh\nAPPNAME=${APPNAME:-`grep name manifest.yml | awk '{print $3}'`}\ncf set-env $APPNAME AWS_ACCESS_KEY_ID $AWS_ACCESS_KEY_ID\ncf set-env $APPNAME AWS_SECRET_ACCESS_KEY $AWS_SECRET_ACCESS_KEY... | shell | chosen |
[
{
"from": "system",
"value": "Add capability to set a manual token\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nif [ -f /usr/bin/le2 ]; then\n /usr/bin/le2 tokens\nfi\n"
},
{
"from": "gpt",
"value": "#!/bin/sh\n\nif [ -s /usr/bin/le2 ]; then\n if [ -s /etc/le/token ]; then\n ... | shell | chosen |
[
{
"from": "system",
"value": "Fix path to python adb wrapper script\n"
},
{
"from": "human",
"value": "#!/bin/sh\nrunAndroidTestWithBinding () {\n echo \"Running tests on platform $ANDROID_TARGET with binding $1\"\n python3 ./adb-wrapper.py \"adb shell am instrument -w -e squidb_binding $1... | shell | chosen |
[
{
"from": "system",
"value": "Add another fix to travis coveralls problem\n\nRun another build without stage after first build has passed. Should fix\nthe problem with travis not finding scala sources.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n# Coverage reporting\nsbt stage coveralls\n\... | shell | chosen |
[
{
"from": "system",
"value": "Tweak test shell script again (oops)\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nset -e\n\nif [ -n \"$DEBUG\" ]; then\n export DEBUG=\"testsuite\"\nfi\n\nSUITE=./dist/build/testsuite/testsuite\n\nexport LC_ALL=C\nexport LANG=C\n\nrm -f testsuite.tix\n\nif [ !... | shell | chosen |
[
{
"from": "system",
"value": "Add logging to track caching on CI\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -e\n\nsource $(dirname $0)/common.sh\nrepository=$(pwd)/distribution-repository\n\npushd git-repo > /dev/null\n./mvnw clean deploy -U -Pfull -DaltDeploymentRepository=distribution... | shell | chosen |
[
{
"from": "system",
"value": "Fix minor typo that stopped Pronunciation from running\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nCURRENTDIR=\"./catscripts/Language\"\n\n$CURRENTDIR/Non-English_languages/NonEnglish.sh \n$CURRENTDIR/Definitions/Definitions.sh\n$CURRENTDIR/Synonyms/Synonyms.s... | shell | chosen |
[
{
"from": "system",
"value": "Install dmgbuild and gon after startup\n"
},
{
"from": "human",
"value": "#!/bin/bash\n# if the proxy is around, use it\nnc -z -w3 192.168.1.1 8123 && export http_proxy=\"http://192.168.1.1:8123\"\n\nexport PATH=\"/usr/local/bin:$PATH\"\n\nchmod 755 /vagrant/package... | shell | chosen |
[
{
"from": "system",
"value": "Upgrade args to java 11 compatible\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nset -o errexit\nset -o nounset\n\nif [[ \"${WAIT_FOR_DEPS:=false}\" = \"true\" ]]; then\n /app/wait-for-dependencies.sh\nfi\n\njava -XshowSettings:vm -XX:+PrintGCDetails -X... | shell | chosen |
[
{
"from": "system",
"value": "Use find in testing for conditional download.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n#\n# Conditionally download a wheelset satisfying Rasterio's dependencies to \n# speed up builds.\n\nset -e\n\nWHEELHOUSE=$HOME/wheelhouse\n\nif [[ ! -e \"$WHEELHOU... | shell | chosen |
[
{
"from": "system",
"value": "Add disabling -e in bash\n"
},
{
"from": "human",
"value": "#!/bin/bash -e\n\nCURRDIR=$PWD\nBASEDIR=$(cd \"$(dirname \"$0\")\"; pwd)\nWORK_DIR=\"$BASEDIR/..\"\nPLATFORM=\"$(uname -a | grep -i -o -e ubuntu -e debian | tr '[:lower:]' '[:upper:]')\"\n\ndlfile()\n{\n ... | shell | chosen |
[
{
"from": "system",
"value": "Add idea on how to combine metadata files.\n\nJust experimenting with doing everything in the shell.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n# Output a directory tree as JSON\n\nfind ../example -mindepth 1 -printf '{\"path\":\"%P\",\"type\":\"%y\",\"size\":%... | shell | chosen |
[
{
"from": "system",
"value": "Update curlhead function to use HTTPie if available\n"
},
{
"from": "human",
"value": "#Network related aliases\n\nalias hosts=\"sudo -E vim /etc/hosts;\"\n\n#prints out http headers for url - arg $1 is url\n#http://stackoverflow.com/questions/10060098/getting-only-... | shell | chosen |
[
{
"from": "system",
"value": "Fix Homebrew bin path declaration\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nif [[ -d \"/home/linuxbrew/.linuxbrew\" ]]; then\n export PATH=\"/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH\"\n\n if type brew &>/dev/null; then\n... | shell | chosen |
[
{
"from": "system",
"value": "Add ubuntu user to Docker group\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nsudo service zookeeper stop\nsudo sh -c \"echo manual > /etc/init/zookeeper.override\"\nsudo service mesos-master stop\nsudo sh -c \"echo manual > /etc/init/mesos-master.override\"\npr... | shell | chosen |
[
{
"from": "system",
"value": "Add scikit-learn for faster travis builds\n"
},
{
"from": "human",
"value": "# Deactivate the travis-provided virtual environment and setup a\n# conda-based environment instead\ndeactivate\n\n# Use the miniconda installer for faster download / install of conda\n# it... | shell | chosen |
[
{
"from": "system",
"value": "Fix multiple argument completion with zsh\n\nThis changes the zsh completion to omit the final, incomplete command\nline argument when invoking rbenv completions, making it consistent with\nthe bash completion. Since no built-in completion cares about the\nargument list, this ... | shell | chosen |
[
{
"from": "system",
"value": "Build script didn't even work all this time.\n"
},
{
"from": "human",
"value": "#/usr/bin/bash\n\npython3 setup.py sdist\npython3 setup.py bdist_wheel\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env bash\n\npython3 setup.py sdist\npython3 setup.py bdist_... | shell | chosen |
[
{
"from": "system",
"value": "[ohmyzsh] Add zsh of homebrew to /etc/shells"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n#\n# oh-my-zsh\n#\n# A delightful community-driven framework for managing your zsh configuration.\n\nset -e\n\nexport DOTFILES=$HOME/.dotfiles\n\n# Include customize p... | shell | chosen |
[
{
"from": "system",
"value": "Add commit to fix the Bits-service TLS ca_cacert patch for CC\n\n[#120659595]\n"
},
{
"from": "human",
"value": "#!/bin/bash -ex\n\n(\ncd capi-release/src/cloud_controller_ng\ngit remote add -f fork/master https://github.com/idev4u/cloud_controller_ng.git\ngit cherr... | shell | chosen |
[
{
"from": "system",
"value": "Add web.py needed by cpppo -w : option\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n# TODO: add parametric installation\n# mininet vm is running Ubuntu\ncd\n\necho \"Install required dependencies\"\nsudo apt-get install python-networkx python-matplotlib python-... | shell | chosen |
[
{
"from": "system",
"value": "Add support for calendar date different than utc\n\nAdded support for the new year as first case so then I could easily use the day number in the second case\nMade a lot of if statements but is good in best case if you are on same day as utc.\n"
},
{
"from": "human",
... | shell | chosen |
[
{
"from": "system",
"value": "Add the txwebtest user to the redis group. Add the current user to the txwebtest group\n"
},
{
"from": "human",
"value": "#!/bin/bash\nuseradd -r -s /bin/false txwebtest\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/zsh\nuseradd -r -s /bin/false txwebtest\... | shell | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.