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
# Tests bootstrapping from an incomplete dataset.
PISM_PATH=$1
MPIEXEC=$2
PISM_SOURCE_DIR=$3
# List of files to remove when done:
files="foo-28.nc bar-28.nc baz-28.nc"
rm -f $files
set -e
set -x
# create a (complete) dataset to bootstrap from:
$MPIEXEC -n 2 $PISM_PATH/pisms -y 100 -o foo-28.nc
OPTS="... | talbrecht/pism_pik07 | test/regression/test_28.sh | Shell | gpl-3.0 | 828 |
#!/bin/bash
# Copyright (C) 2017 bsmelo.io
#
# This file is subject to the terms and conditions of the GNU General
# Public License v3.0. See the file LICENSE in the top level directory
# for more details.
# Dependencies: smartctl, grep, dd, ifind, ffind, debugfs, shred, awk
FS_TYPE="ext4" # "NTFS" o... | bsmelo/badblocks | fixall.sh | Shell | gpl-3.0 | 2,609 |
#
# Check source code for pep8 warning
# some files are excluded from this check
#
pep8 . --exclude constants/countries.py
| stoic1979/MoboScrap | check_pep8.sh | Shell | gpl-3.0 | 123 |
#! /bin/bash
#
# loads supporting data for Energy schema in TOTUS
#
usage () {
cat <<EOF
NAME
$(basename $0) - loads Energy meta data to Totus database
SYNOPSIS
$(basename $0) -i <dummy input dir> -s <db server> -d <db name> -u <db user> -p <db password> -h
DESCRIPTION
-i dummy input d... | guolivar/totus-niwa | database/bin/loadEnergy.sh | Shell | gpl-3.0 | 2,037 |
#!/usr/bin/env bash
set -o errexit #abort if any command fails
# cloned from https://github.com/X1011/git-directory-deploy
# CONFIG:
# GIT_DEPLOY_DIR: root of the tree of files to deploy
# GIT_DEPLOY_BRANCH: branch to commit files to and push to origin
# GIT_DEPLOY_USERNAME, GIT_DEPLOY_EMAIL: identity to use for git c... | ivarprudnikov/android_sensors | website/deploy_to_github.sh | Shell | gpl-3.0 | 5,170 |
#!/bin/sh
#-----------------------------------------------------------------------------
#
# This is an especially complex case of the coastline looping back on
# itself.
#
#-----------------------------------------------------------------------------
# shellcheck source=test/init.sh
. "$1/test/init.sh"
set -x
#--... | osmcode/osmcoastline | test/t/invalid-complex-overlap.sh | Shell | gpl-3.0 | 1,391 |
PORT="8085"
LOGGING="--accessLoggerClassName=winstone.accesslog.SimpleAccessLogger"
java -jar ./winstone-0.9.10.jar ../../build --directoryListings=false ${LOGGING} --httpPort=${PORT}
| hrj/tdash | framework/winstone/runWebServer.sh | Shell | gpl-3.0 | 186 |
#!/bin/bash
backup_path=/backup/mysql
expired=10
tgl=`date +%Y-%m-%d`
if [ ! -d $backup_path/$tgl ]
then
mkdir -p $backup_path/$tgl
if [ ! -f $backup_path/$tgl/db-`date +%H%M`.sql ]
then
mysqldump --all-databases | gzip -c > $backup_path/$tgl/db-`date +%H%M`.sql
fi
else
if [ ! -f $backup_path/$tgl/db-`date +... | sentabi/scripts | backup-mysql.sh | Shell | gpl-3.0 | 561 |
#!/bin/bash
# Change working directory
cd /
# Create script folder
mkdir EasyLinux
cd EasyLinux/
# Download scripts
wget https://raw.githubusercontent.com/Miguel-Dorta/EasyLinux/master/scripts/user-inputs.sh
wget https://raw.githubusercontent.com/Miguel-Dorta/EasyLinux/master/scripts/installer.sh
wget https://raw.gi... | Miguel-Dorta/EasyLinux | easylinux.sh | Shell | gpl-3.0 | 645 |
#!/bin/sh
#############################################################################
##
## Copyright (C) 2016 The Qt Company Ltd.
## Contact: https://www.qt.io/licensing/
##
## This file is the build configuration utility of the Qt Toolkit.
##
## $QT_BEGIN_LICENSE:GPL-EXCEPT$
## Commercial License Usage
## Licensees... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtxmlpatterns/tests/auto/xmlpatternsxslts/XSLTS/updateSuite.sh | Shell | gpl-3.0 | 1,961 |
#!/bin/sh
##
# Set up inotifywatch to automatically chown any newly created file in the mount directory. The userid and groupid of the *host*
# mounted directory will be used for each new file. This gets around the problem where the storage client is run as root in the
# Docker container, so files created are owned b... | icgc/icgc-get | icgc-storage-client-proxy.sh | Shell | gpl-3.0 | 637 |
#!/bin/bash
gcc -g xpause.c -o xpause -lX11 -lXmu
| chriskmanx/qmole | QMOLEDEV/xpause/build_xpause.sh | Shell | gpl-3.0 | 51 |
#!/bin/bash
ACV="1.19"
ARC=".tar.bz2"
APN="Tar"
export ACV ARC APN
ACB=$APN-$ACV
export ACB
#
# Tar-1.19
#
##########################################
cd $LSB
$TC $LSR/$ACB$ARC
cd $ACB
./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin
make
make install
| buswellj/code | linux-os-build-old/p3-scripts/scripts/Tar-1.19_p3.sh | Shell | gpl-3.0 | 268 |
while true
do
curl -s -u nova:$1 http://localhost:15672/api/queues/%2F/$2 | python -c 'import json,sys;obj=json.load(sys.stdin); print "%s %s" % (obj["message_stats"]["publish_details"]["rate"], obj["message_stats"]["deliver_get_details"]["rate"])' | sed "s/^/$(date '+%Y-%m-%d %H:%M:%S') /"
sleep 5
done
| f3flight/openstack-tools | rabbitmq/rabbitmq-metering-queue-details.sh | Shell | gpl-3.0 | 309 |
start_proxy() {
# Accept one connection from mfsmount on the fake port
socat tcp-listen:$1,reuseaddr system:"
socat stdio tcp\:$(get_ip_addr)\:$2 | # connect to real server
{
dd bs=1k count=12k ; # forward 12MB
sleep 1d ; # and go catatonic
}" &
}
if ! is_program_in... | lizardfs/lizardfs | tests/test_suites/ShortSystemTests/test_cs_failure_during_xor_read.sh | Shell | gpl-3.0 | 1,211 |
NODE_ENV=production ./node_modules/.bin/browserify -t [ babelify --presets [ react es2015 ] ] main.jsx | ./node_modules/uglifyify/node_modules/.bin/uglifyjs -c > bundle.js | vipoo/iRacingReplayOverlay.net | DeploymentSite/build-prod.sh | Shell | gpl-3.0 | 173 |
#!/bin/bash
#where am i? move to where I am. This ensures source is properly sourced
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
source ../../config/scripts/drush-create-site/config.cfg
#provide messaging colors for output to console
txtbld=$(tput bold) # Bold
bldgrn=${txtbld}$(tput se... | bigwhirled/elmsln | scripts/upgrade/elmsln-upgrade-sites.sh | Shell | gpl-3.0 | 1,814 |
#!/bin/sh
# Temperature.sh
# Promus
# Copyright © 2013 by Johannes Frotscher.
# tempus=`ioreg -l | grep "IOHWSensors" | grep "current-value" | head -n 1 | awk -F ",\"current-value" '{print $2}' | awk -F ",\"sensor-flags" '{print $1}' | tr -d "\"=" | awk '{print((($1/65536)-32)*5/9)}'`
# printable=`printf "%.1f\n"... | Promus/Promus | Promus.app/Contents/Resources/Temperature.sh | Shell | gpl-3.0 | 379 |
#!/bin/sh
autoreconf -fsvim
| megacoder/vtree | autogen.sh | Shell | gpl-3.0 | 28 |
#! /usr/bin/env bash
# -*- coding: utf-8 -*-
echo " *** Aumentar Tamaño /tmp *** "
echo " SELECCIONA UNA OPCION:"
echo " 1.-Forma Temporal (Remount)"
echo " 2.-Forma Definitiva (fstab)"
echo " 0.-Salir"
echo ""
read -p "OPCIÓN: " OPCION
case $OPCION in
0) exit;;
1|2) echo ""
echo " *** Tamaño que le quieres dar: ... | JackNapier151/Scripts | Scripts/EditTmp.sh | Shell | gpl-3.0 | 1,107 |
#!/bin/bash
VBoxManage modifyvm $1 --macaddress$2 auto
| jianyingdeshitou/config | virtualbox/home/bin/modifyvm-mac-auto.sh | Shell | gpl-3.0 | 56 |
setup ()
{
service_name="winbind"
if [ "$1" != "down" ] ; then
debug "Marking Winbind service as up and managed by CTDB"
service "winbind" force-started
setup_script_options <<EOF
CTDB_MANAGES_WINBIND="yes"
EOF
export FAKE_WBINFO_FAIL="no"
else
debug "Marking Winbind service as down and not managed b... | sathieu/samba | ctdb/tests/eventscripts/scripts/49.winbind.sh | Shell | gpl-3.0 | 541 |
#!/bin/sh
pkgname=nginx
ARCH_NAME=nginx-mainline
pkgver=1.13.11
vcs=mercurial
hgtag=release-${pkgver}
urls="http://nginx.org/download/nginx-${pkgver}.tar.gz"
srctar=${pkgname}-${pkgver}.tar.gz
relmon_id=5413
kiin_make() {
./auto/configure --prefix=/etc/nginx \
--conf-path=/etc/nginx/nginx.conf \
-... | alekseyrybalkin/kiin-repo | networking/nginx/package.sh | Shell | gpl-3.0 | 1,959 |
#!/bin/bash
# ============================================================================
# Copyright © 2017, Robert Gollagher.
# SPDX-License-Identifier: GPL-3.0+
#
# Program: mk.sh
# Copyright © Robert Gollagher 2017
# Author : Robert Gollagher robert.gollagher@freeputer.net
# Created: 20150713
# Updated:... | RobertGollagher/Freeputer | pre-alpha/pre-alpha2.0/dev/fvm/js/mk.sh | Shell | gpl-3.0 | 1,351 |
RESOLUTIONS=("100kb" "200kb" "400kb" "800kb" "1000kb")
for i in "${RESOLUTIONS[@]}"; do ./script.sh $i; done;
| New-College-of-Florida/Jonathan-Niles-Thesis | code/epigenetics/cebpb/run.sh | Shell | gpl-3.0 | 110 |
#!/bin/bash
#----------------MetaCentrum----------------
#PBS -l walltime=24:00:00
#PBS -l select=1:ncpus=1:mem=8gb:scratch_local=8gb
#PBS -j oe
#PBS -N HybPhyloMaker8g_BUCKy
#PBS -m abe
#-------------------HYDRA-------------------
#$ -S /bin/bash
#$ -q mThC.q
#$ -l mres=6G,h_data=6G,h_vmem=6G
#$ -cwd
#$ -j y
#$ -N Hyb... | tomas-fer/HybPhyloMaker | HybPhyloMaker8g_BUCKy.sh | Shell | gpl-3.0 | 15,317 |
#!/bin/bash
echo "Loop of curl request, with plugin disabled for the page $1"
for p in $(wp plugin list --fields=name --status=active)
do
echo "Plugin: $p"
for i in {1..5}
do
curl -so /dev/null -H "Pragma: no-cache" -w "%{time_total}\n" $1 | sed 's/\,/./'
done | awk '{ sum +=$1; n++; print $1 } EN... | Mte90/Script | profiling/plugin-profile.sh | Shell | gpl-3.0 | 392 |
#!/bin/bash
function force_copy {
mkdir -p $(dirname $2)
if [ -f $2 ] && [ $1 != $2 ]; then
echo "Removing file"
rm -f $2
fi
cp $1 $2
}
if [ -d `dirname $0`/build/cluster/modules/ext ]; then
force_copy `dirname $0`/lib/ovation.jar `dirname $0`/build/cluster/modules/ext/ovation.jar
fi
force_copy `d... | physion/ovation-ui | ovation-ui/redistribute-lib-jars.sh | Shell | gpl-3.0 | 826 |
#!/bin/bash
set -e
pegasus_lite_version_major="4"
pegasus_lite_version_minor="7"
pegasus_lite_version_patch="0"
pegasus_lite_enforce_strict_wp_check="true"
pegasus_lite_version_allow_wp_auto_download="true"
. pegasus-lite-common.sh
pegasus_lite_init
# cleanup in case of failures
trap pegasus_lite_signal_int INT
trap... | elainenaomi/sciwonc-dataflow-examples | dissertation2017/Experiment 1A/instances/10_1_workflow_full_10files_secondary_w1_3sh_3rs_with_annot_with_proj_3s_range/dags/ubuntu/pegasus/example_workflow/20161107T080502+0000/00/00/taskevent_1_ID0000007.sh | Shell | gpl-3.0 | 1,237 |
#!/bin/sh
Data='BBN'
Indir='Data/BBN'
Intermediate='Intermediate/BBN'
Outdir='Results/BBN'
### Make intermediate and output dirs
mkdir -pv $Intermediate
mkdir -pv $Outdir
### Generate features
echo 'Feature Generation...'
python DataProcessor/feature_generation.py $Data 4
echo ' '
### Train PLE
### - Wiki: -iters 50... | shanzhenren/PLE | run.sh | Shell | gpl-3.0 | 1,219 |
#!/bin/bash
echocol() { echo -e "\033[32m*** $@...\033[0m " >&2; }
if [ ! -d ./test/bats ]; then
echocol "Installing bats..."
(cd test && git clone --depth 1 https://github.com/mapio/bats.git)
fi
if [ ! -r ./release/sf ]; then
echocol "Compiling sf..."
./bin/mkdist
fi
export PATH="$PATH:$(pwd)/re... | mapio/sim-fun-i | test/run.sh | Shell | gpl-3.0 | 421 |
#!/bin/sh
#-------------------------------------------------------------------
# config.sh: This file is read at the beginning of the execution of the ASGS to
# set up the runs that follow. It is reread at the beginning of every cycle,
# every time it polls the datasource for a new advisory. This gives the user
# the ... | jasonfleming/asgs | config/2019/ncfs-dev/asgs_config_ec95d_nam.sh | Shell | gpl-3.0 | 3,778 |
speaker-test -t sine -f 1000 -l 1 | cyanboy/IoT-Hackathon | sound_check/sound.sh | Shell | gpl-3.0 | 33 |
#!/bin/sh
apt-get install build-essential bison m4 texinfo make patch perl sed tar gawk
| uraymeiviar/artos | build/crossbuild/get-prerequisite.sh | Shell | gpl-3.0 | 88 |
#!/bin/bash
sudo apt-get build-dep emacs
sudo apt-get install libjansson-dev valgrind fonts-firacode
## On Linux Mint, at least, these are not installed when the above is done. Curious.
## On other systems, it can't hurt.
sudo apt-get install texinfo libxpm-dev libjpeg-dev libgif-dev libtiff-dev libtinfo-dev
| wdenton/conforguration | conforg/scripts/emacs-install-requirements.sh | Shell | gpl-3.0 | 311 |
#!/bin/bash
#
# Script (ssdtPRGen.sh) to create ssdt-pr.dsl for Apple Power Management Support.
#
# Version 0.9 - Copyright (c) 2012 by RevoGirl
#
# Version 18.8 - Copyright (c) 2014 by Pike <PikeRAlpha@yahoo.com>
#
# Readme......: https://github.com/Piker-Alpha/ssdtPRGen.sh/blob/master/README.md
#
# Change log..: http... | packingbox/Acer-TravelMate-P236-m | tools/ssdtPRGen.sh | Shell | gpl-3.0 | 151,125 |
#!/bin/bash -e
# The xorgproto package provides the header files required to build the X
# Window system, and to allow other applications to build against the
# installed X Window system.
# Dependencies
# [Required]
# util-macros
. ../../../.env
version=2019.1
srcfil=xorgproto-$version.tar.bz2
srcdir=xorgproto-$v... | fangxinmiao/projects | Architeture/OS/Linux/Distributions/LFS/build-scripts/blfs-latest/scripts/x/xorg-proto/xorg-proto.sh | Shell | gpl-3.0 | 509 |
#!/bin/bash
#
# Dutch to German - lines table
#
# Copyright (C) 2017-2018 be-rail@linuxunderground.be
# Distributed under the terms of the GNU General Public License v3
#
# Thanks to Claude, Alexandre and PPL (from ICFB) for translation.
#
# To be sure that sed will behave as expected :
export LC_COLLATE="C"
LINES_C... | linuxunderground/be-rail | scripts/nl2de_lines.sh | Shell | gpl-3.0 | 404 |
#!/bin/bash
# Warning: kcov is a Linux only tool
set -ex
CURRENT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_HOME="$CURRENT_PATH/.."
PROJECT_NAME=$(sed --quiet 's/^name *= *"\(.*\)"$/\1/p' $PROJECT_HOME/Cargo.toml)
PROJECT_BINARY_LOCATION="$PROJECT_HOME/target/debug"
KCOV_VERSION="30"
KCOV_TEMP="$... | fxbox/foxbox | tools/execute-unit-tests-with-coverage.sh | Shell | mpl-2.0 | 2,015 |
#!/usr/bin/env bash
if [ $# -lt 3 ]; then
echo "usage: $0 <db-name> <db-user> <db-pass> [db-host] [wp-version]"
exit 1
fi
DB_NAME=$1
DB_USER=$2
DB_PASS=$3
DB_HOST=${4-localhost}
WP_VERSION=${5-latest}
WP_TESTS_DIR=${WP_TESTS_DIR-/tmp/wordpress-tests-lib}
WP_CORE_DIR=${WP_CORE_DIR-/tmp/wordpress/}
set -ex
downloa... | corajr/wp-zotero-sync | bin/install-wp-tests.sh | Shell | agpl-3.0 | 2,514 |
#!/bin/bash
# this script builds the project with a given profile
if [[ $0 != ./deploy/* ]]; then
echo "Please run this script from the root of our repository!"
exit -1
fi
PROFILE="$1"
BRANCH_NAME="$2"
if [ "${PROFILE}" = "unused" ]; then
PROFILE="dev"
fi
if [ "${BRANCH_NAME}" = "test" ]; then
PROFILE="test"
fi... | dzhw/metadatamanagement | deploy/build.sh | Shell | agpl-3.0 | 722 |
#!/usr/bin/env bash
#
# Copyright (C) 2015-2015: Alignak team, see AUTHORS.txt file for contributors
#
# This file is part of Alignak.
#
# Alignak 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 ... | Alignak-monitoring-contrib/alignak-backend | code_test.sh | Shell | agpl-3.0 | 1,596 |
#!/usr/bin/env bash
###############################################################################
# geo-infra Scripts and templates to create and manage geoportals
# Copyright (c) 2015-2016, sigeom sa
# Copyright (c) 2015-2016, Ioda-Net Sàrl
#
# Contact : contact (at) geoportal (dot) xyz
# Repository : https://gith... | ioda-net/geo-infra | tasks/deploy.sh | Shell | agpl-3.0 | 11,321 |
#!/bin/sh
# pythonInstall.sh
#
#
# Created by Ron Yadgar on 25/09/2016.
#
SOURCE_DIRECTORY="/opt/kaltura/liveController/latest"
HOME_DIRECTORY=`grep recording_base_dir $SOURCE_DIRECTORY/liveRecorder/Config/config.ini | awk '{ print $3 }'`
HOSTNAME=$(hostname)
HOSTNAME_DIRECTORY="$HOME_DIRECTORY/$HOSTNAME"
echo... | kaltura/liveDVR | liveRecorder/install.sh | Shell | agpl-3.0 | 1,530 |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
echo "*** No autoreconf found, please install it ***"
exit 1
fi
# INSTALL are... | alexlarsson/xdg-app | autogen.sh | Shell | lgpl-2.1 | 1,454 |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
THEDIR=`pwd`
cd $srcdir
DIE=0
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile libvirt-qmf."
echo "Download the appropriate package for y... | zaneb/libvirt-qmf | autogen.sh | Shell | lgpl-2.1 | 1,506 |
#!/bin/bash
# /opt/lampp/cgi-bin/test-mrtg-rrd2.sh
# for local testing of mrtg-rrd2.cgi
# wget https://www.dropbox.com/s/334529psoett16t/test-mrtg-rrd2.sh
#see http://stackoverflow.com/questions/2224158/how-can-i-send-post-and-get-data-to-a-perl-cgi-script-via-the-command-line
#see http://www.cgi101.com/book/ch3/text.... | StefanoSalsano/alien-ofelia-conet-ccnx | scripts_and_config/test-mrtg-rrd2.sh | Shell | lgpl-2.1 | 535 |
#!/bin/bash
declare -a colors
# ½Å±¾ÖÐËùÓеĺóÐøÃüÁî¶¼»á°Ñ
#+ ±äÁ¿"colors"¿´×÷Êý×é.
echo "Enter your favorite colors (separated from each other by a space)."
read -a colors # ÖÁÉÙÐèÒª¼üÈë3ÖÖÑÕÉ«, ÒÔ±ãÓÚºó±ßµÄÑÝʾ.
# 'read'ÃüÁîµÄÌØÊâÑ¡Ïî,
#+ ÔÊÐí¸øÊý×éÔªËØ¸³Öµ.
echo
element_count=${#colors[@]}
# ÌáÈ¡Êý×éÔª... | liruiqiu/tlpi | sh/sh/ex67.sh | Shell | lgpl-3.0 | 1,554 |
#!/usr/bin/ksh
############################################################
## 功能:从存储服务器获取确认文件
############################################################
#------------------------参数说明----------------------------
#--接收
# localPath -本地文件路径
# remotePath -远程文件路径
# serverIP -远程服务器IP
# sft... | WZQ1397/automatic-repo | shell/filesystem/ftpautodownload.sh | Shell | lgpl-3.0 | 2,196 |
#!/bin/bash
php -f postgresqldumper.php admin postgre_admin.sql 32 "../../modules/admin/install/mysqli.php" "../../modules/admin/install/postgresql.php"
php -f postgresqldumper.php appointment appointment.sql 2 "../../modules/appointment/install/mysqli.php" "../../modules/appointment/install/postgresql.php"
php -f post... | Devoter/rtQuery | translator/dumper/makeObjectsFromPostgreSQL.sh | Shell | lgpl-3.0 | 1,597 |
#!/bin/bash
# declaration (affectation) d'une variable
STRING="Bonjour ... a tous. C'est mon premier script c'est facile!"
# Afficher la variable
echo $STRING
#faire chmod +x script.sh pour le rendre executable
| floslm/snipet | start/script.sh | Shell | lgpl-3.0 | 211 |
#!/bin/bash
sed s/\;.*// $1 | xclip -selection clipboard
| CompSciCabal/SMRTYPRTY | paip/jim/attolisp/uncomment.sh | Shell | unlicense | 58 |
#!/bin/bash
#
# modify by hiyang @ 2016-12-19
#
Install-JDK18() {
pushd ${oneinstack_dir}/src
JDK_FILE="jdk-`echo $jdk18_version | awk -F. '{print $2}'`u`echo $jdk18_version | awk -F_ '{print $NF}'`-linux-$SYS_BIG_FLAG.tar.gz"
JAVA_dir=/usr/java
JDK_NAME="jdk$jdk18_version"
JDK_PATH=$JAVA_dir/$JDK_NAME
... | PoplarYang/oneinstack-odm | include/jdk-1.8.sh | Shell | apache-2.0 | 1,584 |
#!/bin/bash
# -*- mode:shell-script; coding:utf-8; -*-
#
# Created: <Wed Oct 21 16:58:12 2015>
# Last Updated: <2020-March-13 08:55:50>
#
payload="Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created eq... | apigee/iloveapis2015-hmac-httpsignature | hmac/client.sh | Shell | apache-2.0 | 2,204 |
#!/bin/bash
if [ "$1" = "" ]; then
for n in {1,10}000000; do
./so-test $n || exit 1
done
else
for n in {1,10,100,200}000000; do
./so-test $n || exit 1
done
fi
| ivantishchenko/OpenMP-CUDA | so0/benchmark.sh | Shell | apache-2.0 | 192 |
#!/bin/bash
#set -o xtrace
#This script use for generate gamegrop of
#blew function is used to generate xml for virtualhost
#create asher 20150114
#modifyed 20151130 add two line and diffirent infrastraction game
#modifyed change to No Pxe Pc game intall , used direct change disk
basepath=$(dirname "$(readlink -f ... | lichengshuang/createvhost | others/oldcreatevhosts/noPxePcGame/chiBi-toPcGameVirthost.sh | Shell | apache-2.0 | 16,858 |
# Edit this file to CATALINA_BASE/bin/setenv.sh to set custom options
# Tomcat accepts two parameters JAVA_OPTS and CATALINA_OPTS
# JAVA_OPTS are used during START/STOP/RUN
# CATALINA_OPTS are used during START/RUN
# JVM memory settings - general
GENERAL_JVM_OPTS="-server -Xmx8192m -Xss192k -Djava.awt.headless=true"
... | KRMAssociatesInc/eHMP | ehmp/product/production/hmp-main/src/main/assembly/tomcat/setenv.sh | Shell | apache-2.0 | 1,189 |
#!/bin/bash
# Copyright 2018 Istio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | geeknoid/istio | prow/lib.sh | Shell | apache-2.0 | 8,956 |
#/bin/sh
#start or stop the im-server
LOGIN_SERVER=login_server
MSG_SERVER=msg_server
ROUTE_SERVER=route_server
HTTP_MSG_SERVER=http_msg_server
FILE_SERVER=file_server
PUSH_SERVER=push_server
DB_PROXY_SERVER=db_proxy_server
MSFS=msfs
function restart() {
cd $1
if [ ! -e *.conf ]
then
echo "no co... | zqiang/TeamTalk | server/run/restart.sh | Shell | apache-2.0 | 1,434 |
# only processes a single environment as the placeholder is not preserved
function prepareEnv() {
unset HTTPS_NAME
unset HTTPS_PASSWORD
unset HTTPS_KEYSTORE_DIR
unset HTTPS_KEYSTORE
unset HTTPS_KEYSTORE_TYPE
}
function configure() {
configure_https
}
function configureEnv() {
configure
}
function conf... | bdecoste/cct_module | os-eap7-launch/added/launch/https.sh | Shell | apache-2.0 | 1,504 |
#!/usr/bin/env bash
# resolve-run-targets.sh -- Resolves unqualified names to do into run/Makefile targets
##
DEEPDIVE_APP=$(find-deepdive-app)
export DEEPDIVE_APP
# check if already fully compiled first
app-has-been-compiled
# when our make commands are nested under an outer make, e.g., our own `make
# test`, some ... | zifeishan/deepdive | runner/resolve-args-to-do.sh | Shell | apache-2.0 | 1,191 |
#!/usr/bin/env bash
echo "===========================================$0 $@"
#Make sure to exit if anything fails
set -e
set -x
./bin/normalize_eml.sh "$@"
source ./bin/_newman_pipeline.sh "$@" | Sotera/pst-extraction | bin/eml_all.sh | Shell | apache-2.0 | 196 |
#!/bin/bash
CHECKPOINT_DIR="model/model_final/model.ckpt-34865"
python polyvore/fashion_compatibility.py \
--checkpoint_path=${CHECKPOINT_DIR} \
--label_file="data/label/fashion_compatibility_prediction.txt" \
--feature_file="data/features/test_features.pkl" \
--rnn_type="lstm" \
--direction="2" \
--result... | xthan/polyvore | predict_compatibility.sh | Shell | apache-2.0 | 354 |
#!/bin/sh
ruby analysis.rb data/data_2015Q1.csv projects/projects_2015Q1.csv map/hints.csv map/urls.csv map/defmaps.csv map/skip.csv map/ranges.csv
ruby analysis.rb data/data_2015Q2.csv projects/projects_2015Q2.csv map/hints.csv map/urls.csv map/defmaps.csv map/skip.csv map/ranges.csv
ruby analysis.rb data/data_2015Q3.... | cncf/velocity | shells/quarters.sh | Shell | apache-2.0 | 1,252 |
#!/bin/bash
# set what models to train
export TRI2B_BMMI=true
export TRI3B=false
export TRI4_NNET2=false
export TRI4_NNET2_SMBR=false
export TRI5_NNET2_IVECTOR=true
export TRI5_NNET2_SMBR_IVECTOR=true
# EVERY_N utterance is used for training
# EVERY_N=3 -> we use one third of training data
export EVERY_N=1
expor... | UFAL-DSG/kams | kams/cs_voip.sh | Shell | apache-2.0 | 2,389 |
#!/bin/bash
set -e # Exit with nonzero exit code if anything fails
curlretry() {
curl --retry 2 "$@"
}
curlbikeshed() {
INPUT_FILE=$(find . -maxdepth 1 -name "*.bs" -print -quit)
# The Accept: header ensures we get the error output even when warnings are produced, per
# https://github.com/whatwg/what... | slightlyoff/ServiceWorker | compile.sh | Shell | apache-2.0 | 982 |
#!/usr/bin/env bash
for i in {1..50};
do gcloud compute instances create perf-$i --image-family=ubuntu-1804-lts --image-project=gce-uefi-images --preemptible --machine-type=n1-standard-2 --zone=us-central1-a --metadata startup-script='#! /bin/bash
ulimit -n 65535
wget https://storage.googleapis.com/hey-release/hey... | apigee/ansible-opdk-accelerator | infrastructure/gce-management/performance-testing/perf-test.sh | Shell | apache-2.0 | 623 |
#!/usr/bin/env bash
# Run this script from the top level directory of this repository.
# Usage: ./ui/example/type-subtype-value/scripts/start.sh [any extra mvn command arguments, e.g -am to build all dependencies]
mvn clean install -pl :ui -Ptype-subtype-value,quick $@
| gchq/gaffer-tools | ui/example/type-subtype-value/scripts/start.sh | Shell | apache-2.0 | 271 |
#!/bin/bash
# Copyright 2014 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | phnmnl/mantl | roles/kubernetes/files/make-ca-cert.sh | Shell | apache-2.0 | 3,315 |
#! /bin/bash
set -e
set -x
if [ x"$TRAVIS" = xtrue ]; then
CPU_COUNT=2
else
CPU_COUNT=$(nproc)
fi
mv tcl/target/1986ве1т.cfg tcl/target/1986be1t.cfg
mv tcl/target/к1879xб1я.cfg tcl/target/k1879x61r.cfg
./bootstrap
mkdir build
cd build
../configure \
--prefix=$PREFIX \
--enable-static \
--disable-shared \
... | timvideos/conda-hdmi2usb-packages | prog/openocd/build.sh | Shell | apache-2.0 | 467 |
#!/bin/bash -eux
/sbin/chroot /mnt /bin/bash <<'EOF'
find /lib/modules/ -type f -name '*.ko' -exec gzip {} \;
depmod -a
EOF | robinwl/packer-templates | packer/scripts/slackware/kernel.sh | Shell | apache-2.0 | 124 |
#!/bin/sh
docker build -t wxmclub/solr:6-alpine .
| wxmclub/docker-images | solr/6-alpine/build.sh | Shell | apache-2.0 | 51 |
#!/bin/sh
#
# Unix/Linux Environment build script
# Author: Sasuke
#
if [ -e ~/.vim ] ; then
else
mkdir ~/.vim
fi
if [ -e ~/.vimrc ]; then
read ANS
# Ordinary Pochi files
ln -s $HOME/Pochi/.tmux.conf $HOME/.tmux.conf
ln -s $HOME/Pochi/.vimrc $HOME/.vimrc
ln -s $HOME/Pochi/.editorconfig $HOME/.editorconf... | sasukeh/Pochi | pinit.sh | Shell | apache-2.0 | 851 |
#!/bin/bash
set -eux
set -o pipefail
source $(dirname $0)/test_functions.bash
test_formats="tar raw qcow2"
if [ -z "$(which qemu-img)" ]; then
echo "Warning: No qemu-img binary found, cowardly refusing to run tests."
exit 0
fi
for format in '' $test_formats; do
build_test_image $format
echo "Test pa... | rdo-management/diskimage-builder | tests/image_output_formats.bash | Shell | apache-2.0 | 504 |
#!/bin/bash
# Source library
source ../../../utils/helper.sh
source ../../../utils/ccloud_library.sh
check_jq || exit
CONFIG_FILE=$HOME/.confluent/java.config
ccloud::validate_ccloud_config $CONFIG_FILE || exit
./stop-docker.sh
ccloud::generate_configs $CONFIG_FILE
source ./delta_configs/env.delta
docker-compose... | confluentinc/examples | clients/cloud/kafka-connect-datagen/start-docker-avro.sh | Shell | apache-2.0 | 1,728 |
#!/usr/bin/env bash
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | JacobTanenbaum/kubernetes | cluster/gce/gci/configure-helper.sh | Shell | apache-2.0 | 118,961 |
#!/bin/bash
# $1 -> Job workspace
WORKSPACE=$1
# Disable IPv6 in the test machines
var=' # Disable IPv6\n - lineinfile: dest=/etc/sysctl.conf regexp="{{ item }}" line="{{ item }} = 1"\n with_items:\n - 'net.ipv6.conf.all.disable_ipv6'\n - 'net.ipv6.conf.default.disable_ipv6'\n - 'net.ipv6.... | grycap/jenkins | config-scripts/im/disable-ipv6-ansible.sh | Shell | apache-2.0 | 491 |
#!/bin/bash
WGET='/usr/bin/wget -q'
MD5SUM='/usr/bin/md5sum'
GUNZIP='/bin/gunzip'
RM='/bin/rm'
$RM -r delegated-afrinic-latest.md5
$WGET ftp://ftp.afrinic.net/pub/stats/afrinic/delegated-afrinic-latest.md5
if ! $MD5SUM --check delegated-afrinic-latest.md5 > /dev/null 2>&1; then
$RM -f delegated-afrinic-latest
$WGE... | Markus-Go/ip-countryside | getDBs.sh | Shell | apache-2.0 | 1,933 |
find|grep debug.apk >apklist.txt
cat apklist.txt |sed 's/^/adb install /g' >installall.sh
chmod +x *.sh
chmod +x ~/bin -R
./installall.sh
| bayvictor/distributed-polling-system | bin/adb_install_all_subdir_apk.sh | Shell | apache-2.0 | 157 |
#!/bin/bash
START=$(date +%s)
# fail on first error
set -e
source /data/src/docker/joynr-base/scripts/ci/global.sh
cd /data/src
mvn clean install -P no-license-and-notice,no-java-formatter,no-checkstyle -DskipTests
END=$(date +%s)
DIFF=$(( $END - $START ))
log "c++ generate sources took $DIFF seconds"
| bmwcarit/joynr | docker/joynr-cpp-base/scripts/build/cpp-generate.sh | Shell | apache-2.0 | 308 |
pkg-config libxml-2.0 --modversion
| bayvictor/distributed-polling-system | bin/pkg_config_lib_ver.sh | Shell | apache-2.0 | 36 |
#!/bin/bash
xbindkeys -mk
exit
while true
do
echo 'Press Ctrl-C to exit ...'
xbindkeys -k
sleep 1
done | LaKing/xoclock | keypress-identifyer.sh | Shell | artistic-2.0 | 117 |
#!/bin/bash
containerID=$(docker run -d metaverseorg/buildnginx)
docker cp $containerID:/root/build/nginx-1.10.0/nginx_1.10.0-1_amd64.deb .
sleep 1
docker rm $containerID
| aelsharawi/nginx-ps-hdrs-cach | extractdeb.sh | Shell | artistic-2.0 | 172 |
#!/bin/sh
. tests/shlib/common.sh
. tests/shlib/vterm.sh
enter_suite tmux
vterm_setup
ln -s "$(which env)" "$TEST_ROOT/path"
ln -s "$(which cut)" "$TEST_ROOT/path"
ln -s "$ROOT/scripts/powerline-render" "$TEST_ROOT/path"
ln -s "$ROOT/scripts/powerline-config" "$TEST_ROOT/path"
test_tmux() {
if test "$PYTHON_IMPLEM... | codeprimate/arid | powerline/tests/test_in_vterm/test_tmux.sh | Shell | bsd-2-clause | 1,080 |
#!/bin/sh
# Surya Saha
# BTI/PPath@Cornell
# Purpose: Make dot plots for full chr length alignment with all and 1-1 mapping between ref and query
# Use with v4 mummer https://github.com/mummer4/mummer/releases
# All matches are 100% identical and only ATGC regions are reported
usage(){
echo "usage:
$0 <ref.fa> <que... | suryasaha/Utils | makeChrDotplotsMummer.sh | Shell | bsd-2-clause | 1,081 |
#!/bin/sh -e
ninja -C output/debug cm4all-beng-proxy
export G_SLICE=always-malloc
VALGRIND_FLAGS="--leak-check=yes --show-reachable=yes"
VALGRIND_FLAGS="$VALGRIND_FLAGS --track-fds=yes --track-origins=yes"
VALGRIND_FLAGS="$VALGRIND_FLAGS --suppressions=valgrind.suppressions"
exec valgrind $VALGRIND_FLAGS ./output/d... | CM4all/beng-proxy | valgrind.sh | Shell | bsd-2-clause | 355 |
#!/bin/bash
set -ev
set -o pipefail
. Scripts/set-travis-tag-to-latest.sh
pod env
# Lint the podspec to check for errors. Don't call `pod spec lint`, because we want it to evaluate locally
# Using sed to remove logging from output until CocoaPods issue #7577 is implemented and I can use the
# OS_ACTIVITY_MODE = di... | abbeycode/UnzipKit | Scripts/cocoapod-validate.sh | Shell | bsd-2-clause | 456 |
#!/bin/bash
docker run -it --rm -e DISPLAY=$DISPLAY --ipc host -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/home/angr/pwd angr/angr-management "$@"
| Ruide/angr-dev | angr-management/run-docker.sh | Shell | bsd-2-clause | 146 |
#!/usr/bin/env bash
# Compiling with ghcjs:
stack build --stack-yaml=stack-ghcjs.yaml
# Moving the generated files to the js folder:
mkdir -p js
cp -r $(stack path --local-install-root --stack-yaml=stack-ghcjs.yaml)/bin/hakyll-cms.jsexe/all.js js/
# Minifying all.js file using the closure compiler:
cd js
closure-com... | Haskell-Praxis/hakyll-cms | deploy.sh | Shell | bsd-2-clause | 477 |
SYSROOT=$NDKROOT/platforms/android-19/arch-x86
GCCTOOLCHAIN=$NDKROOT/toolchains/x86-4.8/prebuilt/windows-x86_64
GNUSTL=$NDKROOT/sources/cxx-stl/gnu-libstdc++/4.8
COMMONTOOLCHAINFLAGS="-target i686-none-linux-android --sysroot=$SYSROOT -gcc-toolchain $GCCTOOLCHAIN"
COMMONCOMPILERFLAGS="-fdiagnostics-format=msvc -fPIC -f... | PopCap/GameIdea | Engine/Source/ThirdParty/ICU/icu4c-53_1/Android/ConfigForAndroid-x86.sh | Shell | bsd-2-clause | 1,335 |
#!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
# I'm running this on Mac. To install the tools:
# brew install dos2unix
# I installed clang-format by downloading binary build from http://llvm.org/releases/download.html
# and doing:
# cp ~/Downloads/clang+llvm-3.5.0-macosx-apple-darwin/bin/clang-format /usr... | vehar/velociraptor8 | scripts/clang-fmt.sh | Shell | bsd-3-clause | 510 |
# -------------------------------------------------------------------------------------------------
# Copyright (c) 2010-2020 zsh-syntax-highlighting contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted
# provided that the following condi... | x-way/zsh-syntax-highlighting | highlighters/main/main-highlighter.zsh | Shell | bsd-3-clause | 56,819 |
#!/bin/bash
# Copyright 2020 Google LLC.
set -euo pipefail
USAGE=$'
Example usage:
inference_deeptrio.sh --model_preset "WGS" --docker_build true --use_gpu true
The only trio supported is: child=HG002, parents=HG003,HG004.
This is because otherwise there are too many flags needed to set VCFs and BEDs for 3 samples... | google/deepvariant | scripts/inference_deeptrio.sh | Shell | bsd-3-clause | 28,096 |
#!/bin/bash
# Rebuild all collections of stop words
path=${1-mots_vides/datas/}
for lang in $(ls $path)
do
file=$(echo $lang | cut -f1 -d.)
lang=$(echo $file | cut -f2 -d-)
./bin/merge-stop-words $lang $path$file.txt
done
| Fantomas42/mots-vides | rebuild-collections.sh | Shell | bsd-3-clause | 230 |
#!/bin/bash
#SBATCH --account=nstaff
#SBATCH --constraint=haswell
#SBATCH --image=docker:rcthomas/nersc-python-bench:0.3.2
#SBATCH --job-name=pynamic-cori-haswell-shifter-150
#SBATCH --mail-type=FAIL
#SBATCH --mail-user=rcthomas@lbl.gov
#SBATCH --nodes=150
#SBATCH --ntasks-per-node=32
#SBATCH --output=logs/pynamic-cori... | NERSC/nersc-python-bench | scripts/pynamic-cori-haswell-shifter-150.sh | Shell | bsd-3-clause | 1,344 |
#!/bin/bash
#On Debian 8, armf architecture
# see: http://wiki.ros.org/kinetic/Installation/Source
# Installing bootstrap dependencies
sudo pip install -U rosdep rosinstall_generator wstool rosinstall
sudo pip install --upgrade setuptools
# Initializing rosdep
sudo rm -rf /etc/ros/rosdep/sources.list.d/20-default.li... | sbrodeur/ros-icreate-bbb | scripts/install_ros.sh | Shell | bsd-3-clause | 1,640 |
conda install --yes pip
pip install wget
python -m wget https://raw.githubusercontent.com/mjirik/lisa/master/requirements_pip.txt -o requirements_pip.txt
#python -m wget https://raw.githubusercontent.com/mjirik/lisa/master/requirements_conda.txt -o requirements_conda.txt
#python -m wget https://raw.githubusercontent.co... | mjirik/lisa | install_nosudo.sh | Shell | bsd-3-clause | 1,451 |
#!/bin/sh
BASEDIR="../" # root of translatable sources
PROJECT="fcitx-mozc" # project name
BUGADDR="fcitx-dev@googlegroups.com" # MSGID-Bugs
WDIR="`pwd`" # working dir
echo "Preparing rc files"
echo "Done preparing rc files"
echo "Extracting messages"
# see above on sorting
find "${BASEDIR}" -name '*.cc' -o -name ... | fcitx/mozc | src/unix/fcitx/po/Messages.sh | Shell | bsd-3-clause | 907 |
#!/bin/sh
#
# Protocol Buffers - Google's data interchange format
# Copyright 2009 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redis... | openx/python3-protobuf | src/google/protobuf/compiler/zip_output_unittest.sh | Shell | bsd-3-clause | 3,675 |
echo "Setup postgres"
sudo -u postgres psql <<< "
CREATE DATABASE blogdb;
CREATE USER blog1 WITH PASSWORD 'blogpassword';
GRANT ALL PRIVILEGES ON DATABASE blogdb TO blog1;
"
| giovannicode/giovanniblog | provisioning/roles/db/files/postgres/setup.sh | Shell | bsd-3-clause | 174 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.