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
set -e -E -u -o pipefail; shopt -s failglob;
# howto: http://xavinux.blogspot.com.ar/2013/06/update-nemo-after-instalation.html
# change dir to /
cd /
# refresh all repositories
zypper ref
# update packages
zypper up
# upgrade
zypper dup
# `zypper -h` #for more info
| wilas/vbkick-templates-forge | PlasmaActive/postinstall/update.sh | Shell | mpl-2.0 | 280 |
#!/usr/bin/env bash
set -e
###############################################################################
#
# edx-all-tests.sh
#
# Execute all tests for edx-platform.
#
# This script can be called from a Jenkins
# multiconfiguration job that defines these environment
# variables:
#
# `TEST_SUITE` defines ... | dsajkl/123 | scripts/all-tests.sh | Shell | agpl-3.0 | 6,981 |
#!/bin/bash
docker build --rm -t memex/mongo:7.0 .
| jreeme/firmament | docker/memex/mongo/_build.sh | Shell | unlicense | 52 |
#! /bin/bash
function assertions {
if [ -z "$1" ]; then
echo Usage: $0 "<version>"
exit 1
fi
if ! git diff --quiet --exit-code; then
echo Current branch "isn't" clean. Use '`git status` for more details.'
echo Quiting...
exit 1
fi
if git rev-parse --verify --quiet $1 > /dev/null; then
echo 'Target t... | akaver/AspNetCore-BaseWebApp | WebApp/wwwroot/lib/globalize/chore/release.sh | Shell | unlicense | 2,158 |
#!/bin/sh
# shellcheck disable=SC2039
#
# Copyright (c) 2010-2016 Chef Software, Inc. and/or applicable contributors
#
# 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.... | georgemarshall/habitat | components/hab/install.sh | Shell | apache-2.0 | 9,471 |
#!/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 "Licens... | rekhajoshm/mapreduce-fork | bin/stop-mapred.sh | Shell | apache-2.0 | 1,165 |
magenta_midi \
--input_port="IAC Driver IAC Bus 3" \
--output_port="IAC Driver IAC Bus 4" \
--passthrough=false \
--qpm=120 \
--allow_overlap=true \
--enable_metronome=false \
--log=DEBUG \
--clock_control_number=1 \
--end_call_control_number=2 \
--min_listen_ticks_control_number... | bda2017-shallowermind/MusTGAN | magenta/magenta/demos/NIPS_2016/magenta_drums.sh | Shell | apache-2.0 | 740 |
#!/bin/bash
#
# Copyright 2016 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 ... | VersoBit/mod_pagespeed | pagespeed/apache/system_tests/statistics_logging.sh | Shell | apache-2.0 | 2,747 |
#!/bin/bash
echo "Cleaning k8s resource..."
# Back to the root of the project
cd $(dirname $0)
cd ../..
DEFAULT_NAMESPACE=openpitrix-system
NAMESPACE=${DEFAULT_NAMESPACE}
usage() {
echo "Usage:"
echo " clean.sh [-n NAMESPACE]"
echo "Description:"
echo " -n NAMESPACE: the namespace of kubernetes."
exit ... | openpitrix/openpitrix | deploy/kubernetes/scripts/clean.sh | Shell | apache-2.0 | 700 |
#!/bin/sh
export LD_LIBRARY_PATH=bin/SkyBlue/LCP/EDLoggingControl/LogDecompressor:${LD_LIBRARY_PATH}
#If do not pass a argument.
if [ ! "$1" ]; then
#java -cp .:lib/sqlite-jdbc-3.7.2.jar -jar Httpd.jar
java -cp .:lib/sqlite-jdbc-3.7.2.jar:lib/java_websocket.jar -classpath Httpd.jar:lib/sqlite-jdbc-3.7.2.jar:lib/jav... | not001praween001/BlueSkyLoggerCloudBINResearchVer1.0 | bin/Httpd.sh | Shell | apache-2.0 | 896 |
#!/bin/bash
set -x
PID=$(ctx instance runtime_properties pid)
kill -9 ${PID}
ctx logger info "Sucessfully stopped Nodecellar (${PID})" | denismakogon/aria-examples | scripts/nodecellar/stop-nodecellar-app.sh | Shell | apache-2.0 | 138 |
#!/bin/bash
set -e
#
# Test cpp compilation (debug and release)
#
./cake --quiet tests/helloworld_cpp.cpp
result=$(bin/helloworld_cpp)
if [[ $result != "debug 1" ]]; then
echo test 1: Incorrect variant: $result
exit 1
fi
./cake --quiet tests/helloworld_cpp.cpp --variant=release
result=$(bin/helloworld_cpp... | mgrosvenor/q2pc | build/cake/test.sh | Shell | bsd-3-clause | 1,862 |
# Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
NACLPORTS_CPPFLAGS+=" -I${START_DIR}"
EXECUTABLES="test/unittests"
if [ "${NACL_LIBC}" = "glibc" ]; then
EXECUTABLES+=" test/elf_reader test/libr... | yeyus/naclports | ports/nacl-spawn/build.sh | Shell | bsd-3-clause | 1,537 |
#!/bin/bash
fw_depends java8 maven
mvn clean package
cd target/dist
unzip *.zip
APP_ENTRY=com.techempower.act.AppEntry
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
BASE=$DIR/target/dist
if [[ $DIR == *"dist" ]]; then
BASE=$DIR
fi
CP=$BASE/classes:$BASE/lib/*
echo
echo CLASSPATH: $CP
echo
JAVA_OPTS="-Dja... | saturday06/FrameworkBenchmarks | frameworks/Java/act/setup-json-plaintext.sh | Shell | bsd-3-clause | 572 |
#!/bin/bash
# warning: this test is useful to check if training fails, and what speed you can achieve
# the toy datasets are too small to obtain useful translation results,
# and hyperparameters are chosen for speed, not for quality.
# For a setup that preprocesses and trains a larger data set,
# check https://github.... | Proyag/nematus | test/test_train_float16_midbatch_largemodel.sh | Shell | bsd-3-clause | 798 |
#!/usr/bin/env bash
THE_BASE_DIR_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
source $THE_BASE_DIR_PATH/_init.sh
rm $THE_SELECT_LIST_FILE_PATH -f
echo 'rm' $THE_SELECT_LIST_FILE_PATH
| samwhelp/fix-ubuntu-1404 | misc/bin/select-remove.sh | Shell | mit | 188 |
#
# 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|\
a5-v11|\
ac1200pro|\
ai-br100|\
air3gii|\
a... | feckert/source | target/linux/ramips/base-files/lib/upgrade/platform.sh | Shell | gpl-2.0 | 3,850 |
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) 2021 Petr Vorel <pvorel@suse.cz>
TST_TESTFUNC=do_test
. tst_test.sh
do_test()
{
tst_res TINFO "expecting SUCCESS string passed from stdin"
read line
EXPECT_PASS [ "$line" = "SUCCESS" ]
}
tst_run
| pevik/ltp | testcases/commands/shell/shell_pipe01.sh | Shell | gpl-2.0 | 273 |
#!/bin/sh
# /usr/lib/ddns/dynamic_dns_lucihelper.sh
#
#.Distributed under the terms of the GNU General Public License (GPL) version 2.0
#.2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
# This script is used by luci-app-ddns
#
# variables in small chars are read from /etc/config/ddns as par... | KurdyMalloy/packages | net/ddns-scripts/files/dynamic_dns_lucihelper.sh | Shell | gpl-2.0 | 5,333 |
#!/bin/sh
# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public Licens... | Jajcus/lvm2 | test/shell/nomda-restoremissing.sh | Shell | gpl-2.0 | 1,041 |
#!/usr/bin/env bash
# Copyright 2018 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... | rnaveiras/kubernetes | cluster/gce/upgrade-aliases.sh | Shell | apache-2.0 | 6,149 |
#!/bin/bash
cd /convert/
python convert.py $1
| gongweibao/cloud | docker/convert/run.sh | Shell | apache-2.0 | 46 |
#!/usr/bin/env bash
# Description:
# Script to extract the most security relevant details from a
# target SSL/TLS implementation by using ssl-cipher-check.
#
# Requires:
# - ssl-cipher-check.pl
# http://unspecific.com/ssl/
VERSION=0.1
echo ------------------------------------------------------
echo " $0 -... | DarKnight--/owtf | scripts/ssl/verify_ssl_cipher_check.sh | Shell | bsd-3-clause | 2,796 |
#!/usr/bin/env bash
#
# Copyright (c) 2019-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
export LC_ALL=C.UTF-8
export CONTAINER_NAME=ci_native_qt5
export DOCKER_NAME_TAG=ubuntu:18.04 # Check th... | Sjors/bitcoin | ci/test/00_setup_env_native_qt5.sh | Shell | mit | 1,195 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2009-2015 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distribu... | p2rkw/tup | test/t5039-wrong-target5.sh | Shell | gpl-2.0 | 1,030 |
#!/bin/sh
set -e
if [ ! $VERSION ]; then
VERSION=`git describe --tags`
fi
echo $VERSION | tr -d "\n"
| aeppert/massive-octo-spice | version.sh | Shell | lgpl-3.0 | 108 |
#!/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/agent/scripts/config_ssl.sh | Shell | apache-2.0 | 3,814 |
jspm bundle-sfx main + voxel-demo -mi
http-server
| pniederlag/jspm-cli | testlibs/bundle-sfx.sh | Shell | apache-2.0 | 50 |
#Aqueduct - Compliance Remediation Content
#Copyright (C) 2011,2012 Vincent C. Passaro (vincent.passaro@gmail.com)
#
#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 Licens... | quark-pat/CLIP | packages/aqueduct/aqueduct/compliance/Bash/STIG/rhel-5-beta/prod/GEN001870.sh | Shell | apache-2.0 | 6,126 |
test=01
sub_test=0
description="no linebreak at end of file."
output=`echo -n "hello${DELIMITER}world" | $bin 2>&1`
if [ "$output" != '"hello","world"' ]; then
test_status $test $sub_test "$description" FAIL
else
test_status $test $sub_test "$description" PASS
fi
| dbushong/crush-tools | src/csvformat/tests/test_01.sh | Shell | apache-2.0 | 268 |
#!/bin/bash
main()
{
script_name=${0##*/}
echo " "
echo " "
echo " "${script_name}
echo " "
echo " Objective:"
echo " The script removes ftnlen-related arguments which are not necessary in lapack2flame."
echo " "
files="$(find . -maxdepth 1 -name "*.c")"
for file in ${files... | alishakiba/libflame | src/map/lapack2flamec/f2c/c/remove_ftnlen.sh | Shell | bsd-3-clause | 1,992 |
#!/bin/bash
FN="pd.margene.1.0.st_3.12.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.13/data/annotation/src/contrib/pd.margene.1.0.st_3.12.0.tar.gz"
"https://bioarchive.galaxyproject.org/pd.margene.1.0.st_3.12.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-pd.margene.1.0.st/bioconductor-... | phac-nml/bioconda-recipes | recipes/bioconductor-pd.margene.1.0.st/post-link.sh | Shell | mit | 1,466 |
# Rebuild the initrd:
# Skip if it is explicitly wanted to not rebuild the initrd:
if is_false $REBUILD_INITRAMFS ; then
Log "Skip recreating initrd (REBUILD_INITRAMFS is false)"
return 0
fi
# Skip if not needed but only when it is not explicitly wanted to rebuild the initrd in any case:
if ! is_true $REBUIL... | phracek/rear | usr/share/rear/finalize/SUSE_LINUX/i386/550_rebuild_initramfs.sh | Shell | gpl-3.0 | 5,660 |
#ipsec setup stop
#umount /var/tmp; mount /var/tmp
#umount /usr/local; mount /usr/local
: ==== start ====
TESTNAME=psk-pluto-02
source /testing/pluto/bin/eastlocal.sh
ipsec setup start
ipsec auto --add road--eastnet-psk
| y-trudeau/openswan-patch-meraki | testing/pluto/psk-pluto-02/eastinit.sh | Shell | gpl-2.0 | 221 |
# $OpenBSD: sftp-cmds.sh,v 1.14 2013/06/21 02:26:26 djm Exp $
# Placed in the Public Domain.
# XXX - TODO:
# - chmod / chown / chgrp
# - -p flag for get & put
tid="sftp commands"
# test that these files are readable!
for i in `(cd /bin;echo l*)`
do
if [ -r $i ]; then
GLOBFILES="$GLOBFILES $i"
fi
done
# Path wi... | eunsungc/gt6-RAMSES_8_5 | gsi_openssh/source/regress/sftp-cmds.sh | Shell | apache-2.0 | 7,465 |
#!/bin/bash
# This is part of the rsyslog testbench, licensed under ASL 2.0
echo ======================================================================
# Check if inotify header exist
if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then
echo [imfile-readmode2.sh]
else
exit 77 # no inotify available, ... | RomeroMalaquias/rsyslog | tests/imfile-readmode2.sh | Shell | gpl-3.0 | 1,810 |
#!/bin/bash
## Set of SM tests for verifying iSCSI attach/detach refcounting
## Source the general system function file
. ./XE_api_library.sh
## source performance tests
. ./performance_functions.sh
# XXX The free and in use lists do not have to be stored in files. However,
# storing them in a file eases post-mortem... | pritha-srivastava/sm | tests/test_iscsi_refcount.sh | Shell | lgpl-2.1 | 14,577 |
#!/bin/sh
printf "#!/bin/sh\n" > "$usrcfd/tmp/session.tell.$nametmp.sh"
#!/bin/sh
echo
#!/bin/sh
echo
#!
#!/bin/bash
#!/bin/bash | siosio/intellij-community | plugins/sh/testData/oldLexer/v3/shebang.sh | Shell | apache-2.0 | 141 |
#!/bin/sh
#
# 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 applica... | bjtaylor1/osrm-backend | third_party/flatbuffers/tests/TypeScriptTest.sh | Shell | bsd-2-clause | 1,387 |
#!/bin/sh
cat mklist.txt |
while read line; do
ws=""
list=""
for f in $line; do
echo "Processing $f"
f="../../$f"
test -f $f || {
echo "$f doesn't exist"
exit 1
}
ws="$(dirname $f)/wscript_build"
if [ -f $ws ]; then
if test -s $ws && ! grep "AUTOGENERATED.by.mktowscript" $ws > /dev/nul... | zarboz/XBMC-PVR-mac | tools/darwin/depends/samba/samba-3.6.6/buildtools/mktowscript/rebuild_all.sh | Shell | gpl-2.0 | 724 |
#!/usr/bin/env bash
bash --version 2>&1 | head -n 1
set -eo pipefail
SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
###########################################################################
# CONFIGURATION
###########################################################################
BUILD_PROJECT_FILE="... | olsh/resharper-bootstrap-templates | build.sh | Shell | mit | 2,280 |
#!/bin/sh
cd `dirname $0`
AC_SEARCH_OPTS=""
# For those of us with pkg-config and other tools in /usr/local
PATH=$PATH:/usr/local/bin
# This is to make life easier for people who installed pkg-config in /usr/local
# but have autoconf/make/etc in /usr/. AKA most mac users
if [ -d "/usr/local/share/aclocal" ]
then
... | bc-jaymendoza/the_silver_searcher | build.sh | Shell | apache-2.0 | 488 |
R CMD REMOVE --library=$PREFIX/lib/R/library/ GWASdata
| joachimwolff/bioconda-recipes | recipes/bioconductor-gwasdata/pre-unlink.sh | Shell | mit | 55 |
#!/bin/sh
# See LICENSE file for copyright and license details.
out=/tmp/$$.out
err=/tmp/$$.err
trap "rm -f $out $err" EXIT INT QUIT HUP
case $# in
0)
echo "usage: update.sh test ..." >&2
exit 1
;;
*)
for i
do
../cc1-z80 -I./ -w $i >$out 2>$err
(echo '/^error/+;/^output/-c'
cat $err
printf ".\n"
echo... | 8l/scc | cc1/tests/update.sh | Shell | isc | 400 |
#!/usr/bin/env bash
set -e # halt script on error
# Configure git name, email, and remote
git config --global user.email "automerge@hyatt.space"
git config --global user.name "Automatic travis merge"
git remote add pb https://hyatt03:$GIT_PASSWORD@github.com/hyatt03/hyatt.space.git
# Create a temporary branch name
ex... | hyatt03/hyatt.space | script/PushToGH.sh | Shell | mit | 806 |
wget https://zenodo.org/record/5648048/files/seecer.tar.gz
tar -zxvf seecer.tar.gz
mv seecer third_party
export LD_LIBRARY_PATH=third_party/seecer/SEECER/lib:$LD_LIBRARY_PATH
| SchulzLab/SOS | initial_setup.sh | Shell | mit | 177 |
#!/bin/bash
source power/config/config;
reps=$1;
shift;
keep="$1";
shift;
keep_n=3;
rep_script=./scripts/repeat_and_keep.sh
pfiles=( /tmp/Tot /tmp/Pac /tmp/PP0 );
while [ 1 ];
do
out=$($rep_script $reps $keep $keep_n $@);
vstat=$(./vstats $out);
# echo ${vstat[@]};
vstata=($vstat);
std=${vstata[... | LPD-EPFL/lockin | scripts/repeat_avg_std.sh | Shell | mit | 673 |
arcdir=$HOME/zhihu/ph/arcanist
export PATH=${arcdir}/bin:$PATH
if [ -f ${arcdir}/resources/shell/bash-completion ]; then
source ${arcdir}/resources/shell/bash-completion
fi
| xiaogaozi/oh-my-zsh | custom/plugins/arcanist/arcanist.plugin.zsh | Shell | mit | 177 |
i="0"
while [ $i -lt 100 ]
do
insmod tasklet.ko
rmmod tasklet.ko
i=$[$i+1]
done
| DimaWittmann/monte_cassino | time/script_tasklet.sh | Shell | mit | 85 |
#!/bin/bash
export LC_ALL=C
sudo apt-get install unzip
unzip train.zip
unzip test.zip
mkdir results
mkdir valid
mkdir valid/cats
mkdir valid/dogs
mkdir test/unknown
mkdir train/cats
mkdir train/dogs
mkdir sample
mkdir sample/results
mkdir sample/valid
mkdir sample/valid/cats
mkdir sample/valid/dogs
mkdir sample/tes... | laviavigdor/deep-learning-toolbelt | init_dogs_and_cats.sh | Shell | mit | 970 |
#!/bin/bash
photo_dir='.'
if test $# -gt 0; then
photo_dir=$1
fi
thumbnail_dir='_thumbnail'
find $photo_dir -type d -name $thumbnail_dir |xargs rm -rf
| huzhifeng/express-gallary | tools/thumbnail_cleanup.sh | Shell | mit | 152 |
#!/usr/bin/env bash
paste -d ' '\
<( cat $1 | grep Utterance | sed 's/.*(\(.*\))/\1/' )\
<( cat $1 | grep Recognized: | sed 's/Recognized: \(.*\)/\1/' )
| rizar/actor-critic-public | bin/extract_for_kaldi.sh | Shell | mit | 157 |
#!/usr/bin/env sh
# To enable deployment with Git you need to add a new SSH key.
# 1. Create a key
# - run `ssh-keygen -t rsa -b 4096 -C "your@email.com"`
# - leave the password empty
# - chose a new location for the key. Maybe your desktop
# 2. Add the public key to Github
# - Copy the content of yourkey.pub
... | trybash/game | scripts/deploy-travis.sh | Shell | mit | 1,093 |
#!/usr/bin/env bash
#
# Copyright (c) 2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
export LC_ALL=C
travis_retry pip install codespell==1.13.0
travis_retry pip install flake8==3.5.0
| GlobalBoost/GlobalBoost | .travis/lint_04_install.sh | Shell | mit | 308 |
#!/bin/bash
python /usr/local/bin/process_kill.py
| alevar/Work | OSX_logout_unmount/initiation_logout.sh | Shell | mit | 51 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2630-1
#
# Security announcement date: 2015-06-10 00:00:00 UTC
# Script generation date: 2017-01-01 21:04:36 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - qemu-kvm:1.0+noroms-0ubuntu14.23
#
#... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/x86_64/2015/USN-2630-1.sh | Shell | mit | 743 |
# This is a shell script to transform the PRODUCTNAME directory into a cookie-cutter template
# Delete files that we don't want to include in the template
rm -rf PRODUCTNAME/app/Pods
rm -rf PRODUCTNAME/app/PRODUCTNAME.xcworkspace
#This is the only lookup that is done on filenames
LOOKUP="PRODUCTNAME"
EXPANDED="{{ coo... | pmlbrito/cookiecutter-ios-template | generate_template.sh | Shell | mit | 1,505 |
#! /bin/sh
# Created Time: 2016-04-23 14:42:34
#
# check build dir
if [ -d build ]; then
echo "dir build exist"
else
mkdir build
echo "mkdir build"
fi
cd build
rm -rf *
c_compiler=
cxx_compiler=
system_type=
cmake_para=
if [ "`getconf LONG_BIT`" = "32" ]; then
echo "32 bit system"
system_type="i... | linails/NLP-correlation | build.sh | Shell | mit | 1,494 |
#!/bin/bash
amixer cset numid=3 1
python3 ~/src/python/shotclock/shotclock.py
| unsignedbytes/shotclock | run.sh | Shell | mit | 78 |
#!/bin/sh
kdiffpath=`type -P kdiff3`
if [ -z "$kdiffpath" ] ; then
echo >&2 "ERROR: Can't find KDiff3"
exit
fi
"$kdiffpath" "$2" "$5" | cat
| itsananderson/git-better | git-scripts/diff-wrapper.sh | Shell | mit | 151 |
#!/bin/bash
searchServerURL="http://localhost:9095"
indexName="myindex"
echo "Creating an index: $indexName into the searchServer ..."
sleep 1
curl -X PUT $searchServerURL/api/search/v2/index/$indexName
for doc in abc.json xyz.json
do
echo "Adding document: $doc into index: $indexName"
sleep 1
curl -X PU... | projectOpenRAP/OpenRAP | searchServer/test/test_script.sh | Shell | mit | 879 |
sudo apt-get install bmon
| UedaTakeyuki/gc_setups | networkmonitor/bmon.setup.sh | Shell | mit | 26 |
#!/bin/bash
readonly KEYWORDS_ACTOR_DANIELRADCLIFFE="Daniel(| )Radcliffe"
if [ "$1" == "" ]; #Normal operation
then
debug_start "Daniel Radcliffe"
RADCLIFFE=$(egrep -i "$KEYWORDS_ACTOR_DANIELRADCLIFFE" "$NEWPAGES")
categorize "RADCLIFFE" "Daniel Radcliffe"
debug_end "Daniel Radcliffe"
fi | MW-autocat-script/MW-autocat-script | catscripts/Entertainment/Actors_and_actresses/Daniel_Radcliffe/DanielRadcliffe.sh | Shell | mit | 303 |
#!/bin/sh
pip2 install --upgrade --user pillow | tylerjohnhaden/penguin-website-colors | localpillow.sh | Shell | mit | 47 |
#!/bin/bash
echo "Cleaning Build-OpenSSL-cURL"
rm -fr curl/curl-* curl/include curl/lib openssl/openssl-1* openssl/openssl-ios* openssl/Mac openssl/iOS* openssl/tvOS* openssl/Catalyst nghttp2/nghttp2-1* nghttp2/Mac nghttp2/iOS* nghttp2/tvOS* nghttp2/lib nghttp2/Catalyst example/iOS\ Test\ App/build/* *.tgz *.pkg nghttp... | jasonacox/Build-OpenSSL-cURL | clean.sh | Shell | mit | 373 |
#!/bin/bash
# --------------------------------------------------------------------
# Testing Contracts At https://github.com/bokkypoobah/TokenTrader
# for https://cryptoderivatives.market/
#
# Testing Other Methods And Conditions
#
# (c) BokkyPooBah 2017. The MIT licence.
# ---------------------------------------------... | bokkypoobah/TokenTrader | testing/test_20170115_1619/04_testOther.sh | Shell | mit | 17,531 |
# only works on mac
[[ `uname -s` = "Darwin" ]] || exit
# install brew if not exists
if [ ! `command -v brew` ]; then
/usr/bin/ruby -e `curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install`
fi
# update brew only on not exists
brew_list=`brew list`
function update_module {
for name in $... | whiledoing/dotfiles | script/system_startup_for_software.sh | Shell | mit | 933 |
#! /bin/bash -eu
#########################
#
# Name: esacci2cmip5-format.bash
#
# Purpose: Rewrite ESA-CCI variable files to CMIP5:ish format
#
# Usage: ./esacci2cmip5-format.bash [-h] -i input-directory -o output-directory
#
# -h displays help text
# -i input directory
# -o output directory
#
# Ex... | marev711/scripts | process-obsdata/esacci2cmip5-format-v1.4.bash | Shell | mit | 3,130 |
disk="sda2"
admin="admin@mail.com"
s=$(df | grep "$disk" | awk '{print $5}' )
s="${s%%%}"
mail () {
echo "df size greater than 95" | mail -s "df notify" "$admin"
}
[[ (( $s -gt 95 )) ]] && mail
| liuyang1/dotfiles | gist/dfmail.sh | Shell | mit | 198 |
#!/bin/bash
#set -d
# Start supervisord
exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
| frankyrumple/ope | docker_build_files/ope-smc/start.sh | Shell | mit | 104 |
#!/bin/bash
#-------------------------------------------------------------------------------------------------------
# Copyright (C) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
#-------------------------------------------------... | mrkmarron/ChakraCore | test/native-tests/test_native.sh | Shell | mit | 2,218 |
#!/bin/sh
# Set sed command based on OS.
# We use gnu-sed here, because BSD sed doesn't have \U or \L to allow
# case changes, but gnu-sed doesn't exist on linux machines
if [ "$(uname -s)" == "Darwin" ]; then
SED=gsed;
else
SED=sed;
fi
# Load the Joshua Project database into postgres, and make it accessible
# fr... | edwinsteele/language_explorer | data/load_jpharvest.sh | Shell | mit | 2,558 |
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$DIR/redist-tools"
source "$DIR/redist-config"
if [ ! -d "$DIR/target/upstream" ] ; then
rm -rf "$DIR/target/upstream"
mkdir -p "$DIR/target/upstream"
git clone $UPSTREAM_GIT_URL "$DIR/target/upstream"
else
cd "$DIR/target/upstre... | jszip/analytics-redist | update-prep.sh | Shell | mit | 1,861 |
#!/bin/bash
cd $(dirname $0)
export EXTERNAL_1="Value 1 taken from external environment"
export EXTERNAL_2="Value 2 taken from external environment"
scuba -e CMDLINE="This comes from the cmdline" example
| JonathonReinhart/scuba | example/env_vars/run_example.sh | Shell | mit | 206 |
#!/bin/bash
mkdir build
cd build
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
DYNAMIC_EXT="so"
OPENMP="-DWITH_OPENMP=1"
fi
if [ "$(uname -s)" == "Darwin" ]; then
DYNAMIC_EXT="dylib"
OPENMP=""
fi
cmake -LAH .. \
$OPENMP ... | willyd/conda-recipes | opencv/recipe/build.sh | Shell | mit | 1,997 |
#!/usr/bin/env bash
USER_ID=${LOCAL_USER_ID:-9001}
echo "Create user with UID : $USER_ID"
useradd --shell /bin/bash -u ${USER_ID} -o -c "" -m user
/usr/sbin/php-fpm7.0 | v2p/pub | dockers/php/fpm-7.0-dev/entrypoint.sh | Shell | mit | 170 |
#!/usr/bin/env bash
#
# Copyright (c) 2018 The Fujicoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Make sure all shell scripts:
# a.) explicitly opt out of locale dependence using
# "export LC_ALL=C" or... | fujicoin/fujicoin | test/lint/lint-shell-locale.sh | Shell | mit | 1,066 |
#!/bin/bash
# Options / Usage
# put this script in the same directory as your *.cabal file
# it will use the first line of "cabal info ." to determine the package name
# custom options for "cabal haddock" (cabal haddock --help,
# http://www.haskell.org/haddock/doc/html/invoking.html)
CUSTOM_OPTIONS=(--haddock-optio... | asilvestre/haskell-neo4j-rest-client | hackage-upload-docs.sh | Shell | mit | 3,796 |
#!/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... | fthomasmorel/insapp-iOS | Pods/Target Support Files/Pods-Insapp/Pods-Insapp-frameworks.sh | Shell | mit | 3,761 |
#!/bin/sh
export CRONKITE_AURURL=""
OUTPUT=$(${1} -search example 2>&1)
rval=$?
# echo it out once just for ctest -V output
echo $OUTPUT
echo $OUTPUT | egrep -qi 'illegal format'
nval=$?
if [ $rval -eq 1 ] && [ $nval -eq 0 ]; then
exit 0;
else
exit 1;
fi
| cactus/cronkite | src/cli/tests/cli-nourl.sh | Shell | mit | 263 |
#!/usr/bin/env bash
shopt -s -o pipefail
set -e # Exit on error
PKG_NAME="gperf"
PKG_VERSION="3.0.4"
TARBALL="${PKG_NAME}-${PKG_VERSION}.tar.gz"
SRC_DIR="${PKG_NAME}-${PKG_VERSION}"
function showHelp() {
echo -e "-------------------------------------------------------------------------------------------------... | PandaLinux/base-64 | build-system/gperf/build.sh | Shell | mit | 1,167 |
connected_to_internet() {
test_urls="\
https://www.google.com/ \
https://www.microsoft.com/ \
https://www.cloudflare.com/ \
"
processes="0"
pids=""
for test_url in $test_urls; do
curl --silent --head "$test_url" > /dev/null &
pids="$pids $!"
processes=$(($processes + 1))
done
while [ ... | patrikkernke/dotfiles | scripts/helpers/connected_to_internet.sh | Shell | mit | 981 |
#!/bin/ksh
Number=${1:-23}
print "Psalm $Number:"
curl -s http://www.usccb.org/bible/psalms/$Number | grep 'class=.po' | sed -e "s/<span.*span>//" -e "s/<sup.*sup>//" -e "s/<[^>]*>//g" | recode -f html..ascii
| glmck13/Askpi | psalm.sh | Shell | mit | 212 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3107-1
#
# Security announcement date: 2014-12-20 00:00:00 UTC
# Script generation date: 2017-01-01 21:07:09 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - subversion:1.6.17dfsg-4+deb7u7
#
# ... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/x86_64/2014/DSA-3107-1.sh | Shell | mit | 640 |
#!/bin/bash
pushd $(dirname $0) > /dev/null
BASEDIR=$(dirname $(pwd))
popd > /dev/null
# Info
VERSION='0.1'
# Formatting
T_BOLD=$(tput bold)
T_NORMAL=$(tput sgr0)
T_UNDERSCORE=$(tput smul)
T_GREEN=$(tput setf 2)
# Check .env file
ENV_FILE="${BASEDIR}/.env"
if [ ! -f $ENV_FILE ]; then
echo "${T_UNDERSCORE}.env${T_N... | kucrut/wp-stack | bin/setup-multisite.sh | Shell | mit | 1,839 |
#!/bin/bash
echo "*******************************************"
echo "AddressBase Basic"
BATCH_IMPORT_NUM_ROWS=100000 ./manage.py download_and_import_addressbase_basic
echo "*******************************************"
echo "Local Authorities"
./manage.py download_and_import_local_authorities
echo "******************... | ministryofjustice/postcodeinfo | scripts/download_and_import_all.sh | Shell | mit | 663 |
#!/bin/bash
# Create and use temp directory
rm -rf /tmp/ceph-osd
mkdir -p /tmp/ceph-osd
cd /tmp/ceph-osd
# Create "run" dir for services
mkdir -p /var/run/ceph
# Create and register OSD
mkdir -p /var/lib/ceph/osd/ceph-${osd_id}
ceph-osd -i ${osd_id} --mkfs --mkkey
# Setup service
chkconfig ceph on | comodit/demos | ceph-cluster/osd/files/install.sh | Shell | mit | 302 |
pod repo push egg Door.podspec --verbose --allow-warnings
| Limon-O-O/Lego | Modules/Door/upload.sh | Shell | mit | 58 |
#!/bin/bash
source `dirname $0`/globals.sh
starcluster sshmaster $CLUSTER -u $CLUSTER_USER "cd $PYVOTUNE_DIR && git pull"
echo "Killing master"
starcluster sshmaster $CLUSTER "tmux kill-session -t master"
echo "Flushing master redis"
starcluster sshmaster $CLUSTER "redis-cli flushall"
echo "Starting master..."
sta... | aelaguiz/pyvotune | samples/mnist/start_cluster.sh | Shell | mit | 473 |
#!/bin/sh
#ACTION=$1
ACTION="start_nat"
echo start `date` > /tmp/ks_nat_log.txt
ks_nat=`nvram get ks_nat`
[ "$ks_nat" == "1" ] && echo exit `date` >> /tmp/ks_nat_log.txt && exit
for i in $(find /jffs/koolshare/init.d/ -name 'N*' | sort) ;
do
case "$i" in
*.sh )
# Source shell script for spee... | koolshare/ttsoft | softcenter/softcenter/bin/ks-nat-start.sh | Shell | mit | 695 |
#!/bin/sh
# Simple script to manager mongo replica sets
# Environment variables
SERVICE_NAME=${SERVICE_NAME:-mongo}
NETWORK_NAME=${NETWORK_NAME:-mongo}
REPLICA_SETS=${REPLICA_SETS:-rs}
MONGODB_PORT=${MONGODB_PORT:-27017}
set services= master= i=
#docker_api() { curl -sN --unix-socket /run/docker.sock http:/v1.26/$*; ... | vasetech/mongo-rs-ctrl | ctrl.sh | Shell | mit | 1,779 |
#!/usr/bin/env bats
# tests against get.sh
BASHRC_TMP=~/.bashrc.msu
cp ~/.bashrc ~/.bashrc~ # backup
function setup() {
mv ~/.bashrc "${BASHRC_TMP}"
touch ~/.bashrc
}
function teardown() {
mv "${BASHRC_TMP}" ~/.bashrc
rm -rf /tmp/msu
}
@test "test-run get.sh" {
cat get.sh | bash
}
@test "clones to ... | GochoMugo/msu | test/test.get.sh | Shell | mit | 1,015 |
#!/usr/bin/env bash
# This is a small script to stitch panorama images produced by Samsung Gear360
# Could be adopted to use with other cameras after creating pto file
# (Hugin template)
#
# https://github.com/ultramango/gear360pano
# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-which-directory-i... | ultramango/gear360pano | gear360pano.sh | Shell | mit | 9,709 |
#!/usr/bin/env bash
export PYTHONPATH=`pwd`
export PYTHONIOENCODING=UTF-8
virtualenv -p ${1} poline_venv
source poline_venv/bin/activate
${1} setup.py install
#Run smoke tests
echo 'Test: repr(x) for x in _'
ls -lah | pol -s 'repr(x) for x in _'
echo "Test: '{}\t{}'.format(x,c) for x, c in counter(l[1] for l in _ i... | riolet/poline | tests/common_tests.sh | Shell | mit | 1,610 |
#!/bin/bash
/usr/local/bin/puppet module install zack-r10k
/usr/local/bin/puppet module install abrader-gms
/usr/local/bin/puppet apply /vagrant/r10k-installation.pp
/usr/local/bin/r10k deploy environment -pv
/bin/echo '==> puppet config set hiera_config /etc/puppetlabs/code/environments/production/hiera.yaml'
/usr/lo... | goutham27/puppet-control | config/setup.sh | Shell | mit | 620 |
#!/bin/sh
#
# Alternatively you can do something like this in the project root dir:
# >mkdir build/make_debug
# >cd build/make_debug
# >cmake -DCMAKE_BUILD_TYPE:STRING=Debug ../..
# >make
#
current_dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) || exit
source_dir="${current_dir}/.."
build_dir="${current_dir}/... | suikki/simpleSDL | platforms/build.sh | Shell | mit | 860 |
#!/bin/bash
wget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v1.1.0/tensorflow-1.1.0-cp34-cp34m-linux_armv7l.whl
sudo pip3 install tensorflow-1.1.0-cp34-cp34m-linux_armv7l.whl
| TUM-AERIUS/Aerius | Raspberry/install_tf.sh | Shell | mit | 210 |
sudo npm -g install babel-cli
sudo npm -g install babel-preset-env
| roseengineering/vitamin-d | install.sh | Shell | mit | 67 |
#!/bin/bash
sudo vlc-wrapper -I telnet &> /var/log/vlc/server.log &
| AVGP/vodca | vlc-runner.sh | Shell | mit | 68 |
#!/bin/bash
set -e
# Takes three args -
# -o the quoted nameof the organism
# -n the number of strains
# -f the path to an existing prokaryotes.txt file
PROKFILE=""
NSTRAINS=""
while getopts "o:n:f:" opt; do
case $opt in
o)
ORGNAME=$OPTARG
echo "Organism name: $OPTARG" >&2
;;
n)
NSTRAINS=$OPT... | nickp60/riboSeed | scripts/select_ref_by_ANI/get_n_random_complete_genomes.sh | Shell | mit | 2,591 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.