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 |
|---|---|---|---|---|---|
check_switch '' C99 -std=gnu99 "Cannot find C99 compatible compiler."
check_switch '' NOUNUSED -Wno-unused-result
add_define MAKEFILE NOUNUSED "$HAVE_NOUNUSED"
check_switch '' NOUNUSED_VARIABLE -Wno-unused-variable
add_define MAKEFILE NOUNUSED_VARIABLE "$HAVE_NOUNUSED_VARIABLE"
# There are still broken 64-bit Linux di... | Scheiker/RetroArch | qb/config.libs.sh | Shell | gpl-3.0 | 14,800 |
pushd $HOME > /dev/null
platform='unknown'
unamestr=`uname`
if [[ ! -d "$HOME/.env" ]]; then
if [[ "$unamestr" == 'Linux' ]]; then
platform='linux'
elif [[ "$unamestr" == 'Darwin' ]]; then
platform='darwin'
fi
if [ ! -n "$ZSH" ]; then
ZSH=~/.oh-my-zsh
fi
echo "Cloning env... | nurv/env | init.sh | Shell | gpl-3.0 | 1,690 |
#!/bin/bash
# We want job control to optionally start Celery in parallel.
set -m
# Remove quotes around a string
sanitize() { echo "$1" | sed "s/^[\"']\?\(.*[^\"']\)[\"']\?$/\1/"; }
# Get environment configuration or use defaults if unavailable.
DB_HOST=$(sanitize "${DB_HOST:-localhost}")
DB_PORT=$(sanitize "${DB_PO... | catmaid/CATMAID | scripts/docker/catmaid-entry.sh | Shell | gpl-3.0 | 13,943 |
java -cp "../../dataAcq/buffer/java/BufferClient.jar:lib/commons-math3-3.4.jar:build/jar/MatrixAlgebra.jar:build/jar/ContinuousClassifier.jar" nl.dcc.buffer_bci.signalprocessing.ContinuousClassifier localhost:1972 res/clsfr_alpha_sigprox.txt 1000 100
| bopjesvla/BCI | java/sigProc/startContClassifier.sh | Shell | gpl-3.0 | 251 |
#!/bin/bash
#
##
# MC GoogleMap, an admin script to render Minecraft map with Pigmap
# Copyright (C) 2011 Kevin "Kawo" Audebrand (kevin.audebrand@gmail.com)
#
# 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 Fre... | kawo/mc_gmap | mc_gmap.sh | Shell | gpl-3.0 | 16,188 |
#!/bin/bash
source ~/bin/common.sh || exit 1
source $CREDSFILE || exit 1
# location of the software repos
REPOS=ssh://bamboo://repositories/dlwo
# branch of the releaser project that should be used
RELEASERBRANCH=default
# file containing projects of which a non-standard changeset should be used. See usage()
BRANCH... | joolz/hutspot | releaseWithBranches.sh | Shell | gpl-3.0 | 1,828 |
#!/bin/bash -f
# Vivado (TM) v2016.4 (64-bit)
#
# Filename : blk_mem_gen_0.sh
# Simulator : Aldec Active-HDL Simulator
# Description : Simulation script for compiling, elaborating and verifying the project source files.
# The script will automatically create the design libraries sub-directories in th... | hsnuonly/PikachuVolleyFPGA | VGA.ip_user_files/sim_scripts/blk_mem_gen_0_3/activehdl/blk_mem_gen_0.sh | Shell | gpl-3.0 | 4,582 |
#!/bin/bash
# Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
# For licensing, see LICENSE.md or http://ckeditor.com/license
# Build CKEditor using the default settings (and build.js).
set -e
echo "CKBuilder - Builds a release version of ckeditor-dev."
echo ""
CKBUILDER_VERSION="2.3.1"
C... | Mediawiki-wysiwyg/WYSIWYG-CKeditor | WYSIWYG/ckeditor_source/dev/builder/build.sh | Shell | gpl-3.0 | 2,611 |
#!/bin/sh
# GNU Guix --- Functional package management for GNU
# Copyright © 2017 sharlatan <sharlatanus@gmail.com>
# Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
# Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
# Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
# Copyright © 2020 Morgan Sm... | lfam/guix | etc/guix-install.sh | Shell | gpl-3.0 | 20,068 |
#!/bin/bash
# Download and automatically enable USB tethering with RaspberryPi
# Download files
wget 'https://raw.githubusercontent.com/zeivhann/piiper/master/extra/auto-usb-tethering'
wget 'https://raw.githubusercontent.com/zeivhann/piiper/master/extra/piip-install'
# Run scripts
bash auto-usb-tethering
bash piip-in... | zeivhann/piiper | extra/piiper-prep.sh | Shell | gpl-3.0 | 546 |
#!/bin/bash
# Export the vocabulary in the graph database
# to Solr (an XML file) and update the index.
###
# TODO use input parameters instead of the defined vars?
NEO4J_DBDIR=/Users/paulboon/Documents/Development/neo4j-community-1.9-SNAPSHOT-EHRI/data/graph.db
EHRI_PATH=/Users/paulboon/Documents/workspace/neo4j-... | lindareijnhoudt/neo4j-ehri-plugin | xslt/export2solr.sh | Shell | gpl-3.0 | 1,750 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=None-Windows
CND_CONF=Release
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=dll
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/pislidesho... | SkyAshman/PiDev | PiSlideshow/nbproject/Package-Release.bash | Shell | gpl-3.0 | 1,477 |
#!/bin/zsh
autoload -U colors
colors
fixmldir=messages/
workdir=`pwd`/results
cd ${workdir}
function highlight () {
echo "$fg_bold[blue]${1}$reset_color"
}
function die () {
echo "$fg_bold[red]${*}$reset_color" 1>&2
smiley 1
exit 1
}
function smiley () {
echo " $fg_bold[blue],---."
ech... | tsdh/ttc14-fixml | generate_code_and_compile.sh | Shell | gpl-3.0 | 2,014 |
#!/bin/bash
set -e
pegasus_lite_version_major="4"
pegasus_lite_version_minor="6"
pegasus_lite_version_patch="0"
. pegasus-lite-common.sh
pegasus_lite_init
# cleanup in case of failures
trap pegasus_lite_exit INT TERM EXIT
echo -e "\n################################ Setting up workdir ###############################... | elainenaomi/sciwonc-dataflow-examples | sbbd2016/experiments/0-import-data/1-import-10files-postgres/dags/elaine.n.watanabe/pegasus/example_workflow/20160424T231148+0000/import_0_ID0000001.sh | Shell | gpl-3.0 | 1,074 |
#!/bin/sh
rm -rf rav1e-master
git clone https://github.com/xiph/rav1e.git rav1e-master
cargo build --release
echo $? > ~/install-exit-status
cd ~
7z x Bosphorus_1920x1080_120fps_420_8bit_YUV_Y4M.7z
cd rav1e-master
cargo build --bin rav1e --release -j $NUM_CPU_PHYSICAL_CORES
echo $? > ~/install-exit-status
cd ~
echo... | phoronix-test-suite/phoronix-test-suite | ob-cache/test-profiles/git/rav1e-1.0.0/install.sh | Shell | gpl-3.0 | 581 |
#!/bin/bash
echo "开始安装"
JAVABAAS_SERVICE="http://file.kerust.com/jbshell_2013.zip"
if [ -z "$JAVABAAS_DIR" ]; then
JAVABAAS_DIR="$HOME/.javabaas"
fi
javabaas_bash_profile="${HOME}/.bash_profile"
javabaas_zhsrc="${HOME}/.zshrc"
javabaas_init_snippet=$( cat << EOF
JBSHELL_DIR="$JAVABAAS_DIR/jbshell/bin"
export JB... | JavaBaas/JavaBaasDoc | doc/jbshell_update.sh | Shell | gpl-3.0 | 3,745 |
#!/bin/bash
set -eu
IFS="
"
for CONFIG in `grep '=' secrets.sh | grep -v '^#'| sed 's/export //g'`; do
heroku config:set $CONFIG
done
| solarkennedy/ether_housed | push-config.sh | Shell | gpl-3.0 | 136 |
#!/bin/bash
. _pick_pythons.sh
XMLLINT=`which xmllint`
#Halt on error
set -e
#Display all executed commands
set -x
"$PYTHON3" idifference.py --xml idifference_test.dfxml ../samples/difference_test_[01].xml
if [ -x "$XMLLINT" ]; then
xmllint --format idifference_test.dfxml >idifference_test_formatted.dfxml
else
... | vicgc/bitcurator | dfxml/python/test_idifference_to_dfxml.sh | Shell | gpl-3.0 | 414 |
#!/bin/bash
# FILE:
# autogen.sh
#
# LICENSE:
# This file is part of pxargs.
#
# pxargs is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ve... | HyperplaneOrg/pxargs | autogen.sh | Shell | gpl-3.0 | 909 |
#!bin/bash
#FRONTIERRA TEST 2
# TO BE RUN FROM THE 'tests' subdirectory
# Just do $ sh test2.sh
#create the execution directory
mkdir test2
cd test2
#copy the data we need to gb0
cp ../../config/tiemut_table.mtx .
cp ../../config/test2_in .
cp -r ../../config/gb0 gb_test2
#generate the input data:
cd gb_test2
../.... | franticspider/frontierra | tests/test2.sh | Shell | gpl-3.0 | 525 |
#!/usr/bin/bash -e
function scale_to_default {
oc scale --replicas=$DEFAULT_NUMBER_OF_PODS dc $WORKER_POD_TO_SCALE
}
set -x
oc whoami
oc project
set +x
#get number of messages in queue prod_ingestion_bayesianPackageFlow_v0 DEV_livenessFlow_v0
NUMBER_OF_MESSAGES=$(./sqs_status.py -q $SQS_QUEUE_FOR_SCALING)
echo... | humaton/fabric8-analytics-worker-scaler | scale.sh | Shell | gpl-3.0 | 776 |
#!/usr/bin/env bash
# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distributio... | MarcLandis/RetroPie-Setup | scriptmodules/supplementary/wifi.sh | Shell | gpl-3.0 | 4,684 |
#!/bin/bash
# Let's Encrypt Installa
# nginx flavor by liara
# Copyright (C) 2017 Swizzin
# Licensed under GNU General Public License v3.0 GPL-3 (in short)
#
# You may copy, distribute and modify the software as long as you track
# changes/dates in source files. Any modifications to our software
# including (via ... | liaralabs/swizzin | scripts/install/letsencrypt.sh | Shell | gpl-3.0 | 5,055 |
#!/bin/bash
# run methyl_index_gene.pl @ 5 and 10 time points using the inputs AllResults from the methlation study along with a matrix of reads alinged to genes.
module load statonperl
perl methyl_index_gene.pl 5 AllResults_v2.tsv siRNA_raw.tsv
perl methyl_index_gene.pl 10 AllResults_v2.tsv siRNA_raw.tsv
| statonlab/athal_smallRNAs | analysis/12_rpkm_siRNAs_genes_lengths/4_index_with_methylation.sh | Shell | gpl-3.0 | 307 |
#!/bin/bash
# vagrant-cookbook
# Copyright (C) 2015 Pelagicore AB
#
# Permission to use, copy, modify, and/or distribute this software for
# any purpose with or without fee is hereby granted, provided that the
# above copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVI... | kursatkobya/vagrant-cookbook | deps/common-api-yocto.sh | Shell | mpl-2.0 | 1,424 |
#!/bin/bash
usage() {
prog=$(basename "$0")
cat<<EOF
This will clone a repo and look for release
candidate branches that will be returned as
a sorted list in json to be
parsed by the dynamic choice jenkins plugin
Usage: $prog
-v add verbosity (set -x)
-n echo what will be... | sudheerchintala/LearnEra-Configuration | util/jenkins/get-rc-branches.sh | Shell | agpl-3.0 | 1,348 |
#!/usr/bin/env bash
#
#
# A simple Nagios command that check some statistics of a JAVA JVM.
#
# It first chech that the process specified by its pid (-p) or its
# service name (-s) (assuming there is a /var/run/<name>.pid file
# holding its pid) is running and is a java process.
# It then call jstat -gc and jstat -gcca... | proptiger-com/check_jstat | check_jstat.sh | Shell | lgpl-2.1 | 5,621 |
!#bin/bash
cd ${0%/*} || exit 1
file29=$(find /tmp -name "*.29")
dirs=$(dirname $file29)
cp Instants $dirs
cd $dirs
gnuplot Instants
| psicofil/residuals_code_aster | Plot_Instants.sh | Shell | lgpl-2.1 | 134 |
#!/usr/bin/env sh
# generated from catkin/cmake/template/setup.sh.in
# Sets various environment variables and sources additional environment hooks.
# It tries it's best to undo changes from a previously sourced setup file before.
# Supported command line options:
# --extend: skips the undoing of changes from a previou... | kuri-kustar/seekur_ground_station_qml | Qt_ROS1/devel/setup.sh | Shell | lgpl-3.0 | 2,392 |
#!/bin/bash
cd "$(dirname "$0")"
java -Xms512m -Xmx1024m -jar StarMade.jar -server | bobbybighoof/genxnova_open | StarMade-dedicated-server-macosx.command | Shell | unlicense | 82 |
if ! type pip3 2>&1 > /dev/null ; then
dfs_error "No pip found..."
return 1
fi
PYTHON3_PACKAGES_LOCAL=(
shellpic
tldr
rtv
pyfiglet
cppman
ranger-fm
mps-youtube
)
PIP3=pip3
for package in ${PYTHON3_PACKAGES_LOCAL[@]} ; do
if ${PIP3} list | grep -i ${package} 2>&1 ;then
continue
fi
${PIP3... | alejandrogallo/dotfiles | init/50_python.sh | Shell | unlicense | 371 |
#!/bin/bash
#
# This script processes the performance data collected by the vscsiStats.py script.
#
# It should be ran from the same directory as the GZIP'ed files (but will not work on the ESXi itself).
#
# By default it generates a file called Processed_vscsiStats.csv. It processes the files in-place, so the individu... | well-heeled-man/https-github.com-sandbox | get_vscsi_stats_processor.sh | Shell | unlicense | 1,082 |
#! /bin/bash
#
# update-gh-pages.sh
# Copyright (C) 2013 drake <drake.guan@gmail.com>
#
# Distributed under terms of the MIT license.
#
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo -e "Starting to update gh-pages\n"
#copy data we're interested in to other place
mkdir $HOME/tmp
cp -R static $HOME/tmp
cp -R... | drakeguan/siggraphwall | update-gh-pages.sh | Shell | unlicense | 973 |
#!/bin/bash
# Cow
apt-get moo
echo "################"
echo "Just for Fun!"
echo "################"
exit 0 | mauriballes/scripts | src/cow.sh | Shell | unlicense | 107 |
#!/bin/bash
set -e
ZKCLI=/usr/share/zookeeper/bin/zkCli.sh
ENDPOINT_NAME=$1
cmds="
rmr /traefik/backends/${ENDPOINT_NAME}
rmr /traefik/frontends/${ENDPOINT_NAME}
create /traefik/alias ''
delete /traefik/alias
"
echo "$cmds" | $ZKCLI
| DistributedSystemsGroup/sysadmin-dsp | scripts/delete_traefik_endpoint.sh | Shell | apache-2.0 | 239 |
cd /data/tclip/meiyou-master/soft/mijiapp/
nohup python identifymijiserver.py > identify.out 2>&1 &
nohup sh monitor_miji.sh > monitor_miji.out 2>&1 &
cd /data/tclip/meiyou-master/soft/image-quality/
nohup python imageQuality.py > imageQuality.out 2>&1 &
nohup sh monitor_quality.sh > monitor_quality.out 2>&1 &
nohup py... | ljbin/meiyou | entrypoint.sh | Shell | apache-2.0 | 963 |
#! /bin/bash
cd `dirname $0`/..
SNIPPETS_DIR=target/doc
rm -rf $SNIPPETS_DIR
mkdir $SNIPPETS_DIR
find src/test/java -type f -exec ./bin/process_file.sh {} \;
#mkdir -p target/classes/main/
#find $SNIPPETS_DIR -type f -exec cat {} \; > target/classes/main/index.md
| w11k/lsql | lsql-doc/bin/extract_snippets.sh | Shell | apache-2.0 | 269 |
#!/usr/bin/env bash
set -eux
BOX_NAME=$1
BOX_SUFFIX=$2
VERSION=$3
ATLAS_URI=https://atlas.hashicorp.com/api/v1/box/${BOX_CUTTER_ATLAS_USERNAME}
callGETService() {
local uri=$1
echo "Calling URI (GET): " ${uri}
curl -X GET "${uri}" --output "${COMM_FILE}" 2> /dev/null > "${COMM_FILE}"
}
COMM_FILE_DIR=$... | pro-vagrant/ubuntu | bin/register_atlas_box_cutter.sh | Shell | apache-2.0 | 5,272 |
#!/bin/bash
# Copyright 2013 Mirantis, 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 appl... | zhaochao/fuel-main | virtualbox/launch.sh | Shell | apache-2.0 | 1,428 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-MacOSX
CND_CONF=Debug
CND_DISTDIR=dist
TMPDIR=build/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/cudatest
OUTPUT_BASENAME=cudatest
PACKAGE_TOP_DIR=cudatest/
#... | petegerhat/cudatest | nbproject/Package-Debug.bash | Shell | apache-2.0 | 1,385 |
#!/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. T... | lincoln-lil/flink | tools/ci/stage.sh | Shell | apache-2.0 | 7,291 |
#!/bin/sh
die () {
printf >&2 "$@"
exit 1
}
usage () {
printf "encryptpasswd.sh - Generate a an encrypted password from the plain-text password given.\n"
printf "Usage: \n"
printf "encryptpasswd [Plain-Text-Password]\n"
printf "Where:\n"
printf "Plain-Text-Password = The password to encrypt in ... | anjalshireesh/gluster-ovirt-poc | backend/manager/conf/ca/encryptpasswd.sh | Shell | apache-2.0 | 943 |
#!/bin/bash
#set -eux
#===================================================================================================
#
# Publish Distribution Package
#
# env
# BINTRAY_USER
# BINTRAY_TOKEN
#
#===================================================================================================
#-----------------... | suwa-sh/swagger-spec-mgr | build/product/publish.sh | Shell | apache-2.0 | 7,206 |
#!/bin/sh
if [[ -z $QUERY_PORT_9411_TCP_ADDR ]]; then
echo "** ERROR: You need to link the query service as query."
exit 1
fi
if [ "$COLLECTOR_PORT_9410_TCP_ADDR" ]; then
export SCRIBE_HOST=$COLLECTOR_PORT_9410_TCP_ADDR
export SCRIBE_PORT=9410
fi
QUERY_ADDR="${QUERY_PORT_9411_TCP_ADDR}:9411"
SERVICE_NAME="zip... | tedyoung/docker-zipkin | web/run.sh | Shell | apache-2.0 | 662 |
#!/bin/bash -e
##########################################################################
### Deployment Script SSP Pact Integration ###
##########################################################################
CURRENT_DIR=`pwd`
### CONFIGURATION #########################################... | evandor/skysail | skysail.product.pact/deployment/scripts/deploy_int.sh | Shell | apache-2.0 | 803 |
#Local reproduction of WiFi access script
curl -H "Content-Type: application/json" -X POST -d '{"wifiAccessPoints": [{"macAddress": "fc:c2:de:32:a4:bf"}]}' -o location.json https://www.googleapis.com/geolocation/v1/geolocate\?key\=AIzaSyBIJxVeb8GOebSNEEC_pjOUKEKaYhPVvus
number="4167990397"
IP=$(ip addr show wlan0... | AroundTheLines/AL | hardware/wifi.sh | Shell | apache-2.0 | 798 |
#!/bin/bash
# vim:sts=4:sw=4
# ============================================================================
# Author - Tom Schumm <phong@phong.org>
# For 16 color terminals, which aren't yet extinct
# ============================================================================
COLOR_CLOCK=$F_DMAGENTA
# My users are g... | fwiffo/bashrc | colorize_16.sh | Shell | apache-2.0 | 3,040 |
#!/bin/bash
###########################################################################
# a2o Essential Puppet Modules #
#-------------------------------------------------------------------------#
# Copyright (c) Bostjan Skufca #
#---... | a2o/puppet-modules-a2o-essential | modules/a2o-essential-linux-tools/templates/install-sdparm.sh | Shell | apache-2.0 | 1,575 |
############ The Clockwork PC Webcasting Script #################
#
# This script is the fruit of many hours of research into FFMPEG.
#
# You will need ffmpeg with x11grab, and a number of libraries that should be installed automatically.
#
# You will need a custom directory ~/Videos/Screencasts or change the output di... | dbellavista/script-stuff | record.sh | Shell | apache-2.0 | 2,169 |
#!/bin/bash -e
source $(dirname $0)/_du-util.sh
name=postgres
docker run \
-d \
--name $name \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
postgres:latest
print_ips $name
| mustardgrain/devops-utils | bin/du-postgresql.sh | Shell | apache-2.0 | 226 |
grep "nor" <<<$var >/dev/null && echo "Found" || echo "Not found"
wc -w <<<$(netstat -i | cut -d" " -f1 | egrep -v "^Kernel|Iface|lo")
mysql <<<'CREATE DATABASE dev' || exit | jansorg/BashSupport | testData/errorFiles/issue_432_herestring.bash | Shell | apache-2.0 | 175 |
#!/bin/sh
ps -ef | grep python3 | grep '/data/stock/web/main.py' | awk '{print$2}' | xargs kill -9
echo "restart web ... " > /data/logs/tornado.log
| pythonstock/stock | jobs/restart_web.sh | Shell | apache-2.0 | 149 |
#!/bin/bash
set -e
unset -v _JAVA_OPTIONS
# Run the Android Emulator with the AVD created in the SDK install script
cd $ANDROID_SDK_ROOT/tools
emulator -avd Nexus_5X_API_27_x86 -no-accel -no-audio -no-window -no-snapshot -netdelay none -netspeed full &
#while [ "`adb shell getprop init.svc.bootanim | tr -d '\r' `" != ... | OpenOverlayRouter/oor | vagrant/run-oor-android-emulator.sh | Shell | apache-2.0 | 388 |
#!/bin/bash
#
# Description
# Add tab completion for berkshelf
#
# Configuration:
# BERKSHELF_BERKSFILE (default is 'Berksfile')
#
# Notes:
# Must be added to your ~/.bashrc, ~/.zshrc, etc
#
# Author:
# Seth Vargo <sethvargo@gmail.com>
#
# License:
# Apache 2.0
#
_bundler() {
which bundle > /dev/null 2>&1 ... | berkshelf/berkshelf-bash-plugin | berkshelf-complete.sh | Shell | apache-2.0 | 1,674 |
#!/bin/bash
#
#/**
# * Copyright 2007 The Apache Software Foundation
# *
# * 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 fil... | trendmicro/HGraph | src/main/scripts/pr/reset-pr-update-flag.sh | Shell | apache-2.0 | 1,168 |
#!/bin/bash -ex
if [ $# -lt 2 ]; then
echo "Usage: $([ -z $BASH_ARGV ] && basename $0 || basename $BASH_ARGV) <image id> <image file path>"
exit 1
fi
source get-api-token.sh
source get-glance-image-service-public-url.sh
curl -i -X PUT $GLANCE_IMAGE_SERV_PUBLIC_URL/v2/images/$1/file \
-H "Content-Type: ... | jinsenglin/openstack | upload-images.sh | Shell | apache-2.0 | 404 |
# ----------------------------------------------------------------------------
#
# Package : Reactivex rxJava
# Version : 2.1.10
# Source repo : https://github.com/ReactiveX/RxJava
# Tested on : ubuntu_16.04
# Script License: Apache License, Version 2 or later
# Maintainer : Meghali Dhoble <dhoblem... | ppc64le/build-scripts | r/rxjava/rxjava_ubuntu_16.04.sh | Shell | apache-2.0 | 1,110 |
#!/bin/bash
#wget https://github.com/Itseez/opencv/archive/3.0.0.tar.gz
#tar xvf 3.0.0.tar.gz
cd opencv-3.0.0
mkdir build
cd build
cmake \
-D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/opt/opencv-3.0.0 \
-D BUILD_SHARED_LIBS=OFF \
-D WITH_TBB=OFF \
-D WITH_CUDA=OFF \
-D WITH_IPP=OFF \
-D WITH_OPENCL=... | zaqwes8811/matlab_ext | img_video/build_opencv_static_min.sh | Shell | apache-2.0 | 598 |
#!/usr/bin/env bash
set -x -e
export HOSTNAME
export KEYCLOAK_VERSION
HOSTNAME=$(hostname)
KEYCLOAK_VERSION=13.0.0
# Latest 12.x version that we have in the POM is not working properly with all of our docker settings. Use this when it does...
#$(mvn -q -Dexec.executable="echo" -Dexec.args='${version.org.keycloak}' --... | apiman/apiman | manager/ui/war/ci/run-e2e.sh | Shell | apache-2.0 | 1,735 |
#!/bin/bash
#
# This abstracts starting up an extended server.
# If invoked with arguments, executes the test directly.
function os::test::extended::focus {
if [[ $# -ne 0 ]]; then
echo "[INFO] Running custom: $@"
tests=$(TEST_REPORT_DIR= TEST_OUTPUT_QUIET=true ${EXTENDEDTEST} --ginkgo.dryRun --ginkgo.noColo... | spinolacastro/origin | test/extended/setup.sh | Shell | apache-2.0 | 8,987 |
#!/bin/bash -eu
# Copyright 2021 The Wuffs 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | google/wuffs | script/print-nia-checksums.sh | Shell | apache-2.0 | 2,310 |
#!/bin/sh
set -e
# SYSTEM OPTIONS (set on Docker build)
RNACENTRAL_HOME=$RNACENTRAL_HOME
# External database settings
DB_HOST=${DB_HOST:-'hh-pgsql-public.ebi.ac.uk'}
DB_NAME=${DB_NAME:-'pfmegrnargs'}
DB_USER=${DB_USER:-'reader'}
DB_PORT=${DB_PORT:-'5432'}
DB_PASSWORD=${DB_PASSWORD:-'NWDMCE5xdipIjRrp'}
# RNAcentral s... | RNAcentral/rnacentral-webcode | entrypoint.sh | Shell | apache-2.0 | 4,762 |
#!/bin/sh -u
HOME_DIR=${SSH_USER_HOME:-/home/${SSH_USERNAME}}
if [ "$PACKER_BUILDER_TYPE" = "vmware-iso" ]; then
echo "==> Installing VMware Tools";
# Install Perl and other software needed by vmware-install.pl
pkg install -y perl5;
pkg install -y compat6x-$(uname -m);
# the install script is ver... | boxcutter/bsd | script/freebsd/vmware.sh | Shell | apache-2.0 | 1,041 |
#!/bin/bash
. /root/scripts/env.sh
/usr/bin/find ${WWW_DIR} -type f -mtime -1 -print | /bin/egrep -v ${EXCLUDED_PATHS} > ${LOG_DIR}/mailbody_$DATE.txt
FILE_LENGHT=`cat ${LOG_DIR}/mailbody_$DATE.txt | wc -l`
if [ ${FILE_LENGHT} -gt "0" ]; then
/bin/cat ${LOG_DIR}/mailbody_$DATE.txt | /usr/bin/mail -s "${SUBJECT}"... | checco/scripts | findlastmodifiedfiles.sh | Shell | apache-2.0 | 349 |
#!/bin/bash
#
# For use by rpm building jenkins jobs. Handles job race conditions and
# reindexing the existing rpm repo
#
set -x
echo '###### Build Variables'
declare -A ARGS
while [ $# -gt 0 ]; do
# Trim the first two chars off of the arg name ex: --foo
case "$1" in
*) NAME="${1:2}"; shift; ARGS[$NA... | ruks/geowave | deploy/packaging/rpm/admin-scripts/jenkins-build-rpm.sh | Shell | apache-2.0 | 3,599 |
git add --all
git commit -m "Automated Push"
git push | socio-coder/simple-services | upload.sh | Shell | apache-2.0 | 53 |
#!/bin/bash
# Tests the OUTCONTAINER crawler mode for 32 containers
# Returns 1 if success, 0 otherwise
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
CRAWLER_CODE=../config_and_metrics_crawler/crawler.py
cat > /tmp/dummy-metadata-file << EOF
{"uuid": "<UUID>", "availability_zone... | ricarkol/agentless-system-crawler | tests/old/test_crawl_kill_parent.sh | Shell | apache-2.0 | 2,544 |
outdirx86quick_build.sh ./pkg-config-0.28
outdirx86quick_build.sh ./autoconf-2.69
outdirx86quick_build.sh ./automake1.11-1.11.6
outdirx86quick_build.sh ./libxml2-2.9.1
outdirx86quick_build.sh ./libevent-2.0.19-stable
outdirx86quick_build.sh ./libffi-3.0.12
outdirx86quick_build.sh ./glib-2.36.4
outdirx86quick... | bayvictor/distributed-polling-system | bin/x86_quick_make_all_toolchains.sh | Shell | apache-2.0 | 843 |
#!/bin/zsh
set -e
if [[ $# -ne 1 ]]; then
echo "usage: test_backup.sh <dir to backup>"
exit 1
fi
: ${TMPDIR:=/tmp}
# unencrypted
SRC_DIR=$argv[1]
RESTORE_DIR=$TMPDIR/bk_restore
BK=(bk --verbose)
RDSO=rdso
export BK_DIR=$TMPDIR/bk
rm -rf $BK_DIR
mkdir $BK_DIR
$BK init
$BK backup test $SRC_DIR
sleep 1 # ma... | mmp/bk | test_backup.sh | Shell | bsd-2-clause | 1,292 |
#!/bin/sh
chsh -s "$(which zsh)"
| hloeffler/init-system | init-zsh.sh | Shell | bsd-2-clause | 33 |
#!/bin/sh -e
# Intended use:
# $ ./flash.sh build/latest/demo/rook/demo
# The openocd.cfg is specific to the STLink/V2 programmer, like the one found
# on the STM32F4DISCOVERY board.
#
# Note that openocd support for this programmer is a little flaky at times, and
# if you need to flash repeatedly, you'll have bette... | cbiffle/m4vgalib-demos | flash.sh | Shell | bsd-2-clause | 571 |
#! /bin/bash -x
GLEV=${1}
RLEV=${2}
NMPI=${3}
ZL=${4}
VGRID=${5}
TOPDIR=${6}
BINNAME=${7}
# System specific
MPIEXEC="mpiexec"
GL=`printf %02d ${GLEV}`
RL=`printf %02d ${RLEV}`
if [ ${NMPI} -ge 10000 ]; then
NP=`printf %05d ${NMPI}`
elif [ ${NMPI} -ge 1000 ]; then
NP=`printf %04d ${NMPI}`
elif [ ${NMPI} -ge 100 ]... | nicamdc-dev/nicamdc | test/framework/benchmark/Mkjobshell.Kmicro.sh | Shell | bsd-2-clause | 2,713 |
#!/usr/bin/env bash
MASON_NAME=android-ndk
MASON_VERSION=x86-9-r10e
MASON_LIB_FILE=
. ${MASON_DIR}/mason.sh
function mason_load_source {
if [ ${MASON_PLATFORM} = 'osx' ]; then
mason_download \
http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin \
dea2dd3939eea3289c... | hydrays/osrm-backend | third_party/mason/scripts/android-ndk/x86-9-r10e/script.sh | Shell | bsd-2-clause | 1,385 |
#!/bin/bash
#
# University of Luxembourg
# Laboratory of Algorithmics, Cryptology and Security (LACS)
#
# FELICS - Fair Evaluation of Lightweight Cryptographic Systems
#
# Copyright (C) 2015 University of Luxembourg
#
# Written in 2015 by Daniel Dinu <dumitru-daniel.dinu@uni.lu>
#
# This file is part of FELICS.
#
# FE... | GaloisInc/hacrypto | src/C/FELICS/stream_ciphers/scripts/constants/cipher/check_cipher.sh | Shell | bsd-3-clause | 1,366 |
#!/bin/bash
function myawk() {
awk 'BEGIN {FS=","} $1 ~ /.*'$1'/ {match($1, ".*@ ([0-9]+)", arr); print arr[1],$2}' \
${DIR}/dist/bench_out/benchDiv_${STAMP}.csv
}
function myawk2() {
awk 'BEGIN {FS=","} $1 ~ /.*'$1'/ {match($1, ".*@ ([0-9]+)", arr); print $2}' \
${DIR}/dist/bench_out/benchDiv_${STAMP}.csv... | maximilianhuber/softwareProjekt | bash/runBenchDiv.sh | Shell | bsd-3-clause | 1,535 |
export npm_config_target=1.6.6
export npm_config_arch=$(node -e 'process.stdout.write(process.arch)')
export npm_config_target_arch=$(node -e 'process.stdout.write(process.arch)')
export npm_config_disturl=https://atom.io/download/electron
export npm_config_runtime=electron
#export npm_config_build_from_source=true
yar... | fulcrumapp/fulcrum-desktop | setup-dev-environment.sh | Shell | bsd-3-clause | 322 |
#!/usr/bin/env bash
# BASH3 Boilerplate
#
# install-ofp.sh
#
# - Build the Open Fortran Parser
#
# Usage: ./install-ofp.sh -i /opt
#
# More info:
#
# - https://github.com/kvz/bash3boilerplate
# - http://kvz.io/blog/2013/02/26/introducing-bash3boilerplate/
#
# Version: 2.0.0
#
# Authors:
#
# - Kevin van Zonneveld (h... | sourceryinstitute/opencoarrays | prerequisites/install-ofp.sh | Shell | bsd-3-clause | 6,924 |
#!/bin/bash
### A wrapper script for aPET: ABS partial-evaluation test case generator.
###
###
# execute envisage_settings.sh to set some environment variables needed by
# costabs, etc.
#
. envisage/envisage_settings.sh
# decide which executable to use
#
if [[ -e ${APETHOME}/bin/apet ]] ; then
PROGRAM=${APETHOM... | abstools/easyinterface | server/bin/envisage/apet/apet.sh | Shell | bsd-3-clause | 1,137 |
#!/bin/sh
echo $(pwd)
python pack/pyinstaller/pyinstaller.py pack/srv_pkg.spec --clean -y
| eavatar/ava-srv | pack/build_srv_pkg.sh | Shell | bsd-3-clause | 92 |
#!/bin/bash
#
# Copyright (c) 2014, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
#
function M... | rtrouton/IT-CPE | code/lib/scripts/launch_daemon_init_installer.sh | Shell | bsd-3-clause | 4,987 |
#!/bin/bash
# Run doxygen
echo 1. Run doxygen on cellmodeller source code...
doxygen cellmodellerDox
# Bring html output to remote gh-pages repo
echo --
echo 2. Bring new doxygen html output to remote gh-page
git add html
git add updateDox.sh
git commit -m "update html on master"
git checkout -b gh-pages origin/gh-pa... | pakpoomton/CellmodellerShadow | updateDox.sh | Shell | bsd-3-clause | 460 |
#!/bin/sh
usage() {
cat >&2 <<HERE
Usage: $0 linux-source-package
HERE
}
quit() {
exit_code=$1
shift
test $# -gt 0 && echo "$*" >&2
test -n "$exit_code" || exit_code=0
exit $exit_code
}
usage_and_quit() {
usage
quit $1
}
# Do not overwrite existing code by mistake
if test -d .... | vencik/alps-ra | set_source.sh | Shell | bsd-3-clause | 1,490 |
#!/bin/sh
RED="\033[0;31m"
YELLOW="\033[0;33m"
GREEN="\033[0;32m"
NO_COL="\033[0m"
print_info(){
printf "${GREEN}$1${NO_COL}"
printf "\n"
}
print_warn(){
printf "${YELLOW}$1${NO_COL}"
printf "\n"
}
print_error(){
printf "${RED}$1${NO_COL}"
printf "\n"
}
main(){
# check arguments
if ... | sudohippie/ansible-playbooks | ubuntu/roles/sudohippie-files/files/crypto/decrypt.sh | Shell | mit | 841 |
#!/bin/bash
name=$1
email=$2
user=$3
password=`cat /dev/urandom | env LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1`
sudo useradd $user -s $(which bash) -m -k /var/www/html/Accounts/Skeleton
echo $user:$password | sudo chpasswd
sudo sed -i "s/username/$user/g" /home/$user/notebooks/Welcome.ipynb
sudo sqlite3 ... | shaunharker/DSGRN | software/Server/Accounts/add_user.sh | Shell | mit | 833 |
#!/bin/bash
# Script Name: AtoMiC Radarr init.d update
echo 'Updating init.d file'
sudo sed -i "s@RUNASUSER=root@RUNASUSER=$UNAME@g" /etc/init.d/$APPINITD || { echo -e $RED'Replacing RUN_AS failed.'$ENDCOLOR ; exit 1; }
sudo sed -i "s@RUNASGROUP=root@RUNASGROUP=$UGROUP@g" /etc/init.d/$APPINITD || { echo -e $RED'Repla... | TommyE123/AtoMiC-ToolKit | radarr/radarr-init-update.sh | Shell | mit | 366 |
#!/bin/bash
# Install nvm for this shell
source ~/.nvm/nvm.sh
# Use version of node.js found in .nvmrc
nvm install
# clean out and install yarn
rm -rf ~/.yarn
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.10.1
export PATH="$HOME/.yarn/bin:$PATH"
# Ensure that we have the local dependencies ins... | reneploetz/angular.js | scripts/jenkins/init-node.sh | Shell | mit | 389 |
is_osx || return 1
COREPREFIX=$(brew --prefix coreutils)
BREWCOREUTILS="$COREPREFIX/libexec/gnubin"
pathprepend "$COREPREFIX/libexec/gnubin"
export MANPATH="$COREPREFIX/libexec/gnuman:$MANPATH"
if [ -f $(brew --prefix)/share/bash-completion/bash_completion ]; then
. $(brew --prefix)/share/bash-completion/bash_com... | scrisenbery/dotfiles | config.d/_shellrc.d/_bashrc.d/10-brewpath.bash | Shell | mit | 433 |
#!/bin/bash
dir=$(dirname $0)
PATH=$dir/../../bin:$PATH
mkdir -p $dir/tmp/
cat $dir/values.0 |
value_iteration $dir/state_trans > $dir/tmp/values.1
cat $dir/tmp/values.1 |
value_iteration $dir/state_trans > $dir/tmp/values.2
cat $dir/tmp/values.2 |
value_iteration $dir/state_trans > $dir/tmp/values.3
cat $d... | ryuichiueda/DP_TOOL2 | samples/simple_tile/execute.bash | Shell | mit | 514 |
#!/bin/bash
CLEAN_PROJECT="true"
USE_OLD="false"
OS="DEBIAN"
OS_VERSION="7.0"
PREFIX=""
if [[ $OS == "UBUNTU" ]]; then
PREFIX="sudo"
fi
WHOAMI_ROOT=$($PREFIX id -u);
if [ $WHOAMI_ROOT -ne 0 ]; then
echo "Are you running this script under root?"
exit 0;
fi
$PREFIX cp my.leveldb.Makefile src/lev... | bitcrystal/bitcrystal_v20_last_branch_new | bitcrystal.all.linux.make.sh | Shell | mit | 2,574 |
#!/usr/bin/env php
<?php
/**
* Dump a Drupal 7 database into a Drupal 7 PHP script to test the upgrade
* process.
*
* Run this script at the root of an existing Drupal 7 installation.
*
* The output of this script is a PHP script that can be run inside Drupal 7
* and recreates the Drupal 7 database as dumped. T... | wesruv/wesandkatie.com | docroot/core/scripts/dump-database-d7.sh | Shell | mit | 2,591 |
#/bin/bash
gst-launch-1.0 v4l2src num-buffers=1 ! jpegenc ! filesink location=capture1.jpeg | wwright2/dcim3-angstrom1 | sources/meta-methode/recipes-support/snapshot/snapshot/snap.sh | Shell | mit | 92 |
set -e
sudo docker build -t packager .
sudo docker stop packager
sudo docker rm packager
sudo docker run -d -e VIRTUAL_HOST=packager.rnplay.org -v /home/app/rails/rnplay/play_js:/js --name packager packager
| vincentfretin/react-native-packager-docker | rebuild.sh | Shell | mit | 207 |
#!/bin/env bash
# TODO: use coproc for buffering logs
usage() {
cat >&2 << EOF
Usage: ${0##*/} [OPTIONS] CMD...
Run commands in background
OPTIONS:
-d, --debug
-v, --verbose
-q, --quiet
-l, --log log command output
-m, --mail mail result
-o, --output mail cmd output
-s, --si... | dgengtek/scripts | tools/run.sh | Shell | mit | 4,854 |
#
# WP-CLI
#
# Install WP-CLI
installWPCLI() {
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
}
| MickeyKay/.dotfiles | micktastic/wp-cli/functions.zsh | Shell | mit | 195 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2016-2017 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distribu... | fasterthanlime/tup-fuseless | test/t2201-change-flags.sh | Shell | gpl-2.0 | 1,069 |
#!/bin/sh
#
# Copyright (C) 2009-2011 OpenWrt.org
#
AR71XX_BOARD_NAME=
AR71XX_MODEL=
ar71xx_get_mtd_offset_size_format() {
local mtd="$1"
local offset="$2"
local size="$3"
local format="$4"
local dev
dev=$(find_mtd_part $mtd)
[ -z "$dev" ] && return
dd if=$dev bs=1 skip=$offset count=$size 2>/dev/null | hex... | 981213/openwrt | target/linux/ar71xx/base-files/lib/ar71xx.sh | Shell | gpl-2.0 | 23,129 |
#!/bin/sh
outputfile=$1
shift
echo '/* ** This file is autogenerated. Do not edit. ** */' > "$outputfile"
echo '' >> "$outputfile"
echo 'const char *test_unit_names[] = {' >> "$outputfile"
for test_source_file in "$@"; do
echo " \"$(echo "$test_source_file" | sed 's/.*\(test-[a-z0-9\-]\+\)\.c/\1/')\"," >> "$outpu... | GNOME/mutter | src/tests/clutter/interactive/meson/gen-test-unit-names.sh | Shell | gpl-2.0 | 360 |
#!/bin/bash
SCRIPT_NAME=`basename $0`
if [ -z "$ANDROID_ROOT" ]; then
echo "$SCRIPT_NAME: Please set the \$ANDROID_ROOT envvar!"
exit 1
elif [ ! -d "$ANDROID_ROOT" ]; then
echo "$SCRIPT_NAME: \$ANDROID_ROOT does not reference a directory!"
exit 1
fi
if [ -z "$ANDROID_PRODUCT" ]; then
echo "$SCRIPT_NAM... | DmitryADP/diff_qc750 | 3rdparty/trustedlogic/sdk/tegra3/tf_sdk/examples/example_sst/build/arm_android/build.sh | Shell | gpl-2.0 | 1,602 |
#!/bin/bash
mydir=$(dirname "$BASH_SOURCE")
source "$mydir/constants.sh"
source "$mydir/functions_remoteControl.sh"
# Create a local directory for the power monitoring
source "$mydir/functions_powerMonitor.sh"
setupPowerMonitor
# Upload the files needed for running the driver.
echo "Uploading script files..." >&2
i... | jcmcclurg/serverpower | experiments/scripts/ua_vs_sparksql_powercap/experiment_started.sh | Shell | gpl-2.0 | 1,869 |
#!/bin/bash
#this is only for testing!
set -e
LANG=C gcc -shared -o statusengine.o -fPIC -Wall -Werror statusengine.c -luuid -levent -lgearman -ljson-c
/etc/init.d/nagios restart
tail -f -n 25 /opt/nagios/var/nagios.log
| nook24/statusengine | statusengine/src/build.sh | Shell | gpl-2.0 | 223 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.