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 |
|---|---|---|---|---|---|
##
## Please ensure that any changes this file makes to the environment
## are done idempotently.
##
## Only when this is an interactive shell.
##
is_interactive || return
##
## References:
##
## * http://invisible-island.net/ncurses/man/tput.1.html
## * http://invisible-island.net/ncurses/man/terminfo.5.... | cueedee/.ix | .bash_init_prompting.sh | Shell | unlicense | 11,447 |
#!/bin/bash
set -e
set -x
# This script is designed for non-interactive (such as cron-based) updating in place with the artifacts of a package.
#
# usage:
# deploy-local-package-if-changed.sh <package> <output dir>
# qbt must be on your path, and must be able to find a qbt-manifest
PKG="$1"
OUTPUT_DIR="$2"
DATE="$(... | TerabyteQbt/meta | bin/deploy-local-package-if-changed.sh | Shell | unlicense | 1,225 |
#! /bin/bash
cd /home/maposmatic
git clone --quiet https://github.com/hholzgra/umgebungsplaene
cd umgebungsplaene
cp /vagrant/files/config-files/umgebungsplaene-config.php config.php
cd www
HOME=/root SUDO_USER=root SUDO_UID=0 SUDO_GID=0 npm install
| hholzgra/maposmatic-vagrant | inc/umgebungsplaene.sh | Shell | unlicense | 251 |
ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'
alias pu="pushd"
alias po="popd"
alias la="ls -lAh"
alias ll="ls -lh"
alias l="ls -lAh"
alias sl=ls
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias history="fc -il 1"
alias h="history"
alias rmkh="rm ~/.ssh/known_host... | wdpckr/dotfiles | .zsh/aliases.zsh | Shell | unlicense | 380 |
#!/usr/bin/perl
#
# Copyright 2014 Pierre Mavro <deimos@deimos.fr>
# Copyright 2014 Vivien Didelot <vivien@didelot.org>
#
# Licensed under the terms of the GNU GPL v3, or any later version.
#
# This script is meant to use with i3blocks. It parses the output of the "acpi"
# command (often provided by a package of the sa... | matthew-parlette/dotfiles | i3/scripts/battery.sh | Shell | unlicense | 1,729 |
#!/bin/bash
set -e
rm -f *.zip
gradle sourceDrop
unzip -l sourceDrop-1.0.zip
| codetojoy/easter_eggs_for_gradle | egg_StackOverflow_64936976/run.sh | Shell | apache-2.0 | 83 |
#!/bin/bash
source /vagrant/scripts/cm-api.sh
source /vagrant/scripts/cm-hosts-functions.sh
install_nfs_packages () {
install_package nfs-utils
install_package nfs-utils-lib
}
create_nfs_client_path () {
nfs_path=$1
owner=$2
host_installed $(hostname)
if [[ ! -d "$nfs_path" && "$host_is_installed" ]]; the... | jloveland/virtual-cdh-cluster | scripts/nfs-functions.sh | Shell | apache-2.0 | 1,440 |
pid=$(pgrep deep_server)
echo "deep_server pid=$pid"
if [ -n "$pid" ]; then
kill -9 "$pid"
fi
| wopeizl/deep_server | stop.sh | Shell | apache-2.0 | 98 |
#!/bin/bash
#
#This script provides common script functions for the hacks
function command_exists() {
command -v "$@" > /dev/null 2>&1
}
function disable_selinux() {
if selinuxenabled && [ "$(getenforce)" = "Enforcing" ]; then
echo "Temporarily disabling selinux enforcement"
sudo setenforce 0
SELIN... | zjj2wry/cyclone | scripts/lib/common.sh | Shell | apache-2.0 | 2,004 |
#!/bin/bash
# Author: yeho <lj2007331 AT gmail.com>
# BLOG: https://blog.linuxeye.com
#
# Notes: OneinStack for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+
#
# Project home page:
# https://oneinstack.com
# https://github.com/lj2007331/oneinstack
Upgrade_Memcached() {
pushd ${asn_dir}/src > /dev/null
[ ... | asntechsolution/lamp-lemp | include/upgrade_memcached.sh | Shell | apache-2.0 | 2,243 |
#!/bin/bash -ex
# This example can be used to manually run a scenario. Some edits and
# customizations may be necessary to match a specific lab.
#
# Typically, the variables set here are representative of the variables
# which would normally be passed from Jenkins jobs to the runner.
export BUNDLE_SCENARIO="ceph-bas... | ryan-beisner/charm-test-infra | runners/manual-examples/ceph-base-xenial-jewel-arm64-manual.sh | Shell | apache-2.0 | 631 |
#!/bin/bash
{
cd ../../../target
mkdir -p ./.ssh
cd .ssh
echo -n "Creating keys..."
ssh-keygen -t rsa -P '' -f id_rsa
cat id_rsa.pub > authorized_keys
echo "done."
}
| williamstw/bokeh | src/main/shell/gen_keys.sh | Shell | apache-2.0 | 168 |
#!/usr/bin/env bash
cd $(dirname $0)
. setup.sh
seq -w 500000 > mid
seq -w 1000000 > big
for i in $(seq 200); do
cp -p mid f$((2*i))
cp -p big f$((2*i+1))
done
du -cksh .
bakcontent register
echo The first time should ideally only be a bit longer than the second
time bakcontent archive
time find -type f |... | nanocritical/bakcontent | t/b0007.sh | Shell | apache-2.0 | 367 |
#!/usr/bin/env bash
set -e
echo "[[ MW | Loading configuration ]]"
TEMP_FILE=$(mktemp)
declare -A deploy_props
cat "$ABRAID_SUPPORT_PATH/conf/modelling/deployment.properties" | grep -v "^#" | grep -v '^[[:space:]]*$' > "$TEMP_FILE"
while read -r line; do
[[ $line = *=* ]] || continue
deploy_props[${line%%=*}]=${li... | SEEG-Oxford/ABRAID-MP | config/deploy/up_mw.sh | Shell | apache-2.0 | 979 |
#! /bin/bash
# Ideally we will capture the exit code of each step and try them all before failing
# the build script. For now, use set -e and fail the build at first failure.
set -e
function clean()
{
echo "*********** Clean build *************"
scons -c
rm -rf out
}
function build()
{
if [ $(uname -s) = "Linux... | kartben/iotivity | auto_build.sh | Shell | apache-2.0 | 3,171 |
#!/bin/bash
echo "this script requires git"
yum install -y git
echo "This script will download all Cacti dependecies and download the chosen cacti version from the cacti github"
echo "Dont forget to support cacti @ cacti.net!"
echo "set selinux to disabled"
setenforce 0
sed -i 's/enforcing/disabled/g' /etc/selinux... | yorfir/CentOS-Attachment | install-cacti.sh | Shell | apache-2.0 | 7,927 |
#!/bin/bash -ex
cd $(dirname $0)
if [ -d dollar ]
then
rm -rf dollar
fi
git clone https://github.com/sillelien/dollar.git
cd dollar
if [ -n "$CIRCLE_BRANCH" ]
then
echo "Building from $CIRCLE_BRANCH"
git checkout $CIRCLE_BRANCH
else
echo "Building from master"
git checkout master
fi
set -u
rm -rf ~... | sillelien/dollarscript | build.sh | Shell | apache-2.0 | 635 |
#!/bin/bash
PIDFILE=./localhost:$1/zookeeper_server.pid
if [ -e "$PIDFILE" ]
then
kill -9 $(cat $PIDFILE)
rm $PIDFILE
rm -f ./localhost:$1/data/version-2/*
else
echo "Missing $PIDFILE, not stopping respective server"
fi
| andreisavu/zookeeper-mq | test_5_trunk/node_stop.sh | Shell | apache-2.0 | 240 |
alignbuild() {
for f in $(find "$BUILD" -name '*.apk'); do
mv "$f" "$f.orig"
zopfli=""
if [ -n "$ZIPALIGNRECOMPRESS" ]; then
zopfli="-z"
fi
echo -e "\e[96m-->${f#${BUILD}/}\e[0m"
zipalign -f -p $zopfli 4 "$f.orig" "$f"
rm "$f.orig"
done
}
createzip() {
echo "INFO: Total size uncomp... | tienthanh2509/Gionee_Pioneer_P4 | scripts/inc.packagetarget.sh | Shell | apache-2.0 | 1,964 |
#!/bin/bash
syndaemon -i 1 -K -d
| josephrkramer/touchpad-config | disable_touchpad_while_typing.sh | Shell | apache-2.0 | 34 |
#!/bin/bash
#test /api/13/job/{id}/run
DIR=$(cd `dirname $0` && pwd)
source $DIR/include.sh
###
# setup: create a new job and acquire the ID
###
# job exec
args="echo hello there"
project=$2
if [ "" == "$2" ] ; then
project="test"
fi
#escape the string for xml
xmlargs=$($XMLSTARLET esc "$args")
xmlproj=$($X... | rundeck/rundeck | test/api/test-job-run-v13.sh | Shell | apache-2.0 | 3,149 |
#!/bin/bash
docker build --force-rm -t nealhardesty/elasticsearch .
| nealhardesty/dockerfiles | elasticsearch/base/build.sh | Shell | apache-2.0 | 69 |
#!/bin/sh
set -e
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
case "${TARGETED_DEVICE_FAMILY}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
1)
... | caolonghan/First | CapitaStar_IOS_1.2.4 2 11.14适配x/kaidexing/Pods/Target Support Files/Pods-kaidexing/Pods-kaidexing-resources.sh | Shell | apache-2.0 | 5,761 |
#!/bin/sh
set -e
cd $HOME/logs
flock -n ~/var/locks/dpa-regenerate-checksumfile.sh $HOME/services/java-wrappers/dpa-regenerate-checksumfile $HOME/services/conf/regenerate-checksumfile.properties "$@"
| statsbiblioteket/digital-pligtaflevering-aviser-tools | tools/dpa-tools-deployment/for-deployment/bin/regenerate-checksumfile.sh | Shell | apache-2.0 | 202 |
#!/bin/bash
# generate_requests.sh - Generate the request files from each species in a
# occurrences file.
#
# More about request files:
# http://openmodeller.sourceforge.net/man1/om_console.1.html
HELP_MSG="
Usage: $(basename "$0") OPTIONS
OPTIONS:
-h, --help This message.
-o, --occurrences_file Occurrences file.... | sibbr/sdm-workflows | generate_requests.sh | Shell | apache-2.0 | 11,864 |
#!/bin/sh
REPOURL=$1
REMOTEURL=$2
TMPDIR=$(mktemp -d)
git clone $REMOTEURL $TMPDIR
cd $TMPDIR
git remote set-url origin $REPOURL
git push --all origin
cd ..
rm $TMPDIR -rf
echo "Done!"
| mattiasrunge/gitstore | scripts/update.sh | Shell | apache-2.0 | 187 |
#! /bin/sh
AC_VERSION=
AUTOMAKE=${AUTOMAKE:-automake}
AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/.* \([0-9]*\.[0-9]*\).*/\1/')
if [ "$AM_INSTALLED_VERSION" != "1.10" \
-a "$AM_INSTALLED_VERSION" != "1.11" \
-a "$AM_INSTALLED_VERSION" != "1.15" ];then
echo
echo "You must have automake ... | flytreeleft/GtkShot | autogen.sh | Shell | apache-2.0 | 952 |
#!/bin/sh
#echo renaming $1 to $2
if [ $1 != 'foo.example.com' ] ; then
echo "fail: $1 != foo.example.com"
exit 1
fi
if [ $2 != 'bar.example.com' ] ; then
echo "fail: $2 != bar.example.com"
exit 1
fi
exit 0
| bronto/foreman_hooks-host_rename | test/hook-script.sh | Shell | apache-2.0 | 217 |
RDVAFARGS=""
RDVAFLIBS=""
while [[ $# > 0 ]]
do
key="$1"
case $key in
-[acdefijlmnpqrstuvwxyz])
RDVAFARGS+=" $key $2"
shift # past argument
;;
-h)
RDVAFARGS="-h"
;;
-g) # to add add'l paths to classpath
RDVAFLIBS+=":$2"
shift # past argument
;;
*)
# unknown ... | renodino/rdadapter | scripts/vaftest_vars.sh | Shell | apache-2.0 | 376 |
#!/usr/bin/env bash
#
# Copyright 2021, TeamDev. 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
#
# Redistribution and us... | SpineEventEngine/gae-java | scripts/upload-artifacts.sh | Shell | apache-2.0 | 2,420 |
# Copyright 2022 The Google Research 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 agree... | google-research/google-research | nopad_inception_v3_fcn/run.sh | Shell | apache-2.0 | 761 |
#! /bin/bash -e
docker run -it -v '/dev/urandom:/dev/random' --rm=true --link 'dhub:dhub' --link='idm_hack:idm_hack' -p '80:80' -p '443:443' -p '1111:1111' -p '35729:35729' --name 'dhub-nginx' 'fic2-dhub-nginx'
| fic2/fic2-dev-runner | etc/docker/nginx/launch.sh | Shell | apache-2.0 | 212 |
#!/bin/bash
# Copyright 2011 Splunk, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | splunk/splunk-app-splunkgit | bin/git_source_code.sh | Shell | apache-2.0 | 4,003 |
#! /bin/bash
#===============================================================================================
# System Required: Debian 7+
# Description: Install OpenConnect VPN server for Debian
# Ocservauto For Debian Copyright (C) liyangyijie released under GNU GPLv2
# Ocservauto For Debian Is Based On SS... | satifanie/anyconnect | eazy-for-ss-master/test/1SSLVPNauto-L-0.5.sh | Shell | apache-2.0 | 31,565 |
#!/bin/bash
source "tf_trainer/common/dataset_config.sh"
DATETIME=$(date '+%Y%m%d_%H%M%S')
MODEL_NAME="tf_char_cnn"
MODEL_NAME_DATA=${MODEL_NAME}_$1
JOB_DIR="${MODEL_PARENT_DIR}/${USER}/${MODEL_NAME_DATA}/${DATETIME}"
gcloud ml-engine jobs submit training tf_trainer_${MODEL_NAME_DATA}_${USER}_${DATETIME} \
--job-... | conversationai/conversationai-models | experiments/tf_trainer/tf_char_cnn/run.hyperparameter.sh | Shell | apache-2.0 | 969 |
#!/usr/bin/env bats
# This file is used to test the installation and removal
# of plugins after Elasticsearch has been installed with tar.gz,
# rpm, and deb.
# WARNING: This testing file must be executed as root and can
# dramatically change your system. It should only be executed
# in a throw-away VM like those made... | strapdata/elassandra5-rc | qa/vagrant/src/test/resources/packaging/tests/module_and_plugin_test_cases.bash | Shell | apache-2.0 | 16,376 |
#!/usr/bin/env bash
_scriptDir="$(dirname `readlink -f $0`)"
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit 1
fi
function Info {
echo -e -n '\e[7m'
echo "$@"
echo -e -n '\e[0m'
}
function Error {
echo -e -n '\e[41m'
echo "$@"
echo -e -n '\e[0m'
}
echo "Please enter your Critical Stack API ... | sdelliot/pids | pids.sh | Shell | apache-2.0 | 9,034 |
#!/bin/bash
# This file is to create a chain project
TEMPLATE=$1
DEST=$2
NUM_MODS=$3
TBNAME=$(basename $TEMPLATE)
DUPNAME="$(echo $TBNAME | sed "s/\./0./")"
cp $TEMPLATE "$DEST/$DUPNAME"
perl -pi -e "s/_MOD_NAME_/M0/" "$DEST/$DUPNAME"
perl -pi -e "s/_PKG_NAME_/stage1.input/" "$DEST/$DUPNAME"
perl -pi -e "s/_DEP_NAME_/... | TresAmigosSD/SMV | tools/templates/bigChain/dupChainMod.sh | Shell | apache-2.0 | 654 |
#!/bin/bash
c1=`pwd`
mkdir res >& /dev/null
cpwd=$c1/res
pushd .
cd ..
code=(
"accounts" "acl" "entity" "ocra" "otp" "password" "salt" "storage" "setup"
"restful/accounts-restful" "restful/entity-restful" "restful/libsecurity-restful" "restful/ocra-restful" "restful/otp-restful" "restful/password-restful" "res... | ibm-security-innovation/libsecurity-go | build/run_all.sh | Shell | apache-2.0 | 1,384 |
#!/bin/sh
exec java $JAVA_OPTS -jar /cukedoctor.jar "$@"
| rmpestano/cukedoctor | cukedoctor-main/docker/entrypoint.sh | Shell | apache-2.0 | 57 |
#!/bin/bash
# Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license... | irlrobot/terraform_demo | launch_configurations/userdata.sh | Shell | apache-2.0 | 647 |
#!/bin/bash
log() {
echo $(date) $@
}
init_data() {
if find ${HADOOP_DATA_DIR} -maxdepth 0 -empty | read; then
log "Initializing hadoop data"
tar xf /tmp/hadoop-data.tar -C ${HADOOP_DATA_DIR}
fi
rm -f /tmp/hadoop-data.tar
}
init_hadoop_config() {
if find ${HADOOP_CONF_DIR} -maxdepth 0 -empty | read... | ading1977/docker-hadoop | bootstrap.sh | Shell | apache-2.0 | 3,199 |
#!/bin/bash
echo '['
for user in $(users);do
echo "\"${user}\","
done
echo ']'
| roac-monitoring/roac-agent | examples/scripts/users.sh | Shell | bsd-3-clause | 84 |
#!/bin/bash
XPHIZGEMMPATH=$(cd $(dirname $0); pwd -P)
export LD_LIBRARY_PATH=$XPHIZGEMMPATH:$LD_LIBRARY_PATH
export LD_PRELOAD=$XPHIZGEMMPATH/libxphi.so
$*
| cdahnken/libxphi | xphilibwrapper.sh | Shell | bsd-3-clause | 160 |
../bin/SPQC -s ../sample-data/sample.info.tab ../sample-data/isoforms.fpkm_table.filter.matrix.anno
| zju3351689/SPQC-1.0.0 | sample-result/example.sh | Shell | bsd-3-clause | 101 |
# dummy program that runs for 90 seconds and dies
sleep 90 | JohnLZeller/dd-agent | ci/resources/supervisord/program_3.sh | Shell | bsd-3-clause | 59 |
#!/bin/bash
set -xe
# Launch auto updater
if [[ ! -z "${NBSEARCHDB_AUTO_UPDATE}" ]] ; then
if [ $(id -u) == 0 ] ; then
sudo -E -u $NB_USER lsyncd /opt/nbsearch/update-index.lua
else
lsyncd /opt/nbsearch/update-index.lua
fi
fi
| NII-cloud-operation/Jupyter-LC_docker | conf/nbsearch/launch.sh | Shell | bsd-3-clause | 242 |
#!/bin/bash
# Copyright (c) 2013 Julien Phalip and contributors.
# Licensed under the BSD license.
if [ -e $HOME/.pysqlite-installed ]; then
echo 'pysqlite features already installed'
exit 0
fi
# Install pysqlite from source so that it can access all the GIS features.
wget http://pysqlite.googlecode.com/files/p... | jphalip/djangocore-box | provisioning/shell/install-pysqlite.sh | Shell | bsd-3-clause | 990 |
#!/bin/bash
HTTPD_SRC=httpd-2.2.16.tar.gz
PHP_SRC=php-5.2.14.tar.gz
MYSQL_SRC='mysql-5.1.45.tar.gz'
MYSQL_LIBS_SRC='mysql-5.1.50.tar.gz'
MYSQL_BIN='mysql-5.1.50-linux-x86_64-glibc23.tar.gz'
JAVA_BIN='jdk-6u20-linux-x64.bin'
SRC_DIR=$(pwd)
HTTPD_DIR=${HTTPD_SRC%%.tar.gz}
PHP_DIR=${PHP_SRC%%.tar.*}
MYSQL_DIR=${MYSQL_SRC%... | junun/shell | linux/autolamp.sh | Shell | bsd-3-clause | 13,926 |
#!/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/tiny-http
RED='\033[0;31m'
BLUE='\033[0;34m'
GREEN='\033[0;32... | JacksonGL/NPM-Vuln-PoC | directory-traversal/tiny-http/PoC.sh | Shell | bsd-3-clause | 864 |
#!/bin/bash
set -Ex
trap 'echo -e "\033[1;31mPydocstyle spotted errors!\033[0m"' ERR
pydocstyle neuralmonkey
| bastings/neuralmonkey | tests/pydocstyle_run.sh | Shell | bsd-3-clause | 111 |
#!/bin/bash -e
# Copyright 2014 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.
# Script to install build dependencies of packages which we instrument.
# Enable source repositories in Goobuntu.
if hash goobuntu-config 2>... | sgraham/nope | third_party/instrumented_libraries/install-build-deps.sh | Shell | bsd-3-clause | 2,244 |
set -e
readonly SCRIPTROOT=$( cd $( dirname $0 ); pwd )
readonly PROJROOT=$( cd $SCRIPTROOT/..; pwd )
cd $PROJROOT
expr=$(bash $PROJROOT/scripts/rungen.sh $1 $2)
echo '==========================='
echo Value: $2
echo '==========================='
echo $expr
echo '==========================='
echo Result: $(bc -l <<... | EarthCitizen/baskell | scripts/runresult.sh | Shell | bsd-3-clause | 364 |
#!/bin/sh
: ${CIM_HOME:="$HOME/.cim"}
export CIM_HOME
PATH="$CIM_HOME/bin:$PATH";export PATH
CIM_ID="$$";export CIM_ID
if command -v manpath > /dev/null 2>&1 ; then
MANPATH=`manpath 2> /dev/null`
fi
MANPATH="$CIM_HOME/share/man:$MANPATH";export MANPATH
sh "$CIM_HOME/init"
| KeenS/CIM | init.sh | Shell | bsd-3-clause | 278 |
#!/bin/bash
status_msg () {
echo -e "\033[1m$1\033[0m"
}
error_msg () {
echo -e "\033[31m$1\033[0m" >&2
tput sgr0
}
# CD into script dir
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
status_msg "Removing discount folder..."
rm -rf ../discount/
./update.sh
| kakulukia/dotfiles | misc/QuickLook/QLMarkdown.qlgenerator/update-discount.sh | Shell | mit | 272 |
#!/bin/bash
set -eEu
set -o pipefail
################################################################################
# Run "ci/bootstrap.sh" to install dependencies for the test harness.
################################################################################
main() {
install_precommit
}
trap finish EXIT
... | jumanjiman/puppet-on-coreos | ci/bootstrap.sh | Shell | mit | 1,219 |
#! /bin/bash
echo "Last 10 Logged In Users"
echo "$(last -n 10)"
| nbebout/sysreporter | reports.d/34-lastLoggedInUsers.sh | Shell | mit | 65 |
#!/bin/sh
exec /usr/sbin/apache2ctl -DFOREGROUND -k start
| grams/docker-LTB-self-service-password | assets/apache2.sh | Shell | mit | 59 |
#!/bin/bash
# Vagrant specific
date > /etc/vagrant_box_build_time
# Installing vagrant keys
echo "*************************************************************"
echo "Switching system into user modifiable state"
svcadm disable -s persist-gz-files
echo "*************************************************************"
... | pagodabox/vagrant-packer-templates | smartos-x86_64/scripts/vagrant.sh | Shell | mit | 2,910 |
#!/usr/bin/env bash
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637
docker-compose -p sequelize-mysql-57 down --remove-orphans
docker-compose -p sequelize-mysql-57 up -d
./../../wait-until-h... | sequelize/sequelize | dev/mysql/5.7/start.sh | Shell | mit | 605 |
#
#/**
# * 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... | deanstone/dockers | hbase_cluster/hbase_run_1.2.3/hbase-env.sh | Shell | mit | 7,467 |
#!/bin/bash
# This script does for Linux the same as build.bat for DOS,
# it compiles the current KolibriOS applications
fasm -m 16384 kiv.asm kiv
exit 0
| devlato/kolibrios-llvm | programs/media/kiv/trunk/build.sh | Shell | mit | 160 |
#! /bin/sh
libtoolize --force --automake --copy
aclocal -I macros/
autoheader
autoconf
automake -a --copy
| jbar/mcabber | autogen.sh | Shell | gpl-2.0 | 107 |
#!/bin/bash
# Each ns-3 NoC script must have a unique SCRIPT_ID (AKA experiment ID)
# This helps at identifying the simulation results in the database
#
# If you run this script with the "co" parameter (chart only), then no simulation is performed,
# the data is considered to already be in the database. Only the chart... | ciprian-radu/unimap.ns-3noc | examples/noc/ns-3-noc-1(irvine-speedup).sh | Shell | gpl-2.0 | 4,362 |
for name in *.ruleset; do
if [ ! -e ../../old-data/nation/$name ]; then
echo rm $name
git rm $name
fi
done
| eric-stanley/freeciv-android | data/nation/rm-nations.sh | Shell | gpl-2.0 | 114 |
#!/bin/bash
# This file is part of the ttylinux software.
# The license which this software falls under is GPLv2 as follows:
#
# Copyright (C) 2010-2013 Douglas Jerome <douglas@ttylinux.org>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License... | hellin/WodeOS | wodeos-build/pkg-cfg/util-linux-2.23/bld.sh | Shell | gpl-2.0 | 6,321 |
#!/bin/sh
set -e
case "$1" in
"-i" | "-u")
;;
*)
echo "usage:"
echo "./install.sh -i [prefix] install FB into prefix directory"
echo "./install.sh -u [prefix] uninstall FB from prefix directory"
echo "(default prefix: /usr/local)"
exit 1
;;
esac
if [ -n "$2" ]; then
prefix="$2"
else
prefix=/usr/local... | rvega/beagle-bone-black-io | vendors/FreeBASIC-0.90.0-source/install.sh | Shell | gpl-3.0 | 1,226 |
#!/bin/bash
#
# If root, loop forever in login.
#
id | grep root >>/dev/null
result=$?
if [[ $result -eq 0 ]]; then
#echo "is root"
while [ 1 ]; do
trap login SIGINT
/sbin/login
done
fi
| cliffe/SecGen | modules/utilities/unix/labtainers/files/Labtainers-master/labs/centos-log/centos-log/_bin/student_startup.sh | Shell | gpl-3.0 | 216 |
# Web template check
is_web_template_valid() {
t="$WEBTPL/$WEB_SYSTEM/$WEB_BACKEND/$template.tpl"
s="$WEBTPL/$WEB_SYSTEM/$WEB_BACKEND/$template.stpl"
if [ ! -e $t ] || [ ! -e $s ]; then
echo "Error: web template $template not found"
log_event "$E_NOTEXIST" "$EVENT"
exit $E_NOTEXIST
... | fantomgs/vesta | func/domain.sh | Shell | gpl-3.0 | 17,184 |
#!/bin/bash
#UtilityWorkMessage ---------------------------------------------------------------------
trap onexit 1 2 3 15
function onexit() {
local exit_status=${1:-$?}
pkill -f hstore.tag
exit $exit_status
}
# ---------------------------------------------------------------------
ENABLE_ANTICACHE=t... | apavlo/h-store | scripts/multitier/voter-multitier.sh | Shell | gpl-3.0 | 10,963 |
#!/bin/bash
#Default ENV vars for Amazon AMI
#LOGS
echo -e "/var/log/restcomm" > /etc/container_environment/EXTCONF_RESTCOMM_LOGS
echo -e "restcomm_core" > /etc/container_environment/EXTCONF_CORE_LOGS_LOCATION
echo -e "restcomm_trace" > /etc/container_environment/EXTCONF_RESTCOMM_TRACE_LOG
echo -e "media_server" > /et... | Mobicents/Restcomm-Docker | env_files/restcomm_env_locally.sh | Shell | agpl-3.0 | 2,187 |
#! /bin/bash
sleep 15
export DISPLAY=':0'
export XAUTHORITY=/home/pi/.Xauthority
xset s off
xset -dpms
xdotool mousemove 1920 1080
#cd /opt/ds
while true; do
now=$(date +%s)
to=$((86400 - $(($now % 86400))))
(sleep $to; pkill -9 digsig.py; pkill -9 mplayer) &
./digsig.py
pkill mplayer
sleep 1
... | xplico/DigSig | digsig_pi_start.sh | Shell | agpl-3.0 | 325 |
#!/bin/sh
# Обновляет репозиторий и выкладывает новую сборку в случае необходимости
# FIXME: использует системные etersoft-build-utils и korinf
. $(dirname $0)/build-funcs.sh
# git.office:/projects/wine/wine-etersoft.git
REPO=$1
# /var/ftp/pub/Etersoft/RX@Etersoft/$USER/sources
TARGETDIR=$2
test -n "$*" || fatal
... | Etersoft/korinf | tools/cron/build-any-package.sh | Shell | agpl-3.0 | 1,360 |
#!/bin/bash
blur=$2
sharpen=$3
CUDA_VISIBLE_DEVICES=$1 python hdrnet/bin/train.py \
--learning_rate 1e-4 \
--batch_size 1 \
--model_name HDRNetCurves \
--data_pipeline UnsharpMaskDataPipeline \
--blur_sigma $blur \
--sharpen $sharpen \
--nobatch_norm \
-... | google/hdrnet | scripts/usm/train_std.sh | Shell | apache-2.0 | 577 |
#!/usr/bin/env bash
# Fail if any command fails or if there are unbound variables and check syntax
set -euxo pipefail
bash -n "$0"
CMD="mvn verify -T 4 -B -V"
if [[ ! -z "$TRAVIS_TAG" ]]
then
CMD="$CMD -P release"
fi
eval $CMD
| DBCG/cqf-ruler | scripts/test.sh | Shell | apache-2.0 | 235 |
#!/bin/bash
#SBATCH --gres=spindle:1
set -e
export LC_ALL=C
# Begin configuration section.
# End configuration options.
echo "$0 $@" # Print the command line for logging
[ -f path.sh ] && . ./path.sh # source the path.
. parse_options.sh || exit 1;
if [ $# != 5 ]; then
echo "usage: common/train_varikn_model.sh... | phsmit/kaldi-recipes | common/train_varikn_model.sh | Shell | apache-2.0 | 982 |
#!/bin/bash
if [ -e ./extlib/*.jar ]; then
cp -Rf ./extlib $DBFLUTE_HOME/lib/extlib
fi
| ninneko/twitter | mydbflute/dbflute-1.0.5H/etc/cmd/_df-copy-extlib.sh | Shell | apache-2.0 | 90 |
#!/bin/bash
dir=$(dirname $0)
source $dir/slots.sh
enable_adcs() {
load_slot cape-bone-iio
}
| deepakiam/bot | bot/setup/fs-common/root/startup/adc.sh | Shell | bsd-2-clause | 98 |
#!/bin/bash
VERSION="0.0"
if [[ ! -s ${ANTSPATH}/antsRegistration ]]; then
echo we cant find the antsRegistration program -- does not seem to exist. please \(re\)define \$ANTSPATH in your environment.
exit
fi
if [[ ! -s ${ANTSPATH}/antsApplyTransforms ]]; then
echo we cant find the antsApplyTransforms program ... | stnava/ANTs | Scripts/antsIntermodalityIntrasubject.sh | Shell | bsd-3-clause | 11,884 |
#!/bin/sh
python -c 'import schematic; print schematic.__doc__.strip()' > README.md
| jbalogh/schematic | make_readme.sh | Shell | bsd-3-clause | 84 |
#!/bin/sh
# Curl example of getting the client credentials.
# Typically you will be setup to not have to use the --insecure flag
# See Client Credentials Grant at: https://tools.ietf.org/html/rfc6749#section-4.4
# Start the server with 'npm start' before running this command
# You should get back something of the ... | cmcampione/thingshub | useful-projects/Oauth2orizeRecipes/authorization-server/curl/client_credentials_grant.sh | Shell | mit | 549 |
#!/bin/sh
set -e -x
ls
cd ${PKG_NAME}-*/
./configure --prefix="${PKG_DIR}" \
--libdir=${PKG_DIR}/lib --with-sysdeps=/lib/skalibs/sysdeps \
--disable-shared --enable-static-libc
make $MAKE_JOBS
make $MAKE_JOBS install DESTDIR="${PKG_INSTDIR}"
| FreakyPenguin/static-distro | packages/s6/2.4.0.0/build.sh | Shell | mit | 250 |
#!/bin/sh
## live-build(7) - System Build Scripts
## Copyright (C) 2006-2011 Daniel Baumann <daniel@debian.org>
##
## live-build comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.
Man ()
{
... | utlemming/lb | functions/man.sh | Shell | gpl-3.0 | 402 |
#!/bin/bash
set -e -x
OPAM_VARIANT=ocaml-variants.4.11.1+mingw64c
wget https://github.com/fdopen/opam-repository-mingw/releases/download/0.0.0.2/opam64.tar.xz -O opam64.tar.xz
tar -xf opam64.tar.xz
bash opam64/install.sh
opam init default -a -y "https://github.com/fdopen/opam-repository-mingw.git#opam2" -c $OPAM_VA... | ejgallego/coq | dev/ci/azure-opam.sh | Shell | lgpl-2.1 | 414 |
#!/bin/bash
sed -i 's|localhost|'"${DBHOST}"'|g' index.php
sed -i 's|root .*/FrameworkBenchmarks/lumen|root '"${TROOT}"'|g' deploy/nginx.conf
sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
fw_depends php5 nginx composer
rm vendor/illuminate/view/FileViewFinder.php
cp modifiedVendorFiles/FileVie... | xitrum-framework/FrameworkBenchmarks | frameworks/PHP/lumen/setup.sh | Shell | bsd-3-clause | 658 |
#!/bin/bash
cd /go/src/github.com/ndslabs/apiserver
go get github.com/Masterminds/glide
glide install --strip-vendor --strip-vcs
GOOS=linux GOARCH=amd64 go build -o build/bin/apiserver-linux-amd64
| bodom0015/ndslabs | apiserver/gobuild.sh | Shell | bsd-3-clause | 198 |
#!/bin/bash
FN="TxDb.Mmusculus.UCSC.mm10.knownGene_3.4.0.tar.gz"
URLS=(
"http://bioconductor.org/packages/3.7/data/annotation/src/contrib/TxDb.Mmusculus.UCSC.mm10.knownGene_3.4.0.tar.gz"
"https://bioarchive.galaxyproject.org/TxDb.Mmusculus.UCSC.mm10.knownGene_3.4.0.tar.gz"
"https://depot.galaxyproject.org/softwar... | keuv-grvl/bioconda-recipes | recipes/bioconductor-txdb.mmusculus.ucsc.mm10.knowngene/post-link.sh | Shell | mit | 1,585 |
#!/bin/bash
#
# Validates one XML file gotten through http
#
# Author: Just van den Broecke
#
BASEDIR=`dirname $0`/..
BASEDIR=`(cd "$BASEDIR"; pwd)`
VALIDATOR=${BASEDIR}/bin/validate.sh
FILE=val.gml
echo "Get $1 into $FILE"
wget -O $FILE $1
echo "Validating $FILE"
$VALIDATOR val.gml
| Geonovum/imwe2014 | validator/bin/validate-wfs.sh | Shell | gpl-3.0 | 292 |
#!/usr/bin/env bash
cat << EOF > /etc/motd
██╗ ███████╗███╗ ██╗ ██████╗ ███████╗ ██╗
╚██╗ ██╔════╝████╗ ██║██╔═══██╗██╔════╝ ██╔╝
╚██╗ █████╗ ██╔██╗ ██║██║ ██║███████╗ ██╔╝
██╔╝ ██╔══╝ ██║╚██╗██║██║ ██║╚════██║ ╚██╗
██╔╝ ███████╗██║ ╚████║╚██████╔╝███████║ ╚██╗
╚═╝ ... | SmartInfrastructures/enos | tests/functionnal/tests/packaging/scripts/motd.sh | Shell | gpl-3.0 | 1,096 |
#!/bin/sh
# stop on failure
set -e
[ -z "${TMPDIR}" ] && TMPDIR="/tmp"
# do not allow undefined variables anymore
set -u
WEBOOB_TMPDIR=$(mktemp -d "${TMPDIR}/weboob_lint.XXXXX")
# path to sources
WEBOOB_DIR=$(cd $(dirname $0)/.. && pwd -P)
touch "${WEBOOB_TMPDIR}/backends"
chmod 600 "${WEBOOB_TMPDIR}/backends"
echo... | nojhan/weboob-devel | tools/weboob_lint.sh | Shell | agpl-3.0 | 677 |
#! /bin/bash
#*******************************************************************************
# ALMA - Atacama Large Millimeter Array
# Copyright (c) UTFSM - Universidad Tecnica Federico Santa Maria, 2011
# (in the framework of the ALMA collaboration).
# All rights reserved.
#
# This library is free software; you can ... | ACS-Community/ACS | LGPL/CommonSoftware/cdbChecker/test/test-acsexmpl.sh | Shell | lgpl-2.1 | 1,334 |
#!/bin/bash
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | leroy-chen/kubernetes | cluster/gce/debian/helper.sh | Shell | apache-2.0 | 4,890 |
mvn -f bootiful-applications/demo/pom.xml clean install
mvn -f bootiful-microservices/pom.xml clean install
| akhayrutdinov/bootiful-microservices | build-all.sh | Shell | apache-2.0 | 111 |
#!/usr/bin/env bash
# shellcheck disable=SC1090,SC2154
# Copyright 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 ... | istio/istio.io | archive/v1.8/zh/docs/tasks/traffic-management/tcp-traffic-shifting/test.sh | Shell | apache-2.0 | 2,038 |
#!/bin/bash
# Copyright 2017, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditio... | MakMukhi/grpc | tools/internal_ci/macos/grpc_build_artifacts.sh | Shell | bsd-3-clause | 1,682 |
# $OpenBSD: multipubkey.sh,v 1.1 2014/12/22 08:06:03 djm Exp $
# Placed in the Public Domain.
tid="multiple pubkey"
rm -f $OBJ/authorized_keys_$USER $OBJ/user_ca_key* $OBJ/user_key*
rm -f $OBJ/authorized_principals_$USER $OBJ/cert_user_key*
mv $OBJ/sshd_proxy $OBJ/sshd_proxy.orig
mv $OBJ/ssh_proxy $OBJ/ssh_proxy.ori... | TigerBSD/TigerBSD | FreeBSD/crypto/openssh/regress/multipubkey.sh | Shell | isc | 2,367 |
#!/bin/bash -
# run in package directory
PACK_DIR=$1
FILE=$(npm pack | tail -n 1)
mv "$FILE" "$PACK_DIR/${FILE%-[0-9]*\.[0-9]*\.[0-9]*\.tgz}.tgz"
| kadirahq/react-storybook | scripts/build-pack.sh | Shell | mit | 149 |
#!/usr/bin/env bash
#
# Copyright (c) 2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
export LC_ALL=C.UTF-8
export CONTAINER_NAME=ci_native_tsan
export DOCKER_NAME_TAG=ubuntu:16.04
export PACKAGES... | ahmedbodi/vertcoin | ci/test/00_setup_env_native_tsan.sh | Shell | mit | 996 |
#!/bin/bash
(
cd $(dirname "${BASH_SOURCE[0]}")
cd libmoon
if [[ -e setup-hugetlbfs.sh ]] ; then
./setup-hugetlbfs.sh
else
echo "libmoon not found. Please run git submodule update --init --recursive"
fi
)
| emmericp/MoonGen | setup-hugetlbfs.sh | Shell | mit | 209 |
#!/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... | KeyFive/ZQNetworkManager | Example/Pods/Target Support Files/Pods-ZQNetworkManager_Tests/Pods-ZQNetworkManager_Tests-frameworks.sh | Shell | mit | 3,871 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.