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 |
|---|---|---|---|---|---|
REGION_NAME="UTAustin"
OUTPUT_DIR=$HOME/tmp/cabby_run/$REGION_NAME
MAP_DIR=$OUTPUT_DIR/map
echo "****************************************"
echo "* Geo *"
echo "****************************************"
rm -rf $OUTPUT_DIR
mkdir -p $OUTPUT_DIR
mkdir -p $MAP_DIR
bazel-bin/cabby/geo/map_p... | googleinterns/cabby | run_all.sh | Shell | apache-2.0 | 1,678 |
#!/usr/bin/env bash
set -ex
# Skip if we are in the sqlite build
if [ $DB = sqlite ]; then
exit 0
fi
# these changes optimize postgres. They are fine for testing, but not suitable
# for production.
# See https://www.postgresql.org/docs/current/static/non-durability.html
echo "fsync = off
synchronous_commit = off
... | CCI-MOC/haas | ci/optimize_postgres.sh | Shell | apache-2.0 | 465 |
#!/bin/bash
#
# Name: DOMOL_criarEstrutura.sh
# Copyright: DOMOL MTulio ENG
# Author: Marco Tulio Rodrigues Braga
# E-mail: admin@mtulio.eti.br
# Date: 01/11/11 06:39
# Last Change: 29/11/2011
# Description: Este script foi desenvolvido para criacao
# da estrutura organizacional implementada no
# trabalho de Conclu... | mtulio/kb | Faculdade/2012-2_-_X/TCC/source_sh/domol_dev/DOMOL_criarEstrutura.sh | Shell | apache-2.0 | 7,983 |
#
# Provides for easier use of 256 colors and effects.
#
# Return if requirements are not found.
if [[ ${TERM} == 'dumb' ]]; then
return 1
elif
[[ -n ${FX} ]]; then
# FX is set or sourced by another module
return 1
fi
typeset -gA FX FG BG
FX=(
reset ... | hlidotbe/zim | modules/spectrum/init.zsh | Shell | mit | 1,223 |
#!/bin/sh
# Install libdb4.8 (Berkeley DB).
set -e
if [ -z "${1}" ]; then
echo "Usage: ./install_db4.sh <base-dir> [<extra-bdb-configure-flag> ...]"
echo
echo "Must specify a single argument: the directory in which db4 will be built."
echo "This is probably \`pwd\` if you're at the root of the bitcoin reposi... | laudaa/bitcoin | contrib/install_db4.sh | Shell | mit | 2,444 |
#! /usr/bin/env bash
#
# gen_data.sh
# Copyright (C) 2014 KuoE0 <kuoe0.tw@gmail.com>
#
# Distributed under terms of the MIT license.
#
num_case=$1
max_num_node=$2
for i in `seq 1 $num_case`; do
num_node=$(($RANDOM % $max_num_node + 1))
echo "$num_node"
for j in `seq 1 $num_node`; do
value=$(($RANDOM % ($num_n... | KuoE0/keLib | Tree/BinaryTree/Traversal/Pre-order/gen_data.sh | Shell | mit | 365 |
#!/bin/sh
#
# Called from udev
#
# Attempt to map any added block devices to corresponding containers.
. /etc/cube-device/cube-device-functions
lxc_block_device_mgmt() {
case "$DEVNAME" in
mmcblk*|nvme*|nbd*|loop*)
dev=`echo "$DEVNAME" |sed 's/[a-z][0-9]//2'`
;;
*)
dev=`echo "$DEVNAME"... | jwessel/meta-overc | meta-cube/recipes-support/overc-utils/source/cube-device.sh | Shell | mit | 945 |
#! /bin/bash
thistag=$(git describe --exact-match --tags HEAD 2>/dev/null || true)
if [ -z "${thistag}" ]; then
# taghash=$(git rev-list --tags --max-count=1)
# tag=$(git describe --tags "$taghash")
next_version=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cat NEXT_VERSION )
current=$(git rev-parse --s... | feeds/igraph | tools/getversion.sh | Shell | gpl-2.0 | 403 |
# Set the different path for this activity
# This is sourced by runit.sh
path=$1
activity=piano_composition
plugindir=$path/../boards/.libs
pythonplugindir=$path
resourcedir=$path/resources
section="/discovery/sound_group"
| keshashah/GCompris | src/piano_composition-activity/init_path.sh | Shell | gpl-2.0 | 224 |
#!/bin/bash
#/##############################################################################
#
# vmstat_tracker.sh - Get OS data from vmstat command and generate JSON output.
#
# Program: ctracker
# License: GPL
#
# First Written: 2012
# Copyright (C) 2012-2013 - Author: Matheus SantAna Lima <matheusslima@yah... | matheussantana/ctracker | binaries/deb/ctracker_0.0.1-1_amd64/usr/share/ctracker/vmstat_tracker.sh | Shell | gpl-3.0 | 2,917 |
#!/bin/sh
for f in `qstat | grep $USER | cut -d' ' -f1`; do
echo "Deleting $f"
qdel $f
done
| Juanlu001/CBC.Solve | sandbox/fsi/clean_jobs.sh | Shell | gpl-3.0 | 101 |
main() {
# Wait untill graphical enviroment is running
sleep 135
# Workaround for buggy graphics driver
for i in 1 2
do
echo "0,0" > /sys/class/graphics/fb0/pan
done
}
# tty1 autologin
if [ $(tty) = "/dev/tty1" ]; then
# Run in background, to make /etc/profile not wait for it to finish
main &
fi
| lawl/pmbootstrap | aports/device/device-sony-aries/fb-workaround.sh | Shell | gpl-3.0 | 308 |
#!/bin/sh
# /etc/init.d/subnodes_ap
# starts up ap0 interface and hostapd for broadcasting a wireless network
NAME=subnodes_ap
DESC="Brings up wireless access point for connecting to web server running on the device."
DAEMON_PATH="/home/pi/subnodes"
DAEMONOPTS="sudo NODE_ENV=production nodemon subnode.js"
PIDFILE=/var... | rbtkoz/subnodes | scripts/subnodes_ap.sh | Shell | agpl-3.0 | 2,339 |
#!/usr/bin/env sh
BIN=run
DESKTOP=Snap4Arduino.desktop
mv "$DESKTOP" "$DESKTOP".bck
sed -e "s,Icon=.*,Icon=$PWD/icons/128x128x32.png,g" "$DESKTOP".bck > "$DESKTOP"
rm "$DESKTOP".bck
chmod +x "$DESKTOP"
./"$BIN"
| edutec/Snap4Arduino | src/platforms/desktop/gnu/launcher.sh | Shell | agpl-3.0 | 212 |
#!/bin/bash
# Author: Fred Brooker <original@fredbrooker.cz>
# URL: http://fredbrooker.cz/
which pmi >/dev/null 2>&1
if [ $? -eq 1 ]
then
echo -e "Installing powermanagement-interface package...\n"
sudo apt-get install powermanagement-interface
fi
which powermanagement-interface >/dev/null 2>&1
if [ $? -eq 1 ]
the... | faspl/linux-bash-scripts | hibernate.sh | Shell | unlicense | 445 |
#!/bin/bash
#
# Utility functions for acceptance testing.
#
# Highlights are:
# - initializes test by:
# creating data directories
# - finalizes test by:
# printing a pretty formatted message
# cleaning up test data if the test passed or skipped
# - generates correct test data files
# - generates ... | eunsungc/gt6-RAMSES_8_5 | xdd-7.0.0.rc-ramses3/tests/acceptance/common.sh | Shell | apache-2.0 | 6,234 |
#!/bin/bash
set -euo
#
# Copyright 2018 Dan Field. 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 ... | google/flatbuffers | samples/dart_sample.sh | Shell | apache-2.0 | 1,640 |
#! /bin/bash
set -eu
DOCKER_IMAGE=$1
NETWORK_NAME=local_testnet
N=4
PROXY_APP=persistent_dummy
cd "$GOPATH/src/github.com/tendermint/tendermint"
# stop the existing testnet and remove local network
set +e
bash test/p2p/local_testnet_stop.sh "$NETWORK_NAME" "$N"
set -e
SEEDS=$(bash test/p2p/seeds.sh $N)
# start the... | x2cn/mintnet | vendor/github.com/tendermint/tendermint/test/p2p/test.sh | Shell | apache-2.0 | 1,255 |
#!/bin/sh
#
# %CopyrightBegin%
#
# Copyright Ericsson AB 1997-2019. 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... | uabboli/otp | make/test_target_script.sh | Shell | apache-2.0 | 7,244 |
#!/bin/bash
#
# Copyright 2008 The open-vcdiff 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 requ... | Teamxrtc/webrtc-streaming-node | third_party/webrtc/src/chromium/src/sdch/open-vcdiff/src/vcdiff_test.sh | Shell | mit | 18,052 |
#!/bin/bash
TREZOR_GIT_URL=git://github.com/trezor/python-trezor.git
KEEPKEY_GIT_URL=git://github.com/keepkey/python-keepkey.git
BTCHIP_GIT_URL=git://github.com/LedgerHQ/btchip-python.git
BRANCH=master
# These settings probably don't need any change
export WINEPREFIX=/opt/wine64
PYHOME=c:/python27
PYTHON="wine $PYH... | argentumproject/electrum-arg | contrib/build-wine/prepare-hw.sh | Shell | mit | 1,994 |
#!/bin/sh
# Copyright (C) 2008-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 i... | DDTChen/CookieVLC | vlc/extras/tools/automake/t/ltorder.sh | Shell | gpl-2.0 | 1,778 |
#!/bin/bash
#delete spam
find . -regextype posix-extended -regex '.*\.(aux|png|log|pyg|synctex.gz|lof|lot|toc|DS_Store|out|nls|ilg|nlo|bbl|pdf)$' -delete
| kennethdecker/MagnePlane | paper/clean.sh | Shell | apache-2.0 | 155 |
#! /bin/bash
docker logs duoke-doc-manager | noricohuas/docker | wine/x32/log.sh | Shell | apache-2.0 | 42 |
#!/bin/bash
system=`uname -s`
if [ "X$system" == "XDarwin" ]; then
# on Mac
free_mem=`top -l 1 | head -n 10 | grep PhysMem | cut -d',' -f 2 | cut -d' ' -f2 | cut -d'M' -f1`
elif [ "X$system" == "XLinux" ]; then
# on Linux
free_mem=`free -m | sed -n 2p | tr -s ' ' | cut -d' ' -f4`
else
echo "Only MacOS and Linux ... | ubolonton/DDF | examples/exe/mem-size-detection.sh | Shell | apache-2.0 | 606 |
scala SampleAI | AI-comp/JavaChallenge2014 | SampleAI/Scala/run.sh | Shell | apache-2.0 | 14 |
#!/bin/sh
. ../bin/env.sh
sed 's/password=""/password="'`$pwgen_cmd -s 32 1`'"/' tomcat-users.xml.template > tomcat-users.xml
$docker_cmd build -t acmeair/tomcat .
| wuhais/acmeair-netflixoss-weave | tomcat/buildtomcat.sh | Shell | apache-2.0 | 168 |
#!/bin/bash
# This script runs the networking e2e tests. See CONTRIBUTING.adoc for
# documentation.
source "$(dirname "${BASH_SOURCE}")/../../hack/lib/init.sh"
if [[ -n "${OPENSHIFT_VERBOSE_OUTPUT:-}" ]]; then
set -o xtrace
export PS4='+ \D{%b %d %H:%M:%S} $(basename ${BASH_SOURCE}):${LINENO} ${FUNCNAME[0]:+${FUN... | maleck13/origin | test/extended/networking.sh | Shell | apache-2.0 | 10,001 |
#!/bin/bash
FN="maizecdf_2.18.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.13/data/annotation/src/contrib/maizecdf_2.18.0.tar.gz"
"https://bioarchive.galaxyproject.org/maizecdf_2.18.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-maizecdf/bioconductor-maizecdf_2.18.0_src_all.tar.gz"
"h... | phac-nml/bioconda-recipes | recipes/bioconductor-maizecdf/post-link.sh | Shell | mit | 1,403 |
#!/bin/bash
set -e
set -o pipefail
name=$(basename $0 .sh)
stderr=$(mktemp -t ${name}.out.XXXXXX)
tmpdir=$(mktemp -d -t ${name}.out.XXXXXX)
result=$(mktemp -p $tmpdir ${name}.out.XXXXXX)
echo "Stderr file = $stderr"
echo "Result file = $stderr"
rm -f test_file test_file_cpe_na
rm -f wrong_test_file
#
# First, try wi... | isimluk/openscap | tests/API/XCCDF/applicability/test_remediate_fix_processing.sh | Shell | lgpl-2.1 | 6,197 |
#!/bin/bash
PROTOCOL_VERSION='3.0.0'
function process {
DST_FILE="/var/local/perun-pbs/pbs_pre"
### Status codes
I_CHANGED=(0 "${DST_FILE} updated")
I_NOT_CHANGED=(0 "${DST_FILE} has not changed")
OLD="${DST_FILE}.old.perun"
FROM_PERUN="${WORK_DIR}/pbs_pre"
create_lock
# Create diff between old.perun and... | Laliska/perun-services | slave/process-pbs_pre.sh | Shell | bsd-2-clause | 427 |
#
# Copyright (c) 2017, 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... | JetBrains/jdk8u_jdk | test/sun/security/tools/keytool/keyalg.sh | Shell | gpl-2.0 | 1,889 |
#!/bin/bash
set -ex
docker pull asteris/nginx-consul:latest
# EOF
| revpoint/microservices-infrastructure | img-build/packer/scripts/nginx.sh | Shell | apache-2.0 | 68 |
qemu-system-riscv64 -s -S -nographic -machine virt -m 256M -kernel rtthread.bin
| geniusgogo/rt-thread | bsp/qemu-riscv-virt64/qemu-dbg.sh | Shell | apache-2.0 | 80 |
#!/bin/bash
# Copyright 2019 The TensorFlow 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... | davidzchen/tensorflow | tensorflow/tools/ci_build/release/ubuntu_16/cpu_py38_full/nonpip.sh | Shell | apache-2.0 | 1,688 |
#!/bin/bash
cd ..
echo 'Testing test/fixtures/xml/ipg120327.one.xml'
make spotless > /dev/null
mkdir -p tmp/integration/ipg120327.one
./parse.py -p test/fixtures/xml/ -x ipg120327.one.xml -o .
for table in application uspatentcitation usapplicationcitation foreigncitation ipcr mainclass otherreference patent rawassi... | nikken1/patentprocessor | integration/parse_integration.sh | Shell | bsd-2-clause | 4,322 |
make clean;make
sleep 3
./spmv ../input/FullChip/FullChip.mtx
| zhangfengthu/FinePar | zfcsr_dynamic/run_fullchip.sh | Shell | mit | 66 |
#! /usr/bin/env bash
$EXTRACTRC `find -name \*.ui` >> rc.cpp || exit 11
$XGETTEXT *.cpp */*.cpp -o $podir/kcminput.pot
rm -f rc.cpp
| falbrechtskirchinger/kde-workspace | kcontrol/input/Messages.sh | Shell | gpl-2.0 | 132 |
/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/javadoc @options @packages | mhus/mhus-inka | de.mhus.osgi.micro/micro-core/target/apidocs/javadoc.sh | Shell | apache-2.0 | 98 |
_dt_get_config_dir()
{
local cur prev words
_get_comp_words_by_ref -n ":" cur prev words
local configdir="${HOME}/.config/darktable"
for (( i=1; i < ${#words[@]}; i=$(( ++i )) )); do
local candidate="${words[i+1]}"
__expand_tilde_by_ref candidate
if [[ "${words[i]}" == "--configdir" && -n "${words[... | mazhe/darktable | data/darktable.bash | Shell | gpl-3.0 | 5,979 |
#!/bin/bash
export RAILS_ENV=test
. script/ci/setup.sh
bundle exec rake api_docs 2>&1
| prakash-alpine/chorus | script/ci/acceptance.sh | Shell | apache-2.0 | 89 |
#!/bin/bash
#
# This script is intended to be used after tagging the repository and updating
# the version files for a release. It will create a CPAN archive. Run this
# from inside a docker image like ubuntu-xenial.
#
set -e
rm -f MANIFEST
rm -rf Thrift-*
# setup cpan without a prompt
echo | cpan
cpan install HTT... | strava/thrift | lib/perl/build-cpan-dist.sh | Shell | apache-2.0 | 1,268 |
#!/bin/sh
# Copyright (c) 2011, Google Inc.
test_description='adding and checking out large blobs'
. ./test-lib.sh
test_expect_success setup '
# clone does not allow us to pass core.bigfilethreshold to
# new repos, so set core.bigfilethreshold globally
git config --global core.bigfilethreshold 200k &&
perl -e "p... | github/git-msysgit | t/t1050-large.sh | Shell | gpl-2.0 | 4,040 |
#!/bin/sh
DIR=${DEPLOY_DIR:-/maven}
echo "Checking *.war in $DIR"
if [ -d $DIR ]; then
for i in $DIR/*.war; do
file=$(basename $i)
echo "Linking $i --> /opt/jetty/webapps/$file"
ln -s $i /opt/jetty/webapps/$file
done
fi
cd /opt/jetty
java $(agent-bond-opts) -Djava.security.egd=file:/dev/./urandom -ja... | christian-posta/base-images | jetty/templates/__deploy-and-run-45.sh | Shell | apache-2.0 | 334 |
#!/bin/sh
# ==============================================================
# File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
# Version: 2017.2
# Copyright (C) 1986-2017 Xilinx, Inc. All Rights Reserved.
#
# ==============================================================
vivado -notrace... | MarkBlanco/FPGA_Sandbox | RecComp/Lab2/ug871-design-files/Introduction/lab3/fir_prj/solution1/impl/vhdl/impl.sh | Shell | mit | 369 |
#!/bin/bash
FN="stemHypoxia_1.14.0.tar.gz"
URLS=(
"http://bioconductor.org/packages/3.6/data/experiment/src/contrib/stemHypoxia_1.14.0.tar.gz"
"https://bioarchive.galaxyproject.org/stemHypoxia_1.14.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-stemhypoxia/bioconductor-stemhypoxia_1.14.0_src_all... | dmaticzka/bioconda-recipes | recipes/bioconductor-stemhypoxia/post-link.sh | Shell | mit | 1,311 |
XBPS_TARGET_CFLAGS="-mtune=generic"
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
XBPS_TRIPLET="x86_64-unknown-linux-gnu"
XBPS_RUST_TARGET="${XBPS_TRIPLET}"
XBPS_ZIG_TARGET="x86_64-linux-gnu"
XBPS_ZIG_CPU="baseline"
| oliver-cfc/void-packages | common/build-profiles/x86_64.sh | Shell | bsd-2-clause | 254 |
#!/bin/sh
#
# Copyright 2007 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... | suzhe/google-gadgets-for-linux | cmake/zip.sh | Shell | apache-2.0 | 748 |
#!/bin/bash
aclocal
autoconf
autoheader
automake --add-missing
| amhoe/iphone-elite | iphuc-readline/iphuc/autogen.sh | Shell | gpl-2.0 | 64 |
#!/bin/sh
# Ensure that mknod, mkfifo, mkdir -m MODE work with a restrictive umask
# Copyright (C) 2004-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, eith... | projectgnu/coreutils | tests/misc/mknod.sh | Shell | gpl-3.0 | 1,222 |
ACTION=$1
if [ "$ACTION" == "" ] ; then
echo "usage: rest.sh [import|export]"
exit;
fi
PLUGIN="org.jbehave:jbehave-rest:3.10-SNAPSHOT"
PARAMS="-Djbehave.rest.rootURI=http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages -Djbehave.rest.username=jbehave -Djbehave.rest.password=jbehave"
if [ "$ACTION" ==... | skundrik/jbehave-core | examples/rest/rest.sh | Shell | bsd-3-clause | 476 |
#!/bin/bash
# difficulty: simplest
# This test tries to execute "missing_command", which shouldn't be installed
# thus this test should FAIL.
# Put this file into $virttest/dropin directory, allow execution rights and
# execute runner with -run-dropin
# Please note that all dropin tests are executed.
missing_command
| autotest/virt-test | samples/dropin_bad.sh | Shell | gpl-2.0 | 320 |
calculate_concurrency() {
MEMORY_AVAILABLE=${MEMORY_AVAILABLE-$(detect_memory 512)}
WEB_MEMORY=${WEB_MEMORY-512}
WEB_CONCURRENCY=${WEB_CONCURRENCY-$((MEMORY_AVAILABLE/WEB_MEMORY))}
if (( WEB_CONCURRENCY < 1 )); then
WEB_CONCURRENCY=1
elif (( WEB_CONCURRENCY > 32 )); then
WEB_CONCURRENCY=32
fi
WEB_... | Ferrari/heroku-buildpack-nodejs | profile/nodejs.sh | Shell | mit | 1,168 |
#!/bin/sh
test_description='read-tree -u --reset'
. ./test-lib.sh
# two-tree test
test_expect_success 'setup' '
git init &&
mkdir df &&
echo content >df/file &&
git add df/file &&
git commit -m one &&
git ls-files >expect &&
rm -rf df &&
echo content >df &&
git add df &&
echo content >new &&
g... | certik/git | t/t1005-read-tree-reset.sh | Shell | gpl-2.0 | 1,982 |
#
# Copyright (c) 2004, 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... | vicmarcal/JAVA_UNIT | test/sun/tools/jps/jps-Vm_2.sh | Shell | gpl-3.0 | 1,325 |
#!/bin/sh
##################################################################################
# Custom build tool for Realm Objective-C binding.
#
# (C) Copyright 2011-2015 by realm.io.
##################################################################################
# Warning: pipefail is not a POSIX compatible opti... | lizhaojie001/TestCode | 项目主体---农事无忧/RealmDemo/Pods/Realm/build.sh | Shell | apache-2.0 | 48,164 |
# This is deploy script we use to update staging server
# You can always modify it for your needs :)
# If any command return non-zero status - stop deploy
set -e
echo 'Deploy: Stoping sidekiq..'
cd /home/git/gitlab/ && sudo -u git -H bundle exec rake sidekiq:stop RAILS_ENV=production
echo 'Deploy: Show deploy index ... | 8thcolor/rubyconfau2015-sadr | lib/support/deploy/deploy.sh | Shell | mit | 1,388 |
#!/bin/bash
mkdir -p $PREFIX/bin
mkdir -p $PREFIX/lib
make all_test
sed -i "s|#! /bin/sh|#!/bin/bash|" install.sh
sed -i "s|DEST_HOME=.*|DEST_HOME=$PREFIX|" install.sh
./install.sh
rm -r $PREFIX/man
rm -r $PREFIX/share
| guowei-he/bioconda-recipes | recipes/p7zip/build.sh | Shell | mit | 224 |
#!/bin/sh
# exclude_libs_test.sh -- test that library symbols are not exported.
# Copyright (C) 2009-2015 Free Software Foundation, Inc.
# Written by Doug Kwan <dougkwan@google.com>
# This file is part of gold.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | selmentdev/selment-toolchain | source/binutils-latest/gold/testsuite/exclude_libs_test.sh | Shell | gpl-3.0 | 2,187 |
#!/bin/sh
#
# This script generates statistics (build size, speed) for successive
# revisions of the code. It checks out git commits one an a time, compiles
# various ports to determine their size, and runs pystone on the unix port.
# Results are collected in the output file.
#
# Note: you will need to copy this file ... | feilongfl/micropython | tools/codestats.sh | Shell | mit | 5,217 |
#!/bin/sh
# Deletes trailing whitespace in-place in the passed-in files.
# Sample syntax:
# $0 *.cpp
perl -pi -e 's/\s+$/\n/' $*
| cd80/UtilizedLLVM | utils/lint/remove_trailing_whitespace.sh | Shell | unlicense | 132 |
#!/bin/bash
cd /opt/gtkmon && exec python ./gtkmon.py
#reemplazar /opt/gtkmon por la ruta completa en la que está alojado el programa
| asp95/gtkmon | gtkmon/gtkmon_ln.sh | Shell | mit | 136 |
#!/bin/bash
# set -xe
BASEDIR=$(dirname $0)
if [[ -z "${DOCKER_USERNAME}" ]]; then
DOCKER_USERNAME=twang2218
fi
# Version related functions, such as 'generate()' are put in separate file.
# shellcheck source=./versions.sh
source $BASEDIR/versions.sh
function generate_dockerfile() {
cat ./template/$1 | sed ... | twang2218/gitlab-ce-zh | build.sh | Shell | mit | 8,236 |
#!/bin/bash
cat "${1:-/dev/stdin}" > /tmp/.mutt-calendar.msg
| ajgon/dotfiles | scripts.symlink/mutt-calendar-extract-message.sh | Shell | mit | 61 |
#!/usr/bin/env bash
/usr/local/bin/parse-examl -s $1.phy -m DNA -q $2 -n $1
/usr/local/bin/raxmlHPC-PTHREADS-SSE3 -y -m GTRCAT -p 12345 -s $1.phy -n $1_startingtree
mpirun -np 2 /usr/local/bin/examl -D -t RAxML_parsimonyTree.$1_startingtree -m PSR -s $1.binary -n $1
| sdwfrost/pangea-round2 | mrbayes/run_examl.sh | Shell | mit | 267 |
#!/bin/sh
cd server
python2 setup.py
| Takmo/lapis | setup.sh | Shell | mit | 37 |
#!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
# This protects against multiple targets copying the same framework dependency at the same time.... | ClintJang/JWSSDK | Example/Pods/Target Support Files/Pods-JWSSDK_Example/Pods-JWSSDK_Example-frameworks.sh | Shell | mit | 4,654 |
#!/bin/bash
export PYTHONPATH=/usr/local/lib/python3/dist-packages:$PYTHONPATH
python3 /home/pi/Pi_Weather_Station/src/weather_alerts.py
| llamafarmer/Pi_Weather_Station | utils/launch_alerts.sh | Shell | mit | 139 |
#!/bin/bash
if [[ "${BASH_SOURCE[0]}" != "${0}" ]] ; then
path=~/.virtualenv/dbdiff/bin/activate
echo "sourcing virtualenv at $path"
source $path
else
echo "Must source this script!"
exit 255
fi
| beeryardtech/dbdiff.py | virt.sh | Shell | mit | 215 |
#!/bin/bash
ABBREV='rbenv-rubymn2'
OWNER='jhsu802701'
DISTRO='debian'
SUITE='stretch'
DOCKER_IMAGE="$OWNER/32bit-$DISTRO-$SUITE-$ABBREV"
CONTAINER="container-32bit-$DISTRO-$SUITE-$ABBREV"
TGZ_FILE="32bit-$DISTRO-$SUITE-$ABBREV.tgz"
echo 'By default, your host port numbers are:'
echo ' MailCatcher: 1080'
echo ' Rail... | jhsu802701/docker-debian-jessie | 32rbenv-rubymn2.sh | Shell | mit | 761 |
_php5_mysql_up() {
sudo apt-get -qq install php5-mysql > /dev/null
}
| andrewhood125/establish | debian/php5_mysql.sh | Shell | mit | 73 |
#!/bin/bash
go get github.com/gonum/matrix
go get github.com/gonum/floats
go get github.com/gonum/internal/asm/c64
go get github.com/gonum/internal/asm/c128
go get github.com/gonum/internal/asm/f32
go get github.com/gonum/internal/asm/f64
go get github.com/phil-mansfield/consistent_trees
go get github.com/phil-mansfie... | phil-mansfield/shellfish | download.sh | Shell | mit | 422 |
#!/usr/bin/env bash
set -e
apt-get update
### Set up Ruby M2X example
echo "Setting up Ruby demo..."
# Set up Ruby environment for M2X
# NOTE: In a production environment, you should install a more up-to-date Ruby.
# We don't here for the sake of a quick first-start time for this VM.
apt-get -y install ruby1.9.3
if ... | attm2x/m2x-demo-vagrant | bootstrap.bash | Shell | mit | 1,199 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DLA-698-1
#
# Security announcement date: 2016-11-03 00:00:00 UTC
# Script generation date: 2017-01-01 21:09:25 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - qemu:1.1.2+dfsg-6+deb7u18
#
# Last v... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/x86_64/2016/DLA-698-1.sh | Shell | mit | 782 |
watchify app/client.js -o app/static/bundle.js -v & | Vrixyz/MyDreamGame | ServerGame/Server/watchify_script.sh | Shell | mit | 51 |
#!/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... | markjeschke/TweetSearch | Pods/Target Support Files/Pods/Pods-frameworks.sh | Shell | mit | 3,842 |
javac -classpath ~/robocode/libs/robocode.jar -d bin/ src/id/ac/its/SimpleGARobocode/*.java
| initrunlevel0/SimpleGARobocode | build-robot.sh | Shell | mit | 92 |
#!/usr/bin/env bash
go run cwai.go https://yahoo.co.jp | tomatomaster/Gotrial | ch05/ex05/runall.bash | Shell | mit | 54 |
##############################################################################
# @file setopt.bash
# @date January, 2016
# @author G. Roggemans <g.roggemans@grog.be>
# @copyright Copyright (c) GROG [https://grog.be] 2016, All Rights Reserved
# @license MIT
###############################################################... | groggemans/dot-bash | setopt.bash | Shell | mit | 764 |
#!/usr/bin/env bash
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
goto() {
local -r PROJECT_DIR="${1}"
ensure_directory "${PROJECT_DIR}"
cd "${PROJECT_DIR}"
show "${2:-INTEGRATION TEST}: ${PROJECT_DIR}"
}
goto "${ROOT}/py/ops"
scripts/run-itests.sh ops-tester
| clchiou/garage | scripts/run-integration-tests.sh | Shell | mit | 275 |
#!/bin/bash
# Make DTLI Pair Vectors
echo "############### Make DTLI Pair Vectors ###############"
# Remove first line : http://stackoverflow.com/questions/10460919/how-to-delete-first-two-lines-and-last-four-lines-from-a-text-file-with-bash
# Concat lines of file by separator : http://stackoverflow.com/questions/15758... | maxdy/BioTools | TrEEProfiler/mdtlipv.sh | Shell | mit | 951 |
wget --no-parent http://data.sdss3.org/sas/dr10/apogee/spectro/redux/r3/s3/4259/apStar-s3-2M03403073+2429143.fits
wget --no-parent http://data.sdss3.org/sas/dr10/apogee/spectro/redux/r3/s3/4259/apStar-s3-2M03405126+2335544.fits
wget --no-parent http://data.sdss3.org/sas/dr10/apogee/spectro/redux/r3/s3/4259/apStar-s3-... | mkness/TheCannon | code/deprecated/cal_wget_Pleiades.sh | Shell | mit | 8,625 |
#!/bin/bash
LAUNCH_DIR=`pwd`
COVERAGE_DIR=coverage
# If you need to add a header to the code coverage please put it here
# example "myfile.h myotherfile.h"
HEADER_WHITELIST=
# black listing of files can also be done
# please see commented out execution of gcovr at the bottom
# example:
# SOURCE_BLACKLIST=".*ProbeTr... | craig-cogdill/QueueNado | scripts/codeCoverage.sh | Shell | mit | 2,062 |
#!/usr/bin/env bash
# Compiling with ghcjs
stack build --stack-yaml=stack-ghcjs.yaml
# Moving the generated files to the js folder
mkdir -p js
cp -r $(stack path --local-install-root --stack-yaml=stack-ghcjs.yaml)/bin/mockClient.jsexe/{all.js,all.js.externs} js/
# Swapping the default html with the one serving a min... | meditans/haskell-webapps | UI/ReflexFRP/mockLoginPage/mockClient/deploy.sh | Shell | mit | 671 |
#!/usr/bin/env bash
export app_name=yeerchesswebserver
sudo docker run -d --name $app_name -p 3000:3000 athom/chess /bin/bash -c "/go/bin/$app_name"
| athom/chess | cmd/yeerchesswebserver/docker_product.sh | Shell | mit | 149 |
#!/bin/bash
PACKAGE_VERSION=v$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' packages/components/package.json)
bin/website.sh $PACKAGE_VERSION
bin/website.sh latest
| looker-open-source/components | bin/website-latest.sh | Shell | mit | 161 |
#!/bin/bash -f
# Vivado (TM) v2016.3 (64-bit)
#
# Filename : ila_0.sh
# Simulator : Xilinx Vivado Simulator
# Description : Simulation script for compiling, elaborating and verifying the project source files.
# The script will automatically create the design libraries sub-directories in the run... | GOOD-Stuff/srio_test | srio_test.ip_user_files/sim_scripts/ila_0/xsim/ila_0.sh | Shell | mit | 6,185 |
#!/usr/bin/env bash
# because YAML sux with bash syntax
if [[ $TRAVIS_PULL_REQUEST == true ]]; then
echo 'Aborting due to PR status.'
exit 0
fi
if [[ $TRAVIS_BRANCH != 'master' ]] ; then
echo 'Aborting due to branch being '"$TRAVIS_BRANCH"'.'
exit 0
fi
echo 'Running upload...'
./gradlew publish
| TechShroom/UnplannedDescent | upload-archives-travis.sh | Shell | mit | 313 |
#! /bin/sh
source $(dirname $0)/config
monitor=${1:-0}
set -f
music() {
local icon=$(pIcon ${BLACK2} ${CSOUND})
local stat="$(mpc status | grep \# | awk '{print $1}')"
local artist=$(mpc -f %artist% current)
local musicname=$(mpc -f %title% current)
local cmd=""
if [ "${stat}" ] && [ "${stat}... | szorfein/dotfiles | hidden-stuff/herbstluftwm/.config/herbstluftwm/panel-bottom.sh | Shell | mit | 2,606 |
curl -H \
'content-type:application/json' \
-d '{"message": "http://www.insanedata.com,http://www.jenaiz.com"}'\
http://localhost:8083/worker.job
| jenaiz/Crawly | scripts/job.sh | Shell | mit | 155 |
#!/bin/bash
read -p "Github Enterprise URL: " enterprise_url
echo "let g:github_enterprise_urls = ['$enterprise_url']" >> ~/.vimrc.local
| chris-fa/dev-machine | scripts/setup_rhubarb.sh | Shell | mit | 138 |
#! /bin/bash
# create the binary for arachne server at $GOPATH/bin/arachneserv
set -euxo pipefail
pushd $GOPATH/src/github.com/dougfort/arachne/cmd/arachneserv
go install -race
popd
| dougfort/arachne | install_arachneserv.sh | Shell | mit | 184 |
#!/bin/sh
#sudo apt-get install libgoogle-perftools-de
OUTPUTFILE=cpu_profile
EXEFILE="$1"
export LD_PRELOAD=/usr/lib/libprofiler.so
export CPUPROFILE=$OUTPUTFILE
export CPUPROFILE_FREQUENCY=250
$EXEFILE
export LD_PRELOAD=""
google-pprof --gv $EXEFILE $OUTPUTFILE
| darglein/saiga | data/google-profiler.sh | Shell | mit | 269 |
#!/bin/sh
set -e
branch=$(git rev-parse --abbrev-ref HEAD)
if [ "gh-pages" == "$branch" ]; then
exit
fi
echo Updating gh-pages for branch $branch
git checkout gh-pages
# git checkout $branch -- dist
mkdir -p $branch
git rm --ignore-unmatch -rf $branch
mv -f dist $branch
git rm -rf --ignore-unmatch dist
git add $... | leanix/leanix-app-launchpad | publish.sh | Shell | mit | 405 |
#network interface on which to limit traffic
IF="eth0"
#limit of the network interface in question
LINKCEIL="1gbit"
#limit outbound Voyacoin protocol traffic to this rate
LIMIT="160kbit"
#defines the address space for which you wish to disable rate limiting
LOCALNET="192.168.0.0/16"
#delete existing rules
tc qdisc del... | Voyacoin/Voyacoin | contrib/qos/tc.sh | Shell | mit | 1,674 |
#!/usr/bin/env bash
##
# Implements hook -a 'fs_ownership_set' -s 'app instance' -v 'PROVISION_USING HOST_TYPE INSTANCE_TYPE'.
#
# (Re)sets the corresponding ownership to any list of paths optionally
# defined in the following globals (env vars) :
# - PROTECTED_FILES : e.g. path to sensitive settings file(s).
# - EXEC... | Paulmicha/common-web-tools | cwt/app/fs_ownership_set.hook.sh | Shell | mit | 2,001 |
#!/bin/bash
#
# This is my best attempt at uninstalling everything that the webserver sets
# up. It's a big system, so it's likely that I forgot something.
#
DIR="$( builtin cd "$( dirname "$( readlink -f "${BASH_SOURCE[0]}" )" )" && pwd )"
source $DIR/load_config.sh
cd $REPO_DIR
echo ""
echo "This optionally backs ... | seanbell/django-scripts | uninstall.sh | Shell | mit | 1,931 |
# xcode-build-bump.sh
# https://gist.github.com/sekati/3172554
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the... | Adorkable/seguecode | Tools/xcode-build-bump.sh | Shell | mit | 709 |
#!/bin/bash
SDATA=''; SCOMMON='';
if env | grep -q root; then
export SDATA=$(echo $SNAP_DATA | sed s!$SNAP_REVISION!current!)
export SCOMMON="$SNAP_COMMON"
export isRoot=`true`
else
echo "You are not running gogs as root. This is required for the snap package."
echo "Please re-run as root."
exit 1
fi
expo... | tbraeutigam/gogs-snap | snap/helpers/directorySetup.sh | Shell | mit | 1,500 |
#!/usr/bin/env sh
ndk-build NDK_MODULE_PATH="../../../../../"
gradlew assembleDebug
adb install -r build/outputs/apk/proj.android-debug.apk
adb shell am start -n org.oxygine.GamePart3/org.oxygine.GamePart3.MainActivity | daltomi/oxygine-framework | examples/Game/part3/proj.android/build-run.sh | Shell | mit | 219 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.