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
sudo find -iname __pycache__ -exec rm -vrf {} \;
sudo find -iname "*.pyc" -exec rm -vrf {} \;
zip -r "../$1.zip" *
echo "#! /usr/bin/env python" | cat - "../$1.zip" > "../$1"
rm "../$1.zip"
chmod +x "../$1"
| edieguez/zsh-config | bin/py2bin.sh | Shell | gpl-2.0 | 220 |
#!/bin/bash -e
ROOTPATH=$(pwd)
docker build -t ecell4_docs ${ROOTPATH}
docker run --rm -e LOCAL_UID=$(id -u $USER) -e LOCAL_GID=$(id -g $USER) --mount type=bind,src=${ROOTPATH}/artifacts,dst=/artifacts -it ecell4_docs:latest
| ecell/ecell4-notebooks | misc/run.sh | Shell | gpl-2.0 | 226 |
# ----------------------------------------------------------------------------
# Converte todas as letras para minúsculas, inclusive acentuadas.
# Uso: zzminusculas [texto]
# Ex.: zzminusculas NÃO ESTOU GRITANDO # via argumentos
# echo NÃO ESTOU GRITANDOO | zzminusculas # via STDIN
#
# Autor: Aurel... | faustovaz/funcoeszz | zz/zzminusculas.sh | Shell | gpl-2.0 | 803 |
#! /bin/sh
. ../../testenv.sh
for f in test_block; do
synth --std=08 $f.vhdl -e $f > syn_$f.vhdl
analyze syn_$f.vhdl
done
clean
echo "Test successful"
| tgingold/ghdl | testsuite/synth/issue965/testsuite.sh | Shell | gpl-2.0 | 158 |
#!/bin/sh
disk0=`diskutil info disk0 | grep "Media Name" | awk '{ print $6 }'`
if [[ $disk0 == "SSD" ]]; then
echo "<result>SSD</result>"
exit 0
fi
echo "<result>HDD</result>"
exit 0
| rjquigley/Casper-Scripts | scripts/hddorssd.sh | Shell | gpl-2.0 | 197 |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="gnome-screenshot"
(test -f $srcdir/src/gnome-screenshot.c) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}
... | docent-net/gnome-screenshot | autogen.sh | Shell | gpl-2.0 | 572 |
#!/usr/bin/env bash
set -e
TARGETDIR=$1
FWNAME=$2
if [[ -z $FWNAME ]]; then
FWNAME=rpi0_badge-$(git -C $BR2_EXTERNAL_FHUNLETH_PATH describe --dirty)
fi
FWUP_CONFIG=$BR2_EXTERNAL_FHUNLETH_PATH/board/rpi0_badge/fwup.conf
FWUP=$HOST_DIR/usr/bin/fwup
FW_PATH=$BINARIES_DIR/$FWNAME.fw
# Build the firmware image (.f... | fhunleth/rpi_experiments_br | board/rpi0_badge/post-createfs.sh | Shell | gpl-2.0 | 396 |
#! /bin/bash
# Copyright (c) 2012 - 2022 nerdopolis (or n3rdopolis) <bluescreen_avenger@verzion.net>
#
# This file is part of RebeccaBlackOS.
#
# 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... | n3rdopolis/rebeccablackos | externalbuilders/rebuild_iso_with_nonfree_firmware.sh | Shell | gpl-2.0 | 15,568 |
#!/bin/bash
# Update USB IDs optmisied v0.3
# Param Defaults
QUIET=false
FORCE=false
# Get any params defined
for i in "$@"
do
case $i in
-q) QUIET=true ;;
-f) FORCE=true ;;
-*) echo "UNKNOWN PARAMETER ${i#*=}"; exit ;;
esac
done
# The URL to download
USBIDS_URL="http://www.linux-usb.org/usb... | moebrowne/update-usbids-optimized | update-usbids.sh | Shell | gpl-2.0 | 2,398 |
#!/bin/sh
###############################################
#
# Nagios script to check I/O statistics
#
# NOTE: Requires kernel 2.4 or higher
#
# See usage for command line switches
#
# Created: 2007-06-27 (i.yates@uea.ac.uk)
# Updated: 2007-07-27 (i.yates@uea.ac.uk)
# Updated: 2007-10-29 (i.yates@uea.ac.uk) - Fixed t... | popgo/nagios-plugin-diskio | check_iostat.sh | Shell | gpl-2.0 | 9,837 |
#!/bin/bash
#sound output
declare -a CARD_NAME=("living" "living_sub" "bucatarie" "headset" "dormitor" "baie" "beci" "pod")
# living zone is mentioned twice to power on both amp and sub relays
declare -a RELAY_NAME=("living_music_relay" "living_sub_relay" "living_music_relay" "none" "dormitor_music_relay" "living_musi... | dan-cristian/haiot | scripts/common/include_cards.sh | Shell | gpl-2.0 | 1,621 |
#!/bin/bash
pushd httpd
docker build -t centos-httpd:my .
popd
| ssbiox/sparkling-docker | build-httpd.sh | Shell | gpl-2.0 | 64 |
#!/bin/bash
# =====================================================================================================
# Copyright (C) steady.sh v1.2 2016 iicc (@iicc1)
# =====================================================================================================
# This program is free software: you can redistrib... | CyberSecurityBot/Cyber | steady.sh | Shell | gpl-2.0 | 22,251 |
#!/bin/sh
# This file defines the JAVA_HOME and PATH pointing to the proper JDK10:
# Oracle JDK10 EA b42
export JAVA_HOME=~/apps/jdk-10/
echo "JAVA_HOME: $JAVA_HOME"
PATH=$JAVA_HOME/bin/:$PATH
export PATH
| bourgesl/mapbench | bin/env_jdk10.sh | Shell | gpl-2.0 | 209 |
#!/bin/sh
export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"
cd /root/bin/logtransfer
#Initialization
conf=logtransfer.conf #Config file
source ./$conf
source ./functions.conf
#Colors
red='\e[0;31m'
yellow='\e[1;33m'
green='\e[1;32m'
blue='\e[1;34m'
NC='\e[0m' # No Color
##------PRE-... | nekoyokoshima/logtransfer | logtransfer.sh | Shell | gpl-2.0 | 2,864 |
#!/bin/sh
. ./runtests-common.sh
touch log.txt
touch responses.txt
touch config.txt
runqabin() {
../qmail-autoresponder -N "$@" .
}
set_option() {
unset_option $1
(
sed -e '/^$/,$d' < config.txt
echo "$1=$2"
echo
sed -e '0,/^$/d' < config.txt
) > config.new
mv con... | bruceg/qmail-autoresponder | runtests-config+msg-file.sh | Shell | gpl-2.0 | 575 |
#!/bin/bash
# check if we have networks
if [ "`ls config/network 2>>/dev/null`" != "" ]
then
# create virtual networks
for virtual_network_xml in config/network/*.xml
do
echo Processing $virtual_network_xml
network_name=$(basename --suffix=".xml" $virtual_network_xml)
if virsh net-info $network_nam... | MasterprojectOpenStack2015/sourcecode | installation/create_virtual_networks.sh | Shell | gpl-2.0 | 634 |
#!/bin/sh
test_description='merge conflict in crlf repo
b---M
/ /
initial---a
'
. ./test-lib.sh
test_expect_success setup '
git config core.autocrlf true &&
echo foo | append_cr >file &&
git add file &&
git commit -m "Initial" &&
git tag initial &&
git branch side &&
echo lin... | haglerchristopher/automation | src/3rd_party/git/t/t6033-merge-crlf.sh | Shell | gpl-2.0 | 947 |
#!/bin/bash
~/arduino/arduino --pref build.path="/home/farit/code/clock/clock/build" --verify ~/code/clock/clock/clock.ino
| faritka/arduino-clock-atmega1284-midi | clock/build.sh | Shell | gpl-2.0 | 124 |
#!/bin/bash
# Name: Net Sync Push to Local servers
# Push backup data from local host to local servers
# Copyright 2020 Faraz Corporation (Author: Sajad Dadashi)
# LGPL v2.0
# This script should be call from netSync.sh
# to define required envirovmental variables.
# Usage: ns_pushLocal.sh
if [ -z ${LOCAL_STORAGE+x} ]... | bijanbina/Bijoux | Tweaks/Backup/ns_pushLocal.sh | Shell | gpl-3.0 | 859 |
#!/bin/bash
# WOL should be generally disabled so that the machine can be shut down
# normally w/o the need to disable WOL manually.
# Otherwise, you may wonder why the box is powering on again after
# power off.
/sbin/ethtool -s $1 wol g
| lpirl/autosuspend | autosuspend.post/21-disable_wol.sh | Shell | gpl-3.0 | 241 |
#!/bin/bash
echo "--------------------------------------------"
echo "Post Coding Computer Shell Script"
echo "v0.1 Terry Jones"
echo "Script initialising - this may take some time"
echo "--------------------------------------------"
echo "The current user is: " $USER
# Identifies current user and creates two folders o... | Arataki-Coders/initscript | postinstallfull.sh | Shell | gpl-3.0 | 1,624 |
#!/usr/bin/env bash
#
# Copyright (C) 2017 BROADSoftware
#
# This file is part of HADeploy
#
# HADeploy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | BROADSoftware/hadeploy | lib/hadeploy/plugins/kafka/helpers/setup.sh | Shell | gpl-3.0 | 1,256 |
#!/bin/bash
for name in $(cat common_host_names.txt);do
host $name.<domain> | grep "has address" | cut -d " " -f1,4
done
| mcardacci/tools_of_the_dark_arts | shell/dns/brute_force_host_names.sh | Shell | gpl-3.0 | 126 |
#!/usr/bin/env bash
# Copyright © 2019 by The qTox Project Contributors
#
# This file is part of qTox, a Qt-based graphical interface for Tox.
# qTox 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,... | sudden6/qTox | bootstrap.sh | Shell | gpl-3.0 | 6,786 |
#Set working directories.
DIR=/opt/ovr
currentDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
speed=4
site=www.google.com
desiredInternalIP=192.168.1.1
desiredInternalMask=24
doDHCP=1
failuresBeforeReboot=1
#Source the functions script.
. "$currentDir/functions.sh"
if [[ ! -d $DIR ]]; then
mkdir $DIR
fi
#... | wayneworkman/OpenVPNRouter | install.sh | Shell | gpl-3.0 | 1,249 |
#!/bin/bash
#Gnieark https://blog-du-grouik.tinad.fr 2017
#GNU GPL V2 license
#
#This script generate the random alias: Create it on postfix bdd
#
#First and only param is the mail "GOTO"
if [ -z "$1" ]
then
echo "Error, argument missing. usage: $0 mail@domaine.com"
exit 2
fi
MYSQLPATH="/usr/bin/mysql"
MY... | gnieark/trash-email-alias | execute/genalias.sh | Shell | gpl-3.0 | 2,068 |
#!/bin/bash
gcc -Wall -g -pg b64.c -o b64.out
cat testfile.dat | ./b64 > /dev/null
echo "-------------------"
echo "Profile"
echo "-------------------"
gprof -b b64.out
gcc -Wall -O3 b64.c -o b64.out
echo "-------------------"
echo "b64"
echo "-------------------"
time cat testfile.dat | ./b64.out > /dev/null
ec... | djboris9/tinyutils | scripts/check.sh | Shell | gpl-3.0 | 686 |
#!/bin/bash
USER_STATUS_FILE=/opt/setupuser.status
TOOLCHAIN_STATUS_FILE=/opt/rpi-toolchain.status
TOOLCHAIN_PATH=$(cat ${TOOLCHAIN_STATUS_FILE})
if [ -f ${USER_STATUS_FILE} ]; then
exit 0
fi
if [ -n "${SSH_PASSWORD}" ]; then
echo "root:${SSH_PASSWORD}" | chpasswd
fi
if [ -n "${SSH_AUTHORIZED_KEY}" ]; then... | cburki/docker-armhf-dev | scripts/setupusers.sh | Shell | gpl-3.0 | 1,730 |
#! /bin/bash
################################################################################
# generate-ssl-cert.sh - Generate an SSL certificate for a given virtual host
# Creation : 13 Sep 2011
# Time-stamp: <Tue 2011-09-13 21:02 svarrette>
#
# Copyright (c) 2011 Sebastien Varrette <Sebastien.Varrette@uni.lu>
# ... | ULHPC/puppet-openssl | files/generate-ssl-cert.sh | Shell | gpl-3.0 | 7,139 |
#!/bin/sh
nosetests --with-coverage --cover-package=nport --cover-html --cover-html-dir=coverage
| bmachiel/python-nport | run_tests.sh | Shell | gpl-3.0 | 98 |
#!/bin/bash
#
# Copyright (C) 2019 Nethesis S.r.l.
# http://www.nethesis.it - nethserver@nethesis.it
#
# This script is part of NethServer.
#
# NethServer 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, eithe... | NethServer/nethserver-lang | build.sh | Shell | gpl-3.0 | 3,005 |
#! /bin/bash
#echo hi
/usr/bin/systemctl suspend
| bijanbina/Bijoux | Tweaks/PHP/Sleep/sleep.sh | Shell | gpl-3.0 | 49 |
#!/bin/bash
echo -n 'Running Doxygen ... '
doxygen Doxyfile
echo 'Done'
#echo -n 'Running Epydoc ... '
#epydoc --html -o ../../Documents/epydoc/ --parse-only -q --name Acidentes_Rodovias --graph all --docformat plaintext app
#echo 'Done'
echo -n 'Running Pylint ... '
pylint app --output-format=html --ignore=tests> ... | josepedro/acidentes_em_rodovias_refatoracao | acidentes_em_rodovias/docfiles.sh | Shell | gpl-3.0 | 537 |
#!/bin/sh
# Fedora 26 Post Install Script
# Repos
# Install Fedy
sudo sh -c 'curl https://www.folkswithhats.org/installer | bash'
## Google Chrome
su -c 'cat << EOF > /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome - \$basearch
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
e... | Dshoe/linux-post-install | fedora/fedora-post-install.sh | Shell | gpl-3.0 | 2,684 |
#!/bin/bash
set -ex
BASE_PATH=$(pwd)
MW_INSTALL_PATH=$BASE_PATH/../mw
cd $MW_INSTALL_PATH
# Namespace related settings
echo 'define("NS_TRAVIS", 998);' >> LocalSettings.php
echo 'define("NS_TRAVIS_TALK", 999);' >> LocalSettings.php
echo '$wgExtraNamespaces[NS_TRAVIS] = "Travis";' >> LocalSettings.php
echo '$wgExtraN... | kylethayer/bioladder | wiki/extensions/SemanticMediaWiki/tests/travis/update-configuration-settings.sh | Shell | gpl-3.0 | 4,329 |
#!/bin/bash
SRCDIR_CB=/ci/DNSCore/ContentBroker/src/
SRCDIR_RT=/ci/DNSCore/RegressionTestCB/src/
INSTALLER=target/installation
rm $INSTALLER -rf
mkdir -p $INSTALLER
mkdir $INSTALLER/conf
#cp src/main/bash/install.sh $INSTALLER/conf
cp $SRCDIR_CB/main/xml/beans.xml.acceptance-test.ci $INSTALLER/conf/beans.xml
cp $SRC... | da-nrw/DNSCore | RegressionTestCB/src/main/bash/packageRegressTester.sh | Shell | gpl-3.0 | 1,225 |
#!/bin/bash
#
# CentOS 7 (centos7) PHP Stack - HTTPd24 Proxy Server (shellfile)
# Copyright (C) 2016-2017 Stafli
# Luís Pedro Algarvio
# This file is part of the Stafli Application Stack.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public ... | solict/docker-high-performance-php-stack | centos7/shellfiles/httpd24_proxy.sh | Shell | gpl-3.0 | 1,208 |
sudo tlmgr update --self
sudo tlmgr update --all
exit $?
| Yixf-Education/configure_Linux | 02_software_gui/03_texlive_update.sh | Shell | gpl-3.0 | 57 |
#!/bin/bash
cd ..
ant jar
rm -rf build
echo "**********************************************"
echo "* Done *"
echo "* *"
echo "**********************************************"
echo "Your build jar is in dist directory"
echo "Use java -jar $... | LLL2yu/parkalot | config_scripts/build.sh | Shell | gpl-3.0 | 390 |
#!/usr/bin/env bash
. ./setdir.sh
# TYPE_PARAMS='--ignorableFields A02,AQN,BGT,BUF,CFI,CNF,DGM,DRT,EST,EXP,FFP,FIN,LAS,LCS,LDO,LEO,LET,MIS,MNI,MPX,NEG,NID,OBJ,OHC,ONS,ONX,PLR,RSC,SRC,SSD,TOC,UNO,VIT,WII --ignorableRecords STA$a=SUPPRESSED'
TYPE_PARAMS='--emptyLargeCollectors --marcxml'
NAME=ddb
MARC_DIR=${BASE_INPUT_D... | pkiraly/metadata-qa-marc | catalogues/ddb.sh | Shell | gpl-3.0 | 384 |
#!/bin/sh
# This script is intend to be run as a cron job (every day for ex) to purge
# old pastes.
cd /pasteme
pastedir="$(python3 -c 'import config; print(config.pastedir)')"
timeout="$(python3 -c 'import config; print(config.timeout)')"
find "$pastedir" -type f -mtime +"$timeout" -exec rm {} \;
| cym13/pasteme | scripts/purge-old-pastes.sh | Shell | gpl-3.0 | 301 |
#!/bin/bash
########################################################################
# Post Install (pi): lightweigth Debian « distribution »
#
# Copyright (C) 2015, 2016 Christophe Delord
# http://www.cdsoft.fr/pi
#
# This file is part of Post Install (PI)
#
# PI is free software: you can redistribute it and/or modif... | CDSoft/pi | scripts/xinit.sh | Shell | gpl-3.0 | 2,075 |
rm -r queries/ mount/
mkdir queries
mkdir mount
./db-install.sh | mharlan/joinFS | demo/joinfs-reset.sh | Shell | gpl-3.0 | 63 |
#!/bin/bash
sbatch /n/holylfs/LABS/edwards_lab/ashultz/HFWGReseq/whole-genome-reseq/PreProcessing/01_run_FastqToAlignedBAM.sbatch /n/holylfs/LABS/edwards_lab/ashultz/HFWGReseq/rawdata/161110_D00742_0151_BC9DJ6ANXX/Lane7.indexlength_6/Fastq CC_01 CGATGT 1 C9DJ6ANXX 7 2016-11-10
sbatch /n/holylfs/LABS/edwards_lab/ashult... | ajshultz/whole-genome-reseq | PreProcessing/01_submit_FastqToAlignedBAM_CCCP.sh | Shell | gpl-3.0 | 8,524 |
cd micore_tools/$1/initramfs/sbin
chmod 775 busybox
ln -fs busybox [
ln -fs busybox [[
ln -fs busybox awk
ln -fs busybox cat
ln -fs busybox chmod
ln -fs busybox chown
ln -fs busybox cp
ln -fs busybox cpio
ln -fs busybox cut
ln -fs busybox date
ln -fs busybox dmesg
ln -fs busybox echo
ln -fs busybox expr
ln -fs busybox ... | redmaner/kernel_tools | scripts/install_busybox_initramfs.sh | Shell | gpl-3.0 | 858 |
#!/bin/bash
# added 2015-09-30 by singh.janmejay
# This file is part of the rsyslog project, released under ASL 2.0
uname
if [ `uname` = "FreeBSD" ] ; then
echo "This test currently does not work on FreeBSD."
exit 77
fi
echo ===============================================================================
echo \[... | madedotcom/rsyslog | tests/lookup_table_no_hup_reload-vg.sh | Shell | gpl-3.0 | 1,287 |
<?php
$dir1 = "/mnt/apache_logs/";
$dir2 = "/mnt/apache/";
$master_key = '123';
$logs = array(
'456' => $dir1.'site/custom-apache.log',
'789' => $dir2.'site/www/protected/runtime/application.log'
);
$logs_titles = array(
'456' => 'site access',
'789' => 'site applicatio... | gohdan/scripts | php/log_view.sh | Shell | gpl-3.0 | 2,879 |
#!/bin/sh
set -e
echo "This file will be executed on every start"
# MySQL configuration
usermod -d /var/lib/mysql/ mysql
chown -R mysql:mysql /var/lib/mysql /var/run/mysqld
service mysql restart
# Create MySQL user and database if it hasn't been created before
if [ ! -f /var/log/databasesetup ];
then
QUERY="CREA... | Tournia/tournia-site | docker-entrypoint.sh | Shell | gpl-3.0 | 1,300 |
#!/bin/bash
SCRIPT=`realpath $0`
SCRIPTPATH=`dirname $SCRIPT`
docker build -t fame/extract $SCRIPTPATH/docker
| certsocietegenerale/fame_modules | processing/extract/install.sh | Shell | gpl-3.0 | 111 |
curl -X POST 'http://localhost:5050/notify' -H 'Content-Type: application/ld+json' -H 'Fiware-service: openiot2' -d @- <<EOF
{
"id": "urn:ngsi-ld:Notification:352334523452",
"type": "Notification",
"subscriptionId": "urn:ngsi-ld:Subscription:5e6257789f300bcd70b7b6e",
"data": [
{
"id": "urn:ngsi:ld:O... | telefonicaid/fiware-cygnus | docker/cygnus-ngsi-ld/notification-examples/notification-geoproperty-polygon-example.sh | Shell | agpl-3.0 | 1,344 |
#!/bin/sh
#
# "$Id: 5.1-lpadmin.sh 11396 2013-11-06 20:09:03Z msweet $"
#
# Test the lpadmin command.
#
# Copyright 2007-2012 by Apple Inc.
# Copyright 1997-2005 by Easy Software Products, all rights reserved.
#
# These coded instructions, statements, and computer programs are the
# property of Apple Inc. and... | andropenoffie/cups4android | cups-1.7.2/test/5.1-lpadmin.sh | Shell | lgpl-2.1 | 1,691 |
#!/bin/bash
cd /
echo "=================== getdebuginfo doctest ======================"
ln -s getdebuginfo test
./test
rm test
echo "=================== pcore.main doctest ======================"
ln -s pcore.main test
./test
rm test pcore.main
| hokuda/pcore | test/podman/rhel8/run_doctest.sh | Shell | lgpl-2.1 | 245 |
#!/bin/bash
#Define bash global variable
#This variable is global and can be used anywhere in this bash script
VAR="global variable"
function fonc {
#Define bash local variable
#This variable is local to bash function only
local VAR="local variable"
echo $VAR
}
echo $VAR
fonc
# Note ... | floslm/snipet | start/localglobal.sh | Shell | lgpl-3.0 | 402 |
#!/bin/bash
START_TIME=$SECONDS
path=$(cd "$(dirname "$0")"; pwd)
echo "$path"
cd $path
#cd openssl
#make 2>&1 | tee makelog
#cd $path
filesToProcess() {
local listFile=$path/casestudy/openssl_files
cat $listFile
# cat $listFile | sed -n "${1}~8p"
}
flags=" --bdd \
--reuseAST
-I $path/openssl... | fgarbe/TypeChef-OpenSSLIfdeftoif | ifdeftoif.sh | Shell | lgpl-3.0 | 999 |
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
# shellcheck source=/dev/null
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh"
cd "${SOURCE_DIR}" || echo 'Not Found'
echo "execute $1"
# python manage
python manage.py "$1"
| luismayta/python-example-drf | script/pm.sh | Shell | lgpl-3.0 | 234 |
#!/bin/bash -
#===============================================================================
# USAGE: ./pdc-gen.sh --help
#
# DESCRIPTION: RTFM (--help)
# REQUIREMENTS: find, xargs, sed, pandoc
# AUTHOR: Sylvain S. (ResponSyS), mail@sylsau.com
# CREATED: 11/27/2017 16:07
#===================... | ResponSySS/responsyss.github.io | build_aux/pdc-gen.sh | Shell | unlicense | 8,239 |
#/bin/sh
LOCATIONID=$1
curl -X POST \
--data-urlencode "author=peter pan" \
--data-urlencode "rating=5" \
--data-urlencode 'reviewText=This is a very great place' \
http://localhost:3000/api/locations/$LOCATIONID/reviews
| hermantai/samples | mean-stack/loc8r/sample_http_calls/create_review.sh | Shell | apache-2.0 | 231 |
#!/bin/bash
function help() {
echo "USAGE: scripts/shutdownLocalCluster.sh [options]"
echo ""
echo "OPTIONS:"
echo " -a/--nagents # agents (odd integer default: 1))"
echo " -c/--ncoordinators # coordinators (odd integer default: 1))"
echo " -d/--ndbservers ... | baslr/ArangoDB | scripts/shutdownLocalCluster.sh | Shell | apache-2.0 | 3,312 |
#!/bin/sh
GRAPHHOPPER_DIR=/graphhopper
mkdir $GRAPHHOPPER_DIR
cd $GRAPHHOPPER_DIR
wget https://oss.sonatype.org/content/groups/public/com/graphhopper/graphhopper-web/0.4.0/graphhopper-web-0.4.0-bin.zip
unzip *.zip
rm *.zip
mv /tmp/config.properties $GRAPHHOPPER_DIR
mv /tmp/start.sh $GRAPHHOPPER_DIR
echo "Showing c... | sogorkis/dockerfile | graphhopper/assets/init.sh | Shell | apache-2.0 | 371 |
#!/bin/bash
#DEPLOYMENT
export DOCKER_HOST="tcp://sp.int3.sonata-nfv.eu:2375"
# MONGODB (CATALOGUE-REPOS)
# Clean database
# Removing
docker rm -fv son-mongo
sleep 5
# Starting
docker run -d -p 27017:27017 --name son-mongo --net=sonata --network-alias=son-mongo --log-driver=gelf --log-opt gelf-address=udp://10.30.0.... | sonata-nfv/son-tests | int-gtkpkg-sp-catalogue/deployment.sh | Shell | apache-2.0 | 2,125 |
#!/bin/bash
#
# Script for running tests in OSS development.
#
# Examples:
#
# * Running all tests under fedjax/ (default):
#
# ./run_tests.sh
#
# * Running tests in directory fedjax/core:
#
# ./run_tests.sh fedjax/core
#
# * Running tests in fedjax/fedjax_test.py and directory fedjax/core:
#
# ./run_tests.... | google/fedjax | run_tests.sh | Shell | apache-2.0 | 1,121 |
#!/usr/bin/env bash
# Copyright 2019 Google LLC
#
# 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 ag... | google/knative-gcp | hack/update-deps.sh | Shell | apache-2.0 | 757 |
#!/bin/bash -ex
if [[ -e ~/docker/digdag-build.tar.gz ]]; then
gunzip -c ~/docker/digdag-build.tar.gz | docker load
fi
cd "$(dirname "$0")"
docker build -t digdag-build .
mkdir -p ~/docker/
docker save digdag-build | gzip -c > ~/docker/digdag-build.tar.gz
| KimuraTakaumi/digdag | docker/setup.sh | Shell | apache-2.0 | 261 |
#! /bin/bash
gcc sum.c -o sum
gcc WebLedSearch.c sqlite3.c -lpthread -ldl -o calc
| shaoxianhui/sst | Script/gen.sh | Shell | apache-2.0 | 82 |
#!/bin/bash
# Copyright 2016-2019 terraform-provider-sakuracloud 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 require... | yamamoto-febc/terraform-provider-sakuracloud | scripts/set_envs_to_travis.sh | Shell | apache-2.0 | 818 |
#!/usr/bin/env bash
# Update repo info
sudo apt-get update
# Preset variable for the mysql-server installation
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password password'
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password password'
# Instal... | DataTacticsCorp/vagrant-templates | cdash/scripts/install_depends.sh | Shell | apache-2.0 | 1,353 |
#!/bin/bash
git remote add -f mldht https://github.com/the8472/mldht.git
git fetch mldht
git merge -X subtree=bt-dht/the8472/mldht --squash --allow-unrelated-histories mldht/master
| atomashpolskiy/bt | script/git-merge-mldht.sh | Shell | apache-2.0 | 182 |
#! /usr/bin/env bash
set -eu
shopt -s nullglob
# Locate the script file. Cross symlinks if necessary.
loc="$0"
while [ -h "$loc" ]; do
ls=`ls -ld "$loc"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
loc="$link" # Absolute link
else
loc="`dirname "$loc"`... | ragnraok/djinni | test-suite/run_djinni.sh | Shell | apache-2.0 | 5,413 |
#!/usr/bin/env bash
# Copyright 2019 Google LLC. 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... | tensorflow/tfjs | tfjs/scripts/test-ci.sh | Shell | apache-2.0 | 1,326 |
#!/bin/bash
check_repository() {
grep -n $1 $2 | cut -d : -f 1
}
res=$( check_repository { ~/Shell_Script/Trails/Perceig/src/main/java/org/cybi/Perceig/service_implements/Welcome_Service_Implements.java )
res1=$( check_repository } ~/Shell_Script/Trails/Perceig/src/main/java/org/cybi/Perceig/service_implements/W... | Cybionix/spring_sh_editor | check_repository1.sh | Shell | apache-2.0 | 882 |
#!/bin/bash
#
# (C) Copyright 2013 The CloudDOE Project and others.
#
# 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 ... | moneycat/CloudDOE | workspace/bin/22_update_hosts.sh | Shell | apache-2.0 | 1,052 |
#!/bin/bash
set -e -u
function usage
{
echo "usage: build.sh --repository mydockerrepo.org --tag tag"
}
DOCKER_MAKE=$(which docker-make)
if [ ! -x "$DOCKER_MAKE" ] ; then
echo "could not find docker-make in PATH"
echo "install it using 'pip install DockerMake'"
exit 1
fi
TAG=latest
while [ "$1" != ... | bmwcarit/smrf | docker/build-docker-images.sh | Shell | apache-2.0 | 1,208 |
#!/bin/bash
#@wjw delete vnc tmp files
rm -f /tmp/.X1-lock
rm -f /tmp/.X11-unix/X1
#resolve_vnc_connection
VNC_IP=$(ip addr show eth0 | grep -Po 'inet \K[\d.]+')
VNC_PORT="590"${DISPLAY:1}
##change vnc password
echo "change vnc password!"
(echo $VNC_PW && echo $VNC_PW) | vncpasswd
##start vncserver
vncserver -kill ... | wjw465150/Dockerfiles | centos-xfce-vnc/scripts/vnc_startup.sh | Shell | apache-2.0 | 1,086 |
# -----------------------------------------------------------------------------
#
# Package : xmlenc
# Version : 0.52
# Source repo : https://github.com/znerd/xmlenc/
# Tested on : RHEL 8.3
# Script License: Apache License, Version 2 or later
# Maintainer : BulkPackageSearch Automation <sethp@us.ibm.com>
#
# Disclaimer... | ppc64le/build-scripts | x/xmlenc/xmlenc_rhel_8.3.sh | Shell | apache-2.0 | 10,681 |
#! /bin/bash
# This script should be run as root with the cloud admin user credentials sourced
# This script cribbed from installation guide at
# http://wiki.openstack.org/OpenStackDashboard
#Enforcing root user to execute the script
if [ `whoami` != root ]; then
echo "Please run this as the user, 'root'!";
... | canarie/dair | OpenStack/dashboard/dashboard-install.sh | Shell | apache-2.0 | 4,095 |
echo "Installing/Reinstalling RPiMonitor package"
systemctl stop rpimonitor >/dev/null 2>&1
#dpkg -i REPLACELBPDATADIR/rpimonitor_2.12-r0_all.deb
dpkg -i REPLACELBPDATADIR/rpimonitor_2.13-beta6_all.deb
set -x
cp REPLACELBPDATADIR/*.conf /etc/rpimonitor/template/
if [ -d "/tmp/rpi.save/" ]; then
cp -f /tmp/rpi.save/*... | Woersty/LoxBerry-Plugin-RPi-Monitor | postroot.sh | Shell | apache-2.0 | 1,017 |
#!/usr/bin/env bash
# Copyright (c) 2017 Intel Corporation
#
# 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 applicabl... | intelsdi-x/swan | vagrant/provision_development_environment.sh | Shell | apache-2.0 | 2,910 |
# pdo_sqlite
#pecl install pdo_sqlite
# Install .NET Core
# https://dotnet.microsoft.com/download/linux-package-manager/ubuntu16-04/sdk-current
# Register Microsoft key and feed
wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-... | iolevel/peachpie | build/install_dependencies_ubuntu.sh | Shell | apache-2.0 | 625 |
#!/bin/bash
# since we automatically remove the members, we must start from a clean state everytime
rm -rf /var/etcd/data
ETCD_CLIENT_PORT="4001" \
ETCD_SERVER_PORT="7001" \
ETCD_LISTEN_PEER_URLS="http://0.0.0.0:7001" \
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://{{ ansible_default_ipv4.address }}:7001" \
ETCD_LISTEN_CL... | dumplingtech/devenv | install/roles/etcd/templates/run-etcd.sh | Shell | apache-2.0 | 735 |
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | google-research/google-research | visual_relationship/run.sh | Shell | apache-2.0 | 782 |
#!/bin/bash
###############################################################################
# Author: Travis Goldie
# Purpose: Send notifications for active Taskwarrior tasks
###############################################################################
# Based on Taskwarrior-notifications at https://github.com/flicke... | beeryardtech/scripts | bash/tasknotify.sh | Shell | apache-2.0 | 3,021 |
#!/bin/bash
# user can config the following configs, then package.
INSTALL=/usr/local/srs
##################################################################################
##################################################################################
##############################################################... | wangcy6/storm_app | frame/c++/srs-2.0release/trunk/scripts/install.sh | Shell | apache-2.0 | 4,389 |
#!/bin/bash
# Copyright 2020 The SQLFlow 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 app... | sql-machine-learning/sqlflow | docker/ci/install-java.bash | Shell | apache-2.0 | 754 |
# ----------------------------------------------------------------------------
#
# Package : webdriverio
# Version : v5.0.0-beta.1
# Source repo : https://github.com/webdriverio/webdriverio.git
# Tested on : ubuntu_18.04
# Script License: Apache License, Version 2 or later
# Maintainer : Sandip Gi... | ppc64le/build-scripts | w/webdriverio/webdriverio_ubuntu_18.04.sh | Shell | apache-2.0 | 1,168 |
#!/usr/bin/env bash
EchoOk() { echo "🆗 $@"; }
EchoTick() { echo "✅ $@"; }
AddCustomMenuEntryIfNeeded()
{
if [[ $# == 0 || $# > 1 ]]; then
echo "usage: AddCustomMenuEntryIfNeeded com.company.appname"
return 1
fi
local BUNDLE=$1
local contents=`defaults read com.apple.universalacces... | agentk/dotfiles | osx/macos-lib.sh | Shell | apache-2.0 | 3,380 |
#!/bin/bash
SCRIPTPATH=$(readlink -f "$0")
SCRIPTDIR=$(dirname "$SCRIPTPATH")
$SCRIPTDIR/doMaven.sh -DskipTests clean package
| stbland/test-errai4-tomcat | scripts/maven-package.sh | Shell | apache-2.0 | 127 |
#!/bin/sh
# pushes all generated .nupkg files to nuget
root=`dirname $0`
location="$root/bin"
pkgs=`ls "$location" | grep '.nupkg$'`
if [ -z "$pkgs" ]; then
echo "no nuget packages found."
exit 0
fi
echo "Found the following packages:"
for pkg in $pkgs; do
echo "$pkg"
done
push() {
for pkg in $pkgs... | kurtschelfthout/Streams | nuget-push.sh | Shell | apache-2.0 | 500 |
#!/bin/sh
#点击开始测试(主界面)
input tap 283 942
#等待进入选择项目界面
sleep 1
#点击开始测试(选择项目界面)
input tap 540 575
#等待测试完成
sleep 300
#点击得分详情
input tap 800 1810
#等待进入得分详情界面
sleep 1
| doctang/TestPlatform | TestPlatform/tests/antutu-benchmark/antutu_benchmark_1920_1080_480.sh | Shell | apache-2.0 | 283 |
#!/bin/bash
#
# === Authors
# Dnyaneshwar Pawar <dnyaneshwar.pawar@veritas.com>
#
# === Copyright
# Copyright (c) 2017 Veritas Technologies LLC.
# FIXME This script is not required now. Delete it.
IDEMPOTENT="/var/opt/VRTSofcore/.vrts_rabbitmq_configured"
if [ -f $IDEMPOTENT ]
then
exit 0
fi
touch $IDEMPOTENT
# ... | abhishek-kane/puppet-veritas-hyperscale | files/scripts/hs_rabbitmq.sh | Shell | apache-2.0 | 2,278 |
#!/bin/sh
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
git_user_id=$1
git_repo_id=$2
release_note=$3
if [... | artikcloud/artikcloud-ruby | git_push.sh | Shell | apache-2.0 | 1,700 |
script_dir=/homes/anja/bin/ensembl-variation/scripts/import/
working_dir=/hps/nobackup/production/ensembl/anja/release_90/human/projections/
bsub -q production-rh7 -M 10000 -R "rusage[mem=10000]" -J projections -o ${working_dir}projections.out -e ${working_dir}projections.err \
perl ${script_dir}project_feature.pl \
-o... | at7/work | pipelines/scripts/run_projection_human_topmed_90.sh | Shell | apache-2.0 | 991 |
#!/bin/sh
ES_CLASSPATH=$ES_CLASSPATH:$ES_HOME/lib/elasticsearch-1.7.2.jar:$ES_HOME/lib/*:$ES_HOME/lib/sigar/*
if [ "x$ES_MIN_MEM" = "x" ]; then
ES_MIN_MEM=256m
fi
if [ "x$ES_MAX_MEM" = "x" ]; then
ES_MAX_MEM=1g
fi
if [ "x$ES_HEAP_SIZE" != "x" ]; then
ES_MIN_MEM=$ES_HEAP_SIZE
ES_MAX_MEM=$ES_HEAP_SIZE
f... | newsdev/stevedore | elasticsearch-1.7.2/bin/elasticsearch.in.sh | Shell | apache-2.0 | 2,170 |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you... | dougc333/bigtop-0.5.0 | bigtop-packages/src/common/whirr/install_whirr.sh | Shell | apache-2.0 | 3,643 |
set -o errexit
set -o nounset
declare -r debug='false'
declare -ir _default_transfer_timeout=300
function make_temp_dir
{
local template="${1:-tmp-$$}"
if [[ $template != *XXXXXX ]]
then
template="$template.XXXXXX"
fi
mktemp -d -t "$template"
}
function make_temp_file
{
local template... | basho/riak-client-tools | lib/common.bash | Shell | apache-2.0 | 3,194 |
#!/bin/sh
### BEGIN INIT INFO
# Provides: docker
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Create lightweight, portable, self-sufficient containers.
# Description:
# Docker is an open-sour... | HatPull/devtools | scripts/docker.init.sh | Shell | apache-2.0 | 2,794 |
python -u l2s-filter-test.py --output-dir l2s-fltr-testi-0113 \
--sim-thresh .5
python -u l2s-filter-test.py --output-dir l2s-fltr-test-0113 \
--sim-thresh 1.0
| kedz/cuttsum | trec2015/sbin/l2s/run-l2s-fltr-test.sh | Shell | apache-2.0 | 169 |
#!/bin/sh
# SUMMARY: Namespace stress with a single long running connection over a unix domain socket in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
lin... | justincormack/linuxkit | test/cases/020_kernel/200_namespace/050_unix-domain/015_echo-long-1con-single-reverse/test.sh | Shell | apache-2.0 | 493 |
#!/usr/bin/env bash
set -e
SCRIPT_DIR=$(dirname $0)
USER_GRADLE_PROPERTIES=~/.gradle/gradle.properties
check_configured() {
grep -q "$1" ${USER_GRADLE_PROPERTIES} || echo "$1 not configured in ${USER_GRADLE_PROPERTIES}. $2"
}
check_configuration() {
if [ ! -f ${USER_GRADLE_PROPERTIES} ]; then
echo "... | otto-de/jlineup | release.sh | Shell | apache-2.0 | 1,772 |
#!/bin/bash
#
# Short: Constants (shell)
# Author: Mark J Swift
# Version: 2.0.21
# Modified: 01-Sep-2018
#
# Should be included into scripts as follows:
# . /usr/local/VolumeMountWarden/inc/Constants.sh
#
# Only run the code if it hasn't already been run
if test -z "${GLB_sv_ProjectName}"
then
# Sets the f... | execriez/ConsoleUserWarden | inc/Constants.sh | Shell | apache-2.0 | 6,006 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.