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
#**********************************************************
#* CATEGORY JARVIS HOME AUTOMTION
#* GROUP RESTART SYSTEM
#* AUTHOR LANCE HAYNIE <LANCE@HAYNIEMAIL.COM>
#**********************************************************
#Jarvis Home Automation
#Copyright (C) 2017 Haynie Research & Develop... | Haynie-Research-and-Development/jarvis | scripts/restart_system.sh | Shell | gpl-2.0 | 1,038 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2010-2022 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distribu... | gittup/tup | test/t2074-reverse-rule.sh | Shell | gpl-2.0 | 1,088 |
#!/usr/bin/env node
(require("../src/apg-conv/apg-conv.js"))();
| ldthomas/apg-js | bin/apg-conv.sh | Shell | gpl-2.0 | 64 |
#!/bin/ksh
JVM="$JDK_HOME/bin/java $JAVA_RUN_OPTS"
#Operator add_rule Id \"expresion\" ior_file operation < operator.ior
#Operator replace_rule Id \"expresion\" ior_file operation <operator.ior
#$1 $2 "$3" $4 $5
#Operator insert_rule Id Position \"expresion\" ior_file operation<operator.ior
#$1 $2 $3 "$4" $5 $6
if [... | AlvaroVega/TIDNotifJ | tools/TIDDistrib/Operator.sh | Shell | gpl-2.0 | 759 |
#! /bin/bash
connectedDev=$(hcitool con 2>/dev/null)
conMac=${connectedDev:20:18}
conMac=$(echo "$conMac" 2>/dev/null|tr -d " " 2>/dev/null)
conname=$(hcitool name "$conMac" 2>/dev/null)
echo "$conname" 2>/dev/null
| zoff99/ToxBlinkenwall | toxblinkenwall/scripts/rpi_zerow/get_bt_connected_name.sh | Shell | gpl-2.0 | 216 |
#!/bin/bash
#
# Copyright (C) 2017 Google 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 program is dis... | GoogleCloudPlatform/mysql-docker | 5/debian9/5.7/docker-entrypoint.sh | Shell | gpl-2.0 | 6,774 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2009-2020 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distribu... | ppannuto/tup | test/t7030-move-over-ghost2.sh | Shell | gpl-2.0 | 1,227 |
#!/bin/bash
function displayNumberOfFiles() {
files=$(( $( ls -l | wc -l ) - 1 ))
echo "Number of files in this directory are: $files"
echo ""
}
function displayNumberOfSubdirectories() {
typeset -i subdirectories=0
file * | while
read filename filetype rest
do
if [ $filetype = "... | itch96/ShellScripts | 16.MenuFileOp.sh | Shell | gpl-3.0 | 1,616 |
#! /bin/bash
#$ -cwd -V
#$ -j y
#$ -m e
set -e
res1=$(date +%s.%N) # use to calculate whole run time of the job
echo $'\n'"["`date`"]: Job started."
## Add Modules ########################
module load $8
#######################################
SAMPLE_ID=$1
SAMPLE_PATH=$2
Q=$3
MaxD=$4
REF_BUILD=$5
REF_FILE=$6
BAMFIL... | Helgriff/MitoCirco | BashScripts/Samtools1-3Bcftools.sh | Shell | gpl-3.0 | 1,492 |
#!/usr/bin/env bash
if [ "$#" -gt 2 ]; then
echo "Usage: waitForFormat device_name [gpt|msdos]"
exit 1
fi
LABEL=gpt
case "$2" in
msdos)
LABEL=msdos
;;
*)
LABEL=gpt
;;
esac
while true; do
if [ `fdisk -l /dev/$1 | wc -l 2>/dev/null` -gt 0 ]; then
parted -a optimal -s -- /dev/$1 mklabel $LABEL... | EWS-Network/ews-cf-templates | compute/ebs/scripts/waitForFormat.sh | Shell | gpl-3.0 | 365 |
#!/bin/bash
#
# This file is part of Schumix.
#
# Copyright (C) 2010-2013 Megax <http://megax.yeahunter.hu/>
# Copyright (C) 2013-2015 Schumix Team <http://schumix.eu/>
#
# Schumix is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Fre... | Schumix/Schumix2 | fixmakefile.sh | Shell | gpl-3.0 | 2,726 |
#!/bin/bash
g++-4.9 -std=c++11 $1.cpp -I../../.. -I../../../src/include -DNDEBUG -O3 -DZNN_CUBE_POOL_LOCKFREE -DZNN_USE_FLOATS -lpthread -lfftw3f -ljemalloc -o $1 -DZNN_DONT_CACHE_FFTS
| seung-lab/znn-release | src/cpp/measurements/make_g++_mac.sh | Shell | gpl-3.0 | 185 |
#!/bin/bash
#
# Copyright (C) 2017.
# Author: Jesús Manuel Mager Hois
# e-mail: <fongog@gmail.com>
# Project website: http://turing.iimas.unam.mx/wix/
# 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 Founda... | pywirrarika/smtwixes | evalmodels.sh | Shell | gpl-3.0 | 6,415 |
#!/bin/bash
source /opt/gc2/bin/activate
python /opt/gc2/gc2smwdaemon.py
| JosefAssad/SeMaWi | scripts/syncgc2.sh | Shell | gpl-3.0 | 74 |
#!/usr/bin/env bash
. ./setdir.sh
NAME=nfi
TYPE_PARAMS="--marcVersion FENNICA --fixAlephseq --marcxml --emptyLargeCollectors"
MARC_DIR=${BASE_INPUT_DIR}/nfi
MASK=fennica.mrcx
. ./common-script
echo "DONE"
exit 0
| pkiraly/metadata-qa-marc | catalogues/nfi.sh | Shell | gpl-3.0 | 215 |
#!/bin/bash
hemin=0.001
hemax=0.007
hestep=0.0005
himin=0.002
himax=0.008
histep=0.0005
for he in $(seq $hemin $hestep $hemax); do
for hi in $(seq $himin $histep $himax); do
#max=`echo $m + $pstep | bc`
program="python RUM_Detektor_2Npp.py -he $he -hi $hi"
echo $program
bsub -q B... | TiKunze/CanMics | src/python/01_SingleChannel/2pop/Npp/RUM_Detect_2Npp_batch.sh | Shell | gpl-3.0 | 347 |
#!/bin/bash
#Script looks at process name and kill it.
#Delcare Variables
PNumber="$(ps -f -u $USER | grep -i $1 | awk 'NR==1{print $2}')"
#Process number
#echo $PNumber
if [[ -z "$PNumber" ]]; then
#statements
echo "No processes found, try another process name"
break
else
#statements
echo "##################... | mgvv/learning-how-to-code | Learning_Bash_Advanced/mi_cominenzo/restar_process.sh | Shell | gpl-3.0 | 1,140 |
#!/bin/bash
XMIN=0.005
for ORD in NLO
#for ORD in LO NLO
do
#for Q2 in 1.0 2.0 4.0 10.0 20.0 100.0 200.0 1000.0
#for Q2 in 1.0 2.0 10.0 100.0
#for Q2 in 1.0
#for Q2 in 4.0
for Q2 in 10.0
#for Q2 in 100.0
#for Q2 in 10.0
do
#for iflav in -5 -4 -3 -2 -1 0 1 2 3 4 5
#for iflav in -4 -3 -2 -1 0 1 2 3 4
#for iflav in ... | miyachi-yu/Mellin | plotter/DSTplot.sh | Shell | gpl-3.0 | 9,490 |
#!/bin/bash
pushd test > /dev/null 2>&1
python test_check_datafiles.py
[ $? -ne 0 ] && exit 1
python test_size_to_int.py
[ $? -ne 0 ] && exit 1
popd test > /dev/null 2>&1
| dveeden/innodb-space | test/run_all.sh | Shell | gpl-3.0 | 174 |
#!/bin/bash
CPU_FAMILY=$(grep "family" /proc/cpuinfo | sort -u | rev | cut -d ' ' -f1 | rev)
CPU_MODEL=$(grep "model" /proc/cpuinfo | grep -v "name" | sort -u | rev | cut -d ' ' -f1 | rev)
CPU_MODELNAME=$(grep "model name" /proc/cpuinfo | sort -u | cut -d ':' -f2 | xargs)
./startjob.py -M ${PBS_NODEFILE} -j ${PBS_JOB... | RRZE-HPC/LMS | midware/influxdbrouter/examples/startPBSjob.sh | Shell | gpl-3.0 | 468 |
#!/bin/bash
set -eu
## A testing script to run every gold solution case in parallel.
## Failing test case names are displayed after all have finished.
## Any flags, e.g. --use-system-epsilon, will be propagated.
# Used to build and report failed cases
tempfile() { tempprefix=$(basename "$0"); mktemp "/tmp/${tempprefi... | RhysU/suzerain | apps/perfect/manual.gold/all.sh | Shell | gpl-3.0 | 1,484 |
#!/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/logs/w-08_0/20161024T205417+0000/00/00/terminate_0_ID0000016.sh | Shell | gpl-3.0 | 1,237 |
#! /bin/bash
# installs Grafana; it does a arch check to determine the proper .deb file to be used
echo "************************************"
echo "*******Installing Grafana***********"
echo "************************************"
. /etc/environment
LOCAL_DEB=''
case `uname -m` in
x86_64)
echo 'x86_64'
... | petre2dor/piGarden | scripts/updates/update-5.sh | Shell | gpl-3.0 | 921 |
#! /bin/bash
## Example workflows using EAGLE
CPU=8
## -- Germline Variant Calling --
# Directly after variant calling, run eagle to calculate variant log likelihood ratios
eagle -t $CPU -v variants.vcf -a align.bam -r reference.fa > eagle.txt
# Filter variants based on eagle output
python scripts/compile_likelihood... | tony-kuo/eagle | scripts/example.sh | Shell | gpl-3.0 | 4,650 |
# This file is part of the Aloofix project.
# Copyright (C) 2013 Kevin Johnson <kjj@aloofschipperke.com>
# Distributed under the terms of the GNU General Public License version 3,
# or (at your option) any later version.
name=tcpdump
version=4.4.0
sequence=1
description="Common-line packet analyzer"
site=http://www.tc... | aloofschipperke/aloofix | specs/pkgs/tcpdump/spec.sh | Shell | gpl-3.0 | 930 |
#!/bin/bash
################################################################################
# OpenAirInterface
# Copyright(c) 1999 - 2014 Eurecom
#
# OpenAirInterface 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 S... | mspublic/openair4G-mirror | targets/PROJECTS/SPECTRA/DEMO_SPECTRA/spectra_demo_src/common/openair_scripts/utils.bash | Shell | gpl-3.0 | 10,978 |
#!/usr/bin/env bash
find . -name hardware_header.h -exec rm {} \;
find . -name hardware_init.h -exec rm {} \;
find . -name protocol_header.h -exec rm {} \;
find . -name protocol_init.h -exec rm {} \;
find . -name operator_header.h -exec rm {} \;
find . -name operator_init.h -exec rm {} \;
find . -name action_header.h ... | pilight/pilight | compile_all.sh | Shell | gpl-3.0 | 4,237 |
#!/usr/bin/env bash
# File : wds-lfs-chk.sh
# Created : <2018-6-26 Tue 23:50:52 BST>
# Modified : <2018-7-07 Sat 01:42:50 BST> #Rλatan
# Author : #Rλatan
# Synopsis : <Check all requirements for the host to buld LFS>
set -e
# use it for debug
#set -x
# ---------------------------------------------------------... | Hellseher/wds | wds-hacks/wds-lfs-chk.sh | Shell | gpl-3.0 | 6,356 |
#!/bin/bash
# Copyright (C) 2018 Maciej Delmanowski <drybjed@gmail.com>
# Copyright (C) 2018 DebOps <https://debops.org/>
# SPDX-License-Identifier: GPL-3.0-or-later
set -o nounset -o pipefail -o errexit
make clean-tests
make test-spdx test-pep8 test-yaml test-shell
make check
| ganto/debops | lib/travis/syntax/script.sh | Shell | gpl-3.0 | 281 |
# pacman -Qo /bin/netstat -- to find packages
pacman -S libelf linux linux-headers \
systemd gdb rsync net-tools strace openssh make bison flex
| mgood7123/UPM | Sources/dtrace-20160613/tools/get-deps-arch.sh | Shell | gpl-3.0 | 145 |
#!/bin/bash
ORG_ID=1
PRODUCT_NAME="OCP Docker images"
upstream_repos=( openshift3/ose-deployer \
openshift3/ose-docker-registry \
openshift3/registry-console \
openshift3/ose-pod \
openshift3/ose-docker-builder \
openshift3/ose-sti-builder \
openshift3/ose-haproxy-router \
opens... | opuk/satellite | hammer/populate_ose/populate-docker.sh | Shell | gpl-3.0 | 2,072 |
#!/bin/sh
# Use-case: start integration branch from master
function cleanup_branches {
local branches=`git branch | grep -v master`
for branch in $branches; do
(git branch -D $branch) > /dev/null 2>&1
done
}
function show_scenario {
echo ""
echo "Create an integration branch, which contains the followi... | Salamangkero/git-build | sandbox/exercises/exercise_00.sh | Shell | gpl-3.0 | 417 |
#!/bin/sh
set -e # exit on first error
OPENCV_URL=https://github.com/Itseez/opencv/archive/3.0.0-alpha.zip
install_dependencies()
{
sudo apt-get -y install \
libopencv-dev \
build-essential \
cmake \
git \
libgtk2.0-dev \
pkg-config \
python-dev \
p... | chutsu/slam | slam_vision/scripts/opencv3_install.sh | Shell | gpl-3.0 | 1,566 |
#!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
mkdir -p $DIR/build
npm install
bower update
gulp build
cd $DIR/dist
touch $DIR/build/frontend.zip
rm $DIR/build/frontend.zip
zip -r $DIR/build/frontend.zip *
cd $DIR
| rudywaltz/web2-frontend | build.sh | Shell | gpl-3.0 | 242 |
#!/bin/bash -x
#source /host/settings.sh
restore_data() {
drush @qtr sql-query --file=$(pwd)/qtr.sql
$(drush @qtr sql-connect --database=qtr_data) < $(pwd)/qtr_data.sql
}
restore_config() {
# enable features
while read feature; do
drush --yes @qtr pm-enable $feature
drush --yes @qtr f... | Q-Translate/qtr_server | ds/scripts/restore.sh | Shell | gpl-3.0 | 1,462 |
#!/bin/sh
#TODO mieux gérer les chemins (pour pouvoir appeler le script de n'importe où)
JARS=`/bin/ls lib/*.jar`
CLASSPATH=""
for JAR in $JARS ; do
CLASSPATH=$CLASSPATH:$JAR
done
java -cp "$CLASSPATH" io.github.algorys.agshmne.Agshmne
| algorys/agshmne | packager/src/main/script/agshmne.sh | Shell | gpl-3.0 | 248 |
atm_forcing=$1
sfc_forcing=$2
out=$3
python erai2icar.py $atm_forcing $sfc_forcing $out
| johanneshorak/erai2icar | prep_for_icar.sh | Shell | gpl-3.0 | 88 |
#!/bin/bash
echo "scale=2 ; $*" | sed -e "s:x:*:g" | sed -e "s:,::g" | bc
#function math
#{
# echo "scale=2 ; $*" | sed -e "s:x:*:g" | sed -e "s:,::g" | bc
#}
| KIAaze/bin_and_dotfiles_public | bins/public_bin/math.sh | Shell | gpl-3.0 | 167 |
#!/bin/bash
#/media/StorageOne/HTS/VirusMeta/SAM_BAM/circos_plot_cov/circos_pipeline.sh /media/StorageOne/HTS/Projects/2011_N17_Viraskin2-HiSeq /media/StorageOne/HTS/Projects/2011_N17_Viraskin2-HiSeq/anecto_virus.fasta /media/StorageOne/HTS/Projects/2011_N17_Viraskin2-HiSeq/Data/Intensities/BaseCalls/forward.fastq /med... | NIASC/VirusMeta | SAM_BAM/circos_plot_cov/circos_pipeline.sh | Shell | gpl-3.0 | 5,116 |
#!/bin/bash
cd classes
scala fos.FJ "
class A extends Object
{
Object x1;
A(Object x1)
{
super();
this.x1 = x1;
}
Object foo(A x1, B x2)
{
return x2;
}
}
class B extends Object
{
A()
{
super();
}
}
(new A(new B())).foo(new A(new Object()), ne... | sana/WorkAtEPFL | FeatherweightJava/tests/Computation-RInvk.sh | Shell | gpl-3.0 | 330 |
#!/bin/sh
set -xe
cd /tmp
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=~/.local -DCMAKE_CXX_FLAGS="-Wall -Wextra" /io
make install
make tests
ctest --output-on-failure --timeout 100 ${MAKEFLAGS}
| openturns/otmixmod | run_docker_build.sh | Shell | gpl-3.0 | 205 |
/home/share/user/user101/software/ngsTools/angsd/angsd -gl 1 -anc ancestral -dosaf 1 -only_proper_pairs 1 -uniqueOnly 1 -remove_bads 1 -C 50 -minMapQ 30 -minQ 20 -setMinDepth 35 -setMaxDepth 280 -out pda_e -bam file.list -ref ancestral -P 32 -sites /home/share/user/user101/projects/yangshu/16.angsd/01.regions_without_r... | wk8910/bio_tools | 36.reseq_pipeline/05.angsd/01.step1.onePop/01.dosaf.sh | Shell | mpl-2.0 | 351 |
#!/bin/bash
i=5
while test $i -gt 0
do
echo ${i}...
i=$((i-1))
sleep 1
done
echo Décollage.
| Marsonge/scripts | script4.sh | Shell | mpl-2.0 | 97 |
#!/bin/sh
docker-compose exec -e RAILS_ENV=production imgshr rails c
| nning/imgshr | examples/traefik/console.sh | Shell | agpl-3.0 | 69 |
#!/bin/bash
#
# packaging.sh Copyright (C) 2019 GEM Foundation
#
# OpenQuake 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 version 3 of the License, or
# (at your option) any later version.
#
... | gem/oq-engine | .travis/packaging.sh | Shell | agpl-3.0 | 1,148 |
source common.sh
set +x
expect_trace() {
expr="$1"
expect="$2"
actual=$(
nix-instantiate \
--trace-function-calls \
--expr "$expr" 2>&1 \
| grep "function-trace" \
| sed -e 's/ [0-9]*$//'
);
echo -n "Tracing expression '$expr'"
set +e
... | NixOS/nix | tests/function-trace.sh | Shell | lgpl-2.1 | 1,565 |
#!/bin/sh
case "$1" in
dev)
export mode="dev"
;;
test)
export mode="test"
;;
*)
export mode="prod"
;;
esac
grails ${mode} drop-postgis-database
grails ${mode} create-postgis-database
grails ${mode} schema-export ./ddl.sql
grails ${mode} run-sql-file ddl.sql
grails ${mode} run-sql-file geoms.sql
grails ${mode} run-sc... | radiantbluetechnologies/omar | apps/geodata-test/setupdb.sh | Shell | lgpl-2.1 | 437 |
#!/bin/sh -e
# local variable
CURRENT=$(pwd)
LIBGPG=$CURRENT"/dep/libgpg-error-1.12"
LIBGCRYPT=$CURRENT"/dep/libgcrypt-1.5.2"
LIBTASN=$CURRENT"/dep/libtasn1-3.3"
# check
rm -r tmp || true
rm -r lib || true
rm gcrypt.h || true
rm gcrypt-module.h || true
rm gpg-error.h || true
rm libtasn1.h || true
cd $LIBGPG
rm bin |... | alvarezgregory/GLS | compileStatic.sh | Shell | lgpl-2.1 | 2,605 |
#!/bin/sh -
GIT_ROOT=/opt/data
if [ $# -lt 1 ]; then
echo "Usage: $0 TAG"
exit 1
fi
if [ ! -w $GIT_ROOT ]; then
echo "You don't have enough rights on $GIT_ROOT to execute this script.";
exit 2
fi
exec git stash && git pull --all && git checkout $1 && git stash pop
| nuxeo/nuxeo.io | tools/upgrade-sources.sh | Shell | lgpl-2.1 | 277 |
#!/bin/bash
if [[ "$1" = "-h" ]]; then
echo Usage: $0 /path/to/encoded/vts /path/to/patched/up/vts
exit 0
fi
mkdir -p ${2}
for a in ${1}/*VOB; do
name=$(basename $a)
./make_vob ${a} ${2}/${name}
done
| lu-zero/dvdtools | patchup.sh | Shell | lgpl-2.1 | 220 |
#!/bin/sh
# pancake script to sync a git repo from a mercurial one
# hg-git seems broken as long as git is more restrictive in author names
# so... i just rewrote it from scratch to push commits by blocks
GITDIR=radare2.git
GITPUSH=git+ssh://git@github.com/radare/${GITDIR}
GITPULL=git://github.com/radare/${GITDIR}
con... | glandium/radare2 | mk/gitpush.sh | Shell | lgpl-3.0 | 1,388 |
#!/bin/bash
###
# This script builds the project and generates Lider distribution (Lider.tar.gz)
#
# Generated file can be found under /tmp/lider
###
set -e
pushd $(dirname $0) > /dev/null
PRJ_ROOT_PATH=$(dirname $(pwd -P))
popd > /dev/null
echo "Project path: $PRJ_ROOT_PATH"
# Generate Lider packages
echo "Generati... | Agem-Bilisim/lider-console | scripts/generate-javadoc.sh | Shell | lgpl-3.0 | 867 |
#!/bin/bash
#requires the dpid and resourceId {$1}/{$2}
echo "Mapping openflow switches to OpenNaaS resource."
response=$(curl -X GET http://admin:123456@localhost:8888/opennaas/vrf/routing/switchMapping)
echo $response
| dana-i2cat/opennaas-routing-nfv | autoMapSwDevices.sh | Shell | lgpl-3.0 | 220 |
#!/usr/bin/env bash
cd dspot && mvn clean test jacoco:report coveralls:report
| danzone/dspot | .travis/travis-coverage.sh | Shell | lgpl-3.0 | 79 |
#!/bin/bash
## Identify regions outside of the genic features
## including 5'UTR, 3'UTR, TSS (1kb region cntered on 5'UTR start),
## fragments (unique exonic regions), and introns
## Get bed file of full genome (use chrom.sizes)
awk '{print $1"\t"0"\t"$2}' ${CHROM} > ${ROZ}/${SPECIES}.chrom.sizes.bed
## Combine... | McIntyre-Lab/papers | nanni_chip_rna_2022/scripts/annotation/intergenic_03avn.sh | Shell | lgpl-3.0 | 1,267 |
#!/bin/bash
# -*- coding:utf-8-unix; mode:sh; -*-
set -u
cd $(dirname "$0")
export PATH=/usr/local/bin:/usr/bin:/bin
BASE_DIR="/var/share/tv_recorded"
TMP="${TMP-/tmp/av-archive}"
SPLIT="./split-ts.sh"
CONVERT="./convert-mp4.sh"
main() {
local m2ts
for m2ts in "$BASE_DIR"{,/**}/*.m2ts; do
if [[ ! -... | kui/dotfiles | bin/archive-ts.sh | Shell | unlicense | 1,738 |
#!/bin/bash
readonly program="${1}"
shift
i=0
for arg in "${@}"; do
if [[ -e "${arg}" ]]; then
arg="$(cygpath -w "${arg}")"
fi
args["${i}"]="${arg}"
((i++))
done
"${program}" "${args[@]}"
| ntsuji/cygcmd | cygcmd.sh | Shell | unlicense | 200 |
#! /bin/bash
function print_success {
arg1=$1
printf "%s \e[0;32m[✔]\e[0m\n" "${arg1}"
}
function print_success_bold {
arg1=$1
bold=$(tput bold)
printf "\n\n${bold}\e[0;32m%s\e[0m" "${arg1}"
printf "\e[0;32m..........................................\e[0m"
printf "\e[0;32m[✔]\e[0m\n"
}
function fancy_pr... | lfiolhais/dotfiles | script/utilities.sh | Shell | unlicense | 416 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=MinGW-Windows
CND_CONF=Release
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=dll
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/libesx-re... | Koncord/ESx-Reader | nbproject/Package-Release.bash | Shell | apache-2.0 | 1,474 |
#!/usr/bin/env bash
if [[ ! -x "../${PWD##*/}/gradlew" ]]; then
echo "Please run me from the WebdavBulkDeleter Git repo"
exit 1
fi
type -p java &>/dev/null
if (( $? != 0 )); then
echo "No \"java\" command in path - please add the java JRE or JDK \"bin\" directory to your path variable"
exit 1
fi
bina... | ftclausen/WebdavBulkDeleter | webdavbulkdeleter.sh | Shell | apache-2.0 | 483 |
docker build -t tstromberg/chrome .
| tstromberg/dockerfiles | chrome/build.sh | Shell | apache-2.0 | 36 |
#!/bin/sh
_LS_SOURCE=$(dirname "${0}")
if [[ "${_LS_SOURCE}" = "." ]]; then
_LS_SOURCE=$(dirname "${PWD}")
elif [[ -z "$(echo ${_LS_SOURCE} | grep "^/" 2> /dev/null)" ]]; then
_LS_SOURCE="${PWD}"
else
_LS_SOURCE=$(dirname "${_LS_SOURCE}")
fi
_LS_SOURCE=$(dirname "${_LS_SOURCE}")
_LS_SOURCE=$(dirname "${_LS... | asirnayeef23/fsm | bin/unix-like/install/Solaris/install.sh | Shell | apache-2.0 | 1,963 |
#!/bin/bash -e
RELEASE_DIR=`git rev-parse --show-toplevel`
cd $RELEASE_DIR
DEPLOYMENT=$1
if [[ -z $DEPLOYMENT ]]; then
DEPLOYMENT=templates/bosh-lite/bosh-lite.yml
fi
echo "Using stub $DEPLOYMENT"
mkdir -p tmp
DEPLOYMENT_FILE=`basename $DEPLOYMENT`
DEPLOYMENT_ENV=`basename $(dirname $DEPLOYMENT)`
MANIFEST_FILE=tm... | apoydence/logradile | scripts/make_manifest_bosh_lite.sh | Shell | apache-2.0 | 471 |
#!/bin/bash
# 1) Shutdown Solr.
/home/$USER/solr_tomcat/apache-tomcat-7.0.32/bin/shutdown.sh
# 2) Move the existing data and conf into a sub-dir
mkdir /home/$USER/solr_tomcat/apache-solr-config/stories
mv /home/$USER/solr_tomcat/apache-solr-config/conf /home/$USER/solr_tomcat/apache-solr-config/stories
mv /home/$USER/... | stori-es/stori_es | tool/update_solr.sh | Shell | apache-2.0 | 2,856 |
#!/bin/sh
export DEPLIB=target/dependency
export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
export JVMFLAGS="-server -Dgameserver -XX:+HeapDumpOnOutOfMemoryError -XX:MaxPermSize=256m -mx1024m -Dusefakesender=false"
export JVMFLAGS="-server"
export GSBINDIR=/Users/wangqi/disk/projects/snsgames/... | wangqi/gameserver | bootstrap/startboot.sh | Shell | apache-2.0 | 1,021 |
# WARNING: This file is managed by Salt.
# Modify sources to keep changes persistent.
###############################################################################
export EDITOR="vim"
###############################################################################
{% if grains['os_platform_type'].startswi... | uvsmtid/common-salt-states | states/common/shell/variables/common.custom.variables.sh | Shell | apache-2.0 | 3,023 |
#!/bin/bash -eux
yum -y erase gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
yum -y clean all
rm -rf VBoxGuestAdditions_*.iso
| chef/basebox | .centos/cleanup.sh | Shell | apache-2.0 | 146 |
tclsh graph_size.tcl metis_flash_4GB_i26.log metis_15000_RAID1_4GB_i26.log kredit_RAID_32GB_i26.log pc990_2GB_i26.log appetizer
tclsh graph_size.tcl metis_flash_8GB_i26.log metis_flash_4GB_i26.log metis_flash_2GB_i26.log metis_15000_RAID1_8GB_i26.log metis_15000_RAID1_4GB_i26.log metis_15000_RAID1_2GB_i26.log SSD_RAM
... | statsbiblioteket/summa | Core/scripts/performance/report_graphs.sh | Shell | apache-2.0 | 4,577 |
#!/bin/bash
export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxMetaspaceSize=1G -XX:MetaspaceSize=256M -Xms8G -Xmx8G"
sbt
| dnvriend/activiti-test | helloworld/sbt-test.sh | Shell | apache-2.0 | 126 |
#!/bin/bash
# Hard Drive Burn-In Testing
# As seen here:
# https://forums.freenas.org/index.php?threads/how-to-hard-drive-burn-in-testing.21451/
# Isolate the available disks
camcontrol devlist
# Isolate the names of the disks
#TODO: extract the adax device
camcontrol devlist | awk '{print $10}'
# Run short tests
... | anonymuse/stowery | smart_check.sh | Shell | apache-2.0 | 1,328 |
#!/bin/bash
#
# -- Run as: ./run_intensity_range_test_evenness_scaling.sh 1> test_output/stdout.txt 2> test_output/stderr.txt
#
errecho(){ >&2 echo $@; }
# Declare test ranges:
declare -a range_intensities=$(seq 0.25 0.25 5) #("1.25") #$(seq 3 90) #e.g. ("44" "45")
# Declare test output location:
result_set="test_o... | LightStage-Aber/LightStage-Repo | exp/Evenness_Scaling/run_intensity_range_test_evenness_scaling.sh | Shell | apache-2.0 | 2,115 |
#!/bin/bash -eu
# file: mw.sh
function init {
bundle
rake db:schema:load
rake db:migrate
rake fake_data
}
function run {
sv exit watson # no need for this on here
exec rails server
}
command=$1
cd /usr/src/service
if [ "$command" = "init" ]; then
init
elif [ "$command" = "run" ]; then
run
else
ec... | datawire/microwizard | src/lobsters/microwizard/mw.sh | Shell | apache-2.0 | 369 |
node pollerHost.js --site 9E7A --site C877 | KRMAssociatesInc/eHMP | ehmp/product/production/osync/run-pollerHost.sh | Shell | apache-2.0 | 42 |
# Retrieve index settings
curl -XGET "http://localhost:9200/conference/_settings?pretty"
# Create index with single shard
curl -XPUT "http://localhost:9200/single_shard_index/" -d'
{
"settings": {
"number_of_shards": 1
}
}'
# Adjust number of replicas
curl -XPUT "http://localhost:9200/single_shard_index/_... | fhopf/elasticsearch-book-examples | 06.sh | Shell | apache-2.0 | 2,313 |
#!/bin/csh
# Author James Dempsey
# Date 27 Jun 2016
# Calibrate the data using
# 1934-638 as the flux and bandpass cal and
# 0727-115, 0823-500, 1049-53 as the phase cals.
# Process the flux and bandpass cal
mfcal vis=1934-638.1420 options=interpolate
gpcal vis=1934-638.1420 options=xyvary
# Process each phase cal... | jd-au/magmo-HI | prototypes/calibrate.sh | Shell | apache-2.0 | 971 |
#!/usr/bin/env bash
sudo docker cp ../generated/skysail.app.bookmarks.jar skysail-server:/home/skysail/products/demo/plugins/skysail.app.bookmarks.jar
| evandor/skysail-core | skysail.app.bookmarks/deploy/deploy2skysail-server.sh | Shell | apache-2.0 | 152 |
#!/usr/bin/env bash
set -eu
dotnet restore
dotnet build
# Tests | r-ralph/Diamond | build.sh | Shell | apache-2.0 | 65 |
#!/bin/bash
function usage {
echo "Deploy Queue application to cluster."
echo "Usage: $0 -m host:port -t tag"
echo " host:port : Marathon REST API endpoint for discovery"
echo " tag : Docker image tag"
}
host_port=""
tag=""
# Optional arguments
OPTIND=1
while getopts "m:t:h:" opt; do
cas... | sirca/bdkd_datastore | subprojects/samples/laser/cluster_pe/components/queue/deploy.sh | Shell | apache-2.0 | 854 |
#!/bin/bash
set -e
# set -x
C="$1"
shift
docker=${docker:-docker}
EXIT=false
if ! $docker exec $C ipa-server-install -U -r EXAMPLE.TEST -p Secret123 -a Secret123 --setup-dns --no-forwarders --no-ntp ; then
EXIT=true
fi
FAILED=$( $docker exec $C systemctl list-units --state=failed --no-pager -l --no-legend | tee /d... | freeipa/freeipa-container | tests/systemd-container-ipa-server-install.sh | Shell | apache-2.0 | 810 |
#!/bin/bash
# Define a bunch of functions and set a bunch of variables
TEST_DIR=$(readlink -f `dirname "${BASH_SOURCE[0]}"` | grep -o '.*/oshinko-s2i/test/e2e')
source $TEST_DIR/common
SCRIPT_DIR=$(readlink -f `dirname "${BASH_SOURCE[0]}"`)
source $SCRIPT_DIR/../../builddc
TEMPLATE_DIR=$(readlink -f `dirname "${BASH... | rimolive/oshinko-s2i | test/e2e/templates/sparklyr/dc/sparklyrdc.sh | Shell | apache-2.0 | 1,265 |
ip netns exec qgw ip link set veth0 down
ip netns exec qgw ip link set lo down
ip link set dev qgw-veth0.t down
brctl delif vbr-pext qgw-veth0.t
ip link delete qgw-veth0.t
ip netns delete qgw
ip netns exec qhost1 ip link set veth0 down
ip netns exec qhost1 ip link set lo down
ip link set dev qhost1-veth0.t down
brctl d... | penguinwatcher/magnet | magnet/test/delete.1host-1gw.sh | Shell | apache-2.0 | 453 |
# -----------------------------------------------------------------------------
#
# Package : github.com/dgryski/go-sip13
# Version : v0.0.0-20190329191031-25c5027a8c7b
# Source repo : https://github.com/dgryski/go-sip13
# Tested on : RHEL 8.3
# Script License: Apache License, Version 2 or later
# Maintainer : BulkPack... | ppc64le/build-scripts | g/github.com__dgryski__go-sip13/github.com__dgryski__go-sip13_rhel_8.3.sh | Shell | apache-2.0 | 5,121 |
#!/bin/bash
# This script will monitor the KBread/sec &KBwriten/sec of Disk.
# Creater: CCC IT loren ext:2288 2005/8/3
# As sda ,sdb,sdc,sdd,hda.
# disk=sda
network=`sar -n DEV | egrep -v 'IFACE|lo|^$|Linux' | awk '{print $2,$5,$6}' | uniq`
Interface=`echo $network |awk '{print $1}'`
KBinput_sec=`echo $network |awk '... | lichengshuang/createvhost | others/mrtg/shell/net.sh | Shell | apache-2.0 | 439 |
cd compose;go test;cd ..
cd actors/eureka;go test;cd ../..
cd actors/priamCassandra;go test;cd ../..
cd tooling/archaius;go test;cd ../..
cd tooling/architecture;go test;cd ../..
cd tooling/dhcp;go test;cd ../..
cd tooling/flow;go test;cd ../..
cd tooling/gotocol;go test;cd ../..
cd tooling/graphjson;go test;cd ../..
c... | jwatson0/spigo | misc/test.sh | Shell | apache-2.0 | 420 |
#!/bin/bash
HADOOP_DIR=../hadoop-2.4.1-src
rm -rf $HADOOP_DIR/hadoop-common-project/hadoop-annotations;cp -r hadoop-annotations $HADOOP_DIR/hadoop-common-project/;
rm -rf $HADOOP_DIR/hadoop-common-project/hadoop-auth;cp -r hadoop-auth $HADOOP_DIR/hadoop-common-project/;
rm -rf $HADOOP_DIR/hadoop-common-project/hadoop-c... | songweijia/hdfsrs | copy.sh | Shell | apache-2.0 | 804 |
#!/bin/bash
set -e
# Warning: This is NOT a robust testing script.
# DO NOT OVERLY TRUST IT.
# unified Flask restful api applications need x-ersa-auth-token
# Match this with ERSA_AUTH_TOKEN in config-***.py formated as:
# ERSA_AUTH_TOKEN = "UUID STRING"
# Make sure all test configs are named as config-$package.py a... | eResearchSA/reporting-unified | test_unified_models.sh | Shell | apache-2.0 | 567 |
#!/bin/bash
script_dir="$(dirname $0)"
. "${script_dir}/functions"
backup_dir="/etc/puppetlabs/code_backup"
backup_date=$(date +'%Y%m%d-%H%M%S')
environment=${1:-production}
PATH=$PATH:/usr/local/bin
echo_title "Installing prerequisite packages and gems"
puppet resource package git ensure=present
if [ $(facter osfam... | snesbittsea/psick | bin/puppet_deploy_controlrepo.sh | Shell | apache-2.0 | 1,811 |
#!/bin/bash
if [ -z "$VCAP_APP_PORT" ];
then SERVER_PORT=80;
else SERVER_PORT="$VCAP_APP_PORT";
fi
echo port is $SERVER_PORT
python manage.py makemigrations --settings=cognitive.settings.bluemix
python manage.py migrate --settings=cognitive.settings.bluemix
echo "from django.contrib.auth.models import User; User.objec... | chughts/watson-betaworks-python-sample | runinitial.sh | Shell | apache-2.0 | 603 |
#!/bin/bash -e
# Copyright 2016 C.S.I.R. Meraka Institute
#
# 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 ... | SouthAfricaDigitalScience/libpng-deploy | check-build.sh | Shell | apache-2.0 | 1,642 |
scripts_dir="../scripts/"
echo "-------------------------------------------------------------------" >>log.txt
echo "---------New Script Run--------------------------------------------" >>log.txt
echo "-------------------------------------------------------------------" >>log.txt
if [ -f dirty_transaction ]; then... | PauliJokinen/db-schema-updater | engine/schema-engine.sh | Shell | apache-2.0 | 2,107 |
#!/bin/bash
sudo apt-get install zsh
cat << 'EOF' > ~/.zshrc
# FUNCTIONS #
#############
function glob-exists () {
# glob-exists "<GLOB>"
# Test to see if a glob matches anything.
# Example: glob-exists "~/.ssh/*.pub"
[[ -n `zsh -G -c 'echo ${~1}'` ]];
}
function tty-of-pid () {
echo /dev/t... | tylermenezes/Debian-Settings | install_zsh.sh | Shell | artistic-2.0 | 12,685 |
#!/usr/bin/env bash
shopt -s extglob # allow for complex regex-like globs
files () {
[ -f "$1" ] && echo "$@"
}
NODE_VERSION="$(node --version)"
if [[ "${NODE_VERSION:0:6}" != "v0.10." && "${NODE_VERSION:0:6}" != "v0.12." ]]; then
echo "running: test/start/env/test.js"
cd test/start/env
OPBEAT_APP_ID=from-e... | opbeat/opbeat-node | test/test.sh | Shell | bsd-2-clause | 1,620 |
#!/bin/sh
echo "installing dependencies..."
sudo apt install -y pkg-config xorg-dev libgl1-mesa-dev
echo "downloading and installing http://github.com/skaslev/gl3w"
git clone http://github.com/skaslev/gl3w.git
mkdir temp && gl3w/gl3w_gen.py temp
mkdir core/impl/render/gl/GL
cp temp/include/GL/* core/impl/render/gl/G... | clearlycloudy/enhance | install_dependencies.sh | Shell | bsd-2-clause | 591 |
npm run build
rm static/css/*.css
rm static/js/*.js
rm static/js/*.map
mkdir -p static/css
mkdir -p static/js
cp templates/hs_discover/css/app*.css static/css/app.css
cp templates/hs_discover/css/chunk-vendors*.css static/css/chunk-vendors.css
cp templates/hs_discover/css/*.css static/css
cp templates/hs_discover/js/ap... | hydroshare/hydroshare | hs_discover/deploy.sh | Shell | bsd-3-clause | 622 |
#!/bin/bash
#
# Copyright (c) 2017, SingularityWare, LLC. All rights reserved.
#
# Copyright (c) 2015-2017, Gregory M. Kurtzer. All rights reserved.
#
# Copyright (c) 2016-2017, The Regents of the University of California,
# through Lawrence Berkeley National Laboratory (subject to receipt of any
# required approvals... | Trophime/singularity | libexec/bootstrap-scripts/pre.sh | Shell | bsd-3-clause | 1,920 |
#!/usr/bin/env bash
##
###
### Based on the original script by the friendly guys at Boundary
###
### Copyright 2011-2013, Boundary
### Copyright 2013, Server Density
###
### Licensed under the Apache License, Version 2.0 (the "License");
### you may not use this file except in compliance with the License.
### You may ... | canerdogan/sd-agent | install.sh | Shell | bsd-3-clause | 18,505 |
#! /bin/sh
do_setup() {
true
}
do_test() {
ubongo-solve-3d board03 A G I M
}
do_teardown() {
true
}
. ./do-test.sh
| m-kasahr/ubongo-utils | test/3d/board03-solve-01.sh | Shell | bsd-3-clause | 131 |
#!/bin/bash
set -ex
zip=$1
if [ ! -f "$zip" ]; then
echo "usage: $0 toupcamsdk.zip" >&2
exit 1
fi
zip=$(cd $(dirname "$zip"); /bin/pwd)/$(basename "$zip")
SRC=$(cd $(dirname "$0")/..; /bin/pwd)
TMP=/tmp/toupcamsdk.$$
trap "rm -rf $TMP" INT TERM QUIT EXIT
mkdir -p $TMP
cd $TMP
unzip "$zip"
# includes
cp ./... | OpenPHDGuiding/phd2 | build/unpack_toupcam_sdk.sh | Shell | bsd-3-clause | 641 |
#!/bin/sh
export ALINOUS_HOME=${OPENSHIFT_ALINOUS_DIR}ALINOUS_HOME/
export CATALINA_PID=${OPENSHIFT_ALINOUS_DIR}run/alinous.pid
| alinous-core/scalable-alinous-cartridge | versions/apache-tomcat-7.0.55/bin/setenv.sh | Shell | mit | 130 |
#!/bin/bash
GHCID_FILE=./ghcid.txt
echo '...' > "$GHCID_FILE"
emacsclient "$GHCID_FILE" &
COMMAND='nix-shell --run "cabal repl enumerate"'
ghcid -o "$GHCID_FILE" --command "$COMMAND"
| sboosali/enumerate | watch.sh | Shell | mit | 187 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.