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
#
# Copyright 2003-2013 Jeffrey K. Hollingsworth
#
# This file is part of Active Harmony.
#
# Active Harmony is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, ... | jonfetterdegges/activeharmony | WIP/code-server/build/old/transport_file.sh | Shell | gpl-3.0 | 923 |
#!/bin/bash
sel_cont=$(zenity --list --text "請選擇連線方式" --column="連線方式" smb ftp )
if [ "$sel_cont" == "smb" ]; then
if [ -e /etc/init.d/smbd ]; then
echo "已安裝smb服務"
else
apt-get install samba
fi
fi
input=$(zenity --entry --text="輸入"$sel_cont"連線主機IP")
if [ -z $input ]; then
zenity --info \
--tex... | ezgo-dev/ezinstall | cgi-bin/sh/inst_samba_content.sh | Shell | gpl-3.0 | 1,913 |
#!/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 2/logs/w-11_1/20170127T001056+0000/00/00/longestsession_1_ID0000013.sh | Shell | gpl-3.0 | 1,228 |
#!/usr/bin/env bash
set -e
if [ "$EUID" -ne 0 ]; then
echo "This script requires root privileges"
exit 1
fi
REPO_DOMAIN=rkt.mrgnr.io
COMMIT=$(git rev-parse --verify HEAD)
TOR_VERSION=0.2.9.10
acbuild --debug begin
trap "{ acbuild --debug end && exit 1; }" EXIT
acbuild --debug set-name $REPO_DOMAIN/tor
acbui... | mrgnr/rkt-images | tor/build.sh | Shell | gpl-3.0 | 1,390 |
#!/bin/bash
k=0.0625
sub='tt'
for i in `seq 7`
do
echo $i' s='$k
rm -f data.* global.dat
OMP_STACKSIZE=100000 ./nbody.out -i 2 -t 100.0 -R 0.1 -r 0.3 -b 0.3 -o 0.0625 -D $k -e 0.0 input/p3t.input 1>result/nbody.log.p3t.$sub$i 2>&1
#echo 'input/p3t.input' >datalist
ls data.*|sort -n -k1.6 > datalist... | AICS-SC-GROUP/SPARC-SC | test/p3t.sh | Shell | gpl-3.0 | 512 |
#!/bin/bash
. ../mtTest.txt
txt_title "mtPixyCLI"
CLICOM="mtpixycli -seed 123 -q -t -patterns /usr/share/mtpixy-qt5/patterns/default.png -shapes /usr/share/mtpixy-qt5/shapes/default.png"
run_sh_cli_init
# Creative
run_sh_cli 11 12 13
# Misc, including errors
run_sh_cli 51
valg_results
# Check results
cmp_d... | matyler/mtCellEdit | test/mtpixycli/suite.sh | Shell | gpl-3.0 | 858 |
#!/bin/dash
# Subroutines for event processing
# Enumerate event properties, line by line.
# $1 Device metadata directory; defaults to $VDEV_METADATA if not given
# Return 0 on success
event_print_properties() {
local _METADATA _LINE
_METADATA="$1"
if [ -z "$_METADATA" ]; then
_METADATA="... | jcnelson/vdev | vdevd/helpers/LINUX/subr-event.sh | Shell | gpl-3.0 | 3,967 |
install_name_tool -change /Library/Frameworks/FreeType.framework/Versions/2.3/FreeType @executable_path/../Frameworks/FreeType.framework/Versions/2.3/FreeType "build/${CONFIGURATION}/naev.app/Contents/MacOS/naev"
install_name_tool -change /Library/Frameworks/Vorbis.framework/Versions/A/Vorbis @executable_path/../Frame... | cjp39/naev | extras/macosx/scripts/libpaths.sh | Shell | gpl-3.0 | 2,801 |
#!/bin/bash
for DIR in $(ls -d src/main/res/layout*); do
for file in $(ls -l ${DIR} | /usr/bin/awk '{ print $9}' | /usr/bin/sed 's/\..\+//g'); do
if [ ! -f ${DIR}/${file} ]; then
echo -e "ignored ${DIR}/${file}"
continue
fi;
filename=`basename ${file}`
filenam... | xVir/tasks | scripts/find-unused-layouts.sh | Shell | gpl-3.0 | 475 |
#!/bin/sh
# Test "mv" with special files.
# Copyright (C) 1998-2019 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at you... | komh/coreutils-os2 | tests/mv/mv-special-1.sh | Shell | gpl-3.0 | 2,417 |
#!/bin/bash
# Create a config file containing a new, random DES key.
set -e
des_config_file="$1"
# Generate a new key containing exactly 24 alpha-numerical chars.
new_key="$(tr -cd "[:alnum:]" < /dev/urandom 2> /dev/null | head -c 24)"
# The config is a line of PHP code.
printf "\$config['des_key'] = '%s';\n" "$new_... | tarleb/zeitmail | salt/roots/roundcube/files/create-des-key-config.sh | Shell | gpl-3.0 | 346 |
#!/usr/bin/ckermit +
# panel debug script
# $port
set line /dev/ttyUSB0
if fail exit 1 "invalid port"
# $rate
set speed 250000
if fail exit 1 "invalid rate"
set serial 8n1
set flow-control none
set carrier-watch off
set modem type none
# monitor progress
set input echo on
set term echo local
set term cr-display crl... | random-builder/Smoothieware-Wanhao-D6 | mks-tft/tester.sh | Shell | gpl-3.0 | 331 |
#!/bin/bash
if [ -z "$1" ]
then
echo "Please provide the user- and groupname which permissions should be restored!";
exit -1;
fi
HOMEDIR="/home/$1"
USER="$1"
if [ "$1" == "$2" ]
then
GROUP=$USER
else
GROUP="$2"
fi
CURRENT_USER=$(whoami)
if [ "$CURRENT_USER" != "root" ]
then
echo "You have to be logged in as ... | HeikoAdams/shellscripts | restore_perm.sh | Shell | gpl-3.0 | 509 |
#!/bin/bash
_no_env_path="`dirname $0 | sed \"s,^.\$,${PWD},\"`"
_no_env_var="bash ${_no_env_path}/no_env_var.sh"
. ${_no_env_path}/utilities.lib.sh
TMP_PREFIX="/tmp/read"
case "$1" in
"INTERFACE")
# Wrapper for echo <question>; read <response>; echo $<response>
# Open a window with a read instance if there is n... | luffah/user_interface_shell | _scripts/no_env_var.sh | Shell | gpl-3.0 | 2,105 |
#!/bin/bash
clear
echo -e "Traktor v1.9\nTor will be automatically installed and configured…\n\n"
# Install Packages
sudo apt-get update > /dev/null
sudo apt install -y \
tor \
obfs4proxy \
privoxy \
dnscrypt-proxy \
torbrowser-launcher \
apt-transport-tor
# Backup Torrc
if [ -f "/etc/tor/torrc" ]; then
ec... | Sosha1996/traktor | traktor_debian.sh | Shell | gpl-3.0 | 3,489 |
SIM_DATA=../../ngsSim/examples
ANGSD=../../angsd
NGSPOPGEN=../../ngsPopGen
##### Clean-up
rm -f testF*
N_IND=10
N_SITES=10000
FREQ=0.2
SITE_POS=r
INDF=0.5
ALPHA=0.01
SEED=12345
##### Simulate data from HMM
echo "========== Simulating data ==========" >&2
DEPTH=2
ERROR=0.01
Rscript ../scripts/ngsF-HMMsim.R --n_ind... | fgvieira/ngsF-HMM | examples/test.sh | Shell | gpl-3.0 | 4,440 |
PLUGINS="plugins"
CMODULES="$PLUGINS/cmodules/bin"
JSHOOKS="hooks/jshooks"
| Manu-sh/Neon-Pi | env.sh | Shell | gpl-3.0 | 75 |
#!/bin/bash
#PBS -N _biox3_scratch_users_rhiju_projects_RNA_nn_rule_chain_closure_loop_close_runs_create_potential_tests_gaaaaaaaag_HLLLLLLLLH_no_bias_.
#PBS -o /dev/null
#PBS -e /dev/null
#PBS -m n
#PBS -M nobody@stanford.edu
#PBS -l walltime=16:00:00
cd /biox3/scratch/users/rhiju/projects/RNA/nn_rule_chain_closure/l... | rhiju/loop_close | runs/create_potential/tests/gaaaaaaaag_HLLLLLLLLH/no_bias/qsub_files/qsub0.sh | Shell | gpl-3.0 | 815 |
#
# XXX: NOTE: this will only compile the x86 version.
#
# To compile the x64 version, use:
# C:\> call "c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" amd64
# C:\> cl.exe -LD /Zl /GS- /DBUILDMODE=2 /link /entry:DllMain kernel32.lib
#
if [ -z "$PREFIX" ]; then
PREFIX=i586-mingw32msvc
fi
rm -f ... | cSploit/android.MSF | data/templates/src/pe/dll/build.sh | Shell | gpl-3.0 | 746 |
#!/bin/sh
Folder_A="/media/sun/Elinor.Sun/expr/20171128_corridor/rgb"
#rename 's/\_/\./' ${Folder_A}/*.png
Output_file="/media/sun/Elinor.Sun/expr/20171128_corridor/rgb.txt"
: > $Output_file
echo "# color maps" >> $Output_file
echo "# file: 'xxx.bag'" >> $Output_file
echo "# timestamp filename" >> $Output_file
fo... | ElinorSun/Soledad | build/run/format_rgb.sh | Shell | gpl-3.0 | 554 |
docker volume create --name=task-data
docker volume create --name=taskd-data
docker volume create --name=db-data
| coddingtonbear/inthe.am | docker/create_volumes.sh | Shell | agpl-3.0 | 113 |
cd ./dev/tools
./bake.sh
cd ../..
mv ./dev/game.min.js ./built/lib/game.min.js
cp -r ./dev/media ./built/
#cp -r ./dev/lib/utils ./built/lib
cd ./built
rm media/.gitignore
rm -r media/.git
cd .. | Manic0892/40yog | build_simple.sh | Shell | agpl-3.0 | 194 |
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <github_account>"
exit
fi
echo "Installing dependencies"
apt-get update
apt-get install python-pip git
apt-get install build-essential python-dev
apt-get install redis-server
echo "Installing IntelMQ"
useradd -M -U -s /bin/bash intelmq
pip install git+https://$1@github.... | aaronkaplan/intelmq-old | bin/INSTALL_INTELMQ.sh | Shell | agpl-3.0 | 753 |
#!/bin/sh
MODULE_DIR=$(readlink -f $(dirname "$0"))
DIR=$MODULE_DIR/../../..
echo "$DIR" > /tmp/dump
if [ "$DIR" = "" ]; then
echo "DIR MUST NOT BE EMPTY. I WONT TRY TO REMOVE /TMP"
exit 2
fi
if [ "$1" = "start" ]; then
if [ ! -d "$DIR/mongodb" ]; then
mkdir "$DIR/mongodb"
fi
mongod --dbp... | staute/shinken-mod-logstore-mongodb | test/test_livestatus/test_mongodb.sh | Shell | agpl-3.0 | 573 |
#!/bin/sh
. ./wvtest.sh
WVSTART "main test"
WVPASS true
WVPASS true
WVPASS true
WVFAIL false
WVXFAIL false
WVXFAIL true
WVSKIP non-existent
WVPASSEQ "$(ls | sort)" "$(ls)"
WVPASSNE "5" "5 "
WVPASSEQ "" ""
(echo nested test; true); WVPASSRC $?
(echo nested fail; false); WVFAILRC $?
WVSTART another test
WVPASS true
| apenwarr/wvtest | sh/t/twvtest.sh | Shell | lgpl-2.1 | 317 |
#!/bin/bash
#
# Build the Csound 32-bit float libraries and update the AudioKit framework for OS X
#
# (c) 2015 Stephane Peter
#
#
# Note: libsndfile needs to be installed on the system for this compilation to succeed.
# Easy way using Fink: fink install libsndfile1-dev
# Then copy the universal libraries already cont... | audiokit/csound | installer/audiokit/release-osx-dynamic.sh | Shell | lgpl-2.1 | 1,685 |
#!/bin/bash
INTERFACE=lo
RESULT_FILE=result
if [ $# -eq 0 ]
then
echo "No arguments supplied"
exit 1
fi
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
rm -f $RESULT_FILE 1> /dev/null 2>&1
date1=$(date +"%s")
date > $RESULT_FILE
COUNT=0
while read line
do
MAC=$( ech... | rubydhash/webradius | config_server/test/mass_dhcp_request.sh | Shell | lgpl-2.1 | 1,080 |
#!/bin/bash -ex
bundle
bundle exec rake jenkins
| cyberark/conjur | gems/policy-parser/ci/test.sh | Shell | lgpl-3.0 | 50 |
#!/bin/bash
source ./framework.sh
####
## Week #49
####
TAG="week49"
function valid_env() # $1 is project's id.
{
# POM
xml_key_value pom.xml groupId fr.unice.polytech.3a.qgl
xml_key_value pom.xml artifactId $1
# Bot
PACKAGE=./src/main/java/fr/unice/polytech/qgl/$1
exists_dir $PACKAGE
if... | mosser/QGL-15-16 | deliveries/week49.sh | Shell | lgpl-3.0 | 991 |
#!/bin/bash
set -u # forbid undefined variables
set -e # forbid command failure
readonly PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH
if [[ -n "${PQRS_ORG_INSTALLER_CODE_SIGN_IDENTITY:-}" ]]; then
if security find-identity -p basic -v | grep -q ") $PQRS_ORG_INSTALLER_CODE_SIGN_IDENTITY \""; then
echo $PQRS_O... | tekezo/Karabiner-Elements | scripts/get-installer-codesign-identity.sh | Shell | unlicense | 377 |
#!/bin/bash
echo "Installing Docker".
echo "https://cloud-ark.github.io/cloudark/docs/html/html/installation.html"
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
... | cloud-ark/cloudark | install-docker-ubuntu.sh | Shell | apache-2.0 | 532 |
#! /bin/bash
#vim ~/.profile
#export SCALA_HOME=/home/ubuntu/tools/scala-2.11.5
#export PATH=$SCALA_HOME/bin:$PATH
#export WISECROWDREC_HOME=/home/ubuntu/WiseCrowdRec
#export MAVEN_OPTS="-Xmx2048M -XX:MaxPermSize=2048M -XX:ReservedCodeCacheSize=2048M"
#or export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=1024M -XX:ReservedCod... | faustineinsun/WiseCrowdRec | deprecated-wisecrowdrec-springmvc/bin/ec2/1-download-tools-ec2.sh | Shell | apache-2.0 | 4,820 |
#!/usr/bin/env bash
# Copyright 2021 Google Inc.
#
# 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 ag... | GoogleCloudPlatform/professional-services | tools/vm-migrator/run.sh | Shell | apache-2.0 | 1,175 |
#!/bin/bash
set -x
DOCKER_FLAG="-idt"
#DOCKER_PRIV="--privileged=true"
DOCKER_DEVICES="--device /dev/nvidia0:/dev/nvidia0 --device /dev/nvidiactl:/dev/nvidiactl --device /dev/nvidia-uvm:/dev/nvidia-uvm"
#DOCKER_DEVICES="--device /dev/nvidia1:/dev/nvidia1 --device /dev/nvidiactl:/dev/nvidiactl --device /dev/nvidia-uvm... | linzhaolover/myansible | zurich/instances/dockercreate.sh | Shell | apache-2.0 | 990 |
#!/usr/bin/env zsh -i
# Auto-generated by Voodoo
# First-time script for project setup (DELETE ME AFTER RUNNING!)
DOCS_DIR=~/dev/githubdocs
print Setting up your virtualenv
rmvirtualenv scanpdf
if [ $? -ne 0 ]; then
print Removing old virtualenv failed
exit -1
fi
mkvirtualenv scanpdf
if [ $? -ne 0 ]; then
... | virantha/scanpdf | first_setup.zsh | Shell | apache-2.0 | 1,815 |
#!/bin/bash
cineca="http:\/\/gmql.eu\/gmql-rest\/"
genomic="http:\/\/genomic.elet.polimi.it\/gmql-rest\/"
from=$genomic
to=$cineca
find . -type f | grep -v .git/ | xargs sed -i 's/$to/$to/g'
| DEIB-GECO/PyGMQL | change_remote_instance.sh | Shell | apache-2.0 | 194 |
#!/bin/sh
# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | abgworrall/test-infra | kind/hack/generate.sh | Shell | apache-2.0 | 1,130 |
#!/bin/sh
# Copyright 2005, 2006 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license,
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
# indicate ... | OpenXIP/xip-libraries | src/extern/freetype-2.2.1/autogen.sh | Shell | apache-2.0 | 1,247 |
#!/usr/bin/env bash
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT="$( cd $DIR && cd .. && pwd)"
LIB="$ROOT"/target
INPUT="../naf-examples"
EXTENSION=".naf"
PROJECT="wikinews"
java -Xmx2000m -cp "$LIB/StoryTeller-v1.0-jar-with-dependencies.jar" vu.cltl.storyteller.input.NafTokenLayer... | cltl/StoryTeller | scripts/createNafTokenIndex.sh | Shell | apache-2.0 | 384 |
#! /bin/sh
# Command for compiling cpp file in k3
# Since it's a little tricky to come up with the full command line, you can just use this
# You might need to adjust it to suit your system
export SNDPATH=`find .cabal-sandbox -name "*packages.conf.d"`
# Set a default c++ compiler
if [ -z "$CXX" ]; then
CXX="--gcc"
f... | DaMSL/K3 | tools/scripts/run/compile.sh | Shell | apache-2.0 | 1,003 |
#!/bin/sh
java -Xmx128m -Djava.net.useSystemProxies=true -Dbasename=`basename "$0"` -jar /usr/share/jsign/jsign-@VERSION@.jar "$@"
| netmackan/jsign | jsign/src/deb/data/usr/share/jsign/jsign.sh | Shell | apache-2.0 | 132 |
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
shopt -s nullglob
root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.."
xds=${root}/vendor/github.com/envoyproxy/data-plane-api
echo "Expecting protoc version >= 3.5.0:"
protoc=$(which protoc)
$protoc --version
imports=(
${xds}
"${root}/vend... | frankbu/istio | vendor/github.com/envoyproxy/go-control-plane/build/generate_protos.sh | Shell | apache-2.0 | 2,504 |
#!/bin/bash
echo '##########################################################################'
echo '##### About to run install-openldap_server.sh script #####################'
echo '##########################################################################'
yum install -y openldap openldap-clients openldap-servers
... | Sher-Chowdhury/vagrant-openldap | scripts/install-openldap_server.sh | Shell | apache-2.0 | 6,166 |
#!/bin/bash
# Download Dilipad data and extract the FoLiA files.
# Usage: ./get_data.sh <dir out>
# 2015-07-01 j.vanderzwaan@esciencecenter.nl
# Create output directory if it doesn't exist
[[ -d "$1" ]] || mkdir "$1"
[[ -d "$1/download/" ]] || mkdir "$1/download/"
cd "$1/download/"
# Download data
wget http://ode... | NLeSC/cptm | get_data.sh | Shell | apache-2.0 | 1,446 |
#!/bin/sh
coverage erase
tox
coverage combine
coverage report -m
coverage html
| avara1986/ardy | tests.sh | Shell | apache-2.0 | 79 |
#!/bin/bash -e
### SERVER_KEY_PWD #############################################################
if [ -n "${SERVER_KEY_PWD_FILE}" ]; then
# Get server private key passphrase
if [ -e "${SERVER_KEY_PWD_FILE}" ]; then
info "Using server private key passphrase from ${SERVER_KEY_PWD_FILE}"
SERVER_KEY_PWD=$(cat... | sicz/docker-baseimage | rootfs/docker-entrypoint.d/40-server-key-pwd.sh | Shell | apache-2.0 | 1,125 |
#!/usr/bin/env bash
### every exit != 0 fails the script
set -e
echo "Install native screen control libraries for Sakuli"
# opencv
yum -y install opencv
# tesseract
yum -y install leptonica tesseract tesseract-langpack-deu
# some missing ui controll tools
# wmctrl (checked by: https://www.virustotal.com/de/url/394... | ConSol/sakuli | docker/sakuli-client/src/centos/install/native_screen_control_libs.sh | Shell | apache-2.0 | 945 |
# Disable guest account
sudo bash install-steps/guest_account.sh disable
# Use F1-F12 as standard function keys
defaults write -globalDomain com.apple.keyboard.fnState -int 1
# Enable full keyboard access for all controls
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Auto hide and show Dock
defaults wri... | bestswifter/macbootstrap | install-steps/macos.sh | Shell | apache-2.0 | 3,269 |
if test "$#" -ne 1; then
result=${PWD##*/}
else
result=$1
fi
echo -ne '\033]0; '$result' \007'
| mohammad-/title-script-mac-terminal | title.sh | Shell | apache-2.0 | 104 |
#!/bin/bash
# ==========================================================
# ==========================================================
# Company: THE NOW FACTORY
# Website: http://www.thenowfactory.com/
#
# Author: Agustin Fernandez
# Creation date: 24/Mar/2009
#
# DESCRIPTION: This script runs and retrieved yesterday'... | peter-watters/WebPortfolio | tnf_inventory/Sample_scripts/perform_DCVs_on_all_probes_and_retrieve_them.sh | Shell | apache-2.0 | 3,902 |
#! /bin/bash
# -----------------------------------------------------------------------------
#
# Package : twig/twig
# Version : 1.42.4, 1.42.5
# Source repo : https://github.com/twigphp/Twig
# Tested on : rhel 8.4
# Maintainer : Nailusha Potnuru <pnailush@in.ibm.com>
#
# Disclaimer: This script h... | ppc64le/build-scripts | t/twig/twig_rhel_8.4.sh | Shell | apache-2.0 | 2,680 |
#!/bin/bash
echo '----------------------------------------------------------------------------------------------------'
echo "This build script requires the following dependencies to be installed:"
echo '----------------------------------------------------------------------------------------------------'
echo "gem in... | dmueller39/Typhoon | build.sh | Shell | apache-2.0 | 3,017 |
#!/bin/bash
set -e
set -o errexit
set -o pipefail
set -o nounset
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LOCAL_VERSION=`jq -r .http4k.version $DIR/version.json`
BINTRAY_VERSION=`curl -s https://bintray.com/api/v1/packages/http4k/maven/http4k-core/versions/_latest | jq -r .name`
if [[ "$LOCAL_VE... | grover-ws-1/http4k | release-ci.sh | Shell | apache-2.0 | 2,259 |
#!/usr/bin/env bash
#
# Checks the number of lint issues against historical values. Used in
# Travis CI builds to fail when the number increases by exploiting the
# caching mechanism.
# This is to prime the system: when I submitted this change, this is the
# number of lint warnings that existed.
DEFAULT_NUMBER=207
if... | Lekensteyn/connectbot | scripts/check-lint-count.sh | Shell | apache-2.0 | 1,247 |
#!/bin/bash
INTERVAL=“1” # update interval in seconds
if [ -z “$1” ]; then
echo
echo usage: $0 [network-interface]
echo
echo e.g. $0 eth0
echo
exit
fi
IF=$1
while true
do
R1=`cat /sys/class/net/$1/statistics/rx_bytes`
T1=`cat /sys/class/net/$1/statistics/tx_bytes`
sleep $INTERVAL
R2=`ca... | yorfir/CentOS-Attachment | netspeed.sh | Shell | apache-2.0 | 690 |
curl -XDELETE 'http://localhost:9200/mystackoverflow/?pretty'
| stefansavev/elasticsearch-mystackoverflow-example | scripts/delete_index.sh | Shell | apache-2.0 | 62 |
#!/bin/bash
mkdir -p /var/run/ministry
chown ministry:ministry /var/run/ministry
exec /usr/bin/ministry -c /etc/ministry/ministry.conf -p /var/run/ministry/ministry.pid
| ghostflame/ministry | dist/wrapper.sh | Shell | apache-2.0 | 172 |
MOUNTPOINT="/mnt/webdav"
DIRNAME=`echo -n 'test_swiftdav_davfs_' ; cat /dev/urandom | tr -cd 'a-f0-9' | head -c 8`
DIRNAME2=`echo -n 'test_swiftdav_davfs_' ; cat /dev/urandom | tr -cd 'a-f0-9' | head -c 8`
FILENAME=`echo -n 'test_swiftdav_davfs_' ; cat /dev/urandom | tr -cd 'a-f0-9' | head -c 8`
FILENAME2=`echo -n 'tes... | cschwede/swiftdav | test/test_davfs.sh | Shell | apache-2.0 | 1,471 |
#!/usr/bin/env bash
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | annarev/tensorflow | tensorflow/tools/ci_build/release/common.sh | Shell | apache-2.0 | 15,862 |
# Aliases in this file are bash and zsh compatible
# Don't change. The following determines where YADR is installed.
yadr=$HOME/.yadr
# Get operating system
platform='unknown'
unamestr=$(uname)
if [[ $unamestr == 'Linux' ]]; then
platform='linux'
elif [[ $unamestr == 'Darwin' ]]; then
platform='darwin'
fi
# YADR... | tonynguyen68/dotfiles | zsh/aliases.zsh | Shell | bsd-2-clause | 5,609 |
if [ "$1" = dist ]; then
$makecommand dist
fi
| jmcveigh/komodo-tools | scripts/perl/rebuild_your_distributions/make_dist.sh | Shell | bsd-2-clause | 50 |
brew install pig
brew install apache-spark
| aparo/elasticsearch-cookbook-third-edition | chapter_18/install_pig_spark_macosx.sh | Shell | bsd-2-clause | 44 |
#!/usr/bin/env bash
zip kdtree.zip PointSET.java KdTree.java
| CourseAce/Princeton-Algorithms | Programming Assignment 5: Kd-Trees/src/main/java/zip.sh | Shell | bsd-2-clause | 61 |
#!/bin/bash
/home/skia/go/bin/hugo --source=/home/skia/docsy --destination=/output --config=/input/config.toml --contentDir=/input | google/skia-buildbot | docsyserver/images/build.sh | Shell | bsd-3-clause | 131 |
#!/bin/bash -x
APPLICATION_DOT_CONFIG_ENABLE="ENABLE"
# ----------------------------------------------------------------------------
# Module names must be specified with proper casing.
# ----------------------------------------------------------------------------
TEMPLATE_MODULE="Video"
NEW_MODULE="ContactMana... | cgoodrich/zf2-client | create-new-module.sh | Shell | bsd-3-clause | 5,714 |
#!/usr/bin/env bash
./configure --prefix=${PREFIX} \
--build=${BUILD} \
--host=${HOST} \
|| { cat config.log; exit 1; }
make SHLIB_LIBS="$(pkg-config --libs ncurses)" -j${CPU_COUNT} ${VERBOSE_AT}
make install
| jjhelmus/berryconda | recipes/readline/build.sh | Shell | bsd-3-clause | 255 |
#!/bin/bash
# Exit if there is an error
set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# If script is executed as an unprivileged user
# Execute it as superuser, preserving environment variables
if [ $EUID != 0 ]; then
sudo -E "$0" "$@"
exit $?
fi
# If there is an .env file use it
# t... | zeropingheroes/lancache | prepare-configs.sh | Shell | bsd-3-clause | 1,956 |
#!/usr/bin/env zsh
# -------------------------------------------------------------------------------------------------
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted
# provided that ... | nlevchuk/zsh-syntax-highlighting | tests/test-highlighting.zsh | Shell | bsd-3-clause | 3,904 |
#!/bin/bash
cd $(dirname $0)
export PATH=/usr/sbin:/usr/local/sbin:$PATH
PEERS=/var/www/keyformular/keys/
ALIASES=/opt/ffmap-backend/aliases_peers.json
DEST=/var/www/ffmap/
set -e
"$(dirname "$0")"/mkaliases.py -p $PEERS -d $ALIASES
"$(dirname "$0")"/bat2nodes.py -A -a $ALIASES -a /opt/ffmap-backend/aliases.json -... | freifunkMUC/ffmap-backend | mkmap.sh | Shell | bsd-3-clause | 332 |
#!/bin/bash
{
LC_CTYPE=pt_PT.UTF-8
} 2>/dev/null
checkA1() { local LC_ALL= LC_CTYPE=C; builtin read -t 0; } 2>/dev/null
checkB1() { local LC_ALL= LC_CTYPE=C; builtin eval 'echo ${#a}'; } 2>/dev/null
# x [bash-bug] この方法だと LC_CTYPE が反映されない。
checkA2() { LC_ALL= LC_CTYPE=C builtin read -t 0; } 2>/dev/null
checkB2() { ... | akinomyoga/ble.sh | memo/D1440.suppress-locale-error.sh | Shell | bsd-3-clause | 1,278 |
#! /bin/sh
#
# Copyright by The HDF Group.
# Copyright by the Board of Trustees of the University of Illinois.
# All rights reserved.
#
# This file is part of HDF5. The full HDF5 copyright notice, including
# terms governing use, modification, and redistribution, is contained in
# the files COPYING and Copyright.html.... | gnu3ra/SCC15HPCRepast | INSTALLATION/hdf5-1.8.13/c++/examples/testh5c++.sh | Shell | bsd-3-clause | 6,514 |
__fzf_is_git__() {
git rev-parse HEAD > /dev/null 2>&1
}
__fzfcmd_down() {
fzf --height 50% "$@" --border
}
fzf-gitf() {
__fzf_is_git__ || return
git -c color.status=always status --short |
__fzfcmd_down -m --ansi --nth 2..,.. \
--preview '(git diff --color=always -- {-1} | sed 1,4d; cat {-1}) | head -5... | ben-z/dotfiles | nixpkgs/my_prezto/fzf-git.zsh | Shell | mit | 1,952 |
#! /bin/sh
apps_dir=/media/mmcblk0p1/apps
source $apps_dir/stop.sh
cat $apps_dir/led_blinker/led_blinker.bit > /dev/xdevcfg
| fbalakirev/red-pitaya-notes | projects/led_blinker/app/start.sh | Shell | mit | 127 |
#!/bin/bash -e
source "$(dirname "${BASH_SOURCE[0]}")/../../tomcat/attributes/default.bash"
export JENKINS_WORKSPACE_FOLDER='/opt/jenkins'
export JENKINS_USER_NAME="${TOMCAT_USER_NAME}"
export JENKINS_GROUP_NAME="${TOMCAT_GROUP_NAME}" | gdbtek/linux-cookbooks | cookbooks/jenkins/attributes/slave.bash | Shell | mit | 237 |
#!/usr/bin/env bash
git config --global user.name
git config --global user.email
git config --global push.default matching
git config --global credential.helper store
git hub setup --global
| stephengtuggy/subreddit-recommender | script/ubuntu/15.10/setup-git-hub.bash | Shell | mit | 191 |
#!/usr/bin/env sh
# generated from catkin/cmake/templates/env.sh.in
if [ $# -eq 0 ] ; then
/bin/echo "Usage: env.sh COMMANDS"
/bin/echo "Calling env.sh without arguments is not supported anymore. Instead spawn a subshell and source a setup file manually."
exit 1
fi
# source setup.sh from same directory as this ... | cheezium/seniordesign | robot/originaltrackbot/build/devel/env.sh | Shell | mit | 408 |
#!/bin/bash
board=$1
commit_id=$2
. /tmp/dpxdt/venv/bin/activate
cd /tmp/perceptual
# Instantiate variables in our test.yaml
cp test.yaml.in test.yaml
sed -i "s/%board/$board/g" test.yaml
if [ ! -e board_desktop.png ]; then
# Create a baseline
dpxdt update .
fi
# Launch tests and create the next baseline
dpx... | ygravrand/pyconfr2015 | pyconfr2015/ex2/in_perceptual_container.sh | Shell | mit | 697 |
#!/usr/bin/env bash
#
# Copyright (c) 2019-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
export LC_ALL=C.UTF-8
export CONTAINER_NAME=ci_native
export DOCKER_NAME_TAG=ubuntu:20.04
export PACKAGES... | Git-Jiro/Gridcoin-Research | ci/test/00_setup_env_native.sh | Shell | mit | 971 |
#!/bin/sh
#
# Copyright (c) 2007 Johannes Sixt
#
test_description='git update-index on filesystem w/o symlinks test.
This tests that git update-index keeps the symbolic link property
even if a plain file is in the working tree if core.symlinks is false.'
. ./test-lib.sh
test_expect_success \
'preparation' '
git con... | xlymian/git | t/t2102-update-index-symlinks.sh | Shell | gpl-2.0 | 804 |
#!/bin/bash
# Writen by Caio Oliveira aka Caio99BR <caiooliveirafarias0@gmail.com>
echo " | Live Git Patcher"
# Check option of user and transform to script
for _u2t in "${@}"
do
if [[ "${_u2t}" == "-h" || "${_u2t}" == "--help" ]]
then
echo " |"
echo " | Put the link after '. patch.sh'"
echo " | To use th... | nicknitewolf/android_kernel_lge_msm7x27a | patch.sh | Shell | gpl-2.0 | 2,506 |
cd "${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}"
if [[ ${TARGET_MAC_OS_X_VERSION_MAJOR} == "1080" ]]; then
UNIFDEF_OPTIONS="-DJSC_OBJC_API_AVAILABLE_MAC_OS_X_1080";
else
UNIFDEF_OPTIONS="-UJSC_OBJC_API_AVAILABLE_MAC_OS_X_1080";
fi
UNIFDEF_OPTIONS+=" -D__MAC_OS_X_VERSION_MIN_REQUIRED=${TARGET_MAC_OS_X_VE... | lostdj/Jaklin-OpenJFX | modules/web/src/main/native/Source/JavaScriptCore/postprocess-headers.sh | Shell | gpl-2.0 | 648 |
#!/bin/bash
# Make sure warpspeed environment vars are available before proceeding.
if [ -z "$WARPSPEED_ROOT" ] || [ -z "$WARPSPEED_USER" ]; then
echo "Error: It appears that this server was not provisioned with Warpspeed."
echo "WARPSPEED_ROOT and WARPSPEED_USER env vars were not found."
exit 1
fi
# Impo... | WritingPanda/warpspeed | installers/python.sh | Shell | gpl-2.0 | 628 |
date
# Comment out the necessary configuration section below
#CONF=cluster2
#RESPONSE=tcp://chost1:5040
CONF=cluster1
RESPONSE=tcp://host3:5040
#CONF=local2
#RESPONSE=tcp://localhost:5040
# cleanup
#rm /tmp/x-*
#find $HOME/Downloads/sasha/ -name '*' | xargs rm
#
# data file
#
# Comment out the necessary data sec... | burakbayramli/dersblog | work/nflix/sasha/run.sh | Shell | gpl-3.0 | 1,794 |
#!/bin/bash
#
# Upload codacy coverage reports.
#
# Partial uploads for APIs, with an option to finalize.
#
set -e
export JAR=~/codacy-coverage-reporter-assembly.jar
curl -Ls -o $JAR https://github.com/codacy/codacy-coverage-reporter/releases/download/6.0.6/codacy-coverage-reporter-6.0.6-assembly.jar
if [[ ( "$API"... | donald-w/Anki-Android | tools/upload-codacy-report.sh | Shell | gpl-3.0 | 785 |
# bash
if ! python -c 'import numpydoc'; then easy_install --user numpydoc; fi
if ! python -c 'import sphinx'; then easy_install --user sphinx; fi
#sphinx-apidoc -H "API Reference" -M -e -f -o . ../sharedmem
# do not use this because we manually use the doc string of sharedmem.sharedmem
# the from * line in __init__.... | rainwoodman/sharedmem | docs/apidoc.sh | Shell | gpl-3.0 | 323 |
#!/bin/bash
#PBS -l walltime=4:00:00
#PBS -l nodes=1:ppn=2
#PBS -l vmem=32G
#PBS -N Baltic_1_3_5_375_0_0_1_no_no
cd /zhome/fc/e/102910/maritime-vrp/build
LD_LIBRARY_PATH=/zhome/fc/e/102910/gcc/lib64 ./maritime_vrp ../data/old_thesis_data/program_params.json ../data/new/Baltic_1_3_5_375_0_0_1_no_no.json
| OR-Bologna/maritime-vrp | opt/launchers/Baltic_1_3_5_375_0_0_1_no_no.sh | Shell | gpl-3.0 | 304 |
#!/bin/bash
#
# 4shared.com module
# Copyright (c) 2010-2014 Plowshare team
#
# This file is part of Plowshare.
#
# Plowshare is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or... | drewc/plowshare | src/modules/4shared.sh | Shell | gpl-3.0 | 13,612 |
#!/bin/bash
yum install numpy PyOpenGL PyQt4
| orezpraw/unnaturalcode | unnaturalcode/testdata/makehuman/buildscripts/rpm/install_rpm_dependencies.bash | Shell | agpl-3.0 | 48 |
#!/bin/sh
LOCAL_PATH=`dirname $0`
LOCAL_PATH=`cd $LOCAL_PATH && pwd`
if [ -e src/patched.successfully ]; then
exit 0
else
svn co https://sc2.svn.sourceforge.net/svnroot/sc2/trunk/sc2/src && patch -p0 -d src < android.diff && touch src/patched.successfully || exit 1
fi
| rversteegen/commandergenius | project/jni/application/sc2/AndroidPreBuild.sh | Shell | lgpl-2.1 | 273 |
#!/usr/bin/env bash
set -e
ci_dir="$(dirname "$0")"
. "${ci_dir}/ci-common.sh"
git_download deriving
( cd "${CI_BUILD_DIR}/deriving"
make
make tests
make install
)
| Zimmi48/coq | dev/ci/ci-deriving.sh | Shell | lgpl-2.1 | 174 |
source common.sh
# Tests miscellaneous commands.
# Do all commands have help?
#nix-env --help | grep -q install
#nix-store --help | grep -q realise
#nix-instantiate --help | grep -q eval-only
#nix-hash --help | grep -q base32
# Can we ask for the version number?
nix-env --version | grep "$version"
# Usage errors.
n... | edolstra/nix | tests/misc.sh | Shell | lgpl-2.1 | 404 |
#!/bin/bash
#
# GeoWave Common Build Script
#
# This script runs with a volume mount to $WORKSPACE, this ensures that any signal failure will leave all of the files $WORKSPACE editable by the host
trap 'chmod -R 777 $WORKSPACE' EXIT
echo "---------------------------------------------------------------"
echo " ... | Becca42/geowave | deploy/packaging/docker/build-src/build-geowave-common.sh | Shell | apache-2.0 | 2,221 |
#!/bin/bash
# Copyright 2017 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 ... | istio/old_mixer_repo | prow/mixer-coverage.sh | Shell | apache-2.0 | 1,872 |
set -ex
# Allow vagrant passwordless sudo
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/vagrant
| maier/packer-templates | omnios-r151014/scripts/04sudoers.sh | Shell | apache-2.0 | 107 |
#! /bin/sh
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you ... | apache/tomcat-native | native/build/buildcheck.sh | Shell | apache-2.0 | 2,925 |
#!/bin/bash -eux
# Copyright 2016 Google Inc.
#
# 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... | kcc/oss-fuzz | projects/ffmpeg/build.sh | Shell | apache-2.0 | 5,465 |
#!/usr/bin/env bash
# dirs to be created
node_dirs="/etc/indy /var/lib/indy /var/log/indy /home/${USER}/.indy-cli"
# create dirs
for dr in $node_dirs
do
sudo mkdir -p $dr
done
# generate base config if not exists
if [ ! -f /etc/indy/indy_config.py ]; then
echo "NETWORK_NAME = 'sandbox'" | sudo tee -a /etc/in... | TechWritingWhiz/indy-node | scripts/create_dirs.sh | Shell | apache-2.0 | 1,201 |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | Huyuwei/tvm | docker/install/ubuntu_install_nodejs.sh | Shell | apache-2.0 | 1,132 |
#!/usr/bin/env bash
JBOSS_HOME=/home/rmo/BinaryPrograms/wildfly-8.2.0.Final
JBOSS_CLI=$JBOSS_HOME/bin/jboss-cli.sh
JBOSS_MODE=${1:-"domain"}
JBOSS_CONFIG=${2:-"$JBOSS_MODE.xml"}
echo "=> Shutting down WildFly"
if [ "$JBOSS_MODE" = "standalone" ]; then
$JBOSS_CLI -c ":shutdown"
else
$JBOSS_CLI -c "/host=*:shutdown... | RadoslawOsinski/cwsfe_cms | cwsfe_cms_website/env_configuration/wildfly/cluster_ha/stop_cluster.sh | Shell | apache-2.0 | 325 |
#!/usr/bin/env bash
set -e
run_tests() {
golangci-lint run ./...
SKIP_GO_TESTS=1 ./tests.sh
}
run_tests
| sbarzowski/go-jsonnet | travisBuild.sh | Shell | apache-2.0 | 111 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.