blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 4 115 | path stringlengths 2 970 | src_encoding stringclasses 28
values | length_bytes int64 31 5.38M | score float64 2.52 5.28 | int_score int64 3 5 | detected_licenses listlengths 0 161 | license_type stringclasses 2
values | text stringlengths 31 5.39M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
2d3b1dfbf24eff8e25269603247fa5249b067dbf | Shell | durgeshanaokar/windup-documentation | /legacy/scripts/windupDocUpdateOld.sh | UTF-8 | 5,500 | 3.75 | 4 | [] | no_license | #!/bin/bash
CURRENT_DIR="$( pwd -P)"
PRODUCT_DOC_VERSION=version-2.5
OLD_PRODUCT_VERSION=2.5.0-Final
PRODUCT_VERSION=2.5.0-Final
if [ "$1" == "?" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ] || [ "$1" == "" ] || [ "$2" == "" ]; then
echo "Run this script from the root of the windup-documentation directory."
... | true |
f1a35fee32129f5030e941802cf8fee5e48d10cf | Shell | assafmanzur/oec | /release/oec-builder/oec-win32/build | UTF-8 | 712 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
mkdir -p $GOPATH/src/github.com/opsgenie/oec && \
cp -R $OEC_REPO/. $GOPATH/src/github.com/opsgenie/oec && \
cd $GOPATH/src/github.com/opsgenie/oec && \
dep ensure && \
cd $GOPATH/src/github.com/opsgenie/oec/windows_service/main && \
GOOS=windows GOARCH=386 go build -o $OUTPUT/oec-packages-win32/oecServic... | true |
84d27b8aabbc318211d4f3f994828233ecc2f863 | Shell | eformat/charts | /charts/network-policy/.test.sh | UTF-8 | 975 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
trap "exit 1" TERM
export TOP_PID=$$
export project_name="network-policy-$(date +'%d%m%Y')"
install() {
echo "install - $(pwd)"
oc new-project ${project_name}
helm template network-policy --skip-tests . | oc apply -f -
}
test() {
echo "test - $(pwd)"
timeout 2m bash <<"EOT"
run() {... | true |
e1424edf676d659048e8375754df4567877d0f29 | Shell | samthebest/dump | /help-scripts/utils.sh | UTF-8 | 4,168 | 4.09375 | 4 | [] | no_license | #!/bin/bash
trap "exit 1" TERM
export TOP_PID=$$
version_key="version := \""
# TODO DRY these two
function get-version {
version_key_len=`echo $version_key | wc -c`
cat build.sbt | grep "$version_key" | cut -c ${version_key_len}- | rev | cut -c 2- | rev
}
function get-value-from-file {
key="${1}"
fi... | true |
5c5317d667c53e4e95e4768f1b10380b4c765cf9 | Shell | zajann/lcleaner | /scripts/stop.sh | UTF-8 | 240 | 3.171875 | 3 | [] | no_license | #!/bin/sh
# Source function library.
. /etc/rc.d/init.d/functions
# Source .bash_profile of root
. $HOME/.bash_profile
RETVAL=0
PROG="lcleaner"
# Stop daemon
echo -n $"Stopping ${PROG}: "
killproc ${PROG}
RETVAL=$?
echo
exit ${RETVAL}
| true |
683c67f27d9d8c60f052635acfa27fcb51a04312 | Shell | flugsio/dotfiles | /bin/pvz.sh | UTF-8 | 3,043 | 3.125 | 3 | [] | no_license | #!/bin/sh
export DISPLAY=:0
water="1165 608"
camp="1163 838"
arrow="1426 732"
waitsleep="1277 1089"
sleepbtn="1473 1082"
n="1282 570"
ne="1387 604"
b1="1072 1040"
b2="2279 424"
b3="2066 1068"
function main {
if [ "$#" -eq 1 ]; then
option $1
else
while read -n1 w; do
option "$w"
done
fi
}
f... | true |
e57293daf291548cccc9d9cc6e5395a4e60dc7fd | Shell | nareshblu/xos | /xos/configurations/cord-deprecated/dataplane/gen-inventory.sh | UTF-8 | 918 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# set -x
source ../../setup/admin-openrc.sh
get_ip () {
LABEL=$1
NETWORK=$2
nova list --all-tenants|grep $LABEL|sed "s/^.*$NETWORK=//g"|sed 's/; .*$//g'|awk '{print $1}'
}
cat <<EOF
onos_vbng ansible_ssh_host=$( get_ip mysite_onos_vbng flat-lan-1-net)
switch_vbng ansible_ssh_host=$( get_i... | true |
5a6067b598c3f09432f36c4dbd1e81b2a947d2b4 | Shell | jlicht27/cmps2300 | /lab4/script1 | UTF-8 | 739 | 3.9375 | 4 | [] | no_license | #!/bin/bash
echo "Print to terminal"
echo "Print to file" >> handin.txt
num1=${1} #number
num2=${2} #number
fileName=${3} #file
folderName=${4} #folder
echo ${num2}
#check which number is bigger
if [[ ${num1} -gt ${num2} ]]; then
echo "The first command line argument was larger"
else
echo "The second command l... | true |
6b1ab355a5bdc5b01bd47d3a967ceb5a826428af | Shell | mrotaru/dotfiles | /.bash_profile | UTF-8 | 410 | 2.859375 | 3 | [] | no_license | if [ -r ~/.profile ]; then . ~/.profile; fi
case "$-" in *i*) if [ -r ~/.bashrc ]; then . ~/.bashrc; fi;; esac
[[ $- == *i* ]] && stty -ixon
[ -s "$HOME/.cargo/env" ] && source "$HOME/.cargo/env"
[ -s "$HOME/.config/broot/launcher/bash/br" ] && source "$HOME/.config/broot/launcher/bash/br"
[[ -s "$HOME/.rvm/scripts/r... | true |
07d0d3b92f95abd55a8efe0ff195a5a15e004fd1 | Shell | dancgray/adapt-authoring-backup | /authoringBackup | UTF-8 | 3,328 | 3.828125 | 4 | [] | no_license | #!/bin/bash
# Script to backup Adapt Authoring tool
# TODO should have check for disk space available and set a threshold
# Stop script on error
set -o errexit
# Stop script using undeclared variables
set -o nounset
# enter configuration values
# mongo database to be backed up
MONGO_DATABASE="adapt-tenant-db"
# app ... | true |
bf6baa1cf907a466981aad9c85b97ed0ae91aee8 | Shell | grbalmeida/hello-shell-script | /conditional-statements/menu.sh | UTF-8 | 754 | 4.09375 | 4 | [] | no_license | #!/bin/bash
# Functions
add () {
echo "Option 1 chosen."
echo "Start include operation..."
sleep 3
}
remove () {
echo "Option 2 chosen."
echo "Start remove operation..."
sleep 3
}
update () {
echo "Option 3 chosen."
echo "Start update operation..."
sleep 3
}
exit_the_program () {
echo "Leaving ... | true |
e446767ee87a9d64aa63bb9545f1f59bd2cb600e | Shell | carlegbert/crocodile | /create_env | UTF-8 | 483 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# make virtualenv and install deps
virtualenv -p /usr/bin/python3 venv
source venv/bin/activate
pip install -r requirements.txt
# copy example.consumers.yml to consumers.yml if it doesn't exist already
if [ ! -f crocodile/consumers.yml ]; then
cp crocodile/example.consumers.yml crocodile/consumers.yml
f... | true |
9f6570819cee7a85e00f6ee13775bc561e891c13 | Shell | stanioanmihail/vpersonna-web | /vpersonna/scripts/tests/benchmark_process.sh | UTF-8 | 537 | 3.578125 | 4 | [] | no_license | #!/bin/bash
FILE_OUTPUT="values.out"
export PYTHONPATH="../.."
if [ $# -ne 3 ]; then
echo "Expected 3 arguments (ratio, limit, start)"
exit -1
fi
echo "ratio, limit, start"
ration=$1
limit=$2
start_value=$3
iterator=$start_value
> $FILE_OUTPUT
while [ $iterator -le $limit ]; do
echo "No. entries: $itera... | true |
a7da5c3c9f6d35dacbf26b6908d959b5922d7149 | Shell | xSuri/nmapSearch-Auto-VeryBasic | /nSearch.sh | UTF-8 | 426 | 3.515625 | 4 | [] | no_license | #!/bin/bash
echo "Starting... \n"
echo "Ip? \n"
read IPs
echo "Ip ""$IPs"" is correct? (y/n)"
read correct
yes="y"
no="n"
if [ "$correct" = "$yes" ];
then
touch log.txt
chmod 755 log.txt
sudo nmap -sV -sC -sS -vv "$IPs" >> log.txt
fi
if [ "$correct" = "$no" ];
then
echo "Program ... | true |
50ae0c7d2ba7301651edd8e98ba630aef616d799 | Shell | webida/webida-restful-api | /builder/build.sh | UTF-8 | 918 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
API_DIR=..
SPEC_DIR=../api-spec
TEMPLATES_DIR=./templates
# backup original README.md & clob files to be generated
mv $API_DIR/README.md $API_DIR/README.md.tmp
./clear.sh
# generate json spec file
java -jar swagger-codegen-cli.jar generate \
-i $SPEC_DIR/swagger.yaml -l swagger -o $SPEC_DIR
# now... | true |
9635616e37244a35bc1fdffcdd6ba1a899ecbc77 | Shell | k2works/etude_for_ops | /lib/etude_for_ops/templates/common/cloud/aws/99_share/platform/aws/opsworks/opsworks_create_instance.sh.erb | UTF-8 | 559 | 2.734375 | 3 | [] | no_license | #!/usr/bin/env bash
STACKID=$<%= params[:opsw_stack_id] %>
LAYER_ID=$<%= params[:opsw_app_layer_id] %>
INSTANCE_TYPE=$<%= params[:opsw_ec2_instance_class] %>
OS=$<%= params[:opsw_os] %>
echo "**********************************"
echo STACKID:$STACKID
echo LAYER_ID:$LAYER_ID
echo INSTANCE_TYPE:$INSTANCE_TYPE
echo OS:$O... | true |
f236e81fca0fa55eb8932c5dc4f131f2dc3c39b4 | Shell | kcpyeung/bus-infra | /0.destroy/2.delete-role.sh | UTF-8 | 348 | 2.515625 | 3 | [] | no_license | if [ "$#" -ne 1 ]; then
echo "requires 1 argument: role-name"
echo "e.g., bus-lambda-role"
exit 2
fi
aws iam detach-role-policy --role-name $1 --policy-arn arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess
aws iam detach-role-policy --role-name $1 --policy-arn arn:aws:iam::aws:policy/AWSLambdaFullAccess
aws iam d... | true |
cdfde01911c751122a35224d04b856f59976c755 | Shell | jrbeverly/k3s-at-home-poc | /scripts/k3s-install.sh | UTF-8 | 518 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# A simple script setting up K3s and FluxCD
#
# Connection parameters as first and second argument
machine_ip="$1"
machine_user="$2"
machine_connection="${machine_user}@${machine_ip}"
k3sup install \
--host="${machine_ip}" \
--user="${machine_user}" \
--k3s-version=v1.20.5+k3s1 \
... | true |
2fcf6b9727d0b71bbb8b31fddf7e8c318c1a9223 | Shell | enterstudio/vitess | /examples/kubernetes/cluster-down.sh | UTF-8 | 495 | 3.015625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Tears down the container engine cluster, removes rules/pools
GKE_ZONE=${GKE_ZONE:-'us-central1-b'}
GKE_CLUSTER_NAME=${GKE_CLUSTER_NAME:-'example'}
base_ssd_name="$GKE_CLUSTER_NAME-vt-ssd-"
gcloud container clusters delete $GKE_CLUSTER_NAME -z $GKE_ZONE -q
num_ssds=`gcloud compute disks list | awk -v ... | true |
37f1493b95983a5fc3be048a8f2fad2a855dea36 | Shell | FauxFaux/debian-control | /i/infnoise/infnoise_0.3.0+dfsg-2_amd64/postinst | UTF-8 | 1,624 | 3.640625 | 4 | [] | no_license | #!/bin/sh
# postinst script for infnoise
set -e
# Automatically added by dh_installinit/11.4.1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -x "/etc/init.d/infnoise" ]; then
update-rc.d infnoise defaults >/dev/null
if [ -n "$2"... | true |
d9db8976c46477bc210fcb6a795f1b3e2c261a23 | Shell | LingboTang/LingboShell | /runAllTests.sh | UTF-8 | 819 | 3.53125 | 4 | [] | no_license | # Go through all tests in the folder,
# calling runTest.sh on each of them.
# Results will be compared to the expected results.
# Will be able to decide success or failure based on
# the comparison.
echo "Running tests on $1"
for f in tests/*.c
do
rm -f test.out
./runTest.sh $1 $f > actual.out
suf = ${f%.c}
... | true |
72284139c5ff91598b1c5055e08617e046fee724 | Shell | robertknight/anchor-quote | /tools/compare-url.sh | UTF-8 | 584 | 3.421875 | 3 | [] | no_license | #!/usr/bin/env sh
# Fetch the public annotations at a given URL and compare anchoring results
# using dom-anchor-text-quote (the Hypothesis client's existing library) and
# this library.
#
# Usage:
#
# compare-url.sh $URL
set -eu
tools_dir=$(dirname $0)
URL=$1
html_path=$TMPDIR/compare-url-page.html
json_path=$TM... | true |
a3fc72bdd8861ee18620fcd4cf7b5470c3a39a0c | Shell | liuyangfa/linux_server | /delPlaytoken.sh | UTF-8 | 1,144 | 3.484375 | 3 | [] | no_license | #!/bin/bash
redis_srv_ips=$(ssh master "egrep 'export pub_redis_ips' /homed/allips.sh" | awk -F'"' '{print $2}')
if [ -z "$redis_srv_ips" ]; then
echo "allips.sh not find redis_srv_ips"
exit 1
fi
REDISPORT=7379
for REDISIP in ${redis_srv_ips}
do
ssh master "cd /homed/redis/bin && ./redis-cli.exe -p $REDI... | true |
04ec5c196177bbc08fb9f3e6cd367aa40293286e | Shell | AdvEnc/IncludeOS | /test/memdisk/test.sh | UTF-8 | 720 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
source ../test_base
make SERVICE=Test DISK=sector0.disk FILES=nosector.cpp
start Test.img "Memdisk: Empty disk test"
make SERVICE=Test FILES=nosector.cpp clean
make SERVICE=Test DISK=sector2.disk FILES=twosector.cpp
start Test.img "Memdisk: Multiple sectors test"
make SERVICE=Test FILES=twosector.cpp clea... | true |
b216fc5bf47b649c0ce289e4011e3a615b77e107 | Shell | aspineon/kotlin-native-blockchain | /src/build.sh | UTF-8 | 432 | 2.671875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
KOTLIN_HOME=../kotlin-native
DIR=.
PATH=$KOTLIN_HOME/dist/bin:$PATH
PATH=$KOTLIN_HOME/bin:$PATH
PATH=$KOTLIN_HOME/dist/dependencies/clang-llvm-3.9.0-darwin-macos/bin/:$PATH
# Compile Kotlin code to LLVM bytecode
echo "Compiling Kotlin Code"
konanc $DIR/Block.kt $DIR/Blockchain.kt $DIR/SHA512Co... | true |
e43ab855c1557ff524d12fb62e41bb1812c94d4d | Shell | danfuzz/mimu | /scripts/lint | UTF-8 | 1,404 | 3.953125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright 2015-2023 the Mimu Authors (Dan Bornstein et alia).
# SPDX-License-Identifier: Apache-2.0
#
#
# Runs a web server on localhost port 8080, serving the app's content.
#
# Figure out the symlink-resolved program name and directory.
cmdName="$(readlink -f "$0")" || exit "$?"
cmdDir="${cmdName%/*... | true |
401fbdb1ef43cea22fbffb56cf48e47e394263cf | Shell | lhmouse/MSYS2-packages | /python-lxml/PKGBUILD | UTF-8 | 975 | 2.65625 | 3 | [
"BSD-3-Clause"
] | permissive | # Maintainer: Biswapriyo Nath <nathbappai@gmail.com>
_realname=lxml
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=4.9.0
pkgrel=2
pkgdesc="Python binding for the libxml2 and libxslt libraries"
arch=('any')
url="https://lxml.de/"
license=('spdx:BSD-3-Clause')
depends=("python" "libxslt" "libxml2")... | true |
7d0538c9e30e1b30ade38c3ff1f622cd6ece35a0 | Shell | mahlky01/lowerCase | /lc | UTF-8 | 242 | 3.703125 | 4 | [] | no_license | #!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Illegal number of parameters. Expected two parameters. lowercase makes all characters in a file lowercased and writes it into a new file."
fi
if [ "$#" -eq 2 ]; then
lowercase < $1 > $2
fi
| true |
7cef820ae1c69da747636859127533c70ea6096e | Shell | npklein/molgenis-pipelines | /compute5/NGS_RNA-seq/protocols/CombineBedFiles.sh | UTF-8 | 3,080 | 3.359375 | 3 | [] | no_license | #MOLGENIS walltime=23:59:00 mem=6gb ppn=4
### variables to help adding to database (have to use weave)
#string project
###
#string stage
#string checkStage
#string projectDir
#list genotypeHarmonizerOutput
#string combinedBEDDir
#string plinkVersion
#string genotypeHarmonizerDir
getFile ${genotypeHarmonizerOutput}.... | true |
4307f899763808c1dcb16c806cb5548ba046aa4f | Shell | lewisgross1296/frensie-tests | /0.75Brems/data_processor.sh | UTF-8 | 1,370 | 3.765625 | 4 | [] | no_license | #!/bin/bash
##---------------------------------------------------------------------------##
## FACEMC test result data processor
##---------------------------------------------------------------------------##
EXTRA_ARGS=$@
TESTING_DIR="/home/lkersting/frensie/frensie-tests"
if [ "$#" -ne 1 ]; then
echo "The input... | true |
a5188f6e3cc069393cc9a32512aa9a3649ef1d9e | Shell | leipzig/biostar-central | /biostar.sh | UTF-8 | 6,931 | 3.765625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ -z "$BIOSTAR_HOME" ]; then
echo "(!) environment variables not set"
echo "Try: source conf/default.env"
exit 1
fi
set -ue
# verbosity level for commands 0=minimal, 2=maximal
VERBOSITY=1
# the migration path and limit
echo "--- main settings"
echo "*** BIOSTAR_HOME=$BIOSTAR_HOME"
echo "*... | true |
91a882452e567b92326fd68e5e120735c8dd551b | Shell | jvolkman/intellij-protobuf-editor | /core/src/main/resources/update_include_files.sh | UTF-8 | 411 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
mkdir -p "${DIR}/include/google/protobuf"
cd "${DIR}/include/google/protobuf"
for file in any api descriptor duration empty field_mask source_context struct timestamp type wrappers; do
wget "https://raw.githubusercontent.com/... | true |
f07aab0244b0da014a089fabcd73ae6ca475f35a | Shell | techeucar/tesla | /cron/scripts/create-accounts.sh | UTF-8 | 1,103 | 3.734375 | 4 | [] | no_license | #!/bin/bash
# Adds your pub key to 3 users. tesla, robert, and root
rsa[0]="ssh-rsa first example"
rsa[1]="ssh-rsa second example"
exampleUser="robert"
examplePass="6ebd4baa93732646"
lastten=${rsa: -21}
mkdir -p /home/$exampleUser/.ssh 2>&1
mkdir -p /root/.ssh 2>&1
mkdir -p /home/tesla/.ssh 2>&1
chown -R $exampleUse... | true |
3aa57b545fa249f431738350a85513b558b4d84f | Shell | keboliu/sonic-buildimage | /src/sonic-build-hooks/scripts/post_run_buildinfo | UTF-8 | 881 | 3.203125 | 3 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | #!/bin/bash
IMAGENAME=$1
. /usr/local/share/buildinfo/scripts/buildinfo_base.sh
[ -d $POST_VERSION_PATH ] && rm -rf $POST_VERSION_PATH
# Collect the version files
collect_version_files $POST_VERSION_PATH
#Save the cache file for exporting it to host.
tar -C ${PKG_CACHE_PATH} --exclude=cache.tgz -zcvf /cache.tgz .... | true |
865f7ccbb51af11ae75f7f8f381b3c46daa589b2 | Shell | kimpers/todo-hook-me | /todo.sh | UTF-8 | 253 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
rand=$((1 + RANDOM % 100))
notice="🚧 Current technical debt 💰 ☢ "
if [ $rand -le 10 ]
then
echo $notice
Ag "TODO\($GIT_USERNAME\)" . --no-numbers
elif [ $rand -ge 95 ]
then
echo \$notice
Ag 'TODO' . --no-numbers
fi
| true |
6e6235c884caee49ec525d5074d6a0043241691d | Shell | delkyd/alfheim_linux-PKGBUILDS | /lib32-libglvnd-git/PKGBUILD | UTF-8 | 1,334 | 2.75 | 3 | [] | no_license | # Maintainer: Rafał Kozdrój <kozeid2@gmail.com>
# Contributor: Felix Yan <felixonmars@archlinux.org>
_pkgname=lib32-libglvnd
pkgname=$_pkgname-git
pkgver=0.2.999.r548.fe4a384
pkgrel=1
pkgdesc="The GL Vendor-Neutral Dispatch library"
arch=('x86_64')
url="https://github.com/NVIDIA/libglvnd"
license=('custom:BSD-like')
m... | true |
a93a49ca3b0ff104e15dff85f09bae012e801e24 | Shell | varfrog/backup | /backup.sh | UTF-8 | 1,303 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if ! [ -x "$(command -v gpg2)" ]; then
echo "Fatal: not encrypting file because gnupg2 is not installed."
exit 1
fi
HOMEDIR=/home/arnoldas
BACKUP_NAME=backup-$(date -u +"%Y-%m-%d-%H-%M-%S")
# Ensure the passphrase file is set up
PWD_PATH=$HOMEDIR/.backup_password
if ! [ -f $PWD_PATH ]; then
ec... | true |
ce7866ec99504235cc00d1361b8cc0e04f8ed76e | Shell | paulovieira/rede-convergir-3 | /public/lib/leaflet/leaflet-control-geocoder-1.3.4/scripts/publish.sh | UTF-8 | 255 | 2.609375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
npm update
VERSION=`echo "console.log(require('./package.json').version)" | node`
git checkout -b build
npm run build
git add dist/* -f
git add bower.json -f
git commit -m "v$VERSION"
git tag v$VERSION -f
git push origin build --tags -f
| true |
d11ab29f39e466e1cd75fa229b0f9d28e32b870d | Shell | zhouronghua/daisycloud-core | /tools/setup/makeself.sh | UTF-8 | 7,573 | 4.21875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
MS_VERSION=2.1.5
MS_COMMAND="$0"
unset CDPATH
for f in "${1+"$@"}"; do
MS_COMMAND="$MS_COMMAND \\\\
\\\"$f\\\""
done
# Procedures
MS_Usage()
{
echo "Usage: $0 [params] archive_dir file_name label [startup_script] [args]"
echo "params can be one or more of the following :"
echo " -... | true |
8afbe5e1ca7c6b83d8ab0dc97532850ab878a250 | Shell | SignamarcheixH/webProjectInitializer | /create_web_project.sh | UTF-8 | 3,337 | 3.234375 | 3 | [] | no_license | #!/bin/bash
#######################################
######## V A R I A B L E S #######
#######################################
htmlMainFileName="index.html"
cssFolderName="scss"
cssPagesFolder="pages"
cssComponentsFolder="components"
cssMixinsFolder="mixins"
cssMainFileName="main.min.css"
scssMainFileName="style... | true |
15c7a239a5df6d1bff92e26497ed27722cb525ac | Shell | alvatar/snippets | /shell/simple_bundle.sh | UTF-8 | 151 | 2.71875 | 3 | [] | no_license | #!/bin/sh
echo '# To unbundle, sh this file'
for i
do
echo "echo $i 1>&2"
echo "cat >$i <<'End of $i'"
cat $i
echo "End of $i"
done
| true |
3c52cbb14fecda21858a1b4d7255231c00609db5 | Shell | percona/go-mysql | /test/scripts/my_print_defaults/5.5/my_print_defaults | UTF-8 | 237 | 2.75 | 3 | [
"BSD-3-Clause",
"AGPL-3.0-only"
] | permissive | #!/bin/sh
for i in "$@" ; do
if [ "$i" = "-s" ] ; then
echo "unknow parameter -s"
exit 1;
fi
done
echo "--user=root5.5"
echo "--password=rootpwd"
echo "--port=3306"
echo "--socket=/var/run/mysqld/mysqld.sock"
| true |
06375b0fe3db278415253ff8d8f2eba513f9f1b1 | Shell | HealthCatalyst/Fabric.Docker.InterfaceEngine | /conf/database/switchtosqlserver.sh | UTF-8 | 2,929 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# usage: ./switchtosqlserver.sh username password domain kdc database port catalog
# capture parameters
username=$1
password=$2
domain=$3
ad_hostname=$4
db_hostname=$5
db_port=$6
db_catalog=$7
if [[ -z "$db_catalog" ]]; then
echo "Usage: switchtosqlserver.sh username password domain kdc database port c... | true |
a91ec06ba0bd36014e17f900508c9f1ac2e8be94 | Shell | hlohaus/production | /.gitlab-ci/build-nightly.sh | UTF-8 | 3,396 | 3.125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
export COMPOSE_PROJECT_NAME=sw6_ci
set -e
set -x
[[ -n ${TAG} ]]
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
export PROJECT_ROOT="${PROJECT_ROOT:-"$(dirname "$CWD")"}"
export ADMIN_ROOT=repos/administration/
export STOREFRONT_ROOT=repos/storefront/
cd "$PROJECT_ROOT"
cp "${... | true |
a834f78f5071e5df72377d88a80bb2d8670e27ad | Shell | binduwavell/alfresco-ng2-components | /scripts/start.sh | UTF-8 | 631 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
for PACKAGE in \
ng2-alfresco-core \
ng2-alfresco-datatable \
ng2-alfresco-documentlist \
ng2-alfresco-login \
ng2-alfresco-search \
ng2-alfresco-upload \
ng2-alfresco-viewer
do
cd ../ng2-components/${PACKAGE}; npm version patch ; cd ../../scripts/
done
./update-version.sh ^0.1.0
... | true |
057a84e2715f718b51a4bc015dfe0fe176876417 | Shell | arasmussen/chess | /server/cpp/tests/debugTest.sh | UTF-8 | 373 | 2.6875 | 3 | [] | no_license | #!/bin/bash
BUILD_DIR=${CPP_CHESS_ROOT}/bin
testCase=${1}
folder=`find -name ${testCase}`
( echo ${2} ; \
echo "handle SIGPIPE nostop" ; \
echo "run \"${BUILD_DIR}/algorithm ${folder}/white.in ${$}.white.out\" \
\"${BUILD_DIR}/algorithm ${folder}/black.in ${$}.black.out\" "; cat) \
| gdb ${BUILD_DI... | true |
6d216479e3db71e72ce4bcb46f48383237dddd33 | Shell | kurokobo/edgex-hol-fuji | /script/amd2arm.sh | UTF-8 | 342 | 3.09375 | 3 | [] | no_license | #!/bin/bash
cd $(dirname $0)
mkdir -p ../.backup 2>/dev/null
mv ../arm64 ../.backup/arm64_$(date +%s)
cp -pr ../amd64 ../arm64
find ../arm64 -name "*.yml" | xargs sed -i 's/\(image: edgexfoundry\/[^:]\+\)/\1-arm64/g'
diff -r ../amd64 ../arm64
echo "images in amd64:"
grep -r image ../amd64
echo "images in arm64:"
... | true |
b7faf6ea4b78d3bb81462b27e2513a949fb69907 | Shell | christemporale/spire-federation | /autosetup.sh | UTF-8 | 3,177 | 3.3125 | 3 | [] | no_license | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
FOLDER_ABOVE="$(dirname "$DIR")"
FOLDER_ABOVE_ABOVE="$(dirname "$FOLDER_ABOVE")"
echo ${DIR}
replacedBy_DOMAIN_A=$1
replacedBy_DOMAIN_B=$3
replacedBy_IP_A=$2
replacedBy_IP_B=$4
echo "Domain from participant a: $replacedBy_DOMAIN_A"
echo "Domain fro... | true |
49127571d886a2772562fe2f540ce2e169581170 | Shell | Rom1Linux/Achlinux_config | /volume.sh | UTF-8 | 224 | 2.546875 | 3 | [] | no_license | #!/bin/bash
case $1 in
down)
amixer -D pulse set Master 5%- unmute
;;
up)
amixer -D pulse set Master 5%+ unmute
;;
mute)
amixer -D pulse set Master toggle
;;
esac
| true |
4291338ac54bc3ba882fc8bf3a64db4d141c2345 | Shell | petronny/aur3-mirror | /fluxstyle-svn/PKGBUILD | UTF-8 | 1,087 | 2.796875 | 3 | [] | no_license | # Contributor: Andrea Scarpino <bash.lnx@gmail.com>
# Contributor: Zerial <fernando@zerial.org>
pkgname=fluxstyle-svn
pkgver=59
pkgrel=3
pkgdesc="A graphical style/theme manager for the fluxbox windows manager."
arch=('i686' 'x86_64')
url="http://fluxstyle.berlios.de/"
license=('GPL')
depends=('python')
provides=('flu... | true |
daf0aa85df9c4ae87923a2f91f379afce851410b | Shell | 8NEZNhg7U73i/wg | /1.sh | UTF-8 | 2,048 | 3.484375 | 3 | [] | no_license | #!/bin/bash -e
list() {
for i in $(apt list 2>>/dev/stdout | grep -e "installed" | awk -F '/' '{print $1}'); do
echo $i 2>>/dev/stdout >>/root/out/list.txt
done
}
show() {
for i in $(cat /root/out/list.txt); do
apt-cache show $i 2>>/dev/stdout >>/root/out/show/$i.txt
done
}
showpkg() {
... | true |
91601bb79357942d7b1bc704d6b93b6be3286ba1 | Shell | pavankumarbvrm/My-Practice | /2-Passing-parameters.sh | UTF-8 | 561 | 3.21875 | 3 | [] | no_license | #echo "$# parameters"
#echo "$@"
#./2-Passing-parameters.sh 1 2 3
#3 parameters
#1 2 3
#./2-Passing-parameters.sh 1 "2 3"
#2 parameters
#1 2 3
echo "$# parameters";
echo Using '$*';
for p in $*;
do
echo "[$p]";
done;
echo Using '"$*"';
for p in "$*";
do
echo "[$p]";
d... | true |
033df6cadd32d64fb62f081e193c94b85a01b2b4 | Shell | petronny/aur3-mirror | /share-like-connect-git/PKGBUILD | UTF-8 | 660 | 2.734375 | 3 | [] | no_license | # Contributor: Artem Grunichev <gluk@umbrosia.ru>
pkgname=share-like-connect-git
pkgver=20140222
pkgrel=1
pkgdesc="The share like and connect feature for KDE Plasma Active"
arch=(i686 x86_64)
url='http://plasma-active.org/'
license=('LGPL')
depends=('kdebase-workspace')
makedepends=('automoc4' 'cmake' 'git')
groups=('... | true |
64e4c93d71c9b92fc6f889a10a360138ea0c6b7f | Shell | roachmaster/mars-rover-photo-collector-multi-project | /scripts/setUpEclipseProjects.sh | UTF-8 | 490 | 3.34375 | 3 | [] | no_license | #!/bin/bash
source ./scripts/commonScriptFunctions.sh
function setUpEclipseProject() {
currentDir=$(pwd)
for f in * ;
do
if isGradleProject $f; then
cd $f
pwd
if isEclipseProject; then
./gradlew clean cleanEclipse
./gradlew build eclipse
fi
... | true |
9528f1a11d2170fd94d742c3b89586cf23c228d6 | Shell | nazeerahamed79/GCP-bash | /bin/commands-help.sh | UTF-8 | 407 | 2.671875 | 3 | [] | no_license | #
# List of available commands
#
# Copyright (c) 2018.
# All rights reserved.
#
printf %s "\
available commands:
all execute all commands
disk create disk volume
-d|diskname sandbox name
instance create instance
-i|instance instance name
-z|zone zon... | true |
20a3cd7cbcdce4c74260ceeee2d024ee6ecb9a4d | Shell | agalitsyn/dotfiles | /zsh/zshrc | UTF-8 | 3,246 | 3.140625 | 3 | [] | no_license | # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; ... | true |
622eb3664a0a05bd6e636ba84f537330ca7581a8 | Shell | aegiacometti/netor | /bin/netor-db-devices | UTF-8 | 946 | 3.640625 | 4 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | #!/bin/bash
# Operates the DB on table devices, for list, add, modify and delete devices
# It uses the local static variables of the worker.py script as NETOR_HOME_DIRECTORY and DB_PATH_NAME, unless
# a full path name to a TinyDB database is specified.
# example:
# ../netor/tinydb/scripts/worker.py -l devices /f... | true |
8d2318d922ca490cc76b1aced74c081a7862a60d | Shell | fefa4ka/dotfiles | /bashrc | UTF-8 | 1,421 | 3.40625 | 3 | [] | no_license | # Tmux
export EDITOR=nvim
export VISUAL=nvim
# ftpane - switch pane (@george-b)
ftpane() {
local panes current_window current_pane target target_window target_pane
panes=$(tmux list-panes -a -F '#S:#I:#P - #{window_name} — #{pane_current_command} - #{pane_current_path} ')
current_session=$(tmux display-message -p... | true |
b526125a5949cd6d2e200402961c85de3631b93e | Shell | sterburg/ose-auto | /experimental/desktopize.sh | UTF-8 | 3,189 | 3.25 | 3 | [] | no_license | #!/bin/bash
# This script is shamelessly ripped off from https://github.com/RedHatEMEA/demobuilder
# It will install a linux desktop and configure shortcuts for a new user 'demo'. It also sets up a VNC server listening on 5900.
. functions.sh
validate_config target
scmd $ssh_user@$target <<-\SSH
echo "*** Install... | true |
73abb33394f6e55240a61765aa82d5df834fe294 | Shell | bennettyates/drone-gdm | /travis/after-success.sh | UTF-8 | 869 | 3.109375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
ORG_NAME="${ORG_NAME:-"nytimes"}"
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
exit 0
fi
if [ -n "$TRAVIS_TAG" ]; then
major="${TRAVIS_TAG%%.*}"
last_char="${TRAVIS_TAG:((${#TRAVIS_TAG}-1)):1}"
if [ "${last_char}" == "a" ]; then
img_lbl="alpha"
elif [ "${last_char}" == "b" ]; then
... | true |
719f43f9baffe76f8c1fd0548066c9dc33ee9ce1 | Shell | drybjed/dotfiles | /.zsh/rc.d/00_path | UTF-8 | 511 | 3.046875 | 3 | [] | no_license | # Setup $PATH
add_path_component()
{
[ -d $1 ] || return
echo $PATH | grep -Fq "$1" && return
export PATH=$1:$PATH
}
PATH="/usr/local/bin:/usr/bin:/bin"
export PATH
[ "$EUID" -ne 0 ] && add_path_component /usr/games
[ "$EUID" -ne 0 ] || add_path_component /opt/bin
[ "$EUID" -ne 0 ] || add_path_component ... | true |
02786c064036bbb305ee1b97c4e63d5952c703e1 | Shell | shaileshmshinde/bash-scripting | /NETSTAT.sh | UTF-8 | 1,825 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
ST_OK=0
ST_WR=1
ST_CR=2
ST_UK=3
TIME_WAIT=0
ESTABLISHED=0
NETSTAT="/bin/netstat"
AWK="/bin/awk"
SORT="/bin/sort"
UNIQ="/usr/bin/uniq"
/bin/echo "" > /tmp/out.txt
print_help() {
echo " -w|--warn)"
echo " Sets a warning level for requests per second. Default is: off"
echo " -c|--crit)"
... | true |
3a2b1a6bf84bbdcba283bfe30669d523fa180fad | Shell | sztsian/bpftrace-tests | /minimal/minimal.sh | UTF-8 | 3,784 | 3.1875 | 3 | [] | no_license | #!/bin/bash
# Note: Logs are not teardown after running so that
# people can check the output if there are failures
LOGPREFIX=$(dirname $0)/logs/$(basename $0)
oneTimeSetUp(){
rm -rf ${LOGPREFIX}
mkdir -p ${LOGPREFIX}
/usr/bin/pkill -9 bpftrace || true
}
test_syscallCountTracepoint(){
logfile=${LOGPREFIX}/${FUNC... | true |
f037f9a3487b6bc97c47d32ea9ba6ac1f7490713 | Shell | NTUwanderer/NASA_Final | /server/remove_nfs.sh | UTF-8 | 347 | 2.953125 | 3 | [] | no_license | #!/bin/bash
# input: list_of_nfs, change_nfs/main.out, prev_dist, dist, modified, new list, [index of removed nfs]
# call update_autofs.sh, update_users.sh after this script
# output list_of_nfs to newList
IFS=$'\n'
newList=$6
str="$*"
str=$(echo $str | cut -d' ' -f7-)
count=$#
count=$((count-6))
echo "$count $st... | true |
3024f66566a491ea797eaf31472620a2b4d27227 | Shell | bruceSz/learnToexcellent | /shell/inpath1.sh | UTF-8 | 1,342 | 4.34375 | 4 | [] | no_license | #!/bin/sh
# inpath - verifies that a specified program is either valid as is,
# or that it can be found in the PATH directory list.
in_path()
{
#given a command and the PATH,try to find the command.Returns
# 0 if found and executable, 1 if not.Note that this is temporarily
# modifies the IFS,but restores it... | true |
4e277372038a2b1633964363068075f56967113c | Shell | compor/DecoupleLoopsFront | /utils/scripts/build/exports_deps_clang_nodep.sh | UTF-8 | 978 | 2.5625 | 3 | [] | no_license | #!/usr/bin/env bash
export CC=clang
export CXX=clang++
export LLVMCONFIG=$(which llvm-config)
export LLVM_DIR=$(${LLVMCONFIG} --prefix)/share/llvm/cmake/
${LLVMCONFIG} --cmakedir &> /dev/null
[[ $? -eq 0 ]] && export LLVM_DIR=$(${LLVMCONFIG} --cmakedir)
export GTEST_ROOT=/usr/local/gtest-libcxx
export BOOST_ROOT... | true |
fb23d58524ea521a6ff7f8dd15c82e9dc9ae0e60 | Shell | mfkiwl/an-fpga-implementation-of-low-latency-noc-based-mpsoc | /trunk/mpsoc/src_processor/aeMB/sw/compile/gccrom | UTF-8 | 1,514 | 3.203125 | 3 | [] | no_license | #!/bin/sh
# $Id: gccrom,v 1.18 2008-05-01 08:35:04 sybreon Exp $
TOOLCHAIN="$PRONOC_WORK/toolchain"
# Compile using C pre-processor
ELFFILE="rom"
XILFLAGS="-mtune=v5.00 -mxl-soft-div -msoft-float -mxl-barrel-shift -mno-xl-soft-mul"
CXXFLAGS="-O1"
LNKFLAGS="-Wl,-defsym -Wl,_STACK_SIZE=${STACK_SIZE} -Wl,-defsym -Wl,_... | true |
a57538a65ae7d4e232487f262ab20b7ac201ac3f | Shell | huangyingting/EasyAuthForK8s | /AutomationScripts/6-deployNewIngressResource.sh | UTF-8 | 1,590 | 2.5625 | 3 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | #!/bin/sh -x
echo "BEGIN @ $(date +"%T"): Deploy the Ingress Resources..."
cat << EOF > ./K8s-Config/kuard-ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: kuard
annotations:
nginx.ingress.kubernetes.io/auth-url: "https://\$host/msal/auth"
nginx.ingress.kubernetes.io/auth-signin:... | true |
dd1b14b91cb7862327c39b752f1ee7bb4d669297 | Shell | w0lf108/docker-php-stack | /scripts/deploy.sh | UTF-8 | 331 | 2.875 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "master" ]]; then
docker push $DOCKER_REPO:latest;
fi
if [[ ! -z "$TRAVIS_TAG" ]]; then
docker tag $DOCKER_REPO:$BUILD_TAG $DOCKER_REPO:$TRAVIS_TAG;
docker push $DOCKER_REPO:$TRAV... | true |
89ba014819c3eb7ef5c6208bee34b042128637b9 | Shell | huzzzz/IntelligentLearningAgents | /A1/cs747-pa1-v1/startexperiment.sh | UTF-8 | 822 | 2.90625 | 3 | [] | no_license | #!/bin/bash
PWD=`pwd`
port=5001
nRuns=100
hostname="localhost"
# Allowed values for algorithm parameter(case-sensitive)
# 1. epsilon-greedy
# 2. UCB
# 3. KL-UCB
# 4. Thompson-Sampling
# 5. rr
# algorithm="rr"
algorithm="epsilon-greedy"
# algorithm="UCB"
# algorithm="KL-UCB"
# algorithm="Thompson-Sampling"
hori... | true |
a5594d03861fd61418f5b216c244587deaf4a77c | Shell | LFAdams/hmmer | /nbarcid.sh | UTF-8 | 5,532 | 3.421875 | 3 | [] | no_license | #PBS -S /bin/bash
#PBS -N nbarcid
#PBS -q batch
#PBS -l nodes=1:ppn=2:AMD
#PBS -l mem=40gb
#PBS -l walltime=480:00:00
#Set paths to inputs
#GITDIR is the directory of the github repo, this allows the script to point at other scripts
GITDIR=/home/lfa81121/hmmer/
#input peptides should be a file with each set of genomic... | true |
c088b61ae58115254070a58fcb8fa9c266148a0f | Shell | alinush/scripts | /src/ubuntu/disable-clock.sh | UTF-8 | 317 | 3.0625 | 3 | [] | no_license | echo "WARNING: This script will remove the clock from the taskbar, but keep the date!"
read -p "Proceed [y/N]? " ANS
if [ "$ANS" = "y" ]; then
dconf write /com/canonical/indicator/datetime/time-format "'custom'"
dconf write /com/canonical/indicator/datetime/custom-time-format "'%a %d %h'"
else
exit
fi
| true |
a41890da67c473404f8e090e51bc9428fb3f040c | Shell | danemacmillan/dotfiles | /dpm/yum.d/deluge_install | UTF-8 | 1,893 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
source "${DOTFILES_BOOTSTRAP_FILE}"
##
# Install deluge using linuxtech rpm.
#
# http://idroot.net/tutorials/how-to-install-deluge-on-centos-6/
#
# @author Dane MacMillan <work@danemacmillan.com>
# @link https://github.com/danemacmillan/dotfiles
# @license MIT
#
name="deluge"
version="deluge"
if [[... | true |
0ee476147d5e9715cad995e09f2200e3ba89c2bd | Shell | AntonioMA/B2G_build | /build_sto3.sh | UTF-8 | 2,322 | 3.75 | 4 | [] | no_license | #!/bin/bash
source ./.config
if [ -f ./.userconfig ]
then
source ./.userconfig
fi
export GP=${GECKO_PATH:-./gecko}
export CUR_DIR=`pwd`
# We have to apply 3 patches. Quick and dirty...
export BUILD_PATCH='build.patch|./build'
export SYSTEM_CORE_PATCH='system_core.patch|./system/core'
export GECKO_PATCH="./recover... | true |
b4aadd980e4b756475bd16bd7862ba0589d9c649 | Shell | Robin329/Linux_config | /gen_compile_commands.sh | UTF-8 | 1,169 | 3.8125 | 4 | [] | no_license | #!/bin/sh
# Check dependencies
function check_dependencies() {
if ! command -v compiledb &> /dev/null; then
loge "Error: compiledb is not installed. Please install it using 'pip install compiledb'"
exit 1
fi
}
ROOT=`pwd`
echo "ROOT:$ROOT"
check_dependencies
dirs=(
"display"
"resmgr"
... | true |
f5b48262ec1cdaeed3c2ed46f4eec904b28ddc09 | Shell | xaptum-eng/ibm-tpm2-simulator-mirror | /create_daa_key.sh | UTF-8 | 1,998 | 3.90625 | 4 | [] | no_license | #!/bin/bash
set -e
TOPLEVEL_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
TSS_DIR=${TOPLEVEL_DIR}/tss
if [[ $# -ne 2 ]]; then
echo "usage: $0 <public key output file> <key handle output file>"
exit 1
fi
KEY_FILE="$1"
HANDLE_FILE="$2"
PUB_KEY_RAW_FILE=/tmp/tpm-sim-pub-raw.bin
PU... | true |
0cc78c3192ddeb4e98466321df396daa1c02bed7 | Shell | awenas/terraformdemo | /docker-demo/userdata/masterbootstrap | UTF-8 | 1,294 | 2.671875 | 3 | [] | no_license | #!/bin/bash
echo "Yum update"
yum update -y
setenforce 0
systemctl stop firewalld
systemctl disable firewalld
wget -P /etc/yum.repos.d/ https://raw.githubusercontent.com/awenas/terraformdemo/master/docker-demo/virt7-docker-common-release.repo
yum -y install --enablerepo=virt7-docker-common-release kubernetes etcd f... | true |
6828c1e314df606d9f0ee230862be719f8ed8558 | Shell | holyfantasticyc/DavisDingelMonrasMorales | /tablesPDF/code/makePDF.sh | UTF-8 | 4,970 | 2.6875 | 3 | [] | no_license | #!/bin/bash
##Build TeX document
module load texlive
cp ../code/texheader.tex ../output/tabsfigs.tex
echo "\input{tabsfigs/table1.tex}" >> ../output/tabsfigs.tex
echo "\input{tabsfigs/table2.tex}" >> ../output/tabsfigs.tex
echo "\input{tabsfigs/table3.tex}" >> ../output/tabsfigs.tex
echo "\input{tabsfigs/table4.tex}"... | true |
673b7e7ed2d22d9e08ce75d78f93ef4765e4f9e8 | Shell | apache/incubator-pegasus | /src/server/test/run.sh | UTF-8 | 1,458 | 3.28125 | 3 | [
"Apache-2.0",
"Zlib",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | #!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | true |
cfb89283e40b5510737f5ef1d371399d82c3e110 | Shell | CrisMon-01/ProgettoASW | /shared/scripts/setup-open-jdk.sh | UTF-8 | 302 | 2.59375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
source "/home/ProgettoASW/shared/scripts/common.sh"
# see https://openjdk.java.net/install/
# set up the Java constants
OPENJDK_PACKAGE=openjdk-8-jdk
echo "====================="
echo "installing open jdk 8"
echo "====================="
apt update
apt install -y ${OPENJDK_PACKAGE}
| true |
9d21cd75784c128d8e64960c0f7fd6fe66784154 | Shell | lxfone/shell | /shell脚本/while.sh | UTF-8 | 95 | 3.09375 | 3 | [] | no_license | #!/bin/bash
#while的示例
a=1
while [ "${a}" -lt 5 ]
do
echo "${a}"
a=$((a+1))
done
| true |
e18627396084f11a28610caa724b8e28989a6491 | Shell | ptr1337/rpi-img-builder | /files/devuan/scripts/actledoff | UTF-8 | 480 | 3.296875 | 3 | [] | no_license | #!/bin/bash
### BEGIN INIT INFO
# Provides: actled
# Required-Start:
# Required-Stop:
# Default-Start: 2
# Default-Stop:
# Short-Description: Turns off activity led
# Description:
### END INIT INFO
# chmod +x /etc/init.d/actled
# update-rc.d actled defaults 2
. /lib/lsb/init-functions
case "$1" in
start)
log_d... | true |
6f3a0fb5cafad9bfb02c0f530ccb73b899367b40 | Shell | RyanMcG/dotfiles | /bin/scroll | UTF-8 | 92 | 2.734375 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
PAGE=$1
OFFSET=${2:-0}
head -n $(($PAGE + ($PAGE * $OFFSET))) | tail -n $PAGE
| true |
926a23c72d8c4b3f5e441a88ac3d78e204c508f7 | Shell | ashertic/study | /project-taipingjinke/remove.sh | UTF-8 | 631 | 2.609375 | 3 | [] | no_license | #!/usr/bin/env bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root or with sudo permission" 1>&2
exit 1
fi
docker rm -f identity_pg
docker rm -f expert_redis
docker rm -f token_mt
docker rm -f identity_api
docker rm -f homepage_ui
docker rm -f identity_ui
docker rm -f rabbitmq
docker rm -f label... | true |
382b78383bd598c1cba62b1f4769095836506ecb | Shell | stju19/study | /jgq-utils/jgq-utils/usr/podm-link.sh | UTF-8 | 1,244 | 2.890625 | 3 | [] | no_license | #!/bin/bash
if [ "$1" == "-h" ]; then
echo 'podm-link [-d]'
echo 'podm-link [-m]'
echo ''
exit
fi
if [ "$1" == "-m" ]; then
rm -rf /lib/python2.7/site-packages/podm
rm -rf /lib/python2.7/site-packages/podmclient
ln -sv /root/podm_merge/podm/podm/podm/podm /lib/python2.7/site-packages/podm
... | true |
eb78f2d9b7d05e3eaae625517ac0401511fb5240 | Shell | jkanclerz/ubuntu-cookbooks | /cookbooks/kibana/recipes/install.bash | UTF-8 | 788 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash -e
function install()
{
# Clean Up
initializeFolder "${kibanaInstallFolder}"
# Install
unzipRemoteFile "${kibanaDownloadURL}" "${kibanaInstallFolder}"
# Config
local configData=('"http://"+window.location.hostname+":9200"' "\"${kibanaElasticSearchURL}\"")
createFileFromTem... | true |
b86754d56a527e886baf897a05575e566cee5a11 | Shell | crcerror/BATOCERA-Shares | /init.d/S03bootsplash | UTF-8 | 659 | 3.59375 | 4 | [] | no_license | #!/bin/sh
do_start ()
{
image="/usr/share/batocera/splash/logo-version.png"
if ! [ -f "$image" ]; then
# no image => for ogoa (or any other), logo-version-wxh.png
image="/usr/share/batocera/splash/logo-version-"$(batocera-resolution currentResolution)".png"
[ -f "$image" ] || exit 1
... | true |
946a76706173fd415e57dfbf9b86c61b6b978efa | Shell | stphivos/django-angular2-fullstack-devops | /devops | UTF-8 | 6,795 | 3.859375 | 4 | [
"MIT"
] | permissive | #!/bin/bash -e
ENVIRONMENTS=core,dev,prod
is_installed() {
if command -v $1 >/dev/null 2>&1; then return 0; else return 1; fi
}
if ! is_installed "pip"; then ./scripts/tools.sh "pip"; fi
if ! is_installed "aws"; then ./scripts/tools.sh "aws"; fi
if ! is_installed "ansible"; then ./scripts/tools.sh "ansible"; fi
... | true |
fedb6fa04d583aad8d5a0b8ee9d3fec9ffe3d877 | Shell | Cutotopo/poogle | /poogle.sh | UTF-8 | 980 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ -z "$1" ]
then
echo POOGLE
echo github.com/Cutotopo
echo ===================
echo
echo Syntax error. Expected integer at pos. 1.
echo
echo Usage:
echo - poogle [number of packets to send]
exit 1
else
if [ $1 = "" ]
then
echo Invalid number
exit 1
fi
# checks that the paramete... | true |
f8fd217c9e348deae46e31ccd8014fa9837b4527 | Shell | firstandthird/swarm-cli | /bin/swarm-deploy | UTF-8 | 375 | 3.4375 | 3 | [] | no_license | #!/bin/bash
if [ "$1" == "_description" ]; then
echo "[stack] [?env]"
exit
fi
main() {
local stack=$1
local envfile=$2
if test -z "$envfile"; then
envfile=$stack
fi
. $DIR/swarm-copy $stack.yml
. $DIR/swarm-copy $envfile.env
. $DIR/swarm-shell "source $envfile.env && docker stack deploy -c $stac... | true |
ebd5d18e814939016465f37a4955f6c4f9d9a5ce | Shell | iAshwinK/discovery_server | /docker/build.sh | UTF-8 | 283 | 2.734375 | 3 | [] | no_license | #!/bin/bash
set -e
export ROOT="../"
export TARGET_DIR="target"
export SERVICE_TARGET_DIR=${ROOT}/target
mkdir -p ${TARGET_DIR}
mvn clean install -Dmaven.test.skip=true -P jar -f ${ROOT}/pom.xml
echo "Copying relevant artifacts..."
cp ${SERVICE_TARGET_DIR}/*.jar ${TARGET_DIR}/ | true |
705a1a96ba472bdd93f56aa1369ce218fc6e095d | Shell | aeruder/dotfiles | /home/zsh/.zprofile | UTF-8 | 707 | 3.109375 | 3 | [] | no_license | # Super annoying to do this again but this
# gets around /etc/zprofile on mac blowing
# away the path
[ -e ~/.zsh-pre-paths ] || touch ~/.zsh-pre-paths
[ -e ~/.zsh-post-paths ] || touch ~/.zsh-post-paths
prepaths=( ~/.dotfiles/bin )
prepaths+=( ${(f)"$(<~/.zsh-pre-paths)"} )
postpaths=( )
postpaths+=( ${(f)"$(<~/.zsh... | true |
c241875a6a2a718e19505bf44540c2ff038b75d6 | Shell | justpayne/jburkardt-f77 | /pitcon66/pitcon66_prb6.sh | UTF-8 | 526 | 3.0625 | 3 | [] | no_license | #!/bin/bash
#
gfortran -c -g pitcon66_prb6.f >& compiler.txt
if [ $? -ne 0 ]; then
echo "Errors compiling pitcon66_prb.f"
exit
fi
rm compiler.txt
#
gfortran pitcon66_prb6.o -L$HOME/libf77/$ARCH -lpitcon66
if [ $? -ne 0 ]; then
echo "Errors linking and loading pitcon66_prb.o"
exit
fi
rm pitcon66_prb6.o
#
mv a.ou... | true |
3e4fb0eb33f68257a640e630dba5cd9b61a64d69 | Shell | arbudiman/OpenStack-Compute | /conf_bar.sh | UTF-8 | 504 | 3.609375 | 4 | [] | no_license | #!/bin/sh
source conf_color.sh
prog() {
local w=80 p=$1; shift
# create a string of spaces, then change them to dots
printf -v dots "%*s" "$(( $p*$w/100 ))" ""; dots=${dots// /.};
# print those dots on a fixed-width space plus the percentage etc.
#printf "\r\e[K%-*s| %3d %% %s" "$w" "$dots" "$p" "$... | true |
311dd0c589ef7b0af9c4592b77b4e9e259f250e2 | Shell | bat-battle/LearnBash | /for_while_select.sh | UTF-8 | 2,813 | 3.796875 | 4 | [] | no_license | # /bin/sh
# case1:字符串用空格分隔,没有括号,没有逗号, 然后循环将其依次赋给变量.
for loop in 1 2 3 4 5
do
echo "value is $loop"
done
for loop in "abcdefg" "hijklmn"
do
echo "value is $loop"
done
LOVERS="tom rdd jake"
for lp in $LOVERS
do
echo "my lover is $lp"
done
for file in $HOME/.bash*
do
echo "filename: $file"
done
#for ... | true |
24de1984ab9defa1a783f3c33fcd03eeb21cfea0 | Shell | bugaev/LOAD_BALANCER_BASH | /start_conveyor.sh | UTF-8 | 11,443 | 3.140625 | 3 | [] | no_license | #!/bin/bash
# vim:tw=999:nowrap
# accepts arguments:
# 1: (optional) script to parallelize
#--------- BEGIN USER-DEFINED PARAMETERS ----------
WAIT_FIRST_PROC=60s
NMBR_PROC_WAIT=3
hostname=$(hostname)
case "$hostname" in
jupiter*)
nodes=( jupiter io galileo cassini megadon monolith europa callisto gany... | true |
864cef9c183fc8d0e80748c7ff1d29b95adfb37e | Shell | htugraz/abs | /i686/community/ansible/PKGBUILD | UTF-8 | 1,471 | 2.546875 | 3 | [] | no_license | # $Id: PKGBUILD 143549 2015-10-10 08:37:37Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor: Chris <seitz.christoph@gmail.com>
# Contributor: m0ikz <ndelatorr... | true |
8b3cbb0c88cb06c5073b34e3f556e436b50bb5b4 | Shell | ultraEX/MAT | /bin/test.sh | UTF-8 | 1,053 | 3.4375 | 3 | [] | no_license | work_path=$(dirname $(readlink -f $0))
usage="\n
==================================================================================\n
Usage: $0 COMMAND Args...\n
==================================================================================\n
Commands:\n
--help display this help and exit.\n
\n
tcy test t... | true |
17e959b0827da6e02c7fd65ae0d6517d24c2b4f0 | Shell | SoftwareAG/sagdevops-templates | /testw | UTF-8 | 1,600 | 3.203125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/sh -e
###############################################################################
# Copyright � 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file e... | true |
80284473f2dee15a66ebf9764f786af36e426ef8 | Shell | xyt2008/frcnn | /examples/YOLO/demo_yolov3.sh | UTF-8 | 451 | 2.78125 | 3 | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | #!/usr/bin/env sh
set -e
# determine whether $1 is empty
if [ ! -n "$1" ] ;then
echo "$1 is empty, default is 0"
gpu=0
else
echo "use $1-th gpu"
gpu=$1
fi
BUILD=build/examples/YOLO/demo_yolov3.bin
GLOG_logtostderr=1 $BUILD --gpu $gpu \
--model models/YOLO/yolov3.proto \
--weights models/... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.