code stringlengths 2 1.05M | repo_name stringlengths 5 110 | path stringlengths 3 922 | language stringclasses 1
value | license stringclasses 15
values | size int64 2 1.05M |
|---|---|---|---|---|---|
#!/bin/bash
# Finds unused classes with a stupid, flawed and inefficient algorithm
# author silverweed
while [[ $# > 0 ]]; do
case $1 in
-p) PAR=true; QUIET=true; shift ;;
*) echo "Usage: $0 [-p]"; exit 0 ;;
esac
done
BASE=$(dirname $(readlink -f $0))/..
check_class() {
CLASS="$1"
OUT=$(while read FILE; do
... | silverweed/pokepon | data/find_unused.sh | Shell | gpl-3.0 | 1,061 |
#!/usr/bin/env bash
cd image
montage -mode concatenate -tile 3x3 tiles/* basesheet.jpg
cp basesheet.jpg ../maps/basesheet.jpg
cd ..
cp -r maps ../project/android/assets/
| alesegdia/holytile | assets/build.sh | Shell | gpl-3.0 | 174 |
#!/bin/bash
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
# if it's not root, exit!
[ "$(whoami)" != "root" ] && echo -e "\n\tRUN this script as ROOT. Exiting...\n" && exit 1
int='^[0-9]+$'
show_copywrite() {
echo -e "\n$1"
echo -e "Copyright © 2015 Andre Luiz Romano Madureira. License GPLv3+: GNU GPL versio... | alr46664/opensuse-auto | Ecryptfs/eclose.sh | Shell | gpl-3.0 | 1,448 |
#!/bin/bash
# Errors
E_BAD_PARAMS=51
E_CSR_NOT_FOUND=51
PARAMS=1
OPENSSL=/usr/bin/openssl
CHMOD=/bin/chmod
LESS=/bin/less
if [ ! -x $OPENSSL ]; then
echo "ERROR : OpenSSL not installed or not found at $OPENSSL"
exit $E_OPENSSL_NOT_FOUND;
fi
if [ ! $# -eq $PARAMS ]; then
echo "Usage: $0 <crt_file>"
exit ... | antespi/csr | readcrt.sh | Shell | gpl-3.0 | 490 |
:
# $APPASERVER_HOME/src_hydrology/measurement_year_all.sh
# ------------------------------------------------------
# Freely available software. See appaserver.org
# ------------------------------------------------------
if [ "$APPASERVER_DATABASE" != "" ]
then
application=$APPASERVER_DATABASE
elif [ "$DATABASE" != "... | timhriley/appaserver | src_hydrology/measurement_year_all.sh | Shell | gpl-3.0 | 703 |
#!/bin/bash
docker-compose up --build -d | Fredjod/My-Banking-Agent | web-report/up_apache.sh | Shell | gpl-3.0 | 40 |
# Copyright 2015-2016 Gu Zhengxiong <rectigu@gmail.com>
#
# This file is part of Unish.
#
# Unish is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License
# as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any la... | NoviceLive/unish | lib/math.sh | Shell | gpl-3.0 | 1,493 |
#!/bin/bash
# This file is protected by Copyright. Please refer to the COPYRIGHT file
# distributed with this source distribution.
#
# This file is part of Docker REDHAWK.
#
# Docker REDHAWK is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as publishe... | Geontech/docker-redhawk-ubuntu | scripts/volume-manager.sh | Shell | gpl-3.0 | 4,203 |
hostname > mf
mpirun -np 1 -machinefile mf ${NEWTON_DIR}/bin/Newton : -np 1 ${NEWTON_DIR}/usr/bin/Test 0 0 mpi_comm 1 : -np 1 ${NEWTON_DIR}/usr/bin/Test 0 1 mpi_comm 2
| fedecaccia/newton | examples/linear_system_2_clients/mpi_comm-mpi_comm/run.sh | Shell | gpl-3.0 | 168 |
#!/bin/bash
basefile="input_testcases/testC/input.txt"
parafile="input_testcases/parameters_uncert.txt"
temppara="input_testcases/testC/temp_par.txt"
for i in $(seq 0 4) #should be 0 4
do
ln1="OutputForecastFile=output_testcases/testC$i"
ln2="Logfile=output_testcases/testC$i.log"
sed "1s+.*+$ln1+" $basefile | sed "2... | fkhalid/CRS | input_testcases/t48b/testC/run_mpi.sh | Shell | gpl-3.0 | 480 |
bash ./dependencies.sh
pip3 install tensorflow-gpu
pip3 install Kivy
pip3 install xgboost
pip3 install seaborn
pip3 install nltk
pip3 install Flask
pip3 install plotly
pip3 install scrapy
pip install shub
sudo apt install xvfb
sudo pip3 install graphviz
sudo pip3 install scikit-image
sudo apt-get install calibre
sudo... | ThyrixYang/LearningNotes | package_install/install.sh | Shell | gpl-3.0 | 434 |
#!/bin/sh
CWD=`pwd`
./clean.sh # start by cleaning the respositories
if [ -d tttt ] ; then
/bin/rm -rf tttt
fi
mkdir tttt
tar cf - libplot | (cd tttt; tar xf -)
/bin/rm -rf tttt/libplot/.git*
tar cf - libutil | (cd tttt; tar xf -)
/bin/rm -rf tttt/libutil/.git*
tar cf - libaed-water | (cd tttt; tar xf -)
/bin... | AquaticEcoDynamics/AED_Tools | admin/glm_release_bundle.sh | Shell | gpl-3.0 | 1,619 |
#! /bin/bash
cd build/test/unit/timers_1
./timers_1
cd -
| simongonzalezguerra/bogart | runTestTimers1.sh | Shell | gpl-3.0 | 58 |
"`dirname $0`"/../webmerge.sh -f "`dirname $0`"/conf/sprites.conf.xml --webdump --dumproot=webexport
| mgreter/webmerge | example/webdump.sh | Shell | gpl-3.0 | 101 |
#!/bin/bash
sleep 30
exec /usr/bin/indicator-kdeconnect
| jmanoel7/my_shell_scripts | bin/indicator-kdeconnect-start.sh | Shell | gpl-3.0 | 56 |
#!/bin/bash
myfile="qmake"
mytarget="CppHelloBoostLexical_CastQtCreatorLubuntu"
myprofile=$mytarget.pro
if [ ! -e $myprofile ]
then
echo "Qt Creator project '$myprofile' not found"
exit
fi
$myfile $myprofile
if [ ! -e Makefile ]
then
echo "FAIL: $myfile $myprofile"
exit
fi
make
if [ -e $mytarget ]
then
... | richelbilderbeek/CppTests | CppHelloBoostLexical_CastQtCreatorLubuntu/CppHelloBoostLexical_CastQtCreatorLubuntu.sh | Shell | gpl-3.0 | 425 |
#!/usr/bin/bash
prep_source_right() {
# return 0 - mounted successfully
# return 1 - nothing to do
# return 2 - mount failed
RHELUP_CONF="/root/preupgrade/upgrade.conf"
mount_path="$(grep "^device" "$RHELUP_CONF" | sed -r "s/^.*rawmnt='([^']+)', .*$/\1/")"
iso_path="$(grep "^iso" "$RHELUP_CONF" | cut -d "... | upgrades-migrations/preupgrade-assistant-modules | RHEL6_7/networking/openssh-keycat/install-openssh-keycat.sh | Shell | gpl-3.0 | 1,434 |
#!/bin/bash
# ---------------------- README ----------------------------
# If an 'ordered' index is desired, please rebuild atire with:
# USE_PARALLEL_INDEXING to 0 in GNUmakefile.defns, line 37
# in the external/atire/ directory, otherwise the index will
# be built using the pipeline and the order will be
# psuedo-... | JMMackenzie/Quant-BM-WAND | run_gov2.sh | Shell | gpl-3.0 | 2,240 |
objdump -t libc_lib.so | c++filt | grep $1
| Gnomescroll/Gnomescroll | netclient/shell/get_gdb_breakpoint_name.sh | Shell | gpl-3.0 | 43 |
#!/usr/bin/env bash
NVM_INSTALL_URL="https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh"
parse_yaml() {
prefix=$2
s='[[:space:]]*'
w='[a-zA-Z0-9_]*'
fs="$(echo @|tr @ '\034')"
sed -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \
-e "s|^\($s\)\($w\)$s[:-]$s\(.*\)$s\... | pirackr/circle.yml-dev | circle-dev.sh | Shell | gpl-3.0 | 2,429 |
#/usr/bin/env bash
autoreconf --force --install
| sundrythoughts/EmuCpu | autogen.sh | Shell | gpl-3.0 | 49 |
#!/bin/bash
set -e
pegasus_lite_version_major="4"
pegasus_lite_version_minor="7"
pegasus_lite_version_patch="0"
pegasus_lite_enforce_strict_wp_check="true"
pegasus_lite_version_allow_wp_auto_download="true"
. pegasus-lite-common.sh
pegasus_lite_init
# cleanup in case of failures
trap pegasus_lite_signal_int INT
trap... | elainenaomi/sciwonc-dataflow-examples | dissertation2017/Experiment 1A/instances/10_1_workflow_full_10files_secondary_w1_3sh_3rs_with_annot_with_proj_3s_range/dags/ubuntu/pegasus/example_workflow/20161108T204604+0000/00/00/generalinfo_0_ID0000002.sh | Shell | gpl-3.0 | 1,243 |
#!/bin/bash
#------------------------------------------------------------------------------
#
# Name: thinkpad-dock.sh
#
# Purpose: Iterate through /etc/thinkpad-dock/thinkpad-dock.conf looking for
# supported Thinkpad Docks. If one is found, run scripts found in
# /etc/thinkpad-dock/scripts
#
# Scripts: script... | finlstrm/thinkpad-dock | usr/local/bin/thinkpad-dock.sh | Shell | gpl-3.0 | 6,026 |
#! /bin/bash
set -e
if [[ $# -lt 2 ]]; then
echo "USAGE: ./test-rpm.sh name category [packagetestscript] [package options]"
exit 1
fi
if [[ "`whoami`" != 'root' ]]; then
echo "Need to run as root, will install package and test newly created rpm"
exit 1
fi
export start="`pwd`"
export name="$1"
export cat... | simoncadman/buildpackage | test-rpm.sh | Shell | gpl-3.0 | 835 |
#!/bin/bash
# Default D language run script for VPL
# License http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
# Author Daniel Ojeda Loisel
# Juan Vega Rodriguez
# Miguel Viera González
#load common script and check programs
. common_script.sh
check_program gdc
if [ "$1" == "version" ] ; then
... | AA25/visualisationEngine | jail/default_scripts/d_run.sh | Shell | gpl-3.0 | 515 |
#!/bin/bash
# set up your app name, version number, and background image file name
APP_NAME="FreeFlight"
VERSION=`cat version.txt | head -n 1`
PROJECT_PATH="Unity Free Flight"
#Copy the background to this dir. We do this to shorten the path, or else finder
#will error when we try to set the background in the apple s... | NickolausDS/Unity-Free-Flight | release/make_dmg.sh | Shell | gpl-3.0 | 5,102 |
#!/bin/bash
set -e
CONFIGDIR=/ops/shared/config
CONSULCONFIGDIR=/etc/consul.d
NOMADCONFIGDIR=/etc/nomad.d
HADOOP_VERSION=hadoop-2.7.4
HADOOPCONFIGDIR=/usr/local/$HADOOP_VERSION/etc/hadoop
HOME_DIR=ubuntu
# Wait for network
sleep 15
# IP_ADDRESS=$(curl http://instance-data/latest/meta-data/local-ipv4)
IP_ADDRESS="$... | Ashald/nomad | terraform/shared/scripts/client.sh | Shell | mpl-2.0 | 2,151 |
#! /bin/bash
set -euxo pipefail
scons -Q clean
scons -Q --enable-werror --build-3rdparty=openfec test
| roc-project/roc | scripts/travis/linux-x86_64/alpine.sh | Shell | mpl-2.0 | 102 |
#!/bin/bash
set -e
# start a server and put pid in know file location
cd "$(dirname $BASH_SOURCE)"/..
export PID_FILE=tests/test-server.pid
if test -e $PID_FILE; then
if kill -0 `cat $PID_FILE`; then
echo Stopping process with pid `cat $PID_FILE`;
kill `cat $PID_FILE` || true
rm $PID_FILE
fi
fi
| ciudadanointeligente/popit | tests/test-server-stop.bash | Shell | agpl-3.0 | 316 |
#!/bin/bash
nwX=26.1962553
nwY=-81.8161969
X=0.0143900
Y=0.0160968
for l in `seq 0 10`
do
for i in `seq 0 10`
do
z=$(echo "$i + 1"|bc -l)
a=$(echo "$l + 1"|bc -l)
lat1="$(echo "$nwX - $X * $l"|bc -l)"
long1="$(echo "$nwY + $Y * $i"|bc -l)"
lat2="$(echo "$nwX - $X * $a"|bc -l)"
long2="$(ech... | metalx1000/Township-Map | get_gps.sh | Shell | agpl-3.0 | 454 |
#!/usr/bin/env bash
#
# LEDIR contains following dirs and files:
# certs/ dir for successfully created csr, key and crt files
# certs-test/ dir used when testing
# user.pub user account public key
# user.key optional user account private key for automatic signing
: ${LEDIR:=~/letsencrypt}
# "default" means we... | bifek/letsencrypt-nosudo | create_cert.sh | Shell | agpl-3.0 | 2,242 |
#!/bin/bash
source /etc/custard/production-activate
/opt/custard/bin/find-unsubscribed.coffee
| scraperwiki/custard | cron/find-unsubscribed.sh | Shell | agpl-3.0 | 95 |
#!/usr/bin/env bash
. $builddir/tests/test_common.sh
set -e
set -o pipefail
name=$(basename $0 .sh)
result=$(mktemp -t ${name}.out.XXXXXX)
stderr=$(mktemp -t ${name}.out.XXXXXX)
ret=0
rm -f test_file
# First make sure that this OVAL fails, then scan again with --remediate
$OSCAP xccdf eval --results $result $srcdir/... | OpenSCAP/openscap | tests/API/XCCDF/unittests/test_remediation_subs_value_title.sh | Shell | lgpl-2.1 | 2,275 |
#!/usr/bin/env bash
set -e
FILE=${1:?File parameter is required}
# Make sure the file is actually in git
git ls-files --error-unmatch "$FILE" >/dev/null
# If index is empty, stage changes in the file
git diff-index --quiet --cached HEAD && git add -p "$FILE"
# Fix up the last commit touching the file
LASTCOMMIT=$(g... | andsild/dotfiles | Bash/fixupFile.sh | Shell | unlicense | 475 |
#!/bin/bash
if [ "$1" == "" ]; then
echo "Path to data file required"
else
export FNAME=$1
F1=$(jq -r '.field1?' $FNAME)
F2=$(jq -r '.field2?' $FNAME)
F3=$(jq -r '.field3?' $FNAME)
echo "Found $F1,$F2,$F3."
rm $FNAME
fi
| giuliov/BuildTests | Scripts/dump-data.sh | Shell | unlicense | 260 |
#!/bin/bash
set -o xtrace
echo -- set hostname
echo 'archmaster' > /etc/hostname
echo -- set timezone
ln -s /usr/share/zoneinfo/UTC /etc/localtime
echo -- set locale
sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
sed -i 's/#en_DK.UTF-8 UTF-8/en_DK.UTF-8 UTF-8/' /etc/locale.gen
locale-gen
cat << EOF... | gima/packer-archlinux | provision/archmaster/install2.sh | Shell | unlicense | 2,169 |
#!/bin/bash
if ! which xdotool &>/dev/null ; then
echo "ERROR: xdotool not found"
exit 1
fi
if ! which wmctrl &>/dev/null ; then
echo "ERROR: wmctrl not found"
exit 1
fi
### get active desktop ID.
desktopID=$(xdotool get_desktop)
xy=20
x=$xy
y=$xy
step=20
prev_w=0
alignr='no'
[ "$1" == '-r' ] && alignr='yes'
... | rff/cfgbin | bin/cascade.sh | Shell | unlicense | 1,353 |
#!/bin/bash
# Copyright 2015 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 ... | kubernetes-client/python | scripts/cherry_pick_pull.sh | Shell | apache-2.0 | 8,101 |
# Use modern completion system
autoload -Uz compinit
compinit -d ~/.cache/zsh/.zcompdump
zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:... | i-sinister/dotconfig | zsh/completions.sh | Shell | apache-2.0 | 1,152 |
res=$1 # resolution in degress
path=$2
basepath=$3
let startyear="$4-2000"
let endyear="$5-2000"
yeartmp=/tmp/tmp.tif
avgtmp=/tmp/tmp_avg.tif
# extract year rasters and resample to target resolution
for yearidx in $(seq $startyear $endyear)
do
# setup
printf -v year "20%02d" $yearidx
outdir=$basepath/$ye... | wri/agg-hansen | agg.sh | Shell | apache-2.0 | 1,049 |
#!/bin/sh
cabal clean && cabal configure --enable-tests --enable-coverage && cabal build && cabal test
| vpeurala/DeBruijn | test.sh | Shell | apache-2.0 | 104 |
#!/bin/bash
set -e
# Following script copies the markdown files from vmware:master to the gh-pages branch.
# Please check for pre-requisite before running the script and proceed further if your
# local workspace meets the pre-requisite requirement.
#
# A. Pre-requisite:
#
# 1. Local copy of vDVS project is needed befo... | pshahzeb/vsphere-storage-for-docker | misc/scripts/update_gh_pages.sh | Shell | apache-2.0 | 2,452 |
#!/usr/bin/env bash
if [ $# -ge 1 ]; then
path=$1
else
path=/usr/local/hadoop/block/
fi
echo
echo HADOOP_HOME = $HADOOP_HOME
echo
HOSTLIST="/usr/local/hadoop-0.20.1-dev-patch/conf_bak/masters"
for IP in `cat "$HOSTLIST"|sed "s/#.*$//;/^$/d"`; do
echo shutdown $IP
ssh $IP nohup /usr/local/hadoop-0.20.1-dev-patc... | submergerock/avatar-hadoop | tools/stop-allnode.sh | Shell | apache-2.0 | 776 |
#!/bin/bash
set -e
# See https://denibertovic.com/posts/handling-permissions-with-docker-volumes/
# Add local user.
# Either use the LOCAL_USER_ID if passed in at runtime or fallback to 9001.
USER_ID=${LOCAL_USER_ID:-9001}
echo "Starting with UID : $USER_ID"
groupadd --gid $USER_ID build_user
useradd --shell /bin/ba... | gojuno/composer | ci/docker/entrypoint.sh | Shell | apache-2.0 | 509 |
#!/bin/bash
# Copyright 2019 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 require... | ppwwyyxx/tensorflow | tensorflow/tools/ci_build/release/ubuntu_16/gpu_py36_full/nonpip_v1.sh | Shell | apache-2.0 | 2,108 |
VULKAN_SDK_VER="1.2.162.1"
export VK_SDK_DMG=vulkansdk-macos-$VULKAN_SDK_VER.dmg
wget -O $VK_SDK_DMG https://sdk.lunarg.com/sdk/download/$VULKAN_SDK_VER/mac/$VK_SDK_DMG?Human=true &&
hdiutil attach $VK_SDK_DMG
echo "VULKAN_SDK=/Volumes/vulkansdk-macos-$VULKAN_SDK_VER" >> $GITHUB_ENV
| DiligentGraphics/DiligentCore | BuildTools/Scripts/github_actions/vulkan_sdk.sh | Shell | apache-2.0 | 285 |
#!/bin/bash
# OpenShift namespaced objects:
# oc get --raw /oapi/v1/ | python -c 'import json,sys ; resources = "\n".join([o["name"] for o in json.load(sys.stdin)["resources"] if o["namespaced"] and "create" in o["verbs"] and "delete" in o["verbs"] ]) ; print resources'
# Kubernetes namespaced objects:
# oc get --raw ... | openshift/openshift-ansible-contrib | reference-architecture/day2ops/scripts/project_export.sh | Shell | apache-2.0 | 11,609 |
#!/bin/sh
#
#$ -N genecut
#$ -q KA
#$ -pe smp 1
#$ -cwd
NAME=""
NAME2=""
cat ${NAME} | cut -f 1 > /Shared/Au/anthony/wkdir/houston/refseq/tables/${NAME2}
| jason-weirather/Au-public | arsenic/cutgenes.sh | Shell | apache-2.0 | 159 |
#!/bin/sh
run-idss-batch.py --inputdirectory sampled-data --outputdirectory seriation-results --xyfile xyfiles/seriationct-7XY.txt --dryrun 0
| mmadsen/experiment-seriationct | experiments/seriationct-7/bin/run-seriations.sh | Shell | apache-2.0 | 143 |
#!/bin/bash
if [ $# -eq 2 ]; then
echo $0 $@
else
echo "Error: invalid input parameters"
echo "Usage: $0 <path to the opencga home directory> <opencga version>"
exit 1
fi
OPENCGA_HOME=$1
VERSION=$2
OPENCGA_BUILD_DIR="$OPENCGA_HOME/build/"
SOLR_DIR="$OPENCGA_BUILD_DIR/misc/solr"
# Change version in INSTALL.m... | opencb/opencga | opencga-app/app/misc/solr/prepare_configsets.sh | Shell | apache-2.0 | 1,615 |
#!/bin/bash
set -o errexit
set -o errtrace
set -o pipefail
# synopsis {{{
# Runs smoke tests on the test environment. Sources pipeline.sh
# }}}
__DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export ENVIRONMENT=TEST
# shellcheck source=/dev/null
[[ -f "${__DIR}/pipeline.sh" ]] && source "${__DIR}/pipeline.sh... | wybczu/spring-cloud-pipelines | common/src/main/bash/test_smoke.sh | Shell | apache-2.0 | 393 |
#!/usr/bin/env bash
(cd ff-metric-docker && docker build -t scott/misc-ff-metric .)
(cd optic-docker && docker build -t scott/misc-optic .)
(cd warehousecontroller && docker build -t scott/misc-warehousecontroller .)
(cd emq && docker build -t scott/misc-eqmttd .)
# TODO cli-whc
# TODO ELIoT
| EricssonResearch/scott-eu | misc/build.sh | Shell | apache-2.0 | 294 |
#!/bin/bash
perl -pe 's/^\S+\s+//' | perl -pe 's/(\d+):(\S+)/\1/g;s/ /\n/g' | sort -n | uniq -c | sort -n | tail -101 | head -100 | awk '{print $2}' | sort -n
| tmills/uda | scripts/extract_pivots_by_frequency_liblinear.sh | Shell | apache-2.0 | 160 |
#!/bin/bash
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | google/google-ctf | 2021/quals/rev-polymorph/targets/build.sh | Shell | apache-2.0 | 1,100 |
#!/bin/bash
# enable bash debugging if DEBUG is set to "1"
[ ${DEBUG:-0} = "1" ] && set -x
# generate config
config_file=${ZBX_CONFIGFILE:-/etc/zabbix/zabbix_agentd.d/80-env-generated.conf}
## get all variables prefixed with ZBX_CONF_
for env_zabbix_option in ${!ZBX_CONF_*}
do
zabbix_option=${env_zabbix_option#Z... | godmodelabs/docker-zabbix-agentd | entrypoint.sh | Shell | apache-2.0 | 1,287 |
#!/bin/bash
# Copyright 2021 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | tensorflow/decision-forests | tools/start_compile_docker.sh | Shell | apache-2.0 | 2,138 |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you... | jayunit100/bigtop | bigtop-packages/src/common/kafka/install_kafka.sh | Shell | apache-2.0 | 4,705 |
#sudo ./install-apigee.sh apigeetrial apigeetrial@apigee.com secret apigeetrial.apigee.net Medium apigeetrial.apigee.net 10.0.0.1:10.0.0.2:10.0.0.3:10.0.0.4:10.0.0.5 $LICENSE $SSH
mkdir -p /tmp/apigee/log
ARMLOGPATH=/tmp/apigee/log/armextension.log
echo 'executing the install script' >>${ARMLOGPATH}
initialize_varia... | apigee/microsoft | apigee-edge-arm-template/templates/install-ue.sh | Shell | apache-2.0 | 11,802 |
#!/bin/bash -ev
USAGE="Usage: $0 host1 host2 ... hostN"
# USAGE="Usage: dir host1 host2 ... hostN"
KEYFILENAME="cloudkey.pem"
if [ "$#" -lt "1" ]; then
echo "$USAGE"
exit 1
fi
if [ -f recruit/user ]; then
user=$(<recruit/user)
else
user=root
fi
if [ -f recruit/passwd ]; then
passwd=$(<recruit/passwd)
else
... | hdb3/remote | recruit.sh | Shell | apache-2.0 | 694 |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you... | Altiscale/bigtop | bigtop-deploy/vm/vagrant-puppet-docker/docker-hadoop.sh | Shell | apache-2.0 | 4,386 |
#!/bin/bash
cat $0 | awk '{ for (i=NF; i>0; i--) printf("%s ",$i); }'
| ichengchao/bash-practice | practice/005-backwards-listing/script.sh | Shell | apache-2.0 | 70 |
#!/bin/bash
# verible-verilog-format-changed-lines-interactive.sh.
# Copyright 2020 The Verible 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/licens... | chipsalliance/verible | verilog/tools/formatter/verible-verilog-format-changed-lines-interactive.sh | Shell | apache-2.0 | 5,456 |
#!/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... | christian-posta/kubernetes | build/versionize-docs.sh | Shell | apache-2.0 | 2,759 |
#!/bin/bash
carthage update $1 --platform iOS --no-use-binaries --cache-builds
#find ./Carthage/Build/iOS/ -name *.bcsymbolmap $(find ./Carthage/DerivedData/Build/Products/Release-iphoneos -name *.bcsymbolmap | sed 's#./Carthage/DerivedData/Build/Products/Release-iphoneos/#-not -name #') -exec rm {} \;
| Drusy/auvergne-webcams-ios | scripts/carthage-update.sh | Shell | apache-2.0 | 306 |
# ----------------------------------------------------------------------------
#
# Package : torch
# Version : 7.0
# Source repo : https://github.com/PPC64/torch-distro.git
# Tested on : ubuntu_16.04
# Script License: Apache License
# Maintainer : Snehlata Mohite <smohite@us.ibm.com>
#
# Disclaimer... | ppc64le/build-scripts | t/torch7/torch7_ubuntu_16.04.sh | Shell | apache-2.0 | 1,125 |
# Read defaults, if available:
[ -f "/etc/default/tactycal-agent" ] && . /etc/default/tactycal-agent
# Sane defaults:
[ -z "$AGENT_HOME" ] && AGENT_HOME=/var/spool/carbon-c-relay
[ -z "$AGENT_USER" ] && AGENT_USER=tactycal
[ -z "$AGENT_GROUP" ] && AGENT_GROUP=tactycal
[ -z "$AGENT_CONF_DIR_PATH" ] &&... | tactycal/agent | scripts/after-remove.sh | Shell | apache-2.0 | 1,206 |
docker-compose -f docker-compose.yml up | mpetersen/spring-boot-docker | docker/run.sh | Shell | apache-2.0 | 39 |
#!/bin/bash
# Copyright 2017 Google Inc.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
# test_fastqc.sh
#
# Simple test script to exercise the fastqc Docker image.
# The Docker image is assumed to h... | googlegenomics/pipelines-api-examples | fastqc/local/test_fastqc.sh | Shell | bsd-3-clause | 1,874 |
#!/usr/bin/env bash
#ssset -e # stop immediately on error
umask u+rw,g+rw # give group read/write permissions to all new files
#--------------------------------------------------------------------------
# Registration of functional/diffusion (EPI) to structural (T1w) images.
#
# Usage
# type \'sh register_EPI_T1.... | neuroecology/MrCat | core/register_EPI_T1.sh | Shell | bsd-3-clause | 16,345 |
#!/bin/bash
bin=`cd "$( dirname "$0" )"; pwd`
# Load the Tachyon configuration
. "$bin/tachyon-config.sh"
if [ -e $TACHYON_HOME/conf/tachyon-env.sh ] ; then
. $TACHYON_HOME/conf/tachyon-env.sh
fi
if [ -z $TACHYON_RAM_FOLDER ] ; then
TACHYON_RAM_FOLDER=/mnt/ramdisk
echo "TACHYON_RAM_FOLDER was not set. Using t... | vax11780/tachyon | bin/mount-ramfs-linux.sh | Shell | bsd-3-clause | 617 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-Linux-x86
CND_CONF=Debug
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=so
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/libFixPrime.... | xjrueda/fixprime | nbproject/Package-Debug.bash | Shell | bsd-3-clause | 1,511 |
#
# Enables local Python package installation.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
# Sebastian Wiesner <lunaryorn@googlemail.com>
# Patrick Bos <egpbos@gmail.com>
#
# Load manually installed pyenv into the shell session.
if [[ -s "$HOME/.pyenv/bin/pyenv" ]]; then
path=("$HOME/.pyenv/bin" $pa... | zachwhaley/prezto | modules/python/init.zsh | Shell | mit | 6,445 |
# install OCaml + OPAM
case "$OCAML_VERSION,$OPAM_VERSION" in
3.12.1,1.0.0) ppa=avsm/ocaml312+opam10 ;;
3.12.1,1.1.0) ppa=avsm/ocaml312+opam11 ;;
4.00.1,1.0.0) ppa=avsm/ocaml40+opam10 ;;
4.00.1,1.1.0) ppa=avsm/ocaml40+opam11 ;;
4.01.0,1.0.0) ppa=avsm/ocaml41+opam10 ;;
4.01.0,1.1.0) ppa=avsm/ocaml41+opam11 ;;
*) echo Un... | ocamllabs/iocamljs | .travis-ci.sh | Shell | mit | 953 |
#!/bin/bash
for file in _site/js/*.js; do
./node_modules/.bin/babel-minify "$file" -o "$file" --simplifyComparisons --simplify --mangle
done
| rj175/twofactorauth | _deployment/minify-js.sh | Shell | mit | 143 |
#!/bin/sh
if [ ! -f config.json ]; then
cp config.json.template config.json
fi
if [ ! -f log4jsconfig.json ]; then
cp log4jsconfig.json.template log4jsconfig.json
fi
if [ ! -d logs ]; then
mkdir logs
fi
if [ ! -d node_modules ]; then
./setup.sh
fi
node src/server.js
| shownotes/show-pad | run.sh | Shell | mit | 280 |
#!/usr/bin/env bash
# This script runs clang-format and fixes copyright headers on all relevant files in the repo.
# This is the primary script responsible for fixing style violations.
set -uo pipefail
IFS=$'\n\t'
CLANG_FORMAT_FILE_EXTS=(".c" ".h" ".cpp" ".hpp" ".cc" ".hh" ".cxx" ".m" ".mm" ".inc" ".java" ".glsl")
... | DmitriySalnikov/godot | misc/scripts/clang_format.sh | Shell | mit | 1,929 |
#!/bin/bash
bma stack-create nagios cloudformation/ec2.yml
bma stack-create postgres01 cloudformation/ec2.yml
bma stack-create postgres02 cloudformation/ec2.yml
bma stack-create prometheus-web cloudformation/ec2.yml
| realestate-com-au/bash-my-aws | scripts/localstack-stack-create.sh | Shell | mit | 217 |
sudo haxelib install -notimeout hxcpp
sudo haxelib install -notimeout lime 2.7.0
sudo haxelib install openfl 3.4.0
sudo haxelib run openfl setup
sudo haxelib install actuate
sudo haxelib git linc_dialogs https://github.com/snowkit/linc_dialogs.git
haxelib dev hxlive ../ | ColourID/HaxeLive | setup/prereq.sh | Shell | mit | 270 |
#!/bin/bash
sleep 5
instance_name=$(curl http://169.254.169.254/latest/meta-data/hostname)
HOSTNAME_MONITORING="HOSTNAMEMONITORING"
instance_name=${instance_name::-10}
sed -i -e "s/$HOSTNAME_MONITORING/$instance_name/g" /etc/collectd/collectd.conf
service collectd restart
sed -i -e "s/$HOSTNAME_MONITORING/$instance_n... | alincalinciuc/docker | media-server-6/fix.sh | Shell | mit | 1,055 |
#! /usr/bin/env bash
#
# Convert relative path to absolute one
#
# Adam Lackorzynski <adam@os.inf.tu-dresden.de>
#
help()
{
echo PWD=\$PWD $0 relpath1 [relpath2 [..]]
exit $1
}
convertpath()
{
relpath=$1
basepath=$PWD
# sanity checks
[ -z "$relpath" -o -z "$basepath" ] && help 1
[ "${basepath#/}" = "${b... | MicroTrustRepos/microkernel | src/l4/mk/rel2abs.sh | Shell | gpl-2.0 | 1,269 |
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: ${0} <path to trang jar>"
exit 1
fi
TRANG=$1
java -jar $TRANG deletePoint.rnc deletePoint.rng
java -jar $TRANG publish.rnc publish.rng
java -jar $TRANG unpublish.rnc unpublish.rng | oss-fruct-org/gets | service/rng-schemes/convert-to-rng.sh | Shell | gpl-2.0 | 239 |
run_bench() {
COMMAND_DURATION=
COMMAND_FILES=
COMMAND_DIRECTORIES=
COMMAND_MIN_FILESIZE=
COMMAND_MAX_FILESIZE=
if [ "$FFSB_DURATION" != "" ]; then
COMMAND_DURATION="--duration $FFSB_DURATION"
fi
if [ "$FFSB_NUM_FILES" != "" ]; then
COMMAND_FILES="--files $FFSB_NUM_FILES"
fi
if [ "$FFSB_NUM_DIRECTORIES"... | kdave/mmtests | drivers/driver-ffsb.sh | Shell | gpl-2.0 | 929 |
#!/bin/bash
prefix="$1"
if [ -z "$prefix" ]; then
echo "usage: $0 destdir" 1>&2
exit 1
fi
rm -rf infinidb mysql infinidb-ent
git clone http://srvgip1.calpont.com/repos/infinidb.git
cd infinidb
git checkout develop
cd ..
git clone https://github.com/infinidb/mysql.git
cd mysql
git checkout develop
cd ..
git clon... | YelaSeamless/infinidb | build/bb_pre_build.sh | Shell | gpl-2.0 | 580 |
#!/bin/sh
export npm_config_wcjs_runtime="electron"
export npm_config_wcjs_runtime_version="0.29.2"
npm install
| EdZava/WebChimera.js | build_electron.sh | Shell | gpl-2.0 | 114 |
#!/sbin/sh
buildflag=0
partflag=0
if [ "$1" = "qcom" ]; then
buildflag=1
else
echo "[-] Usage: ./write_image.sh <build> <partition> <dir_of_img>" | tee /dev/kmsg
exit 1
fi
if [ $buildflag == 1 ]; then
if [ -e "$3"/"$2".img ]; then
dd if="$3"/"$2".img of=/dev/block/platform/msm_sdcc.1/by-name/"$2"
echo "[+] O... | RolanDroid/android_kernel_motorola_msm8226 | zip-creator/tmp/write_image.sh | Shell | gpl-2.0 | 602 |
#!/bin/bash -
# libguestfs
# Copyright (C) 2013 Red Hat Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This ... | pombredanne/libguestfs | tests/regressions/rhbz975797.sh | Shell | gpl-2.0 | 2,135 |
#!/bin/sh
cat 1>&2 <<EOF
Unable to read consumer identity
Unable to read consumer identity
EOF
cat <<EOF
ftp.x86_64
mlocate.x86_64
python-mako.noarch
python-zope-interface.x86_64
wget.x86_64
Obsoleting
python-zope-interface.x86_64
EOF
| jpoliv/check_updates | t/mocks/yum_errors.1.sh | Shell | gpl-3.0 | 238 |
#!/bin/bash
# Fixing setcap
setcap cap_net_admin+ep /usr/sbin/tunctl
setcap cap_net_admin+ep /bin/ip
setcap cap_net_admin+ep /sbin/brctl
setcap cap_net_admin+ep /usr/bin/ovs-vsctl
# Deleting logs
rm -f /opt/unetlab/data/Logs/*
/usr/sbin/apache2ctl graceful
# Setting /etc/issue
echo "Unified Networking Lab (default r... | sshurick/unetlab-ss | ovf/ovfstartup.sh | Shell | gpl-3.0 | 1,354 |
#!/bin/bash
./$HOME/bash_syn_ibm_2016
vcs -full64 -gui -R -f file_list_RKOA +v2k +lint=all -l log_name -Mupdate \
+define+SINGLE \
-timescale=1ns/1ps \
+neg_tchk \
+sdfverbose
| GSejas/Dise-o-ASIC-FPGA-FPU | ASIC_FLOW/ASIC_KOA_2_cycles/integracion_fisica/simulacion_logica_sintesis/SINGLE/run_sim_RKOA.sh | Shell | gpl-3.0 | 180 |
#! /bin/sh
# Look for JAVA HOME environment variables
if [ -z "${JAVA_HOME}${JAVA_HOME_OVERRIDE}" ] ; then
echo "ERROR: The variable JAVA_HOME is not defined; cannot start."
echo " Please set your JAVA_HOME environment variable or use the -javahome parameter."
exit 1
fi
# Look for CORUS HOME environ... | sapia-oss/corus | modules/server/bin/echoClient.sh | Shell | gpl-3.0 | 2,518 |
#!/bin/bash
RPM_FILE=$(basename `ls rpm/x86_64/kool-server-*`)
SERVER="deploy@katdev.no-ip.biz"
PORT="26"
function dlog {
echo " => $1"
}
dlog "Starting deploy..."
dlog "Current directory in server"
ssh -p ${PORT} -o StrictHostKeyChecking=no ${SERVER} "pwd"
ssh -p ${PORT} ${SERVER} "mkdir -p ~/working"
dlog "Push... | Kool-Monkeys/kool_monkey | deploy/deploy.sh | Shell | gpl-3.0 | 530 |
#!/bin/bash
usage(){
echo "
BBMap
Written by Brian Bushnell, from Dec. 2010 - present
Last modified February 11, 2019
Description: Fast and accurate splice-aware read aligner.
Please read bbmap/docs/guides/BBMapGuide.txt for more information.
To index: bbmap.sh ref=<reference fasta>
To map: bbmap.sh in=<r... | abiswas-odu/Disco | bbmap/bbmap.sh | Shell | gpl-3.0 | 20,692 |
#!/bin/sh
set -e
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
realpath() {
DIRECTORY="$(cd "${1%/*}" && pwd)"
FILENAME="${1##*/}"
echo "$DIRECTORY/$FILENAME"
}
install_reso... | markohlebar/Fontana | Pods/Target Support Files/Pods-Spreadit/Pods-Spreadit-resources.sh | Shell | agpl-3.0 | 4,972 |
python finetune_squad.py --optimizer adam --batch_size 12 --lr 3e-5 --epochs 2 --gpu
| dmlc/web-data | gluonnlp/logs/bert/finetune_squad1.1_base_mx1.6.0rc1.sh | Shell | apache-2.0 | 85 |
#!/bin/bash
amp -k team ls | grep -q "team"
| atomiqio/atomiq | tests/cli/team/list/list_test.sh | Shell | apache-2.0 | 45 |
# Copyright 2018 DeepMind Technologies Limited. 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 a... | deepmind/lamb | lamb/lib/config/tuning.sh | Shell | apache-2.0 | 808 |
#!/bin/bash
host_ip="localhost"
host_port=9443
prgdir=`dirname "$0"`
script_path=`cd "$prgdir"; pwd`
common_folder=`cd "${script_path}/../common"; pwd`
bash ${common_folder}/undeploy.sh
echo "Removing kubernetes cluster..."
curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:$... | agentmilindu/stratos | samples/applications/complex/tomcat-single-signon/scripts/kubernetes/undeploy.sh | Shell | apache-2.0 | 378 |
#!/bin/bash
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | iotivity/iotivity | extlibs/tinycbor/prep.sh | Shell | apache-2.0 | 2,161 |
#!/usr/bin/env bash
set -x
set -e
RACK_ENV=test bundle exec rake db:setup
RACK_ENV=test bundle exec rake db:oar:setup | nirvanesque/g5k-api | script/bootstrap.sh | Shell | apache-2.0 | 119 |
#!/bin/bash -e
#
#
# Startup script for Datafari
#
#
if (( EUID != 0 )); then
echo "You need to be root to run this script." 1>&2
exit 100
fi
DIR=../../../debian7/bin
source "set-datafari-env-devmode.sh"
source "${DIR}/utils.sh"
if is_running $SOLR_PID_FILE; then
echo "Error : Solr seems to be running alr... | svanschalkwyk/datafari | dev-tools/script/debian/start-datafari-devmode.sh | Shell | apache-2.0 | 732 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.