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
VERSION="0.1.1"
SYSTEM_CONFIG="/etc/chronicle.cfg"
USER_CONFIG="$HOME/.chronicle.cfg"
if [ "$EDITOR" -eq ]; then
EDITOR="vim + +startinsert"
fi
${CHRONICLE_DIR:="$HOME/.chronicle"}
DATE_FORMAT="%Y/%m/%d/%H:%M:%S"
TMP_ENTRY="/tmp/chronicle.cfg"
TMP_ENTRY_ORIG="/tmp/chronicle.cfg.empty"
ENCRYPTION="FA... | NorfairKing/chronicle | chronicle.sh | Shell | gpl-2.0 | 7,525 |
#!/usr/bin/env sh
#
# Copyright 2012 Amazon Technologies, Inc.
#
# Licensed under the Amazon Software License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://aws.amazon.com/asl
#
# This file is distributed on an "AS IS" BASIS, ... | ucberkeley/moocchat | turk/samples/image_category/generateResultsSummary.sh | Shell | gpl-3.0 | 723 |
#!/bin/bash
for if in $(find ~/.ferris -name "*.db")
do
echo "Verifying database $if..."
db_verify $if
done
| monkeyiq/ferris | apps/ferris-verify-dot-ferris-databases.sh | Shell | gpl-3.0 | 117 |
#!/bin/bash
python AnalyzeSimulation.py --paralog1 YDR418W --paralog2 YEL054C --simnum 73 > YDR418W_YEL054C_MG94_nonclock_Sim73_PrintScreen.txt
| xjw1001001/IGCexpansion | Simulation/ShFiles/MG94_YDR418W_YEL054C_sim73.sh | Shell | gpl-3.0 | 145 |
#!/usr/bin/env bash
# Copyright: Christoph Dittmann <github@christoph-d.de>
# License: GNU GPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html
#
# Converts Japanese text into Romaji. The quality of the output
# heavily depends on kakasi and mecab. Kanji readings might be a bit
# off.
# shellcheck source=gett... | Christoph-D/Japanese-Tools | romaji/romaji.sh | Shell | gpl-3.0 | 1,013 |
# Test for flaky tab failures
rm -rf 3*
echo b > 3ob
echo g > 3og
echo 'g' >> 3 g
echo 'g' >> 3 g
echo g >> 3 g
echo g >> 3 g
echo g >> 3 g
echo 'g' >> 3 g
echo 'g' >> 3 g
echo 'g' >> 3 g
echo 'g' >> 3 g
rm 3 b
mv 3 out3
| ardagnir/athame | test/shell/inst3.sh | Shell | gpl-3.0 | 222 |
#!/bin/bash
# SE-VPN script
echo "Updating system"
apt-get update
#DEBIAN_FRONTEND=noninteractive apt-get -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold"
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
echo ipt... | bjdag1234/SEVPNsetup | setup.sh | Shell | gpl-3.0 | 15,227 |
#!/bin/bash
# SWiM - a semi-Lagrangian, semi-implicit shallow water model in
# Cartesian coordiates
# Copyright (C) 2008-2012 Christian Lerrahn
#
# 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, ... | jsfan/swim | scripts/plotcombine.sh | Shell | gpl-3.0 | 2,557 |
#!/usr/bin/env bash
set -xe
# Override the git branch by a manual value
if [ -n "$GIT_BRANCH_MANUAL" ]; then
GIT_BRANCH="$GIT_BRANCH_MANUAL"
fi
if [ -z "$GIT_BRANCH" ]; then echo "\$GIT_BRANCH not set"; exit 1; fi
# go to root directory of Neos.Neos.Ui
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ... | neos/neos-ui | Build/Jenkins/update-neos-ui-compiled.sh | Shell | gpl-3.0 | 2,095 |
#!/usr/bin/env php
<?php
/*
+-----------------------------------------------------------------------+
| bin/update.sh |
| |
| This file is part of the Roundcube Webmail client ... | xrg/roundcubemail | bin/update.sh | Shell | gpl-3.0 | 6,865 |
#!/bin/bash
# This script gets the latest GitHub releases for the specified projects.
if [[ -z "$GITHUB_TOKEN" ]]; then
echo "Set the GITHUB_TOKEN env variable."
exit 1
fi
URI=https://api.github.com
API_VERSION=v3
API_HEADER="Accept: application/vnd.github.${API_VERSION}+json"
AUTH_HEADER="Authorization: token ${GI... | mmatoscom/Dockerfiles | jessfraz/latest-versions.sh | Shell | gpl-3.0 | 4,323 |
#/bin/bash
if [ ! -d packageinfo ] ; then
echo "Script must be run from the project base dir"
exit 1 ;
fi
mkdir -p dist
source packageinfo/package.info.vars
echo "Previous build number": $buildNumber
declare -i newbuildNumber=${buildNumber}+1
buildNumber=${newbuildNumber}
echo "Updated build number: " ${buildNumb... | dispiste/gvSIG-rexternal | create-gvspkg.sh | Shell | gpl-3.0 | 1,918 |
#!/bin/bash
exec java -Dwicket.configuration=deployment -jar <<commandFile>> "$@" | metarelate/terminology-server | moduleFiles/configtemplates/tsc.sh | Shell | gpl-3.0 | 84 |
#!/usr/bin/env bash
#
# Copyright (C) 2004-2021 Savoir-faire Linux Inc.
#
# Author: Emeric Vigier <emeric.vigier@savoirfairelinux.com>
# Alexandre Lision <alexandre.lision@savoirfairelinux.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General ... | savoirfairelinux/ring-daemon | bin/jni/make-swig.sh | Shell | gpl-3.0 | 2,021 |
#!/bin/bash
##
#### Dependencies : ####
## piFmRds [https://github.com/ChristopheJacquet/PiFmRds]
## netcat
## jackd2
## jack-stdout
## sox
####
#### Usage : ####
## Launch this script
## Create a netjack master on the network
## Send some sound
## -- Enjoy your FM radio !
## Send piFmRds rds update commands to [p... | wargreen/netjack_pifm | netjack_fm.sh | Shell | gpl-3.0 | 1,962 |
#!/bin/sh
##
## (Nautilus)
## SCRIPT: 01_pstree.sh
##
## PURPOSE: Runs the 'pstree' command putting the output in a text file.
## Shows the text file in a text file browsing utility or
## a text editor.
##
## HOW TO USE: Right-click on the name of any file (or directory) in a
## Nautilus d... | kernt/linuxtools | gnome3-shell/nautilus-scripts/System/File Info/PROCESSlists/Pstree.sh | Shell | gpl-3.0 | 3,870 |
#!/usr/bin/env bash
#
# Install the Origo Desktop Controller on an empty Ubuntu Server
if [ "$(id -u)" != "0" ]; then
echo "ERROR! You must execute the script as the 'root' user."
exit 1
fi
# NOTE: When run with vagrant this script is present in /tmp
echo '==> Copying configuration to /etc'
rsync -rlptv /vagr... | jakobadam/origo-desktops | conf/install.sh | Shell | gpl-3.0 | 2,195 |
#!/bin/bash
# 3.6.1 Ensure iptables is installed (Scored)
BENCHMARKNUM='cis_benchmark_3_6_1'
RESULT=
PARAMS=(
iptables
)
for P in ${PARAMS[@]}
do
RESULT=$( /bin/rpm -qa $P )
if [[ ! $RESULT ]]
then
break
fi
done
if [[ $RESULT ]]
then
echo "${BENCHMARKNUM}=passed"
else
echo "${BENCHMARKNUM}=fai... | proletaryo/puppet-ciscentos6 | files/scripts/benchmark-3.6.1.sh | Shell | gpl-3.0 | 328 |
#!/bin/bash
PWD=`pwd`
SAVE=$PWD'/'
NEW_PERM=$SUDO_USER:$SUDO_USER
if [ -z $BUILDDIR ]; then
BUILDDIR=~/nova-build
fi
if [ -z $1 ]; then
BRANCH="master"
else
BRANCH="$1"
fi
echo "Build Dir is $BUILDDIR"
check_err() {
ERR=$?
if [ "$ERR" -ne "0" ] ; then
echo "Error occurred during build process; terminating... | altf4/Nova | debian/novaInstallHelper.sh | Shell | gpl-3.0 | 3,722 |
xmlstarlet tr ./test.xsl test2.xml
| oliverthered/dlink-stats | test.sh | Shell | gpl-3.0 | 35 |
#!/bin/bash
#Parte de automatización "todo en 1".
#Este script es utilizado para instarlar en la máquina que voy a utilizar en amazon todo lo necesario para ejecutar la
#aplicación de Transparente ugr.
#para ello lo primero que tenemos que haces es conectarme a la máquina mediante ssh.
ssh -i transparente.pem ubuntu... | TransparenciaUGR/Proyecto-IV | scripts/servicioAmazonEc2.sh | Shell | gpl-3.0 | 1,540 |
#!/bin/sh
if [[ ! -d /opt/publicbox/share/board ]]; then
echo "You have to install the imageboard first!"
echo "Run (as root):"
echo "\t/opt/publicbox/bin/install_publicbox.sh /opt/publicbox/conf/publicbox.conf imageboard"
else
echo -n "Imageboard admin password: "
read -s BOARDPASSWORD
echo
... | whunder/Publicbox | publicbox/bin/board-autoconf.sh | Shell | gpl-3.0 | 1,037 |
#!/bin/bash
# Copyright (C) 2011-2014 ToFalando
#
# Script incialmente desenvolvido por
# Emerson Luiz ( eluizbr@tofalando.com.br )
#Atualizado por
# Guilherme Matos ( guilherme@boxfacil.com.br )
source funcoes.sh
# Configurar o Branch
#BRANCH='devel'
clear
echo " > Instalar BoxFacil IPBX"
echo "======... | gu1lhermematos/VOXIPBX | install/install-asterisk.sh | Shell | gpl-3.0 | 2,655 |
#!/bin/bash
set -e
pegasus_lite_version_major="4"
pegasus_lite_version_minor="7"
pegasus_lite_version_patch="0"
pegasus_lite_enforce_strict_wp_check="true"
pegasus_lite_version_allow_wp_auto_download="true"
. pegasus-lite-common.sh
pegasus_lite_init
# cleanup in case of failures
trap pegasus_lite_signal_int INT
trap... | elainenaomi/sciwonc-dataflow-examples | dissertation2017/Experiment 1B/logs/w-10-B/20161125T151505+0000/00/00/mediancpu_0_ID0000004.sh | Shell | gpl-3.0 | 1,237 |
#!/bin/sh
script_root_dir=`dirname "$0"`
config="$script_root_dir/backup-restore.config"
site_path="$1"
if [ -z "$site_path" ]
then
echo "Usage: $0 /path/to/your/site"
exit 1
fi
if [ -f "$config" ]
then
. "$config"
else
echo "Sorry, I couldn't find a 'backup-restore.config' file. Copy backup-restore.config.e... | governmentbg/opendata-cms | backup-restore/restore.sh | Shell | gpl-3.0 | 2,498 |
#!/bin/bash
outdir="dat/B3"
data="$outdir/5.dat"
fitxenergies="$outdir/5_energies.dat"
#outfile="$outdir/energies.dat"
#outplot="$outdir/energies.eps"
PG=
#PG=" -pg "
mkdir -p $outdir
gcc -O3 -o autocorr autocorr.c -lm || exit 1
gcc -O3 $PG -o ising ising.c -lm || exit 1
L[0]="20"
L[1]="40"
L[2]="100"
N[0]="400"
N[... | zeehio/ising | scripts/PartB3.sh | Shell | gpl-3.0 | 1,430 |
#!/usr/bin/env bash
#
# This script builds a container which, when run, starts a Pbench Server.
#
# Note: successfully running this script required adding AUDIT_WRITE (for the
# operation of sshd) and CAP_SETFCAP (for the installation of httpd) to
# the list of default capabilities in /etc/containers/con... | distributed-system-analysis/pbench | server/pbenchinacan/container-build.sh | Shell | gpl-3.0 | 4,653 |
#!/bin/bash -e
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )
LIBS=${DIR}/lib
exec ${DIR}/lib/ld.so --library-path $LIBS ${DIR}/bin/initdb "$@" | syncloud/3rdparty | postgresql-10/bin/initdb.sh | Shell | gpl-3.0 | 159 |
#!/bin/bash
java -Djava.library.path=../../../../bin -cp ../../../../lib/mocket.jar:$NOMADS_HOME/util/lib/util.jar:../../../../build/antcache us.ihmc.mockets.test.DataRecv $1
| ihmc/nomads | mockets/test/java/scripts/linux/runDataRecv.sh | Shell | gpl-3.0 | 178 |
#!/bin/bash
if [ -z "${SKY_HOME}" ]; then
SKY_HOME=$(dirname $BASH_SOURCE)/..
fi
cd ${SKY_HOME}
nohup java -Dspring.config.location=file:conf/sky-worker.yml -jar sky-worker.jar 1> /dev/null 2>&1 & | Vondom/sky | sky-distribution/src/main/resources/bin/start-worker.sh | Shell | gpl-3.0 | 200 |
#!/bin/sh
version_file=`dirname $0`/VERSION
usage()
{
echo "Usage $0" 1>&2
echo "Options:" 1>&2
echo " -h print this help" 1>&2
exit 1
}
while getopts "h" option; do
case $option in
*)
usage
;;
esac
done
if [ -f $version_fil... | stratumn/go | version.sh | Shell | mpl-2.0 | 545 |
#!/bin/bash
cd extension
zip -FS -r ../firefox-extension-gnome-theme-tweak.xpi *
cd -
| gnome-integration-team/firefox-gnome-tweak | make-xpi.sh | Shell | mpl-2.0 | 87 |
# source this script to get the CMAKE env var
cmake_dir=cmake
cmake_bin=$cmake_dir/bin/cmake
cmake_url="https://cmake.org/files/v3.9/cmake-3.9.2-Linux-x86_64.sh"
# Work with travis cache
if [[ ! -f $cmake_bin ]]; then
mkdir -p $cmake_dir
wget $cmake_url -O $cmake_dir/install-cmake.sh
chmod +x $cmake_dir/in... | D-I-S-K-U-S/TOP-1 | scripts/travis-install-cmake.sh | Shell | mpl-2.0 | 432 |
HOSTNAME='FINDTracker'
IP=$(getent hosts "${HOSTNAME}" | awk '{ print $1 }')
PLATFORMIO_UPLOAD_FLAGS="--auth=supersecret" platformio run --silent --target uploadfs --upload-port ${IP}
| TheMegaTB/FINDTracker | OTA-SPIFFS.sh | Shell | agpl-3.0 | 184 |
#!/usr/bin/env bash
ROBOPOP="$(cd "$(dirname "$0")" ; pwd)"
PROJECT="$(dirname "${ROBOPOP}")"
TMP="${PROJECT}/data/tmp"
EPISTEMICS_BASE_URL='http://localhost:8888'
if [ -n "$1" ]
then
EPISTEMICS_BASE_URL="$1" ; shift
fi
mkdir -p "${TMP}"
curl -L -sS -D - 'https://github.com/robopop/epistemics/raw/master/Installa... | robopop/docker | robopop/load-default-data.sh | Shell | agpl-3.0 | 507 |
#set -x
CWD="$(pwd)"
#This is to avoid permission problems
echo "export HADOOP_USER_NAME=hdfs" >> ~/.bashrc
echo "export HADOOP_USER_NAME=hdfs" >> /home/vagrant/.bashrc
#This is to set the native hadoop library path for java to find
echo "export LD_LIBRARY_PATH=/usr/lib/hadoop/lib/native/:$LD_LIBRARY_PATH" >> ~/.bash... | DemandCube/Scribengin | vagrant/scripts/setup.sh | Shell | agpl-3.0 | 1,520 |
#!/bin/bash
##
## @brief @(#) See README. Drop database CLI tests.
##
## @file 20_run_delete.sh
##
## -----------------------------------------------------------------------------
## Enduro/X Middleware Platform for Distributed Transaction Processing
## Copyright (C) 2009-2016, ATR Baltic, Ltd. All Rights Reserved.
## ... | endurox-dev/endurox | atmitest/test048_cache/20_run_delete.sh | Shell | agpl-3.0 | 7,049 |
#!/bin/bash
tempDirOD="OpenDataAN"
urlAmdtOD="http://data.assemblee-nationale.fr/static/openData/repository/LOI/amendements_legis/Amendements_XIV.json.zip"
AmdtODFile="Amendements_XIV.json"
rm -rf $tempDirOD
mkdir -p $tempDirOD
cd $tempDirOD
wget $urlAmdtOD
unzip $AmdtODFile.zip
cd ..
python parseAmdtsFromANOpen... | regardscitoyens/nosdeputes.fr | batch/amendements/runAmdtOD.sh | Shell | agpl-3.0 | 329 |
#!/bin/bash
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../"
hookfile="$REPO_DIR/.git/hooks/pre-commit"
if [[ -f $hookfile ]]; then
echo "'$hookfile' already exists - aborting" 1>&2
exit 1
fi
echo '#!/bin/bash
patch=$(git clang-format --diff)
if [[ "$patch" =~ "no modified files to format" ||... | backmari/moose | scripts/install-format-hook.sh | Shell | lgpl-2.1 | 544 |
#!/bin/bash
####################
# Detta script körs på maskinen som har mysqldatabasen för Privatläkarportalen.
#
# Usage: ./webcert_usage_part1_pp.sh <database_user> <database_password> <pp_database_name>
#
# Två textfiler med databasdumpar skapas i current working directory, wc_usage_query_result.txt och pp_allavard... | sklintyg/tools | webcert-usage/pp-users/webcert_usage_part1_pp.sh | Shell | lgpl-3.0 | 1,186 |
valgrind --tool=memcheck --leak-check=full --show-reachable=yes --show-reachable=yes ./ruletable -t '{
"ControlRule":[
{"Id":1,"SrcZoneIds":[1,2],"SrcIpgrpIds":[3,4],"DstZoneIds":[5,6],"DstIpgrpIds":[7,8],"ProtoIds":[0,9],"Action":["AC_ACCEPT","AC_AUDIT"]},
{"Id":2,"SrcZoneIds":[2,2],"SrcIpgrpIds":[2,4],"DstZoneId... | itgb/ac_toolkit | ruletable/src/valgrindtest.sh | Shell | lgpl-3.0 | 1,002 |
#!/bin/bash
#
# A simple script to update my computer's various programs.
# This script can be added to crontab
#
# At the moment it updates:
# * vim programs
# * brew updates
# * brew upgrates
# * a cleanup after all operations
# update vim plugins
echo "updating vim plugins"
cd ~/.dotfiles/.vim/bundle
fo... | laplacesdemon/mac-cleanup | update.sh | Shell | unlicense | 632 |
#!/bin/bash
set -eux -o pipefail
mkdir -p "${HOME}/src/github.com/pyenv"
pushd "${HOME}/src/github.com/pyenv"
if [ ! -d "${HOME}/.pyenv" ]; then
git clone https://github.com/pyenv/pyenv "${HOME}/.pyenv"
fi
cd "${HOME}/.pyenv"
git pull
popd
mkdir -p "${HOME}/.pyenv/plugins"
pushd "${HOME}/.pyenv/plugins"
if [ ! -d... | carterjones/nix-config | templates/packages/pyenv/shared.sh | Shell | unlicense | 521 |
#!/bin/bash
#
# This script supports the inplace upgrade to AEM64 on a consolidated
#
# Prerequisites Upgrade:
# * Place package pre-upgrade-tasks-content-cq62-1.2.4.zip in the defined s3 bucket
# * Place crx2oak jar file crx2oak-1.8.6-all-in-one.jar in the defined s3 bucket
#
# Prerequisites Post-Upgrade:
# * Place fo... | shinesolutions/aem-aws-stack-builder | scripts/repository-upgrade/aem62-to-aem64/upgrade_consolidated.sh | Shell | apache-2.0 | 31,020 |
#!/bin/bash
cp ./newlisp /usr/bin/ | Yrp/mysql2hive | builder/armory/install/ubuntu/64bit/setup.sh | Shell | apache-2.0 | 35 |
#!/bin/bash
snap=../bin/snap
snap_opts="--histogram"
files="rtm.pre.raw snapshot-f.108.raw snapshot-f.109.raw"
echo "selecting snap : $snap"
for f in $files
do
prefix=`basename $f .raw`
echo -n "file $f ... "
$snap $snap_opts $f > ${prefix}.log
echo "done"
done
$snap $snap_opts snapshot-f.108.raw s... | so07/snap | test/run_snap.sh | Shell | apache-2.0 | 353 |
#!/bin/bash
# install jnsaf and nativedroid
source `which virtualenvwrapper.sh`
install_nativedroid()
{
workon nativedroid
cd nativedroid
protoc nativedroid/protobuf/java_signatures.proto --python_out=.
protoc nativedroid/protobuf/taint_result.proto --python_out=.
protoc nativedroid/protobuf/summar... | arguslab/Argus-SAF | tools/scripts/install.sh | Shell | apache-2.0 | 871 |
#!/bin/bash
source ./image_name.sh
CONTAINER_NAME=registry.ng.bluemix.net/wkulhanek/$IMAGE_NAME
# cf ic run -d -p 80:80 -p 22:22 -v 48in48:/persistent_data $CONTAINER_NAME
cf ic run -d -p 80:80 -p 22:22 $CONTAINER_NAME
| wkulhanek/48in48 | run_server_remote.sh | Shell | apache-2.0 | 221 |
#!/bin/sh
# Copyright 2012 Mohammed Alrokayan
#
# 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 agre... | alrokayan/hadoop-openstack-centos | 06-conf-allVMs/05-sync.sh | Shell | apache-2.0 | 650 |
echo -e "\033[1;33m\033[40m \033[0m"
echo -e "\033[1;33m\033[40m Installing the Atom text editor \033[0m"
echo -e "\033[1;33m\033[40m \033[0m"
wget -O ~/Downloads/atom-amd64.deb https://atom.io/download/deb
sudo dpkg -i ~/Downlo... | erikjandevries/ConfigLM17ML | prep-atom.sh | Shell | apache-2.0 | 546 |
#!/bin/bash
# Copyright 2019 The TensorFlow 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... | ppwwyyxx/tensorflow | tensorflow/tools/ci_build/release/ubuntu_16/gpu_py2_full/nonpip.sh | Shell | apache-2.0 | 2,195 |
#!/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_PHP55() {
pushd ${oneinstack_dir}/src > /dev/null
if ... | lj2007331/lnmp | include/php-5.5.sh | Shell | apache-2.0 | 11,946 |
#!/bin/bash
Install_MySQL57() {
pushd ${asn_dir}/src
id -u mysql >/dev/null 2>&1
[ $? -ne 0 ] && useradd -M -s /sbin/nologin mysql
[ ! -d "${mysql_install_dir}" ] && mkdir -p ${mysql_install_dir}
mkdir -p ${mysql_data_dir};chown mysql.mysql -R ${mysql_data_dir}
if [ "${dbInstallMethods}" == "1" ]; then
... | asntechsolution/lamp-lemp | include/mysql-5.7.sh | Shell | apache-2.0 | 7,221 |
#!/bin/bash
#
# __mkaimal__
checktmux()
{
tmux list-session
if [ $? -eq 0 ]
then
tsession_name=$(tmux list-session | awk 'NR==1{print $1}'| cut -d: -f1)
else
tsession_name=tmulti
tmux new-session -d -s tmulti
fi
}
startmux()
{
checktmux
if [ $@ -eq 0 ]
then
echo ' usage()'
else
tmux attac... | mkaimal/shell | bin/tmulti.sh | Shell | apache-2.0 | 551 |
#!/bin/bash
set -e
SCRIPT=$(readlink -f "$0")
SCRIPT_DIR=$(dirname "$SCRIPT")
ROOT_DIR=$(dirname "$SCRIPT_DIR")
cd $SCRIPT_DIR
cd ..
# We need to spawn and kill process and need to be root for this to work.
sudo -E su <<EOF
export GOOGLE_APPLICATION_CREDENTIALS="$KOKORO_KEYSTORE_DIR/73609_cloud-sharp-jenkins-compu... | GoogleCloudPlatform/google-cloud-dotnet-debugger | .kokoro/run_integration_tests.sh | Shell | apache-2.0 | 536 |
#!/bin/bash
set -e
build_and_push() {
local slug="$1"
echo "* building $slug..."
docker build --pull --no-cache -t "$slug" .
echo "* pushing $slug..."
docker push "$slug"
}
main() {
local tag slug yn
tag="$(jq -r '.version' ./package.json)"
slug="terascope/teraslice-base:v$tag"
... | jsnoble/teraslice | docker-base/build-and-push.sh | Shell | apache-2.0 | 651 |
#!/bin/bash
usage()
{
cat << EOF
usage: $CALL_SIGNATURE <options>
The script normalizes all files under a certain directory.
OPTIONS:
[-h]
this message
-t <target directory>
target directory
[-n]
add MOBBL namespace to output
EOF
}
TARGETDIR=
ADD_NS=
while getopts "ht:n" OPTION
do
cas... | sven-m/thesis-specification | normalize-dir.sh | Shell | apache-2.0 | 798 |
#!/bin/bash -eux
set -e
cd $(dirname $0)
. ../../commands/common.sh
. ./do_common.sh
function filter() {
while read -r line
do
mc=$(echo $line | cut -d' ' -f1)
if echo $mc | grep "$(mc_name)$" &> /dev/null && echo $mc | grep -v 'template-' &> /dev/null
then
echo "$line"
fi
done
}
function convert... | neilellis/easydeploy | providers/do/do_to_cf.sh | Shell | apache-2.0 | 695 |
TARGET_KEY="#network.host: localhost"
REPLACEMENT_VALUE="network.host: localhost"
CONFIG_FILE=/etc/elasticsearch/elasticsearch.yml
wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
echo 'deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main' | sudo tee /etc/apt... | Upande/MaMaSe | util/elastic.sh | Shell | apache-2.0 | 650 |
#!/bin/bash
#
# Deploy a jar, source jar, and javadoc jar to Sonatype's snapshot repo.
#
# Adapted from https://coderwall.com/p/9b_lfq and
# http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/
SLUG="stephanenicolas/toothpick"
JDK="oraclejdk8"
BRANCH="master"
set -e
if [ "$TRAVIS... | stephanenicolas/toothpick | .buildscript/deploy_snapshot.sh | Shell | apache-2.0 | 941 |
#!/usr/bin/env bash
# Update repository to fetch latest OpenJDK
sudo add-apt-repository -y ppa:openjdk-r/ppa
sudo apt-get -y update
# Install required packages
sudo apt-get -y install openjdk-8-jdk maven
# Build the JobManager application
cd /vagrant/jobmanager
mvn clean package
# Updating hosts
echo "192.168.23.24... | venicegeo/pz-jobmanager | config/jm-bootstrap.sh | Shell | apache-2.0 | 657 |
#!/bin/bash -x
oc process --local -o yaml --insecure-skip-tls-verify \
-n ${NAMESPACE} \
-f "${ADDITIONAL_YAML_PATH}" \
-p SAFE_BRANCH="${SAFE_BRANCH}" \
-p SAFE_PROJECT="${SAFE_PROJECT}" \
-p BRANCH="${BRANCH}" \
-p PROJECT="${PROJECT}" \
-p LAGOON_GIT_SHA="${LAGOON_GIT_SHA}" \
-p NAMESPACE=${NAMESPA... | amazeeio/lagoon | images/kubectl-build-deploy-dind/scripts/exec-additional-yaml.sh | Shell | apache-2.0 | 442 |
#!/bin/bash
for i in $(tugboat droplets | grep node | awk '{print $NF}' | sed 's/)//g'); do
echo tugboat destroy -c -i $i
done
| cattleio/stampede | docs/do-demo/delete-all.sh | Shell | apache-2.0 | 132 |
# -*- bash -*-
# gshuf () {
# shuf "$@"
# }
# Uses a jq regex to select node/nodes
# function aal () {
# match="$1"
# # list instances for ssh
# jq --version >/dev/null 2>&1
# RV=$?
# if [ "$RV" != "0" ] ; then
# echo "The jq tool isn't present" 1>&2
# return 2
# fi
# r... | pcn/startup | linux/.bash.d/40_ssh_aliases.sh | Shell | apache-2.0 | 3,041 |
#!/bin/bash
# Contact Catalogues-DB
status_code=$(curl -s -o /dev/null -w "%{http_code}" http://sp.int3.sonata-nfv.eu:27017/)
if [[ $status_code != 20* ]] ;
then
echo "Error: Response error $status_code"
exit -1
fi
echo "Success: Catalogues-DB found"
# Contact Gatekeeper
status_code=$(curl -s -o /dev/null -... | sonata-nfv/son-tests | int-gtkpkg-sp-catalogue/tests.sh | Shell | apache-2.0 | 1,126 |
#!/usr/bin/env bash
set -e
find . -name '*.pyc' -delete
find . -name "*.js" -not \( \
-path "./static/*" -o \
-path "*/bower_components/*" -o \
-path "./node_modules/*" -o \
-path "*/jquery.cookie.js" \) -print0 | xargs -0 jshint
flake8 .
coverage erase
coverage run manage.py test --keepdb "$@"
cover... | ejucovy/django-opendebates | run_tests.sh | Shell | apache-2.0 | 350 |
#!/bin/bash
set -ex
yum makecache
# Append hosts if they aren't already in there
if ! [[ $(< /etc/hosts) == *"$1"* ]]; then
echo "$1" >> /etc/hosts
fi
# enable EPEL and get sshpass if it's not already installed
if ! sshpass; then
if ! yum list installed epel-release > /dev/null; then
curl -O 'http://dl.fedor... | ContainerSolutions/microservices-infrastructure | vagrant/provision.sh | Shell | apache-2.0 | 1,456 |
#!/bin/bash
#
# Copyright 2015 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... | rohitsaboo/bazel | src/test/shell/bazel/runfiles_test.sh | Shell | apache-2.0 | 1,665 |
#!/bin/bash
bin=`dirname "$0"`
bin=`cd "$bin"; pwd`
DIR=`cd $bin/../; pwd`
. "${DIR}/../bin/config.sh"
. "${DIR}/bin/config.sh"
echo "========== preparing ${APP} data =========="
JAR="${DIR}/target/SVMApp-1.0.jar"
CLASS="SVM.src.main.scala.SVMDataGen"
OPTION=" ${APP_MASTER} ${INOUT_SCHEME}${INPUT_HDFS} ${NUM_OF_EXAM... | ibmsoe/spark-bench | SVM/bin/gen_data.sh | Shell | apache-2.0 | 1,531 |
#!/usr/bin/env bash
set -o nounset -o errexit
export PATH=/usr/sbin:/usr/bin:$PATH
IFNAME=$(ip route ls | grep -e 'default via' | awk '{ print $5 }')
echo $(ip addr show ${IFNAME} | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
| vitosans/ansible-dcos-aws-playbook | community/roles/dcos-bootstrap/files/ip-detect.sh | Shell | apache-2.0 | 253 |
#!/usr/bin/env bash
# see http://michal.karzynski.pl/blog/2015/04/19/packaging-django-applications-as-docker-container-images/
scripts/wait_for_it.sh db:5432 -- echo "db is up"
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic --noinput
touch .env
python scripts/setup_script.py
... | goodes/fit4school | start_server.sh | Shell | apache-2.0 | 572 |
#!/bin/sh
node_modules/mosca/bin/mosca -v --http-static . \
--http-port 8080 \
--parent-port $BROKER_PORT_1883_TCP_PORT \
--parent-host $BROKER_PORT_1883_TCP_ADDR \
| bunyan | Sanji-IO/sanji-mqtt-inspector | server.sh | Shell | apache-2.0 | 190 |
#!/bin/bash
# Install MariaDB Galera Cluster
#
# $1 - number of nodes; $2 - cluster name;
#
NNODES=${1-1}
MYSQLPASSWORD=${2:-""}
IPPREFIX=${3:-"10.0.0."}
DEBPASSWORD=${4:-`date +%D%A%B | md5sum| sha256sum | base64| fold -w16| head -n1`}
IPLIST=`echo ""`
MYIP=`ip route get ${IPPREFIX}70 | awk 'NR==1 {print $NF}'`
MYNAME... | juliosene/azure-nginx-php-mariadb-cluster | mariadb-galera-install.sh | Shell | apache-2.0 | 3,453 |
#!/bin/bash
set -e
export PROJECT="kubeflow-ci"
export GCP_ZONE="us-central1-a"
export GCP_USER="$(gcloud config list account --format "value(core.account)" )"
export GCP_PROJECT="$(gcloud config list project --format "value(core.project)" )"
export CLUSTER_NAME="kfctl-arr-${REPO_NAME}-${BUILD_ID}"
export CLUSTER_VER... | kubeflow/kubeflow | testing/kfctl/scripts/create_existing_cluster.sh | Shell | apache-2.0 | 1,238 |
#!/bin/bash
radia_main() {
# needed for fftw and uti_*.py
codes_dependencies srw
codes_download ochubar/Radia
# committed *.so files are not so good.
find . -name \*.so -o -name \*.a -o -name \*.pyd -exec rm {} \;
rm -rf ext_lib
perl -pi - cpp/py/setup.py <<'EOF'
s/\bfftw/sfftw/;
... | radiasoft/download | installers/rpm-code/codes/radia.sh | Shell | apache-2.0 | 888 |
#!/bin/bash
if [ ! -e lib/anna-3.3.jar ];then
wget -P lib/ https://mate-tools.googlecode.com/files/anna-3.3.jar
fi
if [ ! -e lib/minorthird.jar ];then
wget -P lib/ http://sourceforge.net/projects/minorthird/files/MinorThird%20Jar/minorthird-jar_20080611/minorthird_20080611.jar/download
cd lib
mv download minorthird.j... | weizh/geolocator-1.0 | geo-locator/install.sh | Shell | apache-2.0 | 882 |
#!/bin/sh
#
# Copyright (c) SAS Institute Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | sassoftware/rbm | distro/cleanup.sh | Shell | apache-2.0 | 1,044 |
echo "---------------------------------------------------"
echo "---------------------TEST--------------------------"
./buffer ../test/test1
echo "---------------------------------------------------"
./buffer ../test/test2
echo "---------------------------------------------------"
./buffer ../test/test3
echo "---------... | sharan-wisc/756-project | van_ginneken/src/complete.sh | Shell | apache-2.0 | 1,057 |
#!/bin/bash
set -eu
function usage {
echo "Usage: $0 [OPTION]..."
echo "Run Glance's test suite(s)"
echo ""
echo " -V, --virtual-env Always use virtualenv. Install automatically if not present"
echo " -N, --no-virtual-env Don't use virtualenv. Run tests in local environment"
echo " -... | litong01/python-monasca | run_tests.sh | Shell | apache-2.0 | 7,868 |
#!/bin/bash
docker rm -f fglab fglab-mongo
docker network rm fglab
IFACE="br0"
ALLOWED_SUBNET=$(ip addr show dev $IFACE | grep -oP '\d+\.\d+\.\d+\.\d+/\d+')
sudo iptables -D DOCKER -i $IFACE -p tcp --dport 5080 ! -s $ALLOWED_SUBNET -j DROP
| windj007/fglab-scripts | stop_fglab.sh | Shell | apache-2.0 | 242 |
#!/bin/bash -e
aws ecr get-login --no-include-email | bash
#docker push 954636985443.dkr.ecr.us-west-2.amazonaws.com/pipelineai/predict-gpu:1.5.0
#docker push 954636985443.dkr.ecr.us-west-2.amazonaws.com/pipelineai/predict-cpu:1.5.0
docker push pipelineai/predict-gpu:1.5.0
docker push pipelineai/predict-cpu:1.5.0
#... | fluxcapacitor/pipeline | predict/push.sh | Shell | apache-2.0 | 866 |
#!/usr/bin/env bash
# make sure we're up to date
sudo apt-get update -qq
# install go get dependencies
sudo apt-get install -qq mercurial
# install backend dependencies
sudo add-apt-repository -y ppa:fkrull/deadsnakes
sudo apt-get update -qq
sudo apt-get install -qq libonig-dev python3.4 python3.4-dev
# install qml... | crr0004/lime | tasks/ci/install.sh | Shell | bsd-2-clause | 490 |
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
JIRA_URL=http://127.0.0.1:2990/jira/secure/Dashboard.jspa
cd "$DIR"
rm jira.log
atlas-run-standalone --product jira --http-port 2990 -B -nsu -o --threads 2.0C </dev/zero >jira.log 2>&1 &
printf "Waiting for JIRA to start respinding on $JIRA_URL "
unti... | stevencarey/jira | tests/start-jira.sh | Shell | bsd-2-clause | 418 |
#!/bin/sh
#
# @(#) $Id$
#
# Creates a kext symbol file for debugging
#
# Created for the ext2fsx project: http://sourceforge.net/projects/ext2fsx/
#
# Copyright 2004 Brian Bergstrand.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following condit... | georghe-crihan/ext2fsx | test/mkksym.sh | Shell | bsd-2-clause | 2,658 |
#RUBY AND PYTHON
export PATH=~/anaconda/bin:$HOME/.rvm/bin:/usr/local/bin:$PATH
export PATH=~/.local/bin:$PATH
# zsh下面脚本无效, 手动加
export PATH=/Users/lhr/.rvm/rubies/ruby-2.2.3/bin:$PATH
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# ON GOING PROJE... | lhrkkk/dotfiles_old_2015_11_01 | pubrc/mypath.sh | Shell | bsd-2-clause | 662 |
#!/bin/sh
# external mounter script sample, e.g /root/ntfs-3g.sh
# fstab line:
# /root/ntfs-3g.sh /usr/home/web/downloads external rw 0 0
#
usage()
{
printf "[jail] external mounter script sample\n"
printf " -j jname (optional)n"
printf " -o options\n"
printf " -p full (hoster) path for mountpoint in jail\n"... | cbsd/cbsd | share/examples/jails-fstab/ntfs-3g.sh | Shell | bsd-2-clause | 612 |
#!/bin/sh
CLASSPATH=~/Sandbox/appengine-java-sdk-1.8.0/lib/user/appengine-api-1.0-sdk-1.8.0.jar
CLASSPATH=$CLASSPATH:~/Applications/gaeshell.jar
CLASSPATH=$CLASSPATH:~/Sandbox/appengine-java-sdk-1.8.0/lib/appengine-remote-api.jar
java -cp $CLASSPATH com.inpun.alt.gaecl.AppEngineShell $@
| inpun/gaecl | bin/gaeshell.sh | Shell | bsd-2-clause | 290 |
java -cp lib/gnat.jar gnat.tests.RemoteNerGeneRepTest
| miroculus/GNAT | scripts/testRemoteNerGenerep.sh | Shell | bsd-2-clause | 54 |
#!/bin/bash
set -e
set -v
# Install dependencies to create collectd
sudo yum install -y epel-release
# Install collectd for plugin management
# Install Java dependencies
sudo yum install -y java-11-openjdk
sudo yum install -y collectd collectd-write_riemann
sudo systemctl enable collectd
sudo systemctl start collect... | jhajek/packer-vagrant-build-scripts | packer/scripts/proxmox/core-rocky/post_install_prxmx_install-collectd.sh | Shell | bsd-3-clause | 321 |
#!/bin/bash
export PYTHONPATH=.
./runauto_nag_common.sh
. venv/bin/activate
# Clean the log files
python -m auto_nag.log --clean
# Bug fixed without assignee
# very common
python -m auto_nag.scripts.no_assignee
# Bug closed with the leave open keyword
# very common
python -m auto_nag.scripts.leave_open
# has a S... | mozilla/bztools | runauto_nag_hourly.sh | Shell | bsd-3-clause | 2,711 |
#!/bin/bash
# Wait until network is ready
while ! ping -c 1 baxter > /dev/null
do
sleep 1
done
# Prepare FIFO for logging. Perhaps this FIFO is already prepared by LaunchLogger
mkdir /tmp/supervisor
mkfifo /tmp/supervisor/launch_logger_fifo
# Kill previous roslaunch
tmux kill-session -t gripper
# roslaunch in tmu... | start-jsk/jsk_apc | demos/sphand_ros/sphand_driver/scripts/launch_left_gripper.sh | Shell | bsd-3-clause | 875 |
# Heroku Web bootstrap script
# Updates the Web root to public/
# @link https://github.com/winglian/Heroku-PHP
# echo "Installing PECL APC"
# /app/php/bin/pecl install apc
# echo "[apc]" >> /app/php/php.ini
# echo "extension=apc.so" >> /app/php/php.ini
# echo "[memcache]" >> /app/php/php.ini
# echo "extension=memcac... | HelloFax/hellosign-php-sdk-demo | heroku/web-boot.sh | Shell | bsd-3-clause | 1,440 |
#!/bin/bash
pushd $LOCAL_TMP_DIR
status=0
rm -t -f u22_warnings.log
fw -p $LOCAL_TEST_DIR/u22_cfg.py
for file in u22_warnings.log
do
sed -i -r -f $LOCAL_TEST_DIR/filter-timestamps.sed $file
diff $LOCAL_TEST_DIR/unit_test_outputs/$file $LOCAL_TMP_DIR/$file
if [ $? -ne 0 ]
then
echo The above discrepanc... | gartung/fnal-art | art/test/Framework/Services/Message/u22t.sh | Shell | bsd-3-clause | 381 |
#!/usr/bin/env bash
# Copyright (c) 2013-2016 Tuomo Tanskanen <tuomo@tanskanen.org>
# Usage: Copy 'gitlab.rb.example' as 'gitlab.rb', then 'vagrant up'.
set -e
# these are normally passed via Vagrantfile to environment
# but if you run this on bare metal they need to be reset
GITLAB_HOSTNAME=${GITLAB_HOSTNAME:-192.16... | gilmararaujo/GitLab | install-gitlab.sh | Shell | bsd-3-clause | 3,214 |
#!/bin/sh
# Generated file, master is Makefile.am
. ${srcdir:-.}/common.sh
infile="$srcdir/images/quad-lzw-compat.tiff"
outfile="o-tiffcrop-doubleflip-quad-lzw-compat.tiff"
f_test_convert "$TIFFCROP -F both" $infile $outfile
f_tiffinfo_validate $outfile
| ric2b/Vivaldi-browser | update_notifier/thirdparty/wxWidgets/src/tiff/test/tiffcrop-doubleflip-quad-lzw-compat.sh | Shell | bsd-3-clause | 254 |
#! /usr/bin/env bash
#
# Created by alex devkral@web.de
#
# Copyright (c) 2012
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above copyrigh... | devkral/cloneme | src/share/sh/backuprestore.sh | Shell | bsd-3-clause | 3,492 |
#!/bin/bash
chmod 755 startmongo.sh
sudo docker build -t ${DOCKER_REGISTRY}/mongo:${TAG} .
sudo docker push ${DOCKER_REGISTRY}/mongo:${TAG}
| reza-rahim/microservice | ansible/mesos-app/mongo/docker/build.sh | Shell | mit | 141 |
#!/usr/bin/env bash
# make sure we have up-to-date packages
apt-get update
## vagrant grub-pc fix from: https://gist.github.com/jrnickell/6289943
# parameters
echo "grub-pc grub-pc/kopt_extracted boolean true" | debconf-set-selections
echo "grub-pc grub2/linux_cmdline string" | debconf-set-selections
echo "grub-pc gr... | nypl-spacetime/nypl-warper | lib/vagrant/provision.sh | Shell | mit | 2,321 |
# == Name
#
# consul.watch
#
# === Description
#
# Manages a consul.watch.
#
# === Parameters
#
# * state: The state of the resource. Required. Default: present.
# * name: The name of the watch. Required.
# * type: The type of watch: key, keyprefix, services, nodes, service, checks, event. Required.
# * key: A key to m... | wffls/waffles | resources/consul_watch.sh | Shell | mit | 4,778 |
#!/bin/bash
# run danger-brewing hub.
# specifying config path to be relative from /lib/index.js.
# node-config would otherwise: NODE_CONFIG_DIR=/config
sudo NODE_PATH=lib/ node lib/index.js
| jonpitch/danger-brewing-hub | run.sh | Shell | mit | 192 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.