conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add gdb to packages list\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n#\n# Should be run as local user\n#\n\nif [ \"$(id -u)\" == \"0\" ]; then\n echo \"This script must not be run as root\"\n exit 1\nfi\n\ncd ~/\nmkdir repo\nmkdir repo/github\ncd repo/gi... | shell | chosen |
[
{
"from": "system",
"value": "[CSL-1855] Update UI simulator to shutdown the node before exiting\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\n_ppid=$PPID\n\necho \"My pid $$, PPID=$PPID\"\n\nif [[ \"$1\" == \"\" ]]; then\n v=$(uxterm -e \"$(pwd)/$0 --\" || echo bla)\n case $v in\n... | shell | chosen |
[
{
"from": "system",
"value": "Upgrade CI to Docker 20.10.17\n\nCloses gh-31295\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": "Use an UTF-8 locale to build the linux native image\n"
},
{
"from": "human",
"value": "# First argument -- location of graalvm\n# Second argument -- version of zprint-filter\ncd /app\nexport PATH=$1/bin:$PATH\nexport JAVA_HOME=$1\necho \"$PATH\"\npwd\nwhereis native... | shell | chosen |
[
{
"from": "system",
"value": "Remove N from the diff args to simplify output.\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\ndiff -pruNb --exclude '*~' --exclude '.git' --exclude '*.elc' --exclude 'state' ~/.emacs.d emacs.d\ndiff -ub ~/.emacs dot.emacs\ndiff -ub ~/.ackrc ackrc\n"
},
{
"... | shell | chosen |
[
{
"from": "system",
"value": "Put offline archive of site into site directory\n\nThis enables easier automatic pull based publishing."
},
{
"from": "human",
"value": "#!/bin/bash\n\nVERSION=$1\nSERVER=$2\nPORT=$3\n\nif [ -z \"$WRKDIR\" ]\nthen\n echo Environment WRKDIR is not set, setting it ... | shell | chosen |
[
{
"from": "system",
"value": "Clean up /var/log/auth.log at boot time\n"
},
{
"from": "human",
"value": "log \"substituting placeholders for real data in config files\"\n\nsubstitute_files=($(find /etc /opt/local/etc -type f | sort | xargs \\\n egrep -l '@(PUBLIC_IP|PRIVATE_IP|HOSTNAME|ZONENAME... | shell | chosen |
[
{
"from": "system",
"value": "Add separate filepath for git command in repackage dependency task\n\n[#172532894]\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -euo pipefail\n\nname=\"$(jq -r .source.name source/data.json)\"\nversion=\"$(jq -r .version.ref source/data.json)\"\nmetadata_fi... | shell | chosen |
[
{
"from": "system",
"value": "Fix deploy on linux (removed cross)\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": "Use bash for build script\n"
},
{
"from": "human",
"value": "#!/bin/sh\n# django-helpdesk shell script to upload to pypi.\n\nWORKDIR=/tmp/django-helpdesk-build.$$\nmkdir $WORKDIR\npushd $WORKDIR\n\ngit clone git://github.com/rossp/django-helpdesk.git\ncd django-help... | shell | chosen |
[
{
"from": "system",
"value": "Fix bash completion when the SDK is not installed\n\nThe `dotnet complete` command is an SDK command. If the SDK is not\ninstalled, `dotnet complete` is not available. Triggering completion in\nbash without the SDK installed results in errors being shown.\n\nFix it by checking ... | shell | chosen |
[
{
"from": "system",
"value": "Move composer custom do_check into the do_check function\n\nSigned-off-by: Graham Weldon <5ca27e75aea3e5e83a04c6cfa5f1b63d358cd03d@grahamweldon.com>\n"
},
{
"from": "human",
"value": "pkg_name=composer\npkg_origin=core\npkg_version=1.3.2\npkg_maintainer=\"The Habita... | shell | chosen |
[
{
"from": "system",
"value": "Change structure of local dependent projects\n"
},
{
"from": "human",
"value": "#!/bin/bash\nBASE_DIR=`dirname $0`\n\nif [ $1 ]; then\n\tif [ -d $BASE_DIR/../../$1 ]; then\n\n\t\tgrunt\n\n\t cp $BASE_DIR/../js-build/forms-angular.min.js $BASE_DIR/../../$1/app/com... | shell | chosen |
[
{
"from": "system",
"value": "Build git with soft links instead of hardlinks\n\nBecause when copied, hard links make the resulting directory hundreds\nof times bigger\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n# Version of git to build\nGIT_VERSION=\"v1.9.0\"\n\n# Architecture to build fo... | shell | chosen |
[
{
"from": "system",
"value": "Correct format for the pack file.\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nset -e\nset -u\n\nNAME=renderer-linux64\nDEST=/tmp/pack/$NAME\nVERSION=$1\n\n# Build the binaries\nscons -c\nscons\n\n# Copy the files to an independent folder\nrm -rf $DEST\nmkdir -p ... | shell | chosen |
[
{
"from": "system",
"value": "Exit on first error in Bash script\n"
},
{
"from": "human",
"value": "#!/bin/bash\ngo build . || exit 1\n./gen > expr1.go\ngofmt -w expr1.go\n"
},
{
"from": "gpt",
"value": "#!/bin/bash\nset -e\ngo build gen.go\n./gen > expr1.go\ngofmt -w expr1.go\n"
}... | shell | chosen |
[
{
"from": "system",
"value": "Add Sublime Text alias if we're working in Cygwin\n"
},
{
"from": "human",
"value": "# Cygwin shell configuration\n\n# Because I never remember the '-s' parameter\nalias ssh-agent-cyg='eval $(ssh-agent -s)'\n\n# vim: syntax=sh ts=4 sw=4 sts=4 sr noet\n"
},
{
... | shell | chosen |
[
{
"from": "system",
"value": "Use curl instead of wget due to Docker image.\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nF=aspell6-en-2015.04.24-0.tar.bz2\nURL=ftp://ftp.gnu.org/gnu/aspell/dict/en/${F}\n\necho \"# setting up Aspell dictionaries!!\"\n(\n\tcd data\n\twget $URL\n\ttar xjf $F\n\t... | shell | chosen |
[
{
"from": "system",
"value": "Fix sccache installation on OSX\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -ex\n\n# https://stackoverflow.com/a/34676160/2489366\n# the directory of the script\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\n\n# the temp directory used, wi... | shell | chosen |
[
{
"from": "system",
"value": "Use latest CockroachDB in tests\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -eux -o pipefail\n\nif [ ! -x env/bin/python ]; then\n python3 -m venv env\nfi\nsource env/bin/activate\n\npip install -r dev-requirements.txt\n\ncase $OSTYPE in\n darwin*) C... | shell | chosen |
[
{
"from": "system",
"value": "Move some things around, more npm. Should work.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n#\n# This script is run by Vagrant when a new machine is provisioned.\n#\n \nsudo apt-get -y install git\n\nsudo apt-get -y install python-software-properties\ncurl -sL h... | shell | chosen |
[
{
"from": "system",
"value": "Add coveralls to conda env.\n"
},
{
"from": "human",
"value": "#!/bin/bash\nconda update -q conda\n# Useful for debugging any issues with conda\nconda info -a\nconda create -q -n pymola python=3.5 numpy scipy sympy coverage matplotlib gcc cython\nsource activate pym... | shell | chosen |
[
{
"from": "system",
"value": "Update CRMC version for LEGO trains\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -e\n\nif [[ $# -lt 1 ]]; then\n echo \"You must specify at least where to write output to as first parameter.\"\n exit -1\nfi\n\necho \"running in `pwd`, writing HepMC to $... | shell | chosen |
[
{
"from": "system",
"value": "Create branch specifically for the build to ensure proper cleanup\n\nTRACE-37\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -eu\n\nif (( $# < 1)); then\n echo \"OpenHIM release build: Builds a specific tagged release ready for deployment\";\n echo \"Usage:... | shell | chosen |
[
{
"from": "system",
"value": "Update script for creation of the tarball.\n"
},
{
"from": "human",
"value": "#! /bin/bash\n# script to create a release tarball for strigi\n# this is needed since the project is split up in separate git moduls\nTAG=0.7.6\ngit archive --format=tar --prefix=strigi-$T... | shell | chosen |
[
{
"from": "system",
"value": "Add configure flag for c++11\n\nAdd configure flag for c++11"
},
{
"from": "human",
"value": "#!/bin/bash\n\n./configure --prefix=${PREFIX} \\\n --host=\"${HOST}\" \\\n --build=\"${BUILD}\"\n\nmake -j ${CPU_COUNT}\nmake install\n"
},
{
... | shell | chosen |
[
{
"from": "system",
"value": "Use HTTPS instead of SSH\n"
},
{
"from": "human",
"value": "#!/bin/bash\nOS=$(lsb_release -si)\nif [ \"${OS}\" != 'Ubuntu' ]; then\n echo 'This script should only be run under Ubuntu.'\n exit\nfi\nsudo apt-get install --assume-yes puppet git make\nssh-keyscan ... | shell | chosen |
[
{
"from": "system",
"value": "Update to match new layout\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nif [ \"x$1\" = \"x-ok\" -a -f _.fl ] ; then\n\techo \"Saved as reference\"\n\tmv _.fl _.fl.old\n\texit 0\nfi\n\nflexelint \\\n\t../flint.lnt \\\n\tflint.lnt \\\n\t-I. \\\n\t-I../../include \\... | shell | chosen |
[
{
"from": "system",
"value": "Set identity option to the path of the private key\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nexport SSH_AUTH_HOST=localhost\nexport SSH_AUTH_PORT=\"2020\"\nexport SSH_AUTH_USER=\"api\"\nexport API_URL=\"http://localhost:3000/graphql\"\n\ncd \"$(dirname \"${B... | shell | chosen |
[
{
"from": "system",
"value": "shell: Use nvim as EDITOR/VISUAL, if available\n"
},
{
"from": "human",
"value": "export CLICOLOR=1\nexport LSCOLORS=ExfxcxdxbxagadbHbHEHEH\nexport LS_COLORS='di=01;34;49:ln=35;49:so=32;49:pi=33;49:ex=31;49:bd=30;46:cd=30;43:su=31;01;47:sg=31;01;47:tw=01;34;01;47:ow... | shell | chosen |
[
{
"from": "system",
"value": "Fix error mail script with incorrect quoting\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nEMAIL_BODY_FILE=$1\n\nif [[ \"$ERRORMAIL\" == \"\" ]]; then\n\texit 0;\nfi\n\nSUBJECT=\"[renderdoc] Compile error on $PLATFORM\"\n\nEMAILHOST=\"${BUILD_ROOT}\"/support/ema... | shell | chosen |
[
{
"from": "system",
"value": "Change cmake options for analyzer build.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -e\n\necho Building Analyzer\n\nrm -rf asm/\nmkdir -p asm\npushd asm\nif [[ $BUILD_OPTIONS == *\"--enable\"* ]]; then\n #legacy configure\n popd\n make distclean || tru... | shell | chosen |
[
{
"from": "system",
"value": "Fix for test suite not failing\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\n# Update the prompt information based on the version\nif test \"$SUBLIME_TEXT_VERSION\" = \"2\"; then\n EXPECTED_PROMPT=\"Sublime Text 2 Build 2221\"\nelif test \"$SUBLIME_TEXT_VERSION\"... | shell | chosen |
[
{
"from": "system",
"value": "Set bat style to plain\n"
},
{
"from": "human",
"value": "# Colorize common tools with grc\nif (( $+commands[grc] )) && (( $+commands[brew] )); then\n source `brew --prefix`/etc/grc.bashrc\nfi\n\n# Override ls with exa or gls, add colors\nif (( $+commands[exa] )); ... | shell | chosen |
[
{
"from": "system",
"value": "Add vert.x home to gvm initialisation script.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nexport GVM_SERVICE=\"@GVM_SERVICE@\"\n\nPATH=\"$HOME/.gvm/bin:$PATH\"\n\nGROOVY_HOME=\"$HOME/.gvm/groovy/current\"\nGRAILS_HOME=\"$HOME/.gvm/grails/current\"\nGRIFFON_HOM... | shell | chosen |
[
{
"from": "system",
"value": "Use --force when uninstalling brew formulae\n"
},
{
"from": "human",
"value": "#-------------------------------------------------------------------------------\n#\n# install/uninstall-homebrew.sh\n# Repeatable script which removes command-line tools no longer desire... | shell | chosen |
[
{
"from": "system",
"value": "Update Run Test script with new action\n"
},
{
"from": "human",
"value": "cd Examples/MendeleySDKDemoOSX/\nxcodebuild -workspace MendeleySDKDemoOSX.xcworkspace/ -scheme MendeleySDKDemoOSX TEST_AFTER_BUILD=YES\n"
},
{
"from": "gpt",
"value": "cd Examples/... | shell | chosen |
[
{
"from": "system",
"value": "[osx] Fix trackpad preferences for El Capitan\n\nRef mathiasbynens/dotfiles#612\nClose alrra/dotfiles#26\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\ncd \"$(dirname \"${BASH_SOURCE[0]}\")\" \\\n && source \"../../utils.sh\"\n\n# - - - - - - - - - - - - - - -... | shell | chosen |
[
{
"from": "system",
"value": "Create JavaDoc during Travis builds by default.\n\nSigned-off-by: Kai Hudalla <6c3288b94355003a6c5f12ba233f9fc06ef02a62@bosch-si.com>"
},
{
"from": "human",
"value": "#!/bin/bash\n# Abort on Error\nset -e\n\nexport PING_SLEEP=30s\nexport WORKDIR=\"$( cd \"$( dirname... | shell | chosen |
[
{
"from": "system",
"value": "Use pip to pre-fetch python dependencies.\n\nReviewed at https://reviews.apache.org/r/28915/\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n#\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": "Add a few apps into the cask install list\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\n# Install or update Homebrew\nif [[ ! -f $(which brew) ]];\nthen\n\techo \"• Installing Homebrew\"\n\truby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebre... | shell | chosen |
[
{
"from": "system",
"value": "Add DOKKU_TRACE support to turn on command tracing\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nif [[ ! -z $DOKKU_HOST ]]; then\n\tfunction dokku {\n\t\tappname=$(git remote -v 2>/dev/null | grep dokku | head -n 1 | cut -f1 -d' ' | cut -f2 -d':' 2>/dev/... | shell | chosen |
[
{
"from": "system",
"value": "Fix always wait fetch with `-m` option\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nsites=(\n http://publicdomaingifs.tumblr.com/\n)\n\ncachefile=\"$0.cache\"\n\nusage() {\n cat <<EOD\nusage: $0 [-m]\nEOD\n}\n\nlgtm_markdown() {\n echo \"[. Apple's vim version does not work with that. That breaks\nos-specifics call for things like forward-searching in synctex-enabled\ndocuments with vie... | shell | chosen |
[
{
"from": "system",
"value": "Update brew packages with some new ones\n"
},
{
"from": "human",
"value": "#!/bin/sh\n#\n# This installs some of the common dependencies desired using Homebrew.\n\n# check for Homebrew\nif test ! $(which brew)\nthen\n echo \" Installing Homebrew for you.\\n\"\n r... | shell | chosen |
[
{
"from": "system",
"value": "Make k8s.io test more robust\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nset -o errexit\nset -o nounset\nset -o pipefail\n\nfunction kc() {\n kubectl --context=utilicluster --namespace=k8s-io-canary \"$@\"\n}\n\nkc apply \\\n -f configmap-nginx.yam... | shell | chosen |
[
{
"from": "system",
"value": "Set optional verbose mode to carthage command\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -e\n\nNO_USE_BINARIES=\"\"\n\nif [[ \"${no_use_binaries}\" == \"true\" ]] ; then\n\tNO_USE_BINARIES='--no-use-binaries'\nfi\n\n#\n# Bootstrap\ncarthage \"${carthage_c... | shell | chosen |
[
{
"from": "system",
"value": "Use touch,mkdir and ls -al.\n"
},
{
"from": "human",
"value": "#!/bin/sh\nbash\nps -l\n(sleep 10)&\ncoproc { sleep 10;echo $BASH_SUBSHELL;sleep 6; }\necho $TEST_VARIABLE\nTEST_VARIABLE=HELLO\necho $TEST_VARIABLE\nexport my_test_variable\nunset my_test_variable\necho... | shell | chosen |
[
{
"from": "system",
"value": "Allow Terraform to write lattice.json\n\n[#104919732]\n\nSigned-off-by: Stephen Levine <72d5489bdb659bea8b15ba0173fe796f11329883@pivotal.io>\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nset -e\n\nunzip lattice-bundle-ci/lattice-bundle-v*.zip\nterraform_dir=$PWD... | shell | chosen |
[
{
"from": "system",
"value": "[top_englishbreakfast] Update utility script for removing autogen files\n\nSigned-off-by: Pirmin Vogel <386a7fc8e7338ed7899b4d9883c0ebec5de81366@lowrisc.org>\n"
},
{
"from": "human",
"value": "#!/bin/bash\n# Copyright lowRISC contributors.\n# Licensed under the Apac... | shell | chosen |
[
{
"from": "system",
"value": "Fix: TEST increase UDP detection timeout again.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nCASE=$1\n\n# If node2: wait and quite\n\nif [ $CASE == \"NODE2\" ]; then\n echo \"Case node2, just waiting for the other node to join us then exit\"\n sle... | shell | chosen |
[
{
"from": "system",
"value": "Update feature list in doc-publishing script\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\ngit describe --exact-match --tags $(git log -n1 --pretty='%h') >/dev/null 2>&1\nif [[ $? != 0 ]]; then\n echo \"Should not publish tags from an untagged commit!\"\n ... | shell | chosen |
[
{
"from": "system",
"value": "Update preversion script to include build\n"
},
{
"from": "human",
"value": "(npm test && bash \"$(dirname ${BASH_SOURCE[0]})/push-ready.sh\")\nif [[ $? -ne 0 ]]; then\n printf \"\\e[31m×\\e[0m Address above issues before bumping version\"\n exit 1\nfi"
},
{
... | shell | chosen |
[
{
"from": "system",
"value": "Increase spot bid when making the staging cluster.\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\n# Test the URL before we start the cluster.\n\nstarcluster start -c testcluster --force-spot-master -b .005 $BUILD_TAG\nstarcluster put $BUILD_TAG -u mark $TARBALL $TA... | shell | chosen |
[
{
"from": "system",
"value": "ci: Fix codecov test coverage report command\n\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\nset -e\n\nexport NUM_JOBS=1\n\nbrew update;\nbrew install bash;\nbrew install lcov;\n\nmkdir build\ncd build\ncmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_COVERAGE=... | shell | chosen |
[
{
"from": "system",
"value": "Update Travis check of unit tests to look for halted execution\n"
},
{
"from": "human",
"value": "#!/usr/bin/env sh\nlog_file=\"travis/travis_build.log\"\n\necho \"Running package's unit tests\"\n\n# Run custom commands, such as running your test cases\neval \"Rscri... | shell | chosen |
[
{
"from": "system",
"value": "Update Shell tool to 3.1.0"
},
{
"from": "human",
"value": "echo \"Installation\"\ncurl \"http://dist.neo4j.org/jexp/shell/neo4j-shell-tools_3.0.1.zip\" -o neo4j-shell-tools.zip\nunzip neo4j-shell-tools.zip -d lib\n\necho \"Launch Shell-tool\"\n./bin/neo4j console\n... | shell | chosen |
[
{
"from": "system",
"value": "Use TRAVIS_BRANCH env var to determine which branch is being built\n"
},
{
"from": "human",
"value": "#!/bin/sh\n#\n# Deploy a snapshot build to Sonatype. Only non-pull requests will be deployed.\n#\n\nBRANCH=`git rev-parse --abbrev-ref HEAD`\necho \"Pull request: ... | shell | chosen |
[
{
"from": "system",
"value": "Include gradle wrapper in generated site\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n./gradlew -q currentVersion | awk '{ print $3 }' | tr -d '\\n' > site-starter/templates/whistlepost-site/VERSION\n./gradlew :site-starter:packageAllTemplates :site-start... | shell | chosen |
[
{
"from": "system",
"value": "Debug mode for code coverage.\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -e\n\n# run tests on local\nif [ ! $APPVEYOR ]; then\n for path in test/*/*.csproj; do\n dotnet test $path\n done\nelse\n # run tests on appveyor\n for path in test/... | shell | chosen |
[
{
"from": "system",
"value": "Add set -u to all shell scripts (automated edit)\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nTESTS=\"faa1 test1\"\n\nfor TEST in $TESTS\ndo\n\techo \"********** $TEST **********\"\n\n\tINPUT=tests/$TEST.json\n\tOUTPUT=tests/$TEST.result\n\n\tdiff $OUTPUT <(cat... | shell | chosen |
[
{
"from": "system",
"value": "Remove puppeteer from travis builds\n"
},
{
"from": "human",
"value": "#!/bin/sh\nnpm run directory # Makes sure the directory is valid\n\n# Ticker test disabled for now\n# cd api\n# echo \"Test api ticker generator\"\n# node localTicker.js\n# cd ..\n\nnode test/smo... | shell | chosen |
[
{
"from": "system",
"value": "Remove if/else without a distinction\n\nSigned-off-by: Christopher Maier <b4598f17a90ef80817bae8ad6c37249740caafb4@chef.io>\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\ngit log HEAD~1..HEAD | grep -q '!!! Temporary Commit !!!'\nis_tmp_commit=$?\n\n# When we're ... | shell | chosen |
[
{
"from": "system",
"value": "Make sure we check more than if the sass command just exists before falling back\n\nWe should fall back if we get an error-code running the program\n"
},
{
"from": "human",
"value": "#!/bin/bash\n#\n# This script compiles site's SASS into CSS\n# It requires either t... | shell | chosen |
[
{
"from": "system",
"value": "Use `/tmp` directory as a default one during testing\n\nSince `/tmp` is used as a working directory for BATS tests, there is no\nchance that any unexpected modifications will happen within mounted\nproject directory.\n\nAlso, the `/tmp` does not have an initialized git reposito... | shell | chosen |
[
{
"from": "system",
"value": "Hide runtime errors while looking for commands to run\n"
},
{
"from": "human",
"value": "#!/bin/dumb-init /bin/sh\nset -e\n\nif [ -n \"$USE_BUNDLE_EXEC\" ]; then\n BINARY=\"bundle exec shipitron\"\nelse\n BINARY=shipitron\nfi\n\nif ${BINARY} help \"$1\" | grep -q ... | shell | chosen |
[
{
"from": "system",
"value": "Add RSYNC_ARGS to used rsync options.\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\n# This file is part of C++-Builtem <http://github.com/ufal/cpp_builtem/>.\n#\n# Copyright 2014 Institute of Formal and Applied Linguistics, Faculty of\n# Mathematics and Physics, C... | shell | chosen |
[
{
"from": "system",
"value": "Disable p2 mirrors in mvn cache build\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -e\nworkdir=`pwd`\n\ncd ${workdir}/sts4/headless-services\n./mvnw -DskipTests package\n\ntimestamp=`date +%s`\ntarfile=${workdir}/out/sts4-mvn-cache-${timestamp}.tar.gz\ntar -c... | shell | chosen |
[
{
"from": "system",
"value": "Update to maven version that exists on the external server\n"
},
{
"from": "human",
"value": "#!/bin/bash -eu\n\nwget -O /opt/apache-maven-3.2.3-bin.tar.gz http://www.us.apache.org/dist/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz\ntar -xzf /opt/apache... | shell | chosen |
[
{
"from": "system",
"value": "Remove 'kill', we're only using 'killall' for the magent\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nARGS=$*\n\n. `dirname $0`/../common-env.sh\n\n#\n# Start up our own measurement agent\n#\necho $SH ${MAGENT_DIR}/run-magent.sh $ARGS\n$SH ${MAGENT_DIR}/run-magen... | shell | chosen |
[
{
"from": "system",
"value": "Use Babel's debugging rather than exorcist\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\nexport NODE_PATH=./src/\nexport NODE_ENV=development\n\ntrap 'kill %1' SIGINT\n ./node_modules/http-server/bin/http-server -p 8080 \\\n& ./node_modules/watchify/bin/c... | shell | chosen |
[
{
"from": "system",
"value": "Disable selinux for DCOS installer\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nsudo yum -y \n\nsudo yum install -y docker unzip\n\nsudo /bin/systemctl start docker.service\n\nsudo mkdir -p /root/.ssh/\n\nsudo cat /vagrant_shared/id_rsa.pub >> /root/.ssh/author... | shell | chosen |
[
{
"from": "system",
"value": "Use template instead of the whole directory, add more output messages\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nVERSION=${VERSION:=\"1.0.0\"}\nINPUT_DIR=${INPUT_DIR:=\"`pwd`\"}\nSCRIPTS_DIR=${SCRIPTS_DIR:=\"$INPUT_DIR/scripts\"}\nOUTPUT_DIR=${OUTPUT_DIR:=\"$IN... | shell | chosen |
[
{
"from": "system",
"value": "Enable coverage data upload to coveralls.io\n"
},
{
"from": "human",
"value": "JSON=\"{\\\"service_name\\\":\\\"travis-ci\\\", \\\"service_job_id\\\":\\\"$TRAVIS_JOB_ID\\\", \\\"source_files\\\":[{\\\"coverage\\\":[null,0,1,2],\\\"name\\\":\\\"file1.hs\\\",\\\"sourc... | shell | chosen |
[
{
"from": "system",
"value": "Revert \"Repo sync commit for bot\"\n\nThis reverts commit 86afbe176393eae3a78026c8349304642df3d023.\n"
},
{
"from": "human",
"value": "#!/bin/sh\n\nif [ -z $1 ]; then\n echo \"usage: build.sh <subcommand>\"\n echo \"available subcommands:\"\n echo \" ci\"\n ex... | shell | chosen |
[
{
"from": "system",
"value": "Fix Firefox warning for content_security_policy\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nrm -rf dist\nmkdir -p dist/chrome dist/firefox\n\ncp -r css fonts img js LICENSE manifest.json *.html dist/chrome\nsed -i '' '/ \"applications\": {/,/ },/d' dist/chro... | shell | chosen |
[
{
"from": "system",
"value": "Update golang version to container image\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -e\n\nSRC_DIR=/go/src/github.com/aleasoluciones/http2amqp\n\n# We need a temp dir to mount to the build process \n# because when using this script from docker, the \n# real ... | shell | chosen |
[
{
"from": "system",
"value": "Set -Djava.awt.headless=true on mvn invocations\n\nto avoid stealing focus under MacOS.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nmvn package\npushd angularjs-portal-frame\nmvn tomcat7:redeploy\npopd\npushd angularjs-portal-home\nmvn tomcat7:redeploy\npopd\n... | shell | chosen |
[
{
"from": "system",
"value": "Copy test-infra files into tmpdir, not tmpdir/test-infra\n"
},
{
"from": "human",
"value": "#!/bin/bash\n# Copyright 2018 The Kubernetes Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in complianc... | shell | chosen |
[
{
"from": "system",
"value": "Add \"license.md\" to the list of files Travis verifies\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\nset -Eeuo pipefail\n\ncd \"$(dirname \"$(readlink -f \"$BASH_SOURCE\")\")/..\"\n\nexitCode=0\nfor requiredFile in \\\n\tcontent.md \\\n\tgithub-repo \\\n\... | shell | chosen |
[
{
"from": "system",
"value": "Change theme of Terminal.app when executing ssh.\n"
},
{
"from": "human",
"value": "# OS X shortcuts\nalias lock='/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend'\nalias rmdsstores='find ./ -type f | grep .DS_Store | xargs ... | shell | chosen |
[
{
"from": "system",
"value": "Adjust to install GT.M 5.5-000\n"
},
{
"from": "human",
"value": "#!/bin/bash\nwget http://sourceforge.net/projects/fis-gtm/files/GT.M%20Installer/v0.12/gtminstall\n/bin/sh ./gtminstall\n"
},
{
"from": "gpt",
"value": "#!/bin/bash\n\n# \n# wget http://so... | shell | chosen |
[
{
"from": "system",
"value": "Fix for pushd/popd command not found\n"
},
{
"from": "human",
"value": "#!/bin/sh\nmkdir ~/steamcmd\ncd ~/steamcmd\nwget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz\ntar -xvzf steamcmd_linux.tar.gz\n# allowing data permanence\nmkdir -p ../... | shell | chosen |
[
{
"from": "system",
"value": "Include more files to sniff\n"
},
{
"from": "human",
"value": "#! /bin/sh\nset -eu\n\nhave () {\n command -v \"$1\" >/dev/null 2>&1\n}\n\nfind_scripts () {\n find . -perm -u=x -type f | grep --invert-match '\\.git'\n}\n\nif ! have shellcheck && have brew\nthen\n b... | shell | chosen |
[
{
"from": "system",
"value": "Convert to a function only.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nfunction solve()\n{\n deal_idx=\"$1\"\n shift\n\n deal_fn=\"$deal_idx.all_in_a_row.board\"\n sol_fn=\"$deal_idx.all_in_a_row.sol\"\n make_pysol_freecell_board.py -t \"$deal_... | shell | chosen |
[
{
"from": "system",
"value": "Use sed syntax that works on linux & mac\n"
},
{
"from": "human",
"value": "#!/bin/bash\nset -eu\n\nreadonly EXAMPLE_NAME=\"$1\"\n\ncd \"`dirname $0`/$EXAMPLE_NAME\"\n\n# Use local version of scissors:\nsed -i '.bak' -E 's!scissors: .+!scissors: {path: ../..}!' pubs... | shell | chosen |
[
{
"from": "system",
"value": "Check for root user run and exit the script, if the script is run as root user.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\n# Installing minimum of python 2.7\n_python_version=`python -c 'import sys; version=sys.version_info[:3]; print(\"{0}.{1}.{2}\".format(*... | shell | chosen |
[
{
"from": "system",
"value": "Use temporary directory for thumbnail previews\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\nfolder=$1\n\ncd $folder\nmkdir -p thumbs\n\n#http://unix.stackexchange.com/a/63820/50868\n\nfor i in *.mp4; do\n\tavconv -i \"$i\" -r 1/10 -vf scale=-1:240 -vcodec png \... | shell | chosen |
[
{
"from": "system",
"value": "Add OpenJDK 8 to common software list\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n#\n# This script is intended to install some common software for an Arch Linux\n# automatically with minimal user interaction and install some common software. \n# Certain ... | shell | chosen |
[
{
"from": "system",
"value": "Bring back -h option to ls variants\n\nThe -h options in l, ll, and la were lost in 25b1cd6. There's no reason\nto remove them.\n"
},
{
"from": "human",
"value": "# Changing/making/removing directory\nsetopt auto_pushd\nsetopt pushd_ignore_dups\nsetopt pushdminus\n\... | shell | chosen |
[
{
"from": "system",
"value": "Remove pv from bastion scripts. Remove extra colon.\n"
},
{
"from": "human",
"value": "\n#!/bin/bash\n\n#usage: distribute-docker-image.sh <docker-image> <bastion> <fuzzvm1> <fuzzvm2> ...\n\n#example: docker save <image> | ssh bastion \"./distribute-docker-image.sh\... | shell | chosen |
[
{
"from": "system",
"value": "Add osx apps via brew cask\n"
},
{
"from": "human",
"value": "#!/bin/sh\n#\n# Homebrew\n#\n# This installs some of the common dependencies needed (or at least desired)\n# using Homebrew.\n\n# Check for Homebrew\nif test ! $(which brew)\nthen\n echo \" Installing H... | shell | chosen |
[
{
"from": "system",
"value": "Add function of generate contrast gdal_contrast_stretch\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n# Parameters\nrgbname_img=$1\noutput_png_path=$2\noutput_tms_path=$3\nlink_base=$4\n# Concat paths to libs\nif [ ! -f \"$rgbname_img\" ] ; then\n echo \"... | shell | chosen |
[
{
"from": "system",
"value": "Set environmental variable SEPAL to true in sandbox.\n\nThis indicates to applications and scripts that they are run within Sepal.\n"
},
{
"from": "human",
"value": "#!/bin/bash\n\necho\necho \"******************************\"\necho \"*** Setting up environment ***\... | shell | chosen |
[
{
"from": "system",
"value": "Set permissions 755 for directories"
},
{
"from": "human",
"value": "#!/bin/bash\n\n# Set permissions 775 for directories, and 664 for files, recursively\n# Source: http://superuser.com/a/51873\nfind . \\( -type d -exec chmod 775 {} \\; \\) -o \\( -type f -exec chmo... | shell | chosen |
[
{
"from": "system",
"value": "Add debugging lines for upgrade ops man disk size\n\n[#155574953]\n"
},
{
"from": "human",
"value": "#!/usr/bin/env bash\n\n# Copyright 2017-Present Pivotal Software, Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n... | shell | chosen |
[
{
"from": "system",
"value": "Add reenv() function to recreate virtualenvs\n"
},
{
"from": "human",
"value": "#!/bin/bash\n# bash_functions.sh\n# Caleb Evans\n\n# Make new Python virtualenv in designated virtualenv home\nmkenv() {\n\tlocal env_name=\"$(basename \"$PWD\")\"\n\tpushd \"$WORKON_HOM... | shell | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.