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
#
# Copyright (C) 2015 University of Oregon
#
# You may distribute under the terms of either the GNU General Public
# License or the Apache License, as specified in the LICENSE file.
#
# For more information, see the LICENSE file.
#
# Default Declarations
#
SCRIPT="$(basename "$0")"
onerror() {
ec... | OpenVnmrJ/OpenVnmrJ | src/scripts/ovjmiout.sh | Shell | apache-2.0 | 17,726 |
#!/usr/bin/env bash
#cleanup script for database package under supervisord
# shutdown all the services
if [ -f /etc/lsb-release ] && egrep -q 'DISTRIB_RELEASE.*16.04' /etc/lsb-release; then
for svc in contrail-database-nodemgr; do
chkconfig $svc off > /dev/null 2>&1
service $svc stop > /dev/null 2>... | Juniper/contrail-provisioning | contrail_provisioning/database/scripts/database-server-cleanup.sh | Shell | apache-2.0 | 486 |
#!/bin/bash
#
# This script provides end-to-end testing for APTrust's restore
# and delete features. To run this, run process_items.sh first.
# See the comment at the top of the process_items.sh script.
# Running process_items.sh, followed by this script, exercises
# ALL of APTrust's major features.
#
echo "Getting r... | APTrust/bagman | scripts/restore_items.sh | Shell | apache-2.0 | 1,232 |
#!/bin/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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | googleapis/java-document-ai | .kokoro/release/publish_javadoc.sh | Shell | apache-2.0 | 1,421 |
#!/bin/bash
# coding: utf-8
N=$(cat /DATA/CROPNET/DADOS/estac/estac_estacoes | wc -l)
#N=$(cat /DATA/CROPNET/DADOS/estac/INMET_ESTACOES.txt | wc -l)
N1=$(ls -1 /DATA/WRFOUT_ensembleGEFS/ | wc -l)
data_star=$(ls -1 /DATA/WRFOUT_ensembleGEFS/|head -1| awk -F/ '{print $1}')
data_end=$(ls -1 /DATA/WRFOUT_ensembleGEFS/|hea... | beneduzi/METEO | wrfout_inmet/shell/extrai_coluna_wrf_out.sh | Shell | apache-2.0 | 1,214 |
#!/bin/bash
#--------------------------------------------------------
echo 'Setting Up Networking'
cp /vagrant/etc/hosts /etc/hosts
perl -p -i -e 's/(PasswordAuthentication\s+)no/$1yes/' /etc/ssh/sshd_config
service sshd restart
#--------------------------------------------------------
echo "Installing Required Packa... | spivachuk/sovrin-node | environment/vagrant/training/IndyCluster-master/scripts/agent.sh | Shell | apache-2.0 | 1,349 |
#!/bin/bash
# see https://coderwall.com/p/9b_lfq
# see https://github.com/google/guava/blob/master/util/deploy_snapshot.sh
set -e -u
if [ "$TRAVIS_REPO_SLUG" == "cloudiator/pom" ] && \
[ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && \
[ "$TRAVIS_PULL_REQUEST" == "false" ] && \
[ "$TRAVIS_BRANCH" == "master" ];... | cloudiator/pom | util/deploy_snapshot.sh | Shell | apache-2.0 | 498 |
#USAGE: ./configure-wifi-rpi.sh [path to raspbian image] [wifi SSID] [wifi password]
CURRENT=`pwd`
FILENAME=$1
WHERE=/tmp/$(basename $FILENAME)
mkdir $WHERE
STARTSECTOR=$(file $FILENAME |awk 'BEGIN {RS="startsector"} NR >1 {print $0*512}' | tr ' ' "\n" | head -n 1)
echo "mounting image: $FILENAME ..."
sudo mount -... | iottly/iottly-device-agent-py | iottly-device-tools/enable-i2c.sh | Shell | apache-2.0 | 558 |
#!/bin/sh -eux
if dpkg-query -W -f='${Status}' systemd 2>/dev/null | cut -f 3 -d ' ' | grep -q '^installed$'; then
echo "==> Installing PAM module for systemd to prevent Vagrant/SSH hangs"
apt-get -y update
apt-get -y install libpam-systemd
fi
| dafyddj/debian | script/systemd.sh | Shell | apache-2.0 | 248 |
#!/usr/bin/env bash
# Copyright (C) Schweizerische Bundesbahnen SBB, 2016
# monitoring the remote configuration
HN=$(hostname)
BRANCH=config/$HN
WORKSPACE=/tmp/cimon_github/config
URL=$(cat ~/cimon/.update_config_url)
MYDIR=$(dirname $(readlink -f $0))
if [[ ! $URL ]]; then
echo "$(date) Could not find the update... | SchweizerischeBundesbahnen/cimon_setup | update_config/update_config.sh | Shell | apache-2.0 | 2,530 |
#!/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... | Fokko/incubator-airflow | scripts/ci/in_container/_in_container_utils.sh | Shell | apache-2.0 | 6,755 |
#!/bin/bash
source ../multiNodeUtils.sh
# Argument parsing
if [ "$1" = "jacoco" ]
then
JACOCO_ENABLED=true
else
JACOCO_ENABLED=false
fi
# Clean out any old sandbox, make a new one
OUTDIR=sandbox
rm -fr $OUTDIR; mkdir -p $OUTDIR
# Check for os
SEP=:
case "`uname`" in
CYGWIN* )
SEP=";"
;;
esac
... | h2oai/h2o-dev | h2o-scala/testMultiNode.sh | Shell | apache-2.0 | 3,089 |
rm -rf build/EC-EC2
./gradlew && ectool installPlugin build/EC-EC2/EC-EC2.jar && ectool promotePlugin EC-EC2-2.6.0.0 | electric-cloud/EC-EC2 | build.sh | Shell | apache-2.0 | 116 |
#!/bin/bash
SAVE_OUTPUT="$1"
set -e
if [ !"$TEST_STR" ]; then
TEST_STR=`cat test-input.txt`
fi
echo '=== TEST_STR - begin =============================================='
echo "$TEST_STR"
echo '=== TEST_STR - end ================================================'
echo
echo '=== original: ==='
echo $TEST_STR | ./sou... | mj41/perl-myths-busters | 2014-11-twitter-Illich/test.sh | Shell | artistic-2.0 | 489 |
#!/usr/bin/env bash
MASON_NAME=geojson
MASON_VERSION=0.3.1
MASON_HEADER_ONLY=true
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
https://github.com/mapbox/geojson-cpp/archive/v${MASON_VERSION}.tar.gz \
2014db07a5525628e43a9fec36809b04417e1cda
mason_extract_tar_gz
... | hydrays/osrm-backend | third_party/mason/scripts/geojson/0.3.1-hpp/script.sh | Shell | bsd-2-clause | 632 |
## 더이상 사용하지 않음 2018.8.20
## network-manager 를 설치하여 기능 사용
#라즈베리파이3 부터는 해당 코드가 있어야 지속적으로 네트워크 유지함. 부팅시에 원인 파악이 안된 에러때문에, 네트워크 연결이 안되는 경우가 있음
#아래 코드를 /etc/rc.local 에 넣어서 재부팅시에 네트워크 접속이 되도록 실행하여 문제
sudo systemctl restart dhcpcd
sudo systemctl daemon-reload
| jeonghoonkang/BerePi | setup/shell/network_keep_alive.sh | Shell | bsd-2-clause | 472 |
#!/bin/bash
gcc -Wall -fPIC -c wayland-wrapper.c -o libwayland-wrapper.o -lwayland-client
gcc -shared -o libwayland-wrapper.so libwayland-wrapper.o -lwayland-client
mv libwayland-wrapper.so ../Demos/SampleApp/bin/Debug/netcoreapp1.1/wayland-wrapper.so
rm *.o
| guytp/ztk | libwayland-wrapper/build.sh | Shell | bsd-2-clause | 260 |
#!/bin/bash -e
PY_VERSION=$1
MINICONDA_PATH=$2
if [[ "${PY_VERSION:0:1}" == "2" ]]; then
if [[ "${PY_VERSION}" != "2.7" ]]; then
echo "PY_VERSION was not set to 2.7"
exit 1
fi
# This saves us some downloading for this version
wget --quiet http://repo.continuum.io/miniconda/Miniconda-3.7... | bjodah/pycompilation | scripts/install_miniconda.sh | Shell | bsd-2-clause | 899 |
#!/bin/bash
DOTFILES_REPO=$(dirname "$0")
mkdir -vp ~/bin
cp -vr $DOTFILES_REPO/scripts/* ~/bin/
chmod +x ~/bin/*
cp -v $DOTFILES_REPO/dotfiles/bashrc ~/.my_bashrc
echo "source ~/.my_bashrc" >> ~/.bashrc
cp -v $DOTFILES_REPO/dotfiles/vimrc ~/.vimrc
cp -v $DOTFILES_REPO/dotfiles/screenrc ~/.screenrc
mkdir -vp ~/.s... | attilammagyar/dotfiles | setup.sh | Shell | bsd-2-clause | 1,143 |
#!/bin/bash
# Copyright (c) 2016, Codrin-Victor Poienaru <cvpoienaru@gmail.com>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copy... | cvpoienaru/EssentialDevPack | script/vars.sh | Shell | bsd-2-clause | 1,968 |
#!/bin/bash
function watch-example() {
while [ 1 ]
do
resourcerer-example &
PID="$!"
sleep 0.1
curl 'http://localhost:5000/'
inotifywait -e modify -e attrib "$(which resourcerer-example)"
kill "$!"
sleep 1
done
}
function watch-build() {
stack in... | tdammers/resourcerer | run-devel.sh | Shell | bsd-3-clause | 397 |
#!/bin/bash
# Copyright (c) 2010-2012, Contrail consortium.
# All rights reserved.
#
# Redistribution and use in source and binary forms,
# with or without modification, are permitted provided
# that the following conditions are met:
#
# 1. Redistributions of source code must retain the
# above copyright notice, ... | ConPaaS-team/conpaas | conpaas-services/scripts/create_vm/legacy/ec2-setup-new-vm-image.sh | Shell | bsd-3-clause | 11,800 |
#!/bin/sh
# Copyright (c) 2013, Daynix Computing LTD (www.daynix.com)
# All rights reserved.
#
# Maintained by oss@daynix.com
#
# This file is a part of VirtHCK, please see the wiki page
# on https://github.com/daynix/VirtHCK/wiki for more.
#
# This code is licensed under standard 3-clause BSD license.
# See file LICE... | sameehj/VirtHCK | hck_world_bridge_ifup.sh | Shell | bsd-3-clause | 443 |
#!/usr/bin/env bash
#Get generic function
. common.sh
echo "Install needed package.This may take some time..."
sudo yum install -y -q git python-virtualenv python-devel memcached gcc gcc-c++
echo "Install mysql..."
sudo yum install -y -q mysql-server mysql mysql-devel
sudo /etc/init.d/mysqld start
echo "Setup memca... | xantage/code | scripts/centos.sh | Shell | bsd-3-clause | 505 |
#!/bin/bash
# Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details.
# All rights reserved. Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# Fast fail the script on failures.
set -e
source ./tool/env-set.sh
# Verify that the libraries are error ... | chalin/stagehand | tool/travis.sh | Shell | bsd-3-clause | 1,628 |
#!/bin/bash -e
IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img"
on_chroot << EOF
/etc/init.d/fake-hwclock stop
hardlink -t /usr/share/doc
EOF
if [ -d ${ROOTFS_DIR}/home/pi/.config ]; then
chmod 700 ${ROOTFS_DIR}/home/pi/.config
fi
rm -f ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache
rm -f ${ROOTFS_D... | jsbkje/CustardPi | export-image/03-finalise/01-run.sh | Shell | bsd-3-clause | 1,182 |
#!/bin/sh
MODEL=$1
INPUT=$2/valid_src.txt
GOLD=$2/valid_target.txt
OUT=out-$MODEL.txt
python translate_all.py $MODEL.npz $INPUT $OUT --all
python convert_symbols.py $INPUT $OUT
./multi-bleu.perl $GOLD.nounk < $OUT.nounk &> bleu-$MODEL.out
python report.py $INPUT $OUT $GOLD $MODEL
| vineetm/dl4mt-material | session2/evaluate.sh | Shell | bsd-3-clause | 285 |
# Add any additional setup tasks here
chmod 600 /etc/ssl/private/ssl-cert-snakeoil.key
# These tasks are run as root
CONF="/etc/postgresql/9.5/main/postgresql.conf"
# Restrict subnet to docker private network
echo "host all all 172.17.0.0/16 md5" >> /etc/postgresql/9.5/main/pg... | jorgejesus/inspire-geoserver | postgis/setup.sh | Shell | mit | 1,245 |
#!/bin/bash
./build_lin.sh && cd ./build/lin && ./uni
| ncp1402/qcsvlog | repo/build_lin_run.sh | Shell | mit | 55 |
source ./library-symlinks.sh
remove_lib_symlinks 'schema'
| eventide-project/schema | remove-lib-symlinks.sh | Shell | mit | 59 |
echo "Unzipping..."
for f in data/*.zip; do
echo "$f"
unzip $f -d data
done
rm data/*.zip
echo "Converting to unix format"
for f in data/*.csv; do
echo "$f"
dos2unix $f
done
echo "Merging datasets"
for i in {1..12}; do
echo "$i"
paste -d, "data/trip_data_$i.csv" <(cut -d',' -f5-11 "data/trip_fare_$i.csv"... | semartin/TaxiDataTools | extract_data.sh | Shell | mit | 429 |
#!/bin/bash
SELENIUM_VERSION="2.44.0"
SERVER_IMAGE="singpath/verifier-server"
PYTHON_IMAGE="singpath/verifier-python3"
JAVASCRIPT_IMAGE="singpath/verifier-javascript"
ANGULARJS_IMAGE="singpath/verifier-angularjs"
ANGULARJS_STATIC_IMAGE="singpath/verifier-angularjs-static"
SELENIUM_IMAGE="selenium/hub"
SELENIUM_PHANTO... | blueset/docker-code-verifier | server/bin/startup_setup.sh | Shell | mit | 1,260 |
#!/bin/sh
# Detects which OS and if it is Linux then it will detect which Linux
# Distribution.
#
# Copied from http://linuxmafia.com/faq/Admin/release-files.html and available under CC BY-SA 4.0.
OS=`uname -s`
REV=`uname -r`
MACH=`uname -m`
GetVersionFromFile()
{
VERSION=`cat $1 | tr "\n" ' ' | sed s/.*VERSION.*=\... | musoke/dotfiles | bin/.distro_determine.sh | Shell | mit | 1,420 |
################################################################################
# When the bin/init command is run, the config variables are collected and
# written to the config.sh file.
#
# This file is used to load the current config variables and store them in
# temporary script variables.
#
# Prefix the variable ... | druleton/druleton | templates/config/init/config_load_current.sh | Shell | mit | 835 |
#!/bin/bash
# This file deletes an index from the system
# The index directory name is a required parameter to the script.
# If you are unsure about the directory name run list-db.sh to view the complete listing of all indexes.
if [ $# -ne 1 ]
then
echo "Error in $0 - Invalid Argument Count"
echo "Syntax: $0... | JPLaska/nlp-tree | tools/fangorn/delete-index.sh | Shell | gpl-2.0 | 797 |
PARSEC_WORKLOAD="bodytrack"
. $SHELLPACK_TOPLEVEL/drivers/driver-parsec-common.sh
| gormanm/mmtests | drivers/driver-parsec-bodytrack.sh | Shell | gpl-2.0 | 82 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2015-2017 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distribu... | fasterthanlime/tup-fuseless | test/t2187-tupdefault.sh | Shell | gpl-2.0 | 1,844 |
#!/bin/sh
test_description='git log'
. ./test-lib.sh
. "$TEST_DIRECTORY/lib-gpg.sh"
. "$TEST_DIRECTORY/lib-terminal.sh"
test_expect_success setup '
echo one >one &&
git add one &&
test_tick &&
git commit -m initial &&
echo ichi >one &&
git add one &&
test_tick &&
git commit -m second &&
git mv one ichi &... | lvjp/git | t/t4202-log.sh | Shell | gpl-2.0 | 38,520 |
#!/bin/bash
# change owner:group of uploaded file to sg:www-data
# (it is originally uploaded as www-data:www-data)
chown sg:www-data "$1"
| jbrzusto/motusServer | inst/scripts/chown_sg_www-data.sh | Shell | gpl-2.0 | 140 |
#!/bin/bash
# Example for running
docker run -t -i freetype /bin/bash
| ianmiell/OLD-shutitdist | freetype2/bin/run.sh | Shell | gpl-2.0 | 71 |
# ----------------------------------------------------------------------------
# Renomeia arquivos do diretório atual, arrumando nomes estranhos.
# Obs.: Ele deixa tudo em minúsculas, retira acentuação e troca espaços em
# branco, símbolos e pontuação pelo sublinhado _.
# Opções: -n apenas mostra o que será feit... | funcoeszz/funcoeszz | zz/zzarrumanome.sh | Shell | gpl-2.0 | 3,687 |
#!/bin/sh
CWD=$(pwd)
# This is the username for the github project.
GITUSER=videolan
# This is the repository name on github.
GITPROJECT=vlc
# Get the commit history.
wget -O ${CWD}/tmp -q https://github.com/${GITUSER}/${GITPROJECT}/commits/master
# Get the date of last commit.
GIT_DATE=`grep -m1 "svg>Commits on" ${C... | mkslack/slackbot | buildtools/xqt5/vlc-git/get_git_info.sh | Shell | gpl-3.0 | 1,393 |
#!/bin/sh
#------------------------------------------------------
# Script to extrac a database with demo values.
# Note: "dialog" tool need to be available if no parameter provided.
#
# Regis Houssin - regis.houssin@capnetworks.com
# Laurent Destailleur - eldy@users.sourceforge.net
#-----------------------------... | ttingchan/MerchanDolibarr | dev/initdata/savedemo.sh | Shell | gpl-3.0 | 5,833 |
#!/bin/bash
#Double check if Pentaho is installed at all.
if [ ! -d "/opt/pentaho/server/data-integration-server" ]; then
#Install Pentaho DI Server at version 6.0.1.0-386
# Components to be installed
COMPONENTS="pdi-ee"
PLUGINS=""
PENTAHO_VERSION="6.0.1.0"
PENTAHO_PATCH="386"
PENTAHO_HOME="/opt/penta... | FuriousD/pentaho-di | scripts/install_pentaho_di_6_0_1_0.sh | Shell | gpl-3.0 | 2,954 |
#!/bin/bash
result=0
while [ $result -eq 0 ]; do
app_pid=`pidof $1`
result=$?
if [ $result -eq 0 ]; then
kill -s INT $app_pid
sleep 1
fi
done
result=0
for i in 1 2 3 4 5; do
screen -S `basename "$1"` -Q select . >/dev/null
result=$?
if [ $result -ne 0 ] ; then
cd `dirname "$1"`
screen -d ... | robstradling/certwatch_db | jobs/restart_app_monitor.sh | Shell | gpl-3.0 | 466 |
#!/bin/bash
# Image Quality Assessment Test
# Copyright (C) 2013 Steve Ward
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the ho... | planet36/iqatest | images/src/segregate-distortion-metrics.sh | Shell | gpl-3.0 | 3,465 |
ocamlbuild -use-ocamlfind bouncr.native
./bouncr.native
| jonathanyc/Bouncr | run.sh | Shell | gpl-3.0 | 56 |
#!/usr/bin/env bash
# add git revision to autojump
# Fail silently if there is no git directory, ie. if the user installed from a regular download
if [[ ! -d .git ]]
then
exit
fi
gitrevision=`git describe`
if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then
gitrevision=$gitrevision"-dirty"
fi... | xeor/autojump | git-version.sh | Shell | gpl-3.0 | 406 |
#!/usr/bin/env bash
apt-get clean
# Fill drive with zeroes to help compression
dd if=/dev/zero of=/filljunk bs=1M
rm -f /filljunk
sync
rm -f ~/.bash_history
| GoSecure/malboxes | malboxes/scripts/debian/cleanup.sh | Shell | gpl-3.0 | 160 |
#!/bin/bash
# Cisc0wn - The Cisco SNMP 0wner.
# Daniel Compton
# www.commonexploits.com
# contact@commexploits.com
# Twitter = @commonexploits
# 29/05/2012
# Requires metasploit, snmpwalk and john the ripper - suggest backtrack as built in (tested on BT5)
VERSION="1.8" # updated 16/03/15 by darren dot mcdonald @ nccgro... | nccgroup/cisco-SNMP-enumeration | cisc0wn.sh | Shell | agpl-3.0 | 34,965 |
#!/bin/sh -x
AROBOTDIR=$(pwd)/..
. $AROBOTDIR/funcs/common
. $AROBOTDIR/funcs/task
. $AROBOTDIR/funcs/license
#cp tasks/test-wine.task ./try.task
cp tasks/test-wine-etersoft-enterprise.task ./try.task
load_task ./try.task
create_license test.lic $AROBOTDIR/dsa/wine-etersoft.dsa
| vitlav/korinf | robot/test/test-license.sh | Shell | agpl-3.0 | 283 |
source common.sh
clearStore
max=500
reference=$NIX_STORE_DIR/abcdef
touch $reference
(echo $reference && echo && echo 0) | nix-store --register-validity
echo "making registration..."
set +x
for ((n = 0; n < $max; n++)); do
storePath=$NIX_STORE_DIR/$n
echo -n > $storePath
ref2=$NIX_STORE_DIR/$((n+1))
... | edolstra/nix | tests/referrers.sh | Shell | lgpl-2.1 | 786 |
#!/bin/sh
LOG=start-server.log
echo "Starting Weblogic Server $*..." | tee $LOG
DIR=`dirname $0`
echo "mvn -X -f $DIR/wls-pom.xml -Pstart initialize -DtimeoutSecs=90 $*"
mvn -X -f $DIR/wls-pom.xml -Pstart initialize -DtimeoutSecs=90 $* 2>&1 | tee -a $LOG
| etexier/r2m-cli | tests/src/test/resources/scripts/start-server.sh | Shell | apache-2.0 | 255 |
#!/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... | nathanielvarona/airflow | scripts/ci/libraries/_script_init.sh | Shell | apache-2.0 | 2,040 |
#
# DIST.sh
#
# David Janes
# IOTDB
# 2015-02-10
#
PACKAGE=homestar-smartthings
DIST_ROOT=/var/tmp/.dist.$$
export COPYFILE_DISABLE=1
if [ ! -d "$DIST_ROOT" ]
then
mkdir "$DIST_ROOT"
fi
echo "=================="
echo "NPM Packge: $PACKAGE"
echo "=================="
(
NPM_DST="$DIST_ROOT/$PACKAGE"
... | dpjanes/homestar-smartthings | DIST.sh | Shell | apache-2.0 | 954 |
#!/bin/bash
set -e
set -x
# Identify OS
UNAME_OUT="$(uname -s)"
case "${UNAME_OUT}" in
Linux*) OS=linux;;
Darwin*) OS=osx;;
*) OS="${UNAME_OUT}"
echo "Unknown OS: ${OS}"
exit;;
esac
echo "Tests started for ${OS}..."
cp $TEST_PACKAGE yosys
cd yosys
tar xvf $... | litex-hub/litex-conda-eda | syn/yosys/test.sh | Shell | apache-2.0 | 530 |
#!/bin/bash
#
# Copyright 2015 Mirantis, Inc.
#
# 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 appl... | sbrimhall/fuel-plugin-external-zabbix | deployment_scripts/puppet/modules/plugin_zabbix/files/scripts/haproxy.sh | Shell | apache-2.0 | 3,208 |
#!/bin/sh
java -cp target/lib/*:target/classes ProducerMember | SoCe/SoCe | Server/thirdparty/hazelcast/hazelcast-3.3.3/code-samples/distributed-collections/boundedblockingqueue/start-producer.sh | Shell | apache-2.0 | 62 |
#!/bin/bash
#
#
# 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 to in writing, software
# dis... | pagespeed/mod_pagespeed | pagespeed/system/system_tests/forbid_filters.sh | Shell | apache-2.0 | 3,212 |
node server.js --port=8080 --noAuth
| TeamHG-Memex/Datawake | ForensicDemoServer/start.sh | Shell | apache-2.0 | 36 |
#!/usr/bin/env bash
# Copyright 2017 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 applicab... | jlowdermilk/test-infra | experiment/bump_e2e_image.sh | Shell | apache-2.0 | 2,296 |
#!/usr/bin/env bash
set -e
[ $# == 1 ] || { echo "usage: $0 version" && exit 1; }
VER=$1
[[ "${VER}" =~ ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$ ]] || {
echo "malformed version: \"${VER}\""
exit 2
}
if test -n "$(git ls-files --others | \
grep --invert-match '\(gopath/src/github.com/coreos/container-linux-co... | coreos/fuze | release.sh | Shell | apache-2.0 | 623 |
#!/bin/bash
ENAME=$0
usage()
{
cat << EOF
Usage: $ENAME OPTION
-x Clean git repository before preparing release
EOF
}
while getopts "x" opt; do
case "$opt" in
x )
git clean -ffdx
;;
? )
usage
exit 1
;;
esac
done
logfile=release.$(date +%y-%m-%d-%T).log
echo "Logging to ${logfile}"
# TODO: Handle ta... | Libauxv/libauxv | make-release.sh | Shell | bsd-3-clause | 2,111 |
#!/bin/bash
#
# 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 to in writing, software
# distrib... | jonathangizmo/HadoopDistJ | hadoop-common-project/hadoop-kms/src/main/sbin/kms.sh | Shell | mit | 1,988 |
#!/usr/bin/env bash
myvar="a b c"
if [ "$myvar" = "a b c" ]
then
echo "myvar is equal to 'a b c'"
else
echo "myvar is not equal to 'a b c '"
fi
if [ $myvar = "a b c" ] # two many arguments, for myvar is a multi-word string and will replace, to be treated as many params
then
echo "myvar is equal to 'a b c'"
else
... | DeercoderPractice/shell | recap/wrong_str_compare.sh | Shell | mit | 360 |
# This shell script fragment is sourced by git-rebase to implement
# its interactive mode. "git rebase --interactive" makes it easy
# to fix up commits in the middle of a series and rearrange commits.
#
# Copyright (c) 2006 Johannes E. Schindelin
#
# The original idea comes from Eric W. Biederman, in
# http://article.... | davidad/git | git-rebase--interactive.sh | Shell | gpl-2.0 | 27,939 |
#!/bin/sh
############################################################################################
## Copyright 2003, 2015 IBM Corp ##
## ##
## Redistribution and use in so... | rajashreer7/autotest-client-tests | linux-tools/grep/grep.sh | Shell | gpl-2.0 | 3,067 |
#!/bin/sh
$EXTRACTRC `find . -name \*.rc` `find . -name \*.ui` >> rc.cpp
$XGETTEXT `find . -name \*.cc -o -name \*.cpp -o -name \*.h` -o $podir/kdevtestview.pot
rm -f rc.cpp
| mali/kdevplatform | plugins/testview/Messages.sh | Shell | gpl-2.0 | 174 |
#!/bin/sh
# Script to generate all required files for `configure' when
# starting from a fresh repository checkout.
run()
{
binary_name="$1"
shift
args="$@"
echo -n "Running ${binary_name}... "
binary_path=$( which ${binary_name} 2>/dev/null )
if [ -z "$binary_path" ] || [ ! -x "$binary_path" ] ; then
... | viveris/iprohc | autogen.sh | Shell | gpl-2.0 | 1,127 |
#!/bin/sh
if [ -z "$RESUME" ]; then
RESUME="resume"
fi
if [ -z "$BOOT_DIR" ]; then
BOOT_DIR="/boot"
fi
if [ -z "$INITRD_FILE" ]; then
INITRD_FILE="$BOOT_DIR/resume-initrd"
fi
if [ -z "$MOUNT_POINT" ]; then
MOUNT_POINT="/mnt"
fi
if [ -f "$RESUME" -a -f "$INITRD_FILE" -a -d "$MOUNT_POINT" ]; then
cp "$INITRD_FILE"... | bircoph/suspend | scripts/install-resume.sh | Shell | gpl-2.0 | 533 |
#!/bin/bash
set -ex
set -eo pipefail
DEFCONFIGS=`(cd openpower/configs; ls -1 *_defconfig)`
if [ -z "$1" or ! -d "$1" ]; then
echo "No output directory specified"
exit 1;
fi
if [ -z "$CCACHE_DIR" ]; then
CCACHE_DIR=`pwd`/.op-build_ccache
fi
shopt -s expand_aliases
source op-build-env
for i in $DEFCONFIGS; do
... | jimsmc/op-build | ci/build-all-defconfigs.sh | Shell | gpl-2.0 | 817 |
#!/bin/sh
# Copyright (C) 1999-2005 ImageMagick Studio LLC
#
# This program is covered by multiple licenses, which are described in
# LICENSE. You should have received a copy of LICENSE with this
# package; otherwise see http://www.imagemagick.org/script/license.php.
#
# Test for '${CONVERT}' utility.
#
set -e # Exit... | atmark-techno/atmark-dist | user/imagemagick/utilities/tests/shave.sh | Shell | gpl-2.0 | 439 |
#!/bin/bash
cd "$(dirname "$0")"
if [[ $EUID -ne 0 ]]; then
./scripts/elementaryplus-installer.py
else
echo "This script mustn't be run as root!" 1>&2
echo "Please run again as normal user." 1>&2
fi
exit
| GreyAsteroid/elementaryPlus | install.sh | Shell | gpl-3.0 | 214 |
#!/bin/bash
PROFILE=Release
if [ ! -z $1 ]; then
PROFILE=$1
fi
NPROC=$(nproc)
if [ ! -z $2 ]; then
NPROC=$2
fi
echo "Building glslang."
mkdir -p external/glslang-build
cd external/glslang-build
cmake ../glslang -DCMAKE_BUILD_TYPE=$PROFILE -G"Unix Makefiles"
make -j$NPROC
cd ../..
echo "Building SPIRV-Tools."
mkdi... | GregorR/RetroArch | deps/SPIRV-Cross/build_glslang_spirv_tools.sh | Shell | gpl-3.0 | 493 |
#!/bin/bash -eu
# Copyright 2021 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 agreed... | skia-dev/oss-fuzz | projects/vlc/build.sh | Shell | apache-2.0 | 2,200 |
{%- from 'krb5/settings.sls' import krb5 with context %}
{%- set realm = krb5.realm -%}
#!/bin/bash
export KRB5_CONFIG={{ pillar.krb5.conf_file }}
rm -rf impala.keytab
(
echo "addprinc -randkey impala/{{ grains.fqdn }}@{{ realm }}"
echo "xst -k impala-unmerged.keytab impala/{{ grains.fqdn }}@{{ realm }}"
) | kadmin -p ... | stackdio-formulas/cdh5-formula | cdh5/impala/security/generate_keytabs.sh | Shell | apache-2.0 | 569 |
#!/bin/bash
FN="pd.hugene.2.1.st_3.14.1.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/annotation/src/contrib/pd.hugene.2.1.st_3.14.1.tar.gz"
"https://bioarchive.galaxyproject.org/pd.hugene.2.1.st_3.14.1.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-pd.hugene.2.1.st/bioconductor-pd.h... | bebatut/bioconda-recipes | recipes/bioconductor-pd.hugene.2.1.st/post-link.sh | Shell | mit | 1,459 |
./rop-tool-Linux-x86_64 dis ./binary-samples/elf-Linux-ARM64-bash -l 0x60
| liorvh/rop-tool | test/test172.sh | Shell | gpl-3.0 | 74 |
#!/usr/bin/env bash
set -e
# This script builds various binary artifacts from a checkout of the docker
# source code.
#
# Requirements:
# - The current directory should be a checkout of the docker source code
# (https://github.com/docker/docker). Whatever version is checked out
# will be built.
# - The VERSION fil... | luxas/docker | hack/make.sh | Shell | apache-2.0 | 9,528 |
#!/bin/bash
FN="celegansprobe_2.18.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.13/data/annotation/src/contrib/celegansprobe_2.18.0.tar.gz"
"https://bioarchive.galaxyproject.org/celegansprobe_2.18.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-celegansprobe/bioconductor-celegansprobe_2.... | phac-nml/bioconda-recipes | recipes/bioconductor-celegansprobe/post-link.sh | Shell | mit | 1,438 |
#! /bin/sh
# Copyright (C) 2001-2015 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program ... | hika-server/automake | t/substtarg.sh | Shell | gpl-2.0 | 1,388 |
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$DIR/setup_test_env.bash"
blender --background $BLEND/scene_instancing.blend --python $PYSCRIPT -- \
$JSON --vertices --faces --scene --materials --enablePrecision \
--precision 4 --embedGeometry --indent
makereview $@ --tag $(tagname... | ChainedLupine/ludum-dare-24-jam-entry | web/three.js/utils/exporters/blender/tests/scripts/test_scene_instancing.bash | Shell | gpl-2.0 | 322 |
#!/bin/bash
# Change this with your PPA key ID
KEY_ID="19AD31B8"
EXPORT_DIR=../debs-ppa/
[ -d $EXPORT_DIR ] || mkdir $EXPORT_DIR
rm -rf $EXPORT_DIR/zmoddev
svn export ../moddev $EXPORT_DIR/zmoddev
cd $EXPORT_DIR/zmoddev
./autogen.sh
dpkg-buildpackage -k$KEY_ID
cd -
rm -rf $EXPORT_DIR/zmoddev
| claudm/zentyal41 | extra/scripts/zmoddev-ppa-build.sh | Shell | gpl-2.0 | 301 |
#!/bin/sh
# ensure that touch f; ln -T f no-such-file/ does not mistakenly succeed
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eith... | mmayer/coreutils | tests/ln/slash-decorated-nonexistent-dest.sh | Shell | gpl-3.0 | 1,005 |
#!/bin/sh
# test for readlink mode.
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your opti... | mmayer/coreutils | tests/readlink/rl-1.sh | Shell | gpl-3.0 | 1,257 |
#!/usr/bin/env bash
# leader host for startup purposes only
# (once running, all nodes are the same -- no leaders)
STARTUPLEADERHOST="localhost"
# list of cluster nodes separated by commas in host:[port] format
SERVERS="localhost"
# WEB SERVER variables
WEB_PORT=8081
# find voltdb binaries
if [ -e ../../bin/voltdb ]... | deerwalk/voltdb | examples/metrocard/run.sh | Shell | agpl-3.0 | 3,197 |
#!/bin/bash
#
# Copyright 2015 Google Inc. 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 required by applic... | charlieaustin/bazel | src/test/shell/bazel/bazel_test_test.sh | Shell | apache-2.0 | 5,081 |
#!/bin/bash
rm output.txt
./node_modules/.bin/babel src --out-dir . && node parse.js
LC_ALL=C sort output.txt -o output.txt
| souravbadami/zeroclickinfo-fathead | lib/fathead/swiftdocs/swift/parse.sh | Shell | apache-2.0 | 125 |
#!/bin/bash
#
# The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
# (the "License"). You may not use this work except in compliance with the License, which is
# available at www.apache.org/licenses/LICENSE-2.0
#
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR... | Alluxio/alluxio | integration/kubernetes/operator/alluxio/cmd/webhook/check-mount/check-mount.sh | Shell | apache-2.0 | 981 |
#!/bin/sh
# Base16 London Tube - Shell color setup script
# Jan T. Sott
if [ "${TERM%%-*}" = 'linux' ]; then
# This script doesn't support linux console (use 'vconsole' template instead)
return 2>/dev/null || exit 0
fi
color00="23/1f/20" # Base 00 - Black
color01="ee/2e/24" # Base 08 - Red
color02="00/85/3e" ... | jasonszhao/dotfiles | shell/base16-shell/base16-londontube.light.sh | Shell | mit | 3,828 |
#!/bin/sh
JAVA_HOME=/opt/jdk1.6.0_16
BASE_DIR=`pwd`
CLASSPATH="$BASE_DIR/config:$BASE_DIR/og-bloomberg.jar"
# add lib to classpath
for file in lib/*
do
CLASSPATH="$CLASSPATH:$BASE_DIR/$file"
done
JAVA_OPTS="-Xmx512m -XX:-UseGCOverheadLimit -Dlogback.configurationFile=$BASE_DIR/config/bbgtickwriter-logback.xml"
$J... | McLeodMoores/starling | projects/bloomberg/scripts/bbg-tick-collector.sh | Shell | apache-2.0 | 427 |
#!/bin/sh
# *****************************************************************************
#
# Pentaho Data Integration
#
# Copyright (C) 2017 by Hitachi Vantara : http://www.pentaho.com
#
# *****************************************************************************
#
# Licensed under the Apache License, Version 2.0 ... | SergeyTravin/pentaho-kettle | assemblies/static/src/main/resources/spark-app-builder.sh | Shell | apache-2.0 | 1,195 |
#####################################################
# iTerm2 plugin for oh-my-zsh #
# Author: Aviv Rosenberg (github.com/avivrosenberg) #
#####################################################
###
# This plugin is only relevant if the terminal is iTerm2 on OSX.
if [[ "$OSTYPE" == darwin* ]] && [... | okubax/dotfiles | zsh/oh-my-zsh/plugins/iterm2/iterm2.plugin.zsh | Shell | gpl-3.0 | 2,172 |
#!/bin/sh
# Hack because of
# http://rt.cpan.org/Public/Bug/Display.html?id=43060
perl Makefile.PL
make manifest
make dist
gunzip < Ocsinventory-Agent-0.0.10beta3.tar.gz | tar xf -
perl -i -pe 's/^exit;//' Ocsinventory-Agent-0.0.10beta3/inc/BUNDLES/libwww-perl-5.823/Makefile.PL
rm Ocsinventory-Agent-0.0.10beta3.tar.gz... | OCSInventory-NG/UnixAgent | tools/makedist.sh | Shell | gpl-2.0 | 435 |
#!/usr/bin/env bash
echo "========================================================================"
echo "HyperPython: SerizalizedCellsWriter test"
echo "========================================================================"
SCRIPT_DIR=`dirname $0`
echo "SCRIPT_DIR is $SCRIPT_DIR"
echo "PYTHONPATH is $PYTHONPATH"... | nkhuyu/hypertable | src/cc/HyperPython/tests/run-writer.sh | Shell | gpl-3.0 | 482 |
#!/bin/sh
DIR="$1"
shift
if [ -n "$DIR" ] ; then
DIR="$DIR"/
fi
exec $CC -M "$@" | sed -e "s@^\(.*\)\.o:@$DIR\1.d $DIR\1.o $DIR\1-server.o $DIR\1.po:@"
| Goon83/SALB | maint/depend.sh | Shell | lgpl-2.1 | 156 |
#!/bin/bash
#test /api/jobs invalid project parameter
DIR=$(cd `dirname $0` && pwd)
source $DIR/include.sh
# now submit req
runurl="${APIURL}/jobs"
echo "TEST: project parameter invalid for /api/jobs..."
params="project=DNEProject"
$SHELL $SRC_DIR/api-expect-error.sh "${runurl}" "${params}" "project does not exi... | rophy/rundeck | test/api/test-jobs-invalid-project.sh | Shell | apache-2.0 | 379 |
#!/bin/bash
cd application
pip install -r requirements.txt -t lib
gcloud app create
gcloud app deploy
PROJECT=$(gcloud config get-value project)
echo "Visit https://PROJECT-ID.appspot.com/ e.g. https://${PROJECT}.appspot.com"
| turbomanage/training-data-analyst | quests/endtoendml/labs/serving/deploy.sh | Shell | apache-2.0 | 229 |
#!/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 "Licens... | anishek/hive | standalone-metastore/metastore-server/src/main/resources/saveVersion.sh | Shell | apache-2.0 | 3,107 |
#!/bin/bash
args="$@"
npm i && \
eval "node memory.js $args" && \
eval "npm test -- $args"
| subbu1435/subramanyam | tests/run.sh | Shell | mit | 93 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.