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 |
|---|---|---|---|---|---|
#!/usr/bin/env bash
# Copyright 2016 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | BradErz/kops | vendor/github.com/google/cadvisor/build/integration.sh | Shell | apache-2.0 | 1,810 |
#!/bin/sh
# Example for use of GNU gettext.
# This file is in the public domain.
#
# Source code of the POSIX sh program.
. gettext.sh
TEXTDOMAIN=hello-sh
export TEXTDOMAIN
TEXTDOMAINDIR='@localedir@'
export TEXTDOMAINDIR
gettext "Hello, world!"; echo
pid=$$
eval_gettext "This program is running as process number \... | FabianKnapp/nexmon | utilities/gettext/gettext-tools/examples/hello-sh/hello.sh | Shell | gpl-3.0 | 333 |
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Test for DSCP prioritization and rewrite. Packets ingress $swp1 with a DSCP
# tag and are prioritized according to the map at $swp1. They egress $swp2 and
# the DSCP value is updated to match the map at that interface. The updated DSCP
# tag is verified at $h2.
#
# ICMP... | tprrt/linux-stable | tools/testing/selftests/drivers/net/mlxsw/qos_dscp_bridge.sh | Shell | gpl-2.0 | 4,325 |
source ./test-functions.sh
install_service
echo 'RUN_ARGS="--server.port=8081 --server.servlet.context-path=/test"' > /test-service/spring-boot-app.conf
start_service
await_app http://127.0.0.1:8081/test/
curl -s http://127.0.0.1:8081/test/
| isopov/spring-boot | spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/resources/scripts/launch-with-multiple-run-args.sh | Shell | apache-2.0 | 241 |
#!/bin/bash
positionalTblCheck 2> /dev/null || [[ "$?" == 255 ]]
| guowei-he/bioconda-recipes | recipes/ucsc-positionaltblcheck/run_test.sh | Shell | mit | 65 |
#!/bin/sh
#
# Copyright (c) 2009 Erick Mattos
#
test_description='git commit --reset-author'
. ./test-lib.sh
author_header () {
git cat-file commit "$1" |
sed -n -e '/^$/q' -e '/^author /p'
}
message_body () {
git cat-file commit "$1" |
sed -e '1,/^$/d'
}
test_expect_success '-C option copies authorship and me... | TextusData/Mover | thirdparty/git-1.7.11.3/t/t7509-commit.sh | Shell | gpl-3.0 | 5,188 |
#!/bin/bash
SOANUM=$(cat $1 | grep SOA | head -1 | cut -f 3 -d ' ')
logger -t odsmmsync "named reload script: copy $1 and reloading $2"
cp $1 /var/named/hosts/masters/$2-hosts
cp $1 /var/opendnssec/unsigned/$2
cp $1 /var/opendnssec/unsigned/$2.axfr
rm $1
sleep 5
rndc reload $2
sleep 5
# sending notify to all secondar... | menandmice/mnm-opendnssec | reloadscript.sh | Shell | isc | 528 |
#!/bin/sh
cat LICENSE || exit 1
cat auto-warn.txt || exit 1
cat <<EOF
with POSIX.Errno;
use type POSIX.Errno.Errno_Integer_t;
--# inherit POSIX.Errno;
package POSIX.Error is
--
-- Error message type.
--
subtype Message_Index_t is Positive range 1 .. 256;
subtype Message_t is String (Message_Index_t... | io7m/coreland-posix-ada | posix-error.ads.sh | Shell | isc | 1,349 |
#!/usr/bin/env bash
# Base16 Seti UI - Gnome Terminal color scheme install script
#
[[ -z "$PROFILE_NAME" ]] && PROFILE_NAME="Base 16 Seti UI 256"
[[ -z "$PROFILE_SLUG" ]] && PROFILE_SLUG="base-16-seti-ui-256"
[[ -z "$DCONF" ]] && DCONF=dconf
[[ -z "$UUIDGEN" ]] && UUIDGEN=uuidgen
dset() {
local key="$1"; shift
... | dcelasun/dotfiles | config/base16-gnome-terminal/color-scripts/base16-seti-ui-256.sh | Shell | mit | 4,126 |
#!/bin/bash
chsh -s /bin/zsh
| bss/dotfiles | zsh/install.sh | Shell | mit | 29 |
Colour_default="\033[0m"
Colour_lighter="\033[1m"
Colour_darker="\033[2m"
Colour_underline="\033[4m"
Colour_blink="\033[5m"
Colour_reverse="\033[7m"
Colour_cancel_half_intensity="\033[22m"
Colour_cancel_underline="\033[24m"
Colour_cancel_blink="\033[25m"
Colour_cancel_reverse="\033[27m"
Colour_text_black="\033[30m"
... | St-Voland/ERI | testing/test_common.sh | Shell | mit | 2,406 |
#!/bin/bash
convert \
aaron.png \
ammonihah.png \
amulon.png \
angola.png \
ani-anti.png \
antionum.png \
antiparah.png \
antum.png \
boaz.png \
bountiful.png \
cave_of_gadianton.png \
cavity_of_a_rock.png \
cumeni.png \
desolation.png \
east_desert_cave.png \
east_lamanite_camp.png \
gideon.png \
gid.png \
helam.png ... | dcripplinger/rotj | data/images/place_names/make_tileset.sh | Shell | mit | 1,123 |
#!/usr/bin/env bash
export DEVICE=cpu
./run --training data/training.txt \
--test data/validation.txt \
--save-weights c2w2c.h5 \
--load-weights c2w2c.h5 \
--mode c2w2c \
-w 21 \
--gen-text 20
| milankinen/c2w2c | run_c2w2c.sh | Shell | mit | 231 |
#!/bin/bash
# Nmap method is far more recommended than ping method
#nmap -sP 128.178.121.80-86
nmap -sP 128.178.121.0/24 # will scan all the network
| Lyptik/bash-snippets | network/scan-network-nmap.sh | Shell | mit | 151 |
echo -ne "\033[6n" # ask the terminal for the position
read -s -d\[ garbage # discard the first part of the response
read -s -d R foo # store the position in bash variable 'foo'
echo -n "Current position: "
echo "$foo" # print the position
| bteixeira/nodeshell | getcursor.sh | Shell | mit | 291 |
# Setup fzf
# ---------
if [[ ! "$PATH" == */usr/local/opt/fzf/bin* ]]; then
export PATH="$PATH:/usr/local/opt/fzf/bin"
fi
# Man path
# --------
if [[ ! "$MANPATH" == */usr/local/opt/fzf/man* && -d "/usr/local/opt/fzf/man" ]]; then
export MANPATH="$MANPATH:/usr/local/opt/fzf/man"
fi
# Auto-completion
# ----------... | akmassey/zsh | .zsh/fzf.zsh | Shell | mit | 2,362 |
#!/bin/bash
## variables
CICADA_COLLECTOR=cicada-collector
CICADA_WEB=cicada-web
SCRIPTS_DIR=./scripts
function local_build() {
## package
mvn clean package -Dmaven.test.skip=true
BUILD_OUTPUT=./build
# cicada-collector
if [ ! -d $BUILD_OUTPUT/$CICADA_COLLECTOR ]
then
mkdir -p $BUIL... | Yirendai/cicada | build.sh | Shell | mit | 1,205 |
#!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... | stepanhruda/PostgreSQL-Swift | OS X development/Pods/Target Support Files/Pods/Pods-frameworks.sh | Shell | mit | 3,600 |
#!/usr/bin/env bash
set -e
RPMB_NAME="${1}"
shift
if [[ ! $LOCAL_USER_ID -eq 0 ]] ; then
USER_ID=${LOCAL_USER_ID:-9001}
else
USER_ID=9001
fi
useradd -s /bin/bash -u $USER_ID -m -d /home/rpmbuilder -m rpmbuilder 2>/dev/null
cp -r /etc/skel/. /home/rpmbuilder/
echo "rpmbuilder ALL=(root) NOPASSWD:ALL" > /etc/... | simtechdev/smtk-dkrpm | SOURCES/rpmbuilder6/entrypoint.sh | Shell | mit | 852 |
# Rudimentary TAP output helper
#
# Copyright 2013 National ICT Australia (NICTA), Olivier Mehani
#
# This software may be used and distributed solely under the terms of
# the MIT license (License). You should find a copy of the License in
# COPYING or at http://opensource.org/licenses/MIT. By downloading or
# using t... | lees0414/EUproject | test/system/tap_helper.sh | Shell | mit | 1,916 |
#!/bin/sh
RED='\033[0;31m'
NC='\033[m'
package_path="package_path"
install() {
printf "Installing package...\n"
printf "Specify an install location: [~] "
read path
if [ -z "$path" ]; then
path=$HOME;
fi
if [ ! -d "$path" ]; then
printf "Invalid install location. ${RED}ABORT${NC}\n"
exit 1
fi
if [ -f... | SteveNeithardt/vimconfig | install.sh | Shell | mit | 2,094 |
export GK_PROJECT_GO_DIRS=( \
"lib:${GK_PROJECT_DIR}/lib/ghaki/bool" \
"spec:${GK_PROJECT_DIR}/spec/ghaki/bool" \
)
| ghaki/ghaki-bool | setup.bash | Shell | mit | 122 |
#!/bin/sh
# author: Laurent Malvert <laurent.malvert@gmail.com>
#
# A simple script to bootstrap the Jenkins server with the appropriate setup,
# meaning it will point to the correct JENKINS_HOME folder and use the appropriate
# environment and JVM properties.
#
# This is only useful when bootstrapping a server outside... | laurent-malvert/software-factory | jenkins/jenkins-server/start-jenkins-server.sh | Shell | mit | 975 |
#!/bin/bash
grass -c ~/gdb/solar/$(date +%Y%m%d) --exec make --directory=~/spatial-cimis/g.cimis/etc/ -f solar.mk solar $1
| ucd-cws/spatial-cimis | processor/bin/cimis-solar-cron.sh | Shell | mit | 123 |
browserify typescript-gen.js -o 'Generate Typescript Definitions.jsfl'
browserify haxe-gen.js -o 'Generate Haxe Definitions.jsfl'
| ThaNarie/AutoListing | tools/build/tasks/createjs-def/jsfl/build.sh | Shell | mit | 130 |
#! /bin/bash
# Build SRPM and submit new build to copr.
#
# References:
# - https://developer.fedoraproject.org/deployment/copr/copr-cli.html
# - http://copr-rest-api.readthedocs.io/en/latest/Resources/build.html#submit-new-build
#
set -ex
curdir=${0%/*}
topdir=${curdir}/../
srpmdir=${topdir}/dist
copr_project=ssato/... | ssato/python-anyconfig | pkg/copr-build.sh | Shell | mit | 498 |
#!/bin/bash -e -o pipefail
# This script adds permissions, which are required for some installed tools to work properly, to the TCC.db
source ~/utils/utils.sh
# /Library/Application\ Support/com.apple.TCC/TCC.db
systemValuesArray=(
"'kTCCServiceAccessibility','/usr/local/opt/runner/runprovisioner.sh',1,2,0,1,NUL... | mattgwagner/New-Machine | .github-actions/images/macos/provision/configuration/configure-tccdb-macos11.sh | Shell | mit | 4,999 |
#!/usr/bin/env bash
python -m easy_install --upgrade pip
pip install -e . --upgrade --no-cache-dir --progress-bar off
seleniumbase install chromedriver
seleniumbase install geckodriver
| mdmintz/SeleniumBase | install.sh | Shell | mit | 185 |
#!/bin/bash
VERSION=$1
if [[ $VERSION ]]; then
VERSION=:$VERSION
fi
docker run -ti -d -e 'ONOS_APPS=openflow,proxyarp' --name onos onosproject/onos$VERSION
| snlab-freedom/sdntest | test/start_onos.sh | Shell | mit | 160 |
#!/bin/sh
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
set -e
ROOTDIR=dist
BUNDLE="${ROOTDIR}/Dash-Qt.app"
CODESIGN=codesign
TEMPDIR=sign.temp
TEMPLIST=${TEMPDIR}/signature... | crowning-/dash | contrib/macdeploy/detached-sig-create.sh | Shell | mit | 1,522 |
conda create -n picasso_pip_test python=3.8 -y
conda activate picasso_pip_test
pip install "picassosr"
picasso
conda deactivate
| jungmannlab/picasso | distribution/pypi/install_pypi_wheel.sh | Shell | mit | 128 |
#!/bin/sh
# scp -i ~/documentos/dutoViz/dutoviz.pem * ubuntu@ec2-23-22-159-101.compute-1.amazonaws.com:/var/www/albumsExplorer
# rsync -avz -e "ssh -i /Users/aguerra/documentos/dutoViz/dutoVizNew.pem" . ubuntu@ec2-23-22-159-101.compute-1.amazonaws.com:/var/www/albumsExplorer
rsync -avz -e "ssh -i /Users/aguerra/docume... | john-guerra/wholikesmyfb | update.sh | Shell | mit | 399 |
#!/bin/sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
#
# Prompts
#
NODE_SERVER_PORT='' # SET THIS!
if [[ -z "$NODE_SERVER_PORT" ]]; then
echo 'Please set NODE_SERVER_PORT in install.sh, then remove this check'
end
MYSQL_ROOT_PASSWORD=''
echo 'Please enter the MySQL root user password'
read -e MYSQL_R... | pxpeterxu/react-express-scaffolding | sysadmin/install.sh | Shell | mit | 1,634 |
#!/usr/bin/env bash
composer install
php app/console doctrine:database:drop --force
php app/console doctrine:database:create
php app/console doctrine:migrations:migrate --no-interaction
php app/console doctrine:fixtures:load --no-interaction
bundle install
npm install --save bower gulp uglify-js uglifycss
npm install... | bureaublauwgeel/helder-cms | shell-tools/reload_project.sh | Shell | mit | 494 |
# Fzf - A command-line fuzzy finder written in Go - https://github.com/junegunn/fzf#using-homebrew-or-linuxbrew
xsource /usr/share/doc/fzf/examples/key-bindings.zsh
xsource /usr/share/doc/fzf/examples/completion.zsh
xsource ~/.fzf.zsh
export FZF_DEFAULT_OPTS="--height 90% --reverse --inline-info --cycle \
--color... | joech4n/zsh-dotfiles | zsh/zprezto-contrib/joech4n-fzf/init.zsh | Shell | mit | 1,924 |
# swift-2.2-RELEASE
SWIFT_SHA="1bcdeb24f79ab9d4d49a6cdb6b8a4ced13e1fd8b"
LLVM_SHA="846c513aa92287885a45db6458c3923ca09afa2a"
CLANG_SHA="4ff54b6814458813f7ae9cb1740048c39f661719"
LLDB_SHA="e5fe9b87343fc2dd5463b2bea2df01972aabe4f0"
CMARK_SHA="5af77f3c1d7f34f252a897094936ac4d162adf4b"
TESTS_SHA="c497103941f49a7ad834d0e68d... | cellularmitosis/swift-build-scripts | arm/shas-swift-2.2-RELEASE.bash | Shell | mit | 596 |
#!/bin/sh
./clean.sh
mkdir es5
mkdir es5/lib
mkdir es5/transpiler
mkdir es5/transpiler/core
mkdir es5/polyfills
mkdir es5/jshint_globals
node --harmony build.js
echo ""
./test.sh
| LarsMq73/Greenfield | src/client/node_modules/es6-loader/node_modules/es6-transpiler/build/build.sh | Shell | mit | 200 |
#!/usr/bin/env bash
[ "$ULNOIOT_ACTIVE" = "yes" ] || { echo "ulnoiot not active, aborting." 1>&2;exit 1; }
source "$ULNOIOT_VPYTHON/bin/activate"
# make sure to run in right environment and use correct python
sudo $(which python) run.py
| ulno/ulnoiot | examples/integriot/artificial-window/integriot/run.sh | Shell | mit | 240 |
#!/bin/sh
#
# zsh
#
#
echo "installing zsh files..."
if [ ! -d "$HOME"/.oh-my-zsh ]; then
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
fi
| ffmichel/dotfiles | zsh/install.sh | Shell | mit | 165 |
#!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... | kzaher/RxFirebase | Example/Pods/Target Support Files/Pods-RxFirebase_Example/Pods-RxFirebase_Example-frameworks.sh | Shell | mit | 4,113 |
#!/bin/bash
# an example running create_data.py and run_flake.py
# create a signal injection JSON file
injdata=$'{
\"datafile\": \"inj.txt\",
\"starttime\": 0.0,
\"timestep\": 0.0208333,
\"duration\": 240,
\"backgroundoffset\": 3.0,
\"noise\": 0.52,
\"sinusoids\": [{\"amplitude\": 4.3,
... | BayesFlare/Flake | python/example.sh | Shell | mit | 1,292 |
#!/bin/bash
R=0;
for file in $(find . -name 'Cargo.toml'); do
( echo "Building $file" && cd "$(dirname $file)" && cargo build );
R=$?;
if [[ $R != 0 ]]; then
exit $R;
fi;
done
| bfops/playform | buildall.sh | Shell | mit | 189 |
#!/bin/sh
# Cache npm deps
if [ ! -e /home/ubuntu/nvm/versions/node/v7.10.0/lib/node_modules/chimp/bin/chimp.js ]; then npm install -g chimp; fi
if [ ! -e /home/ubuntu/nvm/versions/node/v7.10.0/lib/node_modules/spacejam/bin/spacejam ]; then npm install -g spacejam; fi
npm install
| liitfr/shiftstats | .testing/cache_npm_dependencies.sh | Shell | mit | 281 |
#!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... | wyz5120/VMovie | VMovie/Pods/Target Support Files/Pods/Pods-frameworks.sh | Shell | mit | 4,618 |
#!/bin/bash --
set -euo pipefail
PROJECT=$1
BRANCH=$2
SOURCE_AMI=$3
VPC=$4
SUBNET=$5
SECURITY_GROUP=$6
USE_PRIVATE_IP=${7:-"false"}
export GOARCH=amd64
export GOOS=linux
bash run_tests.sh
go install -v ./...
gometalinter ./... --disable gocyclo --disable dupl --disable gas --deadline 30s
packer ... | twitchscience/spade_edge | build.sh | Shell | mit | 970 |
#!/bin/bash
rm -f ./_FIRST_RUN.flag
export PATH="${CONDA}/bin:${PATH}"
curl \
-sL \
-o ${HOME}/miniforge.sh \
https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
/bin/bash ${HOME}/miniforge.sh -b -p ${CONDA}
conda config --set always_yes yes --set changeps1 no
c... | microsoft/LightGBM | docs/build-docs.sh | Shell | mit | 561 |
echo Executing ramboot to upload my_etrobo_ram.bin...
../nxtOSEK/ecrobot/../bin/ramboot.exe ./my_etrobo_ram.bin
| SavantCat/ETRobo_training | ramboot.sh | Shell | mit | 113 |
git pull --recurse-submodules=on && git submodule update --remote
| Toeger/ARPGT1server | update.sh | Shell | mit | 66 |
alias UI.Color.IsAvailable='[[ "${TERM}" == *"xterm"* ]] && [ -t 1 ]'
if UI.Color.IsAvailable
then
alias UI.Color.Default="echo \$'\033[0m'"
alias UI.Color.Black="echo \$'\033[0;30m'"
alias UI.Color.Red="echo \$'\033[0;31m'"
alias UI.Color.Green="echo \$'\033[0;32m'"
alias UI.Color.Yellow="echo \$'... | mikelane/bash-oo-framework | lib/system/01_ui.sh | Shell | mit | 4,097 |
# grc overides for ls
# Made possible through contributions from generous benefactors like
# `brew install coreutils`
if $(gls &>/dev/null)
then
alias ls="gls -FG"
alias l="gls -lahG"
alias ll="gls -lG"
alias la='gls -aG'
fi
| jjt/dotfiles-holman | system/aliases.zsh | Shell | mit | 237 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2015:1243
#
# Security announcement date: 2015-07-17 08:19:23 UTC
# Script generation date: 2017-01-19 21:26:27 UTC
#
# Operating System: Red Hat 7
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - java-1.6.0-sun.i686:1.6.0.101-1jpp.1.el... | Cyberwatch/cbw-security-fixes | Red_Hat_7/x86_64/2015/RHSA-2015:1243.sh | Shell | mit | 2,157 |
export LEIN_FAST_TRAMPOLINE=true
| nberger/dotfiles | clojure/env.zsh | Shell | mit | 33 |
#!/bin/bash
set -e
# Clone the repo for the first time.
if [[ ! -d $WORKDIR || ! -d $WORKDIR/.git ]]; then
mkdir -p $WORKDIR
git clone -b $BRANCH $REPO $WORKDIR
fi
cd $WORKDIR
# Fix permissions.
sudo chown -R $USER:$USER ./
# Clean up the repository.
git reset --hard && git clean -f -d
# Switch to master and upd... | pressly/imgry | scripts/docker-pull.sh | Shell | mit | 681 |
#!/usr/bin/env nix-shell
#!nix-shell -I nixpkgs=../../../ -i bash -p wget yarn2nix
set -euo pipefail
if [ "$#" -ne 1 ] || [[ "$1" == -* ]]; then
echo "Regenerates the Yarn dependency lock files for the matrix-appservice-discord package."
echo "Usage: $0 <git release tag>"
exit 1
fi
SRC_REPO="https://raw.github... | NixOS/nixpkgs | pkgs/servers/matrix-appservice-discord/generate.sh | Shell | mit | 530 |
#!/bin/sh
#
# MatIO
source ./helper.sh $*
module load hdf5/1.8.13-$TOOLCHAIN
BUILD_TAG=1.5.2-$TOOLCHAIN
SF=http://downloads.sourceforge.net/project
stage_dl_ac $SF/matio/matio/1.5.2/matio-1.5.2.tar.gz \
--with-zlib=$PREFIX \
--with-hdf5=$PREFIX \
--prefix=$PREFIX/matio-$BUILD_TAG
| cornell-cs5220-f15/totient-pkg | configs/matio.sh | Shell | mit | 290 |
git config --global user.name "$1"
git config --global user.email $2 | adiachenko/xenial | .scripts/git.sh | Shell | mit | 68 |
#!/usr/bin/env bash
project=$1
prop=$2
project_dir=$3
if [ "$prop" = "" ];
then
prop="version"
fi
if [ "$project_dir" = "" ];
then
project_dir="dist"
fi
dir=$(pwd)
wdir=$dir/$project_dir/$project
cd $wdir
echo $(node -p "require('./package.json').$prop")
cd $dir
| PillowPillow/ng2-webstorage | bin/package_info.sh | Shell | mit | 270 |
#!/bin/bash
function print_help()
{
echo ""
echo "This is a skeleton installation script. The skeleton itself \
should be specified by the parameters. First parameter is action, second \
is it's argument."
echo ""
echo "Possible skeletons:"
echo "1. lua"
echo "2. c/exec"
echo "3. c/shared-library"
echo "4. c++... | povilasb/skeleton | install.sh | Shell | mit | 470 |
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Info:
# Miroslav Vidovic
# yes_no.sh
# 02.09.2016.-08:44:19
# -----------------------------------------------------------------------------
# Description:
# Example of yes/no user input.
# Usage:
# Can be used ... | miroslavvidovic/bash-scripts | Yes_no_input/yes_no.sh | Shell | mit | 979 |
## Zsh comletions ##
autoload -U compinit && compinit
zmodload -i zsh/complist
# man zshcontrib
zstyle ':vcs_info:*' actionformats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
zstyle ':vcs_info:*' formats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f '
zstyle ':vcs_info:*' enable git
# Enable completio... | janesmae/dotfiles | zsh/completion.zsh | Shell | mit | 2,295 |
#!/bin/sh
if [ $# -gt 0 ]; then
FILE="$1"
shift
if [ -f "$FILE" ]; then
INFO="$(head -n 1 "$FILE")"
fi
else
echo "Usage: $0 <filename>"
exit 1
fi
if [ -e "$(which git)" ]; then
# clean 'stank' status of touched files that haven't been modified
git diff >/dev/null 2>/dev/null
... | OBAViJEST/rain | share/genbuild.sh | Shell | mit | 793 |
#!/bin/sh
ROOT_DIR=$1
#ln -sfv $ROOT_DIR/VERSION $ROOT_DIR/stag
ln -sfv $ROOT_DIR/VERSION $ROOT_DIR/prod
| miyaizu/generator-template-react-web | generators/app/templates/scripts/link/default/misc.sh | Shell | mit | 108 |
#!/bin/bash
add-apt-repository ppa:noobslab/macbuntu
apt-get install macbuntu-os-icons-lts-v7
apt-get install macbuntu-os-ithemes-lts-v7
apt-get install plank macbuntu-os-plank-theme-lts-v7 macbuntu-os-bscreen-lts-v7
| kitsoGideon/.dotfiles | env_setup/macBuntu.sh | Shell | mit | 220 |
#!/bin/bash
DAYS="20140620 20140621 20140622 20140623"
HOURS="1340 1430 1520 1750"
WEEKS="22 23 24"
ZSNAP_BIN="/opt/zfsnap/bin/zfsnap"
BEG_SNAPSHOT_COUNT=23
function build_test {
zfs create rpool/test
for day in $DAYS
do
zfs snapshot rpool/test@${day}
for hour in $HOURS
do
zfs snapshot rpool/... | jarosser06/go-zsnap | scripts/test.sh | Shell | mit | 573 |
#!/bin/bash
export TERM=xterm
./node_modules/.bin/mocha --harmony-async-await './src/**/*.spec.js'
| zappen999/dompen | scripts/test.sh | Shell | mit | 99 |
#!/usr/bin/env bash
apt-get update;
##########Installing mc##########
apt-get install -y mc;
apt-get install -y git;
#preparation for php5.6
apt-get install -y php5;
apt-get install -y php5-mcrypt;
apt-get install -y php5-mysql;
apt-get install -y php5-curl;
apt-get install -y php5-gd;
apt-get install -y php5-mysqln... | webdev477/wp-custom | vagrantSetup.sh | Shell | mit | 1,327 |
#!/usr/bin/env bash
set -e
export CLOUDIFY_UI_TAR_GZ="cloudify-ui-${CFY_VERSION}-${CFY_PRERELEASE}-b${CFY_BUILD_NUMBER}.tgz"
export CLOUDIFY_COMPOSER_TAR_GZ="blueprintcomposer-${CFY_VERSION}.tgz"
export CLOUDIFY_COMPOSER_UNSTABLE_URL="https://s3.amazonaws.com/cloudify-ui/`PROJECT_NAME=cloudify-blueprint-composer ge... | guy-mograbi-at-gigaspaces/cloudify-ui-build-helper | get_artifacts_files.sh | Shell | mit | 370 |
#!/bin/bash
fpathRnd='idx-all-relpath-rnd.csv'
numRND=5
##sep=','
sep='|'
##fout='test-csv-v1.csv'
fout='test-csv-v2.csv'
:>$fout
###################################
thdr="path${sep}label"
for ii in `seq 1 ${numRND}`
do
thdr="${thdr}${sep}val_${ii}"
done
thdr="${thdr}${sep}label_long"
echo "${thdr}" | tee -a ${... | SummaLabs/DLS | data-test/dataset-image2d/simple4c_test/run04-generate-test-relpath-csv-with-randnums.sh | Shell | mit | 721 |
#/bin/bash
# Release script for wekan-ondra and wekan-gantt-gpl
# part 2. Before these, part 1 and merge and fix merge conflicts.
# 1) Check that there is only one parameter
# of Wekan version number:
if [ $# -ne 1 ]
then
echo "Syntax with Wekan version number:"
echo " ./release-ondra-2.sh 5.10"
ex... | wekan/wekan | releases/release-ondra-2.sh | Shell | mit | 529 |
#!/usr/bin/env bash
cargo install --force --path ./src/clang
cargo install --force --path ./src/cmake
cargo install --force --path ./src/ld
| DiamondLovesYou/pnacl-clang-driver | install-all.sh | Shell | mit | 141 |
#!/bin/bash
gcc main.c -lm
./a.out
python3.4 graphic.py
| uriybashkirov/CHALLENGE-ACCEPTED | Laba3/C/script.sh | Shell | mit | 57 |
#!/bin/bash
# Run like that:
# sudo ./gitcreateinitcopyandcommit.sh "<YOUR-COMMIT-COMMENT-HERE>"
if [ $# -eq 0 ]
then
echo "Usage: sudo ./gitcreateinitcopyandcommit.sh \"<YOUR-COMMIT-COMMENT-HERE>\""
else
mkdir /home/pi/git;
cd /home/pi/git;
rm -rf hestia-openhab;
mkdir hestia-openhab;
cd ... | HestiaPi/hestia-openhab | gitcreateinitcopyandcommit.sh | Shell | epl-1.0 | 605 |
#!/bin/bash
# Based on script by ryin (https://gist.github.com/ryin)
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.1
LIBEVENT_VERSION=2.0.22
NCU... | amattwithers/configs | tmux/tmux_local_install.sh | Shell | gpl-2.0 | 1,843 |
#!/usr/bin/env bash
set -e
npm install
npm run gulp build
| inc2734/habakiri | .bin/build.sh | Shell | gpl-2.0 | 60 |
#!/bin/bash
#
# Run select tests by setting ONLY, or as arguments to the script.
# Skip specific tests by setting EXCEPT.
#
set -e
ONLY=${ONLY:-"$*"}
ALWAYS_EXCEPT="$SANITY_SCRUB_EXCEPT"
[ "$SLOW" = "no" ] && EXCEPT_SLOW=""
# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!
LUSTRE=${LUSTRE:-$(... | tweag/lustre | lustre/tests/sanity-scrub.sh | Shell | gpl-2.0 | 31,024 |
#!/bin/sh
#
# Copyright (c) 2008-2009, 2010, 2011 Advanced Micro Devices, Inc.
#
# Purpose:
# Set variables describing driver components
# Input :
# $1 specifies the directory where files from the common and X specific
# directories where merged prior to calling of this script
# ATI_* the ATI_... | Scorpio92/linux_kernel_3.18.5 | drv/component_config.sh | Shell | gpl-2.0 | 7,816 |
convert images/OCS-231-A.png -crop 1481x309+0+0 +repage images/OCS-231-A-0.png
convert -append images/OCS-230-B-7.png images/OCS-231-A-0.png images/OCS-230-B-7.png
rm images/OCS-231-A-0.png
convert images/OCS-231-A.png -crop 1481x619+0+312 +repage images/OCS-231-A-1.png
convert images/OCS-231-A.png -crop 1481x147+0+954... | jonnymwalker/Staroslavjanskij-Slovar | scripts/findindents.OCS-231.sh | Shell | gpl-2.0 | 1,968 |
#!/bin/bash
if [[ $# != 1 ]] ; then
echo "use: ./renameMusicByTags.sh <file>"
exit 1
fi
if [[ $1 != *.mp3 ]] ; then
echo "input file must have mp3 extension"
exit 1
fi
if ! [[ -f $1 ]] ; then
echo "$1 not found"
exit 1
fi
ARTIST="unknown"
ALBUM="unknown"
SONG="unknown"
# Check tags
if [[ $(mp3info -p %a... | fblupi/RenameMusicByTags | shell/renameMusicByTags.sh | Shell | gpl-2.0 | 1,119 |
#!/bin/bash
ZIPS_DIR=/var/lib/jclic_browser/zips/
TMP_DIR=/tmp/jclic
rm -f errors
touch errors
_error() {
echo "ERROR: $@" 1>&2
echo "$@" >> errors
}
_log() {
echo "$@" 1>&2
}
info_zip() {
if [ $# != 2 ]; then
_log "ERROR se necesita el nombre del zip"
return
fi
_log " Extrayendo $(basename $1) ..."... | mariodebian/jclic-browser | downloader/mostrar-infos.sh | Shell | gpl-2.0 | 2,830 |
#!/bin/bash
sudo mount -t usbfs -o uid=0,gid=plugdev stub_usbfs /proc/bus/usb/
sudo mount -t debugfs stub_debugfs /sys/kernel/debug/
sudo modprobe usbmon
| EdMcBane/rtxdriver | misc/init_kernel.sh | Shell | gpl-2.0 | 156 |
#!/usr/bin/env bash
echo "The following header files need to be included in MOC_SRCS part of respecting CMakeLists.txt files:"
for header in $(find kadu-core modules -name "*\.h" -not -regex ".*libiris.*"); do
if [ $(grep -c "Q_OBJECT" ${header}) -ge 1 ]; then
if [[ "$header" = "modules/"* ]]; then
dir=$(echo $... | vogel/kadu | scripts/find-missing-moc_srcs.sh | Shell | gpl-2.0 | 655 |
#! /bin/sh
# This script is based on projects below
# https://github.com/yixia/FFmpeg-Android
# http://git.videolan.org/?p=vlc-ports/android.git;a=summary
#--------------------
echo "===================="
echo "[*] check env"
echo "===================="
set -e
if [ -z "$ANDROID_NDK" -o -z "$ANDROID_SDK" ]; then
... | RyanTech/ijkplayer | android/compile-ffmpeg.sh | Shell | gpl-2.0 | 17,606 |
#!/bin/bash
for test in $(find tests -type f -name "*.py"); do
python "$test"
done
| ask/roleplay | devel/runtest.sh | Shell | gpl-2.0 | 87 |
export KALDI_ROOT=`pwd`/../../..
export PATH=$PWD/utils/:$KALDI_ROOT/tools/openfst/bin:$PWD:$PATH
[ ! -f $KALDI_ROOT/tools/config/common_path.sh ] && echo >&2 "The standard file $KALDI_ROOT/tools/config/common_path.sh is not present -> Exit!" && exit 1
. $KALDI_ROOT/tools/config/common_path.sh
export LC_ALL=C
# For no... | michellemorales/OpenMM | kaldi/egs/mini_librispeech/s5/path.sh | Shell | gpl-2.0 | 403 |
###############################################################################
# UNIT TEST A1c FOR kocos.pl
###############################################################################
# Test A1c - Checks if the program finds correct 3rd order
# co-occurrences when co-occurrence graph is a tree
... | BjoernKW/TextNSP | Testing/kocos/unit/testA1c.sh | Shell | gpl-2.0 | 1,926 |
#!/bin/bash
#Copyright 2014@Santosh Dwivedi, All Rights Reserved.
#The code contained herein is licensed under the GNU General Public
#License. You may obtain a copy of the GNU General Public License
#Version 2 or later at the following locations:
# http://www.opensource.org/licenses/gpl-license.html
# http://www.gnu.... | sanscreative/DecodeCpuRegisterBits | analyzebits.sh | Shell | gpl-2.0 | 3,299 |
#!/bin/sh
## @file
# VirtualBox Test Execution Service Init Script.
#
#
# Copyright (C) 2006-2015 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of th... | miguelinux/vbox | src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh | Shell | gpl-2.0 | 3,739 |
#!/bin/bash
#
# This module attempts to properly deal with thermal behavior on PowerPC
# based Mac systems, by installing the model-appropriate (when hostonly)
# or all (when not) fan control/thermal kernel modules and loading them
# in a hook.
#
# While this is not strictly necessary for all kernels, particularly
# mo... | yuwata/dracut | modules.d/90ppcmac/module-setup.sh | Shell | gpl-2.0 | 2,902 |
#!/bin/sh
source env_jdk10.sh
# should use Marlin within open jdk 10:
MARLIN_JAR_PREFIX=
# Marlin tuning options:
# ThreadLocal (TL) or ConcurrentLinkedQueue (CLQ) storage for renderer contexts:
USE_TL=true
# PixelSize (2048)
SIZE=2048
# larger pixelsize best for images ~ 8192x8192
#SIZE=8192
# Reference type among... | bourgesl/mapbench | bin/env_marlin_jdk10.sh | Shell | gpl-2.0 | 2,165 |
sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/ipaugenblick ./test_client_udp.bin -c 2 -n 1 --proc-type secondary -- --ip2connect 192.168.150.62 --ip2bind 192.168.150.63 --port2bind 7777 --port2connect 7777
| vadimsu/ipaugenblick | stack_and_service/service/test_client/run_udp.sh | Shell | gpl-2.0 | 207 |
#!/bin/sh
## Usage
# sh der2Analysis.sh run1-v0.0.28
# Directories
MAINDIR=/dcl01/lieber/ajaffe/derRuns/derfinderExample
WDIR=${MAINDIR}/derAnalysis
DATADIR=${MAINDIR}/derCoverageInfo
# Define variables
SHORT='der2A-Ex'
PREFIX=$1
CORES=2
# Construct shell files
for chrnum in 22 21 Y 20 19 18 17 16 15 14 13 12 11 10... | lcolladotor/derfinderExample | derAnalysis/der2Analysis.sh | Shell | gpl-2.0 | 1,073 |
#!/bin/bash
LANG=$1
if [[ $LANG == "" ]]; then
for PO in ../../po/stellarium-landscapes-descriptions/*.po
do
pofilename=$(basename -- $PO)
for i in ../../landscapes/*/description.en.utf8
do
po4a-translate -k 75 -f xhtml -m $i -M utf-8 -p $PO -l ${i%.*.*}.${pofilename%.*}.ut... | Stellarium/stellarium | util/landscapes/translate.sh | Shell | gpl-2.0 | 554 |
#!/bin/bash
set -e
completion() {
echo "package_hash_centos.sh has completed for idol "${IDOL_NAME} | tee -a ${LOG_OUT};
echo "Bats Tests Generated: "$(grep -c "@test" ${OUTPUT_BATS});
exit 0;
}
generate_package_hash() {
rm -f /tmp/package_hash.txt && touch /tmp/package_hash.txt;
rpm -qa >> /tmp/pac... | kaizoku0506/idol | bin/package_hash_centos.sh | Shell | gpl-2.0 | 1,934 |
#!/usr/bin/env bash
# NOTE: You can comment out yum updates to speed up things while testing.
#echo "Updating packages: "
#yum update -y
echo "Installing git, plus a few more packages: "
yum install git nano -y
echo "Downloading ChefDK: "
cd /vagrant
wget -nv -nc https://opscode-omnibus-packages.s3.amazonaws.com/el... | sonykus/vagrant-chef-mongodb | bootstrap_chefdev.sh | Shell | gpl-2.0 | 3,112 |
# Plowshare uptobox.com module
# Copyright (c) 2012-2017 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
# (... | mcrapet/plowshare-modules-legacy | uptobox.sh | Shell | gpl-3.0 | 11,421 |
echo "pull file" $1
adb pull /sdcard/Android/data/com.foobnix.pdf.reader/cache/Book/$1 /home/ivan-dev/Downloads/$1
echo /home/ivan-dev/Downloads/$1 | foobnix/LirbiReader | Builder/pull-file.sh | Shell | gpl-3.0 | 149 |
#!/bin/bash
read -p "Please enter the way to execute the quick_search(0_serial,1_openmp,2_mpi,3_profile):" quick_search_way
# execute matlab script to parse the data(pre_treatment)
runPreGSEAbyMatlab.sh
#runparaPreGSEAbyMatlab.sh
#quick_search
case "$quick_search_way" in
0)quick_search_serial -i ../data/data_for_te... | ysycloud/paraGSEA | example/quick_search_demo.sh | Shell | gpl-3.0 | 827 |
#!/bin/bash -x
### Set the admin password of Drupal.
source /host/settings.sh
admin_pass=${1:-$ADMIN_PASS}
drush @qtr user-password admin --password="$admin_pass"
| Q-Translate/qtr_server | ds/scripts/set-adminpass.sh | Shell | gpl-3.0 | 164 |
#!/bin/bash
##//////////////////////////////////////////////////////////
##
## Copyright 2008 © Henri Shustak GNU GPL v3
## Lucid Information Systems
## http://lucidsystems.org
##
########################################
##
## What this script is going to do :
##
## This script is going set the domain based up... | henri/printer-setup | ExampleFiles/Deployment/PrinterSetup_OSX_DYNAMIC/PrinterSetup_Dynamic_Configuration_Installer-template/scripts/domain_configuration.bash | Shell | gpl-3.0 | 14,976 |
#!/bin/bash
# Send keystrokes to android device
# Optional Params - keycodes. If none supplied prenet a menu.
# Optional environ param ANDROID_DEVICE set to hostname or ip address
# of already connected device
#KEYCODE_UNKNOWN=0
#KEYCODE_SOFT_LEFT=1
#KEYCODE_SOFT_RIGHT=2
KEYCODE_HOME=3
KEYCODE_BACK=4
#KEYCODE_CALL=... | bennettpeter/mythscripts | install/opt/mythtv/bin/adb-sendkey.sh | Shell | gpl-3.0 | 7,785 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.