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
# ------------------------------------------------------------------------
#
# Copyright 2016 WSO2, Inc. (http://wso2.com)
#
# 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... | wso2/kubernetes-artifacts | wso2es/undeploy.sh | Shell | apache-2.0 | 1,534 |
#!/bin/bash
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | dnardo/kubernetes | cluster/gce/container-linux/configure-helper.sh | Shell | apache-2.0 | 63,148 |
#!/bin/bash
# Usage: ./quest-sesame-test.sh
cd $ONTOP_BUILD_PATH/obdalib-protege41
mvn clean
mvn site
rm -rf $ONTOP_REPORT_PATH/obdalib-protege41
cp -R target/site $ONTOP_REPORT_PATH/obdalib-protege41
| ghxiao/ontop-spatial | scripts/obdalib-protege41-test.sh | Shell | apache-2.0 | 204 |
#!/bin/bash
# SCRIPT TO STOP, SET CONFIG, AND START HADOOP and run HiBench in AZURE
usage() {
echo "Usage: $0 [-d disk <SSD|HDD|RL{1,2,3}|R{1,2,3}>] [-b benchmark <_min|_10>] [-r replicaton <positive int>]\
[-m max mappers and reducers <positive int>] [-i io factor <positive int>] [-p port prefix <3|4|5>]\
[-... | Aloja/aloja | shell/OLD/run_al-03.sh | Shell | apache-2.0 | 22,144 |
/*
* Copyright 2013-2014 Dario Manesku. All rights reserved.
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
*/
#include "common.sh"
uniform vec4 u_params0;
uniform vec4 u_params1;
uniform vec4 u_params2;
uniform vec4 u_color;
uniform vec4 u_materialKa;
uniform vec4 u_materialKd;
uniform vec4 u_m... | LWJGL-CI/bgfx | examples/16-shadowmaps/fs_shadowmaps_color_lighting.sh | Shell | bsd-2-clause | 2,065 |
sudo gem install cocoapods --pre;
pod repo update;
pod trunk push VirgilCrypto.podspec;
| VirgilSecurity/VirgilCryptoiOS | CI/publish-cocoapods.sh | Shell | bsd-3-clause | 88 |
#!/bin/bash -e
IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img"
NOOBS_DIR="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}"
unmount_image ${IMG_FILE}
mkdir -p ${STAGE_WORK_DIR}
cp ${WORK_DIR}/export-image/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img ${STAGE_WORK_DIR}/
rm -rf ${STAGE_WORK_DIR}... | cfstras/pi-gen | export-noobs/prerun.sh | Shell | bsd-3-clause | 1,702 |
#!/usr/bin/sh
export PATH=$(pwd)/node_modules/.bin:$PATH
istanbul cover ./node_modules/mocha/bin/_mocha -- -u exports -R tap 'test/**/*tests.js' > results.tap
istanbul report cobertura --root coverage
| openAgile/CommitStream.Web | src/app/test-coverage.sh | Shell | bsd-3-clause | 202 |
#!/usr/bin/env bash
declare -A params=$5 # Create an associative array
paramsTXT=""
if [ -n "$5" ]; then
for element in "${!params[@]}"
do
paramsTXT="${paramsTXT}
fastcgi_param ${element} ${params[$element]};"
done
fi
block="server {
listen ${3:-80};
listen ${4:-443} ssl http2;
... | Mike-he/sandbox-Workerman-RPC | vendor/laravel/homestead/scripts/serve-symfony2.sh | Shell | mit | 1,857 |
#!/bin/sh
TC="/usr/sbin/tc"
IPTABLES="/usr/sbin/iptables"
NVRAM="/bin/config"
ECHO="/bin/echo"
WAN_IF="$($NVRAM get wan_ifnames)"
WAN_PROTO="$($NVRAM get wan_proto)"
FILTER_ADD="$TC filter add dev $WAN_IF"
UPRATE="$($NVRAM get qos_uprate)"
QoS_ENABLE="$($NVRAM get qos_endis_on)"
BANDCTL="$($NVRAM get qos_threshold)"
WA... | jameshilliard/WM2500RP-V1.0.0.34_gpl_src | target/linux/x6200/base-files/sbin/qos.sh | Shell | gpl-2.0 | 1,142 |
#!/bin/sh
#
# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the ... | netroby/jdk9-shenandoah-hotspot | test/compiler/c2/7200264/Test7200264.sh | Shell | gpl-2.0 | 3,515 |
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# Based on the am-wrapper.sh script (sys-devel/automake-wrapper-1-r1)
#
# Executes the correct fox-config version, based on the value of WANT_FOX.
# All versions of fox after 1.0.x ship with a ... | DmitriyHetman/gentoo | x11-libs/fox-wrapper/files/fox-wrapper-1.sh | Shell | gpl-3.0 | 1,908 |
# Copyright 2019 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 to in writing,... | googlefonts/oss-fuzz | projects/uwebsockets/build.sh | Shell | apache-2.0 | 685 |
#!/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 ca... | quark-pat/CLIP | packages/aqueduct/aqueduct/compliance/Bash/STIG/rhel-5/prod/GEN003601.sh | Shell | apache-2.0 | 3,275 |
#!/usr/bin/env bash
${IDRIS:-idris} $@ --quiet --port none --nocolour interpret003.idr < input.in
rm -f *.ibc
| kojiromike/Idris-dev | test/interpret003/run.sh | Shell | bsd-3-clause | 110 |
#!/bin/sh
# $FreeBSD$
. `dirname $0`/conf.sh
echo "1..1"
ddbs=2048
nblocks1=1024
nblocks2=`expr $nblocks1 / \( $ddbs / 512 \)`
src=`mktemp $base.XXXXXX` || exit 1
dst=`mktemp $base.XXXXXX` || exit 1
us0=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1
us1=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || ... | TigerBSD/TigerBSD | FreeBSD/tests/sys/geom/class/raid3/8_test.sh | Shell | isc | 1,010 |
#!/bin/bash
set -o errexit -o nounset -o xtrace
# Quick start:
# wget -O - https://raw.github.com/snoyberg/keter/master/setup-keter.sh | bash -ex
sudo apt-get update
sudo apt-get install postgresql haskell-platform -y
cabal update
cabal install keter --force-reinstalls
sudo mkdir -p /opt/keter/bin
sudo cp ~/.cabal/b... | telser/keter | setup-keter.sh | Shell | mit | 1,530 |
#!/bin/sh
test_description='fetch/clone from a shallow clone'
. ./test-lib.sh
commit() {
echo "$1" >tracked &&
git add tracked &&
git commit -m "$1"
}
test_expect_success 'setup' '
commit 1 &&
commit 2 &&
commit 3 &&
commit 4 &&
git config --global transfer.fsckObjects true
'
test_expect_success 'setup sha... | suryasingh/git | t/t5537-fetch-shallow.sh | Shell | gpl-2.0 | 3,280 |
#!/bin/sh
#
# Copyright (c) 2006 Junio C Hamano
#
test_description='git grep various.
'
. ./test-lib.sh
cat >hello.c <<EOF
#include <assert.h>
#include <stdio.h>
int main(int argc, const char **argv)
{
printf("Hello world.\n");
return 0;
/* char ?? */
}
EOF
test_expect_success setup '
{
echo foo mmap bar
e... | Ikke/git | t/t7810-grep.sh | Shell | gpl-2.0 | 40,221 |
#!/bin/bash
###########################################################################
# update_ts_files.sh
# ---------------------
# Date : July 2007
# Copyright : (C) 2007 by Tim Sutton
# Email : tim at linfiniti dot com
#######################################... | t-hey/QGIS-Original | scripts/update_ts_files.sh | Shell | gpl-2.0 | 4,407 |
#! /bin/sh
# Copyright (C) 2011-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/strictness-override.sh | Shell | gpl-2.0 | 2,727 |
#!/bin/sh
# test for fastasoft utility
FASTASORT="../../src/util/fastasort"
FASTALENGTH="../../src/util/fastalength"
INPUTDIR="../data/protein"
INPUTFILE="fastasort.test.fasta"
OUTPUTFILE="fastasort.sorted.test.fasta"
cat $INPUTDIR/*.fasta > $INPUTFILE
$FASTASORT $INPUTFILE --key len > $OUTPUTFILE
PREV_ID="NONE"
PR... | nathanweeks/exonerate | test/util/fastasort.test.sh | Shell | gpl-3.0 | 718 |
#!/bin/bash
# cleans up logs
find /home/freeciv/freeciv-web/freeciv-web/logs/*.log -exec cp /dev/null {} \;
cp /dev/null /usr/local/nginx/logs/access.log
cp /dev/null /usr/local/nginx/logs/error.log
| andreasrosdal/freeciv-web | scripts/log-cleanup.sh | Shell | agpl-3.0 | 201 |
#!/bin/bash
# Copyright 2015 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | UrbanCompass/bazel | src/tools/xcode/environment/environment_plist.sh | Shell | apache-2.0 | 2,600 |
#!/bin/bash
# Exit upon any errors
set -e
# Set defaults
HOST=
PORT=
USER=root
PASSWORD=
DATABASE=deploy
CURRENT_VERSION=
TARGET_VERSION=
DRYRUN=false
usage() {
echo "Usage: upgrade [-H|--host HOST] [-P|--port PORT]"
echo " [-u|--user USERNAME] [-p|--password PASSWORD]"
echo " [-d|... | brennentsmith/teletraan | tools/mysql/upgrade.sh | Shell | apache-2.0 | 2,845 |
cp manifest_test.json manifest.json
export BUILD_DIR=~/Downloads/quickbug
rm -rf $BUILD_DIR
rm -rf core
mkdir core
cp -r ../../core/* core
cp ../../lib/bookmarks/bookmark.js core
cp -r . $BUILD_DIR
cp ../../core/foam.css $BUILD_DIR
# For code compression, uncomment the following line:
# ~/node_modules/uglify-js/bin/ug... | jacksonic/foam | apps/quickbug/build_test.sh | Shell | apache-2.0 | 457 |
#!/bin/bash
# Run the thermo estimator on the given thermo input file
python -m scoop ../../scripts/thermoEstimator.py input_QM.py
| pierrelb/RMG-Py | examples/thermoEstimator/run_QM.sh | Shell | mit | 132 |
#!/bin/bash -eu
# Copyright 2018 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 agree... | googlefonts/oss-fuzz | projects/systemd/build.sh | Shell | apache-2.0 | 694 |
#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
if [ -n "$1" ]; then
jails=$1
else
jails=$(cd /jails ; ls -1)
fi
date=$(date +"%Y%m%d_%H%M%S")
zfs snapshot zroot/usr/ports@${date}
for jail in $jails; do
D=/jails/$jail
zfs destroy zroot$D/usr/ports 2>/dev/null
zfs clone zroot/usr/ports@${date} zroot$D/usr/po... | chtyim/infrastructure-puppet | modules/rootbin_asf/files/bin/fbsd_jail_ports_tree_update.sh | Shell | apache-2.0 | 329 |
#!/bin/bash
# Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | jtattermusch/grpc | tools/run_tests/helper_scripts/pre_build_cmake.sh | Shell | apache-2.0 | 802 |
#! /bin/sh
system=`uname -s`
case $system in
Darwin | FreeBSD | NetBSD | OpenBSD | DragonFly)
ncpu=`sysctl -n hw.ncpu 2>/dev/null`
;;
SunOS)
ncpu=`psrinfo -p`
;;
Linux)
ncpu=`cat /proc/cpuinfo | grep '^processor' | wc -l`
;;
*)
;;
esac
if [ -z "$ncpu" ]; then
ncpu=1
fi
echo $n... | cgerum/libcpu | CMake/GetCPUCount.sh | Shell | bsd-2-clause | 324 |
#! /bin/sh
# Test that gettext() in multithreaded applications works correctly.
# Copyright (C) 2008-2014 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License ... | vvavrychuk/glibc | intl/tst-gettext6.sh | Shell | gpl-2.0 | 1,160 |
#! /bin/bash
# A tls test.
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
... | infoburp/glibc | nptl/tst-tls6.sh | Shell | gpl-2.0 | 2,638 |
#!/bin/sh
#
# Build a fat binary on Mac OS X, thanks Ryan!
# Number of CPUs (for make -j)
NCPU=`sysctl -n hw.ncpu`
if test x$NJOB = x; then
NJOB=$NCPU
fi
# Generic, cross-platform CFLAGS you always want go here.
CFLAGS="-O3 -g -pipe"
# PowerPC 32-bit configure flags (10.4 runtime compatibility)
# We dynamically ... | albertz/sdl | build-scripts/fatbuild.sh | Shell | lgpl-2.1 | 11,490 |
#! /bin/sh
echo 'Starting Fault-Tolerant version of ProActive NBody...'
workingDir=`dirname $0`
. ${workingDir}/nbody.sh -displayft "$@"
| PaulKh/scale-proactive | examples/nbody/nbodyFaultTolerance.sh | Shell | agpl-3.0 | 140 |
#!/bin/bash
# Copyright 2016 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... | rawlingsj/gofabric8 | vendor/k8s.io/minikube/hack/jenkins/release_update_installers.sh | Shell | apache-2.0 | 3,273 |
#! /bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License");... | eric-haibin-lin/mxnet | amalgamation/prep_nnvm.sh | Shell | apache-2.0 | 1,449 |
#!/bin/bash
if [ -z $1 ]
then
VERSION=UNKNOWN
echo "You must pass a version!"
exit 1
else
VERSION=$1
fi
DIRBASE=lisp-codec
FULLDIR=${DIRBASE}-full
ASDFDIR=${DIRBASE}-asdf
DEVDIR=${DIRBASE}-dev
DISTDIR=dist
rm -Rf ${FULLDIR}
rm -Rf ${ASDFDIR}
rm -Rf ${DEVDIR}
rm -Rf ${DISTDIR}
# Making the development snapsh... | aksmas/rl-glue-ext | projects/distribution_tools/Lisp-Codec/download-lisp.bash | Shell | apache-2.0 | 2,870 |
#!/usr/bin/zsh
OLDPWD="$(pwd)"
cd $HOME
TESTFOLDER="${HOME}/p9k"
mkdir -p $TESTFOLDER
cd $TESTFOLDER
# Make a deep test folder
mkdir -p deep-folder/1/12/123/1234/12345/123456/1234567/123455678/123456789
# Make a git repo
mkdir git-repo
cd git-repo
git config --global user.email "test@powerlevel9k.theme"
git config ... | ccollins/dotfiles | zsh/oh-my-zsh.symlink/themes/powerlevel9k/test-vm-providers/setup-environment.sh | Shell | mit | 861 |
for file in $(ls *.hs); do
content=`cat $file`
echo $file
lines= sloccount $file | grep "Total Physical Source"
echo $lines
python count.py $file $lines
#echo "Time = "
#time liquid $file > /dev/null | tail -n1
echo ""
done
| mightymoose/liquidhaskell | benchmarks/esop2013-submission/count.sh | Shell | bsd-3-clause | 224 |
#!/bin/sh
# I put a variable in my scripts named PROGNAME which
# holds the name of the program being run. You can get this
# value from the first item on the command line ($0).
PROGNAME=$(basename $0)
error_exit ()
{
# ----------------------------------------------------------------
# Function for exit due to fat... | BrianAdams/openrov-software | linux/arduino/firmware-build.sh | Shell | mit | 1,586 |
#!/bin/bash
#
# Run this script to publish a new version of the library to npm. This requires
# that you have a clean working directory and have created a tag that matches
# the version number in package.json.
#
set -o errexit
#
# All profiles to be built. Must correspond to .json files in the config
# directory.
#... | mechdrew/ol3 | tasks/publish.sh | Shell | bsd-2-clause | 2,205 |
#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "3 nodes, 1 disconnected, add a node"
setup_nodes <<EOF
192.168.20.41
192.168.20.42
192.168.20.43
192.168.20.44
EOF
setup_ctdbd <<EOF
NODEMAP
0 192.168.20.41 0x0 CURRENT RECMASTER
1 192.168.20.42 0x1
2 192.168.20.43 0x0
EOF
required_... | SVoxel/R7800 | git_home/samba.git/ctdb/tests/tool/ctdb.reloadnodes.021.sh | Shell | gpl-2.0 | 432 |
#!/bin/bash
# Copyright 2015 Yajie Miao (Carnegie Mellon University)
# 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
#
# THIS CODE IS PROVID... | psibre/eesen | asr_egs/wsj/local/wsj_prepare_char_dict.sh | Shell | apache-2.0 | 2,355 |
#!/usr/bin/env bash
# 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/.
# Make sure listed files do not use unwrap() or panic!()
set -o errexit
set -o nounset
set -o pipe... | prampey/servo | etc/ci/check_no_panic.sh | Shell | mpl-2.0 | 804 |
#!/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... | Samsung-AG/kubernetes | hack/local-up-cluster.sh | Shell | apache-2.0 | 12,275 |
#!/bin/sh
# Copyright 2008 Lukas Sandström <luksan@gmail.com>
#
# AppendPatch - A script to be used together with ExternalEditor
# for Mozilla Thunderbird to properly include patches inline in e-mails.
# ExternalEditor can be downloaded at http://globs.org/articles.php?lng=en&pg=2
CONFFILE=~/.appprc
SEP="-=-=-=-=-=-... | overtherain/scriptfile | tool-kit/git-2.1.2/contrib/thunderbird-patch-inline/appp.sh | Shell | mit | 1,409 |
#!/bin/bash
#
# This is the top-level script we give to Kokoro as the entry point for
# running the "pull request" project:
#
# This script selects a specific Dockerfile (for building a Docker image) and
# a script to run inside that image. Then we delegate to the general
# build_and_run_docker.sh script.
# Change to... | nwjs/chromium.src | third_party/protobuf/kokoro/linux/python/build.sh | Shell | bsd-3-clause | 557 |
#!/bin/sh
# The user can request that we initialize concierge as
# part of startup by holding down hotkeys 1 and 3 during
# boot.
# The user can request that we remove all existing BUG
# applications and also initialize concierge as part of
# startup by holding down hotkeys 2 and 4 during boot.
# The bugnav driver has... | xifengchuo/openembedded | recipes/felix/felix-init/start.sh | Shell | mit | 2,212 |
#
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foun... | stain/jdk8u | test/sun/security/tools/keytool/p12importks.sh | Shell | gpl-2.0 | 4,061 |
#!/bin/sh
what=$1
CXX=g++
prefix="rvalgrind --tool=callgrind --callgrind-out-file=callgrind.out.$1.%p --dump-instr=yes"
. ${ROOTSYS}/bin/thisroot.sh
set -x
function run {
echo "Data Class: $1" | tee $1.1e6.$$.speedlog | tee $1.1e8.$$.speedlog
${CXX} -o speedtest speedtest.cxx `root-config --cflags --libs` -O... | lgiommi/root | hist/hist/v7/test/runall.sh | Shell | lgpl-2.1 | 1,043 |
#!/bin/sh
# Package
PACKAGE="gateone"
DNAME="GateOne"
# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
PYTHON_DIR="/usr/local/python"
PATH="${INSTALL_DIR}/bin:${INSTALL_DIR}/env/bin:${PYTHON_DIR}/bin:${PATH}"
PYTHON="${INSTALL_DIR}/env/bin/python"
GATEONE="${INSTALL_DIR}/env/bin/gateone"
SETTINGS_DIR="${INSTALL_DIR}/var/... | mirweb/spksrc | spk/gateone/src/dsm-control.sh | Shell | bsd-3-clause | 1,902 |
#!/bin/sh
test_description='git apply with weird postimage filenames'
. ./test-lib.sh
test_expect_success 'setup' '
vector=$TEST_DIRECTORY/t4135 &&
test_tick &&
git commit --allow-empty -m preimage &&
git tag preimage &&
reset_preimage() {
git checkout -f preimage^0 &&
git read-tree -u --reset HEAD &&
g... | overtherain/scriptfile | tool-kit/git-2.1.2/t/t4135-apply-weird-filenames.sh | Shell | mit | 2,336 |
#!/usr/bin/env bash
# Copyright 2014 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... | childsb/origin | vendor/k8s.io/kubernetes/cluster/centos/node/scripts/docker.sh | Shell | apache-2.0 | 1,410 |
#!/bin/sh
# -- check for root --
if [ "`id -u`" != "0" ]; then
echo "extract_dists.sh: sorry, this must be done as root." 1>&2
exit 1
fi
# -- tear down --
umount -F /chroots/chroot-fbsd-build-ports-head-armv7/etc/fstab -a || exit 1
if [ "$(uname -p)" != "armv7" ]; then
binmiscctl remove armelf || exit 1
fi
| guyyur/configs | chroot-fbsd-build-ports-head-armv7/FreeBSD/tear_down_chroot.sh | Shell | isc | 318 |
#!/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... | ypresto/AutoLayoutLint | Example/Pods/Target Support Files/Pods-AutoLayoutLint_Example/Pods-AutoLayoutLint_Example-frameworks.sh | Shell | mit | 3,576 |
#!/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... | tuyenbq/Moya | Demo/Pods/Target Support Files/Pods-DemoTests/Pods-DemoTests-frameworks.sh | Shell | mit | 2,814 |
DEPENDS="python python-colorama python-sh python-termcolor fortune-mod"
| mpardalos/dotfiles | motd/install.sh | Shell | mit | 72 |
#!/bin/sh
cd /Users/yannis/railsapps/biology14_staging/current;
/Users/yannis/.rbenv/shims/god;
/Users/yannis/.rbenv/shims/god load config/unicorn_staging.god && /Users/yannis/.rbenv/shims/god start biology14_staging_unicorn;
| yannis/biologyconf | config/start_god_staging.sh | Shell | mit | 226 |
#!/bin/bash
clear
# or use wm array -- add any that need to be recognized
wms=( 2bwm 2wm 9wm aewm afterstep ahwm alopex amiwm antiwm awesome blackbox bspwm catwm clfswm ctwm cwm dminiwm dragonflywm dwm echinus \
euclid-wm evilpoison evilwm fluxbox flwm fvwm-crystal gnome goomwwm hcwm herbstluftwm i3 icewm jwm karme... | nesmeck/DotFiles | syswh.sh | Shell | mit | 2,546 |
FILE=$1
FOLDER=`dirname "${FILE}"`
FOLDER=${FOLDER##"./"}
export FOLDER
export FILE
#echo "RUNNING WITH ${FILE} FROM FOLDER ${FOLDER}"
cat "${FILE}" | grep -v "#" | perl -ane 'BEGIN {$folder = $ENV{"FOLDER"}; $file = $ENV{"FILE"}; $chrom; $max = -1; $min = 1_000_000_000; print "==> $file <==\n"; } END { print "$chro... | sauloal/perlscripts | Bio/progs_parsers/gaggles/report/getRegio.sh | Shell | mit | 463 |
curl -XDELETE 'http://localhost:9200/throwtable'
curl http://localhost:9200/throwtable -X PUT -d '
{
"mappings": {
"implementation": {
"properties": {
"algorithm": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}'
elasticdump \
--input=version4.3/elas... | xkxx/algodb | elasticsearch_dumps/restore_elasticsearch.sh | Shell | mit | 810 |
#!/bin/bash
set -e
mkdir -p /home/osgeo4a
IFS=' ' read -ra arches_array <<< "${ARCHES}"
for ARCH in "${arches_array[@]}"
do
export ARCH=$ARCH
/usr/src/distribute.sh -m qgis
mv /usr/src/build/stage/$ARCH /home/osgeo4a
done
rm -rf /usr/src
| opengisch/OSGeo4A | scripts/build_arches.sh | Shell | mit | 243 |
## Images
cp -r _assets/_images assets/img/
## Files
cp -r _assets/_files assets/files/
| lchski/lucascherkewski.com | copy-assets.sh | Shell | mit | 89 |
#!/bin/sh
wget http://www.cs.columbia.edu/~blei/lda-c/ap.tgz
tar xzf ap.tgz
| luispedro/BuildingMachineLearningSystemsWithPython | ch04/data/download_ap.sh | Shell | mit | 76 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DLA-127-1
#
# Security announcement date: 2015-01-03 00:00:00 UTC
# Script generation date: 2017-01-01 21:08:51 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: i386
#
# Vulnerable packages fix on version:
# - pyyaml:3.09-5+deb6u1
#
# Last version... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/i386/2015/DLA-127-1.sh | Shell | mit | 606 |
#!/usr/bin/env bash
PACKAGE_NAME="chirpstack-gateway-bridge"
PACKAGE_VERSION=$1
REV="r1"
PACKAGE_URL="https://artifacts.chirpstack.io/downloads/chirpstack-gateway-bridge/chirpstack-gateway-bridge_${PACKAGE_VERSION}_linux_mips.tar.gz"
DIR=`dirname $0`
PACKAGE_DIR="${DIR}/package"
# Cleanup
rm -rf $PACKAGE_DIR
# CON... | brocaar/lora-semtech-bridge | packaging/vendor/dragino/LG308/package.sh | Shell | mit | 1,369 |
#!/bin/bash
# make && make tests &&
./_rel/cardgames_release/bin/cardgames_release console
| go717franciswang/cardgames | run_server.sh | Shell | mit | 93 |
#/bin/bash
### gulp 初始化
echo 'init gulp'
npm install gulp --save-dev
npm install gulp-uglify --save-dev
npm install gulp-plumber --save-dev
npm install gulp-less --save-dev
npm install gulp-minify-css --save-dev
npm install gulp-rename --save-dev
npm install gulp-util --save-dev
echo 'gulp 模块安装完毕'
| JackPu/albums | projects/gulp.sh | Shell | mit | 318 |
#!/usr/bin/env bash
cat << EOF > /var/www/public/index.php
<?php
echo 'Hello World !';
EOF | phpmauritiusug/2016-DevConMru | PHP-01-1-JumpStart/doRunInVagrantSSH.sh | Shell | mit | 91 |
#!/bin/bash
set -e
create_pid_dir() {
mkdir -p /run/apt-cacher-ng
chmod -R 0755 /run/apt-cacher-ng
chown ${APT_CACHER_NG_USER}:${APT_CACHER_NG_USER} /run/apt-cacher-ng
}
create_cache_dir() {
mkdir -p ${APT_CACHER_NG_CACHE_DIR}
chmod -R 0755 ${APT_CACHER_NG_CACHE_DIR}
chown -R ${APT_CACHER_NG_USER}:root ${... | sameersbn/docker-apt-cacher-ng | entrypoint.sh | Shell | mit | 1,050 |
#!/usr/bin/env sh
#
# Format the whole source tree with stylish-haskell. Skip generated output.
set -e
cd "$(dirname $0)/.."
stylish-haskell -i $(find lib examples cmd tests scripts -name '*.hs' | grep -v /gen/)
| zenhack/haskell-capnp | scripts/format.sh | Shell | mit | 212 |
#!/bin/bash
#PBS -l nodes=1:ppn=2,mem=16gb
module load bwa
module load nanopolish
module load samtools
set -x
GENOME=$1
FASTA=$2
TMP_DIR=$3
if [ $(echo $FASTA | grep -c -e "a$") -gt 0 ]; then
FMT="fasta"
elif [ $(echo $FASTA | grep -c -e "q$") -gt 0 ]; then
FMT="fastq"
else
echo "ERROR: $FASTA format not recogni... | scottgigante/nanopore-scripts | nanopolish_methylation.sh | Shell | mit | 1,100 |
#!/bin/bash
sudo -- sh -c 'mysqldump -uroot -proot -S /var/run/mysqld/mysqld.sock --all-databases > /var/database_backup/db_backup.sql'
duply pi_backup backup
| Kevin-De-Koninck/TerraPi | Webserver/BACKUP_DUPPLY_CRONJOB_SCRIPT.sh | Shell | mit | 159 |
#!/usr/bin/env bash
set -e
echo "remove static libs"
rm -fv "$DESTDIR"/usr/lib/lib{com_err,e2p,ext2fs,ss}.a
echo "info dir"
gunzip -v "$DESTDIR"/usr/share/info/libext2fs.info.gz
# update in destdir - need to update in final dir when extracted
install-info --dir-file="$DESTDIR"/usr/share/info/dir /usr/share/info/libex... | pretorh/lfs-notes | scripts/6/main/e2fsprogs-post.sh | Shell | mit | 330 |
#!/bin/bash
# _ _ _ _
# __ _ ___ | |_| |__ | | ___| |_ _ _
# / _` |/ _ \| __| '_ \| |/ _ \ __| | | |
#| (_| | (_) | |_| |_) | | __/ |_| |_| |
# \__, |\___/ \__|_.__/|_|\___|\__|\__,_|
# |___/
# https://www.youtube.com/user/gotbletu
# https://twitter.com/gotbletu
# https://p... | brendan-R/dotfiles | local-share/rofi/locate.sh | Shell | mit | 746 |
# Setup container sshd
[ -d /var/run/sshd ] || mkdir -p /var/run/sshd
DEST=/etc/ssh/sshd_config
# Deny root login via ssh
sed -i "/^PermitRootLogin.*/c PermitRootLogin no" $DEST
# Deny password login
sed -i "/^PasswordAuthentication *yes/c PasswordAuthentication no" $DEST
# Allow supervisor logs
sed -i "/^StrictM... | LeKovr/consup | Dockerfiles/gogs/init.d/sshd.sh | Shell | mit | 469 |
#!/bin/bash
zip -r draft-pages * -x node_modules/\*
| mediabeef/a2-draft-pages | zip.sh | Shell | mit | 53 |
#/usr/bin/sh
###################################################
# 根据日志中的LOGIN标记,统计每个ID的登录次数
# 并按照登录次数0-5、大于5两类输出
###################################################
# the second test log
input=data/*.log
output=login_count_2.txt
cat $input | grep LOGIN | awk '{count[$5]++}END{for(name in count)print name,count[name... | jiangdapeng/netease | task/Basketball/count_login_times.sh | Shell | mit | 959 |
#!/bin/bash
export HOME=/home/matt
/home/matt/.nvm/versions/node/v9.3.0/bin/node /home/matt/.nvm/versions/node/v9.3.0/bin/pm2 $1 $2
| artemisbot/OcelBot | monit.sh | Shell | mit | 133 |
#!/bin/sh
# wait for PSQL server to start
sleep 10
# prepare init migration
su -m myuser -c "python manage.py makemigrations"
# migrate db, so we have the latest db schema
su -m myuser -c "python manage.py migrate"
# start development server on public ip interface, on port 8000
su -m myuser -c "python manage.py runse... | thomasperrot/MTGTrader | docker/resources/bin/run_web.sh | Shell | mit | 338 |
time python gibbs.py > data.tab
| mathurshikhar/HPC | python.sh | Shell | mit | 32 |
#!/bin/bash
#if [ -f "$(brew --prefix)/etc/bash_completion.d/git-completion.bash" ] && ! shopt -oq posix; then
# . "$(brew --prefix)/etc/bash_completion.d/git-completion.bash"
#fi
#function_exists() {
# declare -f -F $1 > /dev/null
# return $?
#}
#git config --get-regexp alias | awk -F'[ .]' '{print $2 }'
#f... | StevenACoffman/dotfiles | bin/shell/bash_completion.sh | Shell | mit | 866 |
USERNAME=$USER
BUILD_DIR=/home/$USERNAME/Source/
EXT_DIR=/var/www/static/extjs
sudo chmod +x ./build.sh
echo "Installing Ruby..."
sudo apt-get install ruby ruby1.9.1
echo "Downloading ExtJS library..."
sudo mkdir -p $EXT_DIR
sudo chown $USERNAME $EXT_DIR
(cd $EXT_DIR && wget http://cdn.sencha.com/ext/gpl/ext-4.2.1-g... | arthur-e/flux-client | setup.sh | Shell | mit | 1,468 |
#!/usr/bin/env bash
# Removes *.log, and *.dif files.
find . -name *.log -exec rm -f {} \;
find . -name *.dif -exec rm -f {} \;
| Dzenly/tia | rm-logs.sh | Shell | mit | 130 |
#!/bin/bash
HOME=$PWD
cd ../..
#Update the release version of the project
#version string will look similar to this: 0.1.0-DEV-27-060aec7
VERSION=$(head -1 ./version.info)
#do work on the version to get the correct info
#we need the version string from above to look like this: 0.1.1-DEV
IFS='.' read -a arr <<< "$VERSI... | warricksothr/ImageTools | build/linux/createPatchRelease.sh | Shell | mit | 833 |
# Copyright (C) 2013 Wojciech Matyjewicz
#
# This file is distributed under the terms of the MIT License.
# See LICENSE file for details.
# Simple wrapper script
if [ $# -ne 1 ]
then
echo "Syntax: compile.sh <input>"
exit 1
fi
base=`basename $1 .pas`
./rascal $1 && llc $base.bc && gcc -g $base.s runtime.c
| wmatyjewicz/rascal | compile.sh | Shell | mit | 319 |
#!/usr/bin/env bash
ok=0
test_assert_fail()
{
if "$@" 2>/dev/null; then
echo "Error: assertion failure in ${test_name}."
exit 1
fi
ok=$(($ok+1))
}
test_assert_equal()
{
if ! diff -u $1 $2; then
echo "Error: assertion failure in ${test_name}."
exit 1
fi
ok=$(($o... | vmiklos/vmexam | llvm/qa/test-rename.sh | Shell | mit | 4,792 |
#!/bin/sh
# This script depends on the GNU script makeself.sh found at: http://megastep.org/makeself/
# Note: The structure of this package depends on the -rpath,./lib to be set at compile/link time.
version="1.6.3"
arch=`uname -i`
if [ "${arch}" = "x86_64" ]; then
arch="64bit"
QtLIBPATH="${HOME}/Qt/5.4/gcc_... | benzhi888/renminbi | release/linux_setup_builder.sh | Shell | mit | 3,080 |
set -e
ant
mkdir -p build/sample_classes
javac -cp ./build/jar/EditDistanceJoiner.jar -sourcepath sample -d build/sample_classes sample/edu/tsinghua/dbgroup/sample/EditDistanceJoinerTest.java
for thread in `seq 8 1 8`
do
time java -cp ./build/jar/EditDistanceJoiner.jar:./build/sample_classes edu.tsinghua.dbgroup.sa... | lispc/EditDistanceClusterer | test_join.sh | Shell | mit | 666 |
#!/usr/bin/env bash
# Convenience script to build Infer when using opam
# 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.
set -e
set -o pipefail
set -u
SCRIPT_DIR="$( cd "$( dirname "${BASH... | jvillard/infer | build-infer.sh | Shell | mit | 6,283 |
apt-get remove libsodium-dev
apt-get install php-pear php-bcmath php-memcached php-curl memcached php7.2-dev php-gmp php7.2-mbstring -y
cd lib
git clone https://github.com/jedisct1/libsodium --branch stable
cd libsodium
./configure
make && make check
make install
pecl install libsodium
cd ..
if ! grep -q sodium.so $(ph... | karek314/lisk-php | setup_16.04.sh | Shell | mit | 644 |
#!/bin/bash
# delete.sh - Made for Puppi
# Sources common header for Puppi scripts
. $(dirname $0)/header || exit 10
# Manage script variables
if [ $1 ] ; then
tobedeleted=$1
else
echo "You must provide a file or directory to delete!"
exit 2
fi
if [ "$tobedeleted" = "/" ] ; then
echo "Be Serious!"
... | jaytaph/symfony2-puppet-new | support/puppet/modules/puppi/files/scripts/delete.sh | Shell | mit | 450 |
#!/bin/sh
set -e
umount /home/eax
cryptsetup luksClose eax_home
losetup -d /dev/loop0
| afiskon/archlinux-on-desktop | home/umount.sh | Shell | mit | 88 |
#!/bin/bash
# this file is applicable for each user that logs on (hence runs at log on time)
# prerequisites
#
# have copied the inner mac_os_scripts folder to /usr/local/zetta as well as the
# two bash scripts
# logging stuff
LOG_FILENAME=/tmp/mac_os_scripts_${USER}_run_during_logon.log
STDOUT_LOG_FILENAME=/tmp/mac... | initialed85/mac_os_scripts | run_during_logon.sh | Shell | mit | 1,306 |
#!/bin/bash
# $1 should be supplied with the command: mysql_restore_outfile.sh <database_name>
DBNAME=$1
# For now just set the Source DB the same as DBNAME, we can change this later
SOURCEDB=${DBNAME}
if [ "$USER" != "root" ]; then
echo "You are not root user, use: sudo backup"
exit
fi
clear
echo "|--------... | donnoman/cap-recipes | lib/cap_recipes/tasks/mysql/mysql_restore_outfile.sh | Shell | mit | 1,951 |
#!/bin/bash
# Inspired by AngularJS's finalize-version script
# force user to deifne git-push-dryrun so he has to think!
ARG_DEFS=(
"--git-push-dryrun=(true|false)"
"--action=(prepare|publish)"
)
function prepare {
cd ../..
# Remove suffix
OLD_VERSION=$(readJsonProp "package.json" "version")
VERSION=$(e... | 1900/ionic | scripts/release/finalize-version.sh | Shell | mit | 1,453 |
#!/bin/bash
# Docs by jazzy
# https://github.com/realm/jazzy
# ------------------------------
jazzy -o docs/ \
--source-directory . \
--readme README.md \
-a 'Jesse Squires' \
-u 'https://twitter.com/jesse_squires' \
-m 'DefaultStringConvertible' \
-g 'https://github.com/jessesquir... | jessesquires/DefaultStringConvertible | build_docs.sh | Shell | mit | 349 |
#! /bin/bash
function bintray-upload() {
URL="https://api.bintray.com/content/$BINTRAY_USER/deb/$PACKAGE/$VERSION/$DEB"
echo "Uploading $DEB"
curl -v --progress-bar -T $DEB -u$BINTRAY_USER:$BINTRAY_TOKEN $URL \
-H 'X-Bintray-Publish: 1' \
-H 'X-Bintray-Override: 1' \
-H 'X-Bintray-Debian-Distribution... | gmatheu/deb-packages | bintray.sh | Shell | mit | 692 |
#!/bin/sh
file="$1"
lval="$2"
gnuplot -persist <<EOI
set grid
plot "$file-score-$lval.out" using 1:(log(\$3)) with linespoints
EOI
| cianmj/nrc | numerov/plot-scan.sh | Shell | mit | 131 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.