code stringlengths 2 1.05M | repo_name stringlengths 5 110 | path stringlengths 3 922 | language stringclasses 1
value | license stringclasses 15
values | size int64 2 1.05M |
|---|---|---|---|---|---|
#!/bin/sh
(cd dist-dev; php -S localhost:8000 ../src/server-php/server.php)
| msimonin/OS.js-v2 | bin/start-php-dev.sh | Shell | bsd-2-clause | 76 |
PYTHON_DIR="/var/packages/python/target/bin"
GIT_DIR="/var/packages/git/target/bin"
GIT="${GIT_DIR}/git"
PATH="${SYNOPKG_PKGDEST}/bin:${SYNOPKG_PKGDEST}/env/bin:${PYTHON_DIR}:${GIT_DIR}:${PATH}"
PYTHON="${SYNOPKG_PKGDEST}/env/bin/python"
VIRTUALENV="${PYTHON_DIR}/virtualenv"
LAZYLIBRARIAN="${SYNOPKG_PKGDEST}/var/LazyLi... | Zetten/spksrc | spk/lazylibrarian/src/service-setup.sh | Shell | bsd-3-clause | 1,616 |
#!/bin/bash
# Copyright 2015, Google Inc.
# 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 copyright
# notice, this list of conditio... | 7anner/grpc | tools/run_tests/helper_scripts/build_python.sh | Shell | bsd-3-clause | 5,836 |
#network interface on which to limit traffic
IF="eth0"
#limit of the network interface in question
LINKCEIL="1gbit"
#limit outbound Nautiluscoin protocol traffic to this rate
LIMIT="160kbit"
#defines the address space for which you wish to disable rate limiting
LOCALNET="192.168.0.0/16"
#delete existing rules
tc qdisc... | coinkeeper/2015-04-19_21-21_nautiluscoin | contrib/qos/tc.sh | Shell | mit | 1,675 |
#!/bin/bash
FN="pd.clariom.s.rat.ht_3.14.1.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/annotation/src/contrib/pd.clariom.s.rat.ht_3.14.1.tar.gz"
"https://bioarchive.galaxyproject.org/pd.clariom.s.rat.ht_3.14.1.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-pd.clariom.s.rat.ht/bioco... | bebatut/bioconda-recipes | recipes/bioconductor-pd.clariom.s.rat.ht/post-link.sh | Shell | mit | 1,480 |
#!/bin/bash
FN="MeSH.Dse.eg.db_1.13.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.10/data/annotation/src/contrib/MeSH.Dse.eg.db_1.13.0.tar.gz"
"https://bioarchive.galaxyproject.org/MeSH.Dse.eg.db_1.13.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-mesh.dse.eg.db/bioconductor-mesh.dse.eg.... | Luobiny/bioconda-recipes | recipes/bioconductor-mesh.dse.eg.db/post-link.sh | Shell | mit | 1,322 |
#!/bin/bash
FN="GSBenchMark_1.6.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.10/data/experiment/src/contrib/GSBenchMark_1.6.0.tar.gz"
"https://bioarchive.galaxyproject.org/GSBenchMark_1.6.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-gsbenchmark/bioconductor-gsbenchmark_1.6.0_src_all.t... | Luobiny/bioconda-recipes | recipes/bioconductor-gsbenchmark/post-link.sh | Shell | mit | 1,303 |
#!/bin/bash
nuget pack nuspec/Vernacular.Forms.nuspec -BasePath ./ -Prop Configuration=Release -Verbosity quiet
| rdio/vernacular | build-nuget.sh | Shell | mit | 112 |
#!/bin/sh
envtpl --allow-missing /nipap/nipap.conf.dist -o /etc/nipap/nipap.conf
/usr/sbin/nipap-passwd create-database
if [ -n "$NIPAP_USERNAME" -a -n "$NIPAP_PASSWORD" ]; then
echo "Creating user '$NIPAP_USERNAME'"
/usr/sbin/nipap-passwd add --username $NIPAP_USERNAME --name "NIPAP user" --password $NIPAP_PASSWOR... | fredsod/NIPAP | nipap/entrypoint.sh | Shell | mit | 419 |
#!/bin/bash
set -e
SCRIPT_DIR=$(dirname $0)
MANATEE_ROOT=${1%/}
EXPORT_ROOT=${2-$LAMASSU_EXPORT}
if [ -z "$EXPORT_ROOT" -o -z "$MANATEE_ROOT" ]
then
echo "Builds a lamassu-machine Manatee barcode scanning package file for deploying to a device."
echo -e "\nUsage:"
echo -e "build <manatee directory> <... | joshmh/lamassu-machine | deploy/manatee/build.sh | Shell | unlicense | 964 |
#!/bin/bash
TEMPFILE=`mktemp`
TEMPFILE2=`mktemp`
INCLUDEDIR=../include
SOURCEDIR=../src/syscalls
sed -n -e '/\[vleSyscalls\]/,/\[vleTools\]/p' $1 |sed -e '$d' -e '1d' -e 's/\r//' > $TEMPFILE
eval `grep -e 'header' $TEMPFILE |sed -e 's/;.*@//g' -e 's/@//g'`
grep -vG -e header -e LIBRARY $TEMPFILE > $TEMPFILE2
mkdi... | Forty-Bot/libfxcg | resources/process-mini-sdk-ini.sh | Shell | bsd-3-clause | 1,023 |
#!/usr/bin/env bash
#
# Copyright (c) .NET Foundation and contributors. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
set -e
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR... | anurse/Cli | scripts/run-build.sh | Shell | apache-2.0 | 4,528 |
#!/bin/bash
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | tgracchus/spinnaker | dev/create_google_dev_vm.sh | Shell | apache-2.0 | 834 |
#!/bin/bash
DOCKERID=`cat .dockerid`
echo "Running docker image $DOCKERID"
docker run -u $UID -v $PWD:/opt/website -p 4567:4567 -it $DOCKERID $@
| thatdocslady/ovirt-site | docker-run.sh | Shell | mit | 148 |
#!/usr/bin/env bash
#
# Copyright (c) 2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Warn in case of spelling errors.
# Note: Will exit successfully regardless of spelling errors.
export LC_AL... | FeatherCoin/Feathercoin | test/lint/lint-spelling.sh | Shell | mit | 1,012 |
# Copyright: 2017 Masatake YAMATO
# License: GPL-2
CTAGS=$1
${CTAGS} --quiet --options=NONE \
--langdef=TEST'{base=C}' \
--kinddef-TEST=t,test,tests \
--regex-TEST=@./list.regex \
-o - \
input.c
| universal-ctags/ctags | Tmain/regex-patterns-from-file.d/run.sh | Shell | gpl-2.0 | 212 |
#!/bin/bash
# This script is a part of RPC & TI-RPC Test Suite
# (c) 2007 BULL S.A.S.
# Please refer to RPC & TI-RPC Test Suite documentation.
# More details at http://nfsv4.bullopensource.org/doc/rpc_testsuite.php
# This scripts launch everything needed to test RPC & TI-RPC
# Never try to launch alone, run "script_r... | anthony-kolesov/arc_ltp | testcases/network/rpc/rpc-tirpc-full-test-suite/tirpc_bottomlevel_mt_lib.sh | Shell | gpl-2.0 | 2,300 |
#!/bin/sh
# Copyright (C) 2009-2013 OpenWrt.org
. /lib/functions/leds.sh
. /lib/ar71xx.sh
get_status_led() {
case $(ar71xx_board_name) in
alfa-nx)
status_led="alfa:green:led_8"
;;
all0305)
status_led="eap7660d:green:ds4"
;;
ap132)
status_led="ap132:green:status"
;;
ap136-010|\
ap136-020)
status_le... | claudyus/openwrt | target/linux/ar71xx/base-files/etc/diag.sh | Shell | gpl-2.0 | 5,649 |
#!/usr/bin/env bash
# This file is part of RetroPie.
#
# (c) Copyright 2012-2015 Florian Müller (contact@petrockblock.com)
#
# See the LICENSE.md file at the top-level directory of this distribution and
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
#
rp_module_id="lr-nxengine"
r... | joshheil/RetroPie-Setup | scriptmodules/libretrocores/lr-nxengine.sh | Shell | gpl-3.0 | 1,629 |
#!/usr/bin/env bash
set +exu
function get_base_path(){
cd $(dirname $0) && cd .. && pwd
}
BASE_DIR="$(get_base_path)"
BACKEND_DIR="${BASE_DIR}/backend"
BACKEND_REPO='https://github.com/OperationCode/operationcode_backend.git'
echo "Cloning backend repo into $BACKEND_DIR"
git clone $BACKEND_REPO $BACKEND_DIR
echo... | hollomancer/operationcode_frontend | bin/run_backend.sh | Shell | mit | 419 |
#!/bin/sh
# 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 m... | rbevers/lucy | devel/bin/setup_env.sh | Shell | apache-2.0 | 2,286 |
#!/bin/sh
## https://github.com/auth0/react-native-lock/blob/master/bin/prepare.sh
echo "Preparing to link react-native-firestack for iOS"
echo "Checking CocoaPods..."
has_cocoapods=`which pod >/dev/null 2>&1`
if [ -z "$has_cocoapods" ]
then
echo "CocoaPods already installed"
else
echo "Installing CocoaPods..."
... | tegument/react-native-firestack | bin/prepare.sh | Shell | mit | 346 |
#!/bin/sh
php -d asp_tags=On /usr/local/bin/phpunit --verbose SmartyTests.php > test_results.txt
| FranTorletti/inmobiliaria | vendor/smarty/smarty/development/PHPunit/phpunit-tests.sh | Shell | apache-2.0 | 97 |
#!/bin/bash
# Written by Matthew Garcia
# Runs a groovy script that creates a text file containing the information
# that will be parsed, as well as a text file containing the hostnames of
# the machines used in the test. It uses awk to get the number of hosts
# in the script. Afterwards it creates a .pg file using th... | birendraa/voldemort | contrib/ec2-testing/examples/remotetest/graphMultiHostTest.sh | Shell | apache-2.0 | 2,312 |
#!/bin/bash -v
#
# 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... | apache/incubator-myriad | vagrant/virtualbox/mesos/provisioning/install_mesos.sh | Shell | apache-2.0 | 1,353 |
# Validationg ip address
is_ip_valid() {
userip=${1-$ip}
check_nat=$(grep -H "^NAT='$userip'" $VESTA/data/ips/* 2>/dev/null)
if [ ! -e "$VESTA/data/ips/$userip" ] && [ -z "$check_nat" ] ; then
echo "Error: IP $userip not exist"
log_event "$E_NOTEXIST" "$EVENT"
exit $E_NOTEXIST
fi... | rohdoor/vestacp | func/ip.sh | Shell | gpl-3.0 | 6,559 |
#!/bin/sh
# Copyright 2015, Google Inc.
# 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 copyright
# notice, this list of conditions... | zeliard/grpc | tools/buildgen/generate_projects.sh | Shell | bsd-3-clause | 2,780 |
#!/bin/bash
# Copyright 2015-2016, EMC, Inc.
#
# Run this without options to create a virtual
# environment for a specific name, a default name, or git-branch
# based name.
#
# By default (no argument), the base environment name will be 'fit'
# If an argument is passed, the base name will be that value _except_
# I... | johren/RackHD | test/mkenv.sh | Shell | apache-2.0 | 1,787 |
# Test for automatic creation of dynafile directories
# note that we use the "test-spool" directory, because it is handled by diag.sh
# in any case, so we do not need to add any extra new test dir.
# added 2009-11-30 by Rgerhards
# This file is part of the rsyslog project, released under GPLv3
# uncomment for debuggin... | rangochan/rsyslog | tests/dircreate_dflt.sh | Shell | gpl-3.0 | 928 |
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
#
# Check that route PMTU values match expectations, and that initial device MTU
# values are assigned correctly
#
# Tests currently implemented:
#
# - pmtu_vti4_exception
# Set up vti tunnel on top of veth, with xfrm states and policies, in two
# namespaces with matching en... | kronat/linux | tools/testing/selftests/net/pmtu.sh | Shell | gpl-2.0 | 13,861 |
#!/bin/sh
npm owner add benirose $1
npm owner add kylestetz $1
npm owner add boutell $1
npm owner add colpanik $1
npm owner add jsumnersmith $1
npm owner add alexgilbert $1
npm owner add gsf $1
npm owner add stuartromanek $1
npm owner add livhaas $1
npm owner add mcoppola $1
# Have not created npm accounts
# npm owner... | punkave/punkave-jobs | scripts/ownerone.sh | Shell | mit | 398 |
#!/bin/sh
test_description='Test reflog display routines'
. ./test-lib.sh
test_expect_success 'setup' '
echo content >file &&
git add file &&
test_tick &&
git commit -m one
'
cat >expect <<'EOF'
Reflog: HEAD@{0} (C O Mitter <committer@example.com>)
Reflog message: commit (initial): one
EOF
test_expect_success 'l... | TextusData/Mover | thirdparty/git-1.7.11.3/t/t1411-reflog-show.sh | Shell | gpl-3.0 | 3,605 |
#!/bin/sh
test_description='Tests multi-threaded lazy_init_name_hash'
. ./perf-lib.sh
test_perf_large_repo
test_checkout_worktree
test_expect_success 'verify both methods build the same hashmaps' '
test-tool lazy-init-name-hash --dump --single >out.single &&
if test-tool lazy-init-name-hash --dump --multi >out.mul... | devzero2000/git-core | t/perf/p0004-lazy-init-name-hash.sh | Shell | gpl-2.0 | 1,210 |
#!/bin/bash
# This script extracts a valid release tar into _output/releases. It requires hack/build-release.sh
# to have been executed
set -o errexit
set -o nounset
set -o pipefail
S2I_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${S2I_ROOT}/hack/common.sh"
# Go to the top of the tree.
cd "${S2I_ROOT}"
# Copy the ... | childsb/origin | vendor/github.com/openshift/source-to-image/hack/extract-release.sh | Shell | apache-2.0 | 651 |
#!/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
# "Lice... | heriram/incubator-asterixdb | asterixdb/asterix-installer/src/test/resources/transactionts/scripts/recovery_ddl/temp_secondary_index_recovery/create_and_start.sh | Shell | apache-2.0 | 892 |
#!/bin/bash
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | jackielii/client-nfs-provisioner | vendor/k8s.io/kubernetes/cluster/restore-from-backup.sh | Shell | apache-2.0 | 9,581 |
#!/bin/sh
#
# Copyright (c) 2008 Johannes E. Schindelin
#
test_description='prune'
. ./test-lib.sh
day=$((60*60*24))
week=$(($day*7))
add_blob() {
before=$(git count-objects | sed "s/ .*//") &&
BLOB=$(echo aleph_0 | git hash-object -w --stdin) &&
BLOB_FILE=.git/objects/$(echo $BLOB | sed "s/^../&\//") &&
verbose... | wparad/git | t/t5304-prune.sh | Shell | gpl-2.0 | 6,464 |
#! /bin/bash
set -e
if [ "$1" = "create" ]; then
ACTION=create-stack
elif [ "$1" = "update" ]; then
ACTION=update-stack
elif [ "$1" = "delete" ]; then
ACTION=delete-stack
else
echo "Usage: $0 [create|update]"
exit 1
fi
TAG='lambda-comments'
DIR=`cd $(dirname $0); pwd`
BABEL_NODE=$DIR/../../node_modules/bab... | jimpick/lambda-comments | deploy/cloudformation/cloudformation.sh | Shell | isc | 1,086 |
#!/bin/bash
if [ -d testbox ]
then
echo "Deleting vagrant test directory."
# Destroy possible running instance
cd testbox
vagrant destroy -f
cd ..
# Delete directory
rm -rf testbox
fi
# Remove possible existent box
existent_box=$(vagrant box list | grep testbox)
if [ ! -z "$existent_box" ]... | blacklabelops/dockerdev | packer/cleanTest.sh | Shell | mit | 623 |
#!/bin/bash
usage="$ Takes 2 arguments : <browser: chrome or firefox> <url>"
while getopts ':hs:' option; do
case "$option" in
h) echo "$usage"
exit
;;
esac
done
if [ "$#" -ne 2 ]; then
echo "$usage"
exit
fi
echo "mitmdump -s /home/evla/Documents/har_dump.py -U http://proxy.rd.francete... | gandalf-the-white/dockseldon | scripts/order66.sh | Shell | mit | 619 |
#!/bin/bash --norc
kdiff3 $1 $2 $3 -o $4
| samsaggace/linux-tools | mergekdiff3.sh | Shell | mit | 41 |
#!/bin/bash
START_DIR="${START_DIR:-/home/coder/project}"
PREFIX="deploy-code-server"
mkdir -p $START_DIR
# function to clone the git repo or add a user's first file if no repo was specified.
project_init () {
[ -z "${GIT_REPO}" ] && echo "[$PREFIX] No GIT_REPO specified" && echo "Example file. Have questions? ... | mjenrungrot/competitive_programming | deploy-container/entrypoint.sh | Shell | mit | 3,562 |
#!/bin/bash
user="ircd"
website="https://unrealircd.org/unrealircd4/"
file="unrealircd-4.0.11.tar.gz "
set_up_user() {
created=$(cat /etc/passwd | grep $user | wc -l);
if [[ $created < 1 ]]; then
echo "[+] Creating user 'ircd' ..."
adduser ircd
fi
apt-get install sudo -y > /dev/null 2>&1
}
install_deps() {
... | 0x00-0x00/shell_scripts | irc_setup.sh | Shell | mit | 883 |
dist=`grep DISTRIB_ID /etc/*-release | awk -F '=' '{print $2}'`
if [ "$dist" == "Ubuntu" ]; then
echo "ubuntu found"
else
echo "not ubuntu"
exit 1
fi
if [ -d "/etc/naemon/" ]; then
echo "Found naemon"
else
echo "This doesn't look like a Naemon server"
exit 1
fi
if [ -d "/usr/lib/naemon/plugins" ]... | greypanda/sitepipe | install/install_naemon_server.sh | Shell | mit | 1,153 |
#!/usr/bin/env bash
pretty () {
echo "I am pretty"
}
| BaxterStockman/bashlib | test/fixtures/bashlib/i/am/pretty.sh | Shell | mit | 58 |
#!/bin/sh
BIN=/usr/bin/clazy
if [ -x $BIN ]; then
$BIN -fPIC -std=c++11 \
-I /usr/include \
-I /usr/include/qt \
-I /usr/include/qt/QtCore \
-I /usr/include/qt/QtGui \
-I /usr/include/qt/QtNetwork \
-I /usr/include/qt/QtXml \
-I /usr/include/qt/QtWidgets \
-I /usr/include/qt/QtX11Extras \
-I /usr/include/gstr... | kmikolaj/explayer | clazy.sh | Shell | mit | 583 |
#!/bin/bash
/home/root/bin/cam init > /dev/null 2>&1
exec /home/root/bin/video-server 192.168.254.141 4000 > /dev/null 2>&1
| DeLaGuardo/bonecam | systemd/autostart-video.sh | Shell | mit | 125 |
#!/bin/bash
input=/intput
output=/output
for filename in $1*;
do
rm -rf $filename$input
rm -rf $filename$output
cp -r $2 $filename;
cp -r $3 $filename;
done
sleep 5
| derekso1/Aultron | prep.sh | Shell | mit | 184 |
#!/bin/bash
# vim: et sr sw=4 ts=4 smartindent:
# create_aws_instance_info.sh
#
# Gets IMMUTABLE instance info from AWS metadata
# i.e. we're not interested in putting metadata or tag values in to the file
# that might change over time.
#
INFO_FILE=/etc/eurostar/aws_instance_info
TIMESTAMP="$(date +'%Y-%m-%d %H:%M:%S')... | jinal--shah/packer_base_centos | uploads/cloud-init/usr/local/bin/cloud-init/00010-create_aws_instance_info.sh | Shell | mit | 1,059 |
#!/usr/bin/env bash
## =============================================================================
# File: setup-screen.sh
#
# Author: Cashiuus
# Created: 12-DEC-2016 - - - - - - (Revised: )
#
# MIT License ~ http://opensource.org/licenses/MIT
#-[ Notes ]--------------------------------------------------------... | Cashiuus/penprep | system-setup/linux/setup-screen.sh | Shell | mit | 14,089 |
shopt -s cdspell
shopt -s nocaseglob
shopt -s checkwinsize
shopt -s dotglob
shopt -s extglob
shopt -s progcomp
shopt -s histappend
set -o ignoreeof
set bell-style none
unset MAILCHECK # disable "you have mail" warning
ulimit -S -c 0 # disable core dump
bind "set co... | pedroreys/bash | scripts/options.sh | Shell | mit | 470 |
###################
# LOCALE #
###################
export LC_ALL=en_US.UTF-8
export TZ="Europe/Berlin"
export LC_CTYPE="en_US.UTF-8"
export LANG="en_US.UTF-8"
| salimane/dotfiles | zsh/.zsh/etc/locale.zsh | Shell | mit | 169 |
#!/bin/bash
echo "== Data Collection and Parsing Begin =="
if [ "$#" -le 0 ]
then
echo "Invalid Input, Please Add the name of one or more log files"
exit 1;
fi
strategy=""
actions=0
success=0
total_milisecs=0
C=0
R=0
U=0
D=0
echo "=> Processing Log Files"
for log_name in "$@"
do
echo "Retrieving $log_name";
... | fpiagent/dmachine | runningFiles/collect_data.sh | Shell | mit | 1,587 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3333-1
#
# Security announcement date: 2015-08-12 00:00:00 UTC
# Script generation date: 2017-01-01 21:07:31 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: armv7l
#
# Vulnerable packages fix on version:
# - iceweasel:38.2.0esr-1~deb7u1
#
# La... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/armv7l/2015/DSA-3333-1.sh | Shell | mit | 832 |
# Sample bash script for Bot-Shutdown Event
# If you enable 'For all commands, use job details as arguments'
# some details about the just-finished batch will be appended to the
# command as arguments. On windows, there was no easy way to call
# the php script directly, so we call php via a batch file. Furthe... | dataclay/event-scripts | OSX/on-bot-disable.sh | Shell | mit | 1,169 |
#!/bin/sh
esdir="$(dirname $0)"
while true; do
rm -f /tmp/es-restart /tmp/es-sysrestart /tmp/es-shutdown
"$esdir/emulationstation" "$@"
[ -f /tmp/es-restart ] && continue
if [ -f /tmp/es-sysrestart ]; then
rm -f /tmp/es-sysrestart
sudo reboot
break
fi
if [ -f /tmp/es-shu... | tlanks/EmulationStation | emulationstation.sh | Shell | mit | 423 |
#!/bin/bash
set -e
# folder structure
WORKDIR=$(jq '.working_directory' < credentials.json | tr -d '"')
parallel 'mkdir -p {1}/{2}/{3}' ::: "$WORKDIR" ::: 'raw' 'preprocessed' ::: 'ALDOT' 'CAPS'
# read database credentials
PGHOST=$(jq '.db.PGHOST' < credentials.json | tr -d '"')
PGUSER=$(jq '.db.PGUSER' < credentials... | jtwalsh0/traffic_safety | setup.sh | Shell | mit | 963 |
# Execute certaines commandes après obtention des sources
#
# Le but est de configurer les droits sur les répertoires,
# l'URL de base du site ainsi que tout ce qui est nécéssaire
# pour que l'installation ne rapporte pas d'erreur.
#
# Il est possible de modifier la section suivante ou de définir
# les variables d'envi... | flub78/citemplate | install/install.sh | Shell | mit | 1,999 |
#!/bin/bash
# EA to show Sophos Home version
avpath="/Applications/Sophos Home.app"
if [ -d "$avpath" ];
then
version=$( /usr/bin/defaults read "${pluginpath}/Contents/Info" CFBundleShortVersionString )
echo "<result>$version</result>"
else
echo "<result>Not Installed</result>"
fi | franton/Remove-AV | ea-sophoshome.sh | Shell | mit | 287 |
git pull;
git commit -am 'auto-update balances';
git push;
| chancecoin/chancecoinj | git_commit.sh | Shell | mit | 59 |
set -ex
SOURCE="$1"
TARGET="$2"
URL="$3"
DIR="$4"
has() {
type "$1" > /dev/null 2>&1
return $?
}
if [ ! "$SOURCE" ] || [ ! "$URL" ] || [ ! "$TARGET" ]; then
echo "Error: missing source and/or target" >&2;
exit 10
fi
if [ "$DIR" ]; then
set +e
rm -Rf "$TARGET" 2>/dev/null
set -e
fi
mkdir -p... | GHackAnonymous/c9.ide.installer | commands/tar.gz.sh | Shell | mit | 1,460 |
#!/bin/sh
# mogend.sh
#
# Created by Jean-Denis Muys on 24/02/11.
# Modified by Ryan Rounkles on 15/5/11 to use correct model version and to account for spaces in file paths
# Modified by Vyacheslav Artemev on 7/12/11 to use separate folders for machine and human
# Modyfied by Danis Ziganshin on 14.02.14 for ARC c... | fs/ios-base | ios-base/Scripts/mogend.sh | Shell | mit | 1,338 |
#!/bin/bash
cd $(dirname $0)
diff=`git diff`
if [ ${#diff} != 0 ];
then
echo "还有东西没有提交"
exit 1
fi
echo "--------tag list--------"
git tag -l
echo "--------tag list--------"
echo "根据上面的tag输入新tag"
read thisTag
# 获取podspec文件名
podSpecName=`ls|grep ".podspec$"|sed "s/\.podspec//g"`
echo $podSpecName
# 修改版本号
... | baxiang/BXUIKit | cocoapod.sh | Shell | mit | 726 |
#!/bin/sh
cp -v ../../build_gcw0/$1 ./opk-data/
cp -rv ../../data ./opk-data/data
mksquashfs opk-data/* ../../build_gcw0/$1.opk
rm ./opk-data/$1 | PuKoren/gcw0-sdl2-cmake-sample | cmake/gcw-zero/opk_build.sh | Shell | mit | 144 |
#!/bin/bash
if [ "$1" == "kill" ]
then
echo "Killing server..."
lsof -P | grep ':8080' | awk '{print $2}' | xargs kill -9
else
echo "Starting server..."
dev_appserver.py app.yaml --log_level=debug
fi | onejgordon/action-potential | server.sh | Shell | mit | 205 |
#!/bin/bash
python RunSimulation.py --Geo 500.0 --sim_num 87
| xji3/IGCCodonSimulation | ShFiles/YDR418W_YEL054C_IGCgeo_500.0_sim_87.sh | Shell | mit | 61 |
#!/bin/sh
# chkdeps.sh
# Copyright (c) 2006 Jeffrey S. Pitblado
self=`basename $0`
date=`date '+%y-%m-%d-%H%M%S%Z'`
tmp=/tmp/$self-$$
trap "rm -f $tmp;exit" 1 2 3 15
if [ "$1" != "now" ]
then
cat 1>&2 <<EOF
Usage: $self now
Display a list of interdependenties of the script files within the current
directory.
EOF
... | jpitblado/dotfiles | bin/chkdeps.sh | Shell | mit | 705 |
#!/bin/bash
#
# uninstall-user.sh
BINDIR="/home/steam/bin"
DATADIR="/home/steam/.local/share/shadowbound"
for f in "${BINDIR}/shadowbound" \
"${DATADIR}/uninstall.sh" \
"${DATADIR}/sbrconclient.py"
do
if [ -f "$f" ]; then
rm "$f"
fi
done
| thakyZ/shadowbound | tools/uninstall-user.sh | Shell | mit | 274 |
#!/bin/bash
#
# Basic database backup and restore script.
mongodump --db bikeabout ~/dump
mongorestore --db bikeabout ~/dump
#only one collection:
mongorestore --db bikeabout ~/dump --collection hits dump2012_06_21_14_32_36/analytics/hits.bson | svda/bikeabout.nl | bin/backup.sh | Shell | mit | 245 |
#!/bin/bash
cmd="psql template1 --tuples-only --command \"select count(*) from pg_database where datname = 'boxing';\""
db_exists=`eval $cmd`
if [ $db_exists -eq 0 ] ; then
cmd="createdb boxing"
eval $cmd
fi
psql boxing -f schema/create_schema.sql
cat csv/boxers_*.csv >> /tmp/boxers.csv
rpl -q ',"",' ',,' /... | octonion/boxing | load.sh | Shell | mit | 600 |
#!/bin/bash
KEYWORDS_AIRBENDER="\bAang|Katara|\bToph(|s)\b|(air|fire|water|earth)(| )(bender|tribe|people)|avatar cycle|\bSokka|\bZuko|\bAppa(|(|')s)\b|\bIroh(|s)\b|\bMomo\b|\bAzula\b|\bOzal\b"
KEYWORDS_AIRBENDER_EXCLUDE="Momo (Sohma|Hinamori|Adachi)|Bleach"
if [ "$1" == "" ]; #Normal operation
then
debug_start "A... | MW-autocat-script/MW-autocat-script | catscripts/Entertainment/Cartoons/Avatar_The_Last_Airbender/Avatar.sh | Shell | mit | 542 |
#! /bin/bash
# mkdir3.sh -- This script checks to see if the user is root or not then asks the root user for a name of a directory and then checks if it already exists before trying to create it. If the directory exists, it prints out a message to tell the user it cannot be created. And also if the user is not root, i... | Prince-linux/prince-linux-learning | scripts/mkdir3.sh | Shell | mit | 1,242 |
#!/bin/bash
# Get the Env Details. In this case as part of the App Profile we will define a custom variable "DEP_ENV" to indicate which list to pick the IP from
# CliQr CCO will be passed the variable by prefix it with eNV as shown below.
dep_env=$eNV_DEP_ENV
# File to fetch the IP from. These files will be stored ... | clijockey/cloudcenter-services | callout/ipam2.sh | Shell | mit | 744 |
# build.sh
# This build file started off as a simple, 2 line script that compiled all the classes and jar-ed them up.
# To build two separate jars and keep them tight (ie, with no extra files) required the script to grow.
# Since the intent of jNV as a project is to produce an app that works anywhere a JRE is availabl... | vinodkd/jNV | java/build.sh | Shell | mit | 1,889 |
#!/bin/zsh
#command prompt aliases
alias ll='ls -lrt'
alias la='ls -lart'
alias hi=history
#homebrew aliases
alias bd='brew doctor'
alias bu='brew update'
alias bi='brew install'
alias bs='brew search'
#git aliases
alias gi='git init'
alias gc='git clone'
alias gb='git branch'
alias gs='git status -sb'
alias ga='git... | sundayoyeniyi/.dotfiles | zsh-config/aliases.zsh | Shell | mit | 582 |
#!/bin/sh
# UI MODULE GENERATOR
# ---------------------
# This script allows you to generate new emtpy UI modules
# based on a sample or boilerplate module.
# By default, modules are stored in "./ui-modules/" (relative to projet directory).
# Sample module is kept under "./bin/ui-module-sample". You can change ... | ripestudios/stylestrap | bin/ui-module.sh | Shell | mit | 1,502 |
#!/bin/sh
case "$(uname)" in
Darwin)
os="macos"
;;
Linux)
os="linux"
;;
*)
echo "error: platform not supported"
;;
esac
cd
mkdir .config
# in alphabetical order
[ "$os" != "macos" ] && ln -s .cfg/bash/bashrc .bashrc
ln -s .cfg/git/gitconfig .gitconfig
mk... | aldn/dotfiles | deploy.sh | Shell | mit | 827 |
#!/usr/bin/env bash
# create and partition disks per ooom.fstab file - second boot
# TODO(ross) add function comments
ooom::mkvol() {
devn="$1"
vol="$2"
if [[ ! -b "${devn}" ]]; then
echo "*** Error: Device not found: ${devn}"
return 1
fi
if [[ -z "${vol}" ]]; then
echo "*** Error: Invalid vol... | rasa/out-of-one-many | ooom-boot-2.sh | Shell | mit | 3,914 |
#!/bin/bash -
#===============================================================================
#
# FILE: build.sh
#
# USAGE: ./build.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Michael Fong (mcfongtw),
# ORGANIZATIO... | mcfongtw/LostInCompilation | build.sh | Shell | mit | 683 |
#!/bin/bash
set -e
cd "$(dirname "$0")"
project_root_dir="`pwd`/../.."
webtest_patches_dir="${project_root_dir}/ifs-data-layer/ifs-data-service/src/main/resources/db/webtest"
get_current_patch_level () {
# extract the current version of the webtest data
echo "`find ${webtest_patches_dir} -name '*__Base_web... | InnovateUKGitHub/innovation-funding-service | setup-files/scripts/generate-test-data.sh | Shell | mit | 4,042 |
#!/bin/bash
set -x
set -e
DIR='/aineisto/documents'
find $DIR -type f -name *.xml -print0 | xargs -0 sed -i 's/nbsp\;/#160\;/g'
find $DIR -type f -name *.xml -print0 | xargs -0 sed -i 's/middot\;/#183\;/g'
find $DIR -type f -name *.xml -print0 | xargs -0 sed -i 's/ndash\;/#8211\;/g'
find $DIR -type f -name *.xml -pr... | ottok/uta-infim-tools | wikipedia-data-xml-fixes/xmlify.sh | Shell | mit | 1,377 |
#!/bin/bash
set -e # exit with nonzero exit code if anything fails
# clear and re-create the out directory
rm -rf out || exit 0;
mkdir out;
# run our compile script, discussed above
bash compile.sh
# go to the out directory and create a *new* Git repo
cd out
git init
# inside this git repo we'll pretend to be a new... | ChubbyPotato/ggame | deploy.sh | Shell | mit | 969 |
#!/bin/bash
##
## Ensures that a fresh Phoenix project does not trigger any issue in "normal" mode
##
# common setup
set -e
DIRNAME=$( cd "$( dirname "$0" )" && pwd )
PROJECT_ROOT=$( cd "$DIRNAME/.." && pwd )
# script specific sources, variables and function definitions
PROJECT_NAME=phx_credo_tester
PROJECT_DIRNA... | rrrene/credo | test/test_phoenix_compatibility.sh | Shell | mit | 663 |
#!/bin/sh
#sass --watch css/foo.scss:css/foo.css --style compressed #for production
sass --watch css/omd.scss:css/omd.css
exit 0
| nevvkid/OMD | watch.sh | Shell | mit | 131 |
#!/bin/bash
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
bash Miniconda2-latest-Linux-x86_64.sh
bash setup_lc.sh | panoptes/lightcurve-demo | setup_linux.sh | Shell | mit | 144 |
#!/bin/bash
export SHELL_SCRIPT_MODULE_PATH="/vagrant-modules"
export APACHE_VHOST_FILE="/vagrant/vagrant/files/vhost.conf"
source "${SHELL_SCRIPT_MODULE_PATH}/lib.sh"
runModules "base" "mysql" "apache2" "php5" "php5-curl" "php5-gd" "php5-mcrypt" "php5-mysql" "php5-xdebug"
service apache2 restart | omerucel/framework-sample-site | vagrant/bootstrap.sh | Shell | mit | 300 |
#!/usr/bin/env bash
echo $(bash --version 2>&1 | head -n 1)
#CUSTOMPARAM=0
BUILD_ARGUMENTS=()
for i in "$@"; do
case $(echo $1 | awk '{print tolower($0)}') in
# -custom-param) CUSTOMPARAM=1;;
*) BUILD_ARGUMENTS+=("$1") ;;
esac
shift
done
set -eo pipefail
SCRIPT_DIR=$(cd "$( dirname "${BAS... | BigBabay/AsyncConverter | build.sh | Shell | mit | 2,455 |
#!/bin/bash
set -e
remote=$(git config --get remote.origin.url)
build_dir="build"
if [ -d $build_dir/.git ]; then
echo "The .git directory already exists in the build directory."
echo "This probably means that you have already cloned a reposiory there."
echo "You can proabbaly start publishing but if yo... | ncsu-osgeorel/foss-for-geospatial-analysis | get-gh-pages-branch.sh | Shell | mit | 544 |
#!/bin/bash
# allow `go get` for private repositories
git config --global url."git@github.com:".insteadOf "https://github.com/"
if [ "$1" = "ssh_setup" ]; then
# start our ssh agent
eval "$(ssh-agent -s)"
# run expect to handle entering password for my mounted SSH key
# /ssh.exp
ssh-add /.ssh/github_rsa
... | Integralist/Go-Requester | bootstrap.sh | Shell | mit | 608 |
#!/bin/bash
# Set up links from CHAPI plugins and tools into the AMSoil deployment
base=$PWD
AMSOIL=$base/AMsoil
CHAPI=$base
if [ -d $AMSOIL ]; then
echo "updating $AMSOIL"
cd $AMSOIL
git pull
cd $base
else
echo "cloning into $AMSOIL"
cd $base
git clone https://github.com/fp7-ofelia/AMsoil... | ahelsing/geni-ch | linkamsoil.sh | Shell | mit | 840 |
#
# .NET
#
# .NET Framework is a software framework developed by Microsoft.
# It includes a large class library and provides language interoperability
# across several programming languages.
# Link: https://www.microsoft.com/net
# ------------------------------------------------------------------------------
# Configu... | nelsonghezzi/spaceship-zsh-theme | sections/dotnet.zsh | Shell | mit | 1,694 |
#!/bin/bash
#
# Use this file to quickly change the app version.
# It will also tag, commit the change and push it.
#
# Usage: ./version.sh 1.2.0
# Check $1
if [ -z "$1" ]
then
echo "Version is required."
fi
# Replace version in package.json files
sed -i.bak "s/\"version\": \".*\"/\"version\": \"$1\"/g" ./packa... | eyeyunianto/aksara | iCilegon/version.sh | Shell | mit | 724 |
#! /bin/bash
if [ $1 = "init" ]; then
mkdir .shoelace
cd .shoelace
#cp -r ../../vagrant/provisioned/basic-ubuntu /
fi | codeeverything/shoelace | shoelace.sh | Shell | mit | 130 |
#!zsh -x
havemodif=0
git diff-index --quiet HEAD
if [ $? -ne 0 ]; then
havemodif=1
fi
if [ $havemodif -ne 0 ]; then
git stash
fi
git fetch origin
foreach this (cmake-utils genericLogger genericStack genericHash tconv marpaWrapper luaunpanic lua-template-engine) {
git fetch $this master
}
current_branch=`g... | jddurand/c-marpaESLIF | git_subtree_pull.zsh | Shell | mit | 656 |
#!/bin/sh
docker-compose down -v --rmi all --remove-orphans
| HospitalRun/hospitalrun-frontend | couchdb/couchdb-cleanup.sh | Shell | mit | 61 |
#!/bin/bash
_HOSTS=""
_USER=""
_PUBKEY=""
_UID=""
_GROUP=""
SHADOW=""
SSH_OPTIONS=""
usage() {
echo "
Usage: $0
--help Display this help message
-h, --hosts Login host(space separated values)
-u, --user Username
-k, --pubkey Public key(string or file path)
-i, --... | tkuchiki/bash-create-and-delete-users | bin/create_user.sh | Shell | mit | 3,200 |
#!/bin/bash
#################################################
##
## This script performs the preprocess
## stage to prepare the data for
## crowding script
##
## AUTHOR: Antonio Dorta <adorta@iac.es>
## DATE: 2017-03-02
##
## Operations:
## 1) Read filenames to get the number of chips
## 2) Split the input stars fi... | dnidever/PHOTRED | scripts/fakered_transfer.sh | Shell | mit | 7,287 |
# libbash gui tests for osascript (only on macOS)
[ "$lb_current_os" != macOS ] && return 0
gui=osascript
# load global tests
source "$(dirname "$(lb_realpath "$BASH_SOURCE")")"/00_test_gui.sh
| pruje/libbash-tests | libbash-gui/test_osascript.sh | Shell | mit | 196 |
mkdir libs bin
wget -P libs http://jsoup.org/packages/jsoup-1.8.3.jar
wget -P libs https://bitbucket.org/xerial/sqlite-jdbc/downloads/sqlite-jdbc-3.8.11.1.jar
javac -cp "libs/*" -d "bin" src/*.java | lacraig2/XKCDViewer | build.sh | Shell | mit | 197 |
#!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... | alpinereplay/trace_jobs | Example/Pods/Target Support Files/Pods-TraceJobs_Example/Pods-TraceJobs_Example-frameworks.sh | Shell | mit | 2,612 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.