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 |
|---|---|---|---|---|---|
wget http://www.vertexlabs.co.uk/repository/com/logginghub/archives/1.5.2/logginghub-frontend-1.5.2.zip | logginghub/core | documentation/download-frontend.sh | Shell | apache-2.0 | 103 |
#!/bin/sh
# This script generates the generic building batch files for Windows systems
echo "@echo off" > makelib.bat
echo "cd ..\\lib" >> makelib.bat
( cd ../lib
for f in */*.c; do
echo "call ..\\batfiles\\obj.bat `echo $f | sed -e 's/\\.c//' -e 's/\\//\\\\/g'`"
done
) >> makelib.bat
echo "call ..\\batfiles\\lib... | Aliced3645/DataCenterMarketing | libnet/batfiles/gen.sh | Shell | apache-2.0 | 907 |
#!/bin/bash
#
# Rocket.Chat notification post-receive hook.
#
# Based on: https://github.com/chriseldredge/git-rocketchat-hook/blob/master/git-rocketchat-hook
#
# Settings needed:
# git config hooks.rocketchat.webhook-url "https://www.mydomain.com/hooks/..."
# git config hooks.rocketchat.channel "general"
#
# - The r... | adamlatchem/toolchest | git-server-hook-rocketchat-post-receive.sh | Shell | apache-2.0 | 9,608 |
#!/bin/sh
# Usage:
#
# . ./lib/simple_logger.sh (Default LOG_LEVEL="info")
#
# or specify LOG_LEVEL before include this file
#
# LOG_LEVEL="warn"
# . ./lib/simple_logger.sh
LANG=C
# Default log level
LOG_LEVEL=${LOG_LEVEL:-"info"}
LINE_LOG=${LINE_LOG:-"1"}
# Convert all characters to lower case
LOG_LEVEL=$(echo $L... | sechiro/bash-template | lib/simple_logger.sh | Shell | apache-2.0 | 2,451 |
#!/usr/bin/env bash
set -xe
NEUTRON_VPNAAS_DIR="$BASE/new/neutron-vpnaas"
TEMPEST_CONFIG_DIR="$BASE/new/tempest/etc"
SCRIPTS_DIR="/usr/os-testr-env/bin"
VENV=${1:-"dsvm-functional"}
function generate_testr_results {
# Give job user rights to access tox logs
sudo -H -u $owner chmod o+rw .
sudo -H -u $own... | openstack/neutron-vpnaas | neutron_vpnaas/tests/contrib/post_test_hook.sh | Shell | apache-2.0 | 1,412 |
#!/usr/bin/env bash
# Copyright 2016 The TensorFlow 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... | chemelnucfin/tensorflow | tensorflow/tools/ci_build/linux/mkl/build-dev-container.sh | Shell | apache-2.0 | 9,835 |
#!/bin/bash
docker run -d -t -i --restart=always --net=host --name=mesos-dns -p 53:53 dsra/mesos-dns /mesos-dns
| ericwhyne/dsra-dcos | docker/mesos-dns/run.sh | Shell | apache-2.0 | 112 |
#!/bin/bash
#date: 2016-10-12
#auther: zhenping
#description: 用于与aliyun ftp 服务器同步SQL的增量备份。
sync_date=$(date '+%Y-%m-%d')
inc_path="/backup/incre/"
latest_back_dir=$(ls -lt /backup/incre/ | grep -v -E "total|*.gz$" | awk '{print $NF}' | head -1)
sync_list="/backup/dbsync.list"
sync_log="/backup/dbsync.${sync_date}.log"... | stanxii/indexRiver | databaseBackup/rsync.sh | Shell | apache-2.0 | 596 |
#!/usr/bin/env bash
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
set -eo pipefail
REPO_ROOT=$(cd $(dirname "${BASH_SOURCE[0]}") && cd "$(git rev-parse --show-toplevel)" && pwd)
source ${REPO_ROOT}/build-support/common.sh
PANTS_EXE... | dbentley/pants | build-support/bin/publish_docs.sh | Shell | apache-2.0 | 2,644 |
#!/bin/bash
# Extract only the UKIDSS Zooniverse data from larger data dump
# K. Willett, UMN, 06 Nov 2013
OLDFILE=$1
OF1=${OLDFILE%.*}"_temp"
NEWFILE=${OLDFILE%.*}"_ukidss.csv"
# Delete lines with no responses for UKIDSS question 0
cut -d, -f1-5,36-47 $OLDFILE > $OF1
sed '/[en|zh|es]","a-/!d' $OF1 > $NEWFILE
re... | willettk/ukidss | extract_ukidss.sh | Shell | apache-2.0 | 757 |
#!/bin/sh
mysql -u weblogen -p -B weblogen < create_db.mysql
| leuschel/logen | weblogen/backend/create_db.sh | Shell | apache-2.0 | 62 |
#!/usr/bin/env bash
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | cloudera/hue | tools/ci/check_for_website_dead_links.sh | Shell | apache-2.0 | 1,791 |
#!/bin/sh
cd `dirname $0`
exec erl -pa $PWD/ebin $PWD/deps/*/ebin $PWD/deps/*/deps/*/ebin -boot start_sasl -s api -mnesia dir '"db/dev"'
| finder/erl_auth | web/start.sh | Shell | apache-2.0 | 137 |
#!/bin/bash
# Generates protobuf Go datastructures from the proto directory.
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
PROTOBUF_DIR=${PROTOBUF_DIR-${ROOT_DIR}/proto}
PROTOGEN_DIR=protogen
GENERATION_DIR=${GENERATION_DIR-${ROOT_DIR}/${PROTOGEN_DIR}}
IMPORT_PREFIX="github.com/improbable-eng/kedge/${... | mwitkow/kedge | scripts/protogen.sh | Shell | apache-2.0 | 1,667 |
#!/bin/sh
cd ..
. ./setEnv.sh
RUN_CMD="$JAVA_HOME/bin/java $MEM_ARGS -cp $CLASSPATH twitter4j.examples.listsubscribers.ShowUserListSubscription"
echo $RUN_CMD ${1+"$@"}
exec $RUN_CMD ${1+"$@"}
| twitter/twitter4j | twitter4j-examples/bin/listsubscribers/showUserListSubscription.sh | Shell | apache-2.0 | 194 |
#!/bin/bash
#
# start_proxy.sh
# Copyright (C) 2018 jack <jack@vm10.davidandjack.cn>
#
# Distributed under terms of the MIT license.
#
socat "TCP-LISTEN:443,fork,reuseaddr,su=nobody" "TCP6:chexie.net:443" &
| CAPU-ENG/CAPU-SA | js/start_proxy.sh | Shell | apache-2.0 | 208 |
#!/usr/bin/env bash
set -u
EXIT_CODE=0
echo "========================================="
echo "nosetests -a '!requires_sudo' output"
echo "========================================="
nosetests -a '!requires_sudo' tests $NOSEOPTS || EXIT_CODE=$(($EXIT_CODE || $?))
echo EXIT_CODE no_sudo nosetests = $EXIT_CODE
[[ -f .c... | Azure/WALinuxAgent | ci/nosetests.sh | Shell | apache-2.0 | 784 |
#!/bin/bash
#
#3> <> prov:specializationOf <https://github.com/timrdf/csv2rdf4lod-automation/blob/master/bin/cr-create-versioned-dataset-dir.sh>;
#3> prov:wasDerivedFrom <https://github.com/timrdf/csv2rdf4lod-automation/blob/master/bin/cr-create-versioned-dataset-dir.sh>;
#3> # ONLY uncomment this is your scrip... | timrdf/csv2rdf4lod-automation | bin/cr-create-versioned-dataset-dir.sh | Shell | apache-2.0 | 14,512 |
#!/bin/bash
set -eu
. $(dirname $0)/utils.sh
set -v
cd staging.git
STAGING_MASTER=`git log -1 --pretty=oneline master`
STAGING_TAGS=`git tag`
cd ..
cd "$GIT_REPOSITORY"
# Pushes master branch from staging
test "$STAGING_MASTER" = "`git log -1 --pretty=oneline master`"
# Pushes tags from staging
test "$STAGING_TAGS" ... | orfjackal/jumi-scripts | test/check-publish.sh | Shell | apache-2.0 | 334 |
#!/bin/sh
export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"
export SCALA_HOME="/usr/local/scala"
export JAVA="$JAVA_HOME/bin/java"
export SCALA="$SCALA_HOME/bin/scala"
export PATH="$JAVA_HOME/bin:$SCALA_HOME/bin:/usr/local/mysql/bin:$PATH"
export MYSQL_CONNECTOR_JAR="/Users/admin/etherpad/lib/mysql-co... | lgadi/ethelect | conf.sh | Shell | apache-2.0 | 415 |
#!/bin/bash -e
SCRIPT=$(basename $0)
error_exit() {
local message=$1
if [[ -n $message ]]; then
echo $message &>2
echo &>2
fi
echo "Usage: ${SCRIPT} --cloudferry-path <CLOUDFERRY SOURCES PATH> --user <VAGRANT USER>"
exit 1
}
run() {
echo "Running '$*' as '$VAGRANT_USER'"
... | andybondar/CloudFerry | devlab/provision/cloudferry.sh | Shell | apache-2.0 | 1,434 |
#! /bin/bash
python gen_scripts/SQLITEContractGen.py --packagename=org.frc836.database --classname=FRCScoutingContract --infile=FRC_Scouting_Server/scouting.sql --outfile=app/src/main/java/org/frc836/database/FRCScoutingContract.java
python gen_scripts/StatsStructGen.py --packagename=org.frc836.database --classname=M... | username115/FRCScouting | GenerateClasses.sh | Shell | apache-2.0 | 711 |
#!/bin/bash
source $POWERTRAIN_DIR/var/VPN.sh
VBOX=$(netstat -nr | grep vboxnet)
if [[ "$VPN" == "false" && -z "$VBOX" ]]; then
while read interface; do
FOO=$(ifconfig $interface | grep "192.168")
if [ ! -z "$FOO" ]; then
echo "Updating route to interface $interface"
sudo ... | carsdotcom/powertrain | scripts/machineRoute.sh | Shell | apache-2.0 | 462 |
#!/bin/sh
# SUMMARY: Test build and insertion of kernel modules
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
IMAGE_NAME="kmod-test"
clean_up() {
docker rmi ${IMAGE_NAME} || true
find . -iname "kmod*" -not -iname "*.yml" -exec rm -rf {... | samoht/linuxkit | test/cases/020_kernel/010_kmod_4.9.x/test.sh | Shell | apache-2.0 | 634 |
#!/usr/bin/env zsh
# @Author: Patrick Bos
# @Date: 2016-11-16 16:54:41
# @Last Modified by: E. G. Patrick Bos
# @Last Modified time: 2017-06-20 17:44:28
# Run a few short scaling total timing tests
export run_id="unbinned_scaling2_xx_quick_test_$(date +%s)"
export run_script_name="run_root_unbinned_scaling2.sh"
... | roofit-dev/parallel-roofit-scripts | profiling/numIntSet_timing/config_unbinned_scaling2_xx_quick_test.sh | Shell | apache-2.0 | 2,732 |
#!/bin/bash
set -eu
set -o pipefail
# The kernel versions we want to run the tests on
readonly kernel_versions=("4.9.96")
# The rkt version which is set as a dependency for
# the custom stage1-kvm images
readonly rkt_version="1.30.0"
# Directory where this file is, used in the example below
readonly dir="$(cd "$(di... | kinvolk/stage1-builder | examples/semaphore.sh | Shell | apache-2.0 | 2,441 |
#!/bin/bash
crowd_url="http://www.atlassian.com/software/crowd/downloads/binary/atlassian-crowd-2.6.2-war.zip"
crowd_openid_url="http://www.atlassian.com/software/crowd/downloads/binary/atlassian-crowd-openid-2.6.2-war.zip"
test -f crowd.war || curl --silent --location --output crowd.war ${crowd_url}
te... | tomduckering/war-huh | get_crowd.sh | Shell | apache-2.0 | 416 |
#!/bin/bash
CURDIR=$PWD
TMPDIR=$CURDIR/tmp$UID
PROJECT_DIR=$CURDIR/../..
# Update submodules
cd $PROJECT_DIR && git submodule update --init
if [[ -z $? ]]; then
echo "git submodule failed"
exit 1
fi
cd $CURDIR
PINK_PATH=$PROJECT_DIR/third/pink
SLASH_PATH=$PROJECT_DIR/third/slash
make -C $SLASH_PATH/slash
if [[ -... | CatKang/zeppelin-client | libzp/libzp/make_libzp_withdeps.sh | Shell | apache-2.0 | 1,255 |
#!/bin/sh
mkdir colors
cp SublimeMonokai.xml colors
touch IntelliJ\ IDEA\ Global\ Settings
jar cfM SublimeMonoKai.jar IntelliJ\ IDEA\ Global\ Settings colors
rm -r colors
rm IntelliJ\ IDEA\ Global\ Settings
| JoeYZXd/sublime-monokai-theme | Intellij Idea/buildjar.sh | Shell | apache-2.0 | 210 |
# Super Bash plugin - Z
# Author: Laurent Pireyn
if [[ -r "${SUPER_BASH}/ext/z/z.sh" ]]; then
# shellcheck disable=SC1090
source "${SUPER_BASH}/ext/z/z.sh"
else
logWarning "Z not found: ${SUPER_BASH}/ext/z/z.sh"
fi
| lpireyn/super-bash | plugins/z.plugin.bash | Shell | apache-2.0 | 228 |
#!/usr/bin/env bash
PACKAGEDIR=$(cd $(dirname $0)/../../; pwd -P);
cd $PACKAGEDIR;
[[ ! -e package.json ]] && {
echo "Unable to install husky commit hooks..."
echo "package.json not found at $PACKAGEDIR"
exit
}
[[ ! -e .git ]] && [[ ! -e ../.git ]] && {
echo "Unable to install husky commit hooks..."
echo "... | spinnaker/deck | packages/pluginsdk/scripts/husky-install.sh | Shell | apache-2.0 | 983 |
#!/usr/bin/env bash
#
# Copyright 2012-2019 OpenEstate.org
#
# 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... | OpenEstate/OpenEstate-Tool-HelloWorld | mvn-release.sh | Shell | apache-2.0 | 738 |
# -----------------------------------------------------------------------------
#
# Package : original
# Version : 1.0.2
# Source repo : https://github.com/unshiftio/original
# Tested on : RHEL 8.3
# Script License: Apache License, Version 2 or later
# Maintainer : BulkPackageSearch Automation <sethp@us.ibm.com>
#
# Di... | ppc64le/build-scripts | o/original/original_rhel_8.3.sh | Shell | apache-2.0 | 3,054 |
#!/bin/bash
if [[ `uname` == "Darwin" ]]; then
THIS_SCRIPT=`python -c 'import os,sys; print os.path.realpath(sys.argv[1])' $0`
else
THIS_SCRIPT=`readlink -f $0`
fi
THIS_DIR="${THIS_SCRIPT%/*}"
BASE_DIR=$(cd $THIS_DIR/.. && pwd)
CONF_DIR="${BASE_DIR}/conf"
LIB_DIR="${BASE_DIR}/lib"
export CLASSPATH="$... | NationalSecurityAgency/timely | server/bin/get-metric-split-points.sh | Shell | apache-2.0 | 850 |
#!/bin/bash
##### DO NOT EDIT BY HAND This is generated by maven #########
CLASSPATH=.:${project.build.finalName}.jar
MAIN_CLASS=org.imirsel.nema.flowservice.FlowServiceApp
CWD=`pwd`
HOST=${nema.deployment.hostname}
FLAG="-Dava.rmi.server.logCalls=true -Djava.rmi.server.codebase=file:///$CWD/lib -Djava.rmi.server.hostn... | kumaramit01/FlowService | run-console.sh | Shell | apache-2.0 | 590 |
#! /bin/sh
awk '{sum+=$3} END {print sum}' $1
| toonn/bdap-proj4 | src/total_revenue.sh | Shell | bsd-2-clause | 46 |
#!/bin/sh
IP_ADDR=`ipconfig getifaddr en0`
echo "============================================"
echo "Connect tablet to ip address: $IP_ADDR "
echo "============================================"
/opt/osp/osp -a -t
| dhimnsen/OpenSpeechPlatform-UCSD | xcode/osp/scripts/run_rear_on_afc_off.sh | Shell | bsd-2-clause | 221 |
#!/bin/bash
BINARY=BoltzTrap
BINARY_HOME=$PREFIX/bin
export F90=gfortran
cd $SRC_DIR/src
make
cp BoltzTraP $BINARY_HOME
cp x_trans $BINARY_HOME
| materialsvirtuallab/materials.sh | conda-skeletons/boltztrap/build.sh | Shell | bsd-3-clause | 149 |
#!/bin/bash -e
set -x
# Written by Cantab Research Ltd for use by American Public Media (APM), May 2014.
# Dependencies: Julius, CMUseg_0.5, sox, ffmpeg.
PREFIX=$(dirname $0)
AMDIR=$PREFIX/etc/am
LMBASE=$PREFIX/etc/lm/default
JCONF=$PREFIX/etc/mjulius.jconf
TMPDIR=/var/extra/audio/work
QUEUE=true
WPAIR=false ... | APMG/audio-search | julius-cantabAPM.sh | Shell | bsd-3-clause | 3,707 |
#!/bin/sh -e
die() {
$ECHO "$@" 1>&2
exit 1
}
roundTripTest() {
if [ -n "$3" ]; then
local_c="$3"
local_p="$2"
else
local_c="$2"
fi
rm -f tmp1 tmp2
$ECHO "roundTripTest: ./datagen $1 $local_p | $ZSTD -v$local_c | $ZSTD -d"
./datagen $1 $local_p | $MD5SUM > tmp1... | ds77/zstd | tests/playTests.sh | Shell | bsd-3-clause | 13,960 |
#!/bin/bash
# author: Liang Gong
if [ "$(uname)" == "Darwin" ]; then
# under Mac OS X platform
NODE='node'
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
# under GNU/Linux platform
NODE='nodejs'
fi
cd directory-traversal/uv-tj-demo
RED='\033[0;31m'
BLUE='\033[0;34m'
GREEN='\033[0;3... | JacksonGL/NPM-Vuln-PoC | directory-traversal/uv-tj-demo/PoC.sh | Shell | bsd-3-clause | 861 |
#!/bin/bash
# Copyright (c) 2011 The Tupler Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. See the AUTHORS file for names of contributors.
#
# Author: Hector Gonzalez (hagonzal@gmail.com)
#
# Fixes dependencies on a .d file
# Example:... | hagonzal/Tupler | dev_scripts/fix_dep.sh | Shell | bsd-3-clause | 794 |
#!/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.
#
#@ PNaCl toolchain build script
#@-------------------------------------------------------------------
#@ This script bu... | yantrabuddhi/nativeclient | pnacl/build.sh | Shell | bsd-3-clause | 31,727 |
#!/bin/bash
$(dirname $(readlink -f $0))/mpa.bash restart
exit $?
| cyosp/MPA | run/mpa_restart.bash | Shell | bsd-3-clause | 68 |
#!/bin/csh
#module load pgi
#module load cuda
#module load openmp/1.10.2-pgi
#module unload gcc
echo compiling game of life
rm -rf CMakeFiles
rm CMakeCache.txt
rm *.o
make
# mpi run new file
#mpirun --report-bindings -np 4 ./gameOfLife
#mpiexec -np 4 -H cn85,cn84 --bind-to core --npernode 2 ./gameOfLife
#mpirun -np 4... | pnkelly/GPULife | testing/build.sh | Shell | bsd-3-clause | 445 |
#!/bin/bash -e
install -m 644 files/sources.list "${ROOTFS_DIR}/etc/apt/"
install -m 644 files/raspi.list "${ROOTFS_DIR}/etc/apt/sources.list.d/"
if [ -n "$APT_PROXY" ]; then
install -m 644 files/51cache "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
sed "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache" -i -e "s|APT_PROXY|${A... | timcoote/Pumpkin-gen | stage0/00-configure-apt/00-run.sh | Shell | bsd-3-clause | 647 |
#!/bin/bash
#display commands
set -x
THEME='./magazine'
cd $THEME/js
cat jquery.js modernizr.js foundation.min.js medium-editor.js classList.js jquery.cookie.js > libs.js
cat ../../../lib/string.js ourjs.js > prod.js
cd ../../
cd $THEME/css
cat normalize.css foundation.min.css font-awesome.css > libs.css
cat medium-... | wspandihai/ourjs | web/build.magazine.sh | Shell | bsd-3-clause | 699 |
#!/bin/bash
#
# ======= TEMPLATE GAMS-CPLEX Header ========
# No printf parameters
#
# Simple BASH script to run and time a series of GAMS jobs to compare the run
# time of binary vs clustered unit commitment both with and without capacity
# expansion decisions
#
# To actually submit the job use:
# qsub SCRIPT_NA... | bpalmintier/mepo | models/config/ercot_yr_2.sh | Shell | bsd-3-clause | 12,083 |
phantomjs capture.js
open figures/
| romsson/d3-gridding | example/capture/runCapture.sh | Shell | bsd-3-clause | 36 |
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
# If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
# frameworks to, so exit 0 (signalling the script phase was successful).
exit 0
fi
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_P... | kuyazee/TTGSnackbar | TTGSnackbarOCExample/Pods/Target Support Files/Pods-TTGSnackbarOCExample/Pods-TTGSnackbarOCExample-frameworks.sh | Shell | mit | 7,007 |
#!/bin/bash
set -ex
main() {
local target=
if [ $CIRRUS_OS = linux ]; then
target=x86_64-unknown-linux-musl
else
target=x86_64-apple-darwin
fi
# Builds for iOS are done on OSX, but require the specific target to be
# installed.
IFS=';' read -ra TARGET_ARRAY <<< "$TARGET"
... | geofft/nix-rust | ci/install.sh | Shell | mit | 1,454 |
#!/bin/bash
if [[ $# -ne 1 ]];
then
echo "Incorrect usage"
echo "Correct usage: $0 <slack_channel_to_post_to>"
exit 1
fi
DIRECTORY=$(dirname ${BASH_SOURCE[0]})
source $DIRECTORY/source-environment.sh
SLACK_CHANNEL=$1
curl -f http://localhost:8001/alive &> /dev/null
if [[ $? -ne 0 ]];
then
# Server is down
... | thegazelle-ad/gazelle-front-end | deployment-resources/scripts/check-server-health.sh | Shell | mit | 929 |
#!/bin/bash
while true; do
echo "Chop!"
sleep 5
done
| renajohn/ads | doc/samples/intro/ninja/ninja.sh | Shell | mit | 62 |
zmodload zsh/zpty
| KenPowers/dotfiles | lib/modules.zsh | Shell | mit | 18 |
#!/bin/bash
# Check if all source files have the correct license
LICENSE=$1
TYPES="c cpp h cl"
IGNORE=$(cat .LICENSE_IGNORE.txt)
LICENSE_LEN=$(cat LICENSE.txt | wc -l)
echo "-------------------------------------"
echo "-- CHECKING LICENSE of all $TYPES --"
echo "-------------------------------------"
echo "-- IGNO... | lorenzoditucci/sda_examples_aws | vector_addition/makefile_vector_add/makefile_sda_repo/utility/check_license.sh | Shell | mit | 1,231 |
#!/bin/bash
#http://localhost:9080/res
#http://localhost:9080/loan-server/
RESURL="localhost:9080/res"
APIVER="/api/v1/ruleapps"
# This script sets emission properties, including input and output parameters, and trace, for the following rulesets used in the loan-server sample
# /test_deployment/1.0/loan_validation_... | lgrateau/ODM-on-Docker | contrib/bai-singlenode/set-loan-server-props.sh | Shell | mit | 3,314 |
#!/bin/sh -ex
if [ -z "$PREFIX" ]; then
PREFIX="`opam config var prefix`/lib/gmp-freestanding"
fi
PKG_CONFIG_DEPS="ocaml-freestanding"
check_deps () {
pkg-config --print-errors --exists ${PKG_CONFIG_DEPS}
}
if ! check_deps 2>/dev/null; then
# rely on `opam` if deps are unavailable
export PKG_CONFIG_PATH="`opam... | michipili/opam-repository | packages/gmp-freestanding/gmp-freestanding.6.0.0/files/mirage-build.sh | Shell | cc0-1.0 | 1,223 |
#!/bin/sh
# cd trawler/
perl bin/trawler.pl -dir_id expl1 -sample examples/REB1_YPD.fsa -background examples/background_yeast_Young_6k.fsa
exit 0
| Ramialison-Lab-ARMI/Trawler-2.0 | run_trawler.sh | Shell | gpl-2.0 | 148 |
#!/bin/sh
#
# Trivial script to rebuild drivers for ABI changes in the server
# Run me after a new xserver has hit the buildroot
builddir="abi-rebuild"
if [ -e "$builddir" ]; then
echo "Path '$builddir' exists. Move out of the way first"
exit 1
fi
mkdir -p $builddir
pushd $builddir
if git config --get remot... | MagicGroup/MagicSPECS | SPECS.x/xorg-x11-server/driver-abi-rebuild.sh | Shell | gpl-2.0 | 1,292 |
#!/bin/bash
# Location of unitinfo.txt
FAH="/opt/foldingathome/client1/unitinfo.txt"
if [ -f $FAH ]
then
sed -e 's/^Name:.\(.\{20\}\).*$/name = \1.../' -e 's/Progress:/progres/' -e 's/Due time:/due =/' -e 's/Download time:/downloaded =/' -e '/^Current/d' -e '/^-/d' $FAH
fi
exit 0
| wimac/projects | dotfiles/.config/openbox/scripts/fah_status.sh | Shell | gpl-2.0 | 291 |
#!/bin/sh
server='localhost'
if [ -z $CONFIGDIR ]
then
export CONFIGDIR=/etc/local/
fi
DBuser=$(echo `grep '^DBuser ' $CONFIGDIR/SWSconfig.ini` | sed 's/=//g' | sed 's/^DBuser //g')
DBpasswd=$(echo `grep '^DBpasswd ' $CONFIGDIR/SWSconfig.ini` | sed 's/=//g' | sed 's/^DBpasswd //g' | sed 's/ //g' )
DBpath=$(... | acasadoalonso/SWiface | sh/SWsyncDB.sh | Shell | gpl-2.0 | 779 |
#!/bin/sh
filename=$(basename "$1")
extension="${filename##*.}"
filename="${filename%.*}"
gnuplot -p -e "set terminal pdf;set output '$filename.pdf';unset key;set yrange [0:*];plot '$1'"
| yanesca/cleanbkz | plot_boundary.sh | Shell | gpl-3.0 | 189 |
#!/bin/sh
# Simple helper script to create a plugin directory.
# Nothing more, nothing less.
if [ -z "$1" ]; then
read -p "Plugin class: " CLASS
read -p "Plugin name: " PLUGIN
elif [ -z "$2" ]; then
CLASS="$1"
read -p "Plugin name: " PLUGIN
else
CLASS="$1"
PLUGIN="$2"
fi
PDIR="$CLASS/$PLUGIN"
PFILE="$PDIR/$PLU... | AnzenSolutions/ASWCP-Web | plugins/creater.sh | Shell | mpl-2.0 | 1,331 |
docker exec -it mediadocker_dbmedia_1 mysql -u mediaserver -pmediaserver -e "select count(*) from media.MEDIA"
| DINA-Web/dw-media | self-test/db_count.sh | Shell | agpl-3.0 | 111 |
#!/bin/bash
set -e
check_version() {
VER=$(docker-compose version --short)
if [ "$VER" = "1.5.1" ]; then
# Known to have bugs when generating configs.
cat >&2 <<EOF
Your docker-compose version is known to have bugs that make Portus unusable. The
known affected version(s) are:
- 1.5.1
Updating or downgrading to ... | vpereira/Portus | compose-setup.sh | Shell | apache-2.0 | 4,662 |
#!/bin/bash
# $1 - name of the box to use for import
vagrant box add archive/package.box --name $1
vagrant init $1
| samtstern/android-vagrant | management/import.sh | Shell | apache-2.0 | 115 |
#!/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"); yo... | apache/incubator-shardingsphere | shardingsphere-distribution/shardingsphere-proxy-distribution/src/main/resources/bin/start.sh | Shell | apache-2.0 | 3,467 |
#!/bin/bash
source ../common.sh
$KUBECTL_NAME delete -f deps.yaml
cat pod.yaml | $KUBECTL_NAME exec -i k8s-appcontroller kubeac wrap pod1 | $KUBECTL_NAME delete -f -
cat pod2.yaml | $KUBECTL_NAME exec -i k8s-appcontroller kubeac wrap pod2 | $KUBECTL_NAME delete -f -
$KUBECTL_NAME delete -f ../../appcontroller.yaml
| istalker2/k8s-AppController | examples/on-error-subgraph/delete.sh | Shell | apache-2.0 | 320 |
#!/bin/bash
#
# Copyright 2015 The Bazel 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 required by... | dropbox/bazel | src/test/shell/bazel/bazel_sandboxing_cpp_test.sh | Shell | apache-2.0 | 7,068 |
#!/usr/bin/env bash
bold() {
echo ". $(tput bold)" "$*" "$(tput sgr0)";
}
err() {
echo "$*" >&2;
}
source ./properties
if [ -z "$PROJECT_ID" ]; then
err "Not running in a GCP project. Exiting."
exit 1
fi
bold "Starting the setup process in project $PROJECT_ID..."
bold "Creating a service account $SERVICE_... | duftler/spinnaker | codelabs/gke-source-to-prod/install/setup.sh | Shell | apache-2.0 | 4,018 |
#!/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
# "Li... | jnhagelberg/incubator-atlas | distro/src/conf/atlas-env.sh | Shell | apache-2.0 | 3,231 |
#!/bin/bash
# TBD: load apks on emulator
#
| ggfan/android-ndk | .ci_tools/run_samples.sh | Shell | apache-2.0 | 44 |
curl http://localhost:8082/solr/query?q=*:*
| fhopf/solr-facet-example | example-scripts/query-all.sh | Shell | apache-2.0 | 44 |
#!/bin/bash -eu
# Copyright 2016 The TensorFlow 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 req... | annarev/tensorflow | tensorflow/tools/ci_build/devtoolset/build_devtoolset.sh | Shell | apache-2.0 | 5,428 |
#!/bin/bash
#
# Start up rrdcache
/etc/init.d/rrdcached start
| robellison/docker-librenms | bin/my_init.d/rrdcached.sh | Shell | bsd-2-clause | 63 |
#!/bin/bash
rm -f bin/*-core bin/lexgen bin/rsl-decompiler lib/*.dll lib/*.so
rm -f lib/*.*-prefix
| Mazdaywik/simple-refal-distrib | clear.sh | Shell | bsd-2-clause | 99 |
post_install() {
systemctl reload nginx
}
post_upgrade() {
systemctl reload nginx
}
post_remove() {
systemctl reload nginx
}
| k0nsti/konsum-frontend | pacman/install.sh | Shell | bsd-2-clause | 131 |
#!/bin/bash
#
# usage: ./cachestress.sh <arguments>
{ echo "create table b (i integer, r real)";
export count=1;
while true; do
if [ $count -ge 1000000 ]; then
count=1;
fi
for f in 1 2 3 4 5 6 7 8 9 10; do
i=$((count++));
echo "insert into b values ('$i', '$i.0')";
done;
done; } | ./cacheclient -l packets $*... | fergul/Cache | src/scripts/cachestress.sh | Shell | bsd-3-clause | 321 |
#!/bin/sh
#
# Copyright (c) 2016, The OpenThread Authors.
# 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, thi... | fbsder/openthread | .travis/before_install.sh | Shell | bsd-3-clause | 5,149 |
#!/bin/bash -ef
echo "Working around PyQt5 bugs"
# https://github.com/ContinuumIO/anaconda-issues/issues/9190#issuecomment-386508136
# https://github.com/golemfactory/golem/issues/1019
sudo apt update
sudo apt install libosmesa6 libglx-mesa0 libopengl0 libglx0 libdbus-1-3 \
libxkbcommon-x11-0 libxcb-icccm4 libxcb-ima... | pravsripad/mne-python | tools/circleci_dependencies.sh | Shell | bsd-3-clause | 2,992 |
# OSX-only stuff. Abort if not OSX.
is_osx || return 1
# Exit if Homebrew is not installed.
[[ ! "$(type -P brew)" ]] && e_error "Brew recipes need Homebrew to install." && return 1
# Homebrew recipes
recipes=(
ansible
awscli
bash
cmatrix
coreutils
cowsay
git
git-extras
htop-osx
hub
id3tool
jq... | whizzzkid/dotfiles | init/30_osx_homebrew_recipes.sh | Shell | mit | 1,412 |
#!/usr/bin/env bash
# This script builds and runs the unit tests and produces output in a format that is compatible with Jenkins.
base=`dirname $0`
echo "$base"
pushd "$base/.." > /dev/null
build="$PWD/test-build"
ocunit2junit="$base/OCUnit2JUnit/bin/ocunit2junit"
popd > /dev/null
sym="$build/sym"
obj="$build/obj"
... | mz2/KSFileUtilities | TestKSFileUtilities/test.sh | Shell | mit | 629 |
#!/bin/sh
editcmd='/COMPILER_FLAGS/a\
SCRIPTFLAG=WithMakefileDir'
sed -e "$editcmd" <$1 >$2
| BotondBaranyi/titan.core | regression_test/compileonly/mfgen-tpd/makefileScript/WithMakefileDir/command.sh | Shell | epl-1.0 | 94 |
#!/bin/sh
for i in *.het
do
../../hets -v2 -A --relative-positions -o th,pp.xml,xml $i
done
git --no-pager diff ParameterSpecTest_X_inv.th ParamView.pp.xml ParamView.xml
| keithodulaigh/Hets | test/ParameterSpecTest/run.sh | Shell | gpl-2.0 | 174 |
#!/bin/bash
######################
# Author: TSRK Prasad
# Date: 28-Sep-2017
# Previous Versions: 18-Sep-2016
#
# script fragment used for run-time tests
# used by ../../execute.sh; not invoked directly
#
# All variables that are exported are in upper case convention. They are:
# COMPILATION_STATUS : compilation stat... | prasadtalasila/JavaAutolab | docs/examples/io_tests/test_cases/python3/setup/compile.sh | Shell | gpl-2.0 | 1,446 |
#!/bin/bash
## Run the 'flake8' code quality/style-guide checking tool
## over the AVA codebase.
## This script can be run on its own (although you will have to
## 'pip install flake8' first) or it is run as part of the unit
## test suite.
## When run in the context of the unit test suite it's done
## inside the doc... | cnbird1999/ava | bin/flake8-checks.sh | Shell | gpl-2.0 | 690 |
#!/usr/bin/env bash
##
# Build and push images to Dockerhub.
#
# Namespace for the image.
DOCKERHUB_NAMESPACE=${DOCKERHUB_NAMESPACE:-govcms}
# Docker image version tag.
IMAGE_VERSION_TAG=${IMAGE_VERSION_TAG:-}
# Docker image tag prefix to be stripped from tag. Use " " (space) value to
# prevent stripping of the versio... | tobybellwood/govCMS | .docker/push.sh | Shell | gpl-2.0 | 1,950 |
#!/bin/sh
# Copyright (C) 2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public Licens... | akiradeveloper/lvm2 | test/shell/unknown-segment.sh | Shell | gpl-2.0 | 1,277 |
#! /bin/sh
. ../../testenv.sh
GHDL_STD_FLAGS=--std=08
analyze decl1.vhdl
analyze ent1.vhdl
elab_simulate ent1
clean
echo "Test successful"
| emogenet/ghdl | testsuite/gna/ticket53/testsuite.sh | Shell | gpl-2.0 | 144 |
# This program is copyright © 2008 Eric Bishop and is distributed under the terms of the GNU GPL
# version 2.0 with a special clarification/exception that permits adapting the program to
# configure proprietary "back end" software provided that all modifications to the web interface
# itself remain covered by the GPL... | ivyswen/gargoyle | package/gargoyle/files/usr/lib/gargoyle/reboot.sh | Shell | gpl-2.0 | 776 |
make ARCH=arm clean
make ARCH=arm CROSS_COMPILE=$TCHAIN -C drivers/net/wireless/compat-wireless_R5.SP2.03 KLIB=`pwd` KLIB_BUILD=`pwd` clean
| Alex-V2/Alex-V_SE_OneX | android_clean.sh | Shell | gpl-2.0 | 142 |
#!/bin/bash
set -e
# Global variables:
# ${GV_LOG}: Prefix this variable in echo to log echoed string.
# ${GV_SETTINGS_DIR}: Hold settings data.
# ${GV_BINARY_DIR}: Hold settings binary data.
SCRIPT_NAME="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")"
echo "${GV_LOG}>>>>>>>>> Running ${SCRIPT_NAME} ..."... | bankonme/cust-live-deb | scripts/repository/inst-min-win-systray-volumeicon-alsa.sh | Shell | gpl-2.0 | 921 |
#!/bin/bash
set -e
set -x
. config.env
pushd ../../Common/Ubuntu/cmavnode
./install_cmavnode.sh
popd
| diydrones/companion | RPI2/Raspbian/6_setup_cmavnode.sh | Shell | gpl-3.0 | 104 |
#!/bin/sh
if [ $# -lt 1 ]
then
lng=fr_FR
else
lng=$1
fi
echo Creating messages for language $lng
xgettext $(find . -name '*.py' -and -not -name TextCtrlAutoComplete.py -and -not -path '*font*' -and -not -name '*fpdf*') -j -o locale/$lng/LC_MESSAGES/malodos.po
poedit locale/$lng/LC_MESSAGES/malodos.po | davguez/malodos | src/make_po.sh | Shell | gpl-3.0 | 310 |
#!/bin/sh
BIN_DIR=`dirname $0`
export FLASK_ENV="development"
. ${BIN_DIR}/common.sh
setup no
flask $@
| one-love/api | bin/flask.sh | Shell | gpl-3.0 | 104 |
#!/bin/sh
#
# FreeBSD 32 (bessie32) CI script runner for GEOS
#
# Copyright (c) 2018 Regina Obe <lr@pcorp.us>
#
# This is free software; you can redistribute and/or modify it under
# the terms of the GNU Lesser General Public Licence as published
# by the Free Software Foundation.
# See the COPYING file for more inform... | libgeos/libgeos | tools/ci/bessie32.sh | Shell | lgpl-2.1 | 451 |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | twitter/heron | scripts/travis/test.sh | Shell | apache-2.0 | 3,759 |
#!/bin/bash
python reverse_etl.py
| nvoron23/hadoop-arch-book | ch11-data-warehousing/03_reverse_etl.sh | Shell | apache-2.0 | 34 |
# execute simple cmds
# --output:start
# hey, hello world there
# hello
# hey hello
# hello you
# hello hello
# one| |two
# --output:end
t = "hello"
q = ["one", "two"]
echo "hey, ${t + \" world\"} there"
echo "${t}"
echo "hey ${t}"
echo "${t} you"
echo "${t} ${t}"
echo "${q[0]}| |${q[1]}"
| alexst07/seti | test/interpreter/cmds/string.sh | Shell | apache-2.0 | 319 |
# deletes and recreates a status index with a bespoke schema
curl -s -XDELETE 'http://localhost:9200/status/' > /dev/null
echo "Deleted status index"
# http://localhost:9200/status/_mapping/status?pretty
echo "Creating status index with mapping"
curl -s -XPUT localhost:9200/status -d '
{
"settings": {
"index":... | anjackson/storm-crawler | external/elasticsearch/ES_IndexInit.sh | Shell | apache-2.0 | 2,909 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.