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
##################################################################################
# Custom build tool for Realm Objective-C binding.
#
# (C) Copyright 2011-2015 by realm.io.
##################################################################################
# Warning: pipefail is not a POSIX compatible op... | MenloHacks/ios-app | Menlo Hacks/Pods/Realm/build.sh | Shell | mit | 50,970 |
#!/usr/bin/env zsh
# Keeps track of the last used working directory and automatically jumps
# into it for new shells.
# Flag indicating if we've previously jumped to last directory.
typeset -g ZSH_LAST_WORKING_DIRECTORY
mkdir -p $ZSH_CACHE_DIR
local cache_file="$ZSH_CACHE_DIR/last-working-dir"
# Updates the last dire... | eldorplus/bash-profile | plugins/last-working-dir/last-working-dir.plugin.zsh | Shell | mit | 804 |
#!/bin/bash
#
# This is a script to generate the following distribution packages:
#
# - Python source package
# - Debian package
#
# Requirements:
#
# > apt-get install pbuilder python-setuptools python-sphinx python-stdeb
#
# Note that debian packages can only be built on a debian based distribution.
# Configuration
... | strongswan/swidGenerator | package.sh | Shell | mit | 1,578 |
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
cat includes/banner
source includes/versions
source includes/functions.sh
while getopts suhH:D:? par; do
case ${par} in
h|'?')
usage
exit 0
;;
u|U)
is_upgradetask="yes"
;;
H) sys_hostname="$OPTARG" ;;
D) sys_domain="$OPTARG" ;;
s... | krombel/mailcow | install.sh | Shell | gpl-2.0 | 5,137 |
#!/bin/bash
# Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
# For licensing, see LICENSE.md or http://ckeditor.com/license
# Updates meta files, which are used later to export language files to .po (gettext) format.
set -e
echo "CKLangTool - updates meta files."
echo ""
. ./_common.sh ... | SeeyaSia/www | web/libraries/ckeditor/dev/langtool/update_meta_files.sh | Shell | gpl-2.0 | 1,108 |
#!/bin/bash
set -e
set -x
PARAMS_DIR="../buildlogs/Parameters"
# work from either APM directory or above
[ -d ArduPlane ] || cd APM
/bin/mkdir -p "$PARAMS_DIR"
generate_parameters() {
VEHICLE="$1"
# generate Parameters.html, Parameters.rst etc etc:
./Tools/autotest/param_metadata/param_parse.py --vehi... | squilter/ardupilot | Tools/scripts/build_parameters.sh | Shell | gpl-3.0 | 1,132 |
if [ ! -f /rathena/login-server ]; then
export runBuild=1;
elif [ ! -f /rathena/char-server ]; then
export runBuild=1;
elif [ ! -f /rathena/map-server ]; then
export runBuild=1;
else
export runBuild=0;
fi
if [ "${runBuild}" -eq "1" ]; then
### checking that ./configure has ran by looking for make file
if [... | rAthenaCN/rAthenaCN | tools/docker/builder.sh | Shell | gpl-3.0 | 600 |
#!/bin/bash
for i in /etc/watchdog.d/*
do
$i
done
exit 0;
| sebastiendarocha/wifirover | common/sbin/watchdog.sh | Shell | lgpl-2.1 | 62 |
#!/bin/bash
#
# Copyright 2015 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | spxtr/bazel | tools/cpp/osx_cc_wrapper.sh | Shell | apache-2.0 | 3,201 |
#!/bin/sh
source conf/drillTestConfig.properties
hadoop fs -mkdir /drill/testdata/ctas_auto_partition
hadoop fs -rmr /drill/testdata/ctas_auto_partition/tpch_single_partition
hadoop fs -mkdir /drill/testdata/ctas_auto_partition/tpch_single_partition
${DRILL_HOME}/bin/sqlline -n ${USERNAME} -p ${PASSWORD} -u "jdbc:dri... | sudheeshkatkam/drill-test-framework | framework/resources/Datasources/ctas_auto_partition/setup.sh | Shell | apache-2.0 | 705 |
#!/usr/bin/env bash
# This command checks that the built commands can function together for
# simple scenarios. It does not require Docker so it can run in travis.
source "$(dirname "${BASH_SOURCE}")/lib/init.sh"
os::util::environment::setup_time_vars
source "${OS_ROOT}/hack/local-up-master/lib.sh"
function cleanup(... | childsb/origin | hack/test-cmd.sh | Shell | apache-2.0 | 5,982 |
#! /bin/bash
. ./config.sh
UNIVERSE=10.2.2.0/24
start() {
host=$1
shift
proxy docker_on "$host" run "$@" -dt $SMALL_IMAGE /bin/sh
}
assert_no_ethwe() {
assert_raises "container_ip $1 $2" 1
assert_raises "proxy exec_on $1 $2 ip link show | grep -v ethwe"
}
start_suite "Ping proxied containers over cross-h... | OnePaaS/weave | test/660_proxy_ipam_test.sh | Shell | apache-2.0 | 1,301 |
#!/bin/bash
# Copyright 2014 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | mksalawa/kubernetes | hack/lib/golang.sh | Shell | apache-2.0 | 22,389 |
#!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# If clang_format_diff.py command is not specfied, we assume we are able to
# access directly without any path.
print_usage () {
echo "Usage:"
echo "format-diff.sh [OPTIONS]"
echo "-c: check only."
echo "-h: print this ... | arangodb/arangodb | 3rdParty/rocksdb/6.29/build_tools/format-diff.sh | Shell | apache-2.0 | 7,578 |
#!/bin/bash
PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
NOW=`date +%s`
TODAY=`date +%Y-%m-%d`
COUNT=450
INTERVAL=2
export PATH
t=`date +"%Y-%m-%d"`
if [ -z "$1" ]
then
echo "No argument supplied, using current directory as base output directory."
export RESULT="sar-results-$t"
else
export RESULT="$1/sar-results-... | forever342/naarad | bin/naarad_metric_collector.sh | Shell | apache-2.0 | 2,161 |
#!/usr/bin/env bash
function install_a10 {
if [ -n "$A10_DRIVER_GIT_URL" ]; then
a="git+${A10_DRIVER_GIT_URL}#egg=a10_neutron_lbaas"
else
a="a10-neutron-lbaas"
fi
sudo pip install -U $a
}
function configure_a10 {
sudo mkdir -m 755 -p $A10_CONF_DIR
safe_chown $STACK_USER $A10_CO... | dougwig/a10-neutron-lbaas | devstack/plugin.sh | Shell | apache-2.0 | 2,663 |
#!/bin/sh
# @file
#
# Installer (Unix-like)
# Information about the host system/Linux distribution
# Copyright (C) 2006-2015 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or mod... | miguelinux/vbox | src/VBox/Installer/linux/VBoxSysInfo.sh | Shell | gpl-2.0 | 4,161 |
#!/bin/sh
test_description='signed commit tests'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
. ./test-lib.sh
GNUPGHOME_NOT_USED=$GNUPGHOME
. "$TEST_DIRECTORY/lib-gpg.sh"
test_expect_success GPG 'create signed commits' '
test_oid_cache <<-\EOF &&
header sha1:gpgsig
header ... | Osse/git | t/t7510-signed-commit.sh | Shell | gpl-2.0 | 11,453 |
#!/bin/bash
# File: counttestset.sh
# Description: Script to count the errors on a single UNLV set.
# Author: Ray Smith
# Created: Wed Jun 13 11:58:01 PDT 2007
#
# (C) Copyright 2007, Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in comp... | DocCreator/DocCreator | thirdparty/tesseract/testing/counttestset.sh | Shell | lgpl-3.0 | 1,807 |
#!/bin/sh
export KUBE_APISERVER_PROXY="https://10.138.232.140:19999"
../bin/kubernetes/client/kubectl config set-cluster kubernetes \
--certificate-authority="../ca/cluster-root-ca.pem" \
--client-certificate="../ca/kubernetes-rbac-kube-scheduler-00-ca.pem" \
--client-key="../ca/kubernetes-rbac-kube-scheduler-00-ca-... | imlidian/containerops | docs/scripts/600-kube-scheduler-00.sh | Shell | apache-2.0 | 1,431 |
#!/bin/bash
# Copyright © 2012, United States Government, as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All rights reserved.
#
# The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed
# under the Apache License, Version 2.0 (the "License");
# you may not us... | meshula/NTRTsim | bin/setup/setup_neuralnet.sh | Shell | apache-2.0 | 8,108 |
#! /bin/bash
# Explicitly not called _test.sh - this isn't run, but imported by other tests.
. ./config.sh
docker_py_test() {
SHARD=$1
TOTAL_SHARDS=$2
start_suite "Run docker-py test suite against the proxy"
# Work round https://github.com/docker/docker-py/issues/852
docker_on $HOST1 pull busybo... | dpw/weave | test/600_proxy_docker_py.sh | Shell | apache-2.0 | 1,256 |
#!/bin/bash
# Clean rpm locks before puppet run.
# See ticket https://bugs.launchpad.net/fuel/+bug/1339236
rm -f /var/lib/rpm/__db.*
rpm --rebuilddb
puppet apply -v /etc/puppet/modules/nailgun/examples/astute-only.pp
pgrep supervisord >/dev/null && /usr/bin/supervisorctl shutdown
mkdir -p /var/log/astute
/usr/bin/sup... | dancn/fuel-main-dev | docker/astute/start.sh | Shell | apache-2.0 | 332 |
#!/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 "Licen... | sekikn/bigtop | bigtop-deploy/puppet/modules/livy/templates/livy-env.sh | Shell | apache-2.0 | 2,058 |
#!/bin/sh
# Package
PACKAGE="python3"
DNAME="Python3"
# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
PATH="${INSTALL_DIR}/bin:$PATH"
preinst ()
{
exit 0
}
postinst ()
{
# Link
ln -s ${SYNOPKG_PKGDEST} ${INSTALL_DIR}
# Install busybox stuff
${INSTALL_DIR}/bin/busybox --install ${INSTALL_DIR}/bin
... | sangood/spksrc | spk/python3/src/installer.sh | Shell | bsd-3-clause | 1,202 |
#!/bin/sh
# This script bumps the version and updates the rc files and git tree accordingly
# !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!!
type -P sed &>/dev/null || { echo "sed command not found. Aborting." >&2; exit 1; }
type -P git &>/dev/null || { echo "git command not found. Aborting." >&2; exit 1; }
if ... | ClusterM/hakchi2 | driver/source/_bump.sh | Shell | gpl-3.0 | 2,230 |
rake db:reset;
export RAILS_SECRET='rake secret'
rspec
| reedflinch/gridiron-hackathon | api/run_rspec.sh | Shell | apache-2.0 | 55 |
. ${srcdir}/emulparams/plt_unwind.sh
SCRIPT_NAME=elf
OUTPUT_FORMAT="elf32-i386"
NO_RELA_RELOCS=yes
TEXT_START_ADDR=0x08048000
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
ARCH=i386
MACHINE=
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
NO_SMALL_DATA=yes
SEPARAT... | a0u/binutils-gdb | ld/emulparams/elf_i386.sh | Shell | gpl-2.0 | 786 |
#!/bin/bash
#
# This script listens for the WiiU network logger and prints the messages to
# the terminal.
#
# If you would like a logfile, pipe this script's output to tee.
NETCAT=
find_netcat()
{
NETCAT=$(which netcat 2>/dev/null |grep '/')
if [ -z "$NETCAT" ]; then
NETCAT=$(which nc 2>/dev/null |grep '/')... | aliaspider/RetroArch | wiiu/net_listen.sh | Shell | gpl-3.0 | 1,868 |
#!/usr/bin/env zsh
# -------------------------------------------------------------------------------------------------
# Copyright (c) 2018 zsh-syntax-highlighting contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted
# provided that the f... | qguv/config | zsh/plugins/zsh-syntax-highlighting/highlighters/main/test-data/alias-nested.zsh | Shell | gpl-3.0 | 2,165 |
#! /bin/sh
# Generate c6x-mult.md from c6x-mult.md.in
# The input file is passed as an argument.
# Copyright (C) 2011-2016 Free Software Foundation, Inc.
#This file is part of GCC.
#GCC is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the ... | selmentdev/selment-toolchain | source/gcc-latest/gcc/config/c6x/genmult.sh | Shell | gpl-3.0 | 1,355 |
#!/bin/sh
test_description='forced push to replace commit we do not have'
. ./test-lib.sh
test_expect_success setup '
>file1 && git add file1 && test_tick &&
git commit -m Initial &&
git config receive.denyCurrentBranch warn &&
mkdir another && (
cd another &&
git init &&
git fetch --update-head-ok .. ma... | devzero2000/git-core | t/t5405-send-pack-rewind.sh | Shell | gpl-2.0 | 657 |
export INSTANCE_TYPE="mirror"
export PROJECT="ct-mirror-venafi1"
export REGION="us-central1"
export CLUSTER="ct-mirror-venafi1"
export ZONES="a b c"
export MIRROR_NUM_REPLICAS_PER_ZONE=2
export MIRROR_TARGET_URL="https://ctlog.api.venafi.com"
export MIRROR_TARGET_PUBLIC_KEY="venafi_1.pem"
export MONITORING="gcm"
| raffaelespazzoli/origin | vendor/github.com/google/certificate-transparency/cloud/google/configs/ct-mirror-venafi.sh | Shell | apache-2.0 | 314 |
#!/bin/bash
set -e
# Start ssh daemon
/usr/sbin/sshd
if test -t 0; then
# We have TTY, so probably an interactive container...
if [[ $@ ]]; then
# Transfer arguments to mocha
. ~/.bashrc
npx mocha $@
else
# Run bash when no argument
export PS1='[\u@\h : \w]\$ '
/bin/bash
fi
else
# Det... | adaltas/node-nikita | packages/tools/env/cron/entrypoint.sh | Shell | mit | 369 |
#!/bin/bash
set -e # exit with nonzero exit code if anything fails
# create the tests folder
mkdir tests
cd tests
git init
git pull https://${GH_REPO}
cd ..
# hope we hit three distinct cases in random testing!
python tests/test.py ${TESTMODULE}
python tests/test.py ${TESTMODULE}
| jasminelou/Character-Distribution | test.sh | Shell | mit | 283 |
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0+
#
# Extract the number of CPUs expected from the specified Kconfig-file
# fragment by checking CONFIG_SMP and CONFIG_NR_CPUS. If the specified
# file gives no clue, base the number on the number of idle CPUs on
# the system.
#
# Usage: configNR_CPUS.sh config-frag
#
# Co... | Linutronix/linux | tools/testing/selftests/rcutorture/bin/configNR_CPUS.sh | Shell | gpl-2.0 | 688 |
#!/bin/bash
readonly THIS_DIR=$(cd $(dirname $0); pwd)
readonly DOCKERBUILD_DIR="$THIS_DIR/../dockerbuild"
readonly SCRIPTS_JS_DIR="$DOCKERBUILD_DIR/scripts-js"
| chrisse27/angular | aio/aio-builds-setup/scripts/env.sh | Shell | mit | 162 |
#!/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... | chestack/kubernetes | hack/verify-generated-pod-resources.sh | Shell | apache-2.0 | 1,703 |
java -cp bin friday.Main
| marciojrtorres/aps-2015-2 | 3rd-friday/run.sh | Shell | mit | 25 |
# This file makes tables for the concepts in this subfolder.
# Be sure to run postgres-functions.sql first, as the concepts rely on those function definitions.
# Note that this may take a large amount of time and hard drive space.
#
# Exporting DBCONNEXTRA before calling this script will add this to the
# connection st... | MIT-LCP/mimic-code | mimic-iii/concepts/postgres_make_concepts.sh | Shell | mit | 13,013 |
#!/bin/bash
./localsearch 0 0 > 00test.output;
./localsearch 0 1 > 01test.output;
./localsearch 0 2 > 02test.output;
./localsearch 1 0 > 10test.output;
./localsearch 1 1 > 11test.output;
./localsearch 1 2 > 12test.output;
| GhostofGoes/cgoes-cs572 | 1/test.sh | Shell | mit | 222 |
#!/bin/sh
# Simple script to explore drupal
# DO NOT RUN ON SYSTEMS WITH MYSQL INSTALLED. IT WILL NUKE ALL MYSQL DATA.
set -e
drupalmajor=7
drupalminor=27
# Don't use this password if your MySQL server is on the public internet
sqlrootpw="q9z7a1"
# Let's keep our git client at $srctop/$projectname
# Always quote s... | dankegel/busydrupal | demo2.sh | Shell | mit | 7,316 |
#!/bin/sh
sudo cp hyperfastcgi.conf /etc/init/hyperfastcgi.conf
sudo ln -s /etc/init/hyperfastcgi.conf /etc/init.d/hyperfastcgi.conf
sudo initctl reload-configuration
| xplicit/HyperFastCgi | samples/ubuntu-startup/upstart/install-service.sh | Shell | mit | 167 |
#! /bin/bash
# before you start, change all instances of "mmarks" to your username and all instances of "sjmdatabase" to your database name
cd /home/sheldon
sudo apt-get update
sudo apt-get -y install build-essential
sudo apt-get -y install build-essential postgresql-9.1 postgresql-server-dev-9.1 libxml2-dev libproj-de... | tooshel/node-gis-server | startupscript.sh | Shell | mit | 2,426 |
#!/bin/bash
# Rotate FILENAME to FILENAME.1, FILENAME.2 and so on
if [[ -z $1 ]]; then
echo "Usage: $1 [filename]"
echo "Rotates files"
exit 1
fi
COPIES=5
for ((i=COPIES-1; i>0; i--)); do
if [[ -f ${1}.$i ]]; then
mv "${1}.$i" "${1}.$((i+1))"
fi
done
mv "${1}" "${1}.1"
| mivok/tools | misc/rotate.sh | Shell | mit | 300 |
#!/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... | ML-Works/Overlap | Example/Pods/Target Support Files/Pods-Overlap_Example/Pods-Overlap_Example-frameworks.sh | Shell | mit | 3,605 |
oldname=$1
num=$2
git filter-branch --commit-filter '
if [ "$GIT_COMMITTER_NAME" = "$oldname" ];
then
GIT_COMMITTER_NAME="akiyoshi83";
GIT_AUTHOR_NAME="akiyoshi83";
GIT_COMMITTER_EMAIL="mail@akiyoshi.info";
GIT_AUTHOR_EMAIL="mail@akiyoshi.i... | akiyoshi83/.dotfiles | bin/change_commit_author.sh | Shell | mit | 443 |
oracle solve classical -o 18Sco classical.yaml data/benchmarks/18Sco/*noresample*.txt
oracle solve classical -o 61CygA classical.yaml data/benchmarks/61CygA/*noresample*.txt
oracle solve classical -o 61CygB classical.yaml data/benchmarks/61CygB/*noresample*.txt
oracle solve classical -o alfCet classical.yaml data/bench... | andycasey/original-oracle | oracle/tests/test_benchmarks.sh | Shell | mit | 1,958 |
#!/bin/bash
set -e
rm -rf venv
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pylint -E *.py
coverage run -m pytest econtools/test_*.py
coverage report -m econtools/*.py
| elifesciences/ppp-feeder | project_tests.sh | Shell | mit | 202 |
#!/bin/sh
set -e
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
realpath() {
DIRECTORY="$(cd "${1%/*}" && pwd)"
FILENAME="${1##*/}"
echo "$DIRECTORY/$FILENAME"
}
install_reso... | erliangzi/GJSplashScreen | GJSplashScreenDemo/Pods/Target Support Files/Pods-GJSplashScreenDemo/Pods-GJSplashScreenDemo-resources.sh | Shell | mit | 5,228 |
## INFO: aliases need to be loaded from outside, before the types are imported
## unfortunately types cannot import them, because they don't unfold in their scope
## KEYWORDS ##
alias extends="Type.Extend"
# it has to be reversed with ! and logical OR because otherwise we get an exception...
alias method="! [[ -z \$i... | mikelane/bash-oo-framework | lib/system/99_type_aliases.sh | Shell | mit | 821 |
#!/bin/bash
# make trajectory using index file
# $1 : nbins
a_select="../../../ndx/a.select"
b_select="../../../ndx/b.select"
mass_info="../../../ndx/select.mass"
mass_info2="../../../ndx/select.mass2"
echo $a_select
if [ -f "$a_select" ]
then
echo "$a_select found."
else
echo "$a_select not found."
exit 1
fi
ec... | jht0664/Utility_python_gromacs | python/massf-prof-lj.sh | Shell | mit | 982 |
#!/usr/bin/env bash
echo "Adding aliases..."
echo "Please specify the shell configuration file path: "
if [ $(hostname) != "vagrant" ]; then
read CONFIG_PATH
else
CONFIG_PATH="/home/vagrant/.bash_aliases"
fi
# more to be added
echo "alias gi=\"git init\"" >> "$CONFIG_PATH"
echo "alias ga=\"git add\"" >> "$CONFIG_... | bound1ess/love-git | src/aliases.sh | Shell | mit | 516 |
#!/bin/sh
#
# git-literate
# http://danielmcgraw.github.io/git-literate/
#
# Protect yourself from accidentally pushing to remote repositories.
randnum=`perl -e "print int rand(99999)"`
word=`sed $randnum"q;d" /usr/share/dict/words`
read -p "To push to $1 type '$word': " < /dev/tty
exit `[[ "$word" == "$REPLY" ]]` | danielmcgraw/git-literate | git-literate.pre-push.sh | Shell | mit | 317 |
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
eval "$(rbenv init -)"
| sivakumar-kailasam/dotfiles | rbenv/path.zsh | Shell | mit | 71 |
#!/usr/bin/env bash
ab -k -n 1000 -c 4 "http://localhost:8080/tile/657/1582/12.mvt"
#ab -n 1000 -c 4 "http://localhost:8080/bad/657/1582/12.mvt"
| danpat/atuin | bench.sh | Shell | mit | 146 |
#!/bin/bash
echo "Clone dependencies"
echo "UniRx"
git clone https://github.com/neuecc/UniRx.git unirx
echo "Zenject"
git clone https://github.com/modesttree/Zenject.git zenject
echo "Setup symlinks"
ln -s ./assets-folder/Zenject ./zenject/UnityProject/Assets/Zenject
ln -s ./assets-folder/Plugins/UniRx ./unirx/Assets/... | alerdenisov/llapi-example | setup.sh | Shell | mit | 545 |
#!/bin/bash
source inc_vars.sh
./sh/runngridsHR95_9new.sh
./sh/runngridsHR95_9trsk.sh
./sh/runngridsSCVT_9.sh | pedrospeixoto/iModel | sh/runswmconv.sh | Shell | mit | 112 |
#!/bin/bash
# grabs all releant files in _sass folder and builds a single, minified css
echo "" > _sass/_sass_imports.scss;
if [[ -f _sass/_variables.scss ]]; then echo "@import '_variables.scss';" > _sass/_sass_imports.scss; fi
for folder in _sass/_{'tag','class','id'}; do
if [[ -d $folder ]]; then
for i... | Quarkex/cbcanarias | compile.sh | Shell | mit | 569 |
#!/bin/sh
set +e
virtualenv env
source env/bin/activate
pip install -r requirements.txt
echo
echo "Done."
| jdhenke/logic-model | setup.sh | Shell | mit | 106 |
#!/bin/sh
set -e
if [ -z "$FLEX_SDK" ]; then
echo "FLEX_SDK is not defined. Please set it to the path to "
echo "your Flex 3 SDK installation."
echo
echo "This project requires the Flex 3 SDK:"
echo "http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK"
exit 1
fi
if [ -z "$AS3CORELIB" ]; then
echo... | statico/friend-rescue | BUILD.sh | Shell | mit | 791 |
#!/bin/bash
VIMRC="vimrc"
ZSHRC="zshrc"
SCREENRC="screenrc"
TMUXCONF="tmux.conf"
GEMRC="gemrc"
VIM_CONF="vim/conf"
GIT_CONFIG="gitconfig"
TIG_DOWNLOAD_DIR="$HOME/tig"
TIGRC="tigrc"
BASHRC="bashrc"
PECO="peco/config.json"
BIN="$HOME/bin"
NVIM_CONF="nvim/conf"
CONFIG="config"
_only_file_copy=false
#$HOME以下にある設定ファイル。スペ... | shiraji/dotfiles | setup.sh | Shell | mit | 3,559 |
#!/bin/bash
set -ex
sed -E '/^export.*proxy/d' -i /etc/default/docker
if [ -z "${http_proxy}" ]; then
>/etc/profile.d/proxy.sh
service docker restart
exit
fi
if [ -z "${https_proxy}" ]; then
https_proxy="${http_proxy}"
fi
if [ -z "${ftp_proxy}" ]; then
ftp_proxy="${http_proxy}"
fi
if [ -z "${rs... | xpfriend/pocci-box | bocci/scripts/setup/setup-proxy.sh | Shell | mit | 866 |
#!/bin/sh
LOCK_FILE=/tmp/rsync.lock
#ARGS=`getopt -o c:: -n 'rsync_mirror.sh' -- "$@"`
#eval set -- "${ARGS}"
if [ -f ${LOCK_FILE} ] #if lock file is exist
then
exit
else
trap "rm -fr /tmp/rsync.lock;exit" INT #Before the keyboard Ctrl+c is received, remove the lock File.
touch ${LOCK_FILE}... | djanedu/mirror | mirror_rsync.sh | Shell | mit | 1,070 |
#!/bin/sh
set -euo pipefail
STATUSCODE=$(curl --silent --output /dev/stderr --write-out "%{http_code}" "$1")
test "$STATUSCODE" -lt 300
| hexedpackets/docker-curl | entrypoint.sh | Shell | mit | 138 |
#!/usr/bin/env bash
# wizard
# The main wizard library. Functions are defined here, processed by
# auto_cli.sh and built into a library sourced by bin/w
#
# All the intermediary functions are produced by auto_cli.sh
wizard_start_watcher() {
common::required-help "$2" "[path] [command...]
"
local path="$... | Gandalf-/DotFiles | lib/wizard/wizard.sh | Shell | mit | 7,900 |
eval "$(mcfly init zsh)"
| nicokosi/dotfiles | mcfly/completion.zsh | Shell | mit | 26 |
#!/bin/bash
JS_COMPILER=closure_compiler.jar
CSS_COMPILER=closure-stylesheets.jar
WWW_DIR=../../server/www
java -jar $JS_COMPILER --js $WWW_DIR/js/utils/Constants.js \
--js $WWW_DIR/js/services/UtilsService.js \
--js $WWW_DIR/js/services/UserService.js \
--js $WWW_DIR/js/services/ActivityServi... | CodeWall-EStudio/SWall | tools/compiler/build_www.sh | Shell | mit | 2,934 |
#!/bin/sh
# gem insall pkb/*.gem してから実行してください。
# ファイル一覧生成は、 tree コマンドでなく、 treedeploy list を利用します。
# (tree コマンドは ファイル所有者が8文字より後ろがカットされてします。
# treedeploy list では名前がカットされることはありません。)
#
echo "#-- remove srcFolder, destFolder"
\rm -fr mySrcFolder myDestFolder
\tar zxfp mySrcFolder.tgz
echo "#-- mySrcFoler を作成しました"
cd my... | katoy/treedeploy | work/run-my-sample-using-list.sh | Shell | mit | 2,167 |
#!/bin/sh
# Utility =====================================================================
# =============================================================================
git_clone() {
local url=$1
local target=$2
git clone $url --depth=1 $target > /dev/null 2>&1
}
tar_fetch() {
local archive="$2.tar.g... | BonsaiDen/luma | setup.sh | Shell | mit | 4,934 |
pwd
# /Users/mbp/Documents/my-project/python-snippets/notebook/my_package
python3 main.py
# Traceback (most recent call last):
# File "main.py", line 1, in <module>
# from sub_package2 import sub_mod2
# File "/Users/mbp/Documents/my-project/python-snippets/notebook/my_package/sub_package2/sub_mod2.py", line 1,... | nkmk/python-snippets | notebook/my_package/import_example_inside_bash.sh | Shell | mit | 424 |
#!/bin/sh
test_description="Testing out status "
. ./test-lib.sh
cat > TODO2.txt <<CATEOF
1 [ ] if no TODO file give proper message to add task (2010-06-14)
2 [ ] what if no serial_number file? (2010-06-14)
3 [ ] Add a close for status close (2010-06-14)
4 [ ] start rubyforge project for todorb (2010-06-14)
... | rkumar/todorb | tests/t0007-status.sh | Shell | mit | 3,046 |
#!/bin/sh
# Parse and process software raid [mdadm] events
# Requires additional configuration
# Source: https://blog.sleeplessbeastie.eu/2016/02/01/how-to-parse-and-process-linux-software-raid-events/
# Script requires an action and parameter to get started
if [ "$#" -lt 2 ]; then
echo "Illegal number of parameters... | milosz/shell-octo-adventure | scripts/mdmonitor.sh | Shell | mit | 3,221 |
describe "Functions"
ADD_FUNCTION='(define (add x y) (+ x y))'
it_can_define_functions() {
test "$($LISHP '(define (add x y) (+ x y))')" = '(lambda ("x" "y") ...)'
result=$(
(
echo $ADD_FUNCTION
echo '(add 10 2.0)'
) | $LISHP | tail -n 1
)
test "$result" = '12... | wildlyinaccurate/lishp | test/functions.sh | Shell | mit | 1,050 |
#!/bin/bash
#
# Usage: extract <file>
# Description: extracts archived files / mounts disk images
#
function extract () {
if [ -f $1 ]; then
case $1 in
*.tar.bz2|*.tbz2) tar -jxvf $1 ;;
*.tar.gz|*.tgz) tar -zxvf $1 ;;
*.bz2) bunzip2 $1 ;;
*.gz) gunzip $1 ... | thebadmonkeydev/dot.minatrix | functions/extract.bash | Shell | mit | 658 |
#!/usr/bin/env bash
echo "***** Running terminals *****"
user_name=$1
function installZsh {
echo '*** Installing ZSH ***'
yum install -y zsh
chsh -s /bin/zsh
chsh -s /bin/zsh cent
# [ -f ~/.bashrc ] || rm ~/.bashrc
echo "*** Install OhMyZsh ***"
curl -LO https://raw.github.com/robbyruss... | DamianStanger/centos-node-developer-build | scripts/terminals.sh | Shell | mit | 2,100 |
#!/bin/bash
cd /home/vagrant/teamboard-client-react/ && npm install
npm start &
nohup gulp &
sleep 30 | Paviaani/teamboard | start/install_and_start_client.sh | Shell | mit | 102 |
#!/bin/bash
python report_grammar.py
python test_cpu.py
python test_mem.py
| igordejanovic/parglare | tests/perf/runall.sh | Shell | mit | 75 |
#!/bin/sh
mysqldump dm -u root -p > dm_`date +%Y-%m-%d`.dump
| DrTeamRocks/dm-lpe | extra/dump.sh | Shell | mit | 62 |
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh" \
&& . "./utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n Video Tools\n\n"
brew_install "FFmpeg" "ffmpeg"
brew_install "YouTube DL" "youtube-dl"
| deepfriedheroin/dotfiles | src/os/install/macos/video_tools.sh | Shell | mit | 285 |
#!/bin/bash
# A handy utility for exposing a folder over HTTP.
curl https://raw.githubusercontent.com/dgryski/trifles/master/servedir/main.go > servedir.go
go build servedir.go
| rbastic/glowing-tyrion | deploy/deploy-setup-servedir.sh | Shell | mit | 177 |
#!/usr/bin/env bash
source bash-toolbox/init.sh
include app.server.validator.AppServerValidator
include command.validator.CommandValidator
include help.message.HelpMessage
include jira.comment.util.JiraCommentUtil
include repo.Repo
@description prints_a_formatted_Jira_comment
jira(){
local cmd=""
local args="... | anthony-chu/build-tool | branch.sh | Shell | mit | 1,034 |
#!/usr/bin/env bash
wget http://liangfu.org/public/video_frames.tar.gz
tar zxvf video_frames.tar.gz
| liangfu/dnn | data/primate/get_primate.sh | Shell | mit | 103 |
set -o errexit
if [ -d "${ROOTPATHSH}/src/leveldb" ]; then
echo leveldb...
cd $ROOTPATHSH/src/leveldb
make memenv_test TARGET_OS=OS_WINDOWS_CROSSCOMPILE \
OPT="${ADDITIONALCCFLAGS}"
echo
cd ../../$EWBPATH
fi
cd $ROOTPATHSH/$EWBLIBS
echo libpng..
cd ${LIBPNG}
make -j2 -f scripts/makefile.gcc
... | Lederstrumpf/Gridcoin-Research | contrib/easywinbuilder/build_dep.sh | Shell | mit | 978 |
##01-head.bashrc
# If not running interactively, don't do anything
#case $- in
# *i*) ;;
# *) return;;
#esac
set -o vi
if [ -f ~/.commonrc ]; then
[ -f ~/.colors ] && . ~/.colors
# Color escape codes WITHOUT bash PS1 non-printing '\[' and '\]' escape codes
fg_black=$bash_black
fg_red=$bash_red
... | Peaches491/dotfiles | shell/bashrc.sh | Shell | mit | 2,720 |
#!/usr/bin/env bash
# ensure we have non-empty environment variables for all supplied args, or exit the process.
# Example: ensure DOM_NAME DOM_IP
ensure() {
for arg in $*
do
if [ -z "${!arg}" ]
then
echo "error: parameter '$arg' is mandatory but wasn't set"
exit 1
fi
done
}
export -f ens... | xavierpriour/xdo | commands/_functions.sh | Shell | mit | 5,525 |
#!/bin/bash $1
set -e
# demo: sh get_kvm_patch_today.sh -d 2018-10-09
while getopts "d:" arg #选项后面的冒号表示该选项需要参数
do
case $arg in
d)
echo "a's arg:$OPTARG" #参数存在$OPTARG中
if [ ! -n "$1" ] ;then
DATE=`date +"%Y-%m-%d"`
else
DATE=$OPTARG
fi
echo "c... | liker12134/my-kernel-dev-environment | kernel_mailing_list/mm_community/get_mm_patch_series_today.sh | Shell | mit | 5,656 |
#!/bin/bash
sh multitest_md5.sh > multimd5s4analyst.txt
cat multimd5s4analyst.txt | sort -u > /var/www/html/Results/multisorted_md5s4analyst.txt
now=$(date +"%Y.%m.%d.%S.%N")
filename="/var/www/html/Results/multisort_md5s4analyst.txt.$now.log" && filename2="Results/multisorted_md5s4analyst.txt.$now.log"
cat /var/www/ht... | JburkeRSAC/PizzaCat-Web | multitestx_md5.sh | Shell | mit | 390 |
#!/bin/sh
set -x
while true; do
sed -i 's/value = 43/value = 42/' mconfig.conf
sleep 1
sed -i 's/value = 42/value = 43/' mconfig.conf
sleep 1
done
| vyskocilm/misc | mconfig/cc.sh | Shell | mit | 163 |
#!/usr/bin/env bash
docker-compose up --build --exit-code-from cauldron
STATUS=$?
if [ "$STATUS" -eq "0" ]; then
echo "Tests passed";
else
echo "Tests failed to pass"
fi
exit ${STATUS}
| lycantropos/cauldron | run-tests.sh | Shell | mit | 191 |
# Note about running directly as we can't prevent people running this via sh or bash pre-cmd
echo "-----------------------------------------------------"
echo "newtheme start script ${SCRIPT_LABEL}, v${SCRIPT_VERSION}"
echo "-----------------------------------------------------"
echo ""
if [ ! -f /usr/local/bin/newthem... | digitoimistodude/air | bin/tasks/header.sh | Shell | mit | 1,145 |
#!/bin/zsh
# aws-cli
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "/tmp/awscliv2.pkg"
sudo installer -pkg /tmp/awscliv2.pkg -target /
| bevacqua/dotfiles | installation/dev.zsh | Shell | mit | 142 |
#!/bin/bash
## green means no uncommited changes -- you're good
## yellow means staged but not committed changes
## red means changes exist, nut no staged changes yet
## blue means not a git repo
textreset=$(tput sgr0) # reset the foreground colour
red=$(tput setaf 1)
green=$(tput setaf 2)
yellow=$(tput setaf 3)
blue... | markmontymark/script-git-status | git-status.sh | Shell | mit | 899 |
#!/bin/bash
set -eo pipefail
TMPDIR="${TMPDIR:-/tmp}"
JSON_C_VERSION="${JSON_C_VERSION:-0.15}"
LIBWEBSOCKETS_VERSION="${LIBWEBSOCKETS_VERSION:-4.2.1}"
build_libwebsockets() {
curl -sLo- "https://github.com/warmcat/libwebsockets/archive/v${LIBWEBSOCKETS_VERSION}.tar.gz" | tar xz -f - -C "${TMPDIR}"
pushd "${TMPDI... | tsl0922/ttyd | scripts/mingw-build.sh | Shell | mit | 1,434 |
#!/usr/bin/env bash
trap 'dump_ERROR_LOG' ERR
set -o pipefail
msg "INSTALL" "LLVM"
info "CC = ${CC} | CXX = ${CXX} | CXXFLAGS = ${CXXFLAGS} | LDFLAGS = ${LDFLAGS}"
info "#JOBS: ${POOL_JOBS}"
# Enables a debug build of llvm and clang
ENABLE_LLVM_DEBUG_BUILD=false
POOL_DIR=${POOL:?"Need to set POOL to a non-empty path"... | gnzlbg/unix_env | pool/install/llvm.sh | Shell | mit | 3,145 |
# Use OS X networksetup utility to expose the current location
if [ "$(uname)" == "Darwin" ]; then
export NETWORK_LOCATION=$(networksetup -getcurrentlocation)
fi
| jsok/dotfiles | zsh/plugins/network-location.zsh | Shell | mit | 167 |
#!/bin/sh -eu
#
# httpshare -- A simple shell script that shares a file over HTTP
#
# Copyright (c) 2019 Samuel Lidén Borell <samuel@kodafritt.se>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in th... | samuellb/scripts | httpshare.sh | Shell | mit | 4,404 |
#!/bin/bash
echo Stopping spring-boot app..
pid=`ps aux | grep "demo-fizzbuzz" | pgrep -f "spring.profiles.active="`
kill $pid
echo App Stopped at pid=$pid!
| handysofts/demo-fizzbuzz | src/data/scripts/test/shutdown.sh | Shell | mit | 160 |
#!/bin/bash
set -e
# variables which requires user filled in
# registry related
PRIVATE_IP="10.168.14.145"
PRIVATE_PORT="5000"
# extra volume for registry
HOSTDIR="/mnt"
USER="cxy"
K8S_VERSION=0.18.2
url='https://get.docker.com/'
# we support ubuntu, debian, mint, centos, fedora dist
lsb_dist=""
DOCKER_CONF=""
if... | dalanlan/k8temp | master.sh | Shell | mit | 7,954 |
# !/bin/sh
#
set -euo pipefail
trap "echo 'error: Script failed: see failed command above'" ERR
# prune files that don't need when using the node modules(like test or example code)
readyToDeleteFiles=(license* LICENSE* .npmignore .travis.yml AUTHORS .gitignore)
for file in ${readyToDeleteFiles[@]}; do
find . -nam... | Jackysonglanlan/devops | config_files/zsh/prune-node-modules.sh | Shell | mit | 491 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.