code stringlengths 2 1.05M | repo_name stringlengths 5 110 | path stringlengths 3 922 | language stringclasses 1
value | license stringclasses 15
values | size int64 2 1.05M |
|---|---|---|---|---|---|
#!/bin/bash
set -eu
INTERACTIVE=1
for i in "$@";
do
echo "=== Processing ${i} ===";
# check existence
if ! test -f "${i}"
then
echo "${i} does not exist or is not a regular file."
exit 1
fi
# extract
EXTRACTED=0
if which atool &>/dev/null
then
atool -x "${i}" && EXTRACTED=1
else
... | KIAaze/bin_and_dotfiles_public | bins/public_bin/zip2dir.sh | Shell | gpl-3.0 | 874 |
#!/bin/bash
#
# Dutch to German - stations table
#
# Copyright (C) 2017-2018 be-rail@linuxunderground.be
# Distributed under the terms of the GNU General Public License v3
#
# Thanks to Claude, Alexandre and PPL (from ICFB) for translation.
#
# To be sure that sed will behave as expected :
export LC_COLLATE="C"
STAT... | linuxunderground/be-rail | scripts/nl2de_stations.sh | Shell | gpl-3.0 | 1,670 |
#!/bin/bash
BUTTERFLY_BUILD_ROOT=$1
BUTTERFLY_SRC_ROOT=$(cd "$(dirname $0)/../.." && pwd)
source $BUTTERFLY_SRC_ROOT/tests/functions.sh
network_connect 0 1
server_start 0
nic_add 0 1 42 sg-1
nic_add 0 2 42 sg-1
nic_add 0 3 42 sg-2
qemus_start 1 2 3
sg_member_add 0 sg-1 42.0.0.1
sg_member_add 0 sg-1 42.0.0.2
sg_membe... | outscale-jju/butterfly | tests/scenario_29/test.sh | Shell | gpl-3.0 | 1,189 |
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Error, usage: $0 <your url>"
exit 1
fi
url=$1
# curl
short=`curl -s http://t34.me/api/?u=${url}`
echo $short
# wget
short=`wget -qO- http://t34.me/api/?u=${url}`
echo $short
exit 0
| z0rr0/t34.me | configs/api_sh.sh | Shell | agpl-3.0 | 231 |
#!/bin/bash
getargbool 1 rd.brltty && getargbool 1 rd.brltty.bluetooth && {
systemctl -q is-active bluetooth || {
systemctl --no-block start bluetooth
}
}
| brltty/brltty | Initramfs/Dracut/bluetooth-start.sh | Shell | lgpl-2.1 | 168 |
#!/bin/bash
#1 : number of companies
#2 : number of control relations
#3 : number of products
if [[ $# -lt 3 ]]; then
echo "Error: Script expects 3 parameter"
exit 1;
fi
for (( i=1; i <= $2; i++ ))
do
j1=$(( ($RANDOM%$1)+1 ))
j2=$(( ($RANDOM%$1)+1 ))
j3=$(( ($RANDOM%$1)+1 ))
j4=$(( ($RANDOM%$1)+1 ))
j5=$(( ($... | hexhex/core | benchmarks/strategiccompanies-extcontrl/generate_instance.sh | Shell | lgpl-2.1 | 636 |
#!/bin/bash
cd cmn
echo "cmn: npm install "
npm install
cd ..
echo "-----------"
cd app
echo "app: npm install "
npm install
cd ..
echo "-----------"
cd web
echo "web: npm install "
npm install
cd .. | wzx-xle/PictureSpider | init.sh | Shell | lgpl-2.1 | 202 |
#! /usr/bin/env bash
$XGETTEXT `find -name \*.cpp -o -name \*.h` -o $podir/plasma_applet_gluonplayer.pot
| KDE/gluon | apps/plasmoid/Messages.sh | Shell | lgpl-2.1 | 105 |
CFLAGS=""
LDFLAGS="-static-libgcc -static"
#EXTRA_CFLAGS="-march=armv7-a -mfpu=neon -mfloat-abi=softfp -mvectorize-with-neon-quad"
EXTRA_CFLAGS="-O2"
EXTRA_LDFLAGS="-static-libgcc -static"
FFMPEG_FLAGS="--prefix=/home/captain/ffmpeg/ffmpeg_win64 \
--target-os=mingw32 \
--arch=x86_64 \
--enable-cross-compile ... | captain-mayhem/captainsengine | Adventure/AdvEngine/Engine/ffmpeg/build/build_win32/build_win64.sh | Shell | lgpl-2.1 | 1,043 |
luarocks install luasec OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu --local
luarocks install busted --local
luarocks install luaposix --local
luarocks install luacov --local
luarocks install luacov-coveralls --local
| ld-test/lua-rote | .travis/install_rocks.sh | Shell | lgpl-2.1 | 213 |
#!/bin/sh
OPENSSL_VERSION=1.0.2h
WORKSPACE=$(pwd)
INSTALL_DIR="${WORKSPACE}/MacOSX/x86_64"
mkdir -p $INSTALL_DIR
if [ ! -e "openssl-${OPENSSL_VERSION}-x86_64" ]; then
tar -zxvf openssl-${OPENSSL_VERSION}.tar.gz
mv openssl-${OPENSSL_VERSION} openssl-${OPENSSL_VERSION}-x86_64
fi
cd openssl-${OPENSSL_VERSION}-x86_6... | WadeHsiao/B | 3rd/openssl/build-openssl-for-osx-x86_64.sh | Shell | lgpl-3.0 | 555 |
#!/bin/bash
helm package continuous-delivery/jenkins-agent/
helm package continuous-delivery/nexus3/
helm package continuous-delivery/sonar/
helm package continuous-delivery/sonardb/
helm package continuous-delivery/jenkins/
mv *.tgz docs/
helm repo index docs
git add -u
git add docs
git commit --amend
git push -f
helm... | hellgate75/continuous-delivery-charts | build-all-charts.sh | Shell | lgpl-3.0 | 609 |
#!/usr/bin/env bash
# builds the cmake files into the build directory
set -e
if [ -d "./build/debug/" ]; then
echo "Debug build found, cleaning up..."
cd ./build/
rm -rf -- debug/
mkdir debug
cd debug
cmake -DCMAKE_BUILD_TYPE=DEBUG ../../
else
echo "Debug build not found, making directory..."
mkdir -p ./buil... | maldworth/gphoto2pp | cmake_debug.sh | Shell | lgpl-3.0 | 390 |
#!/usr/bin/env bash
if ! command -v svgo >/dev/null
then
echo "Please install svgo: npm install svgo"
exit 1
fi
if ! command -v compare >/dev/null
then
echo "Please install compare"
exit 1
fi
# regarding convertStyleToAttrs, see: https://github.com/svg/svgo/issues/489
# regarding convertPathData, see... | hawaii-desktop/hawaii-icon-theme | optimize-svg.sh | Shell | lgpl-3.0 | 1,588 |
#!/bin/bash
set -ex -o pipefail
whereami="$(cd "$(dirname $(readlink -f "$0"))" && pwd -P)"
BUILD_ENV_PATH=${1:?"ERROR: env file is not given."}
if [[ -n "${BUILD_ENV_PATH}" && ! -f "${BUILD_ENV_PATH}" ]]; then
echo "ERROR: Can't find the file: ${BUILD_ENV_PATH}" >&2
exit 1
fi
set -a
. ${BUILD_ENV_PATH}
set +a
... | axsh/openvnet | ci/ci.el7/integration_test/build_and_run_in_docker.sh | Shell | lgpl-3.0 | 1,276 |
#!/bin/bash
# NTSC 720x486 in columns 88x27
DIRNAME=$(date | tr " " "_")
mkdir -p $DIRNAME
create_video() {
echo "Putting together images ... "
echo "Please wait ..."
convert -antialias -resize 720x486! -delay 60 $DIRNAME/* CAPTURE_$DIRNAME.gif
echo "Done!"
echo "Cleaning up images ..."
du -h $DIRNAME
... | alejandrogallo/dotfiles | bin/record_screen.sh | Shell | unlicense | 531 |
#Need to find a better way of doing this...
#https://forums.mozilla.org/viewtopic.php?p=33582&sid=f87500f0267f160fb0389b26636bf131
firefox\
https://addons.mozilla.org/firefox/downloads/latest/tab-for-a-cause/\
https://addons.mozilla.org/firefox/downloads/latest/ecosia-the-green-search/\
https://addons.mozil... | Sharminator/Tux | FEZ.sh | Shell | unlicense | 1,013 |
#!/bin/bash
#
# $Id: userid-patch-controller.sh 3.1 2017-10-21 17:04:25 rob.navarro $
#
# patch the controller.sh script to:
# 1. reduce failures around unexpected/root file ownership
#
# Copyright 2017 AppDynamics, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this fil... | Appdynamics/HA-toolkit | userid-patch-controller.sh | Shell | apache-2.0 | 2,022 |
#!/usr/bin/env bash
echo 'Loading instrumentation javaagent '
# add required jars to the classpath based on the folder location
# wso2 product : $CARBON_HOME/lib/javaagent/*.jar
# other product : path/to/javaagent/lib/*.jar
# Eg: export CARBON_CLASSPATH="$CARBON_CLASSPATH":"$(echo $CARBON_HOME/lib/javaagent/*.jar | t... | wso2/analytics-data-agents | java-instrumentation-agent/conf/java-agent.sh | Shell | apache-2.0 | 1,011 |
#!/bin/bash
# Copyright 2015 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 ... | hpcloud/kubernetes | test/kubemark/start-kubemark.sh | Shell | apache-2.0 | 15,637 |
#!/bin/bash
# Entrypoint script for fakes3
if [[ -n $FAKES3_BUCKETS ]]; then
IFS=','; for bucket in $FAKES3_BUCKETS; do
mkdir -p /var/data/fakes3/$bucket
done
fi
exec "$@"
| jusbrasil/docker-fakes3 | entrypoint.sh | Shell | apache-2.0 | 181 |
rm -rf bin/*
fsc -d bin src/main/scala/cs220/*.scala
| umass-cs-220/week-03-programming-paradigms | code/scala-checksum-app/build.sh | Shell | apache-2.0 | 53 |
#!/bin/bash
DAEMONIZED=false
WORKERS=6
for i in "$@"
do
case $i in
-d|--daemonized)
DAEMONIZED=true
shift # past argument=value
;;
-w=*|--workers=*)
WORKERS="${i#*=}"
shift # past argument=value
;;
-?|--help)
echo "USAGE: ./run_canary.sh -d -w=10"
e... | rackerlabs/canary | run_canary.sh | Shell | apache-2.0 | 1,194 |
#!/bin/bash
# Yet Another UserAgent Analyzer
# Copyright (C) 2013-2017 Niels Basjes
#
# 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 r... | Innometrics/yauaa | analyzer/src/main/resources/UserAgents/OSNames/Generate.sh | Shell | apache-2.0 | 2,488 |
#!/bin/bash
#
# Builds the project on MacOS
# (tested on Sierra 10.12.2)
#
rm -rf build bin lib
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
| bitbouncer/csi-avro-utils | rebuild_macos.sh | Shell | apache-2.0 | 159 |
#!/bin/bash
set -eux
if [ -z "$(which etcd)" ]; then
ETCD_VERSION=3.1.10
case `uname -s` in
Darwin)
OS=darwin
SUFFIX=zip
;;
Linux)
OS=linux
SUFFIX=tar.gz
;;
*)
echo "Unsupported OS"
exit 1
... | dims/etcd3-gateway | setup-etcd-env.sh | Shell | apache-2.0 | 725 |
#!/usr/bin/env bash
. .env/bin/activate
./envir_collector.py
| clinstid/energydash | start_envir_collector.sh | Shell | apache-2.0 | 61 |
#!/bin.bash
set -e
set -x
# ==========
# FOREMAN SMART PROXY
# ==========
cat <<EOF >> /etc/foreman-proxy/settings.yml
:tftp: true
:tftproot: /var/tftpboot
:tftp_servername: 192.168.0.1
:dns: true
:dns_provider: virsh
:dhcp: true
:dhcp_vendor: virsh
:virsh_network: default
EOF
| Vultour/homelab | foreman/proxy.sh | Shell | apache-2.0 | 280 |
perl $HOME/bin/ensembl-vep/vep \
--cache \
--cache_version 93 \
--dir /hps/nobackup2/production/ensembl/anja/vep/ \
--input_file /hps/nobackup2/production/ensembl/anja/vep_data/input/grch37/rachel_43_no_id_sorted.vcf.gz \
--output_file /hps/nobackup2/production/ensembl/anja/vep_data/output/coding_only.txt \
--force_ov... | at7/work | vep/vep_cache_consequences_filter.sh | Shell | apache-2.0 | 619 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-Linux
CND_CONF=Debug
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=so
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/sokobanzai
OUTPU... | guiguyz/Sokobanzai | sokobanzai/nbproject/Package-Debug.bash | Shell | apache-2.0 | 1,457 |
#!/bin/bash
#
# This file is part of the KubeVirt project
#
# 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 ... | admiyo/kubevirt | cmd/registry-disk-v1alpha/entry-point.sh | Shell | apache-2.0 | 2,536 |
#!/bin/bash
alias demo_li_test="echo 'done'" | banadiga/li-aliases | test/demo-li-test.sh | Shell | apache-2.0 | 45 |
#!/bin/sh
# subdirs="${HOME}/Development/${base}/ ${HOME}/.virtualenvs/${base}/src/${base}/"
for project in $(find -H -x ${HOME}/Development/ -type d -depth 1); do
base=$(basename ${project});
if git -C ${HOME}/Development/${base}/ rev-parse --git-dir > /dev/null 2>&1; then
echo '//////' ${base};
... | sebastianseitz/dotfiles | bin/grb_all.sh | Shell | apache-2.0 | 1,111 |
# ----------------------------------------------------------------------------
#
# Package : gobuffalo/attrs
# Version : v0.0.0-20190224210810-a9411de4debd
# Source repo : https://github.com/gobuffalo/attrs.git
# Tested on : UBI 8.4
# Language : GO
# Travis... | ppc64le/build-scripts | a/attrs/attrs_ubi_8.4.sh | Shell | apache-2.0 | 1,874 |
#!/usr/bin/env bash
# Copyright (C) Schweizerische Bundesbahnen SBB, 2020
# Sicherstellen, das der Bildschirm nicht in den Schlafmodus übergeht
SETUPDIR=$(dirname $(readlink -f $0))
DMCONF=/etc/lightdm/lightdm.conf
# avoid sleep...
sudo mv $DMCONF $DMCONF.orig
sudo cp -f $SETUPDIR/lightdm/lightdm.conf $DMCONF
sudo cho... | SchweizerischeBundesbahnen/cimon_setup | web/install_disable_screensleep.sh | Shell | apache-2.0 | 369 |
#!/bin/sh
#删除7天以前的bt种子文件.
#需要find的-mtime参数支持
dir=/mnt/sda1/tmp
config_dir=/mnt/sda1/.aria2
if [ ! -f "/etc/crontabs/root" ]; then
echo "1 3 * * 1 /mnt/sda1/.aria2/rmoldtorrent.sh" > /etc/crontabs/root
echo " " >> /etc/crontabs/root
echo 'root' >> /etc/crontabs/cron.update
else
cun=`grep 'rmoldtorrent.sh' /etc/cron... | ghostry/openwrt-gmod | scripts/rmoldtorrent.sh | Shell | apache-2.0 | 676 |
#!/bin/bash
# Author: Eason Yi
# Date: 2017-05-20
if [[ $1 == "6" ]]; then
echo "[INFO] IPv6 for this machine:"
ifconfig|awk '/inet6 / {printf "%s/%s/%s\n",$2,$4,$6}'
else
echo "[INFO] IPv4 for this machine:"
#ifconfig|awk '/inet / {printf "%s/%s\n",$2,$4}'
ifconfig|awk '/inet / {cmd = "dc -e 16i2o"toupper(s... | EasonYi/shell | ip.sh | Shell | apache-2.0 | 484 |
#!/bin/sh
RAW_FILES=`cat inputFilesRaw.txt`
INFILE=fidoinputTest.txt
rm -f ${INFILE}
for n in ${RAW_FILES};do
ID=`basename ${n} |sed s/.raw//`
DIR=`dirname ${n} |sed s/testdata/migratedTestData/`
echo fido fido --input=\"hdfs://${DIR}/${ID}.nxs\" \> \"hdfs://${DIR}/${ID}_fido.log\" >> ${INFILE}
done
| openpreserve/stfc-nexus | scripts/createInputFileFidoTest.sh | Shell | apache-2.0 | 310 |
#!/bin/sh
echo " "
echo "---------------------------------------------------------------------------------------------------------------"
echo "----- install Extra Packages for Enterprise Linux (EPEL)"
echo "---------------------------------------------------------------------------------------------------------------... | manfredpaul/ambari-ansible | install.sh | Shell | apache-2.0 | 1,053 |
#!/usr/bin/env bash
gfsh << ENDGFSH
connect --locator=${locatorArray[0]}[10334]
shutdown --include-locators=true --time-out=30
Y
ENDGFSH
| charliemblack/gemfire-copy | scripts/shutdown_gemfire.sh | Shell | apache-2.0 | 140 |
#!/usr/bin/env bash
function checkFileExists {
if [ ! -f $1 ]; then
echo "$1 not exists !!!"
exit
fi
}
function deleteDir {
rm -rf $1
}
echo "input source apk path:"
read sourceApk
echo "input dest save dir:"
read saveDir
echo "input channel file path:"
read channelsFile
checkFileExists $sourceApk
checkFileExists ... | lchli/MvpGithub | AnGithub/buildSystem/apkFlavor.sh | Shell | apache-2.0 | 941 |
# Script to start "supermonkey" on the device, which has a very rudimentary
# shell.
# Fix permissions before running the script:
# chmod 755 supermonkey.sh
# chown root.shell supermonkey.sh
ret=`pm path hk.hku.cs.srli.supermonkey`
package=${ret#package:}
base=/system/bin
export CLASSPATH=$package
trap "" HUP
exec app_... | leethree/attentive-ui | scripts/supermonkey.sh | Shell | apache-2.0 | 372 |
#!/bin/bash
if [ $# -eq 4 ]
then
PREFIX=$1 #
MASK=$2 #
DEV=$3 #
VLAN=$4 #
ip route del table main ${PREFIX}/${MASK} dev $DEV
RTN=$?
if [ $RTN -ne 0 ]
then
echo "Error:ip route del failed $RTN"
exit $RTN
fi
ip route flush cache
elif [ $# -eq 5 ]
then
PREFIX=$1 #
... | WU-ARL/ONLdaemons | swrouter/scripts/novirtual/swrd_del_route_main.sh | Shell | apache-2.0 | 784 |
#!/bin/bash
touch vars
rm vars
# MariaDB Node
MARIADB=`sshpass -p ${ssh_pass} ssh -o StrictHostKeyChecking=no vetmanager@vetmanager.cloudapp.net -p 50181 "hostname --ip-address"`
echo "export MARIADB=${MARIADB}" >> vars
# Redis Node
REDIS=`sshpass -p ${ssh_pass} ssh -o StrictHostKeyChecking=no vetmanager@vetmanager.... | mtenrero/vetManager | updateNodes.sh | Shell | apache-2.0 | 1,581 |
#!/usr/bin/env bash
VERSION=1.8.1
# parent pom
mvn gpg:sign-and-deploy-file \
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
-DrepositoryId=ossrh \
-DpomFile=pom.xml \
-Dfile=pom.xml
# core
mvn gpg:sign-and-deploy-file \
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
-Dre... | matthyx/carnotzet | deploy-central.sh | Shell | apache-2.0 | 3,168 |
#!/bin/bash
# This is the fifth of five scripts that install CLARA on a
# Raspberry Pi, assumed to be running Raspbian Stretch.
#
# They _should_ work in other Raspbian environments, but have not
# been tested. Proceed at your own risk.
#
# For more information, read the guide below:
# https://www.pyimagesearch.com/... | N03048839/spine-reader | install/install5.sh | Shell | apache-2.0 | 1,000 |
#!/bin/bash
set -e
set -x
cd libtrellis
cmake \
-DCMAKE_INSTALL_PREFIX=/ \
-DCMAKE_INSTALL_BINDIR='/bin' \
-DCMAKE_INSTALL_DATADIR='/share' \
-DCMAKE_INSTALL_DATAROOTDIR='/share' \
-DCMAKE_INSTALL_DOCDIR='/share/doc' \
-DCMAKE_INSTALL_INCLUDEDIR='/include' \
-DCMAKE_INSTALL_INFODIR='/share/info' \
-... | litex-hub/litex-conda-eda | bit/prjtrellis/build.sh | Shell | apache-2.0 | 1,023 |
#!/usr/bin/env bash
node ../../packages/teraslice/service.js -c ./teraslice-master-local.yaml > ./master.log 2>&1 &
pid=$!
echo ${pid} > master.pid
echo "Server PID: ${pid}"
echo "Follow logs with:"
echo " tail -f master.log | bunyan"
echo "Kill server with:"
echo ' kill $(cat master.pid)'
| terascope/teraslice | examples/k8s/run-ts-master.sh | Shell | apache-2.0 | 295 |
#!/bin/bash
xfce4-panel --quit
pkill xfconfd
rm -rf ~/.config/xfce4/panel
rm -rf ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
xfce4-panel
| dvdvideo1234/UbuntuBatches | Olimex-A20/Scripts/refresh-xfce4.sh | Shell | apache-2.0 | 153 |
pushd $(dirname ${BASH_SOURCE[0]}) > /dev/null
export BOUNDARY_SDK_HOME=$PWD
popd > /dev/null
export BOUNDARY_SDK_VERSION=$(egrep "<version>(.*)</version>" "$BOUNDARY_SDK_HOME/pom.xml" | head -1 | sed '-e s/<version>//' -e 's/<\/version>//' -e 's/[[:blank:]]//' | tr -d ' ')
export BOUNDARY_SDK_SCRIPT_DIR=$BOUNDARY_HOME... | boundary/boundary-event-sdk | env.sh | Shell | apache-2.0 | 557 |
#!/bin/bash
cf d -f hello-service-client
cf ds -f hello-service
cf disable-service-access hello-service
cf delete-service-broker -f Hello
cf d -f hello-service-broker
cf d -f hello-service | Sbodiu-pivotal/hello-service-broker | undeploy_broker.sh | Shell | apache-2.0 | 188 |
#!/bin/bash
set -e
if [[ -z $1 ]]; then
"I need a command!"
exit 1
fi
case "$1" in
install_docker)
if [[ -z $DOCKER_VERSION ]]; then
echo "DOCKER_VERSION needs to be set as an environment variable"
exit 1
fi
# TODO detect which docker version is already installed and skip
# uninsta... | rgrunber/docker-client | .travis.sh | Shell | apache-2.0 | 2,927 |
#!/bin/bash
#
# Copyright 2019 The Bazel 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 required by... | meteorcloudy/bazel | src/test/shell/integration/exec_group_test.sh | Shell | apache-2.0 | 22,530 |
#!/bin/bash
# Author:Tyson
# E-mail:admin#svipc.com
# Website:http://www.svipc.com
# Version:1.0.0 Aug-16-2015-12:28:58
# Notes:Autoscripts for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+
sed -i 's@^exclude@#exclude@' /etc/yum.conf
yum clean all
yum makecache
if [ "$CentOS_RHEL_version" == '7' ];then
yum -y insta... | LongTaiJun/Autoscripts | include/init_CentOS.sh | Shell | apache-2.0 | 7,905 |
#!/bin/bash
source "$(dirname "${BASH_SOURCE}")/lib/init.sh"
SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/..
CODEGEN_PKG=${CODEGEN_PKG:-$(cd ${SCRIPT_ROOT}; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../../../k8s.io/code-generator)}
verify="${VERIFY:-}"
${CODEGEN_PKG}/generate-groups.sh "deepcopy" \
git... | PI-Victor/origin | vendor/github.com/openshift/api/hack/update-deepcopy.sh | Shell | apache-2.0 | 711 |
#!/usr/bin/env bash
jvmargs="-Djava.net.preferIPv4Stack=true -Djgroups.tcp.address=${IP} -Djgroups.use.jdk_logger=true"
CONFIG="default-jgroups-tcp.xml"
if [[ "${IP}" != "127.0.0.1" ]]
then
CONFIG=default-jgroups-google.xml
cat ${CONFIG} \
| sed s,%BUCKET%,${BUCKET},g \
| sed s,%BUCKET_KEY%,${BUCKET_... | otrack/cloud-computing-hands-on | transactions/src/main/bin/run.sh | Shell | apache-2.0 | 520 |
#!/bin/bash
# shellcheck disable=SC1091
#
# 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 to in wr... | teamclairvoyant/hadoop-deployment-bash | tls/configure_jdk_tlsv1.2.sh | Shell | apache-2.0 | 1,629 |
#!/bin/bash
directory=`dirname $0`
dt=$(date +'%Y-%m-%d %H:%M:%S')
echo "Reboot at '$dt'"
echo "Kill old serial proxy"
$directory/KillSerialProxy.sh
sleep 1
echo "Start update"
$directory/Service/Update.sh
sleep 1
echo "Restart serial proxy"
$directory/RunSerialProxy.sh
| MaxMorgenstern/EmeraldAI | EmeraldAI/Application/ExecutionScripts/Cron_UpdateAndRebootSerialProxy.sh | Shell | apache-2.0 | 277 |
#!/usr/bin/env bash
if [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then
mvn deploy -DskipTests=true -P sign --settings settings.xml
fi
| jwtodd/Autumn | bin/deploy.sh | Shell | apache-2.0 | 134 |
#!/bin/bash
# Unpack Tools
# - Used to unpack packages and install base file system
set -e
set -u
. settings/config
. scripts/utils/utils.sh
if [ -n "${1-}" ]; then
FAKEROOT="${1}"
else
if [ -e "${FAKEROOT}" ]; then
echo "Fakeroot exists! Cleaning..."
cd "${BUILD_ROOT}/"
rm -rf "${F... | SnakeDoc/LiLi | scripts/utils/unpack.sh | Shell | apache-2.0 | 990 |
#!/bin/bash
PROGRAM=./partition
PROGRAM_WEIGHT=./partition_weight
PROGRAM_SOLUTION=./partition_solutions
# MPI_PATH=/usr/local/openmpi-1.6.5_gcc
# MPI_EXEC=$MPI_PATH/bin/mpiexec
MPI_EXEC=mpiexec
MODEL_SIZE=32
set -x
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MPI_PATH/lib
rm -rf input_$MODEL_SIZE
rm -rf output
rm -rf ... | avr-aics-riken/UDMlib | examples/cc/partition/partition_run.sh | Shell | bsd-2-clause | 1,675 |
#!/usr/bin/env bash
MASON_NAME=geometry
MASON_VERSION=0.5.0
MASON_HEADER_ONLY=true
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
https://github.com/mapbox/geometry.hpp/archive/v${MASON_VERSION}.tar.gz \
c6e53f0a74c8016365d414451beaa71032112a48
mason_extract_tar_gz
... | hydrays/osrm-backend | third_party/mason/scripts/geometry/0.5.0/script.sh | Shell | bsd-2-clause | 636 |
# Author : Jeonghoonkang, github.com/jeonghoonkang
# should run by sudo
docker run --detach \
--name nginx-proxy \
--publish 80:80 \
--publish 443:443 \
--volume /home/tinyos/devel/docker/nginx_proxy/nginx_certs:/etc/nginx/certs \
--volume /home/tinyos/devel/docker/nginx_proxy/nginx_vhost.d:/etc/n... | jeonghoonkang/BerePi | apps/docker/docker_compose/docker_proxcy_le.sh | Shell | bsd-2-clause | 1,484 |
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get install -y git nodejs
# Prevent some error messages, make /tmp writable
# see http://stackoverflow.com/questions/23822491/ruby-on-rails-permission-denied-when-using-rails-generate-controller-welcome
sudo chmod -R 1777 /tmp
# Fix a permission issue with leopard/rwt... | asm-products/invoicerio | vagrant/bootstrap.sh | Shell | bsd-2-clause | 544 |
#!/bin/bash
# Set up test binaries from test_relocs.c
# TODO(jvoung): Have a CHECK syntax like the LLVM-lit tests?
set -e
set -u
set -x
readonly arches="i686 x86_64 arm mips"
readonly TC_ROOT=${NACL_SDK_ROOT}/toolchain/linux_pnacl/bin
pushd test_binaries
for arch in ${arches}; do
OUT=${arch}
${TC_ROOT}/pnacl-cl... | jvoung/go-ld | test_binaries/test_func_sections.sh | Shell | bsd-3-clause | 939 |
#!/usr/bin/env bash
### bashrc.venv.sh
# note: most of these aliases and functions are overwritten by `we`
## Variables
function _setup_venv {
# _setup_venv() -- configure __PROJECTSRC, PATH, __VENV, _setup_venv_SRC()
# __PROJECTSRC (str): path to local project settings script to source
export __PR... | westurner/dotfiles | etc/bash/10-bashrc.venv.sh | Shell | bsd-3-clause | 7,361 |
#!/bin/bash
# --- using: GCC 4 ---
# set constants ----------------------------------------------------------------
COMPILE_OPTIONS="-c -x c++ -ansi -std=c++98 -pedantic -fno-gnu-keywords -fno-enforce-eh-specs -fno-rtti -O3 -ffast-math -mfpmath=sse -msse -Wall -Wextra -D TESTING"
# compile -----------------------... | hxa7241/powfast | powfast-cpp/build-gcc-cpp.sh | Shell | bsd-3-clause | 666 |
#!/bin/bash
# Doxygen directory
doxygenDir="/usr/local/bin"
# Set dirs
cmdDir=$(dirname $0)
baseDir="${cmdDir}/.."
tempDir="${baseDir}/build/doxygen"
distDir="${baseDir}/dist/ios"
# Copy proxy files to temp directory
rm -rf ${tempDir}
mkdir -p ${tempDir}
cp -r ${baseDir}/generated/ios-objc/proxies/* ${tempDir}
cp -... | CartoDB/mobile-sdk | scripts/generate-doxygen.sh | Shell | bsd-3-clause | 896 |
#!/bin/bash
# Copyright: 2017, Loic Esteve
# License: BSD 3 clause
# This script is used in Travis to check that PRs do not add obvious
# flake8 violations. It relies on two things:
# - computing a similar diff to what github is showing in a PR. The
# diff is done between:
# 1. the common ancestor of the l... | joblib/joblib | continuous_integration/flake8_diff.sh | Shell | bsd-3-clause | 3,497 |
#!/bin/bash
#SBATCH --account=nstaff
#SBATCH --constraint=knl
#SBATCH --core-spec=4
#SBATCH --image=docker:rcthomas/nersc-python-bench:0.3.2
#SBATCH --job-name=pynamic-cori-knl-shifter-012
#SBATCH --mail-type=FAIL
#SBATCH --mail-user=rcthomas@lbl.gov
#SBATCH --nodes=12
#SBATCH --ntasks-per-node=8
#SBATCH --output=logs/... | NERSC/nersc-python-bench | scripts/pynamic-cori-knl-shifter-012.sh | Shell | bsd-3-clause | 1,369 |
#!/bin/bash
which readlink 2>&1 > /dev/null
if [[ $? == 0 ]]; then
premakeDir=$(readlink -f $(dirname $0) )
else
premakeDir=$(dirname $0)
fi
premake="$premakeDir/bin/debug/premake4 --scripts=$premakeDir/src"
systemScript="--systemScript=$premakeDir/premake-system.lua"
hashFile=$premakeDir/hash.tmp
cd $premakeDir
fo... | annulen/premake-dev-rgeary | buildPremake.sh | Shell | bsd-3-clause | 1,768 |
#!/bin/sh
set -e
# do not use debug.c and debuglog.c, they #include <syslog.h>
# and splint does not like this include
# do not use configfile.c since it is a lex file from configfile.l
if [ $# -lt 1 ]
then
files=$(ls -1 src/*.c | grep -v debug | grep -v configfile)
else
files="$@"
fi
inc="-I. -Isrc -Isrc/PCSC -I/u... | vicamo/pcsc-lite-android | splint.sh | Shell | bsd-3-clause | 471 |
#!/bin/bash
# Installation script for MyTAP
SQLHOST='localhost';
SQLPORT=3306;
SQLSOCK=''
NOTESTS=0
NOINSTALL=0
FILTER=0
while [[ "${#}" > 0 ]]; do
case ${1} in
-u|--user)
SQLUSER="${2}";
shift
;;
-p|--password)
SQLPASS="${2}"
shift
... | hepabolu/mytap | install.sh | Shell | bsd-3-clause | 9,893 |
#!/bin/bash
rm $PREFIX/bin/activate $PREFIX/bin/deactivate
$PYTHON setup.py install
| pelson/raspberrypi-conda-recipes | recipes/conda-env/build.sh | Shell | bsd-3-clause | 86 |
#!/bin/bash
###############################################################################
# #
# Author: cyosp #
# Version: 1.0.1 ... | cyosp/MPA | src/MPAPO.bash | Shell | bsd-3-clause | 1,844 |
#!/bin/bash
function 0neGal/set-up-status-line {
# Hide the normal mode name
bleopt keymap_vi_mode_show=
function ble/prompt/backslash:0neGal/currentmode {
bleopt keymap_vi_mode_update_prompt=1
local mode; ble/keymap:vi/script/get-mode
case $mode in
(*n) ble/prompt/print $'\e[1m-- NORMAL --\e... | akinomyoga/ble.sh | memo/D1488.vim-mode-in-status.bash | Shell | bsd-3-clause | 1,482 |
#!/bin/sh
#
# Copyright (C) 2012, 2013 Internet Systems Consortium, Inc. ("ISC")
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS ... | WigWagCo/node-isc-dhclient | deps/isc-dhcp/bind/bind-expanded-tar/bin/tests/system/wildcard/clean.sh | Shell | isc | 1,119 |
#!/bin/sh
#######################################################################################################
#
#
# Script for downloading, upacking and launching the DIRAC4Grid suite on some grid CE of given VO.
#
#
#################################################################################################... | miroi/DIRAC_scripts | grid_runs/virtual_organizations/enmr_eu/1node/max_cpus/run_on_CE_1n.sh | Shell | mit | 7,187 |
#!/bin/bash -ex
# dummy-server.sh
# something for vocto clients to connect to,
# displays stream in a local window
gst-launch-1.0 \
tcpserversrc host=0.0.0.0 port=4953 ! \
tcpserversink host=0.0.0.0 port=4954
| xfxf/voctomix-outcasts | tests/coupler-server.sh | Shell | mit | 220 |
# Fail the build if this step fails
set -e
# Update the webdriver-screenshots folder of the current branch, as long as it's a push and not a savage- branch.
if [[ "$TRAVIS_PULL_REQUEST" == "false" && ! $TRAVIS_BRANCH =~ $SAVAGE_BRANCH ]]; then
echo -e "Starting to update skyux2.\n"
git config --global user.email ... | blackbaud/skyux2 | scripts/visual-baseline.sh | Shell | mit | 1,110 |
#!/bin/bash
# Helper routines for building source libraries
# source this script to set up library building functions and vars
#
# You'll later need any relevant libraries stored at $ARCHIVE_PATH (see below)
# Get needed utilities
TERRYFY_DIR=$(dirname "$BASH_SOURCE[0]}")
source $TERRYFY_DIR/travis_tools.sh
# Get abs... | eevans/squash-deb | plugins/brotli/brotli/terryfy/library_installers.sh | Shell | mit | 3,555 |
#!/bin/bash
set -eu
declare -A aliases=(
[4]='latest'
)
defaultVariant='debian'
self="$(basename "$BASH_SOURCE")"
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
versions=( */ )
versions=( "${versions[@]%/}" )
# sort version numbers with highest first
IFS=$'\n'; versions=( $(echo "${versions[*]}" | sort -rV) ); un... | infosiftr/ghost | generate-stackbrew-library.sh | Shell | mit | 2,941 |
#!/bin/sh
sudo cp -v "${DIR}/octavo/wallpapers/OSD3358-SM-RED-Background-Circuits.png" "${tempdir}/opt/scripts/images/wallpaper.png"
sudo chown root:root "${tempdir}/opt/scripts/images/wallpaper.png"
sudo cat "${tempdir}/home/debian/.config/pcmanfm-qt/lxqt/settings.conf" | sed s/beaglebg.jpg/wallpaper.png/ > ${DIR}/t... | beagleboard/image-builder | octavo/octavo-lxqt.sh | Shell | mit | 425 |
#!/bin/sh
# This script sets up Adobe AIR environment.
. "${CB_SDK_SCRIPT:-$(dirname "$0")}/common.sh"
# -----------------------------------------------------------------------------
# Call out to setup Adobe AIR.
#
. "${CB_SDK_SETUP_SCRIPT}/setup_air.sh"
common_success | ChartBoost/air | scripts/setup/setup_all.sh | Shell | mit | 274 |
#!/bin/sh
#
# Control script grant/revoke access to X for the ATI External Events Daemon
#
# Distro maintainers may modify this reference script as necessary to conform
# to their distribution policies.
#
# Copyright (c) 2006, ATI Technologies Inc. All rights reserved.
#
#
# Parameters:
# $1 is a keyword, either "... | Scorpio92/linux_kernel_3.18.5 | drv/packages/RedFlag/authatieventsd.sh | Shell | gpl-2.0 | 2,691 |
#!/bin/sh
#
# Author: Ilya Storozhilov
# Description: Main CI-cycle script
# Copyright (c) 2013-2014 EPAM Systems
#
# This file is part of Nfstrace.
#
# Nfstrace 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... | ailyasov/nfstrace_test | ci/ci_build.sh | Shell | gpl-2.0 | 10,793 |
#!/bin/sh
start_time=`date +'%d/%m/%y %H:%M:%S'`
export KERNELDIR=`readlink -f .`
export RAMFS_SOURCE=`readlink -f $KERNELDIR/ramfs`
#export USE_SEC_FIPS_MODE=true
if [ "${1}" != "" ];then
export KERNELDIR=`readlink -f ${1}`
fi
RAMFS_TMP="/home/yank555-lu/temp/tmp/ramfs-source-sgn3"
. $KERNELDIR/.config
echo "...... | yank555-lu/N3-CM-Unified | build_kernel.sh | Shell | gpl-2.0 | 2,557 |
#!/bin/bash
#
# todo:
# - thresholds
# - couch response time
# - make CURL/URL/DBLIST_EXCLUDE vars configurable
# - move load_nagios_utils() to helper library so we can use it from multiple scripts
start_time=$(date +%s.%N)
CURL='curl -s --netrc-file /etc/couchdb/couchdb.netrc'
URL='http://127.0.0.1:5984'
TMPFILE... | Alster-Hamburgers/leap_platform | puppet/modules/site_check_mk/files/agent/local_checks/couchdb/leap_couch_stats.sh | Shell | gpl-3.0 | 3,301 |
# Put lvm-related utilities here.
# This file is sourced from test-lib.sh.
# Copyright (C) 2007, 2008 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v... | unsound/parted-freebsd | tests/t-lvm.sh | Shell | gpl-3.0 | 2,823 |
#!/bin/sh
# Ensure that cp -a and cp --preserve=context work properly.
# In particular, test on a writable NFS partition.
# Check also locally if --preserve=context, -a and --preserve=all
# does work
# Copyright (C) 2007-2012 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/... | homer6/gnu_coreutils | tests/cp/cp-a-selinux.sh | Shell | gpl-3.0 | 4,081 |
#! /bin/bash
#
# terminal_test.sh
#
# VT100 terminal validation script
# Use this script when evaluating a new terminal for use with the vt100.sh
# library to ensure that it will be 100% compatible.
#
# This file is part of Sosaria Rebourne. See authors.txt for copyright
# details.
#
# Sosaria Rebourne is free software... | qbradq/sosaria-rebourne | tools/terminal_test.sh | Shell | gpl-3.0 | 3,286 |
rm -rf Makefile.in aclocal.m4 autom4te.cache config.guess config.h.in config.sub configure depcomp install-sh ltmain.sh m4 missing groonga-token-filter-yatof.pc packages/rpm/centos/groonga-token-filter-yatof.spec packages/rpm/fedora/groonga-token-filter-yatof.spec Makefile config.log config.h libtool stamp-h1 packages/... | naoa/groonga-token-filter-yatof | clean.sh | Shell | lgpl-2.1 | 877 |
LIBS=ffmpeg-$FFMPEG_VERSION-win32-shared/bin/*.dll
7z x ffmpeg-$FFMPEG_VERSION-win32-shared.7z $LIBS
mkdir -p com/googlecode/javacv/cpp/windows-x86/
cp $LIBS com/googlecode/javacv/cpp/windows-x86/
jar cvf ffmpeg-$FFMPEG_VERSION-windows-x86.jar com/
rm -Rf com/
| nragot/super-lama-video-editor | librairies/javacv-cppjars/build_ffmpeg-windows-x86.sh | Shell | apache-2.0 | 261 |
#!/bin/bash
function buildEnvironment(){
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ ${SOURCE} != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE ... | guidj/irc | scripts/build-env.sh | Shell | apache-2.0 | 907 |
#!/bin/bash
#
# 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 to in writing, software
# distri... | GeorgeL1/openstack-deploy | ubuntu/etc/setup-bootstrap.sh | Shell | apache-2.0 | 4,465 |
#! /bin/bash
# Database Configuration
export DBNAME=deepdive_smoke
export PGUSER=${PGUSER:-`whoami`}
export PGPASSWORD=${PGPASSWORD:-}
export PGPORT=${PGPORT:-5432}
export PGHOST=${PGHOST:-localhost}
| feiranwang/deepdive | examples/smoke/env.sh | Shell | apache-2.0 | 202 |
#!/bin/sh
if [ -z $2 ]
then
echo "Usage: script/setup <application name> <main module package name>"
echo "example: ./cli/personalize_proj_working.sh CountdownApp com.cmuse13.countdownapp.countdownmodule"
echo "<application name> is the display name of your application"
echo "<main module package name>... | aristiden7o/MyStarterApp | cli/personalize_proj.sh | Shell | apache-2.0 | 4,712 |
#!/bin/bash
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0.
# 2014 Guoguo Chen
# Create denominator lattices for MMI/MPE training, with SGMM models. If the
# features have fMLLR transforms you have to supply the --transform-dir option.
# It gets any speaker vectors from the ... | jmolina116/kaldi-yesno-tutorial | steps/make_denlats_sgmm.sh | Shell | apache-2.0 | 7,955 |
#! /usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Licen... | adamjshook/accumulo | assemble/bin/build_native_library.sh | Shell | apache-2.0 | 2,396 |
#!/bin/bash
fw_depends java scala sbt | kellabyte/FrameworkBenchmarks | frameworks/Scala/unfiltered/install.sh | Shell | bsd-3-clause | 38 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.