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
python tradeoff.py -o energy -s 0 16000 -d data/1024_reference data/1024_reference_avx data/1024_static_tuning data/1024_static_tuning_avx/
| mohamso/optewe | results/create_1024_energy.sh | Shell | bsd-3-clause | 154 |
#!/bin/sh
#
# Copyright (c) 2015-2016, Intel Corporation
#
# 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 ... | maxhutch/libxsmm | samples/generator/test_xGEMM.sh | Shell | bsd-3-clause | 7,148 |
#!/bin/bash
BASE_DIR=$(readlink -f $(dirname "$0"))/..
if [ -z "$1" ]; then
echo "Provide a config file"
exit
fi
source "$1"
verify-train-files.py "$TRAIN_RECIPE" "$TRAIN_TRN" "$TRAIN_LEX" "$TRAIN_IM.ph"
| phsmit/iwclul2016-scripts | 02_amtraining/train_scripts/05-verify.sh | Shell | bsd-3-clause | 217 |
#! /bin/sh
# /etc/init.d/dosenet.sh
### BEGIN INIT INFO
# Provides: dosenet
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: false
# Short-Description: DoseNet - sends data for the DoseNet project
### END INIT INFO
# setup paths and check config files
HOME=/h... | bearing/dosenet-raspberrypi | main.sh | Shell | mit | 1,103 |
#!/zsh
#
# Zsh completion for gibo
#
# INSTALLATION
#
# First install gibo from
# https://github.com/simonwhitaker/gitignore-boilerplates
#
# Make sure autocompletion is enabled in your shell, typically
# by adding this to your .zshrc:
#
# autoload -U compinit && compinit
#
# Then copy this file somewhere (e... | bhedana/.box | lib/box-git/gibo-completion.zsh | Shell | mit | 741 |
#!/bin/sh
echo "Persist partition was resized by skiff-init-squashfs at boot."
| paralin/SkiffOS | configs/usbarmory/common/root_overlay/opt/skiff/scripts/resize-persist.sh | Shell | mit | 80 |
## Helper script for build_all.sh
FILE=$1
macro="$macro -D_ELPP_THREAD_SAFE"
macro="$macro -D_ELPP_STL_LOGGING"
macro="$macro -D_ELPP_LOG_STD_ARRAY"
macro="$macro -D_ELPP_LOG_UNORDERED_SET"
macro="$macro -D_ELPP_LOG_UNORDERED_MAP"
macro="$macro -D_ELPP_STACKTRACE_ON_CRASH"
if [ "$2" = "" ];then
COMPILER=g++
else
... | derceg/easyloggingpp | samples/OpenGL/compile.sh | Shell | mit | 705 |
#!/bin/bash
export PROJECT="$(gcloud config get-value project)"
export VEP_CONFIG_PATH="$(/usr/share/google/get_metadata_value attributes/VEP_CONFIG_PATH)"
export VEP_REPLICATE="$(/usr/share/google/get_metadata_value attributes/VEP_REPLICATE)"
export VEP_BUCKET=hail-${VEP_REPLICATE}-vep
export ASSEMBLY=GRCh38
export V... | danking/hail | hail/python/hailtop/hailctl/dataproc/resources/vep-GRCh38.sh | Shell | mit | 1,803 |
#!/usr/bin/env bash
# Base16 Atelier Estuary - Gnome Terminal color scheme install script
# Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/estuary)
[[ -z "$PROFILE_NAME" ]] && PROFILE_NAME="Base 16 Atelier Estuary Dark"
[[ -z "$PROFILE_SLUG" ]] && PROFILE_SLUG="base-16-atelierestuary-da... | atelierbram/syntax-highlighting | docs/atelier-schemes/output/gnome-terminal/base16-atelierestuary.dark.sh | Shell | mit | 3,817 |
#!/bin/sh
set -eux
export HS_RESOURCES="${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
export HS_DST="${HS_RESOURCES}/extensions/hs"
export HS_MODULES="alert \
applescript \
application \
audiodevice \
base64 \
battery \
brightness \
caffeinate \
chooser \
console \
... | joehanchoi/hammerspoon | scripts/copy_extensions_to_bundle.sh | Shell | mit | 3,540 |
JOHNRIPPER_HASH=LM
. $SHELLPACK_TOPLEVEL/drivers/driver-johnripper-common.sh
| gormanm/mmtests | drivers/driver-johnripper-LM.sh | Shell | gpl-2.0 | 77 |
#!/bin/bash
# =============================================================================
# Project: LUPIN
#
# Purpose: Remove cached Subversion auth files
#
# Language: GNU bash script
#
# Note: Should configure username,etc.
#
# Copyright 2007-2009 Magneti Marelli Electronic Systems - All Rights Reserved
# ======... | gmacario/gm-admintools | svn_utils/clean_svnuser.sh | Shell | gpl-2.0 | 1,285 |
#!/bin/sh
service firewalld stop
| pckls/vagrant | vagrant-skeleton/files/stop-firewalld.sh | Shell | gpl-2.0 | 34 |
#! /bin/bash
d="$MYBLOCKCHAINTEST_VARDIR/tmp/long_temporary_directory_path_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789"
test -d "$d" || mkdir "$d"
rm -f "$d"/*
| myblockchain/myblockchain | myblockchain-test/t/long_tmpdir-master.sh | Shell | gpl-2.0 | 197 |
#!/bin/sh
set -e
autoreconf --version
autoreconf --install --verbose --force --warnings=portability,no-unsupported
scripts/version.sh
| Elemental-IRCd/elemental-ircd | autogen.sh | Shell | gpl-2.0 | 136 |
#!/bin/bash
#Shared Host ffmpeg installation script
# Copyright (C) 2000-2007 Sherin.in. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the Licen... | heidisoft/FFMPEG-install-script-for-shared-host | lame.sh | Shell | gpl-2.0 | 1,326 |
#!/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 1A/logs/w-10_0/20161107T042502+0000/00/00/calculateratio_1_ID0000016.sh | Shell | gpl-3.0 | 1,252 |
#!/bin/sh
#
# Alle testen draaien
#
# Plaatsbepaling
#BE_HOME_DIR=`dirname $0`/..
#BE_HOME_DIR=`(cd "$BE_HOME_DIR"; pwd)`
# Bepaal waar we zijn zodat we kunnen uitvoeren vanaf elke directory
# werkt ook met symlinks dankzij gidema.
if [ -h "$0" ] ; then
BE_HOME_DIR=`readlink "$0"`
BE_HOME_DIR=`dirname "$BE_HOME_DI... | nlextract/NLExtract | bag/test/runtests.sh | Shell | gpl-3.0 | 1,708 |
#!/bin/bash
# Class importer for UPDATE.sh bash object emulation
NagiosModulePath="."
if [ "$1" != "" ]; then
NagiosModulePath=$1
fi
NagiosModule(){
. <(sed "s/NagiosModule/$1/g" ${NagiosModulePath}/NagiosModule.class.sh)
}
| trevrobwhite/openITCOCKPIT | plugins/NagiosModule/updateScripts/NagiosModule.h.sh | Shell | gpl-3.0 | 235 |
#!/bin/bash
. ../MasterTest.sh
CleanFiles info.in atoms.dat residues.dat bonds.dat angles.dat dihedrals.dat \
molecules.dat masscharge.dat values.dat molshort.dat molselect.dat \
molselect2.dat ChargeMass.dat
INPUT="-i info.in"
cat > info.in <<EOF
parm ../tz2.parm7
atoms :3
atoms :3 out atoms.d... | mojyt/cpptraj | test/Test_TopInfo/RunTest.sh | Shell | gpl-3.0 | 1,865 |
#!/bin/bash
set -e
if [ "$#" -ne 5 ]; then
echo "usage: script <bam> <species> <genome_version> <gencode_version> <nthreads>"
exit 1
fi
inbam=$1
species=$2
genome_version=$3
gencode_version=$4
nthreads=$5
inpath=$(readlink -f $inbam)
indir=${inpath%/*}
sample_name=${indir##*/}
# the parent directory is named with ... | djhshih/canales | rsem/rsem-se_gencode.sh | Shell | gpl-3.0 | 1,059 |
source /software/products/eups-2.1.4/bin/setups.sh
setup DOSlib
setup QLFInterface
export QLF_ROOT=$(pwd)
export PYTHONPATH=$QLF_ROOT/framework/bin:$PYTHONPATH
python -Wi $QLF_ROOT/framework/bin/ics_daemon.py
| linea-it/qlf | backend/ics.sh | Shell | gpl-3.0 | 213 |
#!/bin/bash
DONE_FLAG="/tmp/$0_done"
echo '#### Install cron ####'
if [ -f $DONE_FLAG ]; then exit; fi
echo '-- PRESS ENTER KEY --'
read KEY
ubuntu() {
echo 'Ubuntu will be supported shortly.'
}
centos() {
echo "It's CentOS!"
su - joruri -c '/usr/bin/crontab /var/share/joruri/doc/install_scripts/crontab_jorur... | masanobu-miyagi/joruri-cms | doc/install_scripts/install_cron.sh | Shell | gpl-3.0 | 576 |
export WINK_IP_ADDRESS=192.168.1.3
echo Set Destination Winkhub IP to: $WINK_IP_ADDRESS
| icecreammatt/gopherwink-frontend | configure.sh | Shell | gpl-3.0 | 88 |
#! /bin/sh
basedir="."
# make sure to use the same locale everywhere.
LC_ALL=C
export LC_ALL
LANG=C
export LANG
for suffix in _glibc ''
do
binary=$basedir/getconf$suffix
logfile=$basedir/tst-getconf$suffix.out
rm -f $logfile
result=0
while read name; do
case "$name" in
"#"*) continue;;
esac
echo -n "getconf... | aeste/uclibc | test/unistd/tst-getconf.sh | Shell | lgpl-2.1 | 4,622 |
#!/usr/bin/env bash
set -e
ci_dir="$(dirname "$0")"
. "${ci_dir}/ci-common.sh"
git_download finmap
if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi
( cd "${CI_BUILD_DIR}/finmap"
make
make install
)
| SkySkimmer/coq | dev/ci/ci-finmap.sh | Shell | lgpl-2.1 | 199 |
#!/bin/bash
# check that a Sling staged release matches the corresponding svn tags
#
# usage:
# sh check_release_matches_tag.sh 004 /tmp/sling-staging
#
BASE=$2/$1/org/apache/sling
TAGBASE=http://svn.apache.org/repos/asf/sling/tags/
function fail() {
echo $* >&2
exit 1
}
function check() {
TAG=$TAGBASE/$1
... | ffromm/sling | check_release_matches_tag.sh | Shell | apache-2.0 | 936 |
#!/bin/bash
#
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | android-art-intel/Nougat | art-extension/tools/run-libcore-tests.sh | Shell | apache-2.0 | 4,389 |
#!/usr/bin/env bash
set -e
cd "$(dirname "$BASH_SOURCE")/.."
# Downloads dependencies into vendor/ directory
mkdir -p vendor
cd vendor
clone() {
vcs=$1
pkg=$2
rev=$3
pkg_url=https://$pkg
target_dir=src/$pkg
echo -n "$pkg @ $rev: "
if [ -d $target_dir ]; then
echo -n 'rm old, '
rm -fr $target_dir
fi... | mwhudson/docker | hack/vendor.sh | Shell | apache-2.0 | 1,969 |
#!/bin/sh
if command -v systemctl >/dev/null 2>&1; then
systemctl stop otel-contrib-collector.service
systemctl disable otel-contrib-collector.service
fi | open-telemetry/opentelemetry-collector-contrib | internal/buildscripts/packaging/fpm/preuninstall.sh | Shell | apache-2.0 | 162 |
#!/bin/bash
#
# Copyright 2017 Google 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 agreed ... | apigee/cloud-foundry-apigee | microgateway_decorator/lib/microgateway.sh | Shell | apache-2.0 | 860 |
#!/bin/bash
set -e
if [[ $1 == "" ]]; then
PORT=5000
else
PORT=$((5000+$1))
fi
if [[ $2 == "" ]]; then
SCRATCH_DIR=.
else
SCRATCH_DIR=$2
fi
./api.py --port $PORT > /dev/null 2>&1 &
MOCK_SERVER_PID=$!
cleanup() {
kill $MOCK_SERVER_PID
}
trap cleanup EXIT
export DX_APISERVER_HOST=localhost
#exp... | andyshinn/dx-toolkit | src/python/test/mock_api/run.sh | Shell | apache-2.0 | 1,224 |
################################################################################
# Rebuild the cache.
################################################################################
cd $HTDOCS
if [ -e sites/default/settings.php ]; then
$DRUSHBIN $DRUSH_PARAMS cache-rebuild --yes
fi
| cocomore/drupal8-boilerplate | custom_scripts/update/006_cache-rebuild.sh | Shell | apache-2.0 | 288 |
#!/bin/bash
# Copyright 2017 Battelle Energy Alliance, 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... | idaholab/raven | framework/RemoteNodeScripts/start_ray.sh | Shell | apache-2.0 | 1,116 |
#!/bin/sh
set -e
export GRADLE_OPTS=-Dorg.gradle.native=false
cd git-repo
gradle test
| shiggins113/test2 | unit.sh | Shell | apache-2.0 | 88 |
#!/bin/bash
#
# This script tries to merge OpenZFS commits to ZoL.
#
# Instruction:
#
# Repository setup must be similar with openzfs-tracking.sh
# requirements.
#
# Repository setup for valid compilation check:
# sh autogen.sh
# ./configure --enable-debug
#
# mandatory git settings:
# [merge]
# renameLimit = 99999... | gmelikov/zfs-buildbot | scripts/openzfs-merge.sh | Shell | bsd-2-clause | 6,530 |
#!/bin/bash
#
# This file is part of libzbc.
#
# Copyright (C) 2009-2014, HGST, Inc. All rights reserved.
#
# This software is distributed under the terms of the BSD 2-clause license,
# "as is," without technical support, and WITHOUT ANY WARRANTY, without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A... | umn-smr/libzbc | test/scripts/02_state_machine_check/047.sh | Shell | bsd-2-clause | 1,346 |
#!/bin/bash
make clean
make
make package
make install THEOS_DEVICE_IP=rPad.local
| JeeLiu/RevealLoader | build.sh | Shell | bsd-3-clause | 82 |
#!/usr/bin/env bash
# this script must be run by root or sudo
if [[ "$UID" -ne "0" ]] ; then
echo "ERROR: This script must be run by root or sudo"
exit
fi
# We assume a relative path from this repository to the installation
# directory and configuration directory.
CONF_DIR="$( cd "$( dirname "${BASH_SOURCE[0... | RCOS-Grading-Server/HWserver | .setup/distro_setup/ubuntu/rpi.sh | Shell | bsd-3-clause | 6,411 |
cd /opt/tinyos-1.x/contrib/ucbRobo/apps/sensornet/MagMHopRpt
make clean
make mica2dot
testbed-program.pl --testbed=$TOS_TESTBED_CONFIG --download
cd /opt/tinyos-1.x/apps/TOSBase
make clean
make mica2dot
program.sh --download --platform=mica2dot --moteid=0 --networkhost=192.168.0.100
| ekiwi/tinyos-1.x | contrib/ucbRobo/tools/scripts/demoProg.sh | Shell | bsd-3-clause | 287 |
#!/bin/bash
# see wgetrec.sh
# only different arg is "--no-remove-listing --timestamping" instead of "--noclobber"
wget -r -l5 --no-remove-listing --timestamping --no-parent \
--no-verbose --background -a wget-`date +%Y%m%d`.log \
-erobots=off --wait=0.5 --random-wait --limit-rate=100 \
... | mccuistion/dotfiles | bin/wgetftprec.sh | Shell | mit | 325 |
#!/usr/bin/env bash
set -eux
export ANSIBLE_FORCE_HANDLERS
ANSIBLE_FORCE_HANDLERS=false
# simple handler test
ansible-playbook test_handlers.yml -i inventory.handlers -v "$@" --tags scenario1
# simple from_handlers test
ansible-playbook from_handlers.yml -i inventory.handlers -v "$@" --tags scenario1
ansible-play... | maxamillion/ansible | test/integration/targets/handlers/runme.sh | Shell | gpl-3.0 | 4,738 |
#!/bin/sh
# Copyright (C) 1994-2016 Altair Engineering, Inc.
# For more information, contact Altair at www.altair.com.
#
# This file is part of the PBS Professional ("PBS Pro") software.
#
# Open Source License Information:
#
# PBS Pro is free software. You can redistribute it and/or modify it under the
# ... | vinodchitrali/pbspro | src/cmds/scripts/sgiICEplacement.sh | Shell | agpl-3.0 | 2,315 |
#!/bin/sh
export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:/usr/lib/pkgconfig:${PKG_CONFIG_PATH}"
pkg-config --libs yara
if [ $? != 0 ]; then
yara/install-yara3.sh
fi
SUDO=sudo
cd yara/yara3
./configure --prefix=/usr || exit 1
make clean
make || exit 1
if [ "`id -u`" = 0 ]; then
${SUDO} make install || exit 1
else
e... | AlexKornitzer/radare2-extras | sys/yara3.sh | Shell | lgpl-3.0 | 464 |
#!/bin/bash
#
# Copyright 2013 Zynga 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 ... | jonahzheng/zperfmon | server/db_cron/get_game_metrics.sh | Shell | apache-2.0 | 856 |
#!/bin/bash
: ${PYTHON=python}
: ${SEAHUB_TEST_USERNAME="test@seafiletest.com"}
: ${SEAHUB_TEST_PASSWORD="testtest"}
: ${SEAHUB_TEST_ADMIN_USERNAME="admin@seafiletest.com"}
: ${SEAHUB_TEST_ADMIN_PASSWORD="adminadmin"}
export SEAHUB_TEST_USERNAME
export SEAHUB_TEST_PASSWORD
export SEAHUB_TEST_ADMIN_USERNAME
export SEA... | Chilledheart/seahub | tests/seahubtests.sh | Shell | apache-2.0 | 3,061 |
#!/bin/bash
# Clean out any old sandbox, make a new one
OUTDIR=sandbox
rm -fr $OUTDIR; mkdir -p $OUTDIR
# Check for os
SEP=:
case "`uname`" in
CYGWIN* )
SEP=";"
;;
esac
function cleanup () {
kill -9 ${PID_1} ${PID_2} ${PID_3} ${PID_4} 1> /dev/null 2>&1
wait 1> /dev/null 2>&1
RC=`cat $OUTDIR/sta... | madmax983/h2o-3 | h2o-algos/testMultiNode.sh | Shell | apache-2.0 | 3,695 |
#!/bin/bash
#little script to streamline editing the sass to qss
#use sass monitor to generate css in /css folder
#run this script to monitor css files and generate qss files in the style folder
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MonitorFile1="$DIR/css/nubits.css"
MonitorFile2="$DIR/css/nushares.c... | duoduosys/Duoduocoin2 | src/qt/res/styles/watch_css.sh | Shell | mit | 1,278 |
mongo --host ${Host} --port ${Port} --username ${Username} --password ${Password} ${Database} ${File} | CA-ReleaseAutomation/ca-ra-mongodb-pack | src/mongodb/MongoDBRunScriptFile1415595730737.sh | Shell | epl-1.0 | 102 |
#!/bin/sh
# $Id: VBoxHeadlessXOrg.sh $
#
# VirtualBox X Server auto-start service.
#
# Copyright (C) 2012-2013 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the... | eaas-framework/virtualbox | src/VBox/Installer/linux/scripts/VBoxHeadlessXOrg.sh | Shell | gpl-2.0 | 13,752 |
#!/bin/bash
# Configuration variables
drupal_root="/home/vagrant/www"
# Check if file exists
cd ${drupal_root}
chmod 755 sites/default
echo "Dropping all tables"
`drush sql-connect` -e "show tables" -s | xargs -I "@@" `drush sql-connect` -e "DROP TABLE @@"
echo "Copying settings.php"
rm -rf sites/default/settings.p... | nikhilpk/myworkspace | profiles/restaurant/scripts/reinstall.sh | Shell | gpl-2.0 | 661 |
#!/bin/bash
# These tests will bring up a single-node Kubernetes cluster and test against examples
# WARNING: This will actively create Docker containers on your machine as well as remove them
# do not run this on a production cluster / machine.
# Check requirements!
if ! hash go 2>/dev/null; then
echo "ERROR: go ... | procrypt/kompose | script/test_k8s/test.sh | Shell | apache-2.0 | 922 |
#!/bin/bash
##########################################################################
#Aqueduct - Compliance Remediation Content
#Copyright (C) 2011,2012
# Vincent C. Passaro (vincent.passaro@gmail.com)
# Shannon Mitchell (shannon.mitchell@fusiontechnology-llc.com)
#
#This program is free software; you can redist... | quark-pat/CLIP | packages/aqueduct/aqueduct/compliance/Bash/STIG/rhel-5/prod/GEN000000-LNX001433.sh | Shell | apache-2.0 | 3,993 |
#!/bin/bash
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if [[ -n "${ZSH_VERSION:-}" ]]; then
devshell_lib_dir=${${(%):-%x}:a:h}
else
devshell_lib_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/nu... | flutter/engine | tools/fuchsia/devshell/lib/vars.sh | Shell | bsd-3-clause | 1,787 |
#! /bin/sh
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program ... | DDTChen/CookieVLC | vlc/extras/tools/automake/t/missing-version-mismatch.sh | Shell | gpl-2.0 | 1,466 |
#!/bin/sh
# Verify that the credentials are changed correctly.
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the ... | ZheJiuShiMing/coreutils | tests/misc/chroot-credentials.sh | Shell | gpl-3.0 | 1,715 |
#!/bin/zsh -x
#!/bin/bash
#both do this!
#to see the shell it's actually running with
#ps uw $$
#src: https://docs.fedoraproject.org/en-US/Fedora_Security_Team/1/html/Defensive_Coding/sect-Defensive_Coding-Shell-Double_Expansion.html
b=2
a='b'
#a=2
#if test $a -eq 2; then #correct way
if [[ $a -eq 2 ]]; then #buggy... | icanrealizeum/manjarred | system/any/linux/caveats/multiple shells/bash zsh/double eval/arith2.bash | Shell | unlicense | 411 |
#!/bin/bash
# Copyright 2014 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | burdara/kubernetes | hack/local-up-cluster.sh | Shell | apache-2.0 | 16,405 |
#!/bin/bash
#
# Copyright 2015 Chef Software, 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 ... | itmustbejj/chef-server | dev/scripts/reporting/chef-server-reporting-latest-independant-external-dbs.sh | Shell | apache-2.0 | 943 |
#!/bin/bash
function setup_dir(){
local target_dir=$1
readonly base_dir=/home/imagine/cnn/practical
ln -s $base_dir/* $target_dir
}
function setup_all(){
local all_dirs=$(ls -1 $1)
for d in ${all_dirs}; do
echo $1/$d
setup_dir $1/$d
done
}
function main(){
if [ $# -ne 1 ]; then
echo Requires one argument
else
if ... | raficuperman/lab_vision | scripts/setup_dir.sh | Shell | mit | 406 |
#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# for buck gen
mount -o remount,exec /dev/shm
AVD_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
# create... | pandiaraj44/react-native | .circleci/Dockerfiles/scripts/run-android-docker-instrumentation-tests.sh | Shell | bsd-3-clause | 1,394 |
#! /bin/bash
# BSD LICENSE
#
# Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
# 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 cod... | yuyuyu101/dpdk | tools/setup.sh | Shell | gpl-2.0 | 14,600 |
#!/bin/bash
script="$0"
basename="$(dirname "$script")"
read -p "Do you want to delete the tooling installed in enterprise too ? [y, n]" willingToDeleteToolingInEnterprise
if [[ $willingToDeleteToolingInEnterprise != "n" ]]
then
read -p "What is the relative path from community to enterprise ? (../enterprise)" pa... | jeremiahyan/odoo | addons/web/tooling/disable.sh | Shell | gpl-3.0 | 1,375 |
#!/bin/bash
# Grab dependencies.
set -eu
# Ensure we only have one entry in GOPATH (glock gets confused
# by more).
export GOPATH=$(cd $(dirname $0)/../../../../../.. && pwd)
# go vet is special: it installs into $GOROOT (which $USER may not have
# write access to) instead of $GOPATH. It is usually but not always
# ... | loucash/cockroach | build/devbase/deps.sh | Shell | apache-2.0 | 764 |
#!/usr/bin/env bash
# **volumes.sh**
# Test cinder volumes with the ``cinder`` command from ``python-cinderclient``
echo "*********************************************************************"
echo "Begin DevStack Exercise: $0"
echo "*********************************************************************"
# This scri... | ewindisch/raspi-devstack | exercises/volumes.sh | Shell | apache-2.0 | 6,624 |
#!/bin/sh
. ../../dttools/test/test_runner_common.sh
test_dir=`basename $0 .sh`.dir
test_output=`basename $0 .sh`.output
prepare()
{
mkdir $test_dir
cd $test_dir
ln -sf ../../src/makeflow .
ln -sf ../syntax/collect.makeflow .
cat > ../$test_output <<EOF
7
8
9
11
EOF
exit 0
}
run()
{
cd $test_dir
./makeflow -... | nhazekam/cctools | makeflow/test/TR_makeflow_030_gc_none.sh | Shell | gpl-2.0 | 539 |
#python manage.py syncdb --noinput --database=stoqs
python manage.py syncdb --noinput --database=stoqs_september2010_s10
python manage.py syncdb --noinput --database=stoqs_october2010_s10
python manage.py syncdb --noinput --database=stoqs_april2011_s10
python manage.py syncdb --noinput --database=stoqs_june2011_s10
py... | stoqs/stoqs | stoqs/loaders/CANON/resyncCANON_databases_s10.sh | Shell | gpl-3.0 | 450 |
# Create LAMMPS input files this way:
cd moltemplate_files
# run moltemplate
moltemplate.sh system.lt
# Moltemplate generates various files with names ending in *.in* and *.data.
# Move them to the directory where you plan to run LAMMPS (in this case "../")
mv -f system.data system.in* ../
# Optional:
... | quang-ha/lammps | tools/moltemplate/examples/all_atom/force_field_AMBER/waterTIP3P+isobutane/README_setup.sh | Shell | gpl-2.0 | 837 |
#!/bin/bash -e
# Based heavily on Rail Aliev's translate-toolkit-mozilla script:
# http://bitbucket.org/rail/translate-toolkit-mozilla
for external in buildxpi.py get_moz_enUS.py moz2po pomigrate2 po2moz wget
do
if [ -z `which $external` ]; then
echo "Could not find $external in PATH"
exit 1
fi
done
CWD=$(pwd)
... | mail-apps/translate | tools/mozilla/mozzy.sh | Shell | gpl-2.0 | 12,089 |
#!/bin/bash
set -x
set -e
if [ $# -eq 0 ]; then
docker run --rm -v $(pwd):/home/hello-world arm32v5/debian /home/hello-world/build-hello-world.sh incontainer 52
docker run --rm -v $(pwd):/home/hello-world arm32v7/debian /home/hello-world/build-hello-world.sh incontainer 52
docker run --rm -v $(pwd):/home/hello-wor... | CYBAI/servo | tests/wpt/web-platform-tests/tools/third_party/packaging/tests/build-hello-world.sh | Shell | mpl-2.0 | 1,696 |
#!/bin/sh
gcc -Wall -I../include speex_jitter_buffer.c speexclient.c alsa_device.c -o speexclient -lspeex -lspeexdsp -lasound -lm
| DDTChen/CookieVLC | vlc/contrib/android/speex/speexclient/compile.sh | Shell | gpl-2.0 | 130 |
#!/bin/bash
# Copyright 2015 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | jnewland/kops | vendor/k8s.io/kubernetes/test/kubemark/start-kubemark-master.sh | Shell | apache-2.0 | 3,077 |
#!/bin/sh
# Copyright (c) 2014-2021 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
export LC_ALL=C
set -e
UNSIGNED="$1"
SIGNATURE="$2"
ROOTDIR=dist
OUTDIR=signed-app
SIGNAPPLE=signapple
if [ -z "$UNS... | particl/particl-core | contrib/macdeploy/detached-sig-apply.sh | Shell | mit | 579 |
#!/bin/bash
RL_HISTORY_FILE=${HOME}/.mal-history
SKIP_INIT="${SKIP_INIT:-}"
ORACLE_LOGON=${ORACLE_LOGON:-system/oracle}
SQLPLUS="sqlplus -S ${ORACLE_LOGON}"
FILE_PID=
cleanup() {
trap - TERM QUIT INT EXIT
#echo cleanup: ${FILE_PID}
[ "${FILE_PID}" ] && kill ${FILE_PID}
}
trap "cleanup" TERM QUIT INT EXIT... | mpwillson/mal | plsql/wrap.sh | Shell | mpl-2.0 | 3,501 |
#!/bin/sh
# Copyright (c) 2007 Eric Wong
test_description='git svn globbing refspecs'
. ./lib-git-svn.sh
cat > expect.end <<EOF
the end
hi
start a new branch
initial
EOF
test_expect_success 'test refspec globbing' '
mkdir -p trunk/src/a trunk/src/b trunk/doc &&
echo "hello world" > trunk/src/a/readme &&
echo "good... | Osse/git | t/t9109-git-svn-multi-glob.sh | Shell | gpl-2.0 | 5,788 |
#! /bin/bash
tar zxvf TOFSpectraPbPb.tgz
if [ "$1" == "data" ]; then
echo "*** Running analysis - Data ***"
aliroot -b -q "SteerAnalysisTaskTOFSpectraPbPb.C(\"wn.xml\", kFALSE, kFALSE, kTRUE)" 2>&1 | tee TOFSpectraPbPb.log
elif [ "$1" == "mc" ]; then
echo "*** Running analysis - MC ***"
aliroot -b -q ... | fcolamar/AliPhysics | PWGLF/SPECTRA/PiKaPr/TOF/PbPb276/grid/TOFSpectraPbPb.sh | Shell | bsd-3-clause | 778 |
define_ok_test test/bre.c
define_ok_test test/str.c
define_ok_test test/token.c
define_ok_test test/wre.c
| cventus/otivm | src/text/module.sh | Shell | isc | 106 |
#!/usr/bin/env bash
exec docker-ctl.sh run api | etki/docker-sensu-components | api/docker-entrypoint.sh | Shell | mit | 47 |
#!/usr/bin/env bash
. $(dirname $0)/vars.sh
# Run only once to create repo (need github.token locally)
curl -i -X POST https://api.github.com/orgs/$ORG/repos -H "Authorization: token `cat ~/.github/github.token`" \
--data "{\"name\":\"$REPO\",\"description\":\"$DESC\",\"homepage\":\"$HOMEPAGE\",\"private\":false,\"... | bower-registry/bower-registry | repo.sh | Shell | mit | 383 |
#!/bin/bash
# Colors
txtund=$(tput sgr 0 1) # Underline
txtbld=$(tput bold) # Bold
Black="$(tput setaf 0)"
BlackBG="$(tput setab 0)"
DarkGrey="$(tput bold ; tput setaf 0)"
LightGrey="$(tput setaf 7)"
LightGreyBG="$(tput setab 7)"
White="$(tput bold ; tput setaf 7)"
... | mitapia/sh | mdc_simulate.sh | Shell | mit | 8,788 |
# Install language-pack
apt install -y language-pack-gnome-zh-hans
# Install fonts
#apt install fonts-wqy-microhei fonts-wqy-zenhei
#apt install fonts-arphic-*
#apt install fonts-noto fonts-roboto
## Using fcitx
## Using ibus
# Install input method
# TODO sogoupinyin
# TODO googlepinyin
| xmu-eietc/first-boot-script | linux/chinese.sh | Shell | mit | 291 |
sudo apt-get -y install hamster-sidejack
| sslavov93/kali-linux-tools | scripts/hamster-sidejack.sh | Shell | mit | 41 |
#!/bin/bash
go_inside_directory(){
directory=$1
indent=$2
for f in $( ls $1 ); do
if [ -d "$1/$f" -a ! -L "$1/$f" ]; then
echo $( head -c $2 < /dev/zero | tr '\0' '-' ) "+" $f
go_inside_directory $1/$f $(($2+3))
elif [ -e "$1/$f" ]; then
echo $( head -c $2 < /dev/zero | tr '\0' '-' ) ">... | Zephyrrus/ubb | YEAR 1/SEM2/OS/lab29_03.sh | Shell | mit | 366 |
#!/usr/bin/env bash
/etc/puppet/modules/puppet/update-puppet-with-param.sh wheezy
| puppet-by-examples/puppet-puppet | update-puppet-debian-7.sh | Shell | mit | 83 |
#!/bin/sh
CWD=`pwd`
BASEPATH=`dirname $CWD`
# Execute the Composer in a sub-shell
(cd $BASEPATH
composer update --no-dev && composer dump-autoload -o
) | tomvlk/php-framework | scripts/update_composer.sh | Shell | mit | 159 |
#/usr/bin/env bash
# Download and process all results from a multi patch
PATCH_FILE=${1}
DSI_PATH=${DSI_PATH:-/Users/daviddaly/mongosrc/dsi-repos/master}
echo "Patch File is " $PATCH_FILE
echo "DSI PATH is " $DSI_PATH
python $DSI_PATH/analysis/multi_analysis.py -C $PATCH_FILE --json-array --out flat.json
python $DSI_... | dalyd/Tools | scripts/oneoffs/noise_reduction/AllData.sh | Shell | mit | 455 |
# pull all repot
FOLDERS=`ls -d vendor/*/`
BRANCH="master"
REMOTE="origin"
for FILE in $FOLDERS
do
echo "Process $FILE bundle"
echo "================================================================"
cd $FILE
git fetch --all
git checkout $BRANCH
git pull $REMOTE $BRANCH
cd ../..
done
| TACTfactory/harmony-core | script/git-all.sh | Shell | mit | 293 |
#!/bin/bash
# How to read shell params: http://stackoverflow.com/a/14203146
HOST=$mysqlhost
PORT=$mysqlport
DATABASE=$mysqldbname
USER=$mysqluser
PASSWORD=$mysqlpassword
WWWDATA="/var/www/html/ilias/data"
DATA="/opt/iliasdata"
SRC="$(pwd)/ilias.tar.gz"
while [[ $# > 1 ]]
do
key="$1"
case $key in
--host)
HOST... | kekru/ilias-docker | dockerfiles/ilias-base/resources/restoreilias.sh | Shell | mit | 1,649 |
#!/bin/bash
SRC_DIR=$(dirname "${0}")
DEST_DIR=$(basename ${VPWebExportOutputDirectory})
#PRODUCT_NAME is used in a sed expressions, so any spaces will have to be escaped
PRODUCT_NAME='ProductName'
ICON_FILE='generic.png'
cp "${SRC_DIR}/style.css" "${VPWebExportOutputDirectory}/"
#'/Developer/Applications/Utilities/... | jetseven/AppleHelpWebExport | AppleHelp.vpwebexport/Contents/postflight.sh | Shell | mit | 916 |
#!/bin/sh
cd charaimgs
wget -i imageURLlist.txt
rename index.php\?plugin=attach\&refer=img\&openfile= "" index.php\?plugin=attach\&refer=img\&openfile=*
| asciisyaez/asukicalc | download_charaimages_from_wiki.sh | Shell | mit | 153 |
#!/usr/bin/env bash
cd "${EXAMPLE_PKG_DIR}" &&
webpack --bail --config ./vanilla/webpack.config.js &&
webpack --bail --config ./happy/webpack.config.js &&
cd "${EXAMPLE_OUT_DIR}" &&
git-diff ./happy/main.js.map ./vanilla/main.js.map
| amireh/happypack | examples/source-maps/build.sh | Shell | mit | 237 |
#!/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... | markedwardmurray/Precipitate | Pods/Target Support Files/Pods-Precipitate/Pods-Precipitate-frameworks.sh | Shell | mit | 4,810 |
# Autogenerated script from 05_bismark_array_job.R
# date Wed Aug 16 14:01:43 2017
# make sure directory paths exist before running script
#!/bin/bash
#$ -S /bin/bash
#$ -pe smp 8
#$ -cwd
#$ -N bismark-array
#$ -j y
#$ -l h_vmem=19G
#$ -t 1-8
module load bioinformatics/bowtie2/2.2.5
module load bioinformatics/samtoo... | uhkniazi/BRC_NeuralTube_Miho | S107/AutoScripts/bismark.sh | Shell | mit | 776 |
#!/bin/bash
for year in {1975..2012}; do
# Some files end in 'dbf'...
for dbf_filename in `ls $year/*.dbf`; do
python dbf_to_csv.py $dbf_filename $dbf_filename.csv
done
# and some other files end in 'DBF'.
for dbf_filename in `ls $year/*.DBF`; do
python dbf_to_csv.py $dbf_filename $d... | tothebeat/fatal-car-crashes | convert_all_dbf_to_csv.sh | Shell | mit | 350 |
PKGS="wajig gedit libreoffice chromium-browser gimp openshot scribus openssh-server vim"
TO_REMOVE="abiword gnumeric apport update-manager update-manager-core"
sudo apt-get -y install $PKGS
sudo apt-get -y remove $TO_REMOVE
#cp -r home/* /etc/skel/
mkdir -p /etc/skel/.config/lxsession/Lubuntu/
mkdir -p /etc/skel/Skr... | 0708andreas/egebjerg_install | install.sh | Shell | mit | 709 |
#!/bin/bash
# ----------------------------------------------------- #
# Finalizado el Build del contenedor en "run-mode"
# debemos hacer algunas cosas para que todo funcione
# correctamente.
# ----------------------------------------------------- #
APACHE2_WSGI=$CKAN_CONFIG/apache.wsgi
# Creamos contexto para C... | JoseSalgado1024/ckan_in_docker | ckan-img_non-pack/scripts/start_ckan.sh | Shell | mit | 1,545 |
BUILD_DIR=$1
COMMON_DIR=$2
ROOT_NAMESPACE=$3
echo "BUILD_DIR=$BUILD_DIR"
echo "COMMON_DIR=$COMMON_DIR"
echo "ROOT_NAMESPACE=$ROOT_NAMESPACE"
# CD to build dir
cd $BUILD_DIR
# Import certs
if test -f "/etc/pki/tls/certs/ca-bundle.crt"; then
echo "Using cert-sync"
cert-sync /etc/pki/tls/certs/ca-bundle.crt
else
ech... | MyPureCloud/platform-client-sdk-common | resources/sdk/pureclouddotnet/scripts/compile.sh | Shell | mit | 2,343 |
#!/bin/bash -ev
#
# Installation script
# Written by: Tommy Lincoln <pajamapants3000@gmail.com>
# License: See LICENSE in parent folder
#
# TODO: Override or pass options via command line
#
DATE=$(date +%Y%m%d)
TIME=$(date +%H%M%S)
#
# If executed with command line options, then instead of running installer
#+the argum... | pajamapants3000/BLFS_scripts_etc | scripts/non-blfs/bash_completion-git.sh | Shell | mit | 10,817 |
#!/bin/bash
#
# Generate instant.dnsbl.zone file and purge old entries.
#
# CRON.D :*/03 * * * * root /usr/local/sbin/dnsbl-generate.sh
#echo "CREATE TABLE instant ( 'ip' INTEGER PRIMARY KEY ON CONFLICT IGNORE, 'type' INTEGER, 'date' INTEGER );" \
# | sqlite3 dnsbl.sqlite
SQLITE_DB="/home/instant/website/dn... | szepeviktor/debian-server-tools | security/fail2ban-leanmail/dnsbl-generate.sh | Shell | mit | 1,703 |
#!/bin/bash
set -e
BRANCH_NAME=${TRAVIS_BRANCH}
ARTIFACT_VERSION="2."$(($(git rev-list --count HEAD)+62))
tagAndCreateGitHubRelease() {
git fetch --tags
LAST_TAG=$(git describe --tags --abbrev=0)
THIS_RELEASE=$(git rev-parse --short ${BRANCH_NAME})
local IFS=$'\n'
RELEASE_NOTES_ARRAY=($(git log --... | stoyicker/android-check-2 | plugin/ci/tag_release.sh | Shell | mit | 1,083 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.