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/sh
# ensure that chmod diagnoses a certain type of invalid mode string
# Copyright (C) 2005-2013 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 ve... | mmayer/coreutils | tests/chmod/octal.sh | Shell | gpl-3.0 | 1,098 |
#!/bin/bash
##
## BlogEngine.NET Mono Setup Script
##
## This script will prepare a Mono installation of BlogEngine.NET. See the
## ReadMe.txt file in the same directory for instructions on how to use it and
## what it does.
##
## Usage:
## ./mono_setup.sh [group_name]
##
## Step 1 - Create the symlink
echo "Creati... | royosherove/dotnetmocks2demo | blogengine_7761d88db905/BlogEngine/BlogEngine.NET/setup/Mono/mono_setup.sh | Shell | lgpl-3.0 | 954 |
#!/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"); you... | mbukatov/bigtop | bigtop-packages/src/common/whirr/install_whirr.sh | Shell | apache-2.0 | 3,485 |
#!/bin/bash
if [[ $# -ne 1 ]] ; then
echo "Usage is: drop-mysql.sh [DROP]"
echo " - for example: ./drop-mysql.sh DROP"
exit 1
fi
if [[ "$1" == "DROP" ]]
then
echo "* Dropping kylo database..."
mysql -u root -e 'drop database kylo;'
fi
| rashidaligee/kylo | install/setup/sql/mysql/drop-mysql.sh | Shell | apache-2.0 | 263 |
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
STARTTIME=$(date +%s)
OS_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${OS_ROOT}/hack/common.sh"
source "${OS_ROOT}/hack/util.sh"
source "${OS_ROOT}/hack/text.sh"
os::log::install_errexit
# Go to the top of the tree.
cd "${OS_ROOT}"
os::build::setup_env
expo... | yepengxj/df_st_origin1 | hack/test-integration.sh | Shell | apache-2.0 | 3,608 |
#!/bin/bash
# Copyright (c) 2012 Michael Berlin, Zuse Institute Berlin
# Licensed under the BSD License, see LICENSE file for details.
set -e
trap onexit 1 2 3 15 ERR
function onexit() {
local exit_status=${1:-$?}
echo ERROR: Exiting $0 with $exit_status
exit $exit_status
}
replication_dir_in_babudb_tr... | kleingeist/xtreemfs | contrib/server-repl-plugin/update_BabuDB_replication_plugin_jar.sh | Shell | bsd-3-clause | 1,850 |
#!/bin/sh
MAKE_JOBS=12
[ -z "${PREFIX}" ] && PREFIX=/usr
case "$1" in
-h)
echo "Usage: sys/build.sh [/usr]"
exit 0
;;
'')
:
;;
*)
PREFIX="$1"
;;
esac
[ ! "${PREFIX}" = /usr ] && \
CFGARG="${CFGARG} --with-rpath"
MAKE=make
gmake --help >/dev/null 2>&1
[ $? = 0 ] && MAKE=gmake
# find root
cd `dirname $PWD/$0... | hoangcuongflp/radare2 | sys/build.sh | Shell | gpl-3.0 | 1,674 |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# If a command fails then do not proceed and fail this script too.
set -e
# Go to project root
cd "$(dirname "$0")"
cd ... | mastizada/focus-android | tools/l10n/import-strings.sh | Shell | mpl-2.0 | 958 |
#! /usr/bin/env atf-sh
. $(atf_get_srcdir)/test_environment.sh
tests_init \
messages
messages_body() {
cat > test.ucl << EOF
name: "test"
origin: "test"
version: "5.20_3"
arch: "*"
maintainer: "none"
prefix: "/usr/local"
www: "unknown"
comment: "need one"
desc: "also need one"
message: [
{ message: "Always print"... | skoef/pkg | tests/frontend/messages.sh | Shell | bsd-2-clause | 2,737 |
#!/bin/bash
#
# Copyright 2019 The Abseil 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 ... | endlessm/chromium-browser | third_party/abseil-cpp/CMake/install_test_project/test.sh | Shell | bsd-3-clause | 3,704 |
#!/bin/bash
# Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | thinkerou/grpc | tools/run_tests/performance/run_worker_go.sh | Shell | apache-2.0 | 690 |
#!/bin/bash
# Copyright 2014 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | dmirubtsov/k8s-executor | vendor/k8s.io/kubernetes/cluster/saltbase/salt/kube-master-addons/kube-master-addons.sh | Shell | apache-2.0 | 2,872 |
# This file is sourced by the genscripts.sh script.
# These are shell variables that are used later by either genscripts
# or on of the scripts that it sources.
# The name of the scripttempl script to use. In this case, genscripts
# uses scripttempl/tic80coff.sc
#
SCRIPT_NAME=tic80coff
# The name of the emultempl sc... | shaotuanchen/sunflower_exp | tools/source/binutils-2.16.1/ld/emulparams/tic80coff.sh | Shell | bsd-3-clause | 1,669 |
#!/bin/bash
#
# Run process inside valgrind's memcheck.
#
exec valgrind \
--tool=memcheck \
--verbose \
--trace-children=yes \
--leak-check=full \
--log-file=$AVOCADO_TEST_LOGDIR/valgrind.log.$$ -- "$@"
| adereis/avocado | examples/wrappers/valgrind.sh | Shell | gpl-2.0 | 224 |
#!/usr/bin/env bash
[ -n "$CROSS" ] || {
echo "The variable CROSS must be set to point to the cross-compiler prefix"
exit 1
}
MODULE="$1"
[ "$#" -ne 1 ] && {
echo "Usage: $0 <module>"
exit 1
}
ARGS=
if [ -n "$KEEP_SYMBOLS" ]; then
ARGS="-X --strip-debug"
else
ARGS="-x -G __this_module --strip-unneeded"
fi
if ... | ollie27/openwrt_OLD | scripts/strip-kmod.sh | Shell | gpl-2.0 | 892 |
#!/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"... | dalaro/incubator-tinkerpop | gremlin-driver/src/main/bin/config-eval.sh | Shell | apache-2.0 | 1,472 |
#!/bin/bash
mkdir -p "$PREFIX/bin"
export MACHTYPE=x86_64
export BINDIR=$(pwd)/bin
mkdir -p "$BINDIR"
(cd kent/src/lib && make)
(cd kent/src/htslib && make)
(cd kent/src/jkOwnLib && make)
(cd kent/src/hg/lib && make)
(cd kent/src/utils/faToTwoBit && make)
cp bin/faToTwoBit "$PREFIX/bin"
chmod +x "$PREFIX/bin/faToTwoBit... | joachimwolff/bioconda-recipes | recipes/ucsc-fatotwobit/build.sh | Shell | mit | 322 |
#!/bin/sh
set -e
OUTPUTDIR="6db-less"
mkdir "$OUTPUTDIR"
for i in *.wav; do
cp -vi "$i" "${OUTPUTDIR}/${i}"
normalize-audio -g -6db "${OUTPUTDIR}/${i}"
done
for i in *.ogg; do
oggdec "$i" -o "${OUTPUTDIR}/${i%%.ogg}.wav"
normalize-audio -g -6db "${OUTPUTDIR}/${i%%.ogg}.wav"
oggenc "${OUTPUTDIR}... | simonvonau/piTux | restarted_v1/release_2017_10_15_windows/piTux/data/sounds/normalize.sh | Shell | gpl-3.0 | 388 |
#!/bin/bash
#
# Kernel-version-dependent shell functions for the rest of the scripts.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any... | mericon/Xp_Kernel_LGH850 | virt/tools/testing/selftests/rcutorture/configs/rcu/v0.0/ver_functions.sh | Shell | gpl-2.0 | 1,215 |
#!/bin/bash -e
changelog=node_modules/.bin/changelog
update_version() {
echo "$(node -p "p=require('./${1}');p.version='${2}';JSON.stringify(p,null,2)")" > $1
echo "Updated ${1} version to ${2}"
}
current_version=$(node -p "require('./package').version")
printf "Next version (current is $current_version)? "
rea... | tmbtech/react-router | scripts/release.sh | Shell | mit | 865 |
#!/bin/sh
# gc_orphan_section_test.sh -- test --gc-sections
# Copyright (C) 2010-2014 Free Software Foundation, Inc.
# Written by Sriraman Tallam <tmsriram@google.com>.
# This file is part of gold.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public ... | jlspyaozhongkai/Uter | third_party_backup/binutils-2.25/gold/testsuite/gc_orphan_section_test.sh | Shell | gpl-3.0 | 1,477 |
#!/bin/bash
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | lvlv/kubernetes | cluster/mesos/docker/config-default.sh | Shell | apache-2.0 | 1,292 |
#!/bin/sh
# TODO: FIXME: Get rid of this and hook it into Dojo's general build script
# You must have mtasc to run this
mtasc -trace DojoExternalInterface.trace -main -cp .. -swf TestFlash.swf -version 8 -header 215:138:10 TestFlash.as | avz-cmf/zaboy-middleware | www/js/dojox/flash/tests/buildFlashTest.sh | Shell | gpl-3.0 | 235 |
#!/bin/sh
test_description='performance of tag-following with many tags
This tests a fairly pathological case, so rather than rely on a real-world
case, we will construct our own repository. The situation is roughly as
follows.
The parent repository has a large number of tags which are disconnected from
the rest of ... | devzero2000/git-core | t/perf/p5550-fetch-tags.sh | Shell | gpl-2.0 | 2,221 |
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Kselftest framework requirement - SKIP code is 4.
ksft_skip=4
msg="skip all tests:"
if [ $UID != 0 ]; then
echo $msg please run this as root >&2
exit $ksft_skip
fi
GREEN='\033[0;92m'
RED='\033[0;31m'
NC='\033[0m' # No Color
modprobe rc-loopback
for i in /sys/class... | Linutronix/linux | tools/testing/selftests/bpf/test_lirc_mode2.sh | Shell | gpl-2.0 | 736 |
#!/bin/bash
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | mdshuai/service-catalog | vendor/k8s.io/kubernetes/hack/list-feature-tests.sh | Shell | apache-2.0 | 842 |
# Copyright (C) 2017-2020 The Project X-Ray Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
# Example pre-req
# ./runme.sh
# XRAY_ROIV=roi_inv.v XRAY_FIXED_XDC=out_xc7a35tcpg236-... | SymbiFlow/prjxray | minitests/roi_harness/fasm2bit.sh | Shell | isc | 1,136 |
#!/bin/sh
os=`uname`
case $os in
Darwin)
echo "Running on OS X"
url="https://www3.hhu.de/stups/downloads/prob/tcltk/nightly/ProB.mac_os.10.11.4.x86_64.tar.gz"
;;
Linux)
echo "Running on Linux"
wordsize=`uname -m`
if [ $wordsize = "x86_64" ]
then
echo "64 bit"
url="https://www3... | bivab/pytest-prob | bin/prepare_testing.sh | Shell | isc | 761 |
which youtube-dl 2>/dev/null 1>/dev/null
if [ "$?" = "0" ]; then
ytget () {
if [ -z "$(echo $1 | sed -ne /youtube/p)" ]; then
url="http://www.youtube.com/watch?v=$1"
else
url=$1
fi
youtube-dl -t $url
}
fi
| kisom/dotconf-ng | profile.d/youtube-dl.sh | Shell | isc | 271 |
{#CloneRepo}
cd /opt
git clone https://github.com/Project-OSRM/osrm-backend.git
{#}
{#Compile}
cd /opt/osrm-backend/
mkdir -p build; cd build; cmake ..; make
{#}
{#Recompile}
cd /opt/osrm-backend/build
make
{#}
{#ClearBuild}
cd /opt/osrm-backend/build
rm -f *.a
rm -rf c*
rm -r... | Saabre/setup-gen-core | data/template/script/SetupBackend.sh | Shell | mit | 684 |
#!/bin/sh
# Mail at end/on suspension
#$ -m es
#$ -S /bin/sh
#$ -cwd
#$ -V
#$ -q all.q
CHR="chr21"
RES="1k"
MIN="10k"
MAX="100k"
NORM="SQRTVC"
MARGIN=0
EXP=${NORM}
k=5
ELIMINATE="GATC"
f_norm="L1"
version="v0.61"
PROG_DIR="/work2/yt/QLoop-dev"
DATA_DIR="/data/yt/GM12878_combined/1kb_resolution_intrachromosomal/${CH... | yk-tanigawa/QLoop-dev | old/pred.sh | Shell | mit | 992 |
# Prompt
setopt prompt_subst
# History
setopt hist_verify
setopt share_history
setopt extended_history
setopt append_history
setopt inc_append_history
setopt hist_ignore_dups
setopt hist_reduce_blanks
| calebd/mac | Dotfiles/zsh/setopt.zsh | Shell | mit | 202 |
#!/usr/bin/env zsh
for pipecmd in "lesspipe" "lesspipe.sh" ; do
which $pipecmd 2>&1 >/dev/null && eval "$(SHELL=/bin/sh $pipecmd)"
export LESS_ADVANCED_PREPROCESSOR=1
done
| tomku/dotfiles | zsh/lesspipe.zsh | Shell | mit | 183 |
#!/bin/bash
# Thanks to: http://sfviapgh.com/blog/2016/2/18/how-to-deploy-rails-with-aws-codedeploy
. /home/ubuntu/outages.secret
cd /var/www/autism-funding.com/html
sudo chmod 750 bin/*
logs="log/production.log log/puma-production.stdout.log log/puma-production.stderr.log"
touch $logs
sudo chown :www-data $logs
sudo ... | weenhanceit/autism-funding | scripts/AfterInstall.sh | Shell | mit | 545 |
#!/bin/bash
# Config
PROJECT_NAME=gopython3
USER=futurecolors
CODENAME=precise
PGSQL_VERSION=9.3
PROJECT_DIR=/home/vagrant/$PROJECT_NAME
# Update package list
apt-get update -y
apt-get install -y python-software-properties
add-apt-repository -y ppa:fkrull/deadsnakes # python
add-apt-repository -y ppa:chris-lea/nod... | futurecolors/gopython3 | etc/install/bootstrap.sh | Shell | mit | 1,559 |
#!/bin/bash
app="ffmpeg.sh"
bin=$(which ffmpeg)
# uncomment debug will only print the ffmpeg command to be execute, but not run it really.
#debug="yes"
usage_convert()
{
printf "%s\n" \
"Usage $app convert [opt] <in_file>" \
" convert media (video+audio+muxing) from A (encodecs + muxing) to B (encodecs + muxing... | iceway/shelltools | ffmpeg.sh | Shell | mit | 6,962 |
OS_ISO=$1
if [ "$2" == "-debug" ]; then
echo "Run GDB to debug system:"
echo " target remote localhost:1234"
qemu-system-i386 -nographic -s -S -boot d -cdrom $OS_ISO -m 1024
else
qemu-system-i386 -nographic -boot d -cdrom $OS_ISO -m 2048
fi
| s0lder/os | util/boot.sh | Shell | mit | 258 |
exit 0;
| newzly/testswarm | scripts/run_tests.sh | Shell | mit | 9 |
#!/bin/sh
set -e
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
case "${TARGETED_DEVICE_FAMILY}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
1)
... | csnu17/Firebase-iOS-Authentication-Demo | Pods/Target Support Files/Pods-firebase authentication/Pods-firebase authentication-resources.sh | Shell | mit | 5,499 |
#!/system/bin/sh
ARCH_LIST=('aarch64' 'arm')
HOST_ARCH=$(uname -m)
if [ $HOST_ARCH == "aarch64" ]
then
ARCH="aarch64"
elif [[ ${HOST_ARCH} =~ .*(arm).* ]]
then
ARCH="arm"
fi
echo "修改termux源"
echo \
"# The tuna termux repository:
deb [arch=all,${ARCH}] http://mirrors.tuna.tsinghua.edu.cn/termux/ stable main \
" ... | zfuns/funs.ml | file/source.sh | Shell | mit | 387 |
#!/bin/bash
CHAPTER_SECTION=2
INSTALL_NAME=preparing-virtual-kernel
echo ""
echo "### -----------------------------"
echo "### PREPARING VIRTUAL KERNEL ###"
echo "### CHAPTER 6.$CHAPTER_SECTION ###"
echo "### Preparing Virtual Kernel File Systems"
echo "### Must be run as \"root\" user"
echo "### -------... | Rocla/lfs-7.8 | 6.2-root_preparing-virtual-kernel.sh | Shell | mit | 2,115 |
#!/bin/sh
BASEDIR=`dirname $0`
. ${BASEDIR}/00_README.sh
cat << NOTICE
*********** ${0##*/} NOTICE **********
Python周りの環境を整えます.
************************************************
NOTICE
echo -n "Continue? [Press Any Key or Ctrl+c to Cancel]: "
read YN
START=`date +%s`
LOGGING "(${0##*/}) python-allをインストールします…"
APTITU... | shin-szk-engineering/Provisioning-Scripts | 62_Python.sh | Shell | mit | 1,225 |
#!/usr/bin/env bash
set -e
# shellcheck disable=SC1090,SC1091
source "$SECRETS_PROJECT_ROOT/utils/build-utils.sh"
preinstall_files '-c'
# Building .deb package:
cd "$SCRIPT_DEST_DIR" && build_package 'deb'
# Cleaning up:
clean_up_files
| sobolevn/git-secret | utils/deb/build.sh | Shell | mit | 241 |
#!/bin/bash
# Ember app kit version update
APPDIR="/Users/fayimora/Code/Javascript/Ember/eak-todos"
PATCHDIR="/tmp/eakpatch"
EAKDIR="/tmp/ember-app-kit-master"
echo "Updating the local clone"
cd ${EAKDIR}
git pull origin master
cd ${APPDIR}
# first generate patches of important files
FILES="bower.json package.json Gr... | fayimora/eak-todos | eak-update.sh | Shell | mit | 834 |
#! /bin/bash
cmd_file=$1
# if [ -z "$cmd_file" ]; then
# echo "cmd file should be given"
# exit -1
# fi
servers=$(<servers.lst)
echo "SERVERS TO DEPLOY: "
echo $servers
cat $cmd_file | parallel --progress -S $servers --workdir . --jobs 6
| xiaohan2012/capitalization-restoration-train | distribute.sh | Shell | mit | 250 |
#!/bin/bash
scriptVersion=1.0
scriptName="PV-PVC Creation script"
echo "*** You are Running $scriptName, Version : $scriptVersion ***"
source envvars.sh
usage() { echo "Please fill the NAMESPACE parameter in envvars.sh file" 1>&2; exit 1; }
if [ -z "$NAMESPACE" ]; then
usage
fi
echo "[INFO] Creating Persistant V... | vagharsh/k8s-scipts | pv-pvc/create.sh | Shell | mit | 509 |
#!/bin/sh
export GENERIC_SERVICE_PORT=$PORT
export GENERIC_RESOURCE_NAME=loan
export GENERIC_RESOURCE_ID_NAME=lid
export GENERIC_RESOURCE_ID_TYPE=String
export GENERIC_KAFKA_ZK=localhost:2181
export GENERIC_KAFKA_TOPIC=test
cmd="node app.js"
$cmd &
sleep 3
address="http://localhost:$PORT/loan/config/field"
curl -X... | jhn/generic | service/services/finance.sh | Shell | mit | 2,838 |
#!/bin/bash
ANSI_YELLOW="\033[33;1m"
listify() {
local IFS="$1"; shift; echo "$*";
}
bootstrap_header() {
echo -e "${ANSI_YELLOW}$1${ANSI_RESET}"
}
# version numbers
COMPOSE_VERSION=${COMPOSE_VERSION:-1.2.0}
travis_fold start docker.env
bootstrap_header "Set required environment variables"
travis_cmd expo... | voidlock/travis-docker | docker-bootstrap.sh | Shell | mit | 2,304 |
#!/bin/sh
if [ "$PLUGIN_ENV" == "test" ]; then
exit
fi
if [ "$CORDOVA_SPOTIFY_URL_SCHEME" == "" ]
then
DEFAULT_SCHEME="spotify-cordova"
echo "The Spotify SDK Plugin needs a URL scheme for authentication."
echo "See http://bit.ly/1u11ZUz for more information"
printf "Specify your URL scheme [$DEFAUL... | timflapper/cordova-spotify-plugin | install.sh | Shell | mit | 1,225 |
#!/bin/bash
EXECPATH=`dirname $0`
cd $EXECPATH
cd ..
rm -rf en/ref/Baleen
mkdir -p en/ref/Baleen
../vendor/bin/sphpdox process -o en/ref Baleen\\Cli ../src
find en/ref -name "*.rst" -exec bash -c 'mv "$1" "$(sed "s/\.rst$/.txt/" <<< "$1")"' - '{}' \;
| baleen/cli | docs/bin/generate-reference.sh | Shell | mit | 252 |
#!/usr/bin/env bash
# DESCRIPTION
# Check all website given in the list file
#
# USAGE
# ./monitor-servers.sh me@host.com ./custom-list.txt
#
scriptDir="$(dirname "$0")" # emplacement du script
# . "$scriptDir"/toolboxrc # charge quelques function utiles (today, etc.). Le
. "$scriptDir"/stylerc # include some style
#... | edouard-lopez/monitor-http-server | monitor-servers.sh | Shell | mit | 1,418 |
set -e
# set -x # DEBUG
. $BD_CONF_FILE
OUTPUT_DIR=./stats
mkdir -p $OUTPUT_DIR
if [[ -z "$STATS_SCRIPT" ]]; then
# Supervision sample script not set, use default
# Global stats
bash $UTIL_DIR/stats/global.sh $OUTPUT_DIR
# Stats for each variable
num_variables=${#VARIABLE_TABLES[@]};
echo "Examining $n... | zifeishan/braindump | util/stats.sh | Shell | mit | 1,229 |
#!/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}"
# This protects against multiple targets copying the same framework dependency at the same time.... | Ares42/Portfolio | Pods/Target Support Files/Pods-HackerRankMobile/Pods-HackerRankMobile-frameworks.sh | Shell | mit | 5,930 |
#!/usr/bin/env bash
# Base16 Solarized - Gnome Terminal color scheme install script
# Ethan Schoonover (http://ethanschoonover.com/solarized)
[[ -z "$PROFILE_NAME" ]] && PROFILE_NAME="Base 16 Solarized Light"
[[ -z "$PROFILE_SLUG" ]] && PROFILE_SLUG="base-16-solarized-light"
[[ -z "$DCONF" ]] && DCONF=dconf
[[ -z "$UU... | ricardoaat/devConfigs | gnomeTerminal/base16-gnome-terminal/base16-solarized.light.sh | Shell | mit | 3,877 |
#!/bin/sh
dbus-monitor --system path=/net/connman/technology/wifi | while read line ; do ./ip.sh ; done
| pib/gpio_ssd1306 | watch_connman.sh | Shell | mit | 105 |
#!/bin/bash
apt install git build-essential libtool automake autotools-dev autoconf pkg-config libssl-dev libgmp3-dev libevent-dev bsdmainutils libboost-all-dev libminiupnpc-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev
add-apt-repository ppa... | payplatinum/platinum | Setup-unix.sh | Shell | mit | 1,608 |
#! /bin/sh
# If /etc/php.ini is absent, manufacture one from /etc/php.ini.default
ORIGINAL_INI=/etc/php.ini.default
if [ -f /etc/php.ini ] ; then
mv /etc/php.ini /etc/php.ini.pre-derbynet
ORIGINAL_INI=/etc/php.ini.pre-derbynet
fi
touch /var/log/php_errors
chmod 777 /var/log/php_errors
TIMEZONE=`systems... | jeffpiazza/derbynet | installer/mac/webserver/scripts/create-or-update-php-ini.sh | Shell | mit | 1,435 |
#! /bin/bash
# Use locally cached APT packages. Currently supports local file server running
# on port 80 only. Also, only works when eth1 NIC is present
function xsources() {
sudo cp /etc/apt/sources.list{,.backup}
sudo rm /etc/apt/sources.list
sudo bash -c "cat > /etc/apt/sources.list <<EOF
deb http://m... | rushiagr/myutils | superutils/safe/sourceslist.sh | Shell | mit | 941 |
#!/usr/bin/env bash
lerna bootstrap --no-ci
# symlink each package node_modules/.bin to root node_modules/.bin
# this is needed to support CLI tools in each package,
# without installing CLI tools separately, multiple times
lerna exec "rm -r node_modules/.bin | true; ln -s \$LERNA_ROOT_PATH/node_modules/.bin node_mod... | wix/wix-style-react | scripts/post-install.sh | Shell | mit | 823 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3355-2
#
# Security announcement date: 2015-11-02 00:00:00 UTC
# Script generation date: 2017-01-01 21:07:36 UTC
#
# Operating System: Debian 8 (Jessie)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - libvdpau:0.8-3+deb8u2
# - libvdpa... | Cyberwatch/cbw-security-fixes | Debian_8_(Jessie)/x86_64/2015/DSA-3355-2.sh | Shell | mit | 1,101 |
# SEE: https://github.com/spawngrid/kerl/issues/62
brew tap homebrew/headonly
brew install --HEAD kerl
mkdir ~/.kerl/installations | tiredpixel/dev-tiredpixel | 2014-03-15-kerl-brew-install/kerl_brew_install.sh | Shell | mit | 133 |
#!/bin/bash
# Clones the vagrant_debian_wheezy_rvm repository
# and copies the Vagrant box to it
git clone https://github.com/jhsu802701/vagrant_debian_wheezy_rvm.git
rm vagrant_debian_wheezy_rvm/debian-wheezy-rvm.box
cp debian-wheezy-rvm.box vagrant_debian_wheezy_rvm/debian-wheezy-rvm.box
| jhsu802701/packer-debian-wheezy | vagrant-rvm.sh | Shell | mit | 294 |
if [ ! -f /mysql-configured ]; then
/usr/bin/mysqld_safe &
sleep 10s
MYSQL_PASSWORD=`pwgen -c -n -1 12`
echo mysql root password: $MYSQL_PASSWORD
echo $MYSQL_PASSWORD > /mysql-root-pw.txt
mysqladmin -u root password $MYSQL_PASSWORD
touch /mysql-configured
killall mysqld
sleep 10s
fi
supervisord -n
| xori/docker-invoice-plane | start.sh | Shell | mit | 301 |
#!/bin/bash
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
OldNewReposCsv=$1
GitHubOrg=$2
GitHubUser=$3
GitHubToken=$4
printf "\nLine endings: "
CarriageReturns=`grep -r $'\r' $OldNewReposCsv | wc -l`
if [ $CarriageReturns -gt 0 ]; then
echo 'Windows (FATAL ERROR)'
exit 1
else
echo 'Unix ... | luigiberrettini/GitHub-to-Bitbucket | github_authors.sh | Shell | mit | 2,229 |
#!/bin/bash
# Call this script with at least 2 parameters
# impact_cmd device target
# device options - v6/v7
# target options - fpga/flash
if [ $# -ne 2 ]; then
echo "Invalid number of parameters"
elif [ "$1" == "v6" ]; then
if [ "$2" == "fpga" ]; then
impact -batch download_fpga_v6.cmd
... | vipinkmenon/fpgadriver | src/hw/scripts/impact_cmd.sh | Shell | mit | 1,184 |
#!/bin/sh
# NOTE: "host" is OPENSHIFT_NODEJS_IP || '127.0.0.1',
# "port" is 27727 or $NODEJS_CONFIG.supromongod.port
# DB name is taken from $NODEJS_CONFIG or $1
set -e
trap 'echo "
Unexpected Script Error! Use /bin/sh -x $0 to trace it.
"
set +e
trap "" 0
exit 0
' 0
if [ "$NODEJS_CONFIG" ]
then
: <<'__' #... | suprojs/supromongod | etc/mongo-shell.sh | Shell | mit | 1,531 |
#!/bin/bash
if [ ! -f VMware-Player-6.0.2-1744117.x86_64.bundle ]; then
wget https://download3.vmware.com/software/player/file/VMware-Player-6.0.2-1744117.x86_64.bundle
fi
sudo sh ./VMware-Player-6.0.2-1744117.x86_64.bundle --console --eulas-agreed --required
| StefanScherer/basebox-slave | ubuntu/scripts/install-vmware-player.sh | Shell | mit | 262 |
#!/bin/bash
if [ ${1} == "jieba" ]; then
shift
str=""
while [[ ${1} != "" ]]; do
str=$str" "${1}
shift
done
python jieba_cooccur.py $str
fi | m516825/IR_Lab_Package | ntutm/cooccur/doc2cooccur/run.sh | Shell | mit | 153 |
source ~/devel/usr/local/google-cloud-sdk/path.bash.inc
| adeshmukh/dotfiles | src/bashrc.d/gcloud.bash | Shell | mit | 57 |
################################################################################
# This file is an attempt to extract all functions for
# the script from the script itself
################################################################################
#################################################################... | quidome/wrt-zipb | f_zipb.sh | Shell | mit | 3,355 |
#! /bin/bash
src_corpus_dir='/cs/taatto/home/hxiao/capitalization-recovery/corpus/puls-format'
target_corpus_dir='/cs/taatto/home/hxiao/capitalization-recovery/corpus/puls-format-rule-based'
id_file=$1
if [ -z $id_file ]; then
echo "id_file should be given"
exit -1
fi
while read id; do
cp "${src_corpus_dir}/${id... | xiaohan2012/capitalization-restoration-train | cp_paf_file.sh | Shell | mit | 367 |
# rails.plugin.sh
# ver 0.1
# 2014-01-14
# Francis San Juan <francis@ftsanjuan.com>
#
# Various Rails aliases and utilities
#
# @dependencies
# rails
# rake
# ------------------------------------
# Rails aliases
# ------------------------------------
alias rc="rails console"
alias rs="rails server"
alias rdbreset=... | ftsanjuan/bash-utils | plugins/rails/rails.plugin.sh | Shell | mit | 1,258 |
#!/bin/bash
function showhelp {
cat << EOF
usage: install.sh -u <web user> -d <installation dir> [ -h (help) ]
Notes:
-u, --webuser : Provide the user the webserver runs as;
required to set permissions correctly.
-d, --installdir : Specify the installation directory.
... | overclocked/dddw | install.sh | Shell | mit | 1,173 |
#!/bin/bash
abort() {
if [ $1 -ne 0 ]; then
echo "Error $1, aborting."
exit $1
fi
}
SC_PEAKLOAD='{
"title": "Peakload-130-hybrid-SVSM",
"seed": 0,
"sample_size": 200,
"t_pre": [2010, 3, 25],
"t_start": [2010, 4, 1],
"t_block_start": [2010, 4, 2, 9],
"t_block_end": [2010, 4, 2, 20],
"t_end"... | ambimanus/appsim | run-peakload-hybrid-svsm.sh | Shell | mit | 1,555 |
#!/bin/bash
printf "Waiting for etcd to start\n"
httpstatus="000"
while [ $httpstatus -ne "200" ]; do
httpstatus=$(curl -s -o /dev/null -I -w "%{http_code}" http://etcd:2379/v2/keys/squirrel/master_ifce)
done
# printf "Waiting for squirrel-master to start\n"
status=1
while [ $status -ne 0 ]; do
nc -vz squirrel-ma... | vladoatanasov/squirrel-docker | squirrel-worker/entrypoint.sh | Shell | mit | 517 |
#!/bin/bash
# docker.sh
#
# Gokay Gurcan
# https://www.gokaygurcan.com/
# ----------------------------
set -e
# Set colors
BLACK=$(tput setaf 0)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
BLUE=$(tput setaf 4)
MAGENTA=$(tput setaf 5)
CYAN=$(tput setaf 6)
WHITE=$(tput setaf 7)
BOLD=$(tput bold)
R... | gokaygurcan/dotfiles | docker.sh | Shell | mit | 1,377 |
#!/bin/bash
#Generate icons
ionic resources
#add android platforms
#ionic platform rm android
ionic platform add android@5.0.0
ionic state reset --plugins
#cordova plugin add https://github.com/SpatialVision/sv-plugin-indooratlas.git
cp AndroidManifest.xml platforms/android/
| SpatialVision/sv-beacon-prototype | init.sh | Shell | mit | 279 |
#!/usr/bin/env bash
# Reset Propel tests fixtures
# 2011 - William Durand <william.durand1@gmail.com>
if [ "$1" = "-h" -o "$1" = "--help" ]; then
cat <<EOT
$(basename $0) [OPTIONS]
Reset Propel tests fixtures
Options:
-v Be verbose: Prints propel-gen commands being executed.
-vv Be more verbose: Prin... | Egston/Propel | test/reset_tests.sh | Shell | mit | 1,558 |
export PATH="${PATH}${PATH+:}/Users/mskblackbelt/perl5/bin";
export PERL5LIB="${PERL5LIB}${PERL5LIB+:}/Users/mskblackbelt/perl5/lib/perl5";
export PERL_LOCAL_LIB_ROOT="${PERL_LOCAL_LIB_ROOT}${PERL_LOCAL_LIB_ROOT+:}/Users/mskblackbelt/perl5";
export PERL_MB_OPT="--install_base \"/Users/mskblackbelt/perl5\"";
export ... | mskblackbelt/dotfiles | .zsh/perlopts.zsh | Shell | mit | 374 |
#!/usr/bin/env bash
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
set -x
rm -rf $ROOT_DIR/src/Dime/FrontendBundle/Resources/public/build
$ROOT_DIR/env/pub.sh build
| stiftungswo/Dime | env/pub_rebuild.sh | Shell | mit | 183 |
# Create dir and move inside.
mk() {
mkdir -p "$1" && cd "$1"
}
# Act as git status if no parameters.
g() {
if [[ $# > 0 ]]; then
git $@
else
git status -sb
fi
}
compdef g=git
| JesusMtnez/dotfiles | applications/zsh/config/functions.zsh | Shell | mit | 193 |
#!/bin/sh
COMMAND="\
COPY ( \
SELECT w.id AS id, w.type AS type, wr1.ref AS from, wr2.ref AS to\
FROM ways AS w\
INNER JOIN ways_refs AS wr1 ON w.id = wr1.id \
INNER JOIN ways_refs AS wr2 ON w.id = wr2.id\
WHERE w.type != 0 AND w.type != 30 AND (
(wr1.ord-wr2.ord) = 1 OR (wr2.ord-wr1.ord) = 1
)
) TO STDOUT WIT... | xtompok/osmawalk | postgis/export-ways.sh | Shell | mit | 405 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3302-1
#
# Security announcement date: 2015-07-06 00:00:00 UTC
# Script generation date: 2017-01-01 21:07:28 UTC
#
# Operating System: Debian 8 (Jessie)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - libwmf:0.2.8.4-10.3+deb8u1
# - li... | Cyberwatch/cbw-security-fixes | Debian_8_(Jessie)/x86_64/2015/DSA-3302-1.sh | Shell | mit | 1,265 |
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --mem=40000
# this script filters TE caller output for varying amounts of read support (1-50 reads) and outputs the resulting TPR and FDR information files for RSVSIM
# can change read support, so double check what it is set to
# USE: R... | klaricch/Transposons2 | scripts/RSV_ReadSupport_Loop_round20_strict_VS_and_RS.sh | Shell | mit | 5,048 |
#!/bin/bash
pm2 stop ./dist/server.js
| leftiness/ton-social | bin/stop.sh | Shell | mit | 38 |
nodemon --debug ./server/build/start.js
| emallard/quatre-et-cinq | node.sh | Shell | mit | 40 |
#!/bin/bash
echo 'Run unittests using python3...'
cd ..
# ignore deprecation warning since we also support python 2
python3 -W ignore::DeprecationWarning -m unittest discover
| david-zwicker/py-utils | tests/run_python3.sh | Shell | mit | 176 |
export PERL_LOCAL_LIB_ROOT="$PERL_LOCAL_LIB_ROOT:$HOME/perl5"
export PERL5LIB="$HOME/perl5/lib/perl5:$PERL5LIB"
export PATH="$HOME/perl5/bin:$PATH"
| pretorh/dotfiles | common/zsh/.zsh/commands/perl.linux.sh | Shell | mit | 148 |
clang -I$JAVA_HOME/include -I$JAVA_HOME/include/darwin -I ~/git/lua -o libluajava.dylib -shared luajava.c ~/git/lua/liblua.a \
&& mv libluajava.dylib ../../main/resources/natives/osx_64
| zhkl0228/luajava | src/main/c/build_osx.sh | Shell | mit | 189 |
#!/bin/bash
sbt "runMain com.jeffharwell.commoncrawl.saveresults.examples.SaveResultsToFile k8master.fuller.edu pilotparse.golden_politics /home/jharwell/Documents/phd/golden_standard/politics"
| jeffharwell/CommonCrawlScalaTools | saveresults/run.sh | Shell | mit | 194 |
#! /bin/bash
GROUP_NAME="power_analytic"
ALL_EXPERIMENTS=" \
power_model_cobyla \
power_model_global \
power_model_local \
"
# power_model_nl2sol_numerical_grads \
# power_model_numerical_grads \
# power_model_cobyla
# power_model
# power_model_nl2sol_analytic_grads
# power_model_numerical_grads
# power_... | mcflugen/dakota-experiments | experiments/beaver-creek-lsq/scripts/submit_all_experiments.sh | Shell | mit | 834 |
#!/bin/sh
date +"%a %m/%d %I:%M %p" > /dev/shm/qtile_timedropdownbox
| bogobog/qtile | bin/update_time.sh | Shell | mit | 70 |
lpr -P ZT230 -o raw newlabel.epl
| ssharpjr/zebra-epl | main/printlabel.sh | Shell | mit | 33 |
#!/bin/sh
# https://cloud.google.com/functions/docs/emulator
gcloud beta functions deploy registration --stage-bucket=yiffychat-functions --trigger-http --project=yiffy-io --region=us-central1
| furrio/yiffychat | deploy-production.sh | Shell | mit | 194 |
# This code was written by Oana Ursu and modified by Irene Kaplow.
CODEDIR=/srv/gsfs0/projects/kundaje/users/kriss1/mappingDir/Personal_genome_mapping
WRAPCDIR=/srv/gsfs0/projects/kundaje/users/imk1/TFBindingPredictionProject/src
MAPPINGDIR=/srv/gsfs0/projects/kundaje/users/imk1/TFBindingPredictionProject/MappedReadsP... | imk1/IMKTFBindingCode | create_personal_genomes_plus.sh | Shell | mit | 975 |
vala class-main-int-args.vala
| foreachsam/book-lang-vala | book/example/entry-point/class-main-int-args/test.sh | Shell | cc0-1.0 | 30 |
#!/bin/sh
set -e
UPXVER=3.94
if ! [ `which upx` ]; then
if [ ! -d "upx-${UPXVER}-amd64_linux" ]; then
wget https://github.com/upx/upx/releases/download/v${UPXVER}/upx-${UPXVER}-amd64_linux.tar.xz
tar xf ./upx-${UPXVER}-amd64_linux.tar.xz
rm ./upx-${UPXVER}-amd64_linux.tar.xz
fi
upx-${UPXVER}-amd64_lin... | lieff/lvg | scripts/compress.sh | Shell | cc0-1.0 | 389 |
#!/bin/bash
url="http://www.WRITE HERE A SITE"
# work offline?
offline=0
# to log or not to log
nolog=1
# explore all dirs?
alldir=1
# search dir?
searchdir=0
passa=0
fcookie="fcookie"
scookie="scookie"
purl='curl -A Mozilla/5.0 -L'
zurl() {
if [ $offline -eq 1 ]; then
echo "ERROR" >&2
return
... | shintakezou/miscellanea | diggers/adultonly/cy/scripts/getidx.sh | Shell | cc0-1.0 | 6,623 |
./mocheck.py -po po-export
| chitwanix/sagarmatha-translations | check.sh | Shell | gpl-2.0 | 28 |
install_prelude () {
printf " Cloning the Prelude's GitHub repository...\n$RESET"
if [ x$PRELUDE_VERBOSE != x ]
then
/usr/bin/env git clone $PRELUDE_URL "$PRELUDE_INSTALL_DIR"
else
/usr/bin/env git clone $PRELUDE_URL "$PRELUDE_INSTALL_DIR" > /dev/null
fi
if ! [ $? -eq 0 ]
the... | jiahut/.emacs.d | utils/installer.sh | Shell | gpl-2.0 | 8,122 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.