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 2014 Gaurav Kumar. Apache 2.0
# Recipe for Fisher/Callhome-Spanish
# Made to integrate KALDI with JOSHUA for end-to-end ASR and SMT
. cmd.sh
. path.sh
mfccdir=`pwd`/mfcc
set -e
stage=1
# call the next line with the directory where the Spanish Fisher data is
# (the values below are just a... | michellemorales/OpenMM | kaldi/egs/fisher_callhome_spanish/s5/run.sh | Shell | gpl-2.0 | 11,845 |
#!/bin/bash
#CXX='/usr/bin/g++'
./configure --enable-sse --enable-ffmpeg --enable-mp3 --enable-sndfile
| claytonotey/sbsmsview | build/macosx.sh | Shell | gpl-2.0 | 105 |
#!/bin/bash
# Simple script to list the differences between two hugepagecapability results
# Print usage of command
usage() {
echo "diff-hugepagecapability.sh (c) Mel Gorman 2005"
echo
echo "Usage: diff-hugepagecapability.sh File1 File2"
echo " -h, --help Print this help message"
echo
exit
}
FILE1=... | kosaki/vmregress | bin/diff-hugepagecapability.sh | Shell | gpl-2.0 | 3,286 |
#
# $Id: build-checklanguage.sh,v 1.1 2015/02/05 22:25:27 harry Exp $
#
#
# Prüft, ob die Sprachdateien konsitent sind. D.h. ob die Schlüssel der
# einer Sprachdatei $1 auch in der Sprachdatei $2 enthalten ist
#
# {LANG_FILE_DIRECTORY}/language/${1}/${1}.${FILE}${EXTENTION}.ini
# {LANG_FILE_DIRECTORY}/language/${2}... | harryklein/pkg_mosimage | com_mosimage/bin/build-checklanguage.sh | Shell | gpl-2.0 | 2,554 |
#!/usr/bin/env bash
#== Variables ==
#== Functionality ==
webserver_install() {
apt-get install -y \
apache2 php5 \
libapache2-mod-php5 \
php5-cli php5-common php5-dev \
php5-pgsql php5-sqlite php5-gd \
php5-curl php5-memcached \
php5-imap php5-mysqlnd php5-intl \
php5-xmlrpc php5-xsl ph... | trsenna/gozma14 | vagrant/provision/provision-02--webserver.sh | Shell | gpl-2.0 | 2,000 |
#!/bin/sh
# input parameter 1 is the base folder
# input parameter 2 is the output xml file
BASE_FOLDER=${1:-content}
OUTPUT_NAME=${2:-duplicates}
du -a -b -S $BASE_FOLDER | awk -f ci2.awk | sort - | awk -f ci3.awk >${OUTPUT_NAME}.xml
| NigelWhitley/duplicates | ci_s.sh | Shell | gpl-2.0 | 236 |
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
check() {
local _rootdev
# if we don't have dmraid installed on the host system, no point
# in trying to support it in the initramfs.
type -P dmraid >/dev/null || return 1
[[ $... | zfsonlinux/dracut | modules.d/90dmraid/module-setup.sh | Shell | gpl-2.0 | 1,976 |
#!/bin/sh
# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
#
# 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 2 of the License.
#
# This program is distribu... | hasegaw/ref-mysql-labs-tplc | storage/ndb/test/crund/scripts/stop_mysqld.sh | Shell | gpl-2.0 | 1,177 |
#!/bin/bash
eeglraw | dieharder -g 200 -a
| aquila62/eegl | cplusplus/tstdie.sh | Shell | gpl-2.0 | 42 |
#!/bin/bash
usage(){
echo "It's your responsibility to be sure the buffer size specified in the"
echo "passed in conf file is the same as the value passed in for -b here (which"
echo "is only used for naming the output priors file but could still be confusing."
echo ""
echo "-b : buffer size (... | Hickerlab/msBayes | scripts/make_priors.sh | Shell | gpl-2.0 | 2,075 |
#!/bin/sh
convert -resize 62x62 icon-196.png windows-phone/icon-62-tile.png
convert -resize 48x48 icon-196.png windows-phone/icon-48.png
convert -resize 173x173 icon-196.png windows-phone/icon-173-tile.png
convert -resize 57x57 icon-196.png ios/icon-57.png
convert -resize 113x113 icon-196.png ios/icon-57-2x.png
conver... | bmatusiak/repairshopr-mobile-app | www/res/icon/iconbuild.sh | Shell | gpl-2.0 | 1,069 |
convert images/OCS-291.png -crop 1649x4962+0+0 +repage images/OCS-291-A.png
convert images/OCS-291.png -crop 1681x4962+1649+0 +repage images/OCS-291-B.png
#/OCS-291.png
#
#
#
| jonnymwalker/Staroslavjanskij-Slovar | scripts/middlesplit.OCS-291.sh | Shell | gpl-2.0 | 175 |
#!/bin/sh
mkdir -p po m4
echo "gettextize..."
echo "no" | gettextize --force --copy --no-changelog
echo "intltoolize..."
intltoolize --copy --force --automake
echo "libtoolize"
libtoolize
echo "aclocal..."
aclocal -I m4
echo "autoconf..."
autoconf
echo "autoheader..."
autoheader
echo "automake..."
automake --add... | rickyrockrat/la2vcd2 | autogen.sh | Shell | gpl-2.0 | 345 |
#!/bin/bash
. $(dirname $0)/include.rc
. $(dirname $0)/volume.rc
function pidgrep()
{
ps ax | grep "$1" | awk '{print $1}' | head -1
}
## Start glusterd
glusterd;
pidof glusterd;
$CLI volume info;
mkdir -p $B0/brick1/brick;
mkdir -p $B0/brick2/brick;
## Lets create volume
$CLI volume create $V0 stripe 2 replic... | raghavendra-talur/gluster-helpscripts | createstriperep.sh | Shell | gpl-2.0 | 463 |
#!/bin/bash
# Copyright 2016, 2017 Richard Rodrigues, Nyle Rodgers, Mark Williams,
# Virginia Tech
#
# This file is part of Coremic.
#
# Coremic 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 ... | richrr/coremicro | scripts/tree_multiple.sh | Shell | gpl-2.0 | 1,142 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2016-2020 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... | ppannuto/tup | test/t2200-tupfile-space-escaped.sh | Shell | gpl-2.0 | 961 |
#!/bin/bash
# TYPE: Bash script.
# PURPOSE: This bash shell script allows to easily remove GNU/Linux kernels.
# The script should be copied to /usr/bin/removekernel and set as executable.
# It is a poor man's alternative to Ubuntu Tweak.
# REQUIRES: bash, Ubuntu 12.04 LTS or newer
# REVISED: 20130302
# REVISED: 20130... | MarkRijckenberg/shell-scripts | kernelremoval.bash | Shell | gpl-3.0 | 1,666 |
#Let's get sound working
sudo apt-get update
sudo apt-get install unzip -y
wget "https://github.com/Grippentech/Asus-E200HA-Linux-Post-Install-Script/releases/download/0.3/kernel.zip"
unzip kernel.zip
cd kernel
sudo dpkg -i *.deb
tar -xvf chtcx2072x.tar
cd chtcx2072x
sudo mkdir /usr/share/alsa/ucm/chtcx2072x/
sudo mv c... | Grippentech/Asus-E200HA-Linux-Post-Install-Script | e200ha_with_sound.sh | Shell | gpl-3.0 | 1,653 |
#!/bin/bash
vendor/bin/phpunit test
| blanketastronomer/yaml-to-manifest | run_tests.sh | Shell | gpl-3.0 | 38 |
#!/bin/bash
# Source this script to set up the DD4Hep installation that this script is part of.
#
# This script if for the csh like shells, see thisdd4hep.csh for csh like shells.
#
# Author: Pere Mato. F. Gaede, M.Frank
#-------------------------------------------------------------------------------
#
#echo " ### this... | vvolkl/DD4hep | cmake/thisdd4hep.sh | Shell | gpl-3.0 | 4,216 |
#!/bin/sh
set -e
echo "Creating Build Directory"
rm -rf build
mkdir build
echo "Compiling"
javac -classpath lib/lwjgl.jar:lib/lwjgl_util.jar:lib/slick-util.jar src/*.java -d build
cd build
echo "Creating Jar"
jar -cfm ../MineCraft.jar ../src/manifest.txt *.class
echo "Done" | wyndwarrior/MineCraftMini | build.sh | Shell | gpl-3.0 | 279 |
#!/bin/bash
#
# runTests.sh [--test-speed]
# --test-speed = Run speed tests.
#
# The following prerequesites must exist for proper
# operations of this script:
# pyflakes
# coverage
# lizard # For cyclomatic complexity.
# # https://github.com/terryyin/lizard
#
# Install the above python pac... | TrailingDots/async_py_messaging | async_py_messaging/runTests.sh | Shell | gpl-3.0 | 29,643 |
#!/usr/bin/expect
set timeout 10
expect "Hello"
puts "World!" | torchhound/projects | bash/exp.sh | Shell | gpl-3.0 | 61 |
#!/bin/bash
cd "${0%/*}"
DYLD_FALLBACK_LIBRARY_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib:/lib:/usr/lib mono BLauncher.exe
| SirSengir/Starliners | Deploy/MacApp/Starliners/Contents/MacOS/BLauncher.sh | Shell | gpl-3.0 | 141 |
#!/bin/bash
echo "---------- $0 start ----------"
set -e
set -x
if [ $EUID == 0 ]; then
echo "Please do not run this script as root; don't sudo it!"
exit 1
fi
OPT="/opt"
# Ardupilot Tools
ARDUPILOT_TOOLS="Tools/autotest"
ASSUME_YES=false
QUIET=false
sep="##############################################"
OPTIN... | khancyr/ardupilot | Tools/environment_install/install-prereqs-ubuntu.sh | Shell | gpl-3.0 | 11,163 |
#!/bin/bash
# Copyright 2015-2021 Gilbert Standen
# This file is part of Orabuntu-LXC.
# Orabuntu-LXC 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
# (... | gstanden/orabuntu-lxc | uekulele/archives/lxd_install_uekulele.sh | Shell | gpl-3.0 | 5,062 |
#!/bin/bash
# Convert a 1024x1024 png to the required icns file. only for MacOs.
# Before proceeding make sure you have image named `Icon1024.png' with
# 1024x1024 pixel (px) at 72 pixel-per-inch (ppi) .
cd $PWD
mkdir MyIcon.iconset
sips -z 16 16 Icon1024.png --out MyIcon.iconset/icon_16x16.png
sips -z 32 32 ... | jeanslack/Videomass | develop/tools/create_ICNS.sh | Shell | gpl-3.0 | 982 |
#!/bin/sh -e
DJANGO_CA_UWSGI_INI=${DJANGO_CA_UWSGI_INI:-/usr/src/django-ca/uwsgi/uwsgi.ini}
DJANGO_CA_UWSGI_PARAMS=${DJANGO_CA_UWSGI_PARAMS:-}
DJANGO_CA_LIB_DIR=${DJANGO_CA_LIB_DIR:-/var/lib/django-ca}
if [ ! -e ${DJANGO_CA_UWSGI_INI} ]; then
echo "${DJANGO_CA_UWSGI_INI}: No such file or directory."
exit 1
fi... | mathiasertl/django-ca | scripts/uwsgi.sh | Shell | gpl-3.0 | 1,691 |
#/bin/bash
# Start websockify and the inbuilt PHP server
websockify/run 8800 localhost:6600 &
cd www
php -S localhost:8000 | anthony-mills/raspberrypi-carputer | start.sh | Shell | gpl-3.0 | 124 |
#!/bin/bash
REVISION=1
if [ -n "$1" ]; then
REVISION=$1
fi
CURRENTVERSION=$(git describe |sed -s 's/-.*$//')
#CURRENTVERSION=$(git tag|tail -1)
NEXTVERSION=""
function incrementVersion {
PRE=$(echo $CURRENTVERSION|sed -e 's/\.[0-9]\+$//'|sed -e 's/^v//')
LAST=$(echo $CURRENTVERSION|sed -e 's/^v[0-9... | mydlp/mydlp-endpoint-linux | bootstrap.sh | Shell | gpl-3.0 | 918 |
#!/bin/bash
BASEDIR=$(cd $(dirname $0); pwd)
. $BASEDIR/virtualenv/bin/activate
export PYTHONPATH=$BASEDIR:$PYTHONPATH
python $BASEDIR/garnish.py "$@"
| hgdeoro/GarnishMyPic | gmp.sh | Shell | gpl-3.0 | 155 |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
DIE=0
if [ -n "$GNOME2_DIR" ]; then
ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
PATH="$GNOME2_DIR/bin:$PATH"
export PATH
export LD... | upcomingnewton/gtk_oyranos | autogen.sh | Shell | gpl-3.0 | 4,514 |
#!/bin/bash
# Script to sign an installer file using GPG secure key downloaded from Azure.
# The keys are downloaded in the Azure Pipelines file. This script depends on
# several environment variables used by the Azure Pipelines build.
# Enable "strict mode", see
# http://redsymbol.net/articles/unofficial-bash-stric... | alex-hhh/ActivityLog2 | etc/scripts/sign-release.sh | Shell | gpl-3.0 | 2,103 |
SAMBA4_GIT_REV=
SAMBA4_GIT_VER=4.0.0alpha19
SAMBA4_RELEASE=4.0.0alpha19
| inverse-inc/openchange.old | script/samba4_ver.sh | Shell | gpl-3.0 | 73 |
#!/bin/bash
# By: Liptan Biswas
yum -y install wget nano
# Check if user has root privileges
if [[ $EUID -ne 0 ]]; then
echo "You must run the script as root or using sudo"
exit 1
fi
mkdir /usr/local/tomcat
groupadd tomcat
useradd -M -s /bin/nologin -g tomcat -d /usr/local/tomcat tomcat
wget --header 'Cookie: o... | liptanbiswas/OneClickInstall | centos7/tomcat.sh | Shell | gpl-3.0 | 2,369 |
#!/bin/sh
# This script intends to decrease the effort of updating the package.
PACKAGE="intellij-idea-community"
DISTRIBUTION="impish"
main() {
last_tag=$(git describe --abbrev=0 --tags)
old="${last_tag#?}"
new="$1"
name="$(git config --get user.name)"
email="$(git config --get user.email)"
... | mmk2410/intellij-idea-community | update-new-version.sh | Shell | gpl-3.0 | 944 |
#!/bin/bash
# Simple script to list version numbers of critical development tools
export LC_ALL=C
bash --version | head -n1 | cut -d" " -f2-4
echo "/bin/sh -> 'readlink -f /bin/sh'"
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
bison --version | head -n1
if [ -h /usr/bin/yacc ]; then
echo "/usr/bi... | Drakesinger/LFS | Scripts/version-check.sh | Shell | gpl-3.0 | 1,444 |
#!/bin/bash
set -eu
. `dirname $0`/../secrets.sh
if [ -z "${ETHERHOUSE_HOST}" ]; then
ETHERHOUSE_HOST=etherhouse.xkyle.com
fi
curl "${ETHERHOUSE_HOST}/off?id=0&api_key=${APIKEY0}"
curl "${ETHERHOUSE_HOST}/off?id=1&api_key=${APIKEY1}"
curl "${ETHERHOUSE_HOST}/off?id=2&api_key=${APIKEY2}"
curl "${ETHERHOUSE_HOST}/off?i... | solarkennedy/ether_housed | tools/all_off.sh | Shell | gpl-3.0 | 561 |
#!/bin/bash
echo 'fixing bluebird'
find . -path "*/bluebird/js/*.js" -exec sed -i '' s/process.versions.node.split/process.version.node.split/ {} + | tradle/tim | scripts/fix-bluebird.sh | Shell | gpl-3.0 | 148 |
#!/bin/bash
# config-existing-irods.sh
# Author: Michael Stealey <michael.j.stealey@gmail.com>
SERVICE_ACCOUNT_CONFIG_FILE="/etc/irods/service_account.config"
IRODS_HOME_DIR="/var/lib/irods"
# Get environment variables from iRODS setup
while read line; do export $line; done < <(cat ${SERVICE_ACCOUNT_CONFIG_FILE})
#... | mjstealey/appstack-irods-icat-4.1.x-pgsql | scripts/config-existing-irods.sh | Shell | gpl-3.0 | 2,225 |
#! /bin/bash
# mandatory arguments
[ "$#" -eq 3 ] || exit "3 arguments required, $# provided - <prefix of nodes> <number of nodes> <path image to use>"
NAME_PREFIX="$1"
NODE_COUNT="$2"
IMAGE="$3"
echo "Preparing Images..."
for (( i=1; i<=$NODE_COUNT; i++ ))
do
flash --hostname ${NAME_PREFIX}${i} ${IMAGE}
done
| gregdaynes/Docker-Bramble | init.sh | Shell | gpl-3.0 | 318 |
#!/usr/bin/env bash
#A support function used to append export commands to .bashrc, .zshrc, etc.
#At this point, it can be used for any command on any file, but, it's mainly used for appending export commands.
#Author: Toberumono (https://github.com/Toberumono)
should_reopen=""
update_rc() {
local client="$1"
shift
... | Toberumono/Miscellaneous | common/update_rc.sh | Shell | gpl-3.0 | 839 |
#!/usr/bin/env bash
gnome-terminal -e 'java -mx1000m -jar tools/tika-app-1.24.1.jar --port 9998' #> /dev/null 2>&1 &
gnome-terminal -e 'java -mx2000m -cp "tools/stanford-corenlp-4.1.0/*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer' #> /dev/null 2>&1 &
| ross-spencer/nerlinks | start-tools.sh | Shell | gpl-3.0 | 260 |
#!/bin/bash
#-------------------------------------------------------------------------------
#
# script_name
#
#-------------------------------------------------------------------------------
# Help
if [ -z "$HELP" ]
then
export HELP="
This script does something useful (hopefully).
-----------------------------------... | coralnexus/bash-lib | starter.sh | Shell | gpl-3.0 | 1,394 |
#!/bin/bash
NAME=$1
PORT=$2
TAG=penginecore:latest
./Scripts/docker-rm.sh $NAME
./Scripts/docker-create.sh $NAME $PORT
./Scripts/docker-refresh-app-volume.sh $NAME
./Scripts/docker-start.sh $NAME | jaylittle/presentation-engine | Scripts/docker-recreate.sh | Shell | gpl-3.0 | 196 |
function refresh_docker_images {
# Arguments:
# $1 - Path to top level Consul source
# $2 - Which make target to invoke (optional)
#
# Return:
# 0 - success
# * - failure
if ! test -d "$1"
then
err "ERROR: '$1' is not a directory. refresh_docker_images must be called with th... | calgaryscientific/consul | build-support/functions/20-build.sh | Shell | mpl-2.0 | 13,723 |
#!/bin/bash
set -e
set -o pipefail
COVERAGE_FILES_PATTERN='./src/packages/*/coverage/lcov.info'
CC_COVERAGE_DIR='./coverage'
CC_REPORTER="${CC_COVERAGE_DIR}/cc-test-reporter"
### Check whether the upload should be run or not. ###
if [ "$TRAVIS_BRANCH" != 'master' ]; then
echo 'The build is not running on branch... | MikkCZ/pontoon-tools | scripts/upload-coverage-to-codeclimate.sh | Shell | mpl-2.0 | 1,846 |
#!/bin/csh -f
#
# svn $Id: job_psas_sen.sh 709 2014-01-23 20:09:38Z arango $
#######################################################################
# Copyright (c) 2002-2014 The ROMS/TOMS Group #
# Licensed under a MIT/X style license #
# See License_ROMS.txt ... | theelectricbrain/ROMS-Tidal-Array | ROMS/Bin/job_psas_sen.sh | Shell | agpl-3.0 | 4,275 |
#!/usr/bin/env bash
################################################################################
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
# Please refer to the README for information about making permanent changes. #
#########################################################... | edgenet/drops | builds/qt-android/build.sh | Shell | lgpl-3.0 | 2,487 |
export VIRTUAL_ENV_DISABLE_PROMPT=yes
infoline-virtualenv() {
if [ -n "$VIRTUAL_ENV" ]; then
print -n -- ${VIRTUAL_ENV:t}
fi
}
infoline_left+=infoline-virtualenv
| hevi9/infoline-zsh-theme | infoline-virtualenv.zsh | Shell | lgpl-3.0 | 171 |
#!/bin/bash
set -eux
file=${1:-"instackenv.json"}
jq '.["nodes"][] | "sudo vbmc add --username " + ."pm_user" + " --password " + ."pm_password" + " --port " + ."pm_port" + " --address " + ."pm_addr" + " --libvirt-uri \"qemu+ssh://root@" + "192.168.23.1" + "/system?&keyfile=/root/.ssh/id_rsa_virt_power&no_verify=1&no... | slagle/tripleo | scripts/instackenv-to-vbmc.sh | Shell | apache-2.0 | 699 |
#!/bin/bash
#
# Simple script to enable maintenance-login before sealing up the template
#
######################################################################
PROGNAME="$( basename "${0}" )"
CHROOT="${CHROOT:-/mnt/ec2-root}"
ROOTPWSTRING="${PWSTRING:-UNDEF}"
MAINTUSER="${MAINTUSER:-root}"
# Error handler function
... | ferricoxide/AMIgen7 | SetRootPW.sh | Shell | apache-2.0 | 5,161 |
#!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... | groschovskiy/lerigos_music | Mobile/iOS/Beta/Pods/Target Support Files/Pods-Lerigos Music/Pods-Lerigos Music-frameworks.sh | Shell | apache-2.0 | 5,337 |
# Common routines
# TODO: get token from target peer more elegantly
# peername -> orgname -> orgtoken
get_token() {
if [ "$#" -eq 1 ] ; then
local peer=$1
if [[ "$peer" =~ org1 ]] ; then
find $CREDENTIAL_STORE_DIR/ -type f | grep -i org1 | head -n1 | xargs cat
elif [[ "$peer" =~ org2 ]] ; then
find $CRED... | Naoya-Horiguchi/hl-tools | dev_app/scripts/common.sh | Shell | apache-2.0 | 8,504 |
#!/bin/bash
# Author: yeho <lj2007331 AT gmail.com>
# BLOG: https://linuxeye.com
#
# Notes: OneinStack for CentOS/RedHat 6+ Debian 8+ and Ubuntu 14+
#
# Project home page:
# https://oneinstack.com
# https://github.com/oneinstack/oneinstack
Install_Percona55() {
pushd ${oneinstack_dir}/src > /dev/null
... | lj2007331/oneinstack | include/percona-5.5.sh | Shell | apache-2.0 | 8,168 |
java -cp target/uber-SimpleCounter-1.0-SNAPSHOT.jar com.shapira.examples.producer.simplecounter.SimpleCounter localhost:9092 v1 new async 500 10
| gwenshap/kafka-examples | SimpleCounter/run.sh | Shell | apache-2.0 | 145 |
#!/usr/bin/env bash
# Just in case
if ! yum list installed | grep puppet; then
sudo rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
sudo yum install -y puppet
fi
module_name="bi_java"
#
# Make local modules dir look like a real install
#
puppet_dirs="manifests templates lib data files"
... | boundedinfinity/bi-puppet-java | scripts/provision.bash | Shell | apache-2.0 | 700 |
git clone https://github.com/Alexander-Minyushkin/aistreamer.git
cd aistreamer/
cd worker/
sudo apt-get update
sudo apt-get install python-pip
sudo pip install --upgrade pip
sudo pip install google-cloud<0.34.0
sudo pip install luigi
sudo pip install -r requirements.txt
python main.py pubsub_pull
| Alexander-Minyushkin/aistreamer | worker/startup-script.sh | Shell | apache-2.0 | 298 |
#!/bin/bash
# Strict mode
set -euo pipefail
IFS=$'\n\t'
# Create a self signed certificate for the user if one doesn't exist
if [ ! -f $PEM_FILE ]; then
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout $PEM_FILE -out $PEM_FILE \
-subj "/C=XX/ST=XX/L=XX/O=dockergenerated/CN=dockergenerated"
fi
# Creat... | rethore/docker_openmdao | 0.12.0/notebook.sh | Shell | apache-2.0 | 777 |
#!/bin/bash
#
# Copyright 2017 Istio 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 applicable law... | controlplaneio/theseus | istio-0.2.4/samples/bookinfo/kube/cleanup.sh | Shell | apache-2.0 | 1,474 |
#!/bin/bash
# Get configuration and endpoint
# Get configuration and extraction type
while getopts c:e:r: option
do
case "${option}"
in
c) conf_name=${OPTARG};;
e) endpoint=${OPTARG};;
r) repo_path=${OPTARG};;
esac
done
if [ ${conf_name+x} ]; then
echo "conf_name: "${conf_name}
else
echo "conf_name no... | ColumbiaDVMM/ColumbiaImageSearch | scripts/run_search.sh | Shell | apache-2.0 | 1,257 |
#!/bin/bash
# Submit request to launch docker container
curl -X POST -H "Content-Type: application/json" mesos.appsoma.com:8080/v2/apps -d '
{
"id": "/simple-webpage",
"instances": 3,
"cpus": 0.5,
"mem": 256,
"ports": [
31111
],
"healthChecks": [
{
"path": "/",
"protocol": "HTTP",
"portIndex": 0,
... | appsoma/devops | webpage_launcher.bash | Shell | apache-2.0 | 651 |
#!/bin/bash
#
# Copyright 2017 Goldman Sachs.
# 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 i... | shantstepanian/obevo | obevo-db-impls/obevo-db-db2/db2-setup.sh | Shell | apache-2.0 | 1,931 |
#!/bin/bash
#
# Initialize openvswitch configuration database.
#
# Turn off network manager so it doesn't interfere with IF configurations.
#
nmcli nm enable false
#
# eth1 is bridged to an external port.
#
# Set eth1 as un-numbered interface.
#
sudo ifconfig eth1 0.0.0.0
sudo ifconfig eth2 0.0.0.0
#
# Set up veth pair... | tfherbert/ovs_entpnt | scripts/VMs/lubuntu2/init.sh | Shell | apache-2.0 | 926 |
docker rm camunda-database-size-calculator_db_1 --force
docker rm camunda-database-size-calculator_camunda_1 --force
docker rmi camunda-database-size-calculator_db
docker rmi camunda-database-size-calculator_camunda | camunda/camunda-consulting | snippets/camunda-database-size-calculator/clean.sh | Shell | apache-2.0 | 215 |
#!/bin/bash
#Used for all nodes, set different value on each node
NODE_HOST_NAME=controller-03
NODE_HOST_NAME_FQDN=controller-03.com
#Used for all keepalived nodes, set different value on each node
KEEPALIVED_ROUTER_ID=ka01
KEEPALIVED_INTERNAL_NET_PRIORITY=150
KEEPALIVED_EXTERNAL_NET_PRIORITY=150
#Used for all keepa... | wingon-niu/OpenStackDeploy | DeployScripts/conf_orig/102-Server-5-env.sh | Shell | apache-2.0 | 6,557 |
#!/bin/bash
set -e
# Workaround
docker restart kubernetes-controller-manager
docker restart kubernetes-scheduler
# --------------------------------------------------------------------------------------------
source /root/demo-openrc
source /vagrant/cache/env.rc
# Create openstack server 'testvm'
nova boot --flavor... | jinsenglin/openstack | vagrant-up-3-node-openstack/o/vagrant/run-e2e-tests.sh | Shell | apache-2.0 | 1,884 |
#!/bin/sh
set -e -u
set -o pipefail
resource_dir=/opt/resource
run() {
export TMPDIR=$(mktemp -d ${TMPDIR_ROOT}/git-tests.XXXXXX)
echo -e 'running \e[33m'"$@"$'\e[0m...'
eval "$@" 2>&1 | sed -e 's/^/ /g'
echo ""
}
init_repo() {
(
set -e
cd $(mktemp -d $TMPDIR/repo.XXXXXX)
git init -q
... | pivotaltracker/git-branches-resource | test/helpers.sh | Shell | apache-2.0 | 2,652 |
../ann -w xor-test-weights.xml -t xor_train2.txt -x 100 -e 1000 -r 0.008 -m 0.006 -l S2 S7 S2; ../ann -w xor-test-weights.xml -i xor_input.txt
| busysteve/ANN | xor/test-xor2.sh | Shell | apache-2.0 | 143 |
#!/bin/sh
PROG=./ei
EXPECT_DIR=test/expect
ACTUAL_DIR=test/actual
FILE=$1
SRC=test/src/$FILE
EXPECT=$EXPECT_DIR/$FILE
ACTUAL=$ACTUAL_DIR/$FILE
if ! [ -e $SRC ]; then
echo "error: $SRC not found"
exit 1
fi
if ! [ -e $EXPECT ]; then
echo "error: $EXPECT not found"
exit 1
fi
mkdir -p $ACTUAL_DIR
$PROG... | shiguredo/eryngii | test.sh | Shell | apache-2.0 | 441 |
#!/usr/bin/env bash
t1=$(curl -s --data-binary @logo.png https://telecom-tower-renderer.appspot.com/renderImage)
t2=$(curl -s -d '{"text":"A", "fgColor":"#0000ff", "bgColor":"#000000", "fontSize":6}' https://telecom-tower-renderer.appspot.com/renderText)
t3=$(curl -s -d '{"len":11, "bgColor":"#000000"}' https://teleco... | heia-fr/telecom-tower-renderer | test.sh | Shell | apache-2.0 | 811 |
#!/bin/bash
echo ">> postbuild"
set -e
source /opt/qnib/gocd/helpers/gocd-functions.sh
# Create BUILD_IMG_NAME, which includes the git-hash and the revision of the pipeline
assemble_build_img_name
mkdir -p binpkg
if [ -d docker ];then
DOCKER_DIR=true
fi
if [ -x postbuild.sh ];then
echo ">>>> Run postbuild ... | qnib/alpn-gocd-agent | opt/qnib/gocd/tasks/docker/postbuild.sh | Shell | apache-2.0 | 665 |
#!/bin/bash
set -e
# Runs codecleaver tests
pushd $(dirname $0) > /dev/null
./codecleaver.sh < test/test.codecleaver > /dev/null
if diff test/expected-results.txt out/actual-results.txt > out/results.diff ; then
echo Tests Passed.
else
echo Tests Failed. See out/results.diff for details.
fi
popd > /dev/null
| ericmckean/codecleaver | run_tests.sh | Shell | apache-2.0 | 320 |
#!/bin/sh
. ./include.sh
REDIRECT=/dev/null
$PYTHON $examples_src/grib_clone.py
rm -f out.clone.grib
| 0x1mason/GribApi.XP | grib_api/examples/python/grib_clone.sh | Shell | apache-2.0 | 103 |
#!/bin/bash
cd ../OracleJava
docker rmi "docker-001.bluegarden.tst:5000/serverjre:8"
time docker build -t "docker-001.bluegarden.tst:5000/serverjre:8" .
time docker push "docker-001.bluegarden.tst:5000/serverjre:8"
cd /opt/sw/support/git/public/rdbms_support/docker/bin
| testor321/rdbms_support | docker/bin/build_jre8.sh | Shell | apache-2.0 | 270 |
#!/bin/sh
if [[ -z "$1" || -z "$2" ]]; then
echo "Usage: $0 <directory> <script>" >&2
exit
fi
if [[ ! -e "$1" ]]; then
echo "The file or directory is not valid." >&2
exit
fi
WATCHDIR="$1"
shift
SCRIPT="$*"
HASH=""
function updatehash() {
HASH=`find $WATCHDIR -not -iname ".*" -exec stat -f "%N %z %m" -L {} ... | romannurik/env | bin/onchange.sh | Shell | apache-2.0 | 529 |
perl ta_pipe.pl -in ABA.xls -o ABA -ref gokegg_ref -pf sly -komap /Bio/Database/Database/kegg/data/map_class/plant_ko_map.tab -dc 12
| BaconKwan/Perl_programme | trends_analysis/run_ta_pipe.sh | Shell | apache-2.0 | 133 |
#!/bin/bash -eux
# Copyright 2018 Big Switch Networks, 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-... | bigswitch/bosi | etc/t5/bash_template/redhat_7_dpdk.sh | Shell | apache-2.0 | 2,237 |
# ----------------------------------------------------------------------------
#
# Package : mongo-cxx-driver
# Version : 1.1.0
# Source repo : https://github.com/mongodb/mongo-cxx-driver.git
# Tested on : rhel_7.3
# Script License: Apache License, Version 2 or later
# Maintainer : Atul Sowani <sowania@us.ibm.com>
#
# ... | ppc64le/build-scripts | m/mongo-cxx-driver/mongo-cxx-driver_rhel_7.3.sh | Shell | apache-2.0 | 1,373 |
#!/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"); you ... | kimihe/Swallow | swallow-benchmark/HiBench-master/bin/workloads/ml/pca/spark/run.sh | Shell | apache-2.0 | 1,347 |
#!/bin/bash
find . \( -path ./vendor -o -path ./.glide \) -prune -o -name "*.go" -exec goimports -w {} \;
if [[ -n "$(git -c core.fileMode=false status --porcelain)" ]]; then
echo "goimports modified code; requires attention!"
if [[ "${CI}" == "true" ]]; then
exit 1
fi
fi
| owulveryck/toscalib | scripts/fmt.sh | Shell | apache-2.0 | 295 |
#!/bin/bash
# Copyright 2020 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 ... | google-research/sound-separation | datasets/fuss/get_dev_data.sh | Shell | apache-2.0 | 2,166 |
#!/bin/bash
KUBEVIRT_DIR="$(
cd "$(dirname "$BASH_SOURCE[0]")/../"
pwd
)"
OUT_DIR=$KUBEVIRT_DIR/_out
VENDOR_DIR=$KUBEVIRT_DIR/vendor
CMD_OUT_DIR=$OUT_DIR/cmd
TESTS_OUT_DIR=$OUT_DIR/tests
APIDOCS_OUT_DIR=$OUT_DIR/apidocs
MANIFESTS_OUT_DIR=$OUT_DIR/manifests
PYTHON_CLIENT_OUT_DIR=$OUT_DIR/client-python
function... | fabiand/kubevirt | hack/common.sh | Shell | apache-2.0 | 1,783 |
#! /bin/sh
# NB: This file, and the Windows version, should be generated from common source.
HARNESS_ROOT_DIR="${HARNESS_ROOT_DIR:-.}"
LIBRARY="${HARNESS_ROOT_DIR}"/library
target=`echo "$1" | sed -e 's/\.nqp$//'`
rm -f "$target.pir" "$target.pbc" "$target.t.pbc"
parrot-nqp --target=pir --output="$target.pir" "$targe... | Whiteknight/kakapo | t/harness-nqp.sh | Shell | artistic-2.0 | 480 |
#!/bin/bash
set -e
function error {
echo error: "$@"
exit 1
}
function itime {
/usr/bin/time "$@"
}
BUILD_GO=y
INTEGRATION=y
FAST=n
SHOW_HELP=n
SETUP_GOPATH=n
TEMP=`getopt -o h --long help,no-go,no-integration,fast,setup-gopath -n test.bash -- "$@"`
eval set -- "$TEMP"
while true; do
case "$1" in
... | unigornel/unigornel | test.bash | Shell | bsd-2-clause | 1,940 |
#!/bin/bash
mosquitto_sub -t "alert/#" | mchmarny/mqtt-pub-sub-demo | mon.sh | Shell | bsd-2-clause | 39 |
#!/bin/bash
#
# vim: set ts=4 sw=4 et:
#
# Passed arguments:
# $1 - pkgname [REQUIRED]
# $2 - cross target [OPTIONAL]
if [ $# -lt 1 -o $# -gt 2 ]; then
echo "$(basename $0): invalid number of arguments: pkgname [cross-target]"
exit 1
fi
PKGNAME="$1"
XBPS_CROSS_BUILD="$2"
for f in $XBPS_SHUTILSDIR/*.sh; do
... | radare/void-packages | common/xbps-src/libexec/xbps-src-doextract.sh | Shell | bsd-2-clause | 1,694 |
#!/bin/bash
if [ "$(whoami)" = root ]; then
ln -s $PWD/bin/dotlang /usr/local/bin
else
ln -s $PWD/bin/dotlang ~/bin/
fi
| zielmicha/dotlang | bin/install.sh | Shell | bsd-2-clause | 128 |
#!/bin/bash
#
# Zabbix-put
#
# Copyright 2012, Michal Belica <devel@beli.sk>
# 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... | beli-sk/zabbix-put | zabbix_put.sh | Shell | bsd-2-clause | 2,550 |
#!/bin/bash
set -o verbose #echo on
tar -xvf originalrepo.tar
echo ~~~ Every recipe aims to keep what is in the c directory while pruning away everything else.
echo
sleep 3
echo ~~~ Filter and relocate a subdirectory to the root
sleep 3
rm -rf filteredrepo.filtersubdir
git clone --no-hardlinks originalrepo filtere... | youpeiban/youpeiban.github.io | examples/filter-branch/test-filter-branch.sh | Shell | bsd-2-clause | 2,155 |
sudo mkdir -p /opt/oracle
sudo rm -rf /opt/oracle/instantclient
find ~/ | grep 'instantclient' | grep 'zip$' | xargs -L 1 sudo unzip -d /opt/oracle/
find /opt/oracle | grep 'sqlplus$' | sed s/sqlplus// | xargs -I {} -L 1 sudo ln -s {} /opt/oracle/instantclient
echo 'export DYLD_LIBRARY_PATH=/opt/oracle/instantclient' >... | klkane/macosx_oracle_instantclient_installer | installer.sh | Shell | bsd-2-clause | 590 |
#!/bin/bash
EXTERNALS_PATH=externals
TOOLS_PATH=tools
if [ ! -d "client_src" ] || [ ! -d "landing_src" ]
then
echo "Usage: bin/setup_closure.sh"
echo " Download and set up Closure compiler."
echo " This script should be run from the root of the git repo."
echo
exit -1
fi
function __create_folder__ {
FOLD... | uwdata/termite-visualizations | bin/setup_closure.sh | Shell | bsd-3-clause | 1,556 |
#!/bin/bash
source $(dirname $0)/webapi-service-tests.spec
SRC_ROOT=$(cd $(dirname $0);pwd)
BUILD_ROOT=/tmp/${name}-${path_flag}_pack
BUILD_DEST=/tmp/${name}-${path_flag}
usage="Usage: ./pack.sh [-t <package type: apk | cordova>] [-a <apk runtime arch: x86 | arm>] [-m <package mode: embedded | shared>] [-v <sub versio... | wanghongjuan/crosswalk-test-suite | misc/webapi-service-tests/pack.sh | Shell | bsd-3-clause | 9,653 |
# SPDX-License-Identifier: BSD-3-Clause
source helpers.sh
pcr_ids=0
alg_pcr_policy=sha256
file_pcr_value=pcr.bin
file_policy=policy.data
file_authorized_policy_1=auth_policy_1.data
file_authorized_policy_2=auth_policy_2.data
file_session_file=session.dat
file_private_key=private.pem
file_public_key=public.pem
file_ve... | 01org/tpm2.0-tools | test/integration/tests/abrmd_policyauthorize.sh | Shell | bsd-3-clause | 2,385 |
#!/bin/sh -ex
mirage configure config_server.ml --xen --no-opam
make
mirage configure config_client.ml --xen --no-opam
make
| edwintorok/ocaml-conduit | tests/mirage/vchan/build.sh | Shell | isc | 124 |
#!/bin/bash
# Requires wget `brew install wget`
cd "$( dirname "${BASH_SOURCE[0]}" )"
rm -f foosey.db
wget http://api.foosey.futbol/foosey.db
| brikr/foosey | backend/dbFresh.sh | Shell | mit | 145 |
#!/usr/bin/env bash
# because this script is being source-ed via .travis.yaml,
# we need to restore the original options so that that we don't interfere with
# travis' internals
readonly ORIGINAL_SHELL_OPTIONS=$(set +o)
# this script is extra noisy and used in many places during the build so we suppress the trace wit... | diestrin/angular | scripts/ci/env.sh | Shell | mit | 5,723 |
#!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... | skyefreeman/Cognition | Pods/Target Support Files/Pods/Pods-frameworks.sh | Shell | mit | 4,646 |
#!/bin/sh -x
IDX=$1
INPUT_SHARED_1_1=$2
INPUT_SHARED_1_2=$3
INPUT_SHARED_1_3=$4
INPUT_SHARED_1_4=$5
INPUT_SHARED_1_5=$6
OUTPUT_1_1_I="output_1_1_$IDX.txt"
OUTPUT_1_2_I="output_1_2_$IDX.txt"
OUTPUT_1_3_I="output_1_3_$IDX.txt"
cat $INPUT_SHARED_1_1 >> $OUTPUT_1_1_I; echo "1:$IDX" >> $OUTPUT_1_1_I
cat $INPUT_SHARED_1_2... | radical-experiments/AIMES-Swift | viveks_workflow/stage_1.sh | Shell | mit | 1,153 |
#!/usr/bin/env zsh
hash gh 2>/dev/null || { echo "Please install gh before installing gh extensions." && exit 0; }
extensions=(
davidraviv/gh-clean-branches # Safely delete local branches that have no remotes and no hanging changes.
)
echo "${extensions[@]///}" | xargs -n1 gh extension install
| KenPowers/dotfiles | vendor/packages/install-gh.sh | Shell | mit | 300 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.