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
#
# 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... | fenggangwu/libzbc | test/scripts/02_state_machine_check/041.sh | Shell | bsd-2-clause | 1,427 |
#!/bin/sh
echo $2 | exec $1
| konoha-project/konoha3 | test/test-oneline.sh | Shell | bsd-2-clause | 28 |
#!/bin/bash
set -ev
UBUNTU_VERSION=$(lsb_release -sr)
UBUNTU_VERSION=ubuntu"${UBUNTU_VERSION//.}"
CUDA=10.1.105-1
CUDA_SHORT=10.1
INSTALLER=cuda-repo-${UBUNTU_VERSION}_${CUDA}_amd64.deb
wget http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/${INSTALLER}
sudo dpkg -i ${INSTALLER}
wget ht... | mfem/PyMFEM | ci_scripts/add_cuda_10_1.sh | Shell | bsd-3-clause | 596 |
#!/tools/bin/bash
BASE_DIR=/sources/going-to-chroot
SRC_DIR=/sources/src
. $SRC_DIR/__common-func.sh
__create-pas2()
{
touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
chgrp -v utmp /var/run/utmp /var/log/lastlog
chmod -v 664 /var/run/utmp /var/log/lastlog
chmod -v 600 /var/log/btmp
}
__mount-kfs()
{
mount -vt ... | takeutch-kemeco/private-build-script | clfs-git-20121124-x86_64-pure64/going-to-chroot/build-going-to-chroot3.sh | Shell | bsd-3-clause | 430 |
#!/bin/sh
../ScatterGPU/ScatterGPU
| fluffyfreak/sandbox | src/bin/ScatterGPU.sh | Shell | bsd-3-clause | 35 |
if [ "$LC_CTYPE" == "UTF-8" ]; then
export LC_CTYPE=C
fi
| spryker/devvm | saltstack/base/system/files/etc/profile.d/fix_charset.sh | Shell | mit | 59 |
#!/bin/bash
# Documentation:
# http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtGraphProtocolCURLExamples
curl --digest --user user:password --url "http://asev.l3s.uni-hannover.de:8859/sparql-graph-crud-auth?graph-uri=http://data.duraark.eu/test_graph" -X DELETE
| DURAARK/duraark-sda | scripts/rdf/delete-named-graph.sh | Shell | mit | 279 |
#! /bin/sh
. ../../testenv.sh
analyze bug2.vhdl
elab_simulate bug2
clean
echo "Test successful"
| tgingold/ghdl | testsuite/gna/bug17127/testsuite.sh | Shell | gpl-2.0 | 100 |
#!/bin/bash
# return value:
# 'nfs4': Only nfs4 founded
# 'nfs': nfs with version < 4 founded
# '': No nfs founded
get_nfs_type() {
local _nfs _nfs4
for fs in "${host_fs_types[@]}"; do
[[ $fs == "nfs" ]] && _nfs=1
[[ $fs == "nfs3" ]] && _nfs=1
[[ $fs == "nfs4" ]] && _nfs4=1
done... | FGrose/dracut | modules.d/95nfs/module-setup.sh | Shell | gpl-2.0 | 4,551 |
#!/bin/sh
#
# This file is part of darktable,
# copyright (c) 2009--2010 johannes hanika.
#
# darktable is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at you... | muessel/darktable | tools/create_control_svg.sh | Shell | gpl-3.0 | 4,194 |
#!/bin/sh
#
# Copyright (C) 2010-2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
SYSTEMTESTTOP=..
. $SYSTE... | each/bind9-collab | bin/tests/system/dlzexternal/prereq.sh | Shell | mpl-2.0 | 465 |
#!/bin/bash
###########################################################################
#
# Copyright 2017 Samsung Electronics 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 Licens... | Parkjihooni6186/TizenRT | apps/tools/update_config.sh | Shell | apache-2.0 | 2,810 |
#!/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... | DaanHoogland/cloudstack | systemvm/debian/opt/cloud/bin/getRouterMonitorResults.sh | Shell | apache-2.0 | 1,526 |
#!/bin/bash
SERVICE_NAME=apollo-adminservice
if [[ -z "$JAVA_HOME" && -d /usr/java/latest/ ]]; then
export JAVA_HOME=/usr/java/latest/
fi
cd `dirname $0`/..
if [[ ! -f $SERVICE_NAME".jar" && -d current ]]; then
cd current
fi
if [[ -f $SERVICE_NAME".jar" ]]; then
chmod a+x $SERVICE_NAME".jar"
./$SERVICE_... | bulletqi/netposa-config | apollo-adminservice/src/main/scripts/shutdown.sh | Shell | apache-2.0 | 339 |
#!/bin/bash
git clone https://github.com/CivicKnowledge/rowpipe.git && (cd rowpipe && python setup.py develop)
git clone https://github.com/CivicKnowledge/tableintuit.git && (cd tableintuit && python setup.py develop)
git clone https://github.com/CivicKnowledge/rowgenerators.git && (cd rowgenerators && python setup.py... | CivicKnowledge/metatab | develop.sh | Shell | bsd-3-clause | 548 |
#!/bin/bash
FN="mta10transcriptcluster.db_8.7.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/annotation/src/contrib/mta10transcriptcluster.db_8.7.0.tar.gz"
"https://bioarchive.galaxyproject.org/mta10transcriptcluster.db_8.7.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-mta10trans... | bebatut/bioconda-recipes | recipes/bioconductor-mta10transcriptcluster.db/post-link.sh | Shell | mit | 1,517 |
#!/bin/bash
FN="RnAgilentDesign028282.db_3.2.3.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.10/data/annotation/src/contrib/RnAgilentDesign028282.db_3.2.3.tar.gz"
"https://bioarchive.galaxyproject.org/RnAgilentDesign028282.db_3.2.3.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-rnagilentdesi... | Luobiny/bioconda-recipes | recipes/bioconductor-rnagilentdesign028282.db/post-link.sh | Shell | mit | 1,510 |
#!/bin/sh
#
# Copyright (c) 2007 Johannes E. Schindelin
#
test_description='git rebase interactive
This test runs git rebase "interactively", by faking an edit, and verifies
that the result still makes sense.
Initial setup:
one - two - three - four (conflict-branch)
/
A - B - C - D - E (master)
... | tmurakam/4msysgit-utf8-filepath | t/t3404-rebase-interactive.sh | Shell | gpl-2.0 | 20,255 |
#!/bin/sh
docker stop kanboard || true
docker rm kanboard || true
docker build -t $1/kanboard .
echo
echo "=> To store as new base image: 'docker push $1/kanboard'"
echo
| DonMartin76/docker-templates | project/kanboard/build.sh | Shell | unlicense | 172 |
#!/bin/bash
set -o nounset
set -o errexit
cd "$(dirname "$0")"
source $INSTALLER_ROOT/utils/mac_utils.sh
cp -R $BIN_DIR/qreal.app "$PWD/../data/$PRODUCT_DISPLAYED_NAME.app"
cp $INSTALLER_ROOT/platform/$PRODUCT-mac-platform.config "$BUNDLE_CONTENTS/Mac... | Julia-Khramyshkina/qreal | installer/packages/qreal-base/ru.qreal.root/meta/prebuild-mac.sh | Shell | apache-2.0 | 5,420 |
#!/bin/bash
# Copyright Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in the "license" file ... | awslabs/s2n | codebuild/bin/format.sh | Shell | apache-2.0 | 948 |
#!/bin/bash
FN="pd.rabgene.1.0.st_3.12.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.8/data/annotation/src/contrib/pd.rabgene.1.0.st_3.12.0.tar.gz"
"https://bioarchive.galaxyproject.org/pd.rabgene.1.0.st_3.12.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-pd.rabgene.1.0.st/bioconductor-p... | bioconda/recipes | recipes/bioconductor-pd.rabgene.1.0.st/post-link.sh | Shell | mit | 1,343 |
#!/bin/sh
# Make sure that 'tail -n0 -f' and 'tail -c0 -f' sleep
# rather than doing what amounted to a busy-wait.
# Copyright (C) 2003-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
# th... | houwentaoff/coreutils | tests/tail-2/tail-n0f.sh | Shell | gpl-3.0 | 1,888 |
rm -f $MYSQLTEST_VARDIR/master-data/master.info
rm -f $MYSQLTEST_VARDIR/master-data/*-bin.*
rm -f $MYSQLTEST_VARDIR/master-data/*.index
| HiSPARC/station-software | user/mysql/mysql-test/suite/rpl/t/rpl_flushlog_loop-slave.sh | Shell | gpl-3.0 | 137 |
#!/usr/bin/env bash
MGIZA=${QMT_HOME}/bin/mgiza
if [ $# -lt 4 ]; then
echo "OK, this is simple, put me into your Moses training directory, link your source/target corpus" 1>&2
echo "and run " $0 " PREFIX src_tag tgt_tag root-dir." 1>&2
echo "and get force-aligned data: root-dir/giza.[src-tgt|tgt-src]/*.A3.final.* ... | lukeorland/joshua | scripts/training/MGIZA/scripts/force-align-moses.sh | Shell | lgpl-2.1 | 2,522 |
#!/usr/bin/env bash
# These variables are automatically filled in by the mesos-ec2 script.
export MESOS_MASTERS="{{master_list}}"
export MESOS_SLAVES="{{slave_list}}"
export MESOS_ZOO_LIST="{{zoo_list}}"
export MESOS_HDFS_DATA_DIRS="{{hdfs_data_dirs}}"
export MESOS_MAPRED_LOCAL_DIRS="{{mapred_local_dirs}}"
export MESO... | wgpshashank/spark | ec2/deploy.generic/root/spark-ec2/ec2-variables.sh | Shell | apache-2.0 | 417 |
# --- Running LAMMPS ---
# -------- REQUIREMENTS: ---------
# 1) This example requires building LAMMPS with the "USER-MISC" package.
# (because it makes use of "gaff.lt" which uses dihedral_style fourier)
# To do this, type "make yes-user-misc" before compiling LAMMPS.
# http://lammps.sandia.gov/doc/Section_sta... | ganzenmg/lammps_current | tools/moltemplate/examples/all_atom_examples/force_field_OPLSAA/waterSPC_using_OPLSAA/README_run.sh | Shell | gpl-2.0 | 1,147 |
#! /bin/sh
# Copyright (C) 2012 Red Hat, Inc.
# This file is part of elfutils.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later ver... | Distrotech/elfutils | tests/run-readelf-macro.sh | Shell | gpl-3.0 | 15,129 |
#!/bin/bash
#
# This scripts starts the OpenShift server with a default configuration.
# The OpenShift Docker registry and router are installed.
# It will run all tests that are imported into test/extended.
source "$(dirname "${BASH_SOURCE}")/../../hack/lib/init.sh"
os::util::environment::use_sudo
os::cleanup::tmpdir
... | rhcarvalho/origin | test/extended/alternate_launches.sh | Shell | apache-2.0 | 6,654 |
#!/bin/bash
sed -i -e "\#::KIBANA_HOST::# s#::KIBANA_HOST::#${KIBANA_HOST}#g" /kibana/config/kibana.yml
sed -i -e "\#::KIBANA_PORT::# s#::KIBANA_PORT::#${KIBANA_PORT}#g" /kibana/config/kibana.yml
sed -i -e "\#::ES_URL::# s#::ES_URL::#${ES_URL}#g" /kibana/config/kibana.yml
sed -i -e "\#::KIBANA_INDEX::# s#::KIBANA_INDE... | rafael/dockerfiles | kibana/setup_configs.sh | Shell | mit | 737 |
#!/bin/sh
#
# Copyright 2012 Facebook
#
# 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 to in... | Amnysia/facebook-ios-sdk | scripts/build_scrumptious_distribution.sh | Shell | apache-2.0 | 4,055 |
#!/usr/bin/env bash
#
# Copyright (c) 2008-2018 the Urho3D project.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, co... | kostik1337/Urho3D | cmake_xcode.sh | Shell | mit | 1,205 |
#!/bin/bash
#PBS -S /bin/bash
## job name and output file
#PBS -N go_mesher_solver
#PBS -j oe
#PBS -o OUTPUT_FILES/job.o
###########################################################
# USER PARAMETERS
## 64 CPUs ( 8*8 ), walltime 5 hour
#PBS -l nodes=8:ppn=8,walltime=5:00:00
##########################################... | Kerilk/specfem3d_globe | EXAMPLES/regional_MiddleEast/go_mesher_solver_pbs.kernel.bash | Shell | gpl-2.0 | 2,329 |
#!/bin/sh
rm /.qtopia
| liuyanghejerry/qtextended | devices/n810/src/devtools/scripts/maemo.sh | Shell | gpl-2.0 | 23 |
#!/bin/bash
PORT="$1"
test -f "$PORT" || PORT="/dev/$PORT"
test -f "$PORT" || PORT="/dev/ttyUSB0"
declare -i PID="$(fuser $PORT 2>/dev/null)"
if [ -e /proc/$PID/fd ] ; then
for N in /proc/$PID/fd/* ; do
[ "$PORT" == "$(readlink $N)" ] && FILENO=${N##*/}
done
echo monitor file $FILENO of process $PID
st... | remspoor/openLRSng | utils/monitor_serial.sh | Shell | gpl-3.0 | 390 |
#!/bin/sh -x
#Install Janus for the 'vagrant' user (cd to vagrant's homedir first so we're in the right spot for the script to run)
echo "Installing Vim Janus for the 'vagrant' user..."
su - vagrant -c 'cd /home/vagrant; curl -Lo- https://raw.githubusercontent.com/carlhuda/janus/master/bootstrap.sh | bash | bash'
#In... | danieldreier/packer-templates | old_templates/ubuntu-13.04-server-amd64/scripts/vim.sh | Shell | apache-2.0 | 838 |
#//
#// Boost.Pointer Container
#//
#// Copyright Thorsten Ottosen 2003-2005. Use, modification and
#// distribution is subject to the Boost Software License, Version
#// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
#// http://www.boost.org/LICENSE_1_0.txt)
#//
#// For more information, see http://www.boo... | davehorton/drachtio-server | deps/boost_1_77_0/libs/ptr_container/doc/comp_ptr_map_adapter.sh | Shell | mit | 542 |
#!/bin/sh
# Make sure cp -p isn't too generous with existing file permissions.
# Copyright (C) 2006-2015 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 v... | kdave/coreutils | tests/cp/existing-perm-race.sh | Shell | gpl-3.0 | 2,843 |
#
# Copyright (C) 2010 OpenWrt.org
#
. /lib/ramips.sh
PART_NAME=firmware
RAMFS_COPY_DATA=/lib/ramips.sh
platform_check_image() {
local board=$(ramips_board_name)
local magic="$(get_magic_long "$1")"
[ "$#" -gt 1 ] && return 1
case "$board" in
3g150b|\
3g300m|\
3g-6200n|\
3g-6200nl|\
a5-v11|\
ai-br100|\
... | LeapyAB/openwrt | target/linux/ramips/base-files/lib/upgrade/platform.sh | Shell | gpl-2.0 | 3,547 |
# Install/unInstall package files in LAMMPS
# mode = 0/1/2 for uninstall/install/update
mode=$1
# arg1 = file, arg2 = file it depends on
action () {
if (test $mode = 0) then
rm -f ../$1
elif (! cmp -s $1 ../$1) then
if (test -z "$2" || test -e ../$2) then
cp $1 ..
if (test $mode = 2) then
... | ganzenmg/lammps_current | src/USER-MOLFILE/Install.sh | Shell | gpl-2.0 | 1,512 |
#!/usr/bin/env bash
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../../../bash/common.lib.sh"
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
exit 0 # Always execute full suite on branch builds
fi
if [ $(git diff --name-only HEAD origin/$TRAVIS_BRANCH | grep -c -e ^docs) -eq 0 ]; then
print_header "... | Brille24/Sylius | etc/travis/suites/docs/is_suitable.sh | Shell | mit | 414 |
#!/bin/bash
. scripts/paths.sh
. scripts/privs.sh
. scripts/taint.sh
cd $TRINITY_TMP
NR_CPUS=$(nproc)
NR_PROCESSES=$(($NR_CPUS * 2))
while [ 1 ];
do
rm -f trinity
cp $TRINITY_PATH/trinity .
chmod -w trinity
if [ -d tmp ]; then
chmod 755 tmp
rm -rf tmp
fi
mkdir -p tmp
pushd tmp > /dev/null
... | Android-leak/trinity | scripts/test-multi.sh | Shell | gpl-2.0 | 494 |
#!/bin/sh
# Demonstrate rm's new --one-file-system option.
# Copyright (C) 2006-2015 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 Lice... | pixelb/coreutils | tests/rm/one-file-system.sh | Shell | gpl-3.0 | 1,449 |
#! /bin/sh
MODULE_DIR=/lib/modules/`uname -r`/kernel
case "$1" in
mount-unmount)
trap "umount $3; rm -f $2; rmdir $3" 0
mkdir $3
dd bs=1204k count=20 if=/dev/zero of=$2
mke2fs -F $2
tune2fs -c 0 $2
modprobe loop
while true; do mount -o loop $2 $3; umount $3; sleep 1; done
;;
bang-one)
trap "rmmod $2"... | zhang-xin/kdi | usermode/module-init-tools-3.12/stress_modules.sh | Shell | gpl-2.0 | 842 |
# tkConfig.sh --
#
# This shell script (for sh) is generated automatically by Tk's
# configure script. It will create shell variables for most of
# the configuration options discovered by the configure script.
# This script is intended to be included by the configure scripts
# for Tk extensions so that they don't hav... | leighpauls/k2cro4 | third_party/python_26/tcl/tkConfig.sh | Shell | bsd-3-clause | 3,906 |
#!/bin/bash
#
# krb5_login.sh - obtain and cache Kerberos ticket-granting ticket
#
###############################################################################
#
# nothing need for root
#
[ $UID -eq 0 ] && exit 0
#
# list Kerberos 5 credentials silently
# exit status:
# 0 - klist finds a credentials cache
# 1 - kl... | sdsc/lustre-release | lustre/tests/krb5_login.sh | Shell | gpl-2.0 | 1,008 |
#! /bin/bash
#make UIMAGE_COMPRESSION=none uImage -j
make uImage -j
#make modules
make meson6_skt.dtd
make meson6_skt.dtb
#cd ../root/g18
#find .| cpio -o -H newc | gzip -9 > ../ramdisk.img
#rootfs.cpio -- original buildroot rootfs, busybox
#m8rootfs.cpio -- build from buildroot
ROOTFS="rootfs.cpio"
#cd ..
./mkboo... | peyo-hd/kernel_odrc | scripts/amlogic/mk_m6.sh | Shell | gpl-2.0 | 495 |
#!/bin/bash
echo "###*" > license.coffee
echo " * @license" >> license.coffee
echo " *" >> license.coffee
while read i
do
echo " * $i" >> license.coffee
done < LICENSE
echo "###" >> license.coffee
coffee -o . -j chroma.js license.coffee src/api.coffee src/color.coffee src/conversions/*.coffee src/scale.coffee src/... | siansell/perch-cms-fieldtype-piechart | simona_piechart/handsontable-0.19.0/demo/bower_components/chroma-js/build.sh | Shell | mit | 469 |
#!/bin/bash
# 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 "$SOURCE" )/.." && pwd )"
# Change into that directory
cd $DIR
# Push the subtree (force)
git push heroku `git subtree split --prefix w... | bakins/terraform-provider-etcd | vendor/src/github.com/hashicorp/terraform/scripts/website_push.sh | Shell | mpl-2.0 | 350 |
#!/bin/bash
set -ev # exit with nonzero exit code if anything fails
if [[ "$TRAVIS_PULL_REQUEST" != 'false' || "$TRAVIS_BRANCH" != 'master' ]]; then
exit 0;
fi
# clear the documentation directory
rm -rf docs || exit 0;
# build the documentation files
scribble +m --redirect-main http://pkg-build.racket-lang.org/doc... | lexi-lambda/racket-collections | deploy-docs.sh | Shell | isc | 1,173 |
#!/bin/bash
## Remove a pass phrase from a key
## Optionally create a copy of the same removing the pass phrase.
#
# http://www.akadia.com/services/ssh_test_certificate.html
# https://serversforhackers.com/self-signed-ssl-certificates
# https://www.sslshopper.com/article-most-common-openssl-commands.html
# A blank pa... | corerd/PyDomo | web/ssl_util/ssl_remove_passphrase.sh | Shell | mit | 1,100 |
#!/bin/bash
# Wct Builder for Linux
# Version 2.0.7 by Mihail Podivilov
# Special thanks to Yanislav Basyuk
# www.wct.org.ru
RESET='\033[0m' && RED='\033[0;31m' && WHITE='\033[1;37m'
INPUT=$1 && OUTPUT=$2
VERSION="2.0.4"
TIMEFORMAT='Done in %R seconds!'
if [ "$IN" == "help" ]; then
echo -e "Hello, and welcome to ${... | Mihip/Wct | src/tools/builder/linux/compile.sh | Shell | mit | 2,845 |
#!/bin/bash
main() {
if [[ $EUID -ne 0 ]]
then
echo "Must be root to flush cache"
return
fi
local large_file=large_file
local program=./io-test
local args=
local out=out.csv
local bandwidth=
local separator="---------------------------------------------------------... | TheZorg/experiments | io-test/do_benchmarks_csv.sh | Shell | mit | 1,268 |
#!/bin/bash
. /vagrant/resources/colors.sh
. /vagrant/resources/trycatch.sh
try
(
throwErrors
echo "Copy nginx configuration files"
cp -R /vagrant/resources/vendor/nginx/* /etc/nginx
echo "Enable nginx Neap sites"
for f in /etc/nginx/sites-available/*.conf; do
f=${f##*/}
ln -fs /etc/nginx/sites-available/$... | e7d/neap | bootstrap/setup-nginx.sh | Shell | mit | 776 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2013:0247
#
# Security announcement date: 2013-02-09 11:04:30 UTC
# Script generation date: 2017-01-01 21:10:40 UTC
#
# Operating System: CentOS 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - java-1.7.0-openjdk-javadoc.noarch:1.7.0.... | Cyberwatch/cbw-security-fixes | CentOS_6/x86_64/2013/CESA-2013:0247.sh | Shell | mit | 1,373 |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
mkdir -p ~/Library/LaunchAgents
cp tv.rgbtv.update-ytdl.plist ~/Library/LaunchAgents/tv.rgbtv.update-ytdl.plist
launchctl load -w ~/Library/LaunchAgents/tv.rgbtv.update-ytdl.plist | endquote/VideoGallery | scripts/mac/install-update-ytdl.sh | Shell | mit | 243 |
#!/usr/bin/env bash
# ------------------------------------------------------------------------------
# Moom Settings Import
# ------------------------------------------------------------------------------
# https://manytricks.com/support/index.php?act=article&code=view&id=47
# https://manytricks.com/blog/?p=3049
r... | weerd/dotfiles | configs/moom/import.sh | Shell | mit | 819 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2016:2135
#
# Security announcement date: 2016-11-01 19:16:37 UTC
# Script generation date: 2017-01-01 21:17:33 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - redhat-release-server.x86_64:6Server-6.... | Cyberwatch/cbw-security-fixes | Red_Hat_6/x86_64/2016/RHSA-2016:2135.sh | Shell | mit | 642 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2328-1
#
# Security announcement date: 2014-08-28 00:00:00 UTC
# Script generation date: 2017-01-01 21:03:57 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: i386
#
# Vulnerable packages fix on version:
# - libc6:2.15-0ubuntu10.7
#
# Last versio... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/i386/2014/USN-2328-1.sh | Shell | mit | 633 |
#!/usr/bin/env bash
set -e
export BOSH_INIT_LOG_LEVEL="Debug"
export BOSH_INIT_LOG_PATH="./run.log"
bosh-init deploy ~/bosh.yml
bosh target REPLACE_WITH_BOSH_DIRECOT_IP >/dev/null 2>&1 << EndOfMessage
admin
admin
EndOfMessage
sed -i -e "s/REPLACE_WITH_DIRECTOR_ID/$(bosh status --uuid)/" ./example_manifests/single-v... | cr0550ver/azure-quickstart-templates | bosh-setup/scripts/deploy_bosh.sh | Shell | mit | 534 |
#!/bin/bash
CMD=$0
NUM_WORKERS=$1
TRACE=$2
JOBNAME=$PBS_JOBID
cd $PBS_O_WORKDIR
PATH=$PATH:$PBS_O_PATH
USERNAME=`whoami`
MASTER=`head -n1 $PBS_NODEFILE`
NODES=`sort -u $PBS_NODEFILE`
echo $LD_LIBRARY_PATH
echo "spawning master process on $HOSTNAME ($PBS_NODENUM of $PBS_NUM_NODES)"
echo $NODES
echo "Username is " $US... | jpdoyle/OmegaGo | latedays-train3.sh | Shell | mit | 463 |
#! /bin/bash
password=$1
client=$2
# clients=($(./getClientsIP.sh))
function usage () {
echo 'Usage : Script <password>'
exit 1
}
# check whether the necessary parameter is empty or not
if [ "$#" -ne 2 ]
then
usage
exit 1
fi
# check whether the IP array is empty or not.
# if [ ${#clients[@]} -eq 0 ]... | DropletProbe/shellscripts | jdk/jdkclient.sh | Shell | mit | 879 |
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../../" && pwd )"
CONFIG=$1
echo "Starting Test server... [config "$CONFIG"]"
echo "Waiting 10 seconds to run tests..."
echo "NOTE: check h.get() to pass all three params correctly if you are receiving Socket Hang Out error"
eval "(config="$CONFIG" no... | idooo/stormvods | tools/scripts/api-test-runner.sh | Shell | mit | 481 |
#!/bin/bash
#thanks to http://kendrickcoleman.com/index.php/Tech-Blog/use-travis-ci-to-update-your-website-using-ftp-and-git.html
echo "Start"
gitLastCommit=$(git show --summary --grep="Merge pull request")
if [[ -z "$gitLastCommit" ]]
then
lastCommit=$(git log --format="%H" -n 1)
else
echo "We got a Merge Request!"
... | andretahhir/Andweb_2016 | deploy.sh | Shell | mit | 1,022 |
# Aliases
alias 'll=ls -laG'
alias 'd=stat -c "%A (%a) %8s %.19y %n"'
| lfrancke/dotfiles-old | system/aliases.zsh | Shell | mit | 70 |
#!/usr/bin/env bash
function test_bad_request {
actual=$(curl -sI http://target-default-config/bad-request)
echo "$actual" | grep -q '400 Bad Request'
}
function test_unauthorized {
actual=$(curl -sI http://target-default-config/unauthorized)
echo "$actual" | grep -q '401 Unauthorized'
}
function test_forbid... | campanda/webserver-mock | tests/predefined_responses_tests.sh | Shell | mit | 1,181 |
#!/bin/bash
#-------------------------------------------------------------------------
# generates an xsl stylesheet containing a template for special
# cases in the book:
# - If the version does not begin with a number, it is impossible to know
# where the package name ends and where the version begins. We there... | bryan5989/jhalfs | BLFS/gen-special.sh | Shell | mit | 10,611 |
#!/usr/bin/env sh
#
# Helper script used by makefile to compiler GLFW for Zomp.
#
set -uE
cd glfw-legacy-2.7.9
CC=clang make cocoa CLAGS+=${ARCHFLAG}
cp lib/cocoa/libglfw.dylib ../../lib
| sheijk/Zomp | source/build/build_extlib_glfw-legacy-2.7.9.sh | Shell | mit | 191 |
#!/bin/bash
NAME="myproject" # Name of the application
USER="ubuntu" # the user to run as
REPO="https://github.com/johnrlive/django-server" # Git repository
script_runner=$(whoami)
if [ $script_runner == "root" ] ; then
echo -e "\nFor secu... | johnrlive/django-server | old/install_packages.sh | Shell | mit | 1,694 |
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 ... | panosmdma/SlackOnly-SlackBuilds | audio/darkice/doinst.sh | Shell | mit | 598 |
#!/bin/bash
cache=./npmcache
mod=$1
mkdir -p $mod
cd $mod
npm install --cache $cache --force --optional ${@:2} $mod
tar czf $mod.tar.gz $cache
mv $mod.tar.gz ../
cd -
| yarray/npmpack | pack.sh | Shell | mit | 168 |
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "No arguments provided, options are:"
echo " --nu : Initilise Nuget dependencies."
echo " --clean : Remove generated code."
echo " --gen : Run T4 code generation."
echo " --build : Compile generated code."
echo " --test : Run tests for compil... | sungiant/abacus | abacus.sh | Shell | mit | 5,513 |
#!/bin/bash
SOURCE="https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein"
DEST="/usr/local/bin/lein"
wget -q $SOURCE -O $DEST
chmod 0755 $DEST
lein
# a general project for use
lein new clj
| pwalsh/dockerfiles | worker/add-lein.sh | Shell | mit | 208 |
#!/bin/sh
./debug.sh >/dev/null 2>&1 &
gdb --symbols=Src/Kernel/oos.exe -ex 'target remote :1234' $@
| fasterthanlime/oos | gdb.sh | Shell | mit | 103 |
#!/bin/bash
source ctypes.sh
set -e
dlcall -n hwstr -r pointer strdup "hello, world"
# Check that the string was duplicated
if test "$(dlcall -r int puts $hwstr)" != "hello, world"; then
echo FAIL
exit 1
fi
if dlsym strfry >/dev/null 2>&1; then
# Check that we can modify it
dlcall -r pointer strfry ... | taviso/ctypes.sh | test/strfry.sh | Shell | mit | 490 |
#!/bin/sh
rm -rf $JENKINS_HOME/plugins/analysis-core*
mvn install -DskipTests || { echo "Build failed"; exit 1; }
cp -f target/analysis-core.hpi $JENKINS_HOME/plugins/
cd $JENKINS_HOME
./go.sh
| jenkinsci/analysis-core-plugin | go.sh | Shell | mit | 198 |
#!/bin/bash
# A script to make a basic new post given a title
if [ "$1" ]; then
DATE=$(date --iso)
DATETIME=$(date --iso=seconds)
TITLE=$(echo "$1" | sed 's/ /-/g')
FILENAME="$DATE-${TITLE}.md"
POST="_posts/$FILENAME"
echo "---" > $POST
echo "layout: single" >> $POST
echo "title: \"${1}\"" >> $POST
echo "date: '$DA... | jijames/dfir.science | newPost.sh | Shell | mit | 532 |
#!/bin/sh
echo "===================================================================="
echo "I will try to fetch and build everything needed for a freestanding"
echo "cross-compiler toolchain. This includes binutils, gcc, llvm, clang"
echo "and may take quite a while to build. Play some tetris and check back"
echo "eve... | prabirshrestha/writing-an-os-from-scratch | build_toolchain.sh | Shell | mit | 13,418 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3000-1
#
# Security announcement date: 2014-08-09 00:00:00 UTC
# Script generation date: 2017-01-01 21:07:01 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - krb5:1.10.1+dfsg-5+deb7u2
#
# Last ... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/x86_64/2014/DSA-3000-1.sh | Shell | mit | 703 |
#!/bin/bash
#set -x
#err_pipe="/tmp/err_pipe_${RANDOM}"
#mkfifo ${err_pipe}
#
#if [[ ! -p ${err_pipe} ]]; then
# echo Failed to create pipe ${err_pipe} 1>&2
# exit 1
#fi
#
#trap "rm -f ${err_pipe}" SIGINT SIGTERM
function usage {
echo "Usage: `basename $0` [-dh]"
echo
echo "Run all RepCRec tests."
... | blr246/adbs-repcrec | run_test_cases.sh | Shell | mit | 1,719 |
# UPF CFG SYS 1
# The number of MPI processes
# Note that 1 processes is reserved for Swift/T
# For example, if PROCS=4 that gives you 3 workers,
# i.e., 3 concurrent Keras runs.
export PROCS=${PROCS:-12}
# MPI processes per node. This should not exceed PROCS.
export PPN=${PPN:-1}
# Benchmark run timeout: benchmar... | ECP-CANDLE/Supervisor | workflows/cp-leaveout/test-chained/cfg-stage-sys.sh | Shell | mit | 1,957 |
#!/bin/bash
set -u
. ~/.tikradiorc
if test ! -e "$RUNNING"; then echo "Error: TiKradio not running!"; exit 0; fi
touch "$KILLFILE"
kill "`cat $CTLPID`" >/dev/null 2>/dev/null; : > $CTLPID
kill "`cat $GETPID`" >/dev/null 2>/dev/null; : > $GETPID
kill "`cat $SERIALPID`" >/dev/null 2>/dev/null; : >$SERIALPID
kill "`cat ... | tietokilta-saato/tikplay | legacy/tikradio/server/old2/tikradio-stop.sh | Shell | mit | 597 |
#!/bin/sh
echo "Recreating database"
echo "Purging db and applying new model"
mysql --user=webuser --password=tialof --default-character-set=utf8 < testtaggingdb.sql
for initFile in `ls iatagger_init/*.sql`
do
echo "Inserting data from init file:" $initFile
mysql --user=webuser --password=tialof --default-character... | rjawor/tagging | tools/db/recreateIataggerTestDB.sh | Shell | mit | 361 |
#!/bin/bash
# This script executes a sync procedure between Quiver Blog Notebook and the directory where it is executed
# 2016-06-23 Added ',' to the list of special characters
# 2016-02-11 Modified so that only the first cell is included (will research how to make JQ select markdown cells)
# 2016-01-23 First pass
D... | acrodrig/acrodrig.github.io | quiver.sh | Shell | mit | 1,645 |
#!/bin/bash
#set cassandra cassandra.yaml
sed -i -e "s|^cluster_name:.*$|cluster_name: 'DEV Cassandra Cluster'|" $CASSANDRA_HOME/conf/cassandra.yaml
sed -i -e "s|^listen_address:.*$|listen_address: `hostname -i`|" $CASSANDRA_HOME/conf/cassandra.yaml
sed -i -e "s|^rpc_address:.*$|rpc_address: 0.0.0.0|" $CASSANDRA_HOME/... | srakshit/bigdata-cassandra | cassandra-properties.sh | Shell | mit | 541 |
#!/bin/bash
IS_AUTHENTICATED=$(cat /etc/passwd* | grep $PAM_USER)
exit $?
| gate-sso/chef_gate | files/default/pam_gate.sh | Shell | mit | 75 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2017:0064
#
# Security announcement date: 2017-01-17 13:00:47 UTC
# Script generation date: 2017-01-19 21:21:54 UTC
#
# Operating System: CentOS 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - bind97-devel.i386:9.7.0-21.P2.el5_11.10
... | Cyberwatch/cbw-security-fixes | CentOS_5/x86_64/2017/CESA-2017:0064.sh | Shell | mit | 1,457 |
#!/bin/bash
PROTOFILES="message.proto messagerelay.proto"
PATH=.cabal-sandbox/bin:$PATH
if [ -z $(which hprotoc) ];
then echo "You need the protocol-buffers compiler for Haskell, hprotoc"; exit;
fi
for F in $PROTOFILES;
do hprotoc -I ../protocols/ -d . ../protocols/${F};
done;
| Spheniscida/cHaTTP | mesg-relay/generate-protocol-code.sh | Shell | mit | 290 |
export GEM_HOME=$HOME/.gems
export PATH=$GEM_HOME/bin:$PATH
export PATH="$HOME/.rbenv/bin":$PATH
| pawcik/dotfiles | ruby/path.zsh | Shell | mit | 98 |
# present working directory
MATHEMATICA_ROOT="$(pwd)"
# Mathematica path destination
MATHEMATICA_PATH="$HOME/Library/Mathematica/Applications/"
for package in "$MATHEMATICA_ROOT/"*.m; do
ln -s "$package" "$MATHEMATICA_PATH";
done
| caleblogemann/MyProjects | Mathematica/install.sh | Shell | mit | 236 |
#!/bin/bash
while [ "$select" != "NO" -a "$select" != "YES" ]; do
select=$(echo -e 'NO\nYES' | dmenu -nb '#2f343f' -nf '#f3f4f5' -sb '#E0A434' -sf '#f3f4f5' -fn 'Ubuntu' -i -p "Are you sure you want to logout?")
[ -z "$select" ] && exit
done
[ "$select" = "NO" ] && exit 0
i3-msg exit
| calmankhan/dotfiles | i3/scripts/exit_menu.sh | Shell | mit | 293 |
#!/bin/bash
PARAM=$1
if [ -z "$PARAM" ]; then
PARAM=0123456789
fi
wc -c 7segments.c
gcc -w -o 7segments 7segments.c && ./7segments $PARAM
| McZonk/7segements | build.sh | Shell | mit | 140 |
#!/usr/bin/env bash
# usage: ./run.sh {floor(number_of_requests_to_try/BATCH_SIZE)}
LOOPS=$1
# Assumes the redirect chain terminates in <300ms. Adjust depending on patience.
TIMEOUT="30"
# This is limited by system max open file descriptors. (ulimit -n)
BATCH_SIZE="200"
if hash timeout 2>/dev/null; then
CMD="tim... | diracdeltas/sniffly | util/run.sh | Shell | mit | 632 |
#! /bin/bash
# Installs rbenv on a new system, or updates it on an existing system.
set -e
default_ver="2.7.0"
rbenv_url="https://github.com/sstephenson/rbenv.git"
rbenv_build_url="https://github.com/sstephenson/ruby-build.git"
rbenv_d="${HOME}/.rbenv"
if [ -d "${rbenv_d}" ]; then
pushd $rbenv_d
git pull
... | xaque208/dotfiles | ruby/install.sh | Shell | mit | 763 |
#!/bin/bash
#export GUNTHERDIR=/mnt/nfs/share/scripts/gunther # HACK
# Goals
# -----
#
# For this script, a user should only need to run the following:
#
# 02anat_register_to_standard.sh -i input_image -a anat_head -o output_dir
#
# Environmental defaults for the freesurfer subject directory and task directory
#... | HumanNeuroscienceLab/gunther | preproc_anat.sh | Shell | mit | 3,959 |
#!/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... | STShenZhaoliang/Swift2Guide | Swift2Guide/Pods/Target Support Files/Pods/Pods-frameworks.sh | Shell | mit | 3,512 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2010:0140
#
# Security announcement date: 2010-03-15 23:19:25 UTC
# Script generation date: 2017-01-01 21:12:43 UTC
#
# Operating System: Red Hat 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - pango.i386:1.2.5-10
# - pango-debugin... | Cyberwatch/cbw-security-fixes | Red_Hat_5/x86_64/2010/RHSA-2010:0140.sh | Shell | mit | 1,813 |
#!/bin/bash
#
# Monitor uribl's server for unbound usage.
#
# editor /etc/unbound/unbound.conf.d/uribl.conf
# http://uribl.com/mirrors.shtml
URIBL_HOST="ff.uribl.com."
NEAREST_IP="54.72.143.21"
Error()
{
echo "ERROR: $*" | mail -s "uribl.com failure" admin@szepe.net
exit 1
}
declare -i LOOPS="2"
# IP addre... | szepeviktor/debian-server-tools | monitoring/uribl-monitor.sh | Shell | mit | 809 |
source config.sh
git pull
# Kills running process on port 8000
fuser -k 8000/tcp
cd server && source virtualenv/bin/activate && pip install -r requirements.txt && python manage.py migrate
# `nohup` is necessary here because otherwise we will hang the Circle CI builds. The `&` is also necessary
# so we don't wait for th... | chiubaka/serenity | scripts/deploy.sh | Shell | mit | 415 |
#!/bin/bash
f2py -c geodesiclm.pyf -L../geodesicLM/ -lgeodesiclm -llapack -lblas -lgfortran
| mclaughlin6464/SloppyJoes | geodesicLM/pythonInterface/make.sh | Shell | mit | 94 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.