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 -e
source tests/libtest.sh
# Create two namespaces, a veth pair, and assign each end of the pair
# to a different namespace.
create_veth_pair veth green red
create_namespace green
create_namespace red
add_veth_to_namespace green veth.green
add_veth_to_namespace red veth.red
# Normal over shim eth setup i... | autrimpo/rlite | tests/integration/0025-broadcast-enrollment.sh | Shell | lgpl-2.1 | 1,650 |
#!/bin/bash
set -e
# Check for flags.
if [ "${1#-}" != "$1" ]; then
exec infinit "$@"
fi
# Check for known modes.
modes=("acl" "block" "credentials" "daemon" "device" "doctor" "drive" \
"journal" "ldap" "network" "passport" "silo" "user" "volume")
if [[ " ${modes[@]} " =~ " ${1} " ]]; then
exec infinit "... | Dimrok/id | 0.8.0/debian/entrypoint.sh | Shell | apache-2.0 | 486 |
#! /bin/bash
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
brew update
brew install openssl
brew install pyenv
pyenv install $TRAVIS_PYTHON_VERSION
pyenv shell $TRAVIS_PYTHON_VERSION
pyenv local $TRAVIS_PYTHON_VERSION
pyenv global $TRAVIS_PYTHON_VERSION
pyenv rehash
fi
| arthurprs/aerospike-client-python | scripts/travis-prep.sh | Shell | apache-2.0 | 297 |
#!/bin/sh
# Add "freifunk" firewall zone
# If wan/lan is used for olsr then remove these networks from wan/lan zones
# Also setup rules defined in $meshr/etc/config/freifunk and $meshr/etc/config/profile_<community>
. $meshr/lib/functions.sh
. $dir/functions.sh
wan_is_olsr=$(uci -q get meshwizard.netconfig.wan_config... | meshr-net/meshr_win32 | usr/bin/meshwizard/helpers/setup_firewall.sh | Shell | apache-2.0 | 4,166 |
#!/bin/bash
# display usage
if [ $# -ne 1 ]
then
echo "usage: $0 username"
exit 1
fi
username=$1
#here you can use password generator, send password via email, etc.
password="password"
#echo $password
echo $password | passwd --stdin $username
| wilas/vagrant-puppet-modules | tools/setpassword.sh | Shell | apache-2.0 | 253 |
#!/bin/bash
test_standard_ops() {
# Padded for pretty output
suite_name="STANDARD "
pushd ${home}/manifests > /dev/null
pushd ops-files > /dev/null
if interpolate ""; then
pass "cfcr.yml"
else
fail "cfcr.yml"
fi
# CI & wrapper scripts
check_interpolation "mi... | pivotal-cf-experimental/kubo-deployment | bin/test-standard-ops.sh | Shell | apache-2.0 | 5,598 |
# check dependencies
(
type docker &>/dev/null || ( echo "docker is not available"; exit 1 )
type curl &>/dev/null || ( echo "curl is not available"; exit 1 )
)>&2
# Assert that $1 is the outputof a command $2
function assert {
local expected_output=$1
shift
actual_output=$("$@")
if ! [ "$actu... | defn/docker | tests/test_helpers.bash | Shell | apache-2.0 | 1,439 |
#!/bin/bash
# Copyright 2018 Frank Breedijk
#
# 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 i... | schubergphilis/Seccubus | rpm/test-locally.sh | Shell | apache-2.0 | 1,977 |
#!/bin/bash
#
# Copyright 2005-2014 Red Hat, Inc.
#
# Red Hat licenses this file to you 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 ... | jstrachan/jube | images/fabric8/java/src/main/distro/env.sh | Shell | apache-2.0 | 738 |
#!/bin/sh
rm -f /sbin/fsck.minix
rm -f /sbin/fstrim
rm -f /sbin/installkernel
rm -f /sbin/losetup
rm -rf /bin/arping
rm -rf /bin/attr
rm -rf /bin/chown
rm -rf /bin/chroot
rm -rf /bin/dmesg
rm -rf /bin/egrep
rm -rf /bin/login
rm -rf /bin/mount
rm -rf /bin/nano
rm -rf /bin/ping4
rm -rf /bin/run-parts
rm -rf /bin/su
rm -... | vrusinov/copr-sundry | docker/python2/clean.sh | Shell | apache-2.0 | 2,447 |
if false; then {
git clone https://github.com/torch/distro.git ~/torch
cd ~/torch
'for pkg in cudnn cunn cunnx cutorch qttorch trepl graph optim sdl2 threads submodule graphicsmagick audio fftw3 signal nnx qtlua gnuplot dok iTorch argcheck image xlua; do { sed -i -e "s/\(.*$pkg.*\)/echo skipping $pkg # \1/" insta... | hughperkins/clnn | travis/install-torch.sh | Shell | bsd-2-clause | 1,261 |
#!/usr/bin/env bash
# This script builds the siapool inside a docker,
# it then creates a docker from scratch containing just the built binary from the previous step
# and then pushes the resulting image to hub.docker.com
set -e
docker build -t siapoolbuilder .
docker run --rm -v "$PWD":/go/src/github.com/robvanmie... | siapool/p2pool | publishdocker.sh | Shell | bsd-2-clause | 512 |
#!/bin/bash
set -e
PG_LOG=/var/log/postgresql/
PG_CONFIG=/etc/pgbouncer/pgbouncer.ini
PG_USER=postgres
mkdir -p ${PG_LOG}
chmod -R 755 ${PG_LOG}
chown -R ${PG_USER}:${PG_USER} ${PG_LOG}
echo "Starting pgbouncer as deamon..."
cd /root
nohup pgbouncer -q -u ${PG_USER} $PG_CONFIG -d
cd /var/www/html
echo "Starting apa... | bravoman/docker-php-apache-pgbouncer | docker/php56/entrypoint.sh | Shell | mit | 365 |
#!/bin/bash
# Specially created e2image dump to test backup superblock migration for
# new convert.
# These images will cause the following problems if convert doesn't handle
# backup superblock migration well:
# 1) Assert while building free space tree
# 2) Error copying inodes
# 3) Discontinuous file extents after c... | adam900710/btrfs-progs | tests/convert-tests/004-ext2-backup-superblock-ranges/test.sh | Shell | gpl-2.0 | 1,087 |
#!/bin/sh
DOCDIR=doc/
APIDOCDIR=$DOCDIR/api
SRCDIR=libmushu/
rm -rf $APIDOCDIR
mkdir -p $APIDOCDIR
sphinx-apidoc -o $APIDOCDIR $SRCDIR
cd $DOCDIR
make html
| venthur/mushu | generate_doc.sh | Shell | gpl-2.0 | 160 |
#!/bin/bash
# This file is part of cc-oci-runtime.
#
# Copyright (C) 2017 Intel Corporation
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at you... | devimc/cc-oci-runtime | installation/rhel-setup.sh | Shell | gpl-2.0 | 5,505 |
#!/bin/bash
###########################################################################################
## Copyright 2003, 2015 IBM Corp ##
## ##
## Redistribution and use in s... | rajashreer7/autotest-client-tests | linux-tools/pyxdg/pyxdg.sh | Shell | gpl-2.0 | 3,005 |
#!/bin/sh
#
# Copyright 2005-2012 Intel Corporation. All Rights Reserved.
#
# This file is part of Threading Building Blocks.
#
# Threading Building Blocks 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 Founda... | jckarter/tbb | build/version_info_macos.sh | Shell | gpl-2.0 | 1,972 |
docker run --privileged -v /dev/disk/by-id:/dev/disk/by-id:ro v2v -vv --log file=/dev/ttyS1,level=debug --log file=/dev/ttyS2,level=trace --report file=/dev/ttyS3 --report file=http://metadata.google.internal/computeMetadata/v1/instance/guest-attributes/v2v/report,headers=Metadata-Flavor=Google --drive file=/dev/disk/b... | adjackura/compute-image-tools | daisy_integration_tests/scripts/v2v_adapt.sh | Shell | apache-2.0 | 357 |
#puppetfactory VM specific cleanup tasks go here
| johnduarte/puppetlabs-training-bootstrap | packer/scripts/puppetfactory_cleanup.sh | Shell | apache-2.0 | 49 |
#!/bin/sh
# Copyright 2018 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 required ... | dims/minikube | makedepend.sh | Shell | apache-2.0 | 1,234 |
#!/usr/bin/env bash
export RUN_DOCKER=true
export TEST_DEPLOYMENTS=true
export SMOKE_TESTS=true
export RUN_APIMAN=true
export CLEANUP=true
| apiman/apiman-test | tools/scripts/travis/scriptrc.sh | Shell | apache-2.0 | 140 |
backuppath=$PATH
PATH="$(remove_from_path "${JENV_ROOT}/shims")"
SCALA_BIN="$(command -v "scala" || true)"
SCALAC_BIN="$(command -v "scalac" || true)"
PATH=$backuppath
make_shims "$SCALA_BIN"
make_shims "$SCALAC_BIN"
| entrypass/jenv | available-plugins/scala/etc/jenv.d/rehash/scala.bash | Shell | mit | 232 |
#!/bin/sh
# Copyright (C) 1999-2006 ImageMagick Studio LLC
#
# This program is covered by multiple licenses, which are described in
# LICENSE. You should have received a copy of LICENSE with this
# package; otherwise see http://www.imagemagick.org/script/license.php.
. ${srcdir}/tests/common.shi
${RUNENV} ${MEMCHECK} ... | ipwndev/DSLinux-Mirror | user/imagemagick/src/tests/rwfile_MTV_pallette.sh | Shell | gpl-2.0 | 363 |
#!/bin/sh
#
# Copyright (c) 2007 Steven Grimm
#
test_description='git commit
Tests for template, signoff, squash and -F functions.'
. ./test-lib.sh
. "$TEST_DIRECTORY"/lib-rebase.sh
commit_msg_is () {
expect=commit_msg_is.expect
actual=commit_msg_is.actual
printf "%s" "$(git log --pretty=format:%s%b -1)" >"$ac... | abg1979/git | t/t7500-commit-template-squash-signoff.sh | Shell | gpl-2.0 | 15,114 |
#!/bin/bash
module load openmpi/gcc/4.8.2/1.6.5
module load python/2.7.8
module load python278/scipy
module load python278/numpy
datafile=$1
processfile=$2
outfile=$3
nCPUs=$4
filename=tomo_recon
echo $PYTHONPATH
nCPUs=$((nCPUs-1))
CPUs=CPU0
if [ $nCPUs -gt 0 ]; then
for i in $(eval echo {1..$nCPUs})
do
... | rcatwood/Savu | mpi/scarf/savu_mpijob.sh | Shell | gpl-3.0 | 457 |
#!/bin/bash -xe
#
# 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, software
# ... | potsmaster/openstack-manuals | tools/generatepot-rst.sh | Shell | apache-2.0 | 3,115 |
#!/usr/bin/env bash
# **aggregates.sh**
# This script demonstrates how to use host aggregates:
# * Create an Aggregate
# * Updating Aggregate details
# * Testing Aggregate metadata
# * Testing Aggregate delete
# * Testing General Aggregates (https://blueprints.launchpad.net/nova/+spec/general-host-aggregate... | inkerra/devstack | exercises/aggregates.sh | Shell | apache-2.0 | 4,857 |
#!/bin/sh
name=math_test
rm -rf "${name}_html.html ${name}_pandoc.html sphinx-rootdir" # clean
doconce format latex $name
doconce ptex2tex $name
latex $name
latex $name
dvipdf $name
cp $name.pdf ${name}_latex.pdf
doconce format html $name
cp $name.html ${name}_html.html
doconce sphinx_dir dirname=sphinx-rootdir-ma... | sjsrey/doconce | test/math_test.sh | Shell | bsd-3-clause | 783 |
rm -f PrivlyChromeExtension.crx
rm -f PrivlyChromeExtension.zip
zip -vr PrivlyChromeExtension.zip * -x@.package_ignore | smcgregor/privly-chrome | package.sh | Shell | mit | 118 |
#!/bin/sh
# Copyright (c) 2006, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of condi... | fivejjs/dtm | lib/util/gflags-1.1/src/gflags_unittest.sh | Shell | gpl-2.0 | 9,062 |
#!/bin/sh
# ------------------------------------------------------------------------------
# Travis CI scripts
# Copyright(c) pgRouting Contributors
#
# Test pgRouting
# ------------------------------------------------------------------------------
PGDATABASE="pgr_test__db__test"
POSTGRESQL_VERSION="$1"
PGUSER="$2"
... | sankepallyrohithreddy/pgrouting | tools/travis/pgrouting_test.sh | Shell | gpl-2.0 | 2,474 |
until test $1 = red
do
echo $1
shift
done
| rodrigosiqueira/TA | tools/bash/1_basic_shell/codes/stop_and_go.sh | Shell | gpl-3.0 | 46 |
#!/bin/bash
# Check Mac OS X Server Hostname
# by Jedda Wignall
# http://jedda.me
# v1.1 - 12 Aug 2013
# Significant re-work. Now also does a forward and reverse lookup to ensure server DNS is healthy.
# v1.0 - 20 Mar 2012
# Initial release.
# Simple script that makes sure the infamous changeip -checkhostname comma... | ryanmoon/OSX-Monitoring-Tools | check_osx_hostname.sh | Shell | unlicense | 1,509 |
#!/bin/bash
# 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.
# This script validates that iOS is set up correctly for the
# testing environment.
#
# In particular, it checks that the minimum ... | exponentjs/react-native | scripts/validate-ios-test-env.sh | Shell | bsd-3-clause | 1,998 |
#put xctool.sh into your PATH
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
COCOS2DX_ROOT="$DIR"/../../../..
cd ${COCOS2DX_ROOT}
python tools/framework-compile/bin/gen_cocos_libs.py -c --android
| dios-game/dios-cocos | src/oslibs/cocos/cocos-src/tools/jenkins-scripts/slave-scripts/framework/android-build.sh | Shell | mit | 205 |
# copy the restore log to restored system $TARGET_FS_ROOT/root/ with a timestamp
if ! test -d $TARGET_FS_ROOT/root ; then
mkdir -p $TARGET_FS_ROOT/root
chmod 0700 $TARGET_FS_ROOT/root
fi
cp "${TMP_DIR}/${BACKUP_PROG_ARCHIVE}-restore.log" $TARGET_FS_ROOT/root/restore-$(date +%Y%m%d.%H%M).log
StopIfError "Could not c... | phracek/rear | usr/share/rear/restore/RSYNC/default/800_copy_restore_log.sh | Shell | gpl-3.0 | 524 |
#!/bin/bash
# Creates a test app and installs the plugin, then changes domain classes and does the required
# migrations. Change the hard-coded values in the variables below for your local system to use.
# Create a MySQL database 'migrationtest' and drop/create before each run.
PLUGIN_DIR="/home/burt/workspace/grails... | bond-/grails-database-migration | testapp/run_test_app.sh | Shell | apache-2.0 | 3,700 |
version=6.11.0
src_url=http://nodejs.org/dist/v$version/node-v$version.tar.gz
src_url_sha1=df31d0e4e2104b3a62342533af5fb879f321416b
| JackieXie168/rethinkdb | mk/support/pkg/node.sh | Shell | apache-2.0 | 133 |
#! /bin/bash
if [[ $# < 3 ]] || [[ $# > 4 ]]; then
echo "Usage: ${0##*/} {secret_key} {libnss_resolver_version} {distro} [--clean_repo]"
exit 1
fi
if [[ $# == 4 ]] && [[ "$4" == "--clean_repo" ]]; then
CLEAN_REPO=true
fi
# Get azk root path
abs_dir() {
cd "${1%/*}"; link=`readlink ${1##*/}`;
if [ -z "$link... | gullitmiranda/azk | src/libexec/package-tools/ubuntu/generate.sh | Shell | apache-2.0 | 1,845 |
#!/usr/bin/env bash
set -e
source $(dirname $0)/00-init-env.sh
#-------------------------------------------------------------------------------
# Launch frontend tests
#-------------------------------------------------------------------------------
cd "$JHI_FOLDER_APP"
npm run ci:frontend:test --if-present
| gmarziou/generator-jhipster | test-integration/scripts/22-tests-frontend-npm.sh | Shell | apache-2.0 | 311 |
#!/bin/bash
set -x
rm -rf \
CMakeCache.txt \
CMakeFiles/ \
Makefile \
bin/ \
build.xml \
cmake_install.cmake \
jni/CMakeFiles/ \
jni/Makefile \
jni/cmake_install.cmake \
libs/ \
local.properties \
proguard.cfg \
project.properties \
systemlibs/
| daviddoria/PCLMirror | mobile_apps/android/PointCloudStreaming/clean.sh | Shell | bsd-3-clause | 246 |
#!/usr/bin/env bash
# untar all VMwareTools-*.tar.gz files found, and apply patches for all modules for each one
readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
dir="${1:-$(pwd)}"
tools="$(find "${dir}" -type f -name 'VMwareTools-*.tar.gz' | sort -r)"
if [[ -z "${tools}" ]]; then
echo "$0: No... | rasa/vmware-tools-patches | untar-all-and-patch.sh | Shell | mit | 470 |
#From: "Grigoriy Strokin" <grg@philol.msu.ru>
#Newsgroups: comp.unix.shell
#Subject: BASH: getopt function that parses long-named options
#Date: Mon, 22 Dec 1997 20:35:18 +0300
#Hi, I have written a BASH function named getoptex, that is like bash builtin
#"getopts", but does parse long-named options and optional argum... | nmacs/lm3s-uclinux | user/bash/examples/functions/getoptx.bash | Shell | gpl-2.0 | 9,081 |
#!/bin/bash
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
######################################################################
### Run one group of the tests in weekly test suite.
echo "========== Auction App 72Hr test"
py.test -v --junitxml results_auction_72Hr.xml testAuct... | cophey/fabric | test/regression/weekly/runGroup4.sh | Shell | apache-2.0 | 336 |
#!/bin/bash
MXNET_ROOT=$(cd "$(dirname $0)/../../../.."; pwd)
CLASS_PATH=$MXNET_ROOT/scala-package/assembly/linux-x86_64-gpu/target/*:$MXNET_ROOT/scala-package/examples/target/*:$MXNET_ROOT/scala-package/examples/target/classes/lib/*
# more details please refer to
# https://github.com/Ldpe2G/mxnet/blob/develop/exampl... | rishita/mxnet | scala-package/examples/scripts/neuralstyle_end2end/run_train_end2end.sh | Shell | apache-2.0 | 670 |
#!/bin/bash
#
# NFS/CIFS file system mount/umount/etc. agent
#
#
# Copyright (C) 1997-2003 Sistina Software, Inc. All rights reserved.
# Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public L... | ingted/resource-agents | rgmanager/src/resources/netfs.sh | Shell | gpl-2.0 | 11,818 |
#!/bin/bash
# Copyright (c) 2011-2014, Intel Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list ... | geekboxzone/mmallow_external_parameter-framework | tools/xmlGenerator/updateRoutageDomains.sh | Shell | bsd-3-clause | 3,496 |
#!/bin/bash
autoreconf -fi;
rm -Rf autom4te.cache;
| aagallag/nexmon | utilities/libnl/autogen.sh | Shell | gpl-3.0 | 52 |
#!/bin/bash
#
# Script to setup a GCE instance to run the webtry server.
# For full instructions see the README file.
sudo apt-get install schroot debootstrap monit squid3
sudo apt-get install g++ libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libglu1-mesa-dev mesa-common-dev freeglut3-dev libgif-dev libfontconf... | s20121035/rk3288_android5.1_repo | external/skia/experimental/webtry/setup/webtry_setup.sh | Shell | gpl-3.0 | 1,398 |
#!/bin/sh
#
# Check if current architecture are missing any function calls compared
# to i386.
# i386 define a number of legacy system calls that are i386 specific
# and listed below so they are ignored.
#
# Usage:
# syscallchk gcc gcc-options
#
ignore_list() {
cat << EOF
#include <asm/types.h>
#include <asm/unistd.h>... | richardtrip/GT-P6200-kernel | scripts/checksyscalls.sh | Shell | gpl-2.0 | 5,624 |
#!/usr/bin/env bash
set -eu
source ../gen-tests-makefile.sh
echo "Generate FST for sim models"
find tb/* -name tb*.v | while read name; do
test_name=$(basename -s .v $name)
echo "Test $test_name"
verilog_name=${test_name:3}.v
iverilog -o tb/$test_name.out $name $verilog_name
./tb/$test_name.out -fst... | YosysHQ/yosys | tests/sim/run-test.sh | Shell | isc | 445 |
OLD_FILENAME=a_b_c
OLD_MACRO=_A_B_C_H_
OLD_CLASS=ABC
OLD_HEADER=${OLD_FILENAME}.h
for f in `cat source.txt`
do
echo "copy..."
cp ${OLD_FILENAME}.h ${f}.h
cp ${OLD_FILENAME}.cpp ${f}.cpp
echo ${f}.h >> tmp.txt
echo ${f}.cpp >> tmp.txt
done
for f in `cat tmp.txt`
do
echo "replace..."
fi... | guodongxiaren/practicalscripts | cpp_stub.sh | Shell | mit | 1,002 |
#!/bin/bash
# #### USAGE
# cd /go-to-the-directory-where-you-to-create-your-QR-code/
# sh qr_code_generator_1.sh
#install the library qrencode to generate the QR code
brew install qrencode
#install the library zbar to analyse the QR code
brew install zba
#generate the QR codes for the main navigation of the web... | bflaven/BlogArticlesExamples | generating-qr-code-testing-universal-links-deeplinks/qr_code_generator.sh | Shell | mit | 1,587 |
#!/usr/bin/env bash
plugin_names=(
"mileszs/ack.vim.git"
"ctrlpvim/ctrlp.vim.git"
"fatih/molokai.git"
"scrooloose/nerdcommenter.git"
"scrooloose/nerdtree.git"
"joshdick/onedark.vim"
"godlygeek/tabular.git"
"SirVer/ultisnips.git"
"tpope/vim-abolish.git"
"bling/vim-airline.git"
"vim-airline/vim-air... | yaojingguo/vimfiles | bundle.sh | Shell | mit | 1,005 |
!#/bin/sh
make test
rm -f valgrind-*.out
for f in src/libjsapi/build/Debug/GNU-Linux-x86/tests/TestFiles/*; do
valgrind --log-file=valgrind-%p.out $f --gtest_repeat=10
done
cat valgrind-*.out
| RipcordSoftware/libjsapi | grind.sh | Shell | mit | 196 |
#!/bin/bash -x
tests=($(seq 1 3))
sizes=(562 1000 1779 3162 5623 10000);
strategies=("full" "mid-quarter-zero" "custom")
echo "-> Time store query compressed... ($1)"
for size in "${sizes[@]}"
do
let ub=($size - 1)
for test_idx in "${tests[@]}"
do
for strategy in "${strategies[@]}"
do
... | alexpreynolds/byte-store | test/time_store_query_all_compressed.sh | Shell | mit | 655 |
#!/bin/sh
CLOSURE_LIB="../closure-library"
CLOSURE_COMPILER="../closure-compiler"
python "${CLOSURE_LIB}/closure/bin/build/closurebuilder.py" \
--namespace embedly.exports \
--root . \
--root "${CLOSURE_LIB}" \
-o compiled \
-c "${CLOSURE_COMPILER}/compiler.jar" \
-f --compilation_level=ADVANCED_OPTIMIZAT... | embedly/embedly-closure | build.sh | Shell | mit | 358 |
#!/bin/sh
echo "Installing dependencies..."
apt-get install wget user-mode-linux uml-utilities bridge-utils debootstrap realpath
echo "Setting up the tap0 network device..."
echo "
auto tap0
iface tap0 inet static
address 10.10.10.1
netmask 255.255.255.0
tunctl_user uml-ne... | AVGP/usermode-linux-containers | bootstrap.sh | Shell | mit | 674 |
# By referring to Figure 5, identify the prompt, command, options, arguments, and cursor in each line of Figure 6.
[~] prompt
cd command
ruby argument
cursor
# Most modern terminal programs have the ability to create multiple tabs (Figure 7), which are useful for organizing a set of related terminal windows.5 By exam... | pporche87/Unix-and-Bash | command-line/exercises1-1.sh | Shell | mit | 569 |
#!/bin/bash
# PHP
apt-get install -y php5-fpm
apt-get install -y php5-cli
apt-get install -y php5-mysql
apt-get install -y php5-curl
apt-get install -y php5-gd
apt-get install -y php5-mcrypt
# Install mcrypt (Needed for Ubuntu)
php5enmod mcrypt
cat /etc/php5/fpm/php.ini | sed -e "s/.*;cgi.fix_pathinfo=1.*/cgi.fix_pat... | Timekiller11/server_installer | modules/php.sh | Shell | mit | 1,016 |
mkdir app/components/$1
mkdir app/components/$1/tests
touch app/components/$1/$1.js
touch app/components/$1/$1.scss
touch app/components/$1/tests/$1.test.js
echo "import React from 'react';
require('./$1.scss');
const $1 = () => {
return (
);
};
$1.defaultProps = {
};
$1.propTypes = {
};
export default $1;" >... | sunnymis/Swoleciety | create-component.sh | Shell | mit | 792 |
#!/bin/bash
# This program blinks pin 9-41 (GPIO_20)
DIR=/sys/class/gpio
# If it isn't already, get gpio20 to appear in DIR
if [ ! -e ${DIR}/gpio20 ]
then
echo 20 > ${DIR}/export
fi
# Set pin as output
echo high > ${DIR}/gpio20/direction
# Run infinite loop to blink led
while :
do
# turn led on and wait f... | EliHar/mr_robot | tools/lab/lab_5/blink.sh | Shell | mit | 481 |
#! /bin/bash
# convert any video files in current directory to mp3
# exit on error
set -e
# extended globbing
shopt -s extglob
shopt -s nullglob
videos=*(*.flv|*.mp4|*.avi|*.mkv)
for file in $videos; do
outputname="${file%.*}.mp3"
ffmpeg -i "$file" -vn -acodec libmp3lame -ar 44100 -ab 128k -ac 2 -f mp3 "$... | ajaybhatia/archlinux-dotfiles | Scripts/any2mp3.sh | Shell | mit | 438 |
#!/usr/bin/env bash
# Written by Wu Jianxiao and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md
# This function runs RF-ANTs vol2surf mapping creation and projection using 1 subject
RF_DIR=$CBIG_CODE_DIR/stable_projects/registration/Wu2017_RegistrationFusion
RF_SURF2VOL_DIR=$RF_DIR... | ThomasYeoLab/CBIG | stable_projects/registration/Wu2017_RegistrationFusion/examples/CBIG_RF_example_surf2vol.sh | Shell | mit | 6,511 |
alias reload!='. ~/.zshrc'
#alias prun='pipenv run'
alias be='bundle exec'
alias dc="docker-compose"
alias knife="be knife"
alias wx="curl wttr.in/Portland"
#alias ansible="prun ansible"
| jescholl/dotfiles | zsh/aliases.zsh | Shell | mit | 189 |
#!/usr/bin/env bash
spider_list=(
youdianying
flkong
fuliba
fulidang
wuxianfuli
)
for spider in ${spider_list[@]}; do
scrapy crawl ${spider}
done
| moonlet/fuli | src/fuli_spiders/crawl_all.sh | Shell | mit | 172 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2017:0190
#
# Security announcement date: 2017-01-26 20:24:55 UTC
# Script generation date: 2017-01-28 21:15:27 UTC
#
# Operating System: CentOS 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - firefox.i686:45.7.0-1.el6.centos
# - f... | Cyberwatch/cbw-security-fixes | CentOS_6/x86_64/2017/CESA-2017:0190.sh | Shell | mit | 893 |
#!/bin/bash
# script to test the Arlo camera switch and lights
# L. Shustek, 11 Aug 2015
# L. Shustek, 17 Aug 2015; add green LED
# GPIO9 is input with pullup: "up" momentary toggle switch leg
echo 9 | sudo tee /sys/class/gpio/export > /dev/null
echo "in" | sudo tee /sys/class/gpio/gpio9/direction > /dev/null
echo "h... | LenShustek/ArloCamera | testswitch.bash | Shell | mit | 1,424 |
#!/bin/bash
# ulimit -n 8192
set -e
FIRST_START_DONE="/etc/docker-openldap-first-start-done"
[ ! -e /var/lib/openldap/data ] && mkdir -p /var/lib/openldap/data
# container first start
if [ ! -e "$FIRST_START_DONE" ]; then
if [[ -z "$SLAPD_PASSWORD" ]]; then
echo -n >&2 "Error: Container not configured... | wealthworks/docker-openldap | entrypoint.sh | Shell | mit | 2,614 |
#!/bin/bash
VERSION=$( grep "version = \"" config.xml|sed 's/[^0-9.]*//g' )
MAJOR_RELEASE=$( echo $VERSION|cut -d '.' -f 1 )
MINOR_RELEASE=$( echo $VERSION|cut -d '.' -f 2 )
PATCH_RELEASE=$( echo $VERSION|cut -d '.' -f 3 )
if [ "$1" = "major" ];then
MAJOR_RELEASE=$(($MAJOR_RELEASE + 1))
MINOR_RELEASE=0
PATCH_RE... | isaaguilar/pumpkin-basket | version-er.sh | Shell | mit | 731 |
alias gps='ps -ef | grep -i'
alias gh='history | grep -i'
alias gf='find . \
-path "*/.git/*" -prune -o \
-path "*/.svn/*" -prune -o \
-path "*/.hg/*" -prune -o \
-path "*/.silp_backup/*" -prune -o \
-path "*/.silp_test/*" -prune -o \
-print ... | yjpark/dotfiles | bash/aliases/grep.bash | Shell | mit | 331 |
go get github.com/nsf/gocode
go get golang.org/x/tools/cmd/goimports
#go get code.google.com/p/rog-go/exp/cmd/godef
go get github.com/rogpeppe/godef
#go get golang.org/x/tools/cmd/oracle
go get golang.org/x/tools/cmd/gorename
go get github.com/kisielk/errcheck
go get github.com/jstemmer/gotags
| rbastic/glowing-tyrion | misc-cfg/setup-vim-go.sh | Shell | mit | 295 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2016:2946
#
# Security announcement date: 2016-12-14 10:13:23 UTC
# Script generation date: 2017-01-25 21:24:17 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - firefox.i686:45.6.0-1.el6_8
# - firef... | Cyberwatch/cbw-security-fixes | Red_Hat_6/x86_64/2016/RHSA-2016:2946.sh | Shell | mit | 1,178 |
#!/bin/bash
#
# If you change these files in the Xcode UI, it will remove the symlinks and
# duplicate them. In that case you should copy them back to this repo, and
# re-run this script.
#
# http://www.openradar.me/42206958
#
set -e
set -o pipefail
set -u
if [ ! -d xcode ]; then
echo "Must be run from root of dotf... | thedavidharris/dotfiles | xcode/link.sh | Shell | mit | 719 |
#!/bin/bash -
MOCHA="npm run testonly -- "
# ensure the user has started the server
echo "checking for server connection"
TEST_DIR=$(dirname $(dirname "$0"))
SEED_DIR=$(dirname $TEST_DIR)/seeds
LOG_FILE=$(dirname $TEST_DIR)/output-app/server/logs/all-logs-readable.log
$MOCHA "$TEST_DIR/index.js" > /dev/null 2> /dev... | tobkle/create-graphql-server | test/output-app-end-to-end/scripts/run-end-to-end-tests.sh | Shell | mit | 1,263 |
#!/bin/bash -ev
#
# Installation Script
# Written by: Tommy Lincoln <pajamapants3000@gmail.com>
# Github: https://github.com/pajamapants3000
# Legal: See LICENSE in parent directory
#
#
# Dependencies
#**************
# Begin Required
#cmake-3.3.1
#fltk-1.3.3
#gnutls-3.4.4.1
#libgcrypt-1.6.3
#libjpeg-turbo-1.4.1
#pixman... | pajamapants3000/BLFS_scripts_etc | scripts/tigervnc-1.5.0.sh | Shell | mit | 3,117 |
#!/bin/sh
set -e
sudo apt -y update
sudo apt -y upgrade
sudo apt -y install docker.io
sudo mv /tmp/driftapp.service /etc/systemd/system/
sudo mkdir /etc/driftapp
sudo mv /tmp/docker-compose.yml /etc/driftapp/
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname... | dgnorth/drift-base | aws/packer.sh | Shell | mit | 435 |
#!/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... | skyhacker2/ECParticleBackgroundView | Example/Pods/Target Support Files/Pods-ECParticleBackgroundView_Example/Pods-ECParticleBackgroundView_Example-frameworks.sh | Shell | mit | 3,616 |
#!/bin/bash
#
echo -e "\n"
echo -e "*********************************************"
echo -e "********** WARP 2D ***********"
echo -e "*********************************************"
echo -e "\n"
if [ $# -lt 3 ] ; then
echo This script will allow you to register two 2D images like this
echo -e "\n"
echo ... | ChrCoello/warp | src/warp_2D_highres.sh | Shell | mit | 13,747 |
#!/bin/sh
source "$(dirname $0)/../../scripts/common"
brew_install nmap
| mediweb/dotfiles | utils/nmap/install.sh | Shell | mit | 73 |
#!/usr/bin/expect
set procname "ssh_login"
set host [lindex $argv 0]
set usr [lindex $argv 1]
set passwd [lindex $argv 2]
set serverhost "192.168.250.23"
spawn ssh -o PubkeyAuthentication=no $usr@$host
expect {
-timeout 30
-re "yes" {send "yes\n";exp_continue}
-re "password" {send "$passwd\n"}
-re "#' { send... | fishcried/linux-profile | scripts/install-salt-minion.sh | Shell | mit | 560 |
#!/bin/sh
# IrssiBot start / stop script for Unix platforms
# for release, comment this
JAR_DIR=/usr/local/java/tools
# for release, uncomment this
#JAR_DIR=jars
case "$1" in
start)
echo -n "starting IrssiBot.. "
java -classpath "$JAR_DIR/xerces.jar:$JAR_DIR/mysql.jar:." irssibot.core.Core > bot.l... | foomango/antex | chapter3_example_irssibot/irssibot/bin/bot.sh | Shell | mit | 551 |
#! /bin/bash -
#########################
#
# Name: scalar-mesan.bash
#
# Purpose: Convert rotatad scalar fields (MESAN) from GRIB to unrotated netCDF
#
# Usage: ./scalar-mesan.bash -i <input-grib-file>
#
# Revision history: 2016-03-22 -- Script created, Martin Evaldsson, Rossby Centre
#
# Contact persons: martin.... | marev711/scripts | process-obsdata/scalar-mesan.bash | Shell | mit | 2,034 |
OUT=pipeline_150_ui.tar
if [[ -f "${OUT}" ]]; then
rm $OUT
fi
if [[ -f "${OUT}.gz" ]]; then
rm ${OUT}.gz
fi
GZIP='-9'
tar --exclude="*.pyc" --dereference --hard-dereference --check-links -cvf $OUT ../ui/db ../ui/lib ../ui/techs ../ui/setup.json
tar --exclude="*.pyc" --excl... | sauloal/pycluster | pack.sh | Shell | mit | 434 |
# Generated by Powerlevel10k configuration wizard on 2020-04-17 at 23:52 PDT.
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 50246.
# Wizard options: nerdfont-complete + powerline, large icons, unicode, lean, time,
# 2 lines, dotted, left frame, light-ornaments, compact, many icons, concise,
# transien... | finaldie/final_dev_env | zsh/p10k.zsh | Shell | mit | 76,045 |
#!/usr/bin/env bash
declare -x WATCHTOWER_CLEANUP
[[ -z "${WATCHTOWER_CLEANUP}" ]] && WATCHTOWER_CLEANUP="false"
declare -x WATCHTOWER_DEBUG
[[ -z "${WATCHTOWER_DEBUG}" ]] && WATCHTOWER_DEBUG="false"
declare -x WATCHTOWER_ENABLE_LIFECYCLE_HOOKS
[[ -z "${WATCHTOWER_ENABLE_LIFECYCLE_HOOKS}" ]] && WATCHTOWER_ENABLE_LIF... | dockhippie/watchtower | latest/overlay/etc/entrypoint.d/05-base.sh | Shell | mit | 2,998 |
#!/bin/bash
UP=$(uptime | awk '{print $3}' | sed 's/,//')
HOST=$(hostname -s)
UTC=$(date -u +"%H:%M")
STRING_UP=$(echo "$UP")
STRING_GMT=$(echo "UTC $UTC")
echo '#('echo $STRING_GMT') #[fg=green] #('echo $STRING_UP') #[fg=black bg=green] #('echo $HOST') '
| lwslade/fmux | tmux-right.sh | Shell | mit | 256 |
#!/bin/sh
#############################################################################
# LongShort-ButtonPressed.sh
#
# This script is used in conjunction with the LongShort-ButtonReleased.sh
# script to allow a single button to serve two functions. When the button
# is held for a short period of time, the first acti... | atomicnumber1/falcon_player_configurations | scripts/button_press_system.sh | Shell | mit | 651 |
#!/bin/sh
@THEODEN@_HOME=$(dirname $0)/..
export @THEODEN@_HOME
. ${@THEODEN@_HOME}/etc/common
@theoden@-db-create.sh
exec ${@THEODEN@_BIN}/sqlite3.sh -init ${@THEODEN@_ETC}/@theoden@-db-load.sql ${@THEODEN@_DB}/@theoden@.db \
'.exit'
| cdsi/theoden | bin/theoden-db-load.sh | Shell | mit | 240 |
#!/bin/bash
python exploit11/exploit11.py &>exploit11/exploit11.log
| vhazali/cs5331 | assignment2/scripts/exploit11.sh | Shell | mit | 69 |
#! /bin/sh
######################################################################
#
# kinsyu
# 金種計算するスクリプト
#
# このソフトウェアは Public Domain (CC0)であることを宣言する。
#
######################################################################
# === 初期化 =========================================================
set -eu
umask 0022
export... | div-jp/code | TOOL/kinsyu.sh | Shell | mit | 2,281 |
#!/bin/bash
function install_x2go {
#from https://www.howtoforge.com/tutorial/x2go-server-ubuntu-14-04
REPO_CHECK=$(dpkg-query -W --showformat='${Status}\n' x2goserver | grep "install ok installed")
if [ "" == "$REPO_CHECK" ]; then
apt_install software-properties-common
add-apt-repository -y ppa:x2go/... | neilkidd/xubuntu-16.04.1-desktop-setup | install_x2go.sh | Shell | mit | 723 |
# (c) Liviu Balan <liv_romania@yahoo.com>
# http://www.liviubalan.com/
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
LIV_TUT_META_URL='http://www.liviubalan.com/set-php-timezone-on-ubuntu-server'
| liviubalan/liviubalan.com-vagrant-ubuntu | provision-shell/tutorials/000/038/meta.sh | Shell | mit | 278 |
#!/bin/sh
#
# MAQAO - Modular Assembly Quality Analyzer and Optimizer
# http://maqao.org/
source ./helper.sh $*
set_stage
#wget http://maqao.org/release/maqao.intel64-xeonphi.tar.bz2
cp $TOTIENT_PKG/archives/maqao.intel64-xeonphi.tar.bz2 .
tar -xjf maqao.intel64-xeonphi.tar.bz2
mkdir -p $PREFIX/maqao-2.1.1
mkdir -p ... | cornell-cs5220-f15/totient-pkg | configs/maqao.sh | Shell | mit | 439 |
#!/bin/sh
# Display Linux distribution
#
# Example:
# Distributor ID: Debian
# Description: Debian GNU/Linux 7.1 (wheezy)
# Release: 7.1
# Codename: wheezy
lsb_release -a 2>/dev/null
| milosz/shell-octo-adventure | scripts/which_distribution.sh | Shell | mit | 204 |
#!/bin/bash
# clean up
rm -rf /var/lib/jenkins/elis/deployed/*.jar
# copy dependencies in place
cp -R /var/lib/jenkins/workspace/elis-platform/code/felix-configuration/bundle/*.jar /var/lib/jenkins/elis/deployed
cp -R /var/lib/jenkins/elis/osgi/*.jar /var/lib/jenkins/elis/deployed
# restart felix
sudo /etc/init.d/fe... | iotap-center/elis-platform | felix-configuration/scripts/post_build.sh | Shell | mit | 337 |
#!/usr/bin/env bash
# Update ubuntu
/vagrant/ubuntu.sh
# Install nodejs
/vagrant/nodejs.sh
# Build and install CouchDB from source
/vagrant/couchdb.sh
| redgeoff/couchdb2-vagrant | bootstrap.sh | Shell | mit | 154 |
#!/bin/sh
#
# Setup ZSH as default shell
# Install Oh-My-ZSH
function install_zsh() {
ask_for_confirmation "Do you want to set up ZSH with Oh-My-ZSH?"
if answer_is_yes; then
# Test to see if zshell is installed with brew
if brew_test_package 'zsh'; then
print_success 'Homebrew has installed ZSH.'
... | nielsgl/dotfiles | zsh/setup.sh | Shell | mit | 1,759 |
#!/bin/bash
local sshs_str="$1"
local rvm_environment="$2"
local foreman_str="$3"
declare -a ssh_strs="${sshs_str[@]}"
local load_rvm=`cat $bakesale_source/stages/wave/_rvm.sh`
for ssh_str in "${ssh_strs[@]}" ; do
echo "$ssh_str"
ssh -t $ssh_str "
sudo bash -c \"
$load_rvm
rv... | tiredpixel/bakesale | stages/wave/ssh_rvm_foreman.sh | Shell | mit | 487 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.