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 |
|---|---|---|---|---|---|
usage() {
description | fmt -s >&2
}
description() {
cat << HERE
DESCRIPTION
Upload data and fetch URL from the pastebin http://sprunge.us
USAGE
$0 filename.txt
$0 text string
$0 < filename.txt
piped_data | $0
NOTES
--------------------------------------------------------------------------
* INPUT MET... | fly/osxdotfiles | .zsh/zsh-sprunge/sprunge.zsh | Shell | bsd-3-clause | 2,134 |
#!/bin/bash
set -e
cd "$(dirname "$0")"
echo " Installing Python Packages"
pip install -r requirements.txt
| air7head/dotfiles | python/osx.sh | Shell | mit | 112 |
function retry_download() {
retries=$1; wait_sleep=$2; timeout=$3; url=$4; path=$5 checksum=$6
for i in $(seq 1 $retries); do
rm -f $path
timeout $timeout curl -fsSL $url -o $path
if [ $? -ne 0 ]; then
echo "retry_download[$i] Error: Failed to execute curl -fsSL $url -o $path"
sleep $wait_sl... | jackfrancis/acs-engine | parts/dcos/dcosprovisionsource.sh | Shell | mit | 1,674 |
#!/bin/sh
PSQL="env psql"
CONFIG="./backend/config.py"
PSQL_FILE="./psql.sql"
DBHOST=`cat $CONFIG | grep DBHOST | awk '{print $3}' | sed "s/^'//g" | sed "s/'$//g"`
DBUSER=`cat $CONFIG | grep DBUSER | awk '{print $3}' | sed "s/^'//g" | sed "s/'$//g"`
DBNAME=`cat $CONFIG | grep DBNAME | awk '{print $3}' | sed "s/^'//g" |... | kevchentw/nctu_hackathon | init_db.sh | Shell | mit | 541 |
#! /bin/sh
# Copyright (C) 2004-2014 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program ... | kuym/openocd | tools/automake-1.15/t/python11.sh | Shell | gpl-2.0 | 1,754 |
#!/bin/sh
cd /home/kai/workspace/GIT-GpsMid/GpsMid
ant clean
ant logging j2mepolish
cd ..
cd Osm2GpsMid
ant clean
ant deploy
cd ..
scp Osm2GpsMid/dist/Osm2GpsMid-0.5.09.jar gpsmidW:/home/groups/g/gp/gpsmid/htdocs/prebuild/Osm2GpsMid-APM.jar
cd /home/kai/workspace/checkout/GpsMid
cvs update -d
date > nightlies_builtat... | papousek/GpsMid | Osm2GpsMid/prebundledBuildScripts/nightlies-sync.sh | Shell | gpl-2.0 | 986 |
#!/bin/bash
# Copyright © 2021 by The qTox Project Contributors
#
# This program is libre 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 late... | tux3/qTox | buildscripts/build_toxcore_linux.sh | Shell | gpl-3.0 | 1,714 |
#!/bin/sh
#
# Tool used to generate postgresql log reports.
# Takes output directory as an argument
outDir=$1
if [[ ! -d "$outDir" ]]; then
echo "Please supply an existing directory for report output!"
echo "Example: sh createPostgresqlReport.sh /existing/directory/"
exit;
fi
pgbadger -f stderr -p '%t [%p]: [%l-1]... | CReSIS/OPS | conf/tools/createPostgresqlReport.sh | Shell | gpl-3.0 | 433 |
#!/bin/bash
# Copyright 2014 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 ... | foxish/kubernetes | hack/make-rules/helpers/cache_go_dirs.sh | Shell | apache-2.0 | 2,567 |
#!/bin/bash
# Utility script to update the ansible repo with the latest templates and image
# streams from several github repos
#
# This script should be run from openshift-ansible/roles/openshift_examples
XPAAS_VERSION=ose-v1.4.8-1
ORIGIN_VERSION=${1:-v3.7}
RHAMP_TAG=2.0.0.GA
EXAMPLES_BASE=$(pwd)/files/examples/${OR... | twiest/openshift-tools | openshift/installer/vendored/openshift-ansible-3.7.42-1/roles/openshift_examples/examples-sync.sh | Shell | apache-2.0 | 2,934 |
#!/bin/bash
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
zun-db-manage upgrade
exit 0
fi
. /usr/local/bin/kolla_httpd_setup
| openstack/kolla | docker/zun/zun-api/extend_start.sh | Shell | apache-2.0 | 271 |
#!/bin/bash
sudo add-apt-repository ppa:ultradvorka/ppa
sudo apt-get update
# eof | jlec/hstr | bin/ppa-add.sh | Shell | apache-2.0 | 83 |
#!/bin/bash
# Copyright Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in the "license" file ... | wcs1only/s2n | codebuild/bin/build_aws_crt_cpp.sh | Shell | apache-2.0 | 1,483 |
#!/bin/sh
. ./.env
./bin/hubot --adapter slack 2>&1 | tee -a hubot.log
| luisgtz/the-app | vagrant/provision/roles/hubot/files/ninjabot/start.sh | Shell | apache-2.0 | 72 |
#!/bin/bash
# Author: yeho <lj2007331 AT gmail.com>
# BLOG: https://linuxeye.com
#
# Notes: OneinStack for CentOS/RedHat 6+ Debian 7+ and Ubuntu 12+
#
# Project home page:
# https://oneinstack.com
# https://github.com/oneinstack/oneinstack
Install_ionCube() {
if [ -e "${php_install_dir}/bin/phpize" ]; ... | lj2007331/lamp | include/ioncube.sh | Shell | apache-2.0 | 1,739 |
#!/usr/bin/env bash
# build a wheel package containing all the CLI tests
pip install --user virtualenv
python -m virtualenv env
. env/bin/activate
python ./scripts/dev_setup.py
# clean up
rm -rf ./artifacts
mkdir -p ./artifacts/build
mkdir -p ./artifacts/app
mkdir -p ./artifacts/testsrc
output_dir=$(cd artifacts... | QingChenmsft/azure-cli | scripts/batch/build_all.sh | Shell | mit | 4,494 |
#!/bin/sh
# Run this script from the directory containing LIFXKit.xcodeproj
# Exit immediately on command failure
set -e
# Configurables
LFX_SCHEME_IOS="LIFXKit iOS Static Framework"
LFX_SCHEME_OSX="LIFXKit OS X Framework"
LFX_CONFIGURATION="Release"
LFX_BUILD_DIR="build"
LFX_DERIVED_DATA_DIR="${LFX_BUILD_DIR}/der... | LIFX/LIFXKit | LIFXKit/Scripts/build_frameworks.sh | Shell | mit | 1,310 |
#!/bin/bash
SCRIPT_NAME="$(basename ${BASH_SOURCE[0]})"
pushd $(dirname ${BASH_SOURCE[0]}) > /dev/null
SCRIPT_DIR=$(pwd)
pushd ../.. > /dev/null
SOURCE_DIR=$(pwd)
popd > /dev/null
pushd ../functions > /dev/null
FN_DIR=$(pwd)
popd > /dev/null
popd > /dev/null
source "${SCRIPT_DIR}/functions.sh"
function usage {
cat <<... | 42wim/consul | build-support/scripts/build-docker.sh | Shell | mpl-2.0 | 3,940 |
#! /bin/bash
#
# Builds czmq.node package from a fresh git clone
#
################################################################################
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
# Read the zproject/README.md for information about making permanent changes. #
########... | hintjens/czmq | bindings/nodejs/build.sh | Shell | mpl-2.0 | 2,326 |
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
options="-coverprofile=profile.out"
go test $options $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done
| sebastienvas/istio | pilot/bin/codecov.sh | Shell | apache-2.0 | 311 |
#!/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... | lleszczu/kubernetes | cluster/ubuntu/download-release.sh | Shell | apache-2.0 | 2,864 |
#!/usr/bin/env sh
for arg in "$@" ; do
echo "$arg"
done
| apple/swift | test/Driver/LegacyDriver/Inputs/print-args.sh | Shell | apache-2.0 | 59 |
chmod a+rwx *.sh | BerndDammer/LinuxUsage25 | unlock.sh | Shell | bsd-2-clause | 16 |
#!/bin/bash
# Caution: This is common script that is shared by more SCLS.
# If you need to do changes related to this particular collection,
# create a copy of this file instead of symlink.
THISDIR=$(dirname ${BASH_SOURCE[0]})
source ${THISDIR}/../../../common/functions.sh
source ${THISDIR}/../include.sh
${THISDIR}/... | hhorak/db-ci-tests | packages/mysql-common/basic-galera/run.sh | Shell | bsd-3-clause | 369 |
#!/bin/bash
FN="mgu74cv2.db_3.2.3.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.8/data/annotation/src/contrib/mgu74cv2.db_3.2.3.tar.gz"
"https://bioarchive.galaxyproject.org/mgu74cv2.db_3.2.3.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-mgu74cv2.db/bioconductor-mgu74cv2.db_3.2.3_src_all.ta... | joachimwolff/bioconda-recipes | recipes/bioconductor-mgu74cv2.db/post-link.sh | Shell | mit | 1,309 |
#!/bin/bash
FN="microRNAome_1.14.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.13/data/experiment/src/contrib/microRNAome_1.14.0.tar.gz"
"https://bioarchive.galaxyproject.org/microRNAome_1.14.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-micrornaome/bioconductor-micrornaome_1.14.0_src_a... | phac-nml/bioconda-recipes | recipes/bioconductor-micrornaome/post-link.sh | Shell | mit | 1,307 |
#!/bin/sh
# This test is a part of RPC & TI-RPC Test Suite created by Cyril LACABANNE
# (c) 2007 BULL S.A.S.
# Please refer to RPC & TI-RPC Test Suite documentation.
# More details at http://nfsv4.bullopensource.org/doc/rpc_testsuite.php
# TEST : RPC stdcall callrpc scalability
# creation : 2007-07-02 revision 2007-
... | CentOS/sig-core-t_ltp | testcases/network/rpc/rpc-tirpc-full-test-suite/scripts/rpc_stdcall_callrpc.scalability.sh | Shell | gpl-2.0 | 3,642 |
#!/usr/bin/env bash
# Run two sets of tests and exit nonzero if one fails.
./tools/qa/test_all_feature.sh || exit 1
./tools/qa/test_all_ancestor.sh || exit 1
| QuantumElephant/horton | tools/qa/test_all_twobranches.sh | Shell | gpl-3.0 | 159 |
#!/bin/bash
IFS='
'
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
if [ "$TRAVIS" = "true" ]; then
echo 'Installing xml-twig-tools and xsltproc....'
sudo apt-get install -qq -y --force-yes xml-twig-tools xsltproc > /dev/null
fi
ROOTDIR="$1"
if [ -z "$ROOTDIR" ]; then
ROOTDIR="."
fi
echo 'Formatting results...... | jesperronn/grails-ci | travis/junit-errors-to-stdout.sh | Shell | apache-2.0 | 845 |
#!/usr/bin/env bash
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
set -e
if [ ! -f env.bash ]; then
echo 'clean.bash must be run from $GOROOT/src' 1>&2
exit 1
fi
. ./env.bash
if [ ! -f Make.inc ] ; then
... | ssrl/go | src/clean.bash | Shell | bsd-3-clause | 760 |
# Some debug info
echo "Running on $CI_RUNNER_ID ($CI_RUNNER_DESCRIPTION) with tags $CI_RUNNER_TAGS."
# Packages
apt-get update -qq
apt-get install -y -qq build-essential git libcurl4-openssl-dev libsdl1.2-dev libgc-dev nodejs
gcc -v
export PATH=$(pwd)/bin:$PATH
# Nimble deps
nim e install_nimble.nims
nim e tests/t... | tulayang/Nim | ci/deps.sh | Shell | mit | 405 |
#!/bin/bash
for a in $(seq 3.40 0.01 3.80)
do
x=`echo "scale=8; $a*0.5" | bc`
mkdir a_$a
cd a_$a
sed "s/VAR/$x/g" ../pw.relax.espresso > pw.relax.espresso
cd ..
done
| leseixas/quantum_espresso-benchmark | Diamond/lattice/PBEsol-RRKJUS/create_inputs.sh | Shell | gpl-2.0 | 179 |
#!/usr/bin/env bash
node ./bin/key_server.js | node ./bin/notifier.js >/dev/null
exit $PIPESTATUS[0]
| TDA/fxa-auth-server | scripts/start-server.sh | Shell | mpl-2.0 | 101 |
#!/bin/bash
fw_depends databases
fw_installed mysql && return 0
# send over the required files
scp $FWROOT/toolset/setup/linux/databases/mysql/create.sql $DBHOST:~/
scp $FWROOT/toolset/setup/linux/databases/mysql/my.cnf $DBHOST:~/
scp $FWROOT/toolset/setup/linux/databases/mysql/usr.sbin.mysqld $DBHOST:~/
scp $FWROOT... | k-r-g/FrameworkBenchmarks | toolset/setup/linux/databases/mysql/mysql.sh | Shell | bsd-3-clause | 1,682 |
#
# restore/YUM/default/940_generate_fstab.sh
# 940_generate_fstab.sh is a finalisation script (see restore/readme)
# that generates etc/fstab in the target system
# according to what of the target system is currently mounted.
# Generating etc/fstab in the target system is needed as prerequirement
# for making a valid ... | phracek/rear | usr/share/rear/restore/YUM/default/940_generate_fstab.sh | Shell | gpl-3.0 | 5,117 |
#!/bin/bash
# Script parameters
# Param 1: Script run location
# Param 2: global profile name
# Param 3: local profile name
# Param 4-: Any passed argument
#
# When calling oi use the --profile=PROFILE_NAME and
# --global-profile=PROFILE_NAME argument to ensure calling scripts
# with the right profile.
#
# To post b... | continuoustests/ContinuousTests | .OpenIDE/profile.ack/scripts/updateat.sh | Shell | lgpl-2.1 | 2,060 |
#!/bin/sh
# Package
PACKAGE="ddrescue"
DNAME="ddrescue"
case $1 in
start)
exit 0
;;
stop)
exit 0
;;
status)
exit 1
;;
log)
exit 1
;;
*)
exit 1
;;
esac
| andyblac/spksrc | spk/ddrescue/src/dsm-control.sh | Shell | bsd-3-clause | 254 |
#!/bin/zsh
# go to project root
cd `git rev-parse --show-toplevel`
gvt update --all
# not interested in the test files thank you.
rm -rf vendor/**/*_test.go
# remove some items that are problematic for a continuous build and not actually in use
rm -rf vendor/github.com/tylerb/graceful/tests
| Dataman-Cloud/drone | vendor/github.com/go-swagger/go-swagger/hack/update-vendor.sh | Shell | apache-2.0 | 296 |
#!/bin/bash
# Copyright 2014 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 by applic... | hortonworks/kubernetes-yarn | cluster/rackspace/config-default.sh | Shell | apache-2.0 | 2,026 |
#!/bin/sh
fail ()
{
echo "$0 TESTS FAILED";
exit 1;
}
echo $0 TESTS BEGIN
#these tests should all return zero (parse succeeded)
./test_rex --help || fail
./test_rex --beta world goodbye || fail
./test_rex GoodBye --beta World || fail
./test_rex --beta world GOODBYE GoodBye Goodbye gOoDbyE Anything |... | raphaelr/despoof | vendor/argtable2/tests/test_rex.sh | Shell | bsd-3-clause | 896 |
#!/bin/sh
set -e
export PYTHONPATH="./"
export DJANGO_SETTINGS_MODULE='settings'
if [ `which django-admin.py` ] ; then
export DJANGO_ADMIN=`which django-admin.py`
else
export DJANGO_ADMIN=`which django-admin`
fi
if [ `which coverage` ] ; then
export COVERAGE='coverage run'
else
export COVERAGE=''
fi
... | AndrewGrossman/django-mptt | tests/runtests.sh | Shell | mit | 639 |
#!/bin/bash
set -e
[ ! -z "$SRC_DIR" ] || (echo "env was not set" && false)
/bin/bash | damies13/opentoonz | thirdparty/libmypaint/script-shell.sh | Shell | bsd-3-clause | 87 |
source_sh ${srcdir}/emulparams/elf64ppc.sh
source_sh ${srcdir}/emulparams/elf_fbsd.sh
OUTPUT_FORMAT="elf64-powerpc-freebsd"
DEFAULT_PLT_STATIC_CHAIN=1
| mattstock/binutils-bexkat1 | ld/emulparams/elf64ppc_fbsd.sh | Shell | gpl-2.0 | 153 |
#!/bin/bash
# Run a python test inside QGIS
# Note: the test module and function are specified in dotted notation
# for example, to run the test function run_all (which is the default anyway)
# $ qgis_testrunner.sh tests_folder.test_module.run_all
# tests_folder must be in PYTHONPATH (plugins main folders are automatic... | luzpaz/QGIS | .docker/qgis_resources/test_runner/qgis_testrunner.sh | Shell | gpl-2.0 | 1,219 |
#!/usr/bin/env bash
if [ -d net ] ; then
make clean
fi
rm -rf net
rm -rf drivers
rm -rf include
rm -rf compat
rm -rf udev
rm -f .compat_base_tree
rm -f .compat_base_tree_version
rm -f .compat_version
rm -f code-metrics.txt
echo "Cleaned wireless-bt-compat-2.6"
| ariknem/compat-wireless | scripts/admin-clean.sh | Shell | gpl-2.0 | 262 |
# systemctl aliases
user_commands=(
cat
get-default
help
is-active
is-enabled
is-failed
is-system-running
list-dependencies
list-jobs
list-sockets
list-timers
list-unit-files
list-units
show
show-environment
status
)
sudo_commands=(
add-requires
add-wants
cancel
daemon-reexec
... | lstolowski/oh-my-zsh | plugins/systemd/systemd.plugin.zsh | Shell | mit | 1,865 |
#!/usr/bin/env bash
__scriptpath=$(cd "$(dirname "$0")"; pwd -P)
# Disable telemetry, first time experience, and global sdk look for the CLI
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
export DOTNET_MULTILEVEL_LOOKUP=0
# Source the init-tools.sh script rather than execute in order... | zhenlan/corefx | run.sh | Shell | mit | 609 |
#!/bin/bash
git ls-files | xargs file | grep text | cut -d":" -f1 | xargs -Ifile tab2space -lf file file
| dkushner/sagan | util/convert-tabs-to-spaces.sh | Shell | bsd-3-clause | 105 |
#!/bin/bash
#
# compress-pngs.sh
# Run various compression and optimization utilities on one or more PNGs
#
# Wireshark - Network traffic analyzer
# By Gerald Combs <gerald@wireshark.org>
# Copyright 2013 Gerald Combs
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the G... | JunichiWatanuki/wireshark | tools/compress-pngs.sh | Shell | gpl-2.0 | 1,366 |
#!/bin/sh
v2raya --version | grep "$PKG_VERSION"
| artynet/openwrt-packages | net/v2raya/test.sh | Shell | gpl-2.0 | 50 |
#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
HELPERS_DIR="$CURRENT_DIR/helpers"
source "$HELPERS_DIR/plugin_functions.sh"
plugin_dir_exists() {
[ -d "$1" ]
}
# Runs all *.tmux files from the plugin directory.
# Files are ran as executables.
# No errors if the plugin dir does ... | KenPowers/dotfiles | vendor/tpm/scripts/source_plugins.sh | Shell | mit | 1,000 |
#
# Copyright (c) 2004, 2008, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Softwar... | greghaskins/openjdk-jdk7u-jdk | test/java/lang/instrument/BootClassPath/BootClassPathTest.sh | Shell | gpl-2.0 | 2,503 |
#!/bin/bash
/usr/lib/chromium/chrome --no-sandbox
| hongzhang-yan/ozone-wayland | packaging/rpm/chromium-browser.sh | Shell | bsd-3-clause | 50 |
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
echo $(go version)
S2I_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${S2I_ROOT}/hack/util.sh"
cd "${S2I_ROOT}"
bad_files=$(s2i::util::find_files | xargs gofmt -s -l)
if [[ -n "${bad_files}" ]]; then
echo "!!! gofmt needs to be run on the following files: "... | childsb/origin | vendor/github.com/openshift/source-to-image/hack/verify-gofmt.sh | Shell | apache-2.0 | 486 |
adb shell am force-stop com.mapswithme.maps.pro
adb push ../config.txt /mnt/sdcard/MapsWithMe/bench/config.txt
adb push ../settings.ini /mnt/sdcard/MapsWithMe/settings.ini
| alexzatsepin/omim | data/benchmarks/android/init_device.sh | Shell | apache-2.0 | 172 |
#!/bin/sh
#
# Copyright (c) 2005 Junio C Hamano
#
test_description='git apply symlinks and partial files
'
. ./test-lib.sh
test_expect_success SYMLINKS setup '
ln -s path1/path2/path3/path4/path5 link1 &&
git add link? &&
git commit -m initial &&
git branch side &&
rm -f link? &&
ln -s htap6 link1 &&
git... | TextusData/Mover | thirdparty/git-1.7.11.3/t/t4115-apply-symlink.sh | Shell | gpl-3.0 | 800 |
#!/bin/bash
# Copyright 2014 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 ... | jnewland/kops | vendor/k8s.io/kubernetes/build/shell.sh | Shell | apache-2.0 | 937 |
#!/bin/bash
find -E . -type f -iregex "\.\/(slider|rocket).*js$" | grep -v "slider-aio" > tmp.lst
sed -E -e "s/^/__inline(\"/g" tmp.lst | sed -E -e "s/$/\")/g" > tmp_1.lst
find ../page -type f -regex ".*js$" > tmp.lst
sed -E -e "s/^/__inline(\"/g" tmp.lst | sed -E -e "s/$/\")/g" > tmp_2.lst
find ../globalview -type ... | MichaelHu/rocket_apps | slider/slider/js/build_aio_mac.sh | Shell | mit | 515 |
#!/bin/bash
DIR=`dirname $0`
mkdir $DIR/internals
touch $DIR/internals/test_data.json
# Install dependencies
sudo apt-get install -y gpsd
# Disable UART
name='enable_uart'
value='0'
sudo sed -i "s/^\($name\s*=\s*\).*\$/\1$value/" /boot/config.txt
# Stop serial getty in ttyAMA0
sudo systemctl stop serial-getty@ttyAM... | BrodaNoel/bropy | modules/gy-gps6mv1/install.sh | Shell | mit | 338 |
#!/usr/bin/env bash
dotnet build
dotnet test ConsulRx.UnitTests/ConsulRx.UnitTests.csproj
dotnet test Configuration.UnitTests/ConsulRx.Configuration.UnitTests.csproj
dotnet test Templating.UnitTests/ConsulRx.Templating.UnitTests.csproj | andyalm/consul-rx | build.sh | Shell | mit | 236 |
#!/bin/sh
startx
| JohSchneider/piboy-zero | software/retropie-config/RetroPie/retropiemenu/startx.sh | Shell | mit | 17 |
#!/usr/bin/env bash
hexo clean --debug
hexo generate --debug
hexo server --debug
| shadow000902/blog_source | update_native.sh | Shell | mit | 81 |
#!/bin/bash
Rscript train_model.r &&
python get_allergy_data.py &&
python get_weather_data.py &&
python get_air_data.py &&
Rscript run_model.r &&
python get_resutls_send_email.py | tmthyjames/Achoo | data/scripts/run_scripts.sh | Shell | mit | 182 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2010:0923
#
# Security announcement date: 2010-11-30 18:42:33 UTC
# Script generation date: 2017-01-01 21:12:56 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - dhcp-debuginfo.i686:4.1.1-12.P1.el6_0.1... | Cyberwatch/cbw-security-fixes | Red_Hat_6/x86_64/2010/RHSA-2010:0923.sh | Shell | mit | 1,276 |
#!/bin/bash
target=ubuntu-nginx-circus-postgresql
base_dir=~/Develop/master/accon/v2.0/data-volume/workspace/accon/docker
release_dir=~/Develop/master/accon/release
cd $release_dir
# バックアップディレクトリ作成
if [ ! -e $release_dir"/_backup" ]; then
mkdir $release_dir"/_backup"
fi
# 配布モジュール格納先作成
if [ -e $release_dir"/ubuntu-n... | maemori/accon | release/docker/ubuntu-nginx-circus-postgresql.sh | Shell | mit | 754 |
# print "peg" if protein-encoding gene or "rna" if ncRNA, first parsing MED4 names, then special cases of MED4, then PHM2 names
# leave header row in place; it's not a problem for R
cat AAAAAA.txt | perl -pi -e 's/(MED4|PHM2)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)/$2/' | perl -pi -e 's/.*(peg|rna).*/$1/' | per... | cuttlefishh/papers | cyanophage-light-dark-transcriptomics/code/protOrRna.sh | Shell | mit | 734 |
#! /bin/bash
#scp the html file
#scp -i gadget-development2.pem ./file.html ubuntu@54.92.185.80:/var/www/html
#scp both images
#scp -i gadget-development2.pem uploadImgPhp/uploads/banner.png ubuntu@54.92.185.80:/var/www/html
#scp -i gadget-development2.pem uploadImgPhp/uploads/main.gif ubuntu@54.92.185.80:/var/www/htm... | ChristianRubio02/autoAMP | write.sh | Shell | mit | 659 |
#!/usr/bin/env bash
# http://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue
# two way
# on server, use export LC_ALL
# on client, This is a common problem if you are connecting remotely,
# so the solution is to not forward your locale.
# Edit /etc/ssh/ssh_config and comment out... | at15/lnmp | scripts/util.sh | Shell | mit | 431 |
error() {
echo " ! $*" >&2
echo ""
return 1
}
head() {
echo ""
echo "-----> $*"
}
info() {
#echo "`date +\"%M:%S\"` $*"
echo " $*"
}
warning() {
local tip=$1
echo "WARNING: $tip" >> $warnings
echo "" >> $warnings
}
achievement() {
local msg=$1
echo " ACHIEVEMENT UNLOCKED: ... | ankparik/nodejs-buildpack | lib/common.sh | Shell | mit | 1,647 |
#! /bin/sh
if [ $# -ne 1 ]
then
echo "[Error] The setup script requires one additional parameter specifying whether CUDA or HCC is used"
echo "Options: [CUDA, HIP]"
exit
fi
OPTION=$1
BUILD_DIR=build
if [ ! -d ${BUILD_DIR} ]; then
mkdir ${BUILD_DIR}
fi
cd ${BUILD_DIR}
if [ ${OPTION} = "CUDA" ]
then
CUDNN_P... | doody1986/DNNMark | setup.sh | Shell | mit | 629 |
ansible-galaxy install -f -p ./roles -r roles.yml
| jeqo/packer-oracle-weblogic | update-ansible-roles.sh | Shell | mit | 50 |
#!/bin/bash
libroot=$SHCF_PLATFORM_ROOT/repo
docsroot=$SHCF_PLATFORM_ROOT/docs
docfile=$docsroot/lib.txt
rm $docfile
for each_libdir in xx1 xx2 xx3; do
for each_libfile in $(ls -1 $libroot/$each_libdir/*.bash.inc); do
echo "Library file: lib/$each_libdir/$(basename $each_libfile)"
echo
grep ^##\|... | icasimpan/shcf_lib | bin/extract_docs.sh | Shell | mit | 445 |
#!/usr/bin/env bash
###############################################################################
# Twitter
###############################################################################
# Disable smart quotes as it’s annoying for code tweets
defaults write com.twitter.twitter-mac AutomaticQuoteSubstitutionEnabled... | joeyhoer/starter | apps/twitter.sh | Shell | mit | 1,046 |
#!/bin/sh
rm -f nohup.out
nohup docker build --no-cache -t ontouchstart/rpi-redis . &
| ontouchstart/rpi-redis | build.sh | Shell | mit | 86 |
#!/bin/sh
brew install --cask postgres
| jbhannah/dotfiles | home/run_once_postgres_app.sh | Shell | mit | 39 |
#!/bin/bash -
###################################################################
# pduDecoder.sh
#==================================================================
#
# Shell scrit to decode PDU in SMS (Short Message Service)
#
#==================================================================
#
# CREATED IN:
# =... | arthurpalves/bash-pduDecoder | pduDecoder.sh | Shell | mit | 23,141 |
DOTFILES_ROOT=`pwd`
cd $HOME
# We recommend run these steps manually
# git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
# git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
# rbenv install 2.2.2
# curl -Lo- https://bit.ly/janus-bootstrap | bash
#[ ! -d ~/.janus ] && mkdir ~... | fernandes/dotfiles | install.sh | Shell | mit | 1,988 |
#!/bin/bash -e
if [ $# -ne 8 ]; then
echo "usage v1: dnase_pool_reps.sh <bam_A> <bam_B> <peaks_A.bb> <peaks_B.bb> <signals_A.bw> <signals_B.bw> <chrom.sizes> <out_root>"
echo "Pools bam, merges peaks and correlates signals from two replicates. Is independent of DX and encodeD."
echo "Requires samtools, be... | ENCODE-DCC/dnase_pipeline | dnanexus/old/dnase-pool-bioreps/resources/usr/bin/dnase_pool_reps.sh | Shell | mit | 2,206 |
#!/bin/sh
# Builds a static stripped binary with version information.
#
# This script is used to build a binary for the current platform. Cgo is
# disabled to make sure the binary is statically linked. Appropriate flags are
# given to the go compiler to strip the binary. Current git tag is passed to
# the compiler by d... | gokcehan/lf | gen/build.sh | Shell | mit | 491 |
set -e
dnf -y update
dnf -y install curl openssl patch wget
| vpsfreecz/build-vpsfree-templates | builders/almalinux/setup.sh | Shell | mit | 60 |
#!/usr/bin/env bash
#
# The MIT License (MIT)
#
# Copyright (c) 2014 David Arvelo
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the right... | darvelo/vim-swp-recovery | vim-swp-recovery.sh | Shell | mit | 5,975 |
#!/bin/sh
# Run from build directly (where the compilation_commands.json) is located
# Skip all external headers (all headers located in lib)
HEADER_FILTER="^((?!lib).)*$"
python /usr/share/clang/run-clang-tidy.py \
-j $(nproc) \
-header-filter=$HEADER_FILTER \
-checks="*, \
-fuchsia-*, \
... | doe300/VC4C | scripts/run_clang_tidy.sh | Shell | mit | 1,273 |
#!/bin/bash
path_Set(){
local -r scriptFilePath="$(readlink -f "$1")"
local -r scriptDir="$( dirname "$scriptFilePath")"
# include dependent utilities/libraries in path
if [ -d "$scriptDir/module" ]; then
local modDir
for modDir in $( ls -d "$scriptDir/module"/* ); do
PATH="$modDir:$PATH"
don... | WhisperingChaos/dkrcp | dkrcp.sh | Shell | mit | 601 |
# Extract the necessary products for reproducing the calibration
# from the 17B-162 line tracks
# Make path prior to running script
out_path='/home/ekoch/work2/ekoch/VLA_backups/17B-162/Lines'
cd /home/ekoch/space/ekoch/VLA_tracks/17B-162/calibrated/Lines
mv 17B-162_09_23_17_speclines/products $out_path/17B-162_09_... | e-koch/VLA_Lband | 17B-162/pipeline_scripts/17B-162_lines_backup.sh | Shell | mit | 1,426 |
replace()
{
sed -e "s/$1/$2/g"
}
| Riliumph/bash | functions/seds.bash | Shell | mit | 36 |
#!/bin/bash
# set -x
##################################################################################
## Author : Miztiik
## Version : 0.1
## Date : 07Sep2015
##
## DESCRIPTION : Script to configure 4 node hadoop cluster
##
## Ref[1] : http://www.cloudera.com/content/cloudera/en/documentation/core/latest... | miztiik/cloudera-On-Docker | docker-image-build/hadoop/hadoopClusterConf/fourNodeClusterSetup.sh | Shell | mit | 15,912 |
#!/usr/bin/env bash
script_path="../main.nf"
if [ -z $1]
then
echo "No argument given, going to try to run ../main.nf"
else
script_path=$1
fi
data_path="/tmp"
if [ -d "./test_data" ]
then
data_path="./test_data"
echo "Found data directory in current working directory, using ./test_data/"
fi
curl --ve... | Galithil/NGI-RNAseq | tests/docker_test.sh | Shell | mit | 1,522 |
#!/bin/bash
set -e
set -o pipefail
IMAGE_NAME="seravo/wordpress:development"
CONTAINER_NAME="seravo_wordpress"
COMMAND="${1:-autostart}"
case "${COMMAND}"
in
enter)
set +e
while true
do
docker exec -it "${CONTAINER_NAME}" bash && break
sleep 1
done
s... | Seravo/wp-vagrant | roles/docker/files/sc.sh | Shell | mit | 8,160 |
#!/bin/bash
if [[ $SERVER_FASTCGI_BUFFERS ]]
then
echo "[nginx-fastcgi] setting fastcgi_buffers ${SERVER_FASTCGI_BUFFERS}"
sed -i "s/\fastcgi_buffers .*;/fastcgi_buffers ${SERVER_FASTCGI_BUFFERS};/" $CONF_NGINX_SITE
fi
if [[ $SERVER_FASTCGI_BUFFER_SIZE ]]
then
echo "[nginx-fastcgi] setting fastcgi_buffer_size $... | bryanlatten/docker-php | container/root/run.d/10-nginx-fastcgi.sh | Shell | mit | 732 |
#!/bin/sh
version="4.9.2"
version_gmp="4.3.2"
version_mpfr="2.4.2"
version_mpc="0.8.1"
source $base_dir/gcc-4.8.1/shared.sh
| hoangmle/crave-bundle-2015-07-22 | dependencies/gcc-4.9.2/setup.sh | Shell | mit | 127 |
#!/usr/bin/env bash
cd "${EXAMPLE_PKG_DIR}" &&
webpack --bail --config ./vanilla/webpack.config.js &&
webpack --bail --config ./happy/webpack.config.js &&
cd "${EXAMPLE_OUT_DIR}" &&
git-diff ./happy/less.css ./vanilla/less.css &&
git-diff ./happy/sass.css ./vanilla/sass.css &&
grep -q 'color: red;' ./happy/le... | amireh/happypack | examples/extract-text-webpack-plugin/build.sh | Shell | mit | 374 |
#!/bin/sh
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/go/bin:$PATH
export PATH=/home/isucon/.local/ruby/bin:$PATH
export PATH=/home/isucon/.local/node/bin:$PATH
export PATH=/home/isucon/.local/python/bin:$PATH
export PATH=/home/isucon/.local/perl/bin:$PATH
export PATH=/home/isucon/.local/php/bin:$PATH
expo... | tyokoyama/isucon4 | qualifier/ami/files/env.sh | Shell | mit | 734 |
#! bin/bash
PARAMS="--collapse-whitespace --remove-comments"
echo "---> htmlmin [start]";
# main
html-minifier ./client/templates/index.tpl ${PARAMS} -o ./dist/index.html
# pages
html-minifier ./client/templates/pages/whatis.tpl ${PARAMS} -o ./dist/templates/pages/whatis.html
html-minifier ./client/templates/pages/l... | moszeed/clltr | bin/build-htmlmin.sh | Shell | mit | 1,806 |
#!/usr/bin/env bash
set -e
set -o pipefail
mongod --dbpath=${MONGO_DBPATH} &
counter=10
while ! mongo admin --eval 'db.getSiblingDB("$external").runCommand({createUser: "CN=admin,OU=JSDev,O=Jaspersoft,L=San Francisco,ST=CA,C=US", roles: [{ role: "root", db: "admin"}]});'; do
((counter--))
if [[ $counter = ... | rzhilkibaev/mongo-x509-auth-ssl | create-user.sh | Shell | mit | 435 |
# init according to man page
if (( $+commands[rbenv] ))
then
eval "$(rbenv init -)"
fi
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
| aviscasillas/dotfiles | ruby/rbenv.zsh | Shell | mit | 167 |
#!/bin/bash
outNameBase=${1}
numSeq=${2}
minLen=${3}
maxLen=${4}
numEMIts=${5}
offset=${6}
win=${7}
fromscratch=${8}
optits=250
exeSam="../../src/axtsample"
exeTrain="../../src/train"
exeAlign="../../src/align"
# toggle for cluster / desktop
subCmd=""
#subCmd="qsub"
outDir="../results/hky/${outNameBase}"
mkdir "${o... | glennhickey/context | test/scripts/f84collectcross.sh | Shell | mit | 1,150 |
#!/bin/bash
echo "Disabling dnf makecache timer"
rm -f "$MNTDIR/etc/systemd/system/basic.target.wants/dnf-makecache.timer"
| sorki/rpi2-fedora-image-builder | scripts/root/51_no_dnftimer.sh | Shell | mit | 125 |
#!/usr/bin/env bash
#exit if any command fails
set -e
artifactsFolder="./artifacts"
if [ -d $artifactsFolder ]; then
rm -R $artifactsFolder
fi
dotnet restore
dotnet test ./test/Invio.Immutable.Tests/Invio.Immutable.Tests.csproj -c Release
dotnet pack -c Release -o ../../artifacts
| invio/Invio.Immutable | build.sh | Shell | mit | 289 |
#!/usr/bin/env bash
export RENDERER_HOME=$PWD
mkdir -p ${RENDERER_HOME}/tmp
pushd $(mktemp -p ${RENDERER_HOME}/tmp -d)
export TEMP_DIR=$PWD
mkdir -p ./input/main
echo "<html><head><title>Yo!</title></head><body>Dawg!</body></html>" > ./input/main/index.html
mkdir -p ./output/html
docker run --rm \
-ti \... | telegr-am/renderers | passthru/test.sh | Shell | mit | 601 |
NAME=Drosophila_grimshawi
URLS=ftp://ftp.flybase.net/genomes/Drosophila_grimshawi/dgri_r1.3_FB2014_03/fasta/dgri-all-chromosome-r1.3.fasta.gz
source getter.sh
| sauloal/cnidaria | analysis/data/converters/external/new/Drosophila_grimshawi.sh | Shell | mit | 161 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.