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
rm dynroi.proc
rm -rf hdl
# block and flows
gpproc new -n dynroi
gpproc sethelp -v "Dynamic region of interest extractor"
gpproc setcateg -v "segmentation"
gpproc addflow -n BinImg -d in -s 8
gpproc addflow -n Img -d in -s 8
gpproc addflow -n roi -d out -s 8
gpproc addflow -n coord -d out -s 8
gpproc ... | DreamIP/GPStudio | support/process/dynroi/make_dynroi.sh | Shell | gpl-3.0 | 2,876 |
#!/bin/bash
upgrade="cat - concatenate files and show their contents"
echo ''
echo 'upgrading the dictionary...'
echo ''
echo $upgrade
echo ''
for i in {1..10}; do
echo -n '.'
sleep 1s
done
echo $upgrade >> ./dict
cat ./dict | sort | uniq > ./.d
cat ./.d > ./dict
echo 'OK!'
| invider/trix | system/trix/upgrades/upgrade-cat.sh | Shell | gpl-3.0 | 286 |
is_valid_cmd_name() {
echo "$1" | grep -qs "^[a-z][a-z-]*[a-z]$"
}
cmd_to_filename() {
echo "$1" | tr - _
}
| timgreen/hcm | lib/lib_cmd.sh | Shell | gpl-3.0 | 114 |
#!/bin/bash
if [ "$(id -u)" -ne "0" ]; then
echo "This script requires root."
exit 1
fi
if [ 0 -eq $# ]
then
echo -e "Use 'install.sh -i' to apply the patch."
echo -e "Use 'install.sh -u' to remove the patch."
elif [ $1 = "-i" ]
then
apt -y install acpid
chmod a+x set_default_so... | kasramp/PinebookScripts | speaker_headphone_fix/install.sh | Shell | gpl-3.0 | 828 |
#! /bin/sh
exec > $0.log 2>&1
set -x
./helpmultiSB.pl T12345m11011 T12345mtmt0mtmt 0 0 0
./multinumericsloop.pl -p multiT12345mtmt0mtmt.input
./multinumericsloop.pl -p multiT12345mtmt0mtmt.input 1
| HEPcodes/FeynHiggs | extse/OasatPdep.app/SecDec3/loop/T12345mtmt0mtmt.sh | Shell | gpl-3.0 | 200 |
#!/bin/bash
jenkins_version=${ENV_JENKINS_VERSION:-"ERROR"}
d_url=http://mirrors.jenkins-ci.org/war/${jenkins_version}/jenkins.war
if [ ! -e /app ]; then
mkdir /app/home
chmod -R 777 /app
fi
if [ "$jenkins_version" = "ERROR" ];then
echo "[ERROR] - Jenkinsversion is not set";
exit 1;
else
cd /app
... | raspidocker/DockerImages | service/jenkins/root/etc/docker/postinstall.d/static/installFromAptTree.sh | Shell | gpl-3.0 | 456 |
# This file contains helper functions for test scripts
# compares two floating point numbers for equality
# with a given maximum relative deviation
#
# Note: scientific notation is allowed
CHECK_EQUAL_FRACTION() {
if test $# -lt 3 ; then
echo "Error: CHECK_EQUAL_FRACTION: Too few arguments"
echo "U... | GM2Calc/GM2Calc | test/compare.sh | Shell | gpl-3.0 | 1,175 |
#!/bin/bash
# Summarize a collection of Steiner forest samples
# Summarize the subset for forest for each source separately
echo Summarize cdc14
python summarize_sif.py --indir ../results/cdc14_hog1_pde2_sources_031717 --pattern cdc14*optimalForest.sif --prizefile ../data/cdc14_prizes.txt --outfile ../results/cdc14_hog... | mmacgilvray18/Phospho_Network | pcsf/cluster/summarize_single_source_forests_031717.sh | Shell | gpl-3.0 | 814 |
#!/bin/bash
pushd common
wget https://naif.jpl.nasa.gov/pub/naif/generic_kernels/pck/Gravity.tpc
wget http://naif.jpl.nasa.gov/pub/naif/pds/data/ody-m-spice-6-v1.0/odsp_1000/data/lsk/naif0007.tls
popd
| bryan-lunt/KSP_GMAT | ephemgen/getcommon.bash | Shell | gpl-3.0 | 204 |
#!/bin/bash
# /home/pi/AOPi/report4duty.sh
# A script to send hostname, date and location to verify an AOPi-Soldier is connecting
# Exchange digital key for passwordless exchange
# Create cronjob
# 1 * * * * /home/pi/AOPi/report4duty.sh
tmpdir='/home/pi/AOPi/tmp/'
echo
echo "Checking for temporary directory in /... | TheTechMonkeyZ/AOPi | report4duty.sh | Shell | gpl-3.0 | 2,440 |
#! /bin/sh
########################################################################
#
# ISABEL: A group collaboration tool for the Internet
# Copyright (C) 2009 Agora System S.A.
#
# This file is part of Isabel.
#
# Isabel is free software: you can redistribute it and/or modify
# it under the terms of the Affe... | ging/isabel | components/seco/tests/isabel/seco/tests/test5/backup/startTest5LargosMuchas.sh | Shell | agpl-3.0 | 2,023 |
vars=`cat .env`
for var in $vars
do
splitvar=($(echo $var | tr '=' "\n"))
export ${splitvar[0]}=${splitvar[1]}
echo "export ${splitvar[0]}=${splitvar[1]}"
done
| justicedemocrats/admin | set-local-config.sh | Shell | agpl-3.0 | 167 |
#!/usr/bin/env bash
set -x -e
# F-TEP service environment
WORKFLOW=$(dirname $(readlink -f "$0"))
WORKER_DIR="/home/worker"
IN_DIR="${WORKER_DIR}/workDir/inDir"
OUT_DIR="${WORKER_DIR}/workDir/outDir"
WPS_PROPS="${WORKER_DIR}/workDir/FTEP-WPS-INPUT.properties"
PROC_DIR="${WORKER_DIR}/procDir"
TIMESTAMP=$(date --utc +%... | cgi-eoss/ftep | f-tep-defaultservices/src/main/resources/LandCoverS1/workflow.sh | Shell | agpl-3.0 | 2,621 |
#!/bin/bash
set -e
python --version
PYVER=$(python -c "import sys; sys.stdout.write('.'.join(map(str, sys.version_info[:2])))")
PYIMPL=$(python -c "import sys, platform; sys.stdout.write(platform.python_implementation())")
SOURCE_DIR="$(pwd)"
COV_DIR="${SOURCE_DIR}/coverage"
export MALLOC_CHECK_=3
export MALLOC_PERT... | pexip/pygobject | .gitlab-ci/test-docker.sh | Shell | lgpl-2.1 | 1,845 |
#!/bin/sh
for f in ../../../doc/publications/shake-well-before-use/matlab/shaken-together-*.log; do
match=`java -cp src/:lib/jfreechart-1.0.1.jar:lib/log4j-1.2.jar:lib/jcommon-1.0.0.jar:dist/spatial-authentication-core.jar org.openuat.sensors.ParallelPortPWMReader $f | awk '/match: / {print $2; }'`
echo "`basename ... | mobilesec/openuat | scripts/compute-fft-match.sh | Shell | lgpl-3.0 | 337 |
#!/bin/bash
pacstrap /mnt base base-devel git python
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt | shanril/setup | install.sh | Shell | lgpl-3.0 | 104 |
#!/bin/sh
#Few global variables
ARTIFACT_ID="btrpsl"
if [ $# != 1 ]; then
echo "Usage: $0 request|perform"
exit 1
fi
function getVersionToRelease {
CURRENT_VERSION=`mvn ${MVN_ARGS} org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v "\[INFO\]"`
echo ${CUR... | fhermeni/btrplace-btrpsl | release.sh | Shell | lgpl-3.0 | 3,099 |
#sudo mount -t cifs -o user=rpm,uid=gcs6 //hero.partners.org/rpm /PHShome/gcs6/hero
sudo mount -t cifs -o user=rpm,uid=gcs6 //172.16.171.106/rpm /PHShome/gcs6/hero
| gregsharp/dotfiles | home/bin/mount_hero.sh | Shell | unlicense | 164 |
#!/bin/sh
DL_DIR=/mnt/openembedded/downloads
SLAVE_ROOT=/var/lib/buildbot/slaves
OPENXT_BUILD=${SLAVE_ROOT}/openxt/build
OPENXT_CONF_SRC=${OPENXT_BUILD}/example-config
OPENXT_CONF_DST=${OPENXT_BUILD}/.config
OPENXT_CERTDIR=${SLAVE_ROOT}/openxt_certs
REPO_PROD_CACERT="${OPENXT_CERTDIR}/prod-cacert.pem"
REPO_DEV_CACERT=... | flihp/twobit-buildbot | slaves/bin/openxt_setup.sh | Shell | unlicense | 2,946 |
#!/bin/sh
cd ..
./runtests.sh
cd -
| Mekapaedia/minisculus-compiler | src/test.sh | Shell | unlicense | 36 |
#!/bin/bash
if [ -n "$HIPCHAT_TOKEN" ]; then
hipsaint --user=Icinga --token=$HIPCHAT_TOKEN --room=$HIPCHAT_ROOM_ID --type=service --inputs="$SERVICEDESC|$HOSTALIAS|$LONGDATETIME|$NOTIFICATIONTYPE|$HOSTADDRESS|$SERVICESTATE|$SERVICEOUTPUT" -n
fi
| k2s/dockerfiles | monitor-icinga2/root/etc/icinga2/scripts/hipchat-service-notification.sh | Shell | unlicense | 250 |
#!/bin/sh
if [ "x$1" = "x" ];then
echo "$0 <commit message>"
exit 0
fi
sudo git add .
sudo git commit -a -m "$1"
sudo git pull origin master && sudo git push origin --all
| julianromera/agronet-files | _push.sh | Shell | unlicense | 191 |
#!/bin/bash
/usr/bin/perl layout_select.pl "$1" | Sihan001/lbActions | Layouts.lbaction/Contents/Scripts/default.sh | Shell | apache-2.0 | 47 |
#!/bin/sh
# Copyright 2012 Mohammed Alrokayan
#
# 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 agre... | alrokayan/hadoop-openstack-centos | 02-cloudera-cdh-allVMs/03-alternatives-java.sh | Shell | apache-2.0 | 720 |
#!/bin/bash
# Copyright 2014 The QingYuan 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 required ... | qingyuancloud/qingyuan | hack/lib/etcd.sh | Shell | apache-2.0 | 2,006 |
#!/bin/bash
# Copyright Ondrej Platek Apache 2.0
# Filip Jurcicek Apache 2.0
set -e
renice 20 $$
# Source standard settings
. ./local/setting.sh
local/check_path.sh
# Set paths
. ./path.sh
# If you have cluster of machines running GridEngine you may want to
# change the train and decode commands in the ... | UFAL-DSG/kams | kams/train_ms.sh | Shell | apache-2.0 | 757 |
#https://github.com/wnameless/docker-oracle-xe-11g
#hostname: localhost
#port: 49161
#sid: xe
#username: system
#password: oracle
#docker run -d -p 49160:22 -p 49161:1521 -e ORACLE_ALLOW_REMOTE=true wnameless/oracle-xe-11g
#docker run -e URL=SYSTEM/oracle@//jdbc:oracle:thin:@localhost:49161:xe -ti sflyr/sqlplus
#do... | carlospatinos/dockerDevelopmentEnviornments | runOracle.sh | Shell | apache-2.0 | 645 |
#Hannes prompt.sh
# //TODO add a check if git is installed
# Define color variables
Color_Off='\[\033[0m\]' # Text Reset
# Regular Colors
Black='\[\033[0;30m\]' # Black
Red='\[\033[0;31m\]' # Red
Green='\[\033[0;32m\]' # Green
Yellow='\[\033[0;33m\]' # Yellow
Blue='\[\033[0;34m\]' # Blue
Purp... | trulleberg/Dotfiles | profile.d/prompt.sh | Shell | apache-2.0 | 2,376 |
#!/usr/bin/env bash
set -euo pipefail
TAG="${1:-"latest"}"
docker tag "pingcap/tidb-sysbench:$TAG" "gcr.io/pingcap-public/pingcap/tidb-sysbench:$TAG"
gcloud docker -- push "gcr.io/pingcap-public/pingcap/tidb-sysbench:$TAG"
| pingcap/tidb-bench | docker/tidb-sysbench/release.sh | Shell | apache-2.0 | 224 |
#!/bin/bash
# This is intended to be called from wercker/test-all.sh, which sets the required environment variables
# if you run this file directly, you need to set $wercker, $workingDir and $testDir
# as a convenience, if these are not set then assume we're running from the local directory
if [ -z ${wercker} ]; then... | wercker/wercker | tests/projects/docker-build-context/test.sh | Shell | apache-2.0 | 5,260 |
#!/bin/bash
pwd
g++ $gccBaseSwitch $gccExtraSwitch -I../../../../src gray2cmy.cpp -o gray2cmy
g++ $gccBaseSwitch $gccExtraSwitch -I../../../../src gray2cmyk.cpp -o gray2cmyk
g++ $gccBaseSwitch $gccExtraSwitch -I../../../../src gray2gray.cpp -o gray2gray
g++ $gccBaseSwitch $gccExtraSwitc... | dmilos/color | example/less-than-1k/assign/gray/make.sh | Shell | apache-2.0 | 2,839 |
#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License... | aw-altiscale/snailtrail | precommit/src/main/personality/hadoop.sh | Shell | apache-2.0 | 6,519 |
#!/usr/bin/env bash
trap 'mr-jobhistory-daemon.sh stop historyserver; exit 0' SIGTERM
export YARN_LOG_DIR="$HOST_MAPPING_DIR/logs/yarn"
export HADOOP_MAPRED_LOG_DIR="$HOST_MAPPING_DIR/logs/mapred"
export LOCAL_DATA_DIR="$DATA_MAPPING_DIR/$HOSTNAME"
export YARN_NODEMANAGER_OPTS="-Dyarn.nodemanager.logs-dirs=file://$LOC... | insidin/docker-recipes | alpine-hadoop/scripts/resourcemgr.sh | Shell | apache-2.0 | 592 |
#!/bin/bash
# This script executes tests that can't be executed through Bazel. For example,
# we may need to test the behavior of the rules when certain flags are passed
# to Bazel on the command line.
#
# This is executed by Travis CI. It will always be executed after the main
# bazel tests. Tests may assume bazel is... | idy/rules_go | tests/run_non_bazel_tests.bash | Shell | apache-2.0 | 1,192 |
ZIPFILE=50415310ce853c1bc52ceb19f0e3319b470bc524.zip
wget https://github.com/IDPF/epub3-samples/archive/${ZIPFILE}
unzip ${ZIPFILE}
mv epub3-samples-* epub3-samples
| akashacms/epubtools | test/fetch.sh | Shell | apache-2.0 | 169 |
#!/bin/sh
run-idss-batch.py --inputdirectory sampled-data --outputdirectory seriation-results --xyfile xyfiles/seriationct-5XY.txt --dryrun 0
| mmadsen/experiment-seriationct | experiments/deprecated/seriationct-5/bin/run-seriations.sh | Shell | apache-2.0 | 143 |
#!/bin/bash
brew install \
findutils gnu-indent gnu-sed gnu-tar \
gnu-which gnutls grep gawk screen watch \
wdiff wget
brew install mobile-shell python
| DylanYoung/dotfiles | deps/brew.sh | Shell | apache-2.0 | 169 |
#! /usr/bin/env bash
source openrc admin admin
quantum net-create multihost-net-01 --multihost:multi_host --provider:network_type flat --provider:physical_network multihost-net-01 --shared
NET_ID=$(quantum net-list | grep multihost-net-01 | get_field 1)
quantum router-create multihost-router-01 --multihost:network_id... | sstrato/devstack | post/post-script_multi.sh | Shell | apache-2.0 | 1,085 |
#!/usr/bin/env bash
echo "Setting Environment Variables"
source /home/vagrant/.profile && [ -z "$DB_NAME" ] && echo 'export DB_NAME="pympm"' >> /home/vagrant/.profile
source /home/vagrant/.profile && [ -z "$DB_USER" ] && echo 'export DB_USER="pympm"' >> /home/vagrant/.profile
source /home/vagrant/.profile && [ -z "$DB... | gustavofoa/pympm | scripts/varenv.sh | Shell | apache-2.0 | 675 |
#!/bin/bash
#
# User this restart shell just for example
#
PORT=9000
YONA_DATA=/yona-data;export YONA_DATA
pid=`ps -ef | grep java | grep com.typesafe.play | awk '{print $2}'`
kill $pid
_JAVA_OPTIONS="-Xmx2048m -Xms1024m -Dyona.data=$YONA_DATA -DapplyEvolutions.default=true -Dhttp.port=$PORT" nohup bin/yona </dev/null... | bloodybear/yona | restart.sh | Shell | apache-2.0 | 339 |
#!/bin/sh
set -e
set -x
test -z "$VIRTUALBOX_VERSION" && VIRTUALBOX_VERSION=$(cat $HOME/.vbox_version)
test "$VIRTUALBOX_WITH_XORG" = "1" || VIRTUALBOX_WITHOUT_XORG=--nox11
VBOX_GUEST_ADDITIONS_ISO=VBoxGuestAdditions_$VIRTUALBOX_VERSION.iso
test -f $VBOX_GUEST_ADDITIONS_ISO || wget http://download.virtualbox.org/virtu... | upperstream/packer-templates | ubuntu/provisioners/virtualbox.sh | Shell | apache-2.0 | 698 |
#!/usr/bin/env bash
# Copyright (C) 2015 The Android Open Source Project
#
# 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 ... | GerritCodeReview/gerrit | polygerrit-ui/run-server.sh | Shell | apache-2.0 | 935 |
#!/bin/bash -l
#SBATCH --job-name="%(job_name)s"
#SBATCH --exclude=bbplxviz03,bbplxviz04
#SBATCH --nodes=1
#SBATCH --ntasks=3
#SBATCH --ntasks-per-node=3
#SBATCH --mem=3500
#SBATCH --time=2:00:00
#SBATCH --partition=batch
#SBATCH --mail-type=ALL
#SBATCH --mail-user=renaud.richardet@gmail.com
#SBATCH --output=/nfs4/bbp.... | BlueBrain/bluima | modules/bluima_bbp/src/test/resources/copy_to_release/projects/extract_proteinconc/20131116_slurm/template.sh | Shell | apache-2.0 | 789 |
#!/usr/bin/env bash
sudo rm /usr/local/bin/neupre
sudo rm /usr/local/lib/python2.7/dist-packages/neupre.egg-link | horvathpeter/neural_prediction | uninstall.sh | Shell | apache-2.0 | 112 |
#!/bin/bash
# Parameters: $1 PCI address of interface.
# Find binary file relative to this script.
bin_file=$(dirname $0)/bin/count
$(dirname $0)/../safe_run.sh "$bin_file" "$1"
| dcdolson/nsh-sf-devkit | examples/count/run_with_bindings.sh | Shell | apache-2.0 | 181 |
#! /bin/bash
cd /opt/deploy/pyconjp-android/Docker/
# Clean
make clean
# Build
make build
# Update to git
make git
| ozil87/pyconjp-android | Docker/run.sh | Shell | apache-2.0 | 115 |
# -----------------------------------------------------------------------------
#
# Package : enabled
# Version : 2.0.0
# Source repo : https://github.com/3rd-Eden/enabled
# Tested on : RHEL 8.3
# Script License: Apache License, Version 2 or later
# Maintainer : BulkPackageSearch Automation <sethp@us.ibm.com>
#
# Discl... | ppc64le/build-scripts | e/enabled/enabled_rhel_8.3.sh | Shell | apache-2.0 | 3,048 |
#!/bin/bash
# Use [ -n "$TRAVIS" ] to test for running on Travis-CI.
# Run in the scripts directory.
cd "$( dirname "${BASH_SOURCE[0]}" )"
LOCAL_PORT="1090"
SERVER_PORT="8389"
OPTION="-p $SERVER_PORT -k foobar"
SOCKS="127.0.0.1:$LOCAL_PORT"
HTTP_PORT="8123"
wait_server() {
local port
port=$1
for i in {1... | shadowsocks/shadowsocks-go | script/test.sh | Shell | apache-2.0 | 3,060 |
#! /usr/bin/rm
echo my name is $0
echo can not be here...
| bbxyard/bbxyard | yard/grammar/shell/self_kill_demo.sh | Shell | apache-2.0 | 60 |
location=eastus
resourceGroupName=user01-rg
vnetName=user01-eastus-vnet
vnetAddressPrefix="10.0.0.0/24"
subnetName=default
subnetAddressPrefix="10.0.0.0/24"
networkSecurityGroup=user01-eastus-master-nsg
adminUserName=user01
adminPassword=ChangeMePleas3
storageAccountName=user01sa
| RedHatWorkshops/openshiftv3-ops-workshop | azure_scripts/0.env.sh | Shell | apache-2.0 | 281 |
#!/bin/bash
docker build --pull --tag="kurron/monitor-postgresql:latest" .
docker images
| kurron/docker-monitor-postgresql | build.sh | Shell | apache-2.0 | 90 |
#!/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 required by applicable law or agreed to in writing, software
# distrib... | cwolferh/heat-scratch | devstack/upgrade/upgrade.sh | Shell | apache-2.0 | 2,752 |
#!/usr/bin/env sh
#
# Usage: regenerate.sh
#
# regenerate.sh regenerates private key and certificate used in https tests and example
#
EXAMPLE_DIR="../../../../examples/https"
openssl req -x509 -nodes -newkey rsa -keyout server-key.pem -out server-cert.pem -days 3650 -subj "/C=CL/ST=RM/L=OpenTelemetryTest/O=Root/OU=Te... | open-telemetry/opentelemetry-js | experimental/packages/opentelemetry-instrumentation-http/test/fixtures/regenerate.sh | Shell | apache-2.0 | 364 |
#!/bin/bash
# resume export -f md buhay_john_resume-md
resume test || exit 1
# Make all themes in html
# for e in $(echo elegant paper kendall flat modern classy class short slick kwan onepage); do resume export -f html -t $e buhay_john_resume-$e; done
for e in $(echo elegant kendall); do resume export -F -f html -... | jnbnyc/jnbnyc.github.io | resume/build.sh | Shell | apache-2.0 | 630 |
#!/bin/sh
#
# Script to build the downloaded SRPMs
#
#################################################################
SAVEDIR="$(readlink -f $(dirname ${0}))"
RPMDEPS=(
rpm-build
dos2unix
)
BUILDROOT="${HOME}/rpmbuild"
# Set up RPM build environment
function PrepBuildDirs() {
# Ensure RP... | ferricoxide/Lx-GetAMI-Utils | BuildEm.sh | Shell | apache-2.0 | 2,396 |
#!/bin/bash
LIST=./hoge.txt
# func
# FUNC_INIT()
# {
# #
# }
FUNC_PARSE()
{
while read line; do
echo $line | awk '{if (NF == 2 && $1 ~ /[0-9]*/ && $2 ~ /^http/) print $0}' | sed -e 's/\t.*\(^http\)/\1/g' -e 's/[ぁ-んァ-ヶ一-龠々ー]//g' >>parsed_list
done <${LIST}
}
RUN()
{
# FUNC_INIT $0
FUNC_PARSE $0
}
# run... | ogasawaraShinnosuke/tips | sh/main/parse_url.sh | Shell | apache-2.0 | 607 |
#!/bin/bash
source test_tipc/common_func.sh
FILENAME=$1
dataline=$(awk 'NR==1, NR==18{print}' $FILENAME)
MODE=$2
# parser params
IFS=$'\n'
lines=(${dataline})
# parser serving
model_name=$(func_parser_value "${lines[1]}")
python_list=$(func_parser_value "${lines[2]}")
trans_model_py=$(func_parser_value "${lines[3]}... | PaddlePaddle/models | tutorials/mobilenetv3_prod/Step6/test_tipc/test_serving_infer_python.sh | Shell | apache-2.0 | 2,980 |
safe_pot_hash() {
sed -e "/Project-Id-Version/,/Content-Transfer-Encoding/d" -e "/^#/d" "po/lxd.pot" | md5sum | cut -f1 -d" "
}
test_static_analysis() {
(
set -e
cd ../
# Python3 static analysis
if which flake8 >/dev/null 2>&1; then
flake8 test/deps/import-busybox scripts/lxd-setup-lvm-stora... | lxc/lxd-pkg-ubuntu | test/suites/static_analysis.sh | Shell | apache-2.0 | 2,948 |
#!/usr/bin/env bash
# ./deploy.sh app@hd2.gw01 or ./deploy.sh app@hb2.gw01
targetHost=$1
deployName=go-redis-web
fast=$2
if [ "$fast" == "fast" ]; then
echo "jump building in fast mode"
else
echo "rebuilding"
./gobin.sh
env GOOS=linux GOARCH=amd64 go build -o $deployName.linux.bin
upx $deployName.... | bingoohuang/go-redis-web | deploy.sh | Shell | apache-2.0 | 677 |
#!/usr/bin/env bash
# **install_pip.sh**
# Update pip and friends to a known common version
# Assumptions:
# - PYTHON3_VERSION refers to a version already installed
set -o errexit
# Keep track of the current directory
TOOLS_DIR=$(cd $(dirname "$0") && pwd)
TOP_DIR=`cd $TOOLS_DIR/..; pwd`
# Change dir to top of De... | openstack-dev/devstack | tools/install_pip.sh | Shell | apache-2.0 | 4,593 |
#!/bin/bash
# script to copy the headers to all the source files and header files
# http://unix.stackexchange.com/questions/20641/how-to-prepend-a-license-header-recursively-for-all-h-and-cpp-files-in-a-direc
printf "/*
Copyright 2016 Mitchell Young
Licensed under the Apache License, Version 2.0 (the \"License\... | youngmit/mocc | tools/prepend_license.sh | Shell | apache-2.0 | 1,104 |
git clone https://github.com/marcindulak/vagrant-mariadb-galera-tutorial-centos7.git && \
cd vagrant-mariadb-galera-tutorial-centos7 && \
CONTROLLER=IDE vagrant up && \
vagrant ssh node0 -c "sudo su - -c 'cat /etc/my.cnf.d/server.cnf'" && \
vagrant ssh node0 -c "sudo su - -c 'galera_new_cluster'" && \
vagrant ssh node0... | marcindulak/github-test-local | vagrant-mariadb-galera-tutorial-centos7.sh | Shell | bsd-2-clause | 7,060 |
#!/bin/bash
pause()
{
echo "Appuyez sur une touche pour continuer..."
read dummy
}
choix1()
{
printf "choix1\n"
pause
}
choix2()
{
sleep 1
printf "choix2\n"
pause
}
choix3() {
sleep 3
printf "choix3\n"
pause
}
sortie() {
printf "Au revoir !\n"
return 0
}
menu() {
printf "... | AgileDropZone/batchtester | test/resources/scriptUNIX.sh | Shell | bsd-2-clause | 780 |
#@IgnoreInspection BashAddShebang
# shellcheck shell=bash disable=SC2034,SC1090,SC2164
#
# THIS IS NOT IMMUTABLE DEFINITION FILE, don't use it to enforce fixed version.
#
# See setenv-java.sh and tool-download.sh for the details how this is used.
# We use Zulu JDK from: https://www.azul.com/downloads/zulu-community
# F... | virgo47/litterbin | automation/project-scripts/global-tools/java/defs/zulujdk-15.0.2-def.sh | Shell | bsd-2-clause | 1,507 |
#!/bin/sh
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE
iptables -A FORWARD -s 192.168.1.0/24 -j ACCEPT
insmod ./driver/xt_FULLCONENAT.ko
| fdslight/fdslight | gw_config_example.sh | Shell | bsd-2-clause | 166 |
#prompt skwp
#prompt skwp_mod
| ay65535/yadr | zsh/theme.zsh | Shell | bsd-2-clause | 30 |
#!/bin/bash
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
conda config --set always_yes yes --set changeps1 no
conda update -q conda
# Useful for debugging any issues with conda
conda i... | materialsvirtuallab/materials.sh | install_conda.sh | Shell | bsd-3-clause | 534 |
s3cmd put --acl-public -r chunks s3://data.openstreetmap.us/imports/la/
| osmlab/labuildings | puts3.sh | Shell | bsd-3-clause | 73 |
#! /bin/bash
prefix=$1
# source info
mac_src="00:60:dd:45:39:c7"
ip_src=192.168.2.1
port_src=5000
# dstination info
mac_dst="00:60:dd:45:39:5a"
ip_dst=192.168.2.2
port_dst=5000
# packet info
pkt_cnt=100000
idle=13738
pkt_len=1518
SONIC_SERVER="sonic2.cs.cornell.edu" # FIXME
SONIC_PATH="sonic/driver"
echo
e... | hanw/sonic | demo/demo2.sh | Shell | bsd-3-clause | 1,244 |
#!/bin/sh
## mnt-davfs.sh
function mnt_davfs() {
(set -x; _mnt_davfs ${@}; return)
return
}
function _mnt_davfs() {
# mnt_davfs() -- mount a WebDAV mount
URL="$1"
MNTPT="$2"
OPTIONS="-o rw,user,noauto"
mount -t davfs $OPTIONS $URL $MNTPT
}
if [ -n "${BASH_SOURCE}" ] && [ "${BASH_SO... | westurner/dotfiles | scripts/mnt-davfs.sh | Shell | bsd-3-clause | 376 |
# A lightweight subcommand framework
declare -A CMDS
cmd-list() {
declare desc="Lists available commands"
declare ns="$1"
cmd-list-keys "$ns" | sed "s/$ns://"
}
cmd-list-keys() {
declare ns="$1"
for k in "${!CMDS[@]}"; do
echo "$k"
done | grep "^$ns:" | sort
}
cmd-list-ns() {
for k in "${!CMDS[@]}"; do
e... | gliderlabs/glidergun | src/cmd.bash | Shell | bsd-3-clause | 2,398 |
#!/bin/sh
java -jar /srv/fedora-working/saxon/saxon9he.jar \
-s:/srv/fedora-working/ingest/KWL/collection/master/collection-master-with-pids.xml \
-xsl:/srv/fedora-working/xslt/ingest/RelsExtFromPidMaster.xsl \
-o:/srv/fedora-working/ingest/KWL/collection/modify/modify.xml \
contentModels="afmodel:Collection... | duke-libraries/batch-ingest | KWL/050collectionaddrelsext.sh | Shell | bsd-3-clause | 322 |
#!/bin/bash
loopback_interface=`ifconfig | grep -m 1 -i loopback | cut -d : -f1 | cut -d ' ' -f1`;
#echo loopback interface is $loopback_interface
if [ `uname -s` == "Darwin" ]; then
# loopback appears to be multicast by default...
sudo route add -net 224.0.0.0 -netmask 240.0.0.0 -interface $loopback_interface
e... | openhumanoids/oh-distro | software/utils/drc_utils/scripts/disable_multicast.sh | Shell | bsd-3-clause | 431 |
#!/bin/bash
sudo -u vagrant cp /vagrant/.personal_ansible_vm.yml /home/vagrant/
sudo sed -i 's|http://us.|http://lt.|g' /etc/apt/sources.list
sudo ex +"%s@DPkg@//DPkg" -cwq /etc/apt/apt.conf.d/70debconf
sudo dpkg-reconfigure debconf -f noninteractive -p critical
sudo apt-get update >/dev/null
sudo apt-get install -y... | rezonanc-oxid/lxc-box | provision.sh | Shell | bsd-3-clause | 2,605 |
cmake .. \
-DCMAKE_C_COMPILER="/opt/cray/craype/2.4.2/bin/cc" \
-DCMAKE_CXX_COMPILER="/opt/cray/craype/2.4.2/bin/CC" \
-DCMAKE_Fortran_COMPILER="/opt/cray/craype/2.4.2/bin/ftn" \
-DCMAKE_C_FLAGS=" -g -O3 -DDEBUG -I$PETSC_DIR/include" \
-DCMAKE_CXX_FLAGS=" -g -O3 -DDEBUG -I$PETSC_DIR/include" \
-DCMAKE_Fortr... | SCOREC/m3dc1_scorec | config-files/cori-real-config.sh | Shell | bsd-3-clause | 1,048 |
#!/bin/bash
# Created by the VLSCI job script generator for SLURM on x86
# Wed Jun 18 2014 20:28:15 GMT+1000 (EST)
# check that the script is launched with sbatch
if [ "x$SLURM_JOB_ID" == "x" ]; then
echo "You need to submit your job to the queuing system with sbatch"
exit 1
fi
# Partition for the job:
#SBATCH ... | jni/vlsci-jobs | cellom2tif.sh | Shell | bsd-3-clause | 941 |
#!/bin/sh
# Check Command-Line Arguments.
USAGE="usage: ${0##*/} <Topic Name>"
if [ $# -eq 0 ] ; then
echo "No arguments supplied - ${USAGE}"
exit 1
fi
if [ $# -ne 1 ] ; then
echo "Incorrect # of arguments - ${USAGE}"
exit 1
fi
kafka-console-consumer --bootstrap-server localhost:9092 \
... | tmarrs/json-at-work | chapter-10/scripts/start-consumer.sh | Shell | mit | 332 |
#!/bin/sh
echo "Downloading latest Atom release..."
curl -s -L "https://atom.io/download/mac" \
-H 'Accept: application/octet-stream' \
-o atom.zip
mkdir atom
unzip -q atom.zip -d atom
export PATH=$PWD/atom/Atom.app/Contents/Resources/app/apm/bin:$PATH
echo "Using Atom version:"
ATOM_PATH=./atom ./atom/Atom.app/... | Taylan9/atom-beautify | build-package.sh | Shell | mit | 1,316 |
#!/bin/bash
set -e
cd "$(dirname "$0")"/
migrate -url postgres://vagrant:vagrant@localhost:5432/graphql -path ./migrations $@
| topliceanu/graphql-go-example | migrate.sh | Shell | mit | 126 |
#/bin/bash
rm blobtools
mv lib blobtools
$PYTHON -m pip install . --ignore-installed --no-deps -vv
echo '#!/usr/bin/env bash' > $PREFIX/bin/blobtools-build_nodesdb
echo "blobtools=$blobtools" >> $PREFIX/bin/blobtools-build_nodesdb
cat $RECIPE_DIR/blobtools-build_nodesdb >> $PREFIX/bin/blobtools-build_nodesdb
chmod +x... | Luobiny/bioconda-recipes | recipes/blobtools/build.sh | Shell | mit | 357 |
function generate()
{
cmake -G "Unix Makefiles" -DASSIMP_NO_EXPORT=$TRAVIS_NO_EXPORT -DBUILD_SHARED_LIBS=$SHARED_BUILD -DASSIMP_COVERALLS=$ENABLE_COVERALLS
}
if [ $ANDROID ]; then
ant -v -Dmy.dir=${TRAVIS_BUILD_DIR} -f ${TRAVIS_BUILD_DIR}/port/jassimp/build.xml ndk-jni
else
generate \
&& make -j4 \
... | forifelse/fispTools | assimp/.travis.sh | Shell | mit | 541 |
#!/bin/bash
# The MIT License (MIT)
#
# Copyright (c) 2015 Microsoft Azure
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to... | anweiss/azure-quickstart-templates | elasticsearch/elasticsearch-ubuntu-install.sh | Shell | mit | 15,390 |
#!/bin/bash
forever restartall
| thegazelle-ad/gazelle-server | deployment-resources/scripts/restart-servers.sh | Shell | mit | 32 |
__cdf_list_directories() {
local src="${CDF_SRC:-$HOME/.cdf_src}"
if [[ ! -f $src ]]; then
echo "cdf: $src: No such file or directory" >&2
return 2
fi
shopt -s globstar
local IFS=$'\n'
for path in $(cat "$src"); do
[[ -d $path ]] && printf '%s\n' "$path"
done
}
cdf() {
local dir=
case "$... | kusabashira/env | cookbooks/shell/files/home/wara/.bash/cdf.bash | Shell | mit | 1,031 |
#!/bin/bash
#
# Example shell script to set up PAReview.sh.
#
# You also need to adjust your `config.yml` to add in some other dependencies.
#
# ```
# post_provision_scripts:
# - "../examples/scripts/pareview.sh"
#
# composer_global_packages:
# - { name: hirak/prestissimo, release: '^0.3' }
# ... | debugacademy/drupal-vm | examples/scripts/pareview.sh | Shell | mit | 1,903 |
#! /bin/bash
set -ex
#trap "exit" INT
# node --inspect-brk \
# ./node_modules/.bin/mocha \
mocha \
-c \
--require test.config.js \
--require mocha.config.js \
--timeout 30000 \
$@
| xtina-starr/force | scripts/mocha.sh | Shell | mit | 194 |
#!/bin/bash
current_dir=`pwd`
module=`basename ${current_dir}`
module_without_leading_app=`echo "${module}"|sed 's/^app\.//g'`
module_with_slash=`echo "${module_without_leading_app}"|sed 's/\./\//g'`
echo "[INFO] to create module: ${module_with_slash}"
pcreate -s web ${module_with_slash} -d .
| g0v/LittleBeeGeo | LittleBeeGeo_crawlers/scripts/dev_web.sh | Shell | mit | 297 |
#!/bin/bash
psql -f sirenDBcreate.sql
psql -d sirendb -f sirenDBconfigure.sql
| achirkin/qua-kit | config/setup-sirendb-linux.sh | Shell | mit | 79 |
#!/bin/bash
# The benchmarks of all toolkits
# GPU-0 AlexNet
#minibatch=16 iterations=8 epochs=4 device_id=0 network_name=alexnet ./cnn-benchmarks.sh
#minibatch=32 iterations=8 epochs=4 device_id=0 network_name=alexnet ./cnn-benchmarks.sh
#minibatch=64 iterations=8 epochs=4 d... | hclhkbu/dlbench | synthetic/scripts/batch-bencmarks-gpu-gpu16.sh | Shell | mit | 2,165 |
#!/bin/bash
. ./config.sh
./check_folders.sh
./check_prereqs.sh
URL="ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz"
ARCHIVE_NAME="libffi-3.2.1.tar.gz"
TARBALL_NAME="libffi-3.2.1.tar"
SOURCE_DIR_NAME="libffi-3.2.1"
pushd ${ARCHIVE_DIR} > /dev/null
curl --retry 5 --remote-name -L ${URL} || exit 1
popd > /dev/n... | camgunz/mingw-w64-builds | build-libffi-3.2.1.sh | Shell | mit | 765 |
curl "http://localhost:8983/solr/admin/collections?action=DELETE&name=TEST_DOC" | annieweng/solr_example | scripts/deleteTestDocCollection.sh | Shell | gpl-2.0 | 79 |
#!/usr/bin/env bash
## Test for issue1879 - we should at least notice that when a patch claims
## to have the same identity (patchinfo) as one of ours, then it should not
## depend on anything we don't have.
##
## Public domain - 2010 Eric Kow
. lib # Load some portability helpers.
rm -rf R S... | DavidAlphaFox/darcs | tests/issue1879-same-patchinfo-uncommon.sh | Shell | gpl-2.0 | 947 |
#!/bin/sh
#
# Simple script to generate daily aide release from git
#
# Copyright © 2011 Hannes von Haugwitz
#
# 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... | po1vo/aide | contrib/mkdailyrelease.sh | Shell | gpl-2.0 | 2,266 |
#!/bin/bash -e
echo "######################################################################"
echo "# Unit/static checks"
echo "#"
tox
echo "# Unit/static OK"
echo "######################################################################"
| oVirt/chrooter | automation/check-patch.sh | Shell | gpl-3.0 | 238 |
#! /bin/bash
set -eu
DOCKER_IMAGE=$1
NETWORK_NAME=$2
ID=$3
CMD=$4
NAME=test_container_$ID
echo "starting test client container with CMD=$CMD"
# run the test container on the local network
docker run -t --rm \
-v $GOPATH/src/github.com/tendermint/tendermint/test/p2p/:/go/src/github.com/tendermint/tendermint/test/p2p... | wangluinc/ethermint | vendor/github.com/tendermint/tendermint/test/p2p/client.sh | Shell | gpl-3.0 | 434 |
#!/bin/sh
find .|egrep "(cpp|hpp)$"|xargs astyle -L -A14 -N -H -c -p --indent=spaces=2
find .|grep ".orig$"|xargs rm
| osm3000/limbo | reindent_all.sh | Shell | gpl-3.0 | 117 |
#!/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-10_1/20161107T071002+0000/00/00/calculateratio_0_ID0000015.sh | Shell | gpl-3.0 | 1,252 |
#!/bin/bash
python_path=$1
base_dir=$2
# Determine whether absolute or relative path
if [[ ${python_path} = /* ]]; then
echo ${python_path}
else
echo ${base_dir}/${python_path}
fi | Koheron/tcp-server | scripts/get_python.sh | Shell | agpl-3.0 | 183 |
# Copyright 2002-2013 CEA LIST
#
# This file is part of LIMA.
#
# LIMA 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 ve... | FaizaGara/lima | lima_linguisticdata/cbuild.sh | Shell | agpl-3.0 | 882 |
#!/bin/bash
npm install
./node_modules/.bin/gulp dependencies
(cd ./lib/services/nodejs; npm install)
for D in ./apps/*; do
if [ -d "${D}" ]; then
echo "Checking ${D}"
if [ -f "${D}/package.json" ]; then
echo "npm install"
(cd "${D}"; npm install; ../../node_modules/.bin/bower install)
... | indx/indx-core | build.sh | Shell | agpl-3.0 | 695 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.