code stringlengths 2 1.05M | repo_name stringlengths 5 110 | path stringlengths 3 922 | language stringclasses 1
value | license stringclasses 15
values | size int64 2 1.05M |
|---|---|---|---|---|---|
#!/bin/bash
#
# TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
# Copyright (C) 2001-2017 INPE and TerraLAB/UFOP -- www.terrame.org
#
# This code is part of the TerraME framework.
# This framework is free software; you can redistribute it and/or
# modify it under the terms of the ... | pedro-andrade-inpe/terrame | jenkins/linux/terrame-test-execution-linux-ubuntu-14.04.sh | Shell | lgpl-3.0 | 1,737 |
#!/bin/sh
set -eu
IFS='
'
cd $(dirname $0)/../..
meld ws_dev ws_jungle
#meld ws_dev ws_default
| Baerche/wasserspiel | user/baerche/meld.sh | Shell | lgpl-3.0 | 96 |
#!/bin/bash
set -u
set -e
TIMEZONE=$1
UBUNTU_MIRROR=$2
echo "update timezone"
echo "$TIMEZONE" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
echo "use ali's mirror and update sources"
cat <<EOF > /etc/apt/sources.list
deb $UBUNTU_MIRROR trusty main restricted universe multiverse
deb $UBUNTU_MIRROR trust... | SkyLothar/bootstrap-vagrant | basic-setup.sh | Shell | unlicense | 726 |
#!/bin/bash
if [ "$UID" -ne "0" ] #User check
then
echo "Use this script as root."
exit 1
else
pacman -Sy powerdns-recursor ldns
chattr -i /etc/resolv.conf #Allow the modification of the file
sed -i 's|nameserver|#nameserver|' /etc/resolv.conf #Disable previous DNS servers
echo "nameserver 127.0.0.1"... | HLFH/Linux-DNS-server | arch-powerdns.sh | Shell | unlicense | 594 |
#!/bin/bash
if [ -z "$@" ]; then
/usr/games/freeciv-server --saves /freeciv --port 5556
else
/usr/games/freeciv-server --saves /freeciv --port 5556 -f /freeciv/"$@"
fi
| pwasiewi/dokerz | freeciv/docker-entrypoint.sh | Shell | unlicense | 168 |
#!/bin/sh
if ! ps -auw | grep -q '[/]home/odroid/startup'; then
/home/odroid/startup /home/odroid/startup
fi
| heradon/shima | keepalive.sh | Shell | apache-2.0 | 113 |
#!/bin/bash
#
# Copyright (C) 2009-2010 Ulrik Mikaelsson. All rights reserved
#
# License:
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | rawler/bithorde | tests/link_source/test_largefile.sh | Shell | apache-2.0 | 1,550 |
#!/bin/zsh -
#===============================================================================
#
# FILE: timer-screenshot.sh
#
# USAGE: ./timer-screenshot.sh
#
# DESCRIPTION: takes a screenshot every x seconds for games.
#
# OPTIONS: first argument: interval, second argument (optional): pr... | Patola/patolascripts | timer-screenshot.sh | Shell | apache-2.0 | 3,312 |
#!/bin/bash
# Copyright 2016 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | burdara/kubernetes | cluster/gce/gci/configure-helper.sh | Shell | apache-2.0 | 35,384 |
#!/bin/bash
# Example tuning scenario
# System
## CPU core to pin the processes to
CPU_CORE="1"
## OpenCL platform ID
OPENCL_PLATFORM="0"
## OpenCL device ID
OPENCL_DEVICE="0"
## Name of OpenCL device, used for configuration files
DEVICE_NAME="GenericDevice"
## Size, in bytes, of the OpenCL device's cache line
DEVICE... | AA-ALERT/artshardware | examples/scenario.sh | Shell | apache-2.0 | 2,768 |
#!/usr/bin/env bash
# Copyright 2021 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | kubernetes/k8s.io | infra/gcp/terraform/k8s-infra-prow-build-trusted/deploy.sh | Shell | apache-2.0 | 1,931 |
#!/usr/bin/env bash
sphinx-apidoc -o docs provdbconnector
sphinx-build -q -a -b html -d docs/build/doctrees docs/ docs/build/html &> travis-doc-test.txt
TEST=$(grep 'failed' travis-doc-test.txt | LC_ALL=C.UTF-8 wc -m)
echo "Lenght of errors = $TEST"
if test $TEST -gt 0
then
echo "Error during build docs "
grep... | DLR-SC/prov-db-connector | .travis_docs.sh | Shell | apache-2.0 | 400 |
#!/bin/sh
#
# Copyright 2015 VMware, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 OR GPL-3.0-only
#
FILES=/var/content/*
COUNT=0
for f in $FILES
do
mkdir -p "/usr/lib/loginsight/application/etc/content-packs/CP${COUNT}"
cp "$f" "/usr/lib/loginsight/application/etc/content-packs/CP${COUNT}/cont... | vmware/ansible-role-vrli | files/copy_packs.sh | Shell | apache-2.0 | 358 |
#!/usr/bin/env bash
echo 'creating dig-logs index ...'
curl -XPUT localhost:9200/dig-logs -d '
{
"mappings" : {
"log" : {
"properties" : {
"user" : {
"type" : "string",
"index" : "not_analyzed"
},
"type" : {
"type" : "string",
"index" : "not_a... | NextCenturyCorporation/digapp-ht | scripts/create_logs_index.sh | Shell | apache-2.0 | 645 |
#!/bin/sh
ARGV0=$0 # Zero argument is shell command
ARGV1=$1 # First argument is temp folder during install
ARGV2=$2 # Second argument is Plugin-Name for scipts etc.
ARGV3=$3 # Third argument is Plugin installation folder
ARGV4=$4 # Forth argument is Plugin version
ARGV5=$5 # Fifth argument is Base folder of LoxBerry
... | mschlenstedt/LoxBerry-Plugin-RCSwitch | postupgrade.sh | Shell | apache-2.0 | 631 |
#!/bin/bash
#####################################
yes $IRODS_PASS | sudo -S echo "Enabling priviledges"
#####################################
# Resources
echo "Fix resources"
iadmin rmresc demoResc
# Create resources dirs
sudo chown -R $UID:$GROUPS $RESOURCES_DIR
mkdir -p $MAINRES_DIR $REPLICA_DIR
# Create resources
... | cineca-scai/docker-experiments | images/b2safe/install_eudat.sh | Shell | apache-2.0 | 1,948 |
#!/bin/bash -eu
#
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | google/stereo-magnification | scripts/download_model.sh | Shell | apache-2.0 | 821 |
#!/bin/sh
[ -f /usr/share/acpi-support/state-funcs ] || exit 0
. /usr/share/acpi-support/power-funcs
getXconsole
getTouchDeviceId()
{
# extract the device id for the supplied touch device name
xinput list | sed -nr "s|.*$1.*id=([0-9]+).*|\1|p"
}
ENABLEPROP="Device Enabled"
# Get the xinput device number an... | patzhu/yong | etc/acpi/asus-touchpad.sh | Shell | apache-2.0 | 806 |
# Record the download stats
git config --global push.default simple
DATE=$(date --rfc-3339 date)
curl https://api.github.com/repos/zaproxy/zaproxy/releases > ../zap-mgmt-scripts_gh-pages/stats/releases-${DATE}.json
curl https://api.github.com/repos/zaproxy/zap-extensions/releases > ../zap-mgmt-scripts_gh-pages/stats... | zapbot/zap-mgmt-scripts | record-stats.sh | Shell | apache-2.0 | 1,087 |
#!/usr/bin/env bash
set -e
DOCKER_REPO=${DOCKER_REPO:-gstack/sample-app}
DOCKER_TAG=${DOCKER_TAG:-latest}
RESET=$(tput sgr0)
BOLD=$(tput bold)
GREEN=$(tput setaf 2)
function headline() {
local msg=$1
echo -e "\n${BOLD}${GREEN}$msg${RESET}"
}
function exit_trap() {
headline "Cleaning up..."
rm sampl... | gstackio/sample-app | build.sh | Shell | apache-2.0 | 580 |
#!/usr/bin/env 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
# "Lice... | davinash/geode | ci/pipelines/meta/deploy_meta.sh | Shell | apache-2.0 | 9,949 |
#!/bin/bash
#
# start script for freeboard on a linux pc or maybe on a mac too
#
#SIGNALK_HOME=/home/pi/freeboard
SIGNALK_HOME=`pwd`
#
cd $SIGNALK_HOME
mkdir -p signalk-static/logs
#temporary until linux-arm.jar is in purejavacom.jar
export LD_LIBRARY_PATH=$SIGNALK_HOME/jna
#start server
#NOTE: you may need to expl... | SignalK/signalk-java | startpc-dev.sh | Shell | apache-2.0 | 1,069 |
#!/usr/bin/env bash
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | GoogleCloudPlatform/gcp-service-broker | hack/verify-generated.sh | Shell | apache-2.0 | 1,772 |
#!/bin/bash
# This script runs WordCount example locally in a few different ways.
# Specifically, all combinations of:
# a) using mvn exec, or java -cp with a bundled jar file;
# b) input filename with no directory component, with a relative directory, or
# with an absolute directory; AND
# c) input filename co... | shakamunyi/beam | travis/test_wordcount.sh | Shell | apache-2.0 | 3,321 |
#!/bin/sh
#
# Copyright 2020 PingCAP, Inc. Licensed under Apache-2.0.
set -eu
cur=$(cd `dirname $0`; pwd)
DB_NAME="chaos"
TABLE_NAME="t"
# drop database on mysql
run_sql "drop database if exists \`$DB_NAME\`;"
# build data on mysql
run_sql "create database $DB_NAME;"
run_sql "create table $DB_NAME.$TABLE_NAME (a in... | c4pt0r/tidb | dumpling/tests/chaos/run.sh | Shell | apache-2.0 | 863 |
#! /bin/sh
# Copyright 2008 Sanjiv Sahayam
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | ssanj/pondskum | resources/scripts/runProgress.sh | Shell | apache-2.0 | 657 |
JAVA_HOME=/usr/java/current
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
CATALINA_HOME=/usr/webserver/current
export CATALINA_BASE=/data/mscc/tomcat/webp
JAVA_OPTS="-javaagent:$CATALINA_BASE/sflowagent.jar -server -Xms1536m -Xmx4096m -XX:NewSize=320m -XX:MaxNewSize=320m -XX:PermSize=96m -XX:MaxPermSize=256... | swenker/studio | linux/tomcat/startup.sh | Shell | apache-2.0 | 536 |
#!/bin/sh
# Copyright 2005-2017 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
#
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
# virtue of its status as an int... | weathersource/grib_api | tests/bitsPerValue.sh | Shell | apache-2.0 | 2,821 |
#!/bin/zsh
session_name=openrecords
window_one=vagrant
window_two=development
# Reset Session
tmux kill-session -t $session_name
# Window 1 Layout - Three horizontally spaced panes
#
# ----------------------------------
# | | | |
# | CELERY | FLASK | SMTP |
# | | ... | CityOfNewYork/NYCOpenRecords | .startup/tmux_setup.sh | Shell | apache-2.0 | 1,379 |
#!/bin/bash
# SET THE FOLLOWING VARIABLES
# docker hub username
USERNAME=weinschenker
# image name
IMAGE=docker-texlive
version=`cat VERSION`
echo "version: $version"
git commit -m "version $version"
git tag -a "$version" -m "version $version"
git push
git push --tags
docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMA... | janweinschenker/docker-texlive | version.sh | Shell | apache-2.0 | 417 |
#!/bin/bash
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | googleapis/python-domains | .kokoro/build.sh | Shell | apache-2.0 | 1,757 |
#!/bin/bash
_help()
{
echo ;
echo "$0 is a MySQL set up and configuration builder for ASWAT TEST Application. By default all sections are executed." ;
echo ;
exit 1 ;
}
# Execute all sql files
for i in `ls raw*`; do echo "execute $i"; mysql -uraw -praw -D raw < $i; done
#mysql -uasswat -passwat -D asswat < assw... | macherif/aswat | scripts/robonaute.sh | Shell | apache-2.0 | 343 |
#!/bin/bash
cd ../C_porting_XTP/pyfiles
python3 gen_cgo_code.py
cd ../../build
rm -rf build_prj
mkdir build_prj
cd build_prj
cmake ../../C_porting_XTP/src/Platform -G "Unix Makefiles" -Wno-dev -DBoost_DEBUG=OFF
make
cd ..
| leochan007/XTP.GO | build/build.sh | Shell | apache-2.0 | 231 |
#!/bin/sh
DST=/usr/local/var/lib/opflex-server/policy.json
POD=$(kubectl get pods -n kube-system --field-selector status.podIP=$1 -l name=aci-containers-host -o custom-columns=":metadata.name" | grep aci)
kubectl cp /tmp/gen_policy.$1.json kube-system/$POD:$DST -c opflex-server
| noironetworks/aci-containers | docker/gbp_update.sh | Shell | apache-2.0 | 279 |
#!/bin/bash
echo "Testing template REST API"
AWS_TEMPLATE_ID=$(curl -u cbuser@sequenceiq.com:test123 -sX POST -H "Content-Type:application/json" -d @json/aws-template.json http://localhost:8080/templates | jq '.id')
echo "Generated aws template with id: $AWS_TEMPLATE_ID"
curl -u cbuser@sequenceiq.com:test123 -sX GET... | sequenceiq/cloudbreak | core/test-scripts/aws-template.sh | Shell | apache-2.0 | 731 |
./sim.py -v ./result/traffic_record_per1hour/6509_agg_plus/flow_anon_2008-01-01_00.host_sw_map.txt -s ./result/metis_result/partition_6509_plus_per1hour/metis_input_6509_plus_0.txt.part.5 -t ./result/traffic_record_per1hour/6509_agg_plus/flow_anon_2008-01-01_00.agg.txt
./sim.py -v ./result/traffic_record_per1hour/6509_... | yeasy/lazyctrl | others/lc_sim/src/auto_per1hour_update_plus.sh | Shell | apache-2.0 | 6,494 |
Title Group ID,ISBN13,Asset Type,Eligible for Distribution?,Title,Subtitle,Publisher,Imprint,Related Print Product ISBN,Contributor 1 First Name,Contributor 1 Middle Name,Contributor 1 Last Name,Contributor 1 Prefix,Contributor 1 Suffix,Contributor 1 Role,Contributor 1 Bio,Contributor 2 First Name,Contributor 2 Middle ... | fredzannarbor/pagekicker-community | scripts/includes/lsi-metadata-header.sh | Shell | apache-2.0 | 853 |
#!/bin/bash
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
rbenv install 2.1.1
rbenv global 2.1.1
rbenv rehash
ruby -v
gem -v
| fisto/docker-ubuntu | rbenv.sh | Shell | apache-2.0 | 216 |
#!/bin/bash
# List clusters (API v3)
KAFKA_CLUSTER_ID=$(docker-compose exec rest-proxy curl -X GET \
"http://localhost:8082/v3/clusters/" | jq -r ".data[0].cluster_id")
# Create topic (API v3)
docker-compose exec rest-proxy curl -X POST \
-H "Content-Type: application/json" \
-d "{\"topic_name\":\"te... | confluentinc/examples | clients/cloud/rest-proxy/produce.sh | Shell | apache-2.0 | 829 |
#!/bin/bash
#./build_parser.sh
rebuild -version=Tango -g -debug -oq/tmp -Isrc src/test.d
| CyberShadow/SeatD | build.sh | Shell | artistic-2.0 | 89 |
#!/bin/bash
curl -O http://rakudo.org/downloads/star/rakudo-star-2017.04.tar.gz
| tbrowder/config-scripts | not-currently-used/get-rakudo-star.sh | Shell | artistic-2.0 | 81 |
#!/bin/sh
INST_PATH=$(dirname $(dirname $(realpath $0)))
SSAT_TARGET="$1"
shift
cpp -E -P -C -undef -nostdinc \
-U__STDC_HOSTED -U__STDC_UTF_16__ -U__STDC_UTF_32__ -U__STDC_VERSION__ -U__STDC__ \
-D_ssat_DBMS_${SSAT_TARGET} \
-include "${INST_PATH}/src/ssat.sqlh" \
$@
| FailMan3D/ssat | bin/run_with_clang.sh | Shell | artistic-2.0 | 274 |
#/bin/sh
for i in 0 1; do
for j in `seq 0 7`; do
printf "\e[$i;3${j}m 0$i$j"
# printf "\033[m"
done; echo
done; printf "\033[m"
| neuschaefer/mind | colors.sh | Shell | bsd-2-clause | 133 |
#!/bin/sh -ex
rm -rf classes
mkdir -p classes/main classes/test
javac -d classes/main `find src/main -name "*.java"`
javac -d classes/test -cp classes/main:/usr/share/java/junit4.jar `find src/test -name "*.java"`
java -cp classes/main:classes/test:/usr/share/java/junit4.jar org.junit.runner.JUnitCore greet.GreeterTes... | sbinet/fubsy | examples/java-hello/build.sh | Shell | bsd-2-clause | 322 |
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
check() {
return 255
}
depends() {
echo dmsquash-live
}
install() {
inst /usr/bin/chroot
inst /usr/bin/chmod
inst /usr/bin/sed
inst_hook pre-pivot 01 "$moddir/adduser.sh"
... | gh0std4ncer/VoidBang | dracut/module-setup.sh | Shell | bsd-2-clause | 490 |
#!/bin/bash
#
# Install and run mysqltuner.pl
#
# Stephen Lang
# Tue Mar 5 23:53:01 EST 2013
# Variables
script=${0##*/}
# Sanity checks
if [ ! `whoami` = root ]; then
echo "Error: Script can only be run as root." >&2
sleep 2
exit 1
fi
# Functions
function help {
cat <<HELP
SYNOPSIS:... | stephenlang/shelladmin | modules/mysql/run-mysqltuner.sh | Shell | bsd-2-clause | 689 |
FLUME_HOME=./apache-flume-1.3.1-bin
FLUME_CONF=flume-conf.properties
mkdir `grep directory $FLUME_CONF | sed "s#.*directory = \(.*\)#\1#g"`
$FLUME_HOME/bin/flume-ng agent -C dtFlume.jar -n agent1 -c $FLUME_HOME/conf -f $FLUME_CONF -Dflume.root.logger=INFO,console
| dynaTrace/Dynatrace-Big-Data-Business-Transaction-Bridge | src/runFlume.sh | Shell | bsd-3-clause | 265 |
#!/bin/ksh
# Pre load of lib is needed for OpenBSD
LD_PRELOAD=/usr/lib/libpthread.so ./LCDd -c LCDd.conf
| brendanhoran/router-tools | lcdproc/start-lcd-server.sh | Shell | bsd-3-clause | 106 |
#! /bin/sh
# Generated by ejudge-setup, version 3.9.0 #1
# Generation date: 2022/01/10 11:28:35
#echo "This script will ERASE the exising user database and contests!"
#echo "Are you sure to proceed (yes/no)?"
#read confirm
#if [ "${confirm}" != "yes" ];
#then
# echo "Operation is not confirmed"
# exit 0
#fi
uid=`id ... | n-at/docker-ejudge | scripts/install.sh | Shell | bsd-3-clause | 358,547 |
#!/bin/bash
$PY3 server.py --port=8080 --mongo=${DBHOST} --logging=error & | kellabyte/FrameworkBenchmarks | frameworks/Python/tornado/setup_py3.sh | Shell | bsd-3-clause | 75 |
#!/bin/sh
PACKAGE=eu.juniper.sa.deployment.monitor
[[ -n "${REINSTALL}" ]] \
&& mvn -q --file $(dirname "${0}")/../pom.xml clean install
exec mvn -q --file $(dirname "${0}")/pom.xml \
exec:java -e -Dexec.mainClass="${PACKAGE}.$(basename ${0} .sh)" -Dexec.args="$*"
# Example:
# $ ssh 172.18.2.117 -L 3000:0.0.0.0:30... | juniper-project/sched-advisor | sched-advisor-deployment-monitor/MonitoringDbService.sh | Shell | bsd-3-clause | 947 |
echo `yarn -v`
echo `node -v`
yarn
yarn run build
yarn run build:examples
| ipython/ipywidgets | scripts/travis_install_js.sh | Shell | bsd-3-clause | 74 |
#!/bin/bash
echo pwd:$PWD
astyle=$1
format=$2
format_wildcards="""
./matrix/*.*pp
./test/*.*pp
"""
#echo astyle: $astyle
#echo format: $format
if [[ $format -eq 1 ]]
then
echo formatting
$astyle ${format_wildcards}
else
echo checking format...
$astyle --dry-run ${format_wildcards} | grep Formatted &>/... | PX4/Matrix | scripts/format.sh | Shell | bsd-3-clause | 575 |
# Copyright (c) 2013 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
EXECUTABLES=python${NACL_EXEEXT}
# This build relies on certain host binaries and python's configure
# requires us to set --build= as well as --hos... | yeyus/naclports | ports/python/build.sh | Shell | bsd-3-clause | 2,099 |
# shellcheck shell=bash disable=SC1090
# The next line updates PATH for the Google Cloud SDK.
[ -f "${HOME}/opt/google-cloud-sdk/path.zsh.inc" ] && . "${HOME}/opt/google-cloud-sdk/path.zsh.inc"
# The next line enables shell command completion for gcloud.
[ -f "${HOME}/opt/google-cloud-sdk/completion.zsh.inc" ] && . "... | quidome/dotfiles | env.d/43_gcloud.sh | Shell | bsd-3-clause | 443 |
mix test
mix coveralls
mix credo
mix dogma
| Nebo15/annon.api | bin/hooks/pre-commit.sh | Shell | mit | 43 |
warnings=$(mktemp -t heroku-buildpack-nodejs-XXXX)
detect_package_manager() {
case $YARN in
true) echo "yarn";;
*) echo "npm";;
esac
}
failure_message() {
local warn="$(cat $warnings)"
echo ""
echo "We're sorry this build is failing! You can troubleshoot common issues here:"
echo "https://devcente... | EDInewtech/EDI_chatbot | lib/failure.sh | Shell | mit | 13,820 |
#!/bin/sh
REF=$@
echo $@ | \
sed -E 's|^refs/heads/master$|latest|' | \
sed -E 's|^refs/pull/(.*)|pr-\1|' | \
sed -E 's|^refs/(heads\|tags)/(.*)|\2|' | \
sed -E 's|/|-|g'
| evoja/docker-Github-Gitlab-Auto-Deploy | .github/workflows/docker-tag.sh | Shell | mit | 187 |
# install.sh
# 1. COPY FILES TO /etc
cd /agua/bin/install/resources/rabbitjs
sudo cp etc/init.d/rabbitjs /etc/init.d
sudo cp etc/init/rabbitjs.conf /etc/init
sudo cp etc/default/rabbitjs /etc/default
# 2. COPY EXCUTEABLE TO /usr/bin
ln -s /agua/bin/daemon/rabbitjs /usr/bin/rabbitjs
# 3. RUN SERVICE
service rabb... | aguadev/aguadev | bin/install/resources/rabbitjs/install.sh | Shell | mit | 332 |
#!/bin/sh
npm install
bower install
# clean and prepare public directory
rm -rf public
cp -r src public
# compile jade to html
./node_modules/.bin/nodemon -e jade --watch src --exec "
./node_modules/.bin/jade src -o public -PH
rm -rf src/*.html public/_partials" &
# compile sass to css
./node_modules/.bin/node-... | katyjustiss/login_authentication | watch.sh | Shell | mit | 1,190 |
source "$DATADIR/modules/wbmz-battery-common.sh"
| contactless/wb-hwconf-manager | modules/wbmz3-battery.sh | Shell | mit | 49 |
#!/bin/sh
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
echo "ocaml-$1"
opam --version
gcc -dumpfullversion -dumpversion
cat flowtype.opam
cat flow_parser.opam
cat .circleci/config.yml
| facebook/flow | .circleci/make_opam_cachebreaker.sh | Shell | mit | 319 |
#!/bin/bash
. ../assert.sh
FLOW=$1
assert_ok "$FLOW" stop 2> /dev/null > /dev/null
unset FLOW_TEMP_DIR # this is set by runtests.sh
echo "--temp-dir:"
DIR=$(mktemp -d /tmp/flow.XXXXXX)
assert_ok "$FLOW" start --wait --temp-dir "$DIR" 2> /dev/null > /dev/null
if [[ "$OSTYPE" == "msys"* ]]; then
[ -f "$DIR"/*.sockv... | ylu1317/flow | tests/temp_dir/test.sh | Shell | mit | 1,979 |
echo $TRAVIS_PULL_REQUEST $TRAVIS_BRANCH
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
echo "This is a pull request. No deployment will be done."; exit 0
fi
if [[ "$TRAVIS_BRANCH" != "master" ]]; then
echo "No deployment on BRANCH='$TRAVIS_BRANCH'"; exit 0
fi
if [[ "2.7 3.4" =~ "$python" ]]; then
co... | ctk3b/imolecule | devtools/travis-ci/post_binstar.sh | Shell | mit | 1,088 |
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
if [[ $# -ne 1 ]] ; then
python -m unittest $(echo test_*.py | sed 's/.py//g' | sed 's/^\.\///')
else
python -m unittest "$@"
fi
| d0c-s4vage/imagetext | tests/run_tests.sh | Shell | mit | 213 |
#!/bin/bash
CONFIG=${CONFIG_ENV:-production}
export PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin
export NEW_RELIC_CONFIG_FILE=/www/config/$CONFIG/newrelic.ini
export NEW_RELIC_ENVIRONMENT=$CONFIG
WORKERS=${1:-4}
cd /www
exec 2>&1
#python manage.py migrate --noinput
exec newrelic-admin run-program uwsgi --uw... | ArabellaTech/aa-docker-tools | fargate/pycommon/uwsgi-django-newrelic.sh | Shell | mit | 434 |
EMBEDDED=yes
. ${srcdir}/emulparams/elf32ebocteon.sh
OUTPUT_FORMAT="elf32-ntradbigmips"
BIG_OUTPUT_FORMAT="elf32-ntradbigmips"
LITTLE_OUTPUT_FORMAT="elf32-ntradlittlemips"
| jjones-cavium/binutils | ld/emulparams/elf32ebocteonn32.sh | Shell | gpl-2.0 | 173 |
#!/bin/bash
java -cp build servidoregorilla.Main
| salcedonia/egorilla-software-engineering-2008-2009 | Servidor/ejS.sh | Shell | gpl-2.0 | 49 |
#!/bin/sh
## generate system header tags
##ctags -I __THROW --file-scope=yes --langmap=c:+.h --languages=c,c++ --links=yes --c-kinds=+p --fields=+S -R -f ~/.vim/systags /usr/include/c++/4.8.2
## set tags+=~/.vim/systags
#### generate tags
cp gen_tags.sh .gen_tags.sh
ctags -R --c++-kinds=+px --fields=+iaS --extra=+q ... | Teameeting/Teameeting-MsgServer | MsgServer/MsgServerClient/gen_tags.sh | Shell | gpl-2.0 | 322 |
#!/bin/bash
export RTMIDI_API=MACOSX_CORE
export DYLD_LIBRARY_PATH=/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/lib
MODULE=recordsignal
EEGSYNTH=$HOME/eegsynth
INIDIR=`dirname $0`
$EEGSYNTH/module/$MODULE/$MODULE.py -i $INIDIR/recordsignal_... | robertoostenveld/eegsynth-matlab | patches/caroltrio/recordsignal_eeg.sh | Shell | gpl-2.0 | 328 |
PACKAGE_NAME="bash"
PACKAGE_VERNAME="bash-4.1"
PACKAGE_ARCHIVE="${PACKAGE_VERNAME}.tar.gz"
PACKAGE_DIR="$PACKAGE_VERNAME"
sgn_carefully sgn_untar_gz
sgn_carefully sgn_builddir sgn_byuser ./configure --prefix="$SGN_PREFIX" --without-bash-malloc
sgn_carefully sgn_builddir sgn_byuser make
sgn_carefully sgn_install_beg... | erdizz/sovereign | depot/bash/bash-4.1.sh | Shell | gpl-2.0 | 561 |
sh tulip_run_test.sh import_random_simple_graph
| jukkes/TulipProject | unit_test/gui/run_import_random_simple_graph_test.sh | Shell | gpl-3.0 | 49 |
#!/usr/bin/env bash
# Modify this file for your serial port designator.
# Move this file to the directory that contains s2a_fm.py
# and execute it by typing "./s2a_fm.sh"
# Make sure that this file is executable as well as s2a_fm.py
python s2a.py /dev/ttyACM0
| technologiescollege/s2a_fr | s2a/s2a.sh | Shell | gpl-3.0 | 263 |
#/bin/sh
# file: simulate_ncsim.sh
#
# (c) Copyright 2008 - 2011 Xilinx, Inc. All rights reserved.
#
# This file contains confidential and proprietary information
# of Xilinx, Inc. and is protected under U.S. and
# international copyright and other intellectual property
# laws.
#
# DISCLAIMER
# This disclaimer is no... | antoniovillena/zxuno | cores/Atari2600/zxuno/ipcore_dir/pll/simulation/functional/simulate_ncsim.sh | Shell | gpl-3.0 | 2,668 |
#!/bin/bash -e
# File: down2.sh
# Date: Wed Dec 24 22:31:37 2014 +0800
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
# This script is used to download unicode emoji
emojis=$(cat ../unicode-smiley.json | grep -o '\\ue[^"]*' | cut -c 3-)
for i in $emojis; do
size=$(wc -c "$i.png" 2>/dev/null | cut -f 1 -d ' ')
if [[ -n "$... | onlynight/wechat-dump | wechat/static/smileys/down2.sh | Shell | gpl-3.0 | 443 |
#!/bin/bash -e
# The M4 package contains a macro processor.
. ../lfs.comm
build_src() {
version=1.4.18
srcfil=m4-$version.tar.xz
srcdir=m4-$version
tar -xf $LFSSRC/$srcfil && cd $srcdir
./configure --prefix=/tools
make $JOBS
make install
cd .. && rm -rf $srcdir
}
build
| fangxinmiao/projects | Architeture/OS/Linux/Distributions/LFS/build-scripts/lfs-latest/1-build-tmp-system/23-m4.sh | Shell | gpl-3.0 | 309 |
#!/bin/bash
## Source path
THUB_SRC=${1}
if [ -z "${THUB_SRC}" ]; then
echo 'ERROR: THUB_SRC variable is empty. Aborting...'
exit 1
fi
## Setup environmental variables
[ -f .terrahub_build.env ] && . .terrahub_build.env
## Checking if THUB_BUILD_OK is true
if [ "$THUB_BUILD_OK" == "true" ]; then
## Checking if... | MitocGroup/www | terraform/s3_bucket/scripts/shasum.sh | Shell | mpl-2.0 | 592 |
#!/bin/bash
# StatusNet - a distributed open-source microblogging tool
# Copyright (C) 2008, 2009, StatusNet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of ... | jiacontrerasp/unaticos | scripts/stopdaemons.sh | Shell | agpl-3.0 | 1,615 |
#!/bin/bash
DIR="$(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
cd "$DIR"
if [ -f ./bin/php5/bin/php ]; then
exec ./bin/php5/bin/php -d enable_dl=On PocketMine-MP.php $@
else
echo "[WARNING] You are not using the standalone PocketMine-MP PHP binary."
exec php -d enable_dl=On PocketMine-MP.php $@
fi | Vladik46/PocketMine-MP | start.sh | Shell | lgpl-3.0 | 307 |
#!/bin/sh
# ES_HOME reguired to detect elasticsearch jars
export ES_HOME=~es/elasticsearch-1.4.4
echo '
{
"elasticsearch" : {
"cluster" : "elasticsearch",
"host" : "localhost",
"port" : 9300
},
"type" : "jdbc",
"jdbc" : {
"url" : "jdbc:mysql://localhost:3306/test",
... | hqren/elasticsearch-jdbc | bin/feeder/mysql/variables.sh | Shell | apache-2.0 | 907 |
#!/bin/bash
set -e
#set the DEBUG env variable to turn on debugging
[[ -n "$DEBUG" ]] && set -x
# Required vars
CONSUL_TEMPLATE=${CONSUL_TEMPLATE:-/usr/local/bin/consul-template}
CONSUL_CONFIG=${CONSUL_CONFIG:-/consul-template/config.d}
CONSUL_CONNECT=${CONSUL_CONNECT:-consul.service.consul:8500}
CONSUL_MINWAIT=${CO... | vinzdrance/haproxy-consul | launch.sh | Shell | apache-2.0 | 1,480 |
#!/bin/bash
if [ -z "$1" ]; then
cat <<EOF
usage:
./make_spec.sh PACKAGENAME
EOF
exit 1
fi
packagename=$1
bundle version 2>/dev/null
if [ $? != 0 ];then
echo "bundler is not installed. Please install it."
exit -1
fi
cd $(dirname $0)
if [ $TRAVIS_BRANCH ];then
branch=$TRAVIS_BRANCH
else
branch=$(git rev... | krishnak9/Portus | packaging/suse/make_spec.sh | Shell | apache-2.0 | 3,523 |
#!/usr/bin/env bash
###############################################################################
# Copyright 2017 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of... | xiaoxq/apollo | scripts/bootstrap.sh | Shell | apache-2.0 | 1,679 |
#!/bin/sh
set -e
mkdir -p bin
cd bin
cmake -D CMAKE_BUILD_TYPE=Release ../src/
make
| lazyparser/Nice2Predict | build.sh | Shell | apache-2.0 | 85 |
#!/bin/bash
#kill `ps ax|grep floodlight|grep -v grep|awk '{print }'`
WORKDIR=~/xin-flowmaster
java -jar ${WORKDIR}/topo-mininet/multiple.py > ${WORKDIR}/topo-mininet/mn.log 2>&1 &
| ndsc-mimic/MimicNOS | experiments/ctrl/start-mn.sh | Shell | apache-2.0 | 184 |
#!/bin/bash
h5fc test_hdf5.f90 -o test_hdf5
./test_hdf5
mpif90 test_mpi.f90 -o test_mpi
./test_mpi
HDF5_FLINKER=mpif90 HDF5_FC=mpif90 h5fc test_hdf5_mpi.f90 -o test_hdf5_mpi
./test_hdf5_mpi
| bluescarni/hyperion | deps/fortran/test.sh | Shell | bsd-2-clause | 193 |
#!/bin/bash
set -e
output_dir="`pwd`/freetypeiosbuild/"
min_iphoneos="6.0"
AR_POS="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar"
CC_POS="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
green='\033[38;5;82m'
ngreen='\033[0m'
in... | Tinytimrob/JFreeType2 | native/freetype-2.6/ios_build.sh | Shell | bsd-3-clause | 2,353 |
#!/bin/bash
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
#@ This script for up/downloading native client toolchains, etc..
#@ To manually inspect what is on the store servers point your
#@ bro... | endlessm/chromium-browser | native_client/buildbot/file_up_down_load.sh | Shell | bsd-3-clause | 7,534 |
#!/bin/sh
node --no-warnings ./shell.js "$@"
| PolymerLabs/arcs-live | shells/pipes-shell/node/deploy/source/serve.sh | Shell | bsd-3-clause | 46 |
#!/usr/bin/env sh
# Prints the CPU usage: user% sys% idle.
if [ "$PLATFORM" == "linux" ] ; then
cpu_line=$(top -b -n 1 | grep "Cpu(s)" )
cpu_user=$(echo "$cpu_line" | grep -Po "(\d+(.\d+)?)(?=%?\s?(us(er)?))")
cpu_system=$(echo "$cpu_line" | grep -Po "(\d+(.\d+)?)(?=%?\s?(sys?))")
cpu_idle=$(echo "$cpu... | haconeco/tmux-powerline | segments/cpu.sh | Shell | bsd-3-clause | 864 |
#!/bin/bash
set -e
if [ -f /usr/bin/apt ] ; then
echo "Using APT package manager"
apt-get -y update
curl --silent --location https://deb.nodesource.com/setup_4.x | bash -
apt-get -y install nodejs
elif [ -f /usr/bin/yum ] ; then
echo "Using YUM package manager"
yum -y update
y... | mmydland/azure-devtestlab | Artifacts/linux-install-nodejs/linux_install_nodejs_v1.sh | Shell | mit | 402 |
#!/bin/sh
# dns based ad/abuse domain blocking script
# written by Dirk Brenken (dev@brenken.org)
# This is free software, licensed under the GNU General Public License v3.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# prep... | OpenFest/openwrt-packages | net/adblock/files/adblock-update.sh | Shell | gpl-2.0 | 10,056 |
#!/bin/bash
#
# Copy all images from the given JOSM images path to the osm2go icon path
# and adjust their size
#
# Only process files that are actually referenced in presets.xml
# and elemstyles.xml
#
SIZE="24x24"
STYLE="styles/standard/"
if [ "$1" == "" ]; then
echo "Usage: $0 JOSM_IMAGES_PATH"
exit 0
fi
#... | AMDmi3/osm2go | data/icons/josm_import.sh | Shell | gpl-3.0 | 1,162 |
# Hey Emacs, this is a -*- shell-script -*- !!! :-)
get_src_socket ()
{
local proto="$1"
local dst_socket="$2"
local pid="$3"
local prog="$4"
local pat="^${proto}[[:space:]]+[[:digit:]]+[[:space:]]+[[:digit:]]+[[:space:]]+[^[:space:]]+[[:space:]]+${dst_socket//./\\.}[[:space:]]+ESTABLISHED[[:spac... | cdrttn/samba-regedit | ctdb/tests/complex/scripts/local.bash | Shell | gpl-3.0 | 4,444 |
#!/bin/bash
L1='a'
L2='a'
exec 6<./$1
while true;
do
read L1 <&6
read L2 <&6
if [ "$L1" == "" ] || [ "$L2" == "" ]; then
break
fi
echo "$L1$L2"
done
exec 6<&-
| qinfengling/Avalon-extras | test-data/connect-work-nonce.sh | Shell | unlicense | 180 |
#!/usr/bin/env bash
set -e
EXECUTABLE=""
for p in /bin /sbin /usr/bin /usr/sbin; do
if [[ -x ${p}/journalctl ]]; then
EXECUTABLE=${p}/journalctl
break 2
fi
done
if [[ -x ${EXECUTABLE} ]]; then
${EXECUTABLE} --output=json --boot --utc --no-pager
exit 0
else
gunzip -c mock_data/jou... | kjellski/platform-frontend | management-proxy/session-manager/bin/journalctl.sh | Shell | apache-2.0 | 420 |
#!/bin/bash
cd ../icons-dark
for a in *.png; do
convert $a -resize 19x19 ../icons-osx/$a
done
| laborautonomo/Mailpile | mailpile/contrib/gui/icons-osx/mk_icons.sh | Shell | apache-2.0 | 98 |
#!/bin/bash -x
# Copyright 2015 CyberTech Labs Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | iakov/qreal | plugins/robots/checker/scripts/build-checker-installer.sh | Shell | apache-2.0 | 9,004 |
#!/bin/bash
source "$(dirname "${BASH_SOURCE}")/../../hack/lib/init.sh"
trap os::test::junit::reconcile_output EXIT
# Cleanup cluster resources created by this test
(
set +e
oc delete all,templates --all
exit 0
) &>/dev/null
os::test::junit::declare_suite_start "cmd/deployments"
# This test validates deploymen... | danmcp/origin | test/cmd/deployments.sh | Shell | apache-2.0 | 14,411 |
#!/usr/bin/env bash
# Copyright 2017 Google Inc.
# All Rights Reserved.
#
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of... | arangodb/Jason | tests/googletest/ci/env-osx.sh | Shell | apache-2.0 | 1,852 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.