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
# creates SLHA output files for all SLHA input files in the directory
# model_files/ (and sub-directories) that begin with LesHouches.in. .
# The names of the output files will begin with LesHouches.out. .
# Author: Alexander Voigt
# directory of this script
BASEDIR=$(dirname $0)
HOMEDIR=$(readlink -f "${B... | iolojz/FlexibleSuSy | release/generate-slha-output.sh | Shell | gpl-3.0 | 2,768 |
#using 2 commands together using reverse quote `
#renames a file to file.name
#where name is the login name of the user
name=$1
set `who`
mv $name $name.$1
| hacktoberfest17/programming | shell_scripting/reverse-quote.sh | Shell | gpl-3.0 | 156 |
# This file is part of the rsyslog project, released under ASL 2.0
echo ===============================================================================
echo \[elasticsearch-basic-errorfile-empty\]: basic test for elasticsearch functionality
source $srcdir/diag.sh init
source $srcdir/diag.sh es-init
source $srcdir/diag.... | kelledge/rsyslog | tests/elasticsearch-basic-errorfile-empty.sh | Shell | gpl-3.0 | 688 |
#!/bin/bash
set -e
LOGFILE=/var/log/cdr-stats/gunicorn_cdr_stats.log
LOGDIR=$(dirname $LOGFILE)
# The number of workers is number of worker processes that will serve requests.
# You can set it as low as 1 if you’re on a small VPS.
# A popular formula is 1 + 2 * number_of_cpus on the machine (the logic being,
# half of... | cdr-stats/cdr-stats | cdr_stats/gunicorn_launcher.sh | Shell | mpl-2.0 | 848 |
#!/bin/sh
# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
# This file is public domain and comes with NO WARRANTY of any kind
#
# Script to start the MySQL daemon and restart it if it dies unexpectedly
#
# This should be executed in the MySQL base directory if you are using a
# binary insta... | natsys/mariadb_10.2 | scripts/mysqld_safe.sh | Shell | lgpl-2.1 | 30,338 |
# COPYRIGHT_MAY_GO_HERE
# Run IGVTools with the given amount of memory
# Usage: igvtools 1g [arguments]
function igvtools {
set -x
set -T
memory="$1"
shift
# set both minimum and max right away so failure occurs early and parallel GC is happier.
java -Xms${memory} -Xmx${memory} -Djava.awt.headless=t... | CampagneLaboratory/gobyweb-plugins | resources/IGVTOOLS_1_5_16/igvtools-script.sh | Shell | lgpl-3.0 | 481 |
# Change Directory Aliases
alias ..="cd .. && l"
alias ...="cd ../.. && l"
alias ....="cd ../../.. && l"
alias .....="cd ../../../.. && l"
alias ......="cd ../../../../.. && l"
alias desktop="cd ~/Desktop && l"
alias dt="desktop"
alias dto="desktop && oo && x"
alias documents="cd ~/Documents"
alias doc="documents"
ali... | zborboa-g/dot-star | bash/.cd.sh | Shell | unlicense | 1,955 |
#!/bin/bash -e
# Copyright 2014 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... | bowlofstew/kythe | kythe/data/test_filevnames.sh | Shell | apache-2.0 | 1,084 |
#!/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... | guoshimin/kubernetes | cluster/aws/config-default.sh | Shell | apache-2.0 | 3,152 |
{%- from 'krb5/settings.sls' import krb5 with context %}
{%- set realm = krb5.realm -%}
#!/bin/bash
export KRB5_CONFIG={{ pillar.krb5.conf_file }}
(
echo "addprinc -randkey kms/{{ grains.fqdn }}@{{ realm }}"
echo "xst -k kms-unmerged.keytab kms/{{ grains.fqdn }}@{{ realm }}"
) | kadmin -p kadmin/admin -kt /root/admin.k... | clarkperkins/hdp2-formula | hdp2/hadoop/kms/security/generate_keytabs.sh | Shell | apache-2.0 | 493 |
#!/usr/bin/env bash
set -e
if [[ "${EXIST_DB_VERSION}" == eXist* ]]; then
echo "reset data and logfiles for ${EXIST_DB_VERSION}"
cd ${EXIST_DB_FOLDER}
./build.sh clean-default-data-dir
rm webapp/WEB-INF/logs/*.log
exit 0
fi
echo "exclude ${EXIST_DB_VERSION} from cache"
rm -rf ${EXIST_DB_FOLDER} | emory-libraries/ddi-search | ci/teardown-existdb.sh | Shell | apache-2.0 | 308 |
#!/bin/sh
DIR=$(cd "$( dirname "$0" )" && pwd)
while true; do
if ! type "$nodejs" > /dev/null; then
nodejs $DIR/lib/js/sockets.js
elif ! type "$node" > /dev/null; then
node $DIR/lib/js/sockets.js
fi
done
| gfts/wlox | cron/node_start.sh | Shell | apache-2.0 | 215 |
#! /bin/sh
st=`for i in /mnt/storage /mnt/sdcard /sdcard; do [ -d $i ] && echo $i && break; done`
if [ x$api != x ]; then :
elif ! type \cut > /dev/null; then api=14; else
api=`grep build.version.sdk /system/build.prop | cut -d = -f 2`
fi
PW=`pwd`
export EXTERNAL_STORAGE=$st
export LANG=en
bin=/data/data/com.goog... | pforret/python-for-android | sl4atools/standalone_python3.sh | Shell | apache-2.0 | 1,028 |
#!/bin/bash
echo 'Plex Media Player quit command sent...'
sudo /usr/local/bin/quitpmp.bash
| wahlmanj/OpenPlex3 | update/OSX/quitpmpbash.bash | Shell | bsd-3-clause | 93 |
#!/bin/bash -
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$CURRENT_DIR/helpers.sh"
main()
{
local download=$("$CURRENT_DIR/download_speed.sh")
local upload=$("$CURRENT_DIR/upload_speed.sh")
# TODO - make the text format configurable
printf "D:%10s U:%10s" "$download" "$upl... | Janik-Tarverdyan/TMUX | plugins/tmux-powerline/tmux-net-speed/scripts/net_speed.sh | Shell | bsd-3-clause | 332 |
#!/bin/bash
LOG=$1
FUNC=$2
STARTPATTERN="SuggestContext for $FUNC"
DIVPATTERN="========"
OUTDIR="tempcontexts"
echo "Getting contexts for $FUNC from $LOG into $OUTDIR"
scripts/grepbetween.py "$STARTPATTERN" "$DIVPATTERN" $LOG > $OUTDIR/temp
scripts/split_on.py "$DIVPATTERN" $OUTDIR/temp $OUTDIR/$FUNC
| cogumbreiro/relay | scripts/getcontexts2.sh | Shell | bsd-3-clause | 302 |
#!/bin/bash
# Slackware chroot installer for making Woof-based puppy
# Copyright (C) James Budiono 2014
# License: GNU GPL Version 3 or later.
#
# env vars: DRY_RUN=1 - don't install, just print output of flattened pkglist
INSTALLPKG=./installpkg
REMOVEPKG=./removepkg
SLAPTGET_PKGDB=/etc/slapt-get/slapt-getrc
###... | peabee/woof-CE | zwn/builders/slack-build.sh | Shell | gpl-2.0 | 16,252 |
#!/bin/sh
#
# Copyright (c) 2006 Eric Wong
test_description='git svn commit-diff'
. ./lib-git-svn.sh
test_expect_success 'initialize repo' '
mkdir import &&
cd import &&
echo hello > readme &&
svn import -m "initial" . "$svnrepo" &&
cd .. &&
echo hello > readme &&
git update-index --add readme &&
git commit -a... | certik/git | t/t9105-git-svn-commit-diff.sh | Shell | gpl-2.0 | 1,186 |
#! /bin/sh
# Copyright (C) 2012-2014 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 ... | kuym/openocd | tools/automake-1.15/t/recurs-user-deeply-nested.sh | Shell | gpl-2.0 | 2,122 |
#!/bin/bash
. ./aux/lib.sh
load_abrt_conf
if [ $1 ]; then
# clenaup BEFORE every test
# stop services
systemctl stop abrt-oops
systemctl stop abrt-xorg
systemctl stop abrtd &> /dev/null
# cleanup
echo -n '|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %e' > /var/run/abrt/saved_cor... | martinky82/abrt | tests/runtests/aux/runner.sh | Shell | gpl-2.0 | 2,440 |
ant clean
ant build
ant deploy
| ggonzales/ksl | docs/examples/osgi/com.dotcms.custom.dwr/refresh.sh | Shell | gpl-3.0 | 31 |
#!/bin/bash
# Copyright (C) 2017 Intel Corporation
#
# 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 License, or (at your option) any later version.
#
# This pro... | devimc/tests | metrics/network/network-metrics-memory-pss.sh | Shell | apache-2.0 | 3,058 |
#!/bin/bash
# Copyright 2016 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 applic... | shareactorIO/pipeline | source.ml/jupyterhub.ml/notebooks/zz_old/TensorFlow/GoogleTraining/workshop_sections/transfer_learning/cloudml/flowers_train.sh | Shell | apache-2.0 | 1,760 |
#!/usr/bin/env bash
# Copyright 2020 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 app... | GoogleCloudPlatform/compute-image-tools | daisy_workflows/image_import/inspection/daisy-shim.sh | Shell | apache-2.0 | 1,240 |
#!/bin/sh
printf "%s\n" "$@" \
../src/nit*.nit \
../src/test_*.nit \
../examples/*.nit \
../examples/*/*.nit \
../examples/shoot/src/shoot_logic.nit \
../examples/*/src/*_android.nit \
../examples/*/src/*_linux.nit \
../examples/*/src/*_null.nit \
../examples/pnacl/converter/converter.nit \
../examples/nitcor... | colinvidal/nit | tests/listfull.sh | Shell | apache-2.0 | 580 |
#!/bin/sh
#
# Copyright 2020 PingCAP, 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 t... | pingcap/tidb | br/tests/lightning_auto_random_default/run.sh | Shell | apache-2.0 | 2,306 |
@echo off
echo ===============================
echo - Xtrem Carpaccio! -
echo ===============================
echo ======== RESTORE DEPENDENCIES =============
dnu commands install Microsoft.Dnx.Watcher
dnu restore
echo ======== BUILD SOURCES =============
cd src/xcarpaccio/
dnu build
cd ../..
ech... | octo-technology/extreme-carpaccio | clients/c#/dnx-csharp/build.sh | Shell | bsd-3-clause | 460 |
#!/bin/bash
# Bash script to lint the content of playgrounds
# Heavily based on RxSwift's
# https://github.com/ReactiveX/RxSwift/blob/master/scripts/validate-playgrounds.sh
if [ -z "$BUILD_DIRECTORY" ]; then
echo "\$BUILD_DIRECTORY is not set. Are you trying to run \`validate-playgrounds.sh\` without building RAC f... | victorlin/ReactiveCocoa | script/validate-playground.sh | Shell | mit | 898 |
#!/usr/bin/env bash
# carthage.sh
# Usage example: ./carthage.sh build --platform iOS
set -euo pipefail
xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
trap 'rm -f "$xcconfig"' INT TERM HUP EXIT
# For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise
# the build will fail on lipo due to duplica... | RxSwiftCommunity/RxAlamofire | scripts/carthage.sh | Shell | mit | 1,105 |
#!/usr/bin/env 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 applica... | salewski/kubernetes | hack/jenkins/test-dockerized.sh | Shell | apache-2.0 | 1,732 |
kubectl delete -f namespaces/namespace.yaml
kubectl get -f namespaces/namespace.yaml &> /dev/null
while [ $? -eq 0 ]; do
sleep 1
kubectl get -f namespaces/namespace.yaml
done
| imosquera/spinnaker | experimental/kubernetes/simple/scripts/cleanup-all.sh | Shell | apache-2.0 | 185 |
#!/usr/bin/env bash
#
# Copyright (c) 2013-2016 Commonwealth Computer Research, Inc.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0 which
# accompanies this distribution and is available at
# http://www.opensource.org/licenses/a... | MutahirKazmi/geomesa | geomesa-tools/conf/geomesa-env.sh | Shell | apache-2.0 | 4,979 |
#!/bin/bash
cd `dirname $0`
if [ ${JOB} == "BUILD_AND_TEST" ]; then
./build_and_test.sh
elif [ ${JOB} == "DOCS" ]; then
./docs.sh
else
echo Unknown job ${JOB}
exit 1
fi
| alvations/Paddle | paddle/scripts/travis/main.sh | Shell | apache-2.0 | 178 |
#!/bin/sh
tar -xvjf cairo-demos-20120130.tar.bz2
cd cairo-demos/
make -j $NUM_CPU_JOBS
echo $? > ~/install-exit-status
cd ~
echo "#!/bin/sh
cd cairo-demos/
./\$@ > \$LOG_FILE 2>&1
echo \$? > ~/test-exit-status" > cairo-perf-demos
chmod +x cairo-perf-demos
| mugglmenzel/BalloonRace | src/main/resources/test-profiles/pts/cairo-demos-1.0.1/install.sh | Shell | bsd-3-clause | 258 |
#!/bin/sh
composer config --global discard-changes true
composer update --no-interaction
| molinan2/BasicSymfony | scripts/composer_update.sh | Shell | mit | 90 |
#!/bin/sh
#-----------------------------------------------------------------------------
# buildRM.sh - Build script for reporter manager
#
# This script is used by the Inca reporter agent to build reporter managers
# on remote machines.
#
# Usage:
#
# buildRM.sh <INSTALLDIR> <RMFILE>
#
# Arguments:
#
# INSTALLDIR... | IncaProject/IncaProject.github.io | releases/2.1/buildRM.sh | Shell | mit | 3,514 |
#!/bin/sh
#AM_VERSION="1.10"
if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
# automake-1.10 (recommended) is not available on Fedora 8
AUTOMAKE=automake
ACLOCAL=aclocal
else
ACLOCAL=aclocal-${AM_VERSION}
AUTOMAKE=automake-${AM_VERSION}
fi
if test -f /opt/local/bin/glibtoolize ; then
# darwin
LIBTOOLIZE=/... | africallshop/africallshop-iphone | submodules/msx264/autogen.sh | Shell | gpl-2.0 | 719 |
#! /bin/sh
# Copyright (C) 2001-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/cond20.sh | Shell | gpl-2.0 | 1,131 |
lmp_mpi -i run.in.ch4
| yidongxiainl/lammps | tools/moltemplate/examples/misc_examples/explicit_electrons/eff_CH4/README_run.sh | Shell | gpl-2.0 | 24 |
#!/bin/sh
#
# Copyright (c) 2015, Linaro Limited
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# any parameter passed as arguments to this script is passed unchanged to
# the test itself (pktio_main)
# directories where pktio_main binary can be found:
# -in the validation dir when running make ch... | erachmi/odp | test/linux-generic/validation/api/pktio/pktio_run_pcap.sh | Shell | bsd-3-clause | 1,063 |
$ nodetool snapshot --kt-list catalogkeyspace.journal,cqlkeyspace.t --tag multi-ks
| belliottsmith/cassandra | doc/modules/cassandra/examples/BASH/snapshot_mult_ks.sh | Shell | apache-2.0 | 83 |
#/bin/bash
lPATH='.'
LIBSREF=( )
lINETPath='../../../../inet/src'
for lP in '../../../src' \
'../../../src/base' \
'../../../src/modules' \
'../../testUtils' \
'../utils' \
"$lINETPath"; do
for pr in 'mixim' 'inet' 'powerTestUtils'; do
if [ -d "$lP" ] && [ ... | mnobrega/EMoS | tests/power/Nic80211Test/runTests.sh | Shell | gpl-2.0 | 1,404 |
#!/bin/bash
HUGO_DOCS_BRANCH="${HUGO_DOCS_BRANCH-master}"
# We may extend this to also push changes in the other direction, but this is the most important step.
git subtree pull --prefix=docs/ https://github.com/gohugoio/hugoDocs.git ${HUGO_DOCS_BRANCH} --squash
| jkusniar/vetbbedit | vendor/github.com/spf13/hugo/pull-docs.sh | Shell | gpl-3.0 | 266 |
# Copyright (c) 2008 The NetBSD Foundation, 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:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of con... | jrobhoward/SCADAbase | contrib/atf/atf-sh/atf-check_test.sh | Shell | bsd-3-clause | 11,522 |
#!/bin/sh
echo
echo --- Hello World Web Service ---------------------------------------------
workingDir=`dirname $0`
. ${workingDir}/../env.sh
JAVACMD=$JAVACMD" -Dproactive.http.port=8080"
$JAVACMD org.objectweb.proactive.examples.webservices.helloWorld.HelloWorld "$@"
echo
echo ---------------------------------... | PaulKh/scale-proactive | examples/helloWebServices/helloWS.sh | Shell | agpl-3.0 | 348 |
#! /bin/sh
dest="$1"
shift
for f; do
bn=$(basename "$f")
dn=$(dirname "$f")
install -d "$dest/$dn"
case $bn in
*.cmxs|*.py) install -m 755 "$f" "$dest/$dn/$bn"
;;
*) install -m 644 "$f" "$dest/$dn/$bn"
;;
esac
done
| Matafou/coq | install.sh | Shell | lgpl-2.1 | 248 |
#!/bin/sh
# Copyright (c) 2007, 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 condi... | jdavidberger/rikitiki | third/ctemplate-2.2/src/windows/preprocess.sh | Shell | mit | 5,167 |
#!/bin/bash
result=0
echo "################ active_polymorph ################"
echo "################ Running tests against Rails 3 ################"
bundle check || bundle install
bundle exec rspec spec
let result=$result+$?
if [ $result -eq 0 ]; then
echo "SUCCESS"
else
echo "FAILURE"
fi
exit $result
| wye0220/shindig-canvas | gems/active_polymorph/test.sh | Shell | agpl-3.0 | 309 |
#!/bin/bash
set -o nounset # Treat unset variables as an error
if [ -a $1 ]
then
awk '/tangent angle/ {print $4}' $1 > tangent_data.log
fi
| terkaa/linuxcnc | tests/trajectory-planner/circular-arcs/util/save_tangent_angle.sh | Shell | gpl-2.0 | 174 |
#!/usr/bin/env bash
set -eux
ANSIBLE_ROLES_PATH=../ ansible-playbook template.yml -i ../../inventory -v "$@"
# Test for #35571
ansible testhost -i testhost, -m debug -a 'msg={{ hostvars["localhost"] }}' -e "vars1={{ undef }}" -e "vars2={{ vars1 }}"
# Test for https://github.com/ansible/ansible/issues/27262
ansible-... | indrajitr/ansible | test/integration/targets/template/runme.sh | Shell | gpl-3.0 | 752 |
#!/bin/bash
RETCODE=$(fw_exists ${IROOT}/php.installed)
[ ! "$RETCODE" == 0 ] || { \
echo "Moving PHP config files into place";
sudo cp $FWROOT/config/php.ini /usr/local/lib/php.ini
sudo cp $FWROOT/config/php-fpm.conf /usr/local/lib/php-fpm.conf
source $IROOT/php.installed
return 0; }
VERSION="5.5.17"
PHP_... | marko-asplund/FrameworkBenchmarks | toolset/setup/linux/languages/php.sh | Shell | bsd-3-clause | 2,390 |
#!/bin/bash
set -e
# This file is used to auto-generate Dockerfiles for making debs via 'make deb'
#
# usage: ./generate.sh [versions]
# ie: ./generate.sh
# to update all Dockerfiles in this directory
# or: ./generate.sh ubuntu-xenial
# to only update ubuntu-xenial/Dockerfile
# or: ./generate.sh... | jawnsy/cri-o | vendor/github.com/docker/docker/contrib/builder/deb/ppc64le/generate.sh | Shell | apache-2.0 | 4,586 |
#!/bin/bash
mkdir -p ${PREFIX}/bin
export C_INCLUDE_PATH=${PREFIX}/include
export LIBRARY_PATH=${PREFIX}/lib
make
cp preseq ${PREFIX}/bin
cp bam2mr ${PREFIX}/bin
| JenCabral/bioconda-recipes | recipes/preseq/build.sh | Shell | mit | 163 |
#!/bin/bash
#set -x
source $LIBMESH_DIR/examples/run_common.sh
example_name=eigenproblems_ex2
options="-n 5 -eps_type lapack"
run_example "$example_name" "$options"
| paulthulstrup/moose | libmesh/examples/eigenproblems/eigenproblems_ex2/run.sh | Shell | lgpl-2.1 | 169 |
#!/bin/sh
test_description='--reverse combines with --parents'
. ./test-lib.sh
commit () {
test_tick &&
echo $1 > foo &&
git add foo &&
git commit -m "$1"
}
test_expect_success 'set up --reverse example' '
commit one &&
git tag root &&
commit two &&
git checkout -b side HEAD^ &&
commit three &&
git check... | TextusData/Mover | thirdparty/git-1.7.11.3/t/t6013-rev-list-reverse-parents.sh | Shell | gpl-3.0 | 974 |
#!/bin/bash
set -e
# Get the version from the command line
VERSION=$1
if [ -z $VERSION ]; then
echo "Please specify a version."
exit 1
fi
# Get the parent directory of where this script is.
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$... | lyrl/otto | scripts/dist.sh | Shell | mpl-2.0 | 840 |
#!/bin/bash
#
# Wrapper around import-marc.sh to allow import of authority records.
#
E_BADARGS=65
# No arguments? Display syntax:
if [ $# -eq 0 ]
then
echo " Usage: `basename $0` ./path/to/marc.mrc [properties file]"
exit $E_BADARGS
fi
# Always use the standard authority mappings; if the user specified an o... | ubtue/ixTheo | import-marc-auth.sh | Shell | gpl-2.0 | 1,197 |
#!/usr/bin/env bash
# Copyright The OpenTelemetry 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... | nikhita/kubernetes | vendor/go.opentelemetry.io/contrib/pre_release.sh | Shell | apache-2.0 | 4,853 |
. ${srcdir}/emulparams/shelf32_nbsd.sh
OUTPUT_FORMAT="elf32-sh64l-nbsd"
| shaotuanchen/sunflower_exp | tools/source/binutils-2.16.1/ld/emulparams/shlelf32_nbsd.sh | Shell | bsd-3-clause | 73 |
#!/bin/sh -e
sysdeps="$1"
shift
getbits() {
expr 8 '*' `grep -F sizeof$2: < "$1" | awk '{print $2;}'`
}
cat < src/headers/types-header
for i in short int long ; do
I=$(echo "$i" | tr a-z A-Z)
bits=$(getbits "$sysdeps" u$i)
tools/gen-types-internal.sh u$i U$I $bits < src/headers/unsigned-template
tools/gen... | skarnet/skalibs | tools/gen-types.sh | Shell | isc | 658 |
#!/bin/bash
set -e -x
pushd rubbernecker
npm install
popd | Rory80Hz/rubbernecker | deploy/test.sh | Shell | mit | 61 |
ll /usr/share/nmap/scripts/ > /root/notes/nmap-nse-scripts.txt
rev nmap-nse-scripts.txt |cut -d " " -f1 > rev-nmap.txt
rev rev-nmap.txt > rev2-nmap.txt
| itiswiki/PWK | bashReverseListing.sh | Shell | mit | 152 |
#!/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... | betacamp/HiliteUI | Example/Pods/Target Support Files/Pods-HiliteUI_Example/Pods-HiliteUI_Example-frameworks.sh | Shell | mit | 3,905 |
#!/bin/sh
echo "Starting chef setup:"
hostname
echo
echo "Waiting for network"
while ! ip route | grep default > /dev/null; do
printf .
sleep 1
done
echo
| bryanalves/lxc-chef-setup | container/init.sh | Shell | mit | 166 |
#!/bin/bash
# this is just a convenience script to make sure the
# data file for the tests can be found.
# copy the data file over to where the tests expect it it be
cp example/dummy_tweets.json .
# run all the tests
python tests/tweet_evaluation_tests.py
# remove the copy of the data
rm dummy_tweets.json
| jeffakolb/Gnip-Tweet-Evaluation | run_tests.bash | Shell | mit | 311 |
BASEDIR=$(dirname "$0")
cat > "$BASEDIR/reformat.vim" <<"EOF"
:set ff=unix ts=2 et
:retab!
:%s/\r//g
:%s/ \+$//
:wq
EOF
find "$BASEDIR" \( -name "*.ql" -or -name "*.qll" -or -name "*.csv" -or -name "*.config" \) -exec vim -u /dev/null -s reformat.vim {} \;
cat > reformat.vim <<"EOF"
:set ff=unix ts=4 et
:retab!
:%s/... | github/codeql | csharp/fix-whitespaces.sh | Shell | mit | 454 |
#!/bin/bash
SRC=$(realpath $(cd -P "$(dirname "${BASH_SOURCE[0]}" )" && pwd))
for TARGET in $SRC/*/docker-config; do
NAME=$(basename $(dirname $TARGET))
if [ ! -z "$(docker ps -q --filter "name=$NAME")" ]; then
(set -x;
docker stop $NAME
)
fi
if [ ! -z "$(docker ps -q -a --filter "name=$NAME")" ... | knq/usql | contrib/docker-stop.sh | Shell | mit | 382 |
#!/bin/bash
Src/packages/FAKE.3.2.3/tools/FAKE.exe Build.fsx $@
| GreanTech/Qaiain | build-release.sh | Shell | mit | 64 |
# INSTANS batch comparison to sample answers using static memory handling and rules
PT=`pwd`
CRP="$PT/custom-rules"
./static-comp-no-reason.sh q1 answers_query1
./static-comp-no-reason.sh q2 answers_query2
./static-comp-no-reason.sh q3 answers_query3
./static-comp-with-reason.sh q4 "-r $CRP/q4-rules.rq" answers_query... | aaltodsg/instans-reasoning | tests/lubm/instans-test/batch-comp-static.sh | Shell | mit | 1,060 |
#!/bin/sh
# Copyright 2015-2016 Yury Gribov
#
# Use of this source code is governed by MIT license that can be
# found in the LICENSE.txt file.
# TODO:
# * support versioned symbols
# * compile with -ffreestanding to avoid autogenerated memset and crap
set -e
cd $(dirname $0)
OBJ=bin
mkdir -p $OBJ
rm -f $OBJ/*
... | yugr/sigcheck | build.sh | Shell | mit | 790 |
#!/bin/bash
# Search in array
inArray() {
local haystack=${1}[@]
local needle=${2}
for i in ${!haystack}; do
if [[ ${i} == ${needle} ]]; then
return 0
fi
done
return 1
}
# Colorize print
colorizePrint() {
local RED="\033[0;31m"
local GREEN="\033[0;32m"
local... | atkrad/ssh-ac | functions.sh | Shell | mit | 585 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DLA-681-1
#
# Security announcement date: 2016-10-26 00:00:00 UTC
# Script generation date: 2017-01-01 21:09:23 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: i386
#
# Vulnerable packages fix on version:
# - tzdata:2016h-0+deb7u1
#
# Last version... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/i386/2016/DLA-681-1.sh | Shell | mit | 588 |
#ls|xargs echo
mv rulers-* ../old_gem_rulers
git add .
gem build rulers.gemspec
prefix="rulers-0.0."
postfix=".gem"
gem install ${prefix}$1${postfix}
| limitspro/Rulers | build.sh | Shell | mit | 154 |
#!/bin/bash -ex
# ---
# RightScript Name: Google - Add instance to targetPool
# Description: Adds current instance to targetPool
# Inputs:
# GCE_SERVICE_ACCOUNT:
# Category: GCE
# Description: The GCE Service Account to use to add the instance to the targetPool.
# Input Type: single
# Required: true
#... | rightscale/rightscale-plugins | google/gce/examples/gce_external_network_lb/RightLink_10_6_0_GCE_Ubuntu_16/Google-Add_instance_to_targetPool.sh | Shell | mit | 1,495 |
#!/bin/bash
#
# For automated installation of multiple packages or general programs.
#
# Download dir
CDOWNLOAD_DIR="/tmp/cscache"
# cinstall functions
source "${CSCRIPTS_DIR}/scripts/download/functions.sh"
case "${1}" in
# ethereum geth & tools
geth-all)
PACKAGE=("Geth & tools" \
"https://gethstore.blob... | cedoor/cscripts | scripts/download/cdownload.sh | Shell | mit | 1,329 |
#!/bin/bash
set -e
name_of_site=${1:?"The first parameter should indicate what site to deploy."}
config_folder=${2:?"The second parameter should indicate what folder config files are copied from."}
expected_config_location=$(realpath $config_folder)
if ! [ -d $expected_config_location ]
then
echo "Unable to find c... | fschwiet/letscodejavascript | host/host/scripts/link-config-folder.sh | Shell | mit | 612 |
#!/bin/bash
DEST_FILE="/etc/logrotate.d/rsyslog"
if [ -f ${DEST_FILE} ]; then
rm ${DEST_FILE}
fi
cat > ${DEST_FILE} <<EOF
/var/log/auth.log
/var/log/authpriv.log
/var/log/cron.log
/var/log/daemon.log
/var/log/ftp.log
/var/log/kern.log
/var/log/lpr.log
/var/log/mail.log
/var/log/news.log
/var/log/syslog.log
/var/l... | kilimanjar/Install-scripts | logrotate.sh | Shell | mit | 838 |
#!/bin/bash -e
# Begin service ENV variables
export SHIPPABLE_MONGODB_PORT=27017;
export SHIPPABLE_MONGODB_BINARY="/usr/bin/mongod";
export SHIPPABLE_MONGODB_CMD="$SHIPPABLE_MONGODB_BINARY -f /etc/mongod.conf --smallfiles";
# End service ENV variables
#
# Function to START
#
start_service() {
start_generic_service "... | dry-dock/u14pls | test/_mongo.sh | Shell | mit | 833 |
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the ... | panosmdma/SlackOnly-SlackBuilds | network/sqlninja/doinst.sh | Shell | mit | 624 |
#!/bin/bash
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
export verbose=
for param in "$@"
do
case "$param" in
--verbose) export verbose="--verbose"
;;
esac
done
# setup Hadoop and Spark versions
... | hebinhuang/Mobius | build/localmode/run-samples.sh | Shell | mit | 3,400 |
#!/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}"
# This protects against multiple targets copying the same framework dependency at the same time.... | CJonesBuild/CJBAdvancedUIColor | Example/Pods/Target Support Files/Pods-CJBAdvancedUIColor_Example/Pods-CJBAdvancedUIColor_Example-frameworks.sh | Shell | mit | 4,702 |
#!/bin/bash
if [[ "$1" != "" ]]; then
S3BUCKETNAME="$1"
else
echo ERROR: Failed to supply S3 bucket name
exit 1
fi
aws s3 sync build s3://$S3BUCKETNAME --acl public-read --delete --cache-control max-age=31536000,public
aws s3 cp s3://$S3BUCKETNAME/service-worker.js s3://$S3BUCKETNAME/service-worker.js --m... | rphansen91/rphansen91.github.io | .s3.sh | Shell | mit | 664 |
#!/bin/sh
PWD=`pwd`
PACKAGE_NAME="mono-3.8.0"
URL_TARBALL="http://download.mono-project.com/sources/mono/$PACKAGE_NAME.tar.bz2"
PREFIX="$PWD/$PACKAGE_NAME-bin"
MOZROOTS="$PREFIX/lib/mono/4.5/mozroots.exe"
CERTMGR="$PREFIX/lib/mono/4.5/certmgr.exe"
mkdir -p $PREFIX
echo "Installing [Mono] prerequisites..."
sudo apt-g... | erlimar/dotnet-vnext-ci-travis | mono-tarball-install.sh | Shell | mit | 1,185 |
#!/usr/local/bin/bash
# for f in *.c; do echo "Processing $f file.."; done
for f in *.mkv; do
echo $f
filename=$(basename "$f")
extension="${filename##*.}"
filename="${filename%.*}"
echo $filename
echo $extension
echo $filename"."$extension
ffmpeg -i "$filename".mkv"" -vf subtitles="$filename".mkv"" "$filen... | johnrocamora/media_tools | mkv2mp4.sh | Shell | mit | 349 |
#!/bin/bash
if [ -$# -eq 0 ]; then
docker run --rm=true -v $PWD:/docker centos:7.2.1511 /docker/scripts/run_perl520.sh INIT
else
case $1 in
INIT)
# https://www.softwarecollections.org/en/scls/rhscl/rh-perl520/
yum install -y centos-release-scl yum-utils
yum-config-man... | Nachtfeuer/concept-queen | scripts/run_perl520.sh | Shell | mit | 890 |
#!/bin/bash
# to jest skrypt backupujący bazę danych postgres
export PG_HOME=/Library/PostgreSQL/8.4
export PG_BIN=$PG_HOME/bin
export BACKUP_DIR=$PG_HOME/db_dump
export PGPASSWORD=fuck you
cd $BACKUP_DIR
for DB in test1 test2
do
export NOW=`date +%Y%m%d-%H%M`
export ERR_LOG=${DB}-${NOW}.error
export LOG=${DB}-${N... | RadoslawOsinski/dotfiles | development/postgres/postgresql_backup.sh | Shell | mit | 534 |
#!/bin/bash
#compile tfb to fbt
echo "Compiling TFBs to FBTs..."
goTFB -i=tfb -o=fbt
#compile fbt to c
echo "Compiling FBTs to C..."
goFB -i=./fbt -o=./c -l=c -t=Top -eventMoC=true
#compile
echo "Compiling C to binary..."
gcc c/*.c -o railway_station_v2.out
#run
#./railway_station_v2.out
| kiwih/goFB | examples/goTFB/railway_station_v2/build.sh | Shell | mit | 292 |
#!/usr/bin/env cat
# ==============================================================================
# 撤销补丁
# ==============================================================================
# Create by Arondight <shell_way@foxmail.com>
# ==============================================================================
# SOU... | Arondight/profile | zsh/.zsh/apply/unapply.sh | Shell | mit | 934 |
#!/bin/sh
ERLANG_VERSION=18.2
ELIXIR_VERSION=1.2.4
# Note: password is for postgres user "postgres"
POSTGRES_DB_PASS=postgres
POSTGRES_VERSION=9.3
# Set language and locale
apt-get install -y language-pack-en
locale-gen --purge en_US.UTF-8
echo "LC_ALL='en_US.UTF-8'" >> /etc/environment
dpkg-reconfigure locales
# I... | pmick/shipbit-api | vagrant_provision.sh | Shell | mit | 2,324 |
#!/bin/sh
## run this in the opencv directory
OPENCV_DIR=$PWD
mkdir build; cd build
cmake -DCMAKE_TOOLCHAIN_FILE=$OPENCV_DIR/platforms/android/android.toolchain.cmake -DANDROID_STL=stlport_static -DANDROID_NATIVE_API_LEVEL=19 ..
make -j8
| cambridgehackers/dbn | scripts/build_opencv.sh | Shell | mit | 241 |
# Start unofficial bash strict mode boilerplate
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -o errexit # always exit on error
set -o errtrace # trap errors in functions as well
set -o pipefail # don't ignore exit codes when piping output
set -o posix # more strict failures in subshells
... | focusaurus/mjournal | bin/lib/strict-mode.sh | Shell | mit | 427 |
#!/bin/bash
buildDockerImage="$(basename "$0" | sed -e 's/-/ /')"
HELP="Usage: $buildDockerImage --sdkVersion=xx.y.z
Build docker image with Android SDK tools xx.y.z and fastlane installed on it
Options:
--sdkVersion=xx.y.z # build docker image called 'ci-scripts:xx.y.z'
--help # pri... | pedroamador/ci-scripts | bin/buildDockerImage.sh | Shell | mit | 2,717 |
PROJECT="podium"
log_message() {
LOG_MESSAGE=${1?Must specify log message}
echo "[lint.sh] ${LOG_MESSAGE}"
}
lint() {
if [ -f lint/results.txt ]; then
rm lint/results.txt
fi
flake8 --output-file=lint/results.txt --config=lint/flake8
STATUS=${?}
# Store a flag saying we ran the li... | pyatl/podium-django | lint.sh | Shell | mit | 663 |
#!/usr/bin/env bash
# ####################################
# Copyright © 2018 - 2021 by Renaud Guillard
# Distributed under the terms of the MIT License, see LICENSE
# Author: Renaud Guillard
# Version: 1.0
#
# ...
#
# Program help
usage()
{
cat << 'EOFUSAGE'
build-python: ...
Usage:
build-python [[-S] -x <path>] [... | noresources/ns-xml | ns/sh/build-python.sh | Shell | mit | 34,399 |
#!/bin/bash
FORGE_DIR=~/forge.679
MCP_DIR=$FORGE_DIR/mcp
MINECRAFT_SRC=$MCP_DIR/src/minecraft
MINECRAFT_REOBF=$MCP_DIR/reobf/minecraft
ZIPNAME=WoodworkingTFC.zip
# Remove old code
if [ -d "$MINECRAFT_SRC/TFC" ]; then rm -rf "$MINECRAFT_SRC/TFC"; fi
if [ -d "$MINECRAFT_SRC/VegasGoatTFC" ]; then rm -rf "$MINECRAFT_SRC/V... | VegasGoat/WoodworkingTFC | build.sh | Shell | mit | 828 |
#!/bin/sh -e
DIRECTORY=$(dirname "${0}")
SCRIPT_DIRECTORY=$(
cd "${DIRECTORY}"
pwd
)
usage() {
echo "Usage: ${0} [KEY]"
}
# shellcheck source=/dev/null
. "${SCRIPT_DIRECTORY}/../lib/git_lab_tools.sh"
KEY="${1}"
RESPONSE=$(${REQUEST} "${INTERFACE_LOCATOR}/user")
if [ "${KEY}" = '' ]; then
echo "${RE... | FunTimeCoding/gitlab-tools | bin/get-user-information.sh | Shell | mit | 446 |
#!/bin/bash
SCALA_HOME=~/bin/scala-2.9.2
if [[ ! -d "$SCALA_HOME" ]]; then
echo "Download Scala 2.9 from: http://www.scala-lang.org/downloads/distrib/files/scala-2.9.2.tgz";
exit 1;
fi
PATH="$PATH:$SCALA_HOME/bin"
libPure=~/bin/Isabelle2012/lib/classes/ext/Pure.jar
#######################################... | urbas/mixr | devel/drivers/build-scala-wrappers.sh | Shell | mit | 2,408 |
#!/bin/bash
# This runs jekyll serve in a subshell and pipes stdout to the loop. It then uses bash regex matching to match the line containing the words "Server running".
# ref: http://stackoverflow.com/questions/25176674/run-process-when-string-in-stdout-is-matched/25177206#25177206
(jekyll server -w) | while read ... | chenyvehtung/chenyvehtung.github.io | run.sh | Shell | mit | 408 |
#!/bin/sh
set -e
echo 'Running unit tests.'
./vendor/bin/phpunit --configuration phpunit.xml --verbose --coverage-clover build/logs/clover.xml
echo ''
echo ''
echo ''
echo 'Testing for Coding Styling Compliance.'
echo 'All code should follow PSR standards.'
./vendor/bin/php-cs-fixer fix ./ --level="psr2" -vv --dry-r... | bankiru/yii-gelf | tests/runTests.sh | Shell | mit | 323 |
#Author: Cem YILMAZ
#10/09/2016
#!/bin/sh
GREEN_LINE='\033[0;32m'
RED_LINE='\033[0;31m'
ORANGE_LINE='\033[0;33m'
DEFAULT_LINE='\033[0m'
if [ ! -f global.json ]; then # a really simple project directory check
echo "You must be in WController directory to run this script."
exit 1
fi
echo -e ${GREEN_LINE}Checkin... | cyilcode/WController | osx_installscript.sh | Shell | mit | 1,242 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.