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 |
|---|---|---|---|---|---|
#! /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 "Licen... | adamjshook/accumulo | assemble/bin/LogForwarder.sh | Shell | apache-2.0 | 2,457 |
#!/bin/bash
function INFO(){
echo -e "\e[104m\e[97m[INFO]\e[49m\e[39m $@"
}
function IMPORTANT(){
echo -e "\e[105m\e[97m[IMPORTANT]\e[49m\e[39m $@"
}
function SLEEP(){
echo -n $(INFO "Sleeping(${1} secs)..")
sleep ${1}
echo "Done"
}
function PAUSE(){
TMP=$(mktemp /tmp/namazu-wait.XXXXX)
... | osrg/namazu | example/template/materials/lib.sh | Shell | apache-2.0 | 419 |
#!/bin/sh
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This script signs the Chromoting binaries, builds the Chrome Remote Desktop
# installer and then packages it into a .dmg. It requires that ... | gx1997/chrome-loongson | remoting/host/installer/mac/do_signing.sh | Shell | bsd-3-clause | 4,260 |
#!/bin/sh
set -e
bundle exec rails db:create
bundle exec rails db:migrate
| gazayas/tebukuro | script/deploy-tasks.sh | Shell | bsd-3-clause | 76 |
bundle exec ruby bin/puma \
-t 4 -b "ssl://localhost:9292?key=examples%2Fpuma%2Fpuma_keypair.pem&cert=examples%2Fpuma%2Fcert_puma.pem&verify_mode=none" \
test/rackup/realistic_response.ru &
PID1=$!
sleep 5
wrk -c 4 -d 30 --latency https://localhost:9292
kill $PID1
| looker/puma | benchmarks/wrk/ssl_realistic_response.sh | Shell | bsd-3-clause | 300 |
#!/bin/bash
# Verify the the working tree modifices no sql files relative to the main
# branch. This will always pass on a deploy because the working tree is an
# unmodified copy of the main branch.
target_treeish=${HAIL_TARGET_SHA:-$(git merge-base main HEAD)}
modified_sql_file_list=$(mktemp)
git diff --name-statu... | hail-is/hail | check-sql.sh | Shell | mit | 636 |
#!/bin/bash
#################################################################################################
#
# Licensed Materials - Property of IBM
# © Copyright IBM Corporation 2014. All Rights Reserved.
# This sample program is provided AS IS and may be used, executed, copied and modified without
# royalty p... | IBM-MIL/IBM-Ready-App-for-Retail | scripts/changeAppName.sh | Shell | epl-1.0 | 4,183 |
#!/bin/sh
if [ -z "$1" ]; then
echo "need a filename"
exit 1
fi
echo "Is $1 the Application you want to clean up? [y/N]"
read A
case $A in
[Yy]* )
echo "* Running cleanup"
;;
[Nn]* )
echo "Aborting..."
exit 1
;;
* )
echo you did not say yes or no;;
esac
echo "* Pre cleanup size:" $(du -sh $1 | awk '... | dffischer/Abraca | macosx/cleanup.sh | Shell | gpl-2.0 | 549 |
#!/bin/sh
$1 -e "use $2" 1>/dev/null 2>&1
echo $?
| churchcommunitybuilder/bombard | utils/check.sh | Shell | gpl-2.0 | 54 |
## this script is for updating htaccess files to limit entry 11-8-12. \
## purpose: user can direct password protection of admin/conf directories; entire xGDBvm website; or change MySQL password for user 'gdbuser'
## useage: sudo /xGDBvm/scripts/AdminSecurityUpdate.sh
## Assign directory ownership to Apache (NOT refle... | vpbrendel/xGDBvm | scripts/AdminSecurityUpdate.sh | Shell | gpl-3.0 | 673 |
#!/bin/sh
if [ "x${enable_prof}" = "x1" ] ; then
export MALLOC_CONF="prof:true,prof_active:true,lg_prof_sample:0,prof_stats:true"
fi
| arangodb/arangodb | 3rdParty/jemalloc/v5.2.1/test/unit/prof_stats.sh | Shell | apache-2.0 | 136 |
#!/bin/sh
sed -e 's/\(^.*#\) \(0x\w\+\)$/\2 \1/' "$@" | sort | sed -e 's/\(0x\w\+\) \(.*#\)$/\2 \1/'
| xranby/apitrace | specs/scripts/sort.sh | Shell | mit | 101 |
#!/bin/bash
# Make sure the id is here
if [ "$1" == "" ]
then
echo "Usage:\n test_pull_request.sh ID\n"
exit 1
fi
ID=$1
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
# "realpath" utility is not installed by default on all Linuxen and we need the true path
SCRIPTDIR=$(python2.7 -c 'import os,sys;print os.pa... | rambo/asylum | docker/test_pull_request.sh | Shell | mit | 1,199 |
#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d world_TEST_dir ] ; then
rm -fr world_TEST_dir
else
true
fi
| impulze/paludis | paludis/environments/paludis/world_TEST_cleanup.sh | Shell | gpl-2.0 | 130 |
# ltmain.sh - Provide generalized library-building support services.
# NOTE: Changing this file will not affect anything until you rerun ltconfig.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This program is free ... | unofficial-opensource-apple/gccfast | ltmain.sh | Shell | gpl-2.0 | 157,743 |
#!/bin/sh
cd "`dirname \"$0\"`"
if [ -f /usr/bin/mono ]
then
MONO=/usr/bin/mono
else
MONO=/usr/local/bin/mono
fi
EXITCODE="1"
while [ "$EXITCODE" = "1" ]; do
if [ -z "$1" ]
then
sudo $MONO --debug --debugger-agent="address=10.0.1.10:10000,transport=dt_socket,server=y" HomeGenie.exe
else
cd $1
sudo $MONO --... | mtanana/HomeGenie | BaseFiles/Linux/startup_debug.sh | Shell | gpl-3.0 | 482 |
#
# Get pool stats.
#
function getStats() {
require_pool
useSession=1
# Use vpooladmin to get stat output.
runVcaApp vpooladmin -stat
useSession=""
}
register_operation getStats 'Show pool statistics.'
require_exec vpooladmin
#
# Dump pool stats (machine-readable).
#
function dumpStats() {
g... | MichaelJCaruso/vision | software/testtools/poolTester/include/stats.sh | Shell | bsd-3-clause | 3,883 |
#!/usr/bin/env bash
set -e
CURRENTDIR=$(pwd)
DESTDIR=$(cd $(dirname ${BASH_SOURCE[0]}) && pwd)
TEMPDIR=$(mktemp -d 2> /dev/null || mktemp -d -t 'tmp')
cleanup () {
cd $CURRENTDIR
[ -d $TEMPDIR ] && rm -rf $TEMPDIR
}
trap cleanup INT TERM EXIT
git clone https://github.com/sockjs/sockjs-client.git $TEMPDIR
cd $T... | basarat/primus | transformers/sockjs/update.sh | Shell | mit | 510 |
#!/bin/bash
set -e
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
versions=( */ )
versions=( "${versions[@]%/}" )
downloadable=$(curl -sSL 'https://www.elastic.co/downloads/past-releases' | sed -rn 's!.*?/downloads/past-releases/(elasticsearch-)?[0-9]+-[0-9]+-[0-9]+">Elasticsearch ([0-9]+\.[0-9]+\.[0-9]+)<.*!\2!gp')... | vovimayhem/elasticsearch | update.sh | Shell | apache-2.0 | 533 |
#!/usr/bin/env bash
FAILED_CHECKS="0"
function add_fail() {
FAILED_CHECKS=1
echo ""
echo -e "\033[0;31m[FAILED]\033[0m"
}
function add_pass() {
echo ""
echo -e "\033[0;32m[PASSED]\033[0m"
}
echo ""
echo "Checking Twig namespace aliases"
echo "-------------------------------"
echo ""
grep -rn -P '... | romulo1984/bolt | tests/scripts/deprecation-check.sh | Shell | mit | 945 |
#!/bin/bash
# Copyright 2014 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... | shakamunyi/kubernetes | hack/e2e-suite/certs.sh | Shell | apache-2.0 | 1,698 |
#!/bin/bash
rm *.csv
awk '{system("python citations.py -y " $1 " -p " $2 " >> " $1 ".csv")}' inputs.txt
| joelsherrill/gci_tasks | 2018/citations/doit.sh | Shell | bsd-2-clause | 105 |
#!/bin/bash
FN="pd.bovgene.1.1.st_3.12.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.14/data/annotation/src/contrib/pd.bovgene.1.1.st_3.12.0.tar.gz"
"https://bioarchive.galaxyproject.org/pd.bovgene.1.1.st_3.12.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-pd.bovgene.1.1.st/bioconductor-... | cokelaer/bioconda-recipes | recipes/bioconductor-pd.bovgene.1.1.st/post-link.sh | Shell | mit | 1,337 |
#!/bin/bash
FN="pd.rg.u34a_3.12.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.14/data/annotation/src/contrib/pd.rg.u34a_3.12.0.tar.gz"
"https://bioarchive.galaxyproject.org/pd.rg.u34a_3.12.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-pd.rg.u34a/bioconductor-pd.rg.u34a_3.12.0_src_all.ta... | cokelaer/bioconda-recipes | recipes/bioconductor-pd.rg.u34a/post-link.sh | Shell | mit | 1,302 |
#!/bin/sh
# This script is designed to be used by Nagios. It checks for the availability of both Microsoft SQL Server 7 and 2000.
#
# Requirements:
#
# FreeTDS 6.0+ (http://www.freetds.org/)
#
# It was written by Tom De Blende (tom.deblende@village.uunet.be) in 2003.
#
# Version 1.0.
# Version 1.1: Rewritten the initi... | dnsmichi/nagiosplugins | contrib/check_mssql.sh | Shell | gpl-3.0 | 3,842 |
#!/bin/sh
# Ensure that rm -f existing-non-dir/anything exits successfully
# Copyright (C) 2006-2016 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 versi... | sunny256/coreutils | tests/rm/ignorable.sh | Shell | gpl-3.0 | 1,046 |
#!/bin/bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
(set -o igncr) 2>/dev/null && set -o igncr; # comment is needed
# Do anything in this script that will he... | adobe-flash/avmplus | build/buildbot/slaves/android-performance/scripts/prepare.sh | Shell | mpl-2.0 | 881 |
#!/bin/sh
if [ "x$TITANIUM_CLI_XCODEBUILD" == "x" ]; then NO_COLORS="--no-colors"; else NO_COLORS=""; fi
/usr/local/bin/node "/usr/local/bin/titanium" build --platform iphone --sdk 3.1.3.GA --no-prompt --no-banner $NO_COLORS --xcode
exit $?
| hopye/imcooldo | build/iphone/build/imcooldo.build/Debug-iphonesimulator/imcooldo.build/Script-241EAF36118E30260081A5BE.sh | Shell | apache-2.0 | 241 |
# rally.sh - DevStack extras script to install Rally
if is_service_enabled rally; then
if [[ "$1" == "source" ]]; then
# Initial source
source $TOP_DIR/lib/rally
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing Rally"
install_rally
elif [[ "$1" ... | ytsarev/rally | contrib/devstack/extras.d/70-rally.sh | Shell | apache-2.0 | 587 |
#
# Build a virtual machine that can be booted directly in VMWare.
#
# Usage:
# option VMWareName name
VMWARE_NAME="$1"
| rm4rty/crochet-freebsd | board/VMWareGuest/option/VMWareName/setup.sh | Shell | bsd-2-clause | 123 |
#!/bin/sh
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
. ../test_common.sh
. ${srcdir}/d4test_common.sh
set -e
echo "test_remote.sh:"
#BIG=1
#NOCSUM=1
F="\
test_atomic_array.nc \
test_atomic_types.nc \
test_enum.nc \
test_enum_2.nc \
test_enum_array.nc \
test_fill.nc \
test_groups1.nc \
test_misc1.nc \
test_one... | libMesh/libmesh | contrib/netcdf/netcdf-c-4.6.2/dap4_test/test_remote.sh | Shell | lgpl-2.1 | 1,896 |
#!/bin/sh
cp -r $RECIPE_DIR/../ .
"$PYTHON" setup.py install --single-version-externally-managed --record=record.txt
| menpo/serializablecallable | conda/build.sh | Shell | bsd-3-clause | 119 |
#!/bin/sh -eux
PREFIX=`opam config var prefix`
PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig"
export PKG_CONFIG_PATH
LDFLAGS=`pkg-config --libs gmp-xen`
export LDFLAGS
# WARNING: if you pass invalid cflags here, zarith will silently
# fall back to compiling with the default flags instead!
CFLAGS="`pkg-config --cflags gmp-x... | rizo/opam-repository | packages/zarith-xen/zarith-xen.1.7/files/mirage-install.sh | Shell | cc0-1.0 | 568 |
#!/bin/bash
APPURLS=("http://24.21.195.59/swiftp_proxy.tgz")
APPDIRECTORIES=("/swiftp_proxy")
LOGFILE="/tmp/startup.log"
UNPACKED_DIR="/dl_root"
###
NUMURLS=${#APPURLS[*]}
for (( I = 0 ; I <= $NUMURLS ; I++ ))
do
URL=$APPURLS[$I]
DIRECTORY=$APPDIRECTORIES[$I]
mkdir $DIRECTORY
cd $DIRECTORY
... | alcschultz/swiftp | cloud_server/ec2_start_script.sh | Shell | gpl-3.0 | 843 |
#!/bin/bash
# Tests based on Debian project ncbi-blast package
set -e
TMPDIR=$(mktemp -d)
trap "rm -rf $TMPDIR" 0 INT QUIT ABRT PIPE TERM
cp test.fa $TMPDIR
cd $TMPDIR
echo -n "Calculating N50 of test.fa:"
N50=$(n50 test.fa)
if [[ $N50 == '640' ]]; then
echo " $N50 [PASS]"
else
echo " $N50 != 640 [FAIL]"
exit 1... | jerowe/bioconda-recipes | recipes/n50/run_test.sh | Shell | mit | 324 |
#!/usr/bin/env bash
############################################################################
#
# reset-test-db.sh
#
# Resets the MySQL test database for the bok-choy acceptance tests.
#
# If it finds a cached schema and migration history, it will start
# from the cached version to speed up migrations.
#
# ... | xiandiancloud/ji | scripts/reset-test-db.sh | Shell | agpl-3.0 | 2,135 |
#!/bin/bash
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Changes all RPATHs in a given directory from XORIGIN to $ORIGIN
# See the comment about XORIGIN in instrumented_libraries.gyp
# Fixes rpath fr... | nwjs/chromium.src | third_party/instrumented_libraries/xenial/scripts/fix_rpaths.sh | Shell | bsd-3-clause | 1,016 |
R CMD REMOVE --library=$PREFIX/lib/R/library/ lumiMouseAll.db
| joachimwolff/bioconda-recipes | recipes/bioconductor-lumimouseall.db/pre-unlink.sh | Shell | mit | 62 |
#!/bin/sh
[ "$DSL_NOTIFICATION_TYPE" = "DSL_INTERFACE_STATUS" ] || exit 0
. /usr/share/libubox/jshn.sh
. /lib/functions.sh
include /lib/network
scan_interfaces
interfaces=$(ubus list network.interface.\* | cut -d"." -f3)
for ifc in $interfaces; do
json_load "$(ifstatus $ifc)"
json_get_var proto proto
if [ "$pr... | GreenTeaDev/Lede | target/linux/lantiq/base-files/etc/hotplug.d/dsl/pppoa.sh | Shell | gpl-2.0 | 770 |
#!/bin/sh
# Copyright (C) 2000, 2007 MySQL AB
# Use is subject to license terms
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; version 2
# of the License.
#
# This program is distrib... | cvicentiu/mariadb-10.0 | storage/myisam/mi_test_all.sh | Shell | gpl-2.0 | 5,785 |
#!/bin/bash
# Copyright 2016 gRPC 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 or agreed t... | nicolasnoble/grpc | tools/fuzzer/runners/client_fuzzer.sh | Shell | apache-2.0 | 997 |
#!/bin/sh
# Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Fre... | md-5/jdk10 | test/jdk/java/lang/annotation/loaderLeak/LoaderLeak.sh | Shell | gpl-2.0 | 2,421 |
#!/bin/bash
# Copyright 2014 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 applicable law ... | raffaelespazzoli/origin | vendor/k8s.io/kubernetes/hack/make-rules/helpers/cache_go_dirs.sh | Shell | apache-2.0 | 2,570 |
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
ALL_TESTS="ping_ipv4"
NUM_NETIFS=6
source lib.sh
h1_create()
{
vrf_create "vrf-h1"
ip link set dev $h1 master vrf-h1
ip link set dev vrf-h1 up
ip link set dev $h1 up
ip address add 192.0.2.2/24 dev $h1
ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.... | GuillaumeSeren/linux | tools/testing/selftests/net/forwarding/router_broadcast.sh | Shell | gpl-2.0 | 5,142 |
#
#/**
# * Copyright 2007 The Apache Software Foundation
# *
# * 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... | graben1437/titan0.5.4-hbase1.1.1-custom | titan-hbase-parent/titan-hbase-111/src/test/bin/hbase-config.sh | Shell | apache-2.0 | 5,114 |
#!/bin/sh
# Checks whether a netrange is inside another netrange, returns 1 if true
# Takes two arguments: $1: net from which we want to know if it is inside $2
# nets need to be given in CIDR notation
dir=$(dirname $0)
awk -f $dir/common.awk -f - $* <<EOF
BEGIN {
slpos=index(ARGV[1],"/")
ipaddr=ip2int(substr(ARGV... | Victek/wrt1900ac-aa | veriksystems/luci-0.11/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/check-range-in-range.sh | Shell | gpl-2.0 | 786 |
#!/bin/sh
# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
# Kselftest framework requirement - SKIP code is 4.
ksft_skip=4
[ -e /dev/tpmrm0 ] || exit $ksft_skip
python3 -m unittest -v tpm2_tests.SpaceTest
| antonblanchard/linux | tools/testing/selftests/tpm2/test_space.sh | Shell | gpl-2.0 | 212 |
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
nm="$1"
file="$2"
$nm "$file" | grep '^ *U' > /dev/null 2>&1
if [ $? -eq 1 ]; then
exit 0
else
echo "$file: undefined symbols found" >&2
exit 1
fi
| CSE3320/kernel-code | linux-5.8/arch/x86/um/vdso/checkundef.sh | Shell | gpl-2.0 | 204 |
#!/bin/sh
# Downloads and builds AUR packages
# This should not be ran as root
rm -r packages
mkdir -p packages/build
cd packages/build
for line in `sed '/^*/!d' ../../packages.list`; do
line=$(echo $line | sed 's/*//')
echo "Downloading ${line}..."
wget http://aur.archlinux.org/packages/${line}/${line}.tar.gz... | Ape/MonkeyTool | getaur.sh | Shell | isc | 506 |
#!/bin/sh
# Copyright (c) 2015-2017 Contributors as noted in the AUTHORS file
#
# This file is part of Solo5, a unikernel base layer.
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose with or without fee is hereby granted, provided
# that the above copyright notice and this permissi... | djwillia/solo5 | configure.sh | Shell | isc | 6,464 |
#!/bin/bash
set -Ceu
outdir=$(mktemp -d)
gpu="$1"
# gym/reinforce
python examples/gym/train_reinforce_gym.py --steps 100 --batchsize 1 --outdir $outdir/gym/reinforce --gpu $gpu
model=$(find $outdir/gym/reinforce -name "*_finish")
python examples/gym/train_reinforce_gym.py --demo --load $model --eval-n-runs 1 --outd... | toslunar/chainerrl | examples_tests/gym/test_reinforce.sh | Shell | mit | 347 |
#!/usr/bin/env bash
# Absolute path to this script, e.g. /home/user/bin/foo.sh
cd "$(dirname "$0")"
rm -rf ./*.phar
# Composer
rm -f composer.phar
curl -sS 'https://getcomposer.org/installer' | php --
chmod +x composer.phar
# PHPUNIT
rm -f phpunit.phar
wget -c https://phar.phpunit.de/phpunit-old.phar
mv phpunit-old... | hollodotme/FluidValidator | build/tools/update_tools.sh | Shell | mit | 1,120 |
#!/usr/bin/env bash
RESULTSDIR=`pwd`/../raw_results
VERBOSE=-v
cd ..
set -x #echo on
# phoenix
./fex.py $VERBOSE plot -n phoenix -t perf -f $RESULTSDIR/phoenix/perf.csv
./fex.py $VERBOSE plot -n phoenix -t instr -f $RESULTSDIR/phoenix/perf.csv
./fex.py plot -n phoenix -t misc_sta... | tudinfse/fex | scripts/allplots.sh | Shell | mit | 3,925 |
#!/usr/bin/env bash
ES_ENV=${ES_ENV}
ES_AUTHENTICATION_SERVER=${ES_AUTHENTICATION_SERVER}
ES_AUTHENTICATION_PORT=${ES_AUTHENTICATION_PORT}
ES_DB_SERVER=${ES_DB_SERVER}
ES_DB_PORT=${ES_DB_PORT}
ES_SESSION_SERVER=${ES_SESSION_SERVER}
ES_SESSION_PORT=${ES_SESSION_PORT}
CMD=$1
HOST_ADDRESS=$(ifconfig | sed -En 's/127.0.... | EasyAssessSystem/pdm | buildtask/docker-run.sh | Shell | mit | 1,407 |
#!/bin/bash -e
if [ $# -ne 1 ]
then
echo "Usage: ${0} <size>" >&1
exit 1
fi
SIZE="${1}"
FILE="spec/tmp/${SIZE}"
MD5SUM=$(./spec/perf/makefile.sh ${FILE} ${SIZE})
./spec/perf/upload.sh ${FILE} ${MD5SUM}
| hpcloud/unix_cli | spec/perf/test.sh | Shell | mit | 207 |
#!/usr/bin/env bash
find ./contracts -type f -name '*.so' -delete
find ./contracts -type f -name '*.c' -delete
find ./contracts -type f -name '*.h' -delete
| viniciuschiele/contracts | clean.sh | Shell | mit | 156 |
#!/bin/bash
####
#
####
# set up bash to handle errors more aggressively - a "strict mode" of sorts
set -e # give an error if any command finishes with a non-zero exit code
set -u # give an error if we reference unset variables
set -o pipefail # for a pipeline, if any of the commands fail with a non-zero exit code, f... | 6o1/lynx-server | bin/setup-devenv.sh | Shell | mit | 1,340 |
root_dir="$( cd "$( dirname "$0" )" && pwd )"
cd $root_dir
curl -O https://download.elasticsearch.org/logstash/logstash/logstash-1.4.0.tar.gz
tar zxvf logstash-1.4.0.tar.gz
mv logstash-1.4.0 logstash
| moredip/microscope | dev-tooling/ELK_loaders/download_logstash_locally.sh | Shell | mit | 205 |
#!/bin/bash
# LGSM fn_install_ts3_mariadb function
# Author: Daniel Gibbs
# Contributor: PhilPhonic
# Website: https://gameservermanagers.com
lgsm_version="210516"
local modulename="Install"
fn_install_ts3db_mariadb(){
echo ""
echo "checking if libmariadb2 is installed"
echo "================================="
sl... | zunnu/linuxgsm | lgsm/functions/install_ts3db.sh | Shell | mit | 2,472 |
#!/bin/bash
py.test . --runxfail \
--uchime-ref-db-fp /home/jklynch/host/project/muscope/pr2_gb203/pr2_gb203_version_4.5.fasta
| hurwitzlab/muscope-18SV4 | test/run_tests.sh | Shell | mit | 133 |
#!/bin/sh
WORKING_PATH=/media/win4/Users/Sand/Pictures/ImportCanon
mkdir -p $WORKING_PATH/tmp
cd $WORKING_PATH/tmp
gphoto2 --get-all-files
#
# Convert CR2 raw files to jpg file (max 1920px width/height)
# then move the raw file to its monthly folder
#
find $WORKING_PATH/tmp -type f -name '*.CR2' -print | while read... | alx/ImportCanonEOS | importCanon.sh | Shell | mit | 1,325 |
#!/bin/bash
# Initializes submodules
git submodule init
git submodule update
# Creates all necessary links to link this repository into the environment
ln -s $(pwd)/.wgetrc ~/.wgetrc
ln -s $(pwd)/.bashrc ~/.bashrc
ln -s $(pwd)/.nanorc ~/.nanorc
ln -s $(pwd)/.inputrc ~/.inputrc
ln -s $(pwd)/.Xresources ~/.Xresources
... | DominikChmiel/dotfiles | setup_init.sh | Shell | mit | 1,341 |
#!/usr/bin/env bash
sh ./install_external.sh
nosetests tests/unit_tests
| FlintHill/SUAS-Competition | run_travis.sh | Shell | mit | 74 |
#!/bin/bash
# Author: Robin Wen
# Date: 17:35:20 12/11/2014
# Desc: Auto deploy to remote tomcat via crontab.
script_path=/home/deploy/auto-deploy/scripts/python-auto-deploy-to-tomcat
if [ $? -eq 0 ];then
# Update the mall admin.
cd $script_path && ./auto_deploy_app_remote.py -u
fi
if [ $? -eq 0 ];then
# Shutdow... | dbarobin/python-auto-deploy | auto_deploy_app_all_in_one/scripts/auto_deploy_mall_admin.sh | Shell | mit | 589 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2015:1852
#
# Security announcement date: 2015-10-01 21:53:20 UTC
# Script generation date: 2017-02-03 21:13:31 UTC
#
# Operating System: CentOS 7
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - thunderbird.x86_64:38.3.0-1.el7.centos
#... | Cyberwatch/cbw-security-fixes | CentOS_7/x86_64/2015/CESA-2015:1852.sh | Shell | mit | 846 |
#!/bin/bash
set -e
echo "-- Building mysql 5.6 image"
docker build -t mysql-5.6 ../5.6/
docker network create mysql_test_net
DIR_VOLUME=$(pwd)/vol56
mkdir -p ${DIR_VOLUME}/backup
echo
echo "-- Testing mysql 5.6 is running"
docker run --name base_1 -d --net mysql_test_net -e MYSQL_USER=user -e 'MYSQL_PASS=test' mysq... | romeOz/docker-mysql | tests/56.sh | Shell | mit | 5,676 |
#!/bin/bash
screenWorkaround=false
# Terminal correction for binaries that don't like screen.xterm as a terminal.
if [ "${TERM}" == "screen.xterm" ]; then
TERM="xterm"
screenWorkaround=true
fi
export DEBIAN_FRONTEND=noninteractive
# Load functions
source "./functions/header.sh"
source "./functions/read_lst.sh"
... | xcjs/workstation-provision | ubuntu-14.04/dev-notebook/provision.sh | Shell | mit | 949 |
#!/bin/sh
make CFG=httpd configure
cd busybox-1.22.1
make
make install
cd ..
make misc
make libc
| emagii/Training-Labs | sysdev/tinysystem/build.sh | Shell | mit | 99 |
sudo apt-get update && sudo apt-get install -y python-pip
sudo pip install Django==1.10.5 | tfulmer1/tft_gm_tools | setup.sh | Shell | mit | 89 |
cd release
make clean
make
cd ../
mkdir -p portable
cp release/dunaWatchdog portable/
mkdir -p portable/etc
cp -n etc/sample.duna.xml portable/etc/duna.xml
cp -n etc/sample.muttrc portable/etc/muttrc
cp -n etc/sample.msmtp.conf portable/etc/msmtp.conf
chmod 600 portable/etc/msmtp.conf
| emepetres/dunaWatchdog | install.sh | Shell | mit | 286 |
# 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 may not u... | qrsforever/workspace | java/learn/hadoop/hive/__replace__/hive/derby/conf/hive-env.sh | Shell | mit | 2,380 |
#!/bin/bash
# El primer argumento es la IP de la interfaz que tiene conexión a Internet
# Crea la ruta hacia la subred
sudo route add -net 192.168.3.0/24 gw 10.42.0.29 p35p1
# Habilita SNAT para la segunda subred
sudo iptables -t nat -I POSTROUTING -s 192.168.3.0/24 -o wlp4s0 -j SNAT --to $1
# Permite los paquetes d... | Prometheus-ETSIIT/locaviewer | config_router.sh | Shell | mit | 660 |
#!/bin/bash
# print build configuration
echo "Build configuration:"
echo " - Compiler: ${COMPILER}"
echo " - Library mode: ${LIBRARY_MODE}"
echo " - Build Type: ${BUILD_TYPE}"
echo " - Native OpenGl: ${NATIVE_OPENGL}"
SMALL_BUILDTYPE=`echo ${BUILD_TYPE} | tr '[:upper:]' '[:lower:]'`
OPENGL_POSTFIX=
if [ "${... | ZahlGraf/IrrIMGUI | scripts/travis_build.sh | Shell | mit | 687 |
################################################################################
# Date functions for getting local time from a unix style timestamp in ns
################################################################################
nsdate() {
[[ -z $1 ]] && { echo "Usage: jpdate|hkdate|audate|utdate ns"; retur... | shanematley/dotfiles | shrc.d/time.sh | Shell | mit | 1,058 |
#!/usr/bin/env sh
if [ ! -d /var/lib/mysql/mysql ]; then
echo 'Rebuilding mysql data dir'
chown -R mysql:mysql /var/lib/mysql
mysql_install_db > /dev/null
rm -rf /var/run/mysqld/*
echo 'Starting mysqld'
# The sleep 1 is there to make sure that inotifywait starts up before the socket is creat... | masood09/docker-percona | build/99_percona.sh | Shell | mit | 1,342 |
#!/bin/bash
set -e
: ${DB_INSTITUICAO:=1}
: ${DB_SERVIDOR:=$POSTGRES_PORT_5432_TCP_ADDR}
: ${DB_USUARIO:=${POSTGRES_ENV_POSTGRES_USER:-ecidade}}
: ${DB_SENHA:=${POSTGRES_ENV_POSTGRES_PASSWORD:-}}
: ${DB_PORTA:=${POSTGRES_PORT_5432_TCP_PORT:-5432}}
: ${DB_BASE:=${POSTGRES_ENV_POSTGRES_DB:=e-cidade}}
if [ -z "$DB_SERVI... | edsondewes/docker-ecidadeonline | docker-entrypoint.sh | Shell | mit | 2,800 |
#!/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... | IvonLiu/moscrop-secondary-ios | Pods/Target Support Files/Pods-MoscropSecondary/Pods-MoscropSecondary-frameworks.sh | Shell | mit | 3,926 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2014:1636
#
# Security announcement date: 2014-10-20 18:15:08 UTC
# Script generation date: 2017-01-22 21:15:53 UTC
#
# Operating System: CentOS 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - java-1.8.0-openjdk-javadoc.noarch:1.8.0.... | Cyberwatch/cbw-security-fixes | CentOS_6/x86_64/2014/CESA-2014:1636.sh | Shell | mit | 1,777 |
#!/bin/bash
#
# ---------------------------------------------------------
# backups the file to the product versiodir under a host specific dir
# and also a timestamped version of it
# and includes them bothh ito the include file
# ---------------------------------------------------------
doSpecBackupFile(){
cd $pr... | ygeo/url-sniper | src/bash/url-sniper/specs/sys/backup-file.spec.sh | Shell | mit | 3,125 |
#!/bin/sh
AP=evaltmpl
GOOS=linux GOARCH=amd64 go build $AP.go
docker build -f Dockerfile.local -t $AP .
docker run -it --rm -p 3000:3000 $AP
| sheercat/evaltmpl | bin/docker-run.sh | Shell | mit | 144 |
#!/usr/bin/expect -f
set timeout -1
spawn telnet -K 10.0.0.138
match_max 100000
expect "Username :"
send "guru\r"
expect "Password :"
send "guru\r"
#send "eth device ifconfig intf=ethif1 state=enabled\r";
#send "eth device ifconfig intf=ethif2 state=enabled\r";
#send "eth device ifconfig intf=ethif3 state=enabled\r"... | k7n4n5t3w4rt/ThomsonKiller | scripts/orion_on.sh | Shell | mit | 715 |
#!/bin/bash
echo ''
echo 'Removing ggps from local PyPi server cache:'
rm /Users/cjoakim/pypi-packages/ggps*
echo 'Creating sdist, uploading to local PyPi server:'
python setup.py sdist upload -r local
echo ''
echo 'Listing local PyPi server packages:'
ls -al /Users/cjoakim/pypi-packages
# python setup.py sdist
# p... | cjoakim/ggps | sdist-local.sh | Shell | mit | 348 |
#!/bin/bash
# Script to rerun the same headers on another cv
machines_one=(160.98.22.10)
machines_seven=(160.98.22.21 160.98.22.22 160.98.22.23 160.98.22.24 160.98.22.25 160.98.22.8 160.98.22.9)
machines_sevenb=(160.98.22.10 160.98.22.11 160.98.22.12 160.98.22.13 160.98.22.14 160.98.22.15 160.98.22.16)
machines_three... | wichtounet/word_spotting | scripts/rerun_all.sh | Shell | mit | 7,987 |
set -e
clang++ -I.. -DNDEBUG -O3 -c -S \
-fstrict-aliasing -fverbose-asm \
-o assembly_review.t assembly_review.cpp
expand assembly_review.t >assembly_review.s
rm assembly_review.t
| kosarev/z80 | examples/assembly_review.sh | Shell | mit | 189 |
#!/bin/sh
export FFMPEG_VERSION="3.3.2"
export FFMPEG_SRC_DIR="ffmpeg-$FFMPEG_VERSION"
export FFMPEG_SRC_ARC_FILENAME="$FFMPEG_SRC_DIR.tar.bz2"
export DOWNLOAD_URL="http://ffmpeg.org/releases/$FFMPEG_SRC_ARC_FILENAME"
if [ ! -f "$FFMPEG_SRC_ARC_FILENAME" ]; then
wget $DOWNLOAD_URL
fi
if [ ! -d "$FFMPEG_SRC_DIR" ]; ... | GinRyan/ff_simple_tutorial | build_ffmpeg.sh | Shell | mit | 608 |
#!/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... | LinkRober/MSMarksButtonList | Example/Pods/Target Support Files/Pods-MSMarksButtonList_Example/Pods-MSMarksButtonList_Example-frameworks.sh | Shell | mit | 3,588 |
#!/usr/bin/env sh
# install emacs
if ! [ -f /usr/bin/emacs ]; then
sudo apt-get install emacs
fi
# get ubuntu version
UBUNTU_VER=`lsb_release -r | awk '{print $0 = substr($0, 10)}'`
if [ "$UBUNTU_VER" = "14.04" ]; then
EMACS_VER="24.3"
elif [ "$UBUNTU_VER" = "12.04" ]; then
EMACS_VER="23.3"
else
echo "Unsup... | wkentaro/Install-trr | install.sh | Shell | mit | 2,650 |
#!/bin/bash
tempaddy=$(mktemp)
while read line; do
#using case to match nicely
case "$line" in
"FN:"*)
read line;
tmpfn=$(echo "$line" | cut -d ":" -f 2 | awk -F ';' '{print $2" "$1}')
read line;
tmpemail=$(echo "$line" | sed 's/"\(.*\)"/\1/g' | awk -F ':' '{print $2}')
... | uriel1998/gpgfinder | test.sh | Shell | mit | 787 |
#!/bin/sh
# root 権限で実行すること。(chown, chgrp の操作があるため)
echo "#-- remove srcFolder, destFolder"
\rm -fr srcFolder destFolder
\tar zxfp srcFolder.tgz
echo "#-- srcFoler を作成しました"
cd srcFolder
\tree -iQfaplug cont > ../tree-cont.txt
echo "#-- srcFoler/cont の tree 結果を作成しました (tree-cont.txt)"
\chmod -R 777 cont
\chown -R roo... | katoy/treedeploy | work/run-sample.sh | Shell | mit | 1,995 |
#!/bin/bash
# our model BBN dataset
for ((i=1; i<=5; i++)); do
time python main_our.py --dataset=BBN --data_directory=~/EACL-2017/fnet/data/processed/f3/ --char_embedding_size=200 --rnn_hidden_neurons=100 --char_rnn_hidden_neurons=200 --keep_prob=0.5 --learning_rate=0.0005 --joint_embedding_size=500 --epochs=10 --ba... | abhipec/fnet | src/scripts/transfer_learning_model.bash | Shell | mit | 875 |
#!/usr/bin/env bash
# This script generates a package and submits it to the Python Package Index
# Copyright (C) 2017 Marc Bourqui
#
# 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 Foundatio... | mbourqui/django-publications-bootstrap | pypi_packager.sh | Shell | mit | 3,815 |
#!/bin/sh
#
# Just a wrapper around autoreconf to generate the configuration
# scripts after a fresh repository clone/checkout.
#
# This script does *not* call configure (as usually done in other
# projects) because this would prevent VPATH builds.
autoreconf -is -Wall
printf "Now run configure to customize your buil... | ntd/luasyslog | autogen.sh | Shell | mit | 328 |
#!/bin/sh
OUTPUT_FILE="jquery-env.min.js"
cat jquery/jquery-3.1.0.min.js > $OUTPUT_FILE
echo "\n" >> $OUTPUT_FILE
cat jquery/moment.min.js >> $OUTPUT_FILE
echo "\n" >> $OUTPUT_FILE
cat jquery/jquery-daterangepicker.min.js >> $OUTPUT_FILE
echo "\n" >> $OUTPUT_FILE
cat jquery/jquery.jplayer.min.js >> $OUTPUT_FILE
ec... | bfrigon/yaam | root/include/js/concat.sh | Shell | mit | 346 |
#! /bin/bash
#Reads data file into Hive, then makes tables out
#of everything. Outputs aggregates to a file.
hive -f t_hive.sql
hive -e 'select * from group_aggs' > aggs.tsv
#Perl makes everything less readable.
#Pipe tab-delimited file into Perl regex, globally convert all tabs to commas.
#Export to CSV file.
cat ag... | christopheraden/Explorations-into-Computational-Statistics | HW2/Hive/get_group_means.sh | Shell | mit | 396 |
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for ... | panosmdma/SlackOnly-SlackBuilds | desktop/bashrun2/doinst.sh | Shell | mit | 478 |
#!/usr/bin/env bash
#echo "Start redis-server"
#su - root -c "redis-server" | savchukoleksii/beaversteward | puphpet/files/startup-always/start_redis.sh | Shell | mit | 75 |
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
$DIR/vars.sh
export DEPLOY_DIR=$DEPLOY_DIR/beta_deploy
function finish {
/var/www/ssg/post_deploy.sh
}
$DIR/pre_deploy.sh
$DIR/run_deploy.sh
trap finish EXIT
| MarshallOfSound/deployment-tools | bash/live_deploy.sh | Shell | mit | 230 |
#!/bin/bash
dir=$( cd "`dirname $0`"; pwd )
source "$dir/shell.sh" 2>/dev/null || exit 1
if shell_is_bsd || shell_is_osx ; then
all_nics=$(ifconfig 2>/dev/null | awk -F':' '/^[a-z]/ && !/^lo/ { print $1 }')
for nic in ${all_nics[@]}; do
ipv4s_on_nic=$(ifconfig ${nic} 2>/dev/null | awk '$1 == "inet" {... | jeoygin/gadget | shell/lan-ip.sh | Shell | mit | 1,020 |
#!/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... | chaseholland/CAHImageCacher | Example/Pods/Target Support Files/Pods-CAHImageCacher_Tests/Pods-CAHImageCacher_Tests-frameworks.sh | Shell | mit | 3,572 |
#!/bin/bash
#title :sync_remote_laravel.sh
#description :The script will sync for any updates
#author :Ajay Krishna Teja Kavuri
#date :02062017
#version :0.1
#==============================================================================
# Sunc the folders
sudo rsync -tr /home... | PseudoAj/MyInsightRepo | setup/sync_local_laravel.sh | Shell | mit | 524 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.