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/sh
################################################################################
# Title : publishDocumentation.sh
# Date created : 2016/02/22
# Notes :
__AUTHOR__="Jeroen de Bruijn"
# Preconditions:
# - Packages doxygen doxygen-doc doxygen-latex doxygen-gui graphviz
# must be installed.
# ... | sunpho84/SUNphi | config/publishDocumentation.sh | Shell | gpl-3.0 | 4,546 |
#!/bin/bash
# cloud.sh saved session
set -x
set -euo pipefail
echo "args: $*"
snap_pattern=$1
if [[ -z "$snap_pattern" ]]
then
echo "snap_pattern is empty"
exit 1
fi
if [[ $# -ge 2 ]]
then
myhostname=$2
else
myhostname="tmp-$$.opensource-expert.com"
echo "generating hostname: $myhostname"
fi
FLAVOR_NAME=s... | opensource-expert/ovh-tools | saved/restore_snap.sh | Shell | gpl-3.0 | 1,274 |
#!/bin/bash
source "../spinner.sh"
NEUTRE="\033[0;0m"
ROUGE="\033[31;1m"
JAUNE="\033[33;1m"
RAPPORT="/var/log/AutoInstall/unbound.log"
mkdir -p /var/log/AutoInstall/
touch ${RAPPORT}
clear
echo
echo -e "${ROUGE}. . : : [ U N B O U N D ] : : . .${NEUTRE}"
echo ""
echo "# Installation des librairies requises" > ${RA... | nastyshade/AutoInstall | UnBound/install.sh | Shell | gpl-3.0 | 2,712 |
#!/bin/bash
# Be sure that's 'bash' not just 'sh'.
/usr/bin/python /home/pi/piCLOCKTWO/weather-display.py
exit 0
| sonium0/piCLOCKTWO | startup.sh | Shell | mpl-2.0 | 115 |
#!/bin/bash
# Runs a small computational study on algorithmic performance
set -e
which parallel >/dev/null 2>&1 || (echo 'GNU parallel needed (http://www.gnu.org/software/parallel/)' && false)
which stats >/dev/null 2>&1 || (echo 'Program stats needed (https://github.com/rustyrussell/stats)' && false)
ntrial=$1; ec... | RhysU/tuna | study.sh | Shell | mpl-2.0 | 679 |
#!/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/.
#
#
# Copyright 2020 Joyent, Inc.
#
function usage()
{
echo "Usage: $0 [-cr -R|-s] <platform URI>"
... | joyent/sdc-headnode | scripts/install-platform.sh | Shell | mpl-2.0 | 3,405 |
#!/bin/bash
DARKNET_DIR=$1
FILE_LOCATION=$2
RESULT_LOCATION=$3
cd $DARKNET_DIR
./darknet detect yolo-sort.cfg yolo-sort.weights $FILE_LOCATION 2> /dev/null | grep 'box' | sed -e "s/^box://"
mv predictions.png $RESULT_LOCATION
| SORT-ETS/SORT | server/tools/yolo.sh | Shell | agpl-3.0 | 228 |
#!/bin/bash
abort () { echo $1; exit 1; }
test -z $MAPIC_CLI && abort "This script must be run from mapic cli. Use: mapic install ssl (#todo!)"
# debug mode. usage: command 2>"${PIPE}" 1>"${PIPE}"
if [[ ${MAPIC_DEBUG} = true ]]; then
PIPE=/dev/stdout
else
PIPE=/dev/null
fi
INSTALL_CMD="yarn install"
cd $MAPI... | mapic/mapic | cli/install/npm-install-on-modules.sh | Shell | agpl-3.0 | 1,192 |
#!/bin/bash
# Copyright 2013 Telefonica Investigación y Desarrollo, S.A.U
#
# This file is part of FI-WARE LiveDemo App
#
# FI-WARE LiveDemo App is free software: you can redistribute it and/or modify it under the terms
# of the GNU Affero General Public License as published by the Free Software Foundation, either vers... | telefonicaid/fiware-livedemoapp | scripts/query-amms.sh | Shell | agpl-3.0 | 1,302 |
#!/bin/bash
set -xe
if [[ -z "${TMPDIR}" ]]; then
TMPDIR=/tmp
fi
set -u
### alleleCount
VER_ALLELECOUNT="v4.0.2"
### cgpNgsQc
VER_CGPNGSQC="v1.5.1"
BIN_VERIFYBAMID='https://github.com/statgen/verifyBamID/releases/download/v1.1.3/verifyBamID'
### ascatNgs
VER_ASCATNGS="v4.2.1"
SRC_ASCAT="https://raw.githubuserco... | cancerit/dockstore-cgpwgs | build/opt-build.sh | Shell | agpl-3.0 | 7,232 |
#!/bin/bash
set -x
# gen vortex_1_1_product_version.nsh
echo -n "!define PRODUCT_VERSION \"" > vortex_1_1_product_version.nsh
value=`cat VERSION`
echo -n $value >> vortex_1_1_product_version.nsh
echo "\"" >> vortex_1_1_product_version.nsh
echo "!define PLATFORM_BITS \"$1\"" >> vortex_1_1_product_version.nsh
echo "Ins... | ASPLes/libvortex-1.1 | prepare-nsh.sh | Shell | lgpl-2.1 | 1,279 |
#!/bin/sh
#
# Copyright (C) 2002-2012 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 version 3 of the License, or
# (at your option) any later version.
#... | novel/fbsd-libvirt | .gnulib/MODULES.html.sh | Shell | lgpl-2.1 | 80,045 |
#!/bin/bash
#
# EatWhite
#
# Function: EatWhite -- Removes all leading/trailing whitespace characters
# Params: $* - The string
# Output: String (a whitespace-trimmed version of the input)
function EatWhite
{
if [ "$1" = "" ]; then
Error "EatWhite: No input provided."
return 1
fi
echo "$*" | sed 's/^\s*//' |... | nicrohobak/BashLib | Functions/String/EatWhite.sh | Shell | lgpl-3.0 | 382 |
#!/bin/bash
# Capture the name of the script
PROGNAME=${0##*/}
# Set the version number
PROGVERSION=1.1
# --------------------
# Help and Information
# --------------------
# When requested show information about script
if [[ "$1" = '-h' ]] || [[ "$1" = '--help' ]]; then
# Display the following block
cat << end... | antiX-Linux/menu-manager-antix | bin/menu_manager_applications.sh | Shell | lgpl-3.0 | 8,467 |
#PBS -S /bin/bash
#PBS -N mnakao_job
#PBS -A XMPTCA
#PBS -q tcaq
#PBS -l select=64:ncpus=20:mpiprocs=4:ompthreads=5
#PBS -l walltime=00:03:00
#PBS -j oe
. /opt/Modules/default/init/bash
#---------------
# select=NODES:ncpus=CORES:mpiprocs=PROCS:ompthreads=THREADS:mem=MEMORY
# NODES : num of nodes
# CORES : num of c... | omni-compiler/omni-compiler | samples/XACC/STREAM/job_scripts/HA-PACS/run_intel_tca_64nodes_256GPUs.sh | Shell | lgpl-3.0 | 594 |
#!/bin/bash
#
# Author : Rishi Gupta
#
# This file is part of 'serial communication manager' library.
#
# The 'serial communication manager' is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by the Free Software
# Foundation, either vers... | Tecsisa/serial-communication-manager | build_scripts/javah-slabs-cp210xruntime-header-gen.sh | Shell | lgpl-3.0 | 1,595 |
# base
# Use base tools for a bash script
# cross platform bash script start
#!/usr/bin/env bash
# Fail script and exit if any command exit's non-zero
set -e
# Add a DEBUG=* to the env and see all commands run. Useful for debugging
# DEBUG ./base
[[ -z $DEBUG ]] || set -x
sudo service network-manager stop
sudo serv... | adamryman/dotfiles | scripts/dhcp-bounce.sh | Shell | unlicense | 450 |
#!/usr/bin/env bash
# This is where VMware stores templates/scripts for the master branch of this repository
S3_BUCKET=vmware-aws-quickstart-test
S3_PREFIX=vmware/kubernetes/master/
# Where to place your cluster
REGION=us-west-2
AZ=us-west-2b
# What to name your CloudFormation stack
STACK=VMware-Kubernetes
# What S... | heptio/aws-quickstart | bin/boot-master-branch.sh | Shell | apache-2.0 | 1,083 |
#!/usr/bin/env bash
sudo docker cp ../generated/skysail.app.osgi.jar skysail-server:/home/skysail/products/osgi/plugins/skysail.app.osgi.jar
| evandor/skysail-core | skysail.app.osgi/deploy/deploy2skysail-server.sh | Shell | apache-2.0 | 142 |
python sentiment_analysis_cnn.py --gpu 0 --batch_size 50 --epochs 200 --dropout 0.5 --model_mode rand --data_name SST-1
| dmlc/web-data | gluonnlp/logs/sentiment/SST-1_rand.sh | Shell | apache-2.0 | 120 |
python example.py
tar -cvf examples.tar *png *html
rm *png *html
mv examples.tar /tmp/
git checkout gh-pages
mv /tmp/examples.tar .
tar -xvf examples.tar
rm *tar
git add *.png *.html
git commit --amend -m "Examples"
| tkrajina/cartesius | bin/create_examples_page.sh | Shell | apache-2.0 | 216 |
#!/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
Install_tomcat-8() {
cd $oneinstack_dir/src
. /etc/profile
s... | batpig61/lnmp | include/tomcat-8.sh | Shell | apache-2.0 | 5,999 |
#!/bin/sh -x
PARAMS=""
if [ -n "$suite" ]
then
PARAMS="$PARAMS -Dsuite=$suite"
fi
if [ -n "$scenario" ]
then
PARAMS="$PARAMS -Dscenario=$scenario"
elif [ -n "$1" ]
then
PARAMS="$PARAMS -Dscenario=$1"
fi
if [ -n "$startScriptLocation" ]
then
PARAMS="$PARAMS -DstartScriptLocation=$startScriptLocation"
fi
if ... | droolsjbpm/kie-benchmarks | jbpm-benchmarks/jbpm-performance-tests/run.sh | Shell | apache-2.0 | 2,641 |
#!/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"
install_resource()
{
case $1 in
*.storyboard)
echo "ibtool --errors --warnings --notices --output-format human-readable-tex... | aidanamavi/vienna-rss | Pods/Target Support Files/Pods-Vienna/Pods-Vienna-resources.sh | Shell | apache-2.0 | 4,147 |
#!/usr/bin/env bash
##########################################################################
# Version: v0.3.0
# Date: 2021-11-04T10:17:38+00:00
#
# Script to record changelog entries in individual files to get around
# the issue of merge conflicts on the CHANGELOG file when doing PRs.
#
# Credit for this idea goes ... | gchq/stroom | log_change.sh | Shell | apache-2.0 | 20,965 |
#!/bin/bash
bash docker/prepare-env.sh
opnfv-testapi
| grakiss888/testapi | docker/start-server.sh | Shell | apache-2.0 | 54 |
#!/bin/sh
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
PRGDIR=`dirname "$PRG"`
EXECUTABLE=shutdown.sh
# Check that targ... | chamerling/soa4all-installer | soa4all-installer-package/src/izpack/res/default/shutdown.sh | Shell | apache-2.0 | 615 |
#!/bin/bash
#
# (C) Copyright 2013 The CloudDOE Project and others.
#
# 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 ... | moneycat/CloudDOE | workspace/bin/20_install.sh | Shell | apache-2.0 | 1,048 |
#! /bin/bash
echo "cdh4-node-start.sh: About to start cloudera agent..."
## starting cloudera agent
sudo service cloudera-scm-agent start
| fastconnect/cloudify-cloudera | services/cloudera/cdh4-node/scripts-sh/cdh4-node-start.sh | Shell | apache-2.0 | 139 |
#!/bin/bash
#calucalate received message number
#if size is the specified size, received
data_path=$1
if [ ! -f "$data_path" ];then
echo "Usage: $0 <data_path>"
exit 1
fi
cat $data_path | awk -F" " 'BEGIN{cnt=0}{if($1!="#"){if($2==1024)cnt++}}END{print cnt}'
| melon-li/tools | netem/statdata/calrecnum.sh | Shell | apache-2.0 | 270 |
#!/bin/bash -eux
SPEC="/rpmbuild/SPECS/python-horizon-bsn.spec"
# RPM runs as root and doesn't like source files owned by a random UID
OUTER_UID=$(stat -c '%u' $SPEC)
OUTER_GID=$(stat -c '%g' $SPEC)
trap "chown -R $OUTER_UID:$OUTER_GID /rpmbuild" EXIT
chown -R root:root /rpmbuild
ln -s /rpmbuild /root/rpmbuild
rpmbui... | wolverineav/horizon-bsn | build/build-rhel-packages-inner.sh | Shell | apache-2.0 | 375 |
#!/bin/bash
docker run -it --rm repmgr
| cognition/rbrooker-pgrepmgr | bin/run-container.sh | Shell | apache-2.0 | 44 |
#!/bin/bash
hdfs dfs -rm /test
hdfs dfs -copyFromLocal ../env.sh /test
hadoop jar FileTester.jar overwrite /test 100 CONCENTRATE
| songweijia/hdfsrs | experiments/exp1/run.sh | Shell | apache-2.0 | 130 |
#!/bin/bash
# Recover WPA PSKs - prints out PSKs for WPA-PSK networks pushed to device via user/device policy
# Run this script on a Chromebook:
# 1. Put Chromebook in developer mode - https://www.chromium.org/chromium-os/poking-around-your-chrome-os-device
# 2. Log into device. Press CTRL+ALT+T to open crosh shell.
... | jay0lee/cros-scripts | recover-psks.sh | Shell | apache-2.0 | 1,163 |
#!/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... | qiandashuai/FuniOS | Pods/Target Support Files/Pods-TestJson/Pods-TestJson-frameworks.sh | Shell | apache-2.0 | 4,961 |
#!/bin/bash
#
# SSH Authentication
#
if [ -z "$id_rsa_{1..23}" ]; then echo 'No $id_rsa_{1..23} found !' ; exit 1; fi
# Careful ! Put the correct number here !!! (the last line number)
echo -n $id_rsa_{1..23} >> ~/.ssh/travis_rsa_64
base64 --decode --ignore-garbage ~/.ssh/travis_rsa_64 > ~/.ssh/id_rsa
chmod 600 ~/.ss... | rawler/bithorde | .travis/before_script.sh | Shell | apache-2.0 | 590 |
# -----------------------------------------------------------------------------
#
# Package : range-parser
# Version : 1.2.0
# Source repo : https://github.com/jshttp/range-parser
# Tested on : RHEL 8.3
# Script License: Apache License, Version 2 or later
# Maintainer : BulkPackageSearch Automation <sethp@us.ibm.com>
#... | ppc64le/build-scripts | r/range-parser/range-parser_rhel_8.3.sh | Shell | apache-2.0 | 3,064 |
#!/usr/bin/env bash
# Run it before committing to verify whether all files
# are properly formatted so you won't fail early on review
# Execute from repo root or, if using aa from base/head/startup-os
RED=$(tput setaf 1)
RESET=$(tput sgr0)
bazel run //tools:bazel_deps -- format-deps \
--overwrite \
--deps $(pwd)... | google/startup-os | tools/fix_formatting.sh | Shell | apache-2.0 | 879 |
#! /bin/bash
docker stop monodevelop-docker
docker rm monodevelop-docker
| noricohuas/docker | vnc/ubuntu-gnome-monodevelop-docker/remove.sh | Shell | apache-2.0 | 74 |
#!/bin/bash
# Yet Another UserAgent Analyzer
# Copyright (C) 2013-2017 Niels Basjes
#
# 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 r... | Innometrics/yauaa | analyzer/src/main/resources/UserAgents/AppleTypes/Generate.sh | Shell | apache-2.0 | 4,857 |
#!/bin/bash
set -e
clear
echo Starting Consul
docker stop consul || true && docker rm consul || true
docker run --rm -d --name=consul -p 8500:8500 -p 8400:8400 -p 8600:8600 -e CONSUL_BIND_INTERFACE=eth0 consul
sleep 5
docker exec consul sh -c "consul kv put 'config/cas-consul/cas/authn/accept/users' 'securecas::p@SSw0r... | apereo/cas | ci/tests/puppeteer/scenarios/configuration-properties-consul/init.sh | Shell | apache-2.0 | 344 |
#!/bin/bash
# Hello World in bash
echo "Hello, World!"
| cseppento/code-samples-bash | 01-basics/01-helloworld.sh | Shell | apache-2.0 | 55 |
#!/bin/bash
# JBoss, Home of Professional Open Source
# Copyright 2016, Red Hat, Inc. and/or its affiliates, and individual
# contributors by the @authors tag. See the copyright.txt in the
# distribution for a full listing of individual contributors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
... | redhat-developer-demos/12factor-app | 12_admin.sh | Shell | apache-2.0 | 965 |
#!/bin/bash
#
# plain-text-server.sh: read from socket, generate plain-text demo output.
#
# This script starts a RelEx server that listens for plain-text input
# (English sentences) on port 3333. It then parses the text, and
# returns a plain-text output on the same socket. The end of the parse is
# demarcated with an... | AmeBel/relex | plain-text-server.sh | Shell | apache-2.0 | 1,460 |
#!/bin/bash
set -e
REALPATH=$(python -c "import os; print(os.path.realpath('$0'))")
BASEDIR="$(dirname "${REALPATH}")/.."
cd "$BASEDIR"
JARFILE="$(ls -rt target/scala-*/tileserver-assembly-*.jar 2>/dev/null | tail -n 1)"
SRC_PATHS=($(find . -maxdepth 2 -name 'src' -o -name '*.sbt' -o -name '*.scala'))
if [ -z "$JARF... | socrata-platform/tileserver | bin/build.sh | Shell | apache-2.0 | 776 |
#!/usr/bin/env bash
project_root=
function find_script_path() {
PROG_PATH=${BASH_SOURCE[0]}
PROG_NAME=${PROG_PATH##*/}
PROG_DIR=$(cd "$(dirname "${PROG_PATH:-$PWD}")" 2>/dev/null 1>&2 && pwd)
project_root=${PROG_DIR}/..
}
function check_outcome() {
if [ "$?" != "0" ]; then
echo $1
... | Skyscanner/pages | scripts/test.sh | Shell | apache-2.0 | 864 |
#!/bin/sh
if [ "$#" -eq 0 ]; then
echo 'usage: replace-version.sh <current-version> [<new-version>]'
echo ' single argument will report which files will be changed'
fi
if [ "$#" -eq 1 ]; then
echo searching for $1
grep -r $1 --include="pom.xml" .
fi
if [ "$#" -eq 2 ]; then
echo replacing $1 with $2...
... | McLeodMoores/starling | replace-version.sh | Shell | apache-2.0 | 524 |
# ----------------------------------------------------------------------------
#
# Package : Kotlin (stdlib & stdlib-common)
# Version : 1.3.50
# Source repo : https://github.com/JetBrains/kotlin.git
# Tested on : UBI:8.3
# Script License: Apache License, Version 2 or later
# Maintainer : Srividya ... | ppc64le/build-scripts | k/kotlin-stdlib/v1.3.50/kotlin-stdlib_v1.3.50_ubi_8.3.sh | Shell | apache-2.0 | 1,936 |
#!/bin/sh
JENKINS_CLI_CMD=$1
COGNITOUSER=$2
COGNITOPASSWORD=$3
cat <<EOF | $JENKINS_CLI_CMD create-credentials-by-xml system::system::jenkins "(global)"
<com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl>
<scope>GLOBAL</scope>
<id>SVC_ADMIN</id>
<description>Jazz Admin User</description>
... | tmobile/jazz-installer | installer/terraform/provisioners/jenkinscli/credentials/cognitouser.sh | Shell | apache-2.0 | 472 |
#!/bin/bash
count=0
serverarray=()
while read -r line
do
((count=count+1))
echo $count": `echo -n $line | awk '{print $1}'` (`echo -n $line | awk '{print $2}'`)"
serverarray[$count]=`echo -n $line | awk '{print $1}'`
done <serverlist
read -p "pls cloose server:" servernum
ssh ${serverarray[$servernum]} | ichengchao/bash-practice | ssh-login/mylogin.sh | Shell | apache-2.0 | 316 |
# 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... | leomrocha/cassandra | conf/cassandra-env.sh | Shell | apache-2.0 | 9,400 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=ARM-Linux-x86
CND_CONF=Release
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}/librpi-spi... | MICRORISC/iqrfsdk | libs/raspberry/c/armv6hf/spi/clibrpi-spi-iqrf/nbproject/Package-Release.bash | Shell | apache-2.0 | 1,485 |
#AZURE specific functions
#### start $cloud_provider customizations
# $1 vm name
vm_exists() {
logger "Checking if VM $1 exists..."
if [ ! -z "$(azure vm list -s "$subscriptionID"|grep " $1 " | grep " $dnsName.cloudapp.net ")" ] ; then
return 0
else
return 1
fi
}
#$1 name $2 location
azure_create_gr... | t-ivanov/aloja | aloja-deploy/providers/azure.sh | Shell | apache-2.0 | 7,830 |
echo "Deploying" | Hasreon/Hasreon | scripts/deploy.sh | Shell | artistic-2.0 | 16 |
#!/bin/sh
# gcc -w -Os -ansi -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DISABLE_LFS -DSQLITE_THREADSAFE=0 -o record.cgi -Ilibs/qdecoder/src/ ../receiver/record.c libs/qdecoder/src/libqdecoder.a
# gcc -w -Os -ansi -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DISABLE_LFS -DSQLITE_THREADSAFE=0 -o calc_kwh calc_kwh.c
# gcc -w -Os -an... | markerr/lunar-remote-monitoring-system | system/makeit.sh | Shell | bsd-2-clause | 818 |
#!/bin/sh
cd "$(dirname "$0")"
rm .coverage 2> /dev/null
tox $*
EXITCODE=$?
[ -f .coverage ] && coverage report -m
echo "\ntox exited with code: $EXITCODE\n"
exit $EXITCODE
| un-def/django-janyson | runtests.sh | Shell | bsd-2-clause | 174 |
#!/bin/bash
# Daemon reload
systemctl --system daemon-reload
# Stop service
deb-systemd-invoke stop httpserver.service
# Purge
deb-systemd-helper purge httpserver.service
deb-systemd-helper unmask httpserver.service
| djthorpe/gopi | etc/nfpm/httpserver-preremove.sh | Shell | bsd-2-clause | 223 |
#!/bin/sh
on_crash_status()
{
local _ret=0
case "${on_crash}" in
restart)
_ret=1
;;
destroy)
_ret=0
;;
*)
logger -t bhyverun.sh "unknown value for on_poweroff: ${on_poweroff}"
_ret=0 # use default behavior
;;
esac
return ${_ret}
}
# FreeBSD 11
# EXIT STATUS
# Exit status indicates... | mergar/cbsd | share/bhyverun.sh | Shell | bsd-2-clause | 11,944 |
#!/usr/bin/env sh
# test_net_seg.bin test_proto pre_train_model label.txt outputfolder [CPU/GPU]
ROOTFILE=/home/dragon123/3dnormal_joint_cnncode/caffe-3dnormal_joint
GLOG_logtostderr=1 /home/dragon123/3dnormal_joint_cnnc... | xiaolonw/caffe-3dnormal_joint_past | jointscript/loc_slide_window/test_3dnet_localtxt_edge.sh | Shell | bsd-2-clause | 627 |
#! /usr/bin/env bash
for ((i = 0; i < 10; i++)); do
java Network -q machine random
done
echo $SECONDS
| jrgoldfinemiddleton/cs61b | pj2/networkTest.sh | Shell | bsd-2-clause | 105 |
if [ -d ~/.shearch ]
then
echo "\033[0;31mYou already have shearch installed.\033[0m You'll need to remove ~/.shearch if you want to reinstall it."
return 1
fi
echo "\033[0;32mCloning shearch...\033[0m"
hash git >/dev/null && /usr/bin/env git clone https://github.com/shearch/shearch.git ~/.shearch || {
echo "git no... | shearch/shearch | tools/install.sh | Shell | bsd-3-clause | 7,133 |
#! /bin/sh
# $Id: iptables_init_and_clean.sh,v 1.3 2012/03/05 20:36:19 nanard Exp $
# Improved Miniupnpd iptables init script.
# Checks for state of filter before doing anything..
EXTIF=eth0
IPTABLES=/sbin/iptables
EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet ' | awk '{print $2}' | sed -e 's/.*://'`"
NDIRTY="`L... | zoltan/miniupnp | netfilter/iptables_init_and_clean.sh | Shell | bsd-3-clause | 1,529 |
#!/bin/bash
#SBATCH -N 2
#SBATCH -t 00:10:00
#SBATCH -J hubio
#SBATCH -o %j.out
#SBATCH -e %j.err
#SBATCH -C haswell
#SBATCH -p debug
#i=1100000 1100000, 1200000, 1300000, 1400000, 1401000, knl cpu frequencies
freq=2300000 #1200000 # 1300000, 1400000, 1500000, 1600000, 1700000, 1800000, 1900000, 2000000, 2100000, 2... | NERSC/heterogeneous-IO | io/datahub/hub.sh | Shell | bsd-3-clause | 1,747 |
#!/bin/bash
NUM=$1
RHOST=127.0.0.1
RPORT=22222
[ -f /etc/sysconfig/rtpproxy_benchmark ] && . . /etc/sysconfig/rtpproxy_benchmark
for i in `seq 1 ${NUM}`
do
HPORT=$((8080+i))
/usr/bin/rtpproxy_monitoring -syslog=false -hport=${HPORT} -rhost="${RHOST}" -rport="${RPORT}" -ptype=8 -psize=160 -htime=60 -hsize=10 > /dev... | lemenkov/rtpproxy_monitoring | rtpproxy_benchmark.sh | Shell | bsd-3-clause | 339 |
#!/bin/sh
python manage.py migrate djcelery
celery -A remo beat -l INFO
| tsmrachel/remo | bin/run-celery-beat.sh | Shell | bsd-3-clause | 73 |
#!/bin/bash -e
install -m 644 files/sources.list "${ROOTFS_DIR}/etc/apt/"
install -m 644 files/raspi.list "${ROOTFS_DIR}/etc/apt/sources.list.d/"
sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list"
sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list.d/raspi.list"
if [ -n "$APT_PROXY" ... | jacen92/pi-gen | stage0/00-configure-apt/00-run.sh | Shell | bsd-3-clause | 654 |
#!/bin/sh
# FLAC - Free Lossless Audio Codec
# Copyright (C) 2001,2002,2003,2004,2005,2006,2007,2008,2009 Josh Coalson
#
# This file is part the FLAC project. FLAC is comprised of several
# components distributed under difference licenses. The codec libraries
# are distributed under Xiph.Org's BSD-like license... | kode54/flac | test/test_streams.sh | Shell | bsd-3-clause | 9,896 |
#!/bin/bash
set -e
set -v
# http://superuser.com/questions/196848/how-do-i-create-an-administrator-user-on-ubuntu
# http://unix.stackexchange.com/questions/1416/redirecting-stdout-to-a-file-you-dont-have-write-permission-on
echo "vagrant ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/init-users
sudo cat /etc/sudoe... | jhajek/packer-vagrant-build-scripts | packer/scripts/post_install_itmo-453-553-vagrant-host1-setup.sh | Shell | bsd-3-clause | 1,396 |
#!/usr/bin/env bash
# resolve python-version to use
if [ "$PYTHON" == "" ] ; then
if ! PYTHON=$(command -v python || command -v python2 || command -v python 2.7)
then
echo "Unable to locate build-dependency python2.x!" 1>&2
exit 1
fi
fi
# validate python-dependency
# useful in case of explic... | ragmani/coreclr | build.sh | Shell | mit | 31,621 |
#!/bin/bash -ex
USE_NDK=false
if [[ "$1" = "--ndk" ]]; then
USE_NDK=true
if [[ ! -d $ANDROID_NDK ]]; then
echo Error: ANDROID_NDK not a directory: $ANDROID_NDK
exit 1
fi
fi
if [[ ! -d NNPACK ]]; then
rm -rf NNPACK
git clone --recursive git@github.com:silklabs/NNPACK.git
fi
cd NNPACK/
if [[ ! -d env... | silklabs/silk | node-nnpack/install.sh | Shell | mit | 1,082 |
#!/bin/bash
FILES=/data/parlparse/documents/westminhall/westminster201*
for f in $FILES
do
echo "Handling $f"
/bin/bash /data/politics/1.bash $f speech.csv
done
| postfix/ensu | preprocessing/xml_westminster.bash | Shell | mit | 164 |
#!/bin/bash
#Load private config
source developer-tools/private.conf
#Generate non-ui translatables
#fixme: In future there are a few other files that belong here.
python3.8 developer-tools/translations/extract_strings_qt.py src/init.cpp src/net.cpp src/wallet/wallet_init.cpp
#Cleanup
cd src/qt/locale/Gulden
rm *.p... | nlgcoin/guldencoin-official | developer-tools/update_translations.sh | Shell | mit | 2,178 |
#!/bin/sh
git filter-branch --env-filter '
OLD_NAME="OLD_NAME"
CORRECT_NAME="CORRECT_NAME"
CORRECT_EMAIL="CORRECT_EMAIL"
if [ "$GIT_COMMITTER_NAME" = "$OLD_NAME" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_NAME" = "$OLD_NAME" ]
then
exp... | jcherqui/dotfiles | bin/git-author-rewrite.sh | Shell | mit | 449 |
#!/bin/bash
# Notes:
# - Call this scrupt by sourcing it, not by running it normally.
# - Do not use "set -u" before sourcing this script, virtualenv's activate script may trigger it.
# - Make sure the user bin dir is added to PATH
SYSTEM_PACKAGES="virtualenv setuptools wheel"
VENV_DIR=".venv"
# Exit early if inside... | CasualGaming/studlan | manage/activate-venv.sh | Shell | mit | 1,180 |
#!/bin/bash
# this script is based on debian installation guide from:
# https://github.com/jp9000/obs-studio/wiki/Install-Instructions
# use it as main guide when updating this script
# CUSTOM BUILD FLAGS
# Read more: https://wiki.gentoo.org/wiki/GCC_optimization
#
# modify these if you know what you are doing
# Exa... | SHOTbyGUN/obs-debian-easycompile | obs-easycompile.sh | Shell | mit | 6,580 |
#===================================================================================================================================
# Decompose Sam files into FASTQ files for introduction into the sequence analysis pipeline.
#---------------------------------------------------------------------------------------------... | darrenabbey/ymap | scripts_seqModules/sam2fastq.sh | Shell | mit | 4,893 |
# cd with smart ... handling.
cd() {
local first="${1%%/*}"
local num
local rest
# Only consider if first is all dots
if [ ! "$(tr -d . <<< "$first")" ]; then
num="$(wc -c <<< "$first")"
rest="${1#$first}"
else
num=0
fi
if [ $num -gt 3 ]; then
command cd "..$(printf '%0.s/..' $(seq 1 $... | metakirby5/dotfiles | base/.config/bash/configs/functions.bash | Shell | mit | 1,091 |
#! /usr/bin/env bash
set -e
which dotnet
dotnet --info
dotnet restore
dotnet build
for proj in test/**/*.csproj
do
dotnet test $proj
done
| iwillspeak/PollyTick | build.sh | Shell | mit | 148 |
#!/bin/sh
#
# Homebrew
#
# This installs some of the common dependencies needed (or at least desired)
# using Homebrew.
# Check for Homebrew
if test ! $(which brew)
then
echo " Installing Homebrew for you."
# Install the correct homebrew for each OS type
if test "$(uname)" = "Darwin"
then
ruby -e "$(curl... | Sloy/scripts | homebrew/install.sh | Shell | cc0-1.0 | 585 |
#!/bin/sh
set -eu
# Required args:
# $1: Relative path to the root jovan-s/DTAUnpacker directory.
# $2: Relative path to the root Mafia 1 install directory.
# $3: Relative path to the directory in which you wish to
# store the unpacked directories.
#
# Example usage: sh dta-unpack-all.sh repositories/DTA... | iterami/AutomationScripts | mafia/1/dta-unpack-all.sh | Shell | cc0-1.0 | 1,690 |
#!/bin/sh
# check there is no case-sensitive file
check_case_files() {
casefiles=`find ./ -name '*[A-Z]*' | grep -v '.svn' | grep -v 'README' | grep -v 'Makefile'`
if [ "$casefiles" = "" ]; then
return 0
fi
nbcasefiles=`/bin/echo -e "$casefiles" | wc -l`
if [ $nbcasefiles -ne 0 ]; then
/bin/ec... | yeKcim/warmux | community_maps/compress.sh | Shell | gpl-2.0 | 2,468 |
#!/bin/sh
NETWORK="$1" # liszt28
MODE="$2" # testing
[ -z "$2" ] && {
echo "usage: $0 <network|all> <mode>"
echo "e.g. : $0 liszt28 testing"
exit 1
}
list_networks()
{
local pattern1="/var/www/networks/"
local pattern2="/meshrdf/recent"
find /var/www/networks/ -name recent |
grep... | houzhenggang/kalua | openwrt-monitoring/tarball_update.sh | Shell | gpl-2.0 | 698 |
#! /bin/bash
#
# Usage: tag-release.sh <release-ver> [<ref>]
#
# Creates a new bugfix branch and release tag for a release.
# Optionally, the release can be based off a specific git ref.
# Default is HEAD of the current branch.
#
# The script does a lot of error checking, but boils down to
# the following actions.
#
# ... | KonaBlend/HandBrake | scripts/tag-release.sh | Shell | gpl-2.0 | 6,437 |
TARGETDIR=$1
VERSION=$2
TARGETPATH=$1/$2
echo "Copying to $TARGETPATH"
mkdir -p $TARGETPATH
cp PPSSPPWindows.exe $TARGETPATH
cp PPSSPPWindows64.exe $TARGETPATH
cp -r assets $TARGETPATH
cp -r flash0 $TARGETPATH
cp README.md $TARGETPATH
rm $TARGETPATH/assets/lang/.git
| FTPiano/ppsspp | copyrelease.sh | Shell | gpl-2.0 | 270 |
# Copyright (C) 2009-2010 OpenWrt.org
fw_config_get_rule() {
[ "${rule_NAME}" != "$1" ] || return
fw_config_get_section "$1" rule { \
string _name "$1" \
string name "" \
string src "" \
ipaddr src_ip "" \
string src_mac "" \
string src_port "" \
string dest "" \
ipaddr dest_ip "" \
string dest_por... | riedel/openwrt-wdtv | package/firewall/files/lib/core_rule.sh | Shell | gpl-2.0 | 2,703 |
#!/bin/sh
# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
# This file is public domain and comes with NO WARRANTY of any kind
#
# Script to start the MySQL daemon and restart it if it dies unexpectedly
#
# This should be executed in the MySQL base directory if you are using a
# binary insta... | dmhust/mysql-5.5.20 | scripts/mysqld_safe.sh | Shell | gpl-2.0 | 22,030 |
export HOMEIO_SITE=wind
[ -d build ] || mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++ ..
make
| HomeIO/homeio_backend | cmake_wind.sh | Shell | gpl-3.0 | 109 |
FREEBAYES=/export/home/rgarcia/software/freebayes/bin/freebayes
REF=/export/home/rgarcia/reference/GRCh38/GCA_000001405.15_GRCh38_no_alt_analysis_set.fna
BED=/export/home/rgarcia/canalopatias/targets/Miocardiopatias_y_canalopatias_AllTracks.bed
SAMDIR_ION=/export/home/rgarcia/canalopatias/sam_ion
SAMDIR_MISEQ=/export/h... | INMEGEN/MCAC | call_variants_freebayes/call_variants_from_ion_et_miseq.sh | Shell | gpl-3.0 | 6,005 |
##depends:none
# prinseq
cd ${TMPDIR_PATH}/
#curl -sL http://sourceforge.net/projects/prinseq/files/standalone/prinseq-lite-0.20.4.tar.gz/download | tar -xz
curl -sL http://$NIC_MIRROR/pub/sci/molbio/chipster/dist/tools_extras/prinseq-lite-0.20.4.tar.gz | tar -xz
chmod a+x prinseq-lite-0.20.4/*.pl
mv prinseq... | ilarischeinin/chipster | src/main/admin/vm/modules/external_tools/prinseq.bash | Shell | gpl-3.0 | 399 |
#!/bin/sh
OF=/home/disk2/benFinder/benFinder.log
echo "Starting benFinder" > $OF
cd /home/graham/benFinder
python ./benFinder.py > $OF 2>&1
| OpenSeizureDetector/OpenSeizureDetector | kinect_version/benFinder/runBenFinder.sh | Shell | gpl-3.0 | 140 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-Linux
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}/cppapplication_1... | Sajgon66/Practise | PrimeFactorization/nbproject/Package-Debug.bash | Shell | gpl-3.0 | 1,489 |
tubeup --metadata=collection:weedtubers http://pscp.tv/HighFromPiper/1vAGREzlRwYKl
tubeup --metadata=collection:weedtubers http://pscp.tv/HighFromPiper/1OwxWWbRdmWxQ
tubeup --metadata=collection:weedtubers http://pscp.tv/HighFromPiper/1mrGmnLyjPVJy
tubeup --metadata=collection:weedtubers http://pscp.tv/HighFromPiper/1O... | vxbinaca/archive-env-NG | re-rip/periscope/HighFromPiper.sh | Shell | gpl-3.0 | 4,316 |
#!/bin/bash
[[ -z ${DESTINATION_DIR} ]] && DESTINATION_DIR="keyfiles"
[[ -z ${PARTICLE_DATA_TABLE} ]] && PARTICLE_DATA_TABLE="../../../particleData/particleDataTable.txt"
[[ -z ${WAVESET_FILES} ]] && WAVESET_FILES=""
TEMPLATE_KEY_FILES="etaeta.template.key pi-eta.template.key"
# if WAVESET_FILES is not empty, only k... | odrotleff/ROOTPWA | userAnalysisWorkspace/pi_2eta.-00/keyfiles/GenerateKeyfiles.sh | Shell | gpl-3.0 | 1,776 |
#!/usr/bin/env bash
set -eu
branch=${DEPENDS_ON_BATS_VERSION:-v0.4.0}
rm -rf bats
git clone https://github.com/sstephenson/bats.git --branch $branch
cd bats
./install.sh "$DEPENDS_PREFIX"
| netj/buildkit | depends/common/bats/install.sh | Shell | gpl-3.0 | 190 |
#!/bin/sh
# This script pushes updates to my Ubuntu PPA: https://launchpad.net/~micahflee/+archive/ppa
# If you want to use it, you'll need your own ~/.dput.cf and ssh key.
# More info: https://help.launchpad.net/Packaging/PPA/Uploading
VERSION=`cat version`
rm -rf deb_dist
python setup.py --command-packages=stdeb.c... | firstlook/pdf-redact-tools | ppa_release.sh | Shell | gpl-3.0 | 474 |
#!/bin/bash -f
xv_path="/opt/Xilinx/Vivado/2016.2"
ExecStep()
{
"$@"
RETVAL=$?
if [ $RETVAL -ne 0 ]
then
exit $RETVAL
fi
}
ExecStep $xv_path/bin/xsim Testbench_FPU_multiplication_behav -key {Behavioral:sim_1:Functional:Testbench_FPU_multiplication} -tclbatch Testbench_FPU_multiplication.tcl -view /home/jorge/Documents/... | GSejas/Karatsuba_FPU | FPGA_FLOW/Proyectos Funcionales Francis Jeffrey/MUL_FPU_FUNCIONAL_v1/MUL_FPU_FUNCIONAL_v1.sim/sim_1/behav/simulate.sh | Shell | gpl-3.0 | 492 |
#!/usr/bin/env bash
if [ -r versions.mak ]
then
source versions.mak
else
echo "No versions.mak file found. Please run qmake."
exit 1
fi
source build-deps
function set_umask {
umask 0022
}
set_umask
function get_infos {
UNAME_ARCH="$(uname -m)" # Gets i?86 or x86_64
case "$UNAME_ARCH" in
... | altzone/Aera-Client | packaging/xc-package-debian.sh | Shell | gpl-3.0 | 2,647 |
#!/bin/bash -e
SVNFLAGS="-q"
CURDIR=$(pwd)
SCRIPT_DIR=$(cd $(dirname $0) && pwd)
cd $SCRIPT_DIR
./setup.sh
cd svn-test/checkout/testrepo
echo "this is a test file" > README.txt
echo "this is a test file" > README2.txt
echo "this is a test file" > README3.txt
svn add $SVNFLAGS README.txt README2.txt README3.txt
sv... | cstroe/svndumpapi | src/test/resources/dumps/scripts/svn_multi_file_delete.sh | Shell | agpl-3.0 | 520 |
#!/usr/bin/env bash
ci_dir="$(dirname "$0")"
source ${ci_dir}/ci-common.sh
coq_dpdgraph_CI_DIR=${CI_BUILD_DIR}/coq-dpdgraph
git_checkout ${coq_dpdgraph_CI_BRANCH} ${coq_dpdgraph_CI_GITURL} ${coq_dpdgraph_CI_DIR}
( cd ${coq_dpdgraph_CI_DIR} && autoconf && ./configure && make -j ${NJOBS} && make tests && (make tests ... | amintimany/coq | dev/ci/ci-coq-dpdgraph.sh | Shell | lgpl-2.1 | 403 |
#!/bin/sh
# env
#
# Replacement for env command which preserves fakechroot enviroment even with
# --ignore-environment option.
#
# (c) 2013 Piotr Roszatycki <dexter@debian.org>, LGPL
fakechroot_env_args=
fakechroot_env_extra_args=
fakechroot_env_fakechroot_base=${FAKECHROOT_BASE_ORIG:-$FAKECHROOT_BASE}
fakechroot_en... | giuliolunati/fakechroot | scripts/env.fakechroot.sh | Shell | lgpl-2.1 | 3,561 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.