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/sh
#
## Copyright (C) 1996-2022 The Squid Software Foundation and contributors
##
## Squid software is distributed under GPLv2+ license and includes
## contributions from numerous individuals and organizations.
## Please see the COPYING and CONTRIBUTORS files for details.
##
#
# Generate Symlinks for a set of a... | squidadm/squid | errors/alias-link.sh | Shell | gpl-2.0 | 1,328 |
#!/bin/sh
# Airbase-ng WPA2 supplicant authentication
if test ! -z "${CI}"; then exit 77; fi
CHANNEL=1
SSID=thisrocks
# Load helper functions
. "${abs_builddir}/../test/int-test-common.sh"
# Check root
check_root
# Check all required tools are installed
check_airmon_ng_deps_present
is_tool_present wpa_supplicant
... | creaktive/aircrack-ng | test/test-airbase-ng-0001.sh | Shell | gpl-2.0 | 2,458 |
# (c) 2014-2015 Sam Nazarko
# email@samnazarko.co.uk
#!/bin/bash
. ../common.sh
pull_source "https://github.com/Pulse-Eight/libcec/archive/8563411d1b449edab6edb52b7beba053c1106ec0.tar.gz" "$(pwd)/src"
if [ $? != 0 ]; then echo -e "Error downloading" && exit 1; fi
# Build in native environment
build_in_env "${1}" $(p... | srmo/osmc | package/libcec-osmc/build.sh | Shell | gpl-2.0 | 3,041 |
#!/bin/sh
facter --puppet operatingsystemrelease
| pmanwatkar/actionScripts | facterLinux/operatingsystemrelease_Linux.sh | Shell | gpl-3.0 | 49 |
#!/usr/bin/env bash
# precheck.sh
# Description:
# This file should contain checks for local settings (such as sysctl)
# specific for each lab. The resulting output will go into the
# precheck.stdout.timestamp file
#
# Get status of kernel.randomize_va_space
sudo sysctl -a | grep kernel.randomize_va_space... | cliffe/SecGen | modules/utilities/unix/labtainers/files/Labtainers-master/labs/bufoverflow/bufoverflow/_bin/precheck.sh | Shell | gpl-3.0 | 321 |
#!/bin/bash
sudo yum install -y vagrant virtualbox || sudo apt install -y vagrant virtualbox
vagrant plugin install vagrant-vbguest landrush
| rgarrigue/boite_a_scripts | bootstrap.sh | Shell | gpl-3.0 | 142 |
#!/bin/bash
a_month_ago=$(date -d '30 days ago' +%s000)
for snapshot in \
$( curl localhost:9200/_snapshot/backup/_all \
| jq -r ".snapshots[] \
| if .start_time_in_millis < ${a_month_ago} \
then .snapshot \
else null end" \
| grep -v '^null$' )
do
curl -XDE... | nlamirault/risno | tools/elastic_backup_purge.sh | Shell | gpl-3.0 | 372 |
#!/bin/bash
set -e
pegasus_lite_version_major="4"
pegasus_lite_version_minor="7"
pegasus_lite_version_patch="0"
pegasus_lite_enforce_strict_wp_check="true"
pegasus_lite_version_allow_wp_auto_download="true"
. pegasus-lite-common.sh
pegasus_lite_init
# cleanup in case of failures
trap pegasus_lite_signal_int INT
trap... | elainenaomi/sciwonc-dataflow-examples | dissertation2017/Experiment 1A/logs/w-11_2/20161108T013502+0000/00/00/averageratioevent_3_ID0000027.sh | Shell | gpl-3.0 | 1,261 |
#!/usr/bin/bash
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
#
# Copyright (c) 2014, Joyent, Inc.
#
#
# Script to add "papi" zone to existing SDC 7 setups
# You... | numericillustration/sdc-headnode | incr-upgrade-scripts/add-papi.sh | Shell | mpl-2.0 | 3,593 |
export mst_DBPATH_ROOT=~/mongo-summary-tests/
export mst_BASE_PORT=28000
export mst_HOSTNAME="telecaster"
function mst_createDatadir()
{
test -d $1 && rm -rf $mst_DBPATH_ROOT/$1
mkdir -p $mst_DBPATH_ROOT/$1
}
function mst_startInstance()
{
program=$1
dbpath=$2
port=$3
db... | Percona-Lab/ognom-toolkit | mongo-summary/generated/mongo-summary-test.sh | Shell | agpl-3.0 | 4,891 |
#!/bin/bash
function compareResult() {
echo ""
echo "Comparing $1 with $2:"
if diff $1 $2 > $3; then
echo "**** OK! ****";
rm $3;
else
echo "===== test failed ====";
echo " check $3 file for diff details";
fi
}
rm *.log
make clean all
valgrind --tool=memcheck --dsymutil=yes --leak... | frederic-mahe/p-swarm | run.sh | Shell | agpl-3.0 | 667 |
#!/bin/bash
programname=$0
function usage()
{
echo "usage: $programname -r repository -m milestone"
echo " -r repository name"
echo " -m milestone id"
exit 1
}
function print_content_with_nonempty_issues() {
echo $1 | grep -q '[0-9]'
if [[ "$?" == 0 ]]; then
echo -e "$1"
fi
}
# Given a ... | minishift/minishift-centos-iso | scripts/release/issue-list.sh | Shell | lgpl-3.0 | 2,074 |
#!/bin/sh
mkdir -p /etc/rabbitmq/rabbitmq.conf.d
echo RABBITMQ_NODE_PORT=5673 > /etc/rabbitmq/rabbitmq.conf.d/port
echo "export RABBITMQ_NODE_PORT=5673" >> /etc/default/rabbitmq-server
| ashie/hatohol | server/misc/setup-rabbitmq-server-port.sh | Shell | lgpl-3.0 | 185 |
python htpasswd.py -c -b htpasswd huststore huststore | Qihoo360/huststore | hustmq/ha/nginx/conf/genhtpasswd.sh | Shell | lgpl-3.0 | 53 |
mongorestore dump/drunkslog/ -d drunkslog --drop
| lautarobock/drunkslog | etc/bin/restore_local.sh | Shell | unlicense | 49 |
#!/bin/sh
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
# /usr/share/xsessions contains available X11 session types
if [ -r /usr/lib/gnome-panel/gnome-session-flashback ]; then
exec /usr/lib/gnome-panel/gnome-session-flashback
elif [ -r /bin/mate-session ]; then
exec /bin/... | awakecoding/FreeRDS | scripts/startwm.sh | Shell | apache-2.0 | 591 |
#!/bin/bash
set -e
self="$(basename "$0")"
root="$(dirname "$(readlink -f "$BASH_SOURCE[0]")")"
images='debian alpine fedora ubuntu device'
usage() {
cat <<EOUSAGE
usage: $self [image|all]
ie: $self debian
$self all
This script generates stackbrew library for the specified Dockerfiles.
Supported imag... | nghiant2710/base-images | generate-stackbrew-library.sh | Shell | apache-2.0 | 1,248 |
#!/bin/bash
set -eux
sudo yum localinstall -y http://download.lab.bos.redhat.com/rcm-guest/puddles/OpenStack/rhos-release/rhos-release-latest.noarch.rpm
sudo rhos-release 16
sudo dnf -y install git bash-completion tmux python3-tripleoclient expect
cat >~/.tmux.conf<<EOF
# Prefix key
set-option -g prefix C-a
unbind-k... | slagle/tripleo | environments/osp16-scale/undercloud.sh | Shell | apache-2.0 | 1,139 |
#!/usr/bin/env bash
### updates the `REFRESHED_AT` env to the current day
searchdir="$(dirname $0)"
refreshDate=$(date +%Y-%m-%d)
find $searchdir -type f -name 'Dockerfile*' | while read file ; do \
sed -i -e "s/^ENV REFRESHED_AT.*/ENV REFRESHED_AT $refreshDate/" $file \
&& echo -e "replace ENV REFRESHED_AT ... | HarGit14/ubuntu-16-04-vnc | update_refreshed_at.sh | Shell | apache-2.0 | 362 |
#!/bin/bash
#
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | VersoBit/mod_pagespeed | pagespeed/system/system_tests/ipro_fixed_size.sh | Shell | apache-2.0 | 1,716 |
#!/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 ... | upmc-enterprises/kubernetes | hack/local-up-cluster.sh | Shell | apache-2.0 | 36,455 |
#!/bin/bash
# This script tests the high level end-to-end functionality demonstrated
# as part of the examples/sample-app
set -o errexit
set -o nounset
set -o pipefail
OS_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${OS_ROOT}/hack/util.sh"
test_privileges
echo "[INFO] Starting end-to-end test"
# Use either the la... | Tlacenka/origin | hack/test-end-to-end.sh | Shell | apache-2.0 | 16,497 |
java -jar DataDefender.jar database-discovery -c
| armenak/DataAnonymizer | sample_projects/database_discovery/mysql/ColumnDiscovery.sh | Shell | apache-2.0 | 49 |
#!/bin/bash
ROOT=`pwd`
BUILD=$ROOT/build/zk
BUILD_TMP=$BUILD/tmp
PLATFORM=`uname`
ZK=zookeeper-3.4.3
ZK_FILE=/$BUILD_TMP/$ZK.tar.gz
ZK_URL=http://apache.mirrors.tds.net/zookeeper/$ZK/$ZK.tar.gz
if [ "$PLATFORM" != "SunOS" ]; then
mkdir -p $BUILD_TMP
if [ ! -e "$ZK_FILE" ] ; then
echo "Downloading $ZK from $Z... | racker/service-registry | node_modules/zookeeper-client/node_modules/zookeeper/libzk-build.sh | Shell | apache-2.0 | 1,089 |
#!/usr/bin/php
<?php
require_once 'index.php'; | yhbyun/php-dbsync | dbsync.sh | Shell | bsd-2-clause | 47 |
#!/bin/sh
#
# Purpose: test all configurations with all supported python versions.
#
# Synopsis: ./runall-memorydebugger.sh [--all-configs64 | --all-configs32]
#
# Requirements:
#
# Programs:
#
# hg, valgrind
#
# Directory structure (path names are hardcoded):
#
# hgdir/2.5
# hgdir/2.6
# hgdir/2.7
... | valven/cdecimal | python/runall-memorydebugger.sh | Shell | bsd-2-clause | 7,164 |
#!/bin/bash
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Script to convert the output of build_image.sh to a usable virtual machine
# disk image, supporting a variety of different targets.
#... | smilart/scripts | image_to_vm.sh | Shell | bsd-3-clause | 4,182 |
#!/usr/bin/env bash
set -e
SCRIPT=`pwd`/$0
FILENAME=`basename $SCRIPT`
ROOT=`dirname $SCRIPT`
LICODE_ROOT="$ROOT"/..
CURRENT_DIR=`pwd`
NVM_CHECK="$LICODE_ROOT"/scripts/checkNvm.sh
export LD_LIBRARY_PATH="$LICODE_ROOT/build/libdeps/build/lib"
. $NVM_CHECK
cd $ROOT/erizoAgent
nvm use
node erizoAgent.js $* &
cd $CURR... | lodoyun/licode | erizo_controller/initErizo_agent.sh | Shell | mit | 328 |
# ltmain.sh - Provide generalized library-building support services.
# NOTE: Changing this file will not affect anything until you rerun configure.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003
# Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This program i... | Flameeyes/kdedtester | admin/ltmain.sh | Shell | gpl-2.0 | 182,522 |
#!/usr/bin/env bash
depends() {
type $* >/dev/null || exit 1
}
depends git curl unzip
basedir=$(git rev-parse --show-toplevel)
apikey=$(tr -d ' \r\n' < "$basedir/scripts/crowdin.key")
apiurl="https://api.crowdin.com/api/project/slide-for-reddit"
location='app/src/main/res'
branch=${1:-application}
if [[ -z "$ba... | ccrama/Slide | scripts/crowdin.sh | Shell | gpl-3.0 | 918 |
#
# Copyright 2016 Telefonica Investigación y Desarrollo, S.A.U
#
# This file is part of fiware-cygnus (FI-WARE project).
#
# fiware-cygnus is free software: you can redistribute it and/or modify it under the terms of the GNU Affero
# General Public License as published by the Free Software Foundation, either version 3... | telefonicaid/fiware-cygnus | compile.sh | Shell | agpl-3.0 | 1,231 |
#!/bin/bash
## Copyright (C) 2016 International Business Machines Corporation
## All Rights Reserved
################### parameters used in this script ##############################
#set -o xtrace
#set -o pipefail
here=$( cd ${0%/*} ; pwd )
export STREAMS_DOMAIN_ID=CapabilitiesDomain
export STREAMS_INSTANCE_ID=C... | jlkaus/streamsx.network | samples/SampleDNSMessageParser/script/setupCapabilities.sh | Shell | apache-2.0 | 3,808 |
#!/bin/bash
set -e
if [ "$#" -ne 6 ] ; then
echo "Usage: $0 <server's dns name> <port> </url_suffix> <path to settings file> <service_name> <mongo port>"
echo ""
echo "Examples:"
echo " $0 myserver.ics.hawaii.edu 5001 / ../config/settings.json meteor_myapp"
echo " $0 myserver.ics.hawaii.edu 5001 /my_app ../conf... | henricasanova/databet_meteor_1.4 | deploy/generate_init.d_script.sh | Shell | apache-2.0 | 1,103 |
#! /usr/bin/env bash
# Copyright (c) 2018-2020 NVIDIA Corporation
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# Released under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
#######################################################################... | thrust/thrust | ci/gpu/build.bash | Shell | apache-2.0 | 553 |
set -e
SCRIPT_PATH="$(cd $(dirname $0) && pwd)"
# Exclude lint tasks, as those are covered by the
# androidx-studio-integration-lint.sh script
$SCRIPT_PATH/impl/build-studio-and-androidx.sh \
-Pandroidx.allWarningsAsErrors \
-Pandroidx.verifyUpToDate \
-x lint \
-x lintDebug \
-x lintReport \
-x verifyDepe... | androidx/androidx | busytown/androidx-studio-integration.sh | Shell | apache-2.0 | 380 |
#!/bin/bash
#Sequence: 10, 11, 12, 13, 22
# Wrong sequence:
echo -n "*" | nc -q1 -u 10.0.0.2 10
echo -n "*" | nc -q1 -u 10.0.0.2 11
echo -n "*" | nc -q1 -u 10.0.0.2 40
# Correct Sequence
echo -n "*" | nc -q1 -u 10.0.0.2 10
echo -n "*" | nc -q1 -u 10.0.0.2 11
echo -n "*" | nc -q1 -u 10.0.0.2 12
echo -n "*" | nc -q1 -... | OpenState-SDN/ryu | ryu/app/openstate/test_port_knocking.sh | Shell | apache-2.0 | 352 |
#!/bin/bash
#
# vim: set ts=4 sw=4 et:
#
# Passed arguments:
# $1 - current pkgname to build [REQUIRED]
# $2 - target pkgname (origin) to build [REQUIRED]
# $3 - xbps target [REQUIRED]
# $4 - cross target [OPTIONAL]
# $5 - internal [OPTIONAL]
if [ $# -lt 3 -o $# -gt 5 ]; then
echo "$(basename $0): invali... | LockeAnarchist/void-packages | common/xbps-src/libexec/build.sh | Shell | bsd-2-clause | 3,523 |
#!/bin/sh
# Package
PACKAGE="bitlbee"
DNAME="BitlBee"
# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
PATH="${INSTALL_DIR}/bin:${INSTALL_DIR}/sbin:/usr/local/bin:/bin:/usr/bin:/usr/syno/bin"
BUILDNUMBER="$(/bin/get_key_value /etc.defaults/VERSION buildnumber)"
BITLBEE="${INSTALL_DIR}/sbin/bitlbee"
CFG_FILE="${INSTALL_DI... | miigotu/spksrc | spk/bitlbee/src/dsm-control.sh | Shell | bsd-3-clause | 1,877 |
#!/bin/sh -e
echo "Mounting..." | auser/beehive | rel/files/etc/etc/app_templates/mount/default.sh | Shell | mit | 32 |
#!/bin/sh
. common.sh $*
# 00000000 b 0x00000000
perl tests.pl "$TESTSPATH" execute-instruction EAFFFFFE
# 00000000 b 0x00018688
#perl tests.pl "$TESTSPATH" execute-instruction EA0061A0
# 00000000 mov r4, #156 (9C)
perl tests.pl "$TESTSPATH" execute-instruction E3A0409C
# 00000000 ldr r0, [r0]
pe... | fstltna/iosEinstein | _Tests_/scripts/test-instructions.sh | Shell | gpl-2.0 | 5,427 |
#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d resolver_TEST_continue_on_failure_dir ] ; then
rm -fr resolver_TEST_continue_on_failure_dir
else
true
fi
| impulze/paludis | paludis/resolver/resolver_TEST_continue_on_failure_cleanup.sh | Shell | gpl-2.0 | 176 |
#!/usr/bin/env bash
# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distribution ... | petrockblog/RetroPie-Setup | scriptmodules/libretrocores/lr-beetle-lynx.sh | Shell | gpl-3.0 | 1,360 |
#!/bin/bash
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
set -eo pipefail
base_dir="$(cd "$(dirname "$0")/.." && pwd)"
# regexes for packages to exclude from unit test
excluded_packages=(
"/integration(/|$)"
)
# packages that must be run serially
serial_packages=(
"git... | stemlending/fabric | scripts/run-unit-tests.sh | Shell | apache-2.0 | 6,667 |
#!/usr/bin/env bash
${IDRIS:-idris} $@ ffi011.idr --interface -o lib.js
node ./ffi011.js
rm -f *.ibc lib.js
| kojiromike/Idris-dev | test/ffi011/run.sh | Shell | bsd-3-clause | 108 |
#!/usr/bin/env bash
set -e -o pipefail
[[ -z "$NGIO_ENV_DEFS" ]] && . ./scripts/env-set.sh
if [[ -z "$(type -t dart)" ]]; then
travis_fold start install.dart
echo INSTALLING Dart SDK and Dartium ...
# URLs for sdk and dartium:
# https://storage.googleapis.com/dart-archive/channels/stable/releas... | naomiblack/angular.io | scripts/install-dart-sdk.sh | Shell | mit | 1,936 |
#!/bin/bash
# Configurations
DISTRIBUTION="osx"
./config-sudoers.sh ${DISTRIBUTION}
| kraksoft/vagrant-setup | scripts/config-sudoers/config-sudoers-osx.sh | Shell | mit | 86 |
#!/usr/bin/env bash
HT_HOME=${INSTALL_DIR:-"$HOME/hypertable/current"}
HYPERTABLE_HOME=${HT_HOME}
PIDFILE=$HT_HOME/run/RangeServer.pid
SCRIPT_DIR=`dirname $0`
. $HT_HOME/bin/ht-env.sh
$HT_HOME/bin/ht-start-test-servers.sh --no-rangeserver --no-thriftbroker --clear
$HT_HOME/bin/htRangeServer --verbose --pidfile=$PID... | nkhuyu/hypertable | tests/integration/ag-garbage-compaction/run-deletes.sh | Shell | gpl-3.0 | 1,433 |
for (( nodecount=$1; nodecount <= $2; nodecount+=$3 ))
do
for (( edgeprop=$4; edgeprop <= $5; edgeprop+=$6 ))
do
for (( backedgeprop=$7; backedgeprop <= $8; backedgeprop+=$9 ))
do
for (( inst=0; inst < ${10}; inst++ ))
do
ep=`printf "%03d" ${edgeprop}`
bep=`printf "%03d" ${backedgeprop}`
ac=`pri... | hexhex/core | benchmarks/travelplan/generateset.sh | Shell | lgpl-2.1 | 547 |
#!/bin/bash
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey).
# 2013 Xiaohui Zhang
# 2013 Guoguo Chen
# 2013 Johns Hopkins University (Author: Jan Trmal)
# 2013 Vimal Manohar
# Apache 2.0.
# This script updates an existing neural network model without ini... | thorsonlinguistics/german-neutralization | steps/nnet2/update_nnet.sh | Shell | apache-2.0 | 12,478 |
#!/bin/sh
rfkill block wifi
| Trim/qtmoko | devices/pc/src/devtools/scripts/wifi-poweroff.sh | Shell | gpl-2.0 | 28 |
#!/bin/sh
TEST_PURPOSE=goal
TEST_PROB_REPORT=0
TEST_TYPE=umlXhost
TESTNAME=l2tp-03
XHOST_LIST="NIC EAST NORTH ROAD"
ARPREPLY=--arpreply
THREEEIGHT=true
REF_EAST_CONSOLE_OUTPUT=east-console.txt
REF26_EAST_CONSOLE_OUTPUT=east-console.txt
REF_NORTH_CONSOLE_OUTPUT=north-console.txt
REF26_NORTH_CONSOLE_OUTPUT=north-co... | y-trudeau/openswan-patch-meraki | testing/pluto/l2tp-03/testparams.sh | Shell | gpl-2.0 | 1,505 |
#!/usr/bin/env bash
set -xe
"$(dirname "$0")/with-vagrant.sh" debian-7-amd64 "$* upload-ubuntu-14.04 upload-ubuntu-16.04"
"$(dirname "$0")/with-vagrant.sh" centos-7-x86_64 "$* upload-centos-7"
"$(dirname "$0")/with-vagrant.sh" centos-6-x86_64 "$* --binary-variant=gmp4 upload-centos-6"
| MichielDerhaeg/stack | etc/scripts/vagrant-distros.sh | Shell | bsd-3-clause | 286 |
#!/bin/bash
FN="cottoncdf_2.18.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.14/data/annotation/src/contrib/cottoncdf_2.18.0.tar.gz"
"https://bioarchive.galaxyproject.org/cottoncdf_2.18.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-cottoncdf/bioconductor-cottoncdf_2.18.0_src_all.tar.gz"... | cokelaer/bioconda-recipes | recipes/bioconductor-cottoncdf/post-link.sh | Shell | mit | 1,297 |
# Aliases
alias g='git'
compdef g=git
alias gst='git status'
compdef _git gst=git-status
alias gd='git diff'
compdef _git gd=git-diff
alias gdc='git diff --cached'
compdef _git gdc=git-diff
alias gl='git pull'
compdef _git gl=git-pull
alias gup='git pull --rebase'
compdef _git gup=git-fetch
alias gp='git push'
compdef ... | sstrigler/oh-my-zsh | plugins/git/git.plugin.zsh | Shell | mit | 4,367 |
#!/bin/sh
append DRIVERS "mac80211"
lookup_phy() {
[ -n "$phy" ] && {
[ -d /sys/class/ieee80211/$phy ] && return
}
local devpath
config_get devpath "$device" path
[ -n "$devpath" ] && {
for _phy in /sys/devices/$devpath/ieee80211/phy*; do
[ -e "$_phy" ] && {
phy="${_phy##*/}"
return
}
done
}... | morgenroth/openwrt | package/kernel/mac80211/files/lib/wifi/mac80211.sh | Shell | gpl-2.0 | 2,643 |
#!/bin/sh
# exercise the NaN-infloop bug in coreutils-8.13
# Copyright (C) 2011-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, either version 3 of the Lice... | andreas-gruenbacher/coreutils | tests/misc/sort-NaN-infloop.sh | Shell | gpl-3.0 | 959 |
#!/bin/bash
# We should call this from inasafe root:
# i.e. scripts/realtime/make-shakemap-local.sh
echo "Execute this script after sourcing with correct env."
xvfb-run -a --server-args="-screen 0, 1024x768x24" python realtime/earthquake/make_local_map.py /home/realtime/shakemaps
| ismailsunni/inasafe | scripts/realtime/make-shakemap-local.sh | Shell | gpl-3.0 | 285 |
#!/bin/sh
# -----------------------------------------------------------------------------
#
# Environment Variable Prequisites
#
# CARBON_HOME Home of WSO2 AppServer installation. If not set I will try
# to figure it out.
#
# JAVA_HOME Must point at your Java Development Kit installation.... | sanethd/product-as | modules/samples/product/Jaxws-Jaxrs/java_first_jaxws/run-client.sh | Shell | apache-2.0 | 2,835 |
#!/bin/sh
#
# Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
#
# WSO2 Inc. 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/l... | Kamidu/product-mdm | modules/tools/mdm-android-agent-archetype/android-agent.sh | Shell | apache-2.0 | 2,807 |
#!/bin/bash
set -eu
echo "=== Interspersed tests ==="
rm -rf blocks
tests/test.py << TEST
lfs_format(&lfs, &cfg) => 0;
TEST
echo "--- Interspersed file test ---"
tests/test.py << TEST
lfs_mount(&lfs, &cfg) => 0;
lfs_file_open(&lfs, &file[0], "a", LFS_O_WRONLY | LFS_O_CREAT) => 0;
lfs_file_open(&lfs, &... | adfernandes/mbed | storage/filesystem/littlefs/littlefs/tests/test_interspersed.sh | Shell | apache-2.0 | 5,922 |
#!/bin/bash
# Copyright 2014 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | darkheaven1983/kubernetes | hack/test-integration.sh | Shell | apache-2.0 | 2,147 |
if (( $+commands[kubectl] )); then
__KUBECTL_COMPLETION_FILE="${ZSH_CACHE_DIR}/kubectl_completion"
if [[ ! -f $__KUBECTL_COMPLETION_FILE ]]; then
kubectl completion zsh >! $__KUBECTL_COMPLETION_FILE
fi
[[ -f $__KUBECTL_COMPLETION_FILE ]] && source $__KUBECTL_COMPLETION_FILE
unset __KUBECT... | twleung/oh-my-zsh | plugins/kubectl/kubectl.plugin.zsh | Shell | mit | 3,673 |
#!/bin/bash
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | rhuss/gofabric8 | vendor/k8s.io/kubernetes/hack/e2e-internal/e2e-cluster-size.sh | Shell | apache-2.0 | 932 |
#!/usr/bin/env bash
# Бинарные часы на bash. Евгений Степанищев http://bolknote.ru/ 2011
# Bash Binary clock. Copyright by Evgeny Stepanischev http://bolknote.ru/ 2011
declare -a xy
# Выключаем Enter
bind -r '\r'
# Выключаем остальную клавиатуру
ORIG=`stty -g`
stty -echo
function Restore {
stty "$ORIG"
bind ... | SametSisartenep/dotfiles | shen/games/bclock.sh | Shell | isc | 1,645 |
#!/usr/bin/env bash
to="/Users/lvsheng/work/ticket/ticket_tpl_from_trunk"
cp -rf base ${to}/static/o2o
cp -rf boost ${to}/static/o2o
#cd ${to}/static/o2o
#sh pack.sh
#fis3 release
#cd -
| lvsheng/boostui-native | pack_to_ticket.sh | Shell | mit | 186 |
#!/usr/bin/env bash
: ${Versions:='1.4.2 1.4.4 1.4.5 1.4.6 1.4.7 1.5 1.5.1 1.5.2 1.6.1 1.6.2 1.6.4 1.7.2 1.7.4 1.7.5'}
: ${Port:='9876'}
: ${Hostname:='127.0.0.1'}
MinecraftUsersSymlink="./minecraft_users_$Hostname:$Port"
MinecraftUsersDead='players.value 0
max_players.value 0'
MinecraftUsersEmpty='players.value 0
max_... | winny-/mcstat | test/testrunner.sh | Shell | mit | 3,213 |
#!/bin/bash
DATE=`which date`
GREP=`which grep`
NETSTAT=`which netstat`
SLEEP=`which sleep`
function print_usage() {
echo ""
echo "Usage:"
echo "$0 [interval_in_seconds]"
exit 1;
}
# Input params:
# WAIT_INTERVAL
# grep executable
# netstat executable
# sleep executable
function show_tcp_connection... | grzegorzblaszczyk/admin-binfiles | bash/macosx/show_open_tcp_connections.sh | Shell | mit | 661 |
#!/bin/bash
for i in {0..99} ; do
ls -f /var/www/bashcms/pages/ | grep -E "^[0-9]{14}_" | sort > /tmp/hoge.$$ &
done
wait
rm -f /tmp/hoge.*
| ryuichiueda/BashCMSBookCodes | 100para.bash | Shell | mit | 281 |
#!/bin/sh
if test -f local.inc.sh
then
. ./local.inc.sh
fi
export LC_ALL=POSIX
# DRY non-zero: dry run
# FSHOT non-zero: do not warm up filesystem
# RESUME non-zero: do not re-run done cases
# SERVERAIDEDDELETE non-zero: use server-aided delete
# CLEANSERVERCACHE non-zero: clean server cache
if test -z "$ISCSIMOU... | zwuh/iotest | iotest.inc.sh | Shell | mit | 15,862 |
#!/usr/bin/env bash
rm -rf ./build
mkdir ./build
cp -R ./static/ ./build/
webpack
| LinusLjung/tribalwars-tradesman | build.sh | Shell | mit | 82 |
#!/usr/bin/env bash
BDIR="build"
function b {
cd $BDIR
cmake .. && make
cd ..
}
#TODO: add lcm auto generation
if [ ! -d $BDIR ]; then
mkdir build
b
else
b
fi
#Export build dir as an absolute path
BABS=$(readlink -f build)
LABS=$(readlink -f lists)
PARS=$(readlink -f param)
PABS=$(readlink -f .)
f... | EmaroLab/mocap2mav | build_package.sh | Shell | mit | 880 |
#!/bin/bash
# Mike Jones 2015-04-05
#
# Accepts two parameters:
# 1. Torrent file's URL - expects private tracker style.
# 2. The name you will use for identifying the torrent.
# You will need to set these parameters
TORRENT_DIR=~/downloads/torrents
FILE_DIR=~/downloads/files
# End of config options
declare -a DIRECT... | n7st/btcli-scripts | autocreate/download.sh | Shell | mit | 1,354 |
#!/usr/bin/env bash
if [ -f ./README.md ] && [ -f ./LICENSE ];
then
echo "Removing old gem.."
gem uninstall -x freezer_burn
echo "Building gem.."
gem build freezer_burn.gemspec
echo "Installing gem.."
gem install freezer_burn-`bump current |grep -o [0-9].*`.gem
git status
echo "Validating gem.."
gem list --l... | shadowbq/freezer_burn | build-gem.sh | Shell | mit | 397 |
#!/bin/bash
#=====================================================================================================================
# finish.sh
# by Brian Mullan (bmullan.mail@gmail.com)
#
# MIT License
#
# Copyright (c) 2016 bmullan
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of ... | bmullan/ciab-lxc-desktop-local | finish.sh | Shell | mit | 10,219 |
#!/bin/bash
format_print() {
if [[ -n $3 ]]; then
echo -n "#[fg=colour$2 bg=colour${3}]"
else
echo -n "#[fg=colour${2}]"
fi
echo -n $1
}
separator() {
echo -n " "
}
| zankard/dotfiles | utils/helpers.sh | Shell | mit | 183 |
#!/bin/bash
export PROJECT_ROOT=`pwd`
export BUILD_DIR=${PROJECT_ROOT}/build
export RELEASE_DIR=${PROJECT_ROOT}/release
function create_dir {
FOLDER_NAME=$1
if [ ! -d ${FOLDER_NAME} ]; then
mkdir ${FOLDER_NAME}
fi
}
# Find current branch
CURRENT=`git branch | grep '\*' | awk ' {print $2}'`
creat... | letuananh/intsem.fx | build.sh | Shell | mit | 1,474 |
#!/bin/bash
echo ">> Setting server's hostname"
[[ ! -z $cf_hostname ]] && sudo hostnamectl set-hostname $cf_hostname
echo ">> Setting server's timezone"
[[ ! -z $cf_timezone ]] && sudo timedatectl set-timezone $cf_timezone
echo ">> Prevent remote access with plaintext password"
sudo sed -i -e "\\#PasswordAuthenticat... | oanhnn/my-centos-env | script/common.sh | Shell | mit | 1,964 |
#!/bin/sh
echo 'Remove local branch $1'
git branch -D $1
echo 'Remove remote branch $1'
git push origin :$1 | royriojas/mac-scripts | scripts/rm-branch.sh | Shell | mit | 109 |
#!/bin/bash
#
# Very simple obnam script (without LVM or BTRFS snapshot)
#
# VERSION :0.2
declare -a VOLUMES=( fsroot:/ boot:/boot/ homes:/home/ shared:/storage/ )
MOUNT_POINT="/media/backup"
declare -a DISK_UUID=( aaaaaaaa-9999-9999-aaaa-999999999999 bbbbbbbb-1111-1111-bbbb-111111111111 )
MOUNT_SUCCESS="0"
OBNA... | djeraseit/debian-server-tools | backup/obnam.sh | Shell | mit | 1,812 |
#!/usr/bin/env bash
brew install yarn
npm install -g react-devtools
# Languages
npm install -g less
npm install -g typescript
npm install -g typings
npm install -g jsx
npm install -g elm
# Linters
npm install -g standard
npm install -g prettier
npm install -g eslint
npm install -g babel-eslint
npm install -g tslint
n... | franzip/dotfiles | brew-node.sh | Shell | mit | 731 |
#!/bin/bash
if iptables -A INPUT -s $1 -j DROP
then echo "[`date`] IP Address $1 blocked in IPTABLES"
service iptables save &> /dev/null
fi
| supportsages/block-whm-root-access-from-unknown-IPs | deny_in_iptable.sh | Shell | mit | 141 |
# Homebrew - The missing package manager for macOS
# https://brew.sh/
if [ "$(uname)" != "Darwin" ]; then
echo 'This script is only for macOS'
exit
fi
if brew ls --versions > /dev/null; then
echo "Homebrew is installed, updating..."
brew update && brew upgrade && brew cleanup
else
echo "Installing Homebrew.... | RodolfoDiaz/codelibrary | scripts/brew_setup.sh | Shell | mit | 835 |
#!/bin/bash
# setup script
ansible-playbook -i hosts.txt site.yml
| rackerlabs/ansible-mongodb | mongodb_provision.sh | Shell | mit | 67 |
javadoc -d doc -sourcepath src/main/java -subpackages spaceinvaders -exclude com.google.gson
| apetenchea/SpaceInvaders | getDoc.sh | Shell | mit | 93 |
#!/bin/bash
die() {
echo "$*" 1>&2
exit 1
}
usage() {
cat <<EOF
download {level}
EOF
}
file() {
local type=$1
local level=$2
local suffix=$3
case "$type" in
prefix)
echo https://firmware.sphere.ninja/latest/
;;
stem)
echo ubuntu_armhf_trusty_norelease_sphere-
;;
stem+level)
echo $(file stem)${leve... | ninjasphere/sphere-factory-reset | ninjapack/root/opt/ninjablocks/factory-reset/bin/download.sh | Shell | mit | 1,197 |
#!/bin/sh
export root=$PWD
export TKD_VERSION="2.6.3-p62"
export TKD_HOME_DEV="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null 2>&1 && pwd )"
export TKD_DEPENDENCIES_HOME="$TKD_HOME_DEV/Supplements"
export TKD_DEPENDENCIES_TARBALLS="$TKD_DEPENDENCIES_HOME/tarballs"
export TKD_DEPENDENCIES_CODE="$TKD_DEPENDENC... | tokaido/tokaidoapp | Scripts/environment.sh | Shell | mit | 3,324 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2008:0981
#
# Security announcement date: 2008-12-04 16:56:04 UTC
# Script generation date: 2017-01-01 21:12:23 UTC
#
# Operating System: Red Hat 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - ruby-debuginfo.i386:1.8.5-5.el5_2.6
# ... | Cyberwatch/cbw-security-fixes | Red_Hat_5/x86_64/2008/RHSA-2008:0981.sh | Shell | mit | 2,080 |
export MONGOLAB_URI=localhost:27017/brew-o-matic
node app.js
| lautarobock/brew-o-matic | etc/bin/startup.sh | Shell | mit | 61 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_CONF=default
CND_DISTDIR=dist
TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/openstorm.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=openstorm.X.${IMAGE_TYPE}.${OUTPUT_SUFF... | mzeitler/openstrom | firmware/communication stack/openstorm.X/nbproject/Package-default.bash | Shell | mit | 1,381 |
#!/bin/bash
set -e
cleanup() {
pkill cavalieri || true
pkill send-events.py || true
rm -rf cavalieri-rules || true
sudo sh -c "cat > /var/mail/ubuntu"
}
git clone https://github.com/juruen/cavalieri-rules.git
cp rules-mail.cpp cavalieri-rules/rules.cpp
cd cavalieri-rules && mkdir build && cd build && cmak... | juruen/cavalieri | ci/email-test/run.sh | Shell | mit | 678 |
#!/bin/bash
KEYWORDS_ISRAEL="Israel"
KEYWORDS_ANCIENTISRAEL="Israelite|Ancient(| )Israel"
KEYWORDS_JERUSALEM="Jeru(|-)salem|wailing(| )wall"
KEYWORDS_JERUSALEM_EXCLUDE="Jerusalem(| )artichoke" #Jerusalem artichoke is a tuber from a biannual sunflower, and has nothing to do with the city or Israel
KEYWORDS_TELAVIV="Tel... | MW-autocat-script/MW-autocat-script | catscripts/Government/Countries/Israel/Israel.sh | Shell | mit | 1,050 |
#just a script to redowndload the algebra_seminar pdf from the math.ubbcluj.ro/~crivei/infoI site
wget -q http://math.ubbcluj.ro/~crivei/InfoI/algebra_seminar.pdf -O ~/courses/algebra/algebra_seminar.pdf
echo "Completed"
| rusucosmin/courses | ubb/algebra/refresh.sh | Shell | mit | 221 |
#!/bin/sh
#
# AX-ZSH: Alex' Modular ZSH Configuration
# Copyright (c) 2015 Alexander Barton <alex@barton.de>
#
# Include "ax-common.sh":
ax_common_sourced=
for dir in "$HOME" "$HOME/.ax" /usr/local /opt/ax /usr; do
[ -z "$ax_common_sourced" ] || break
ax_common="${dir}/lib/ax/ax-common.sh"
# shellcheck source=/usr/... | alexbarton/ax-zsh | install.sh | Shell | mit | 2,324 |
jshint src/main/resources/assets/js/app.js src/main/resources/assets/js/*/*
| yammer/schedulizer | checkStyle.sh | Shell | mit | 76 |
#! /bin/bash -e
# ---
# RightScript Name: RL10 Linux RightScale Mirrors
# Description: |
# RightScale provides mirrors of some OS distributions. Snapshots of these mirrors
# are taken daily so that any the mirrors can be "frozen" to any given day. These
# mirrors also usually come from a fixed IP range for firew... | rightscale/rightlink_scripts | rll-examples/rightscale-mirrors.sh | Shell | mit | 11,808 |
#!/bin/zsh
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion" ] && . "/usr/local/opt/nvm/etc/bash_completion" # This loads nvm bash_completion | sundayoyeniyi/.dotfiles | zsh-config/nvm.zsh | Shell | mit | 252 |
#!/bin/bash
# Script retrieves the current IP Address from a standard German Telecom Router and
# uses this to update an Amazon AWS Route 53 zone
CURL="/usr/bin/curl -ks"
TMPFILE=/tmp/`date +%Y%m%d_%H%M%S`.awsdns
AWSBIN=/usr/local/bin/aws
#URL to the router page containing the current IP
URL="https://<YOUR ROUTER IP H... | th0mi/ddns | updateAws.sh | Shell | mit | 1,426 |
#! /bin/sh
docker build --rm -t ev3cc .
| in4lio/ev3dev-c | docker/build.sh | Shell | mit | 41 |
#!/usr/bin/env bash
# Copyright 2016-2017 Maximilian Huber <oss@maximilian-huber.de>
# SPDX-License-Identifier: MIT
set -ex
workdir=$(pwd)
cd $(dirname "${BASH_SOURCE[0]}")
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
xauth nlist :0 | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
# docker build -t mhuber/tex --... | maximilianhuber/myconfig | dotfiles/docker/dockerfiles/tex/compile.sh | Shell | mit | 649 |
#!/bin/sh
/usr/lib/virtualbox/VirtualBox --comment "Sandbox" --startvm "e800af50-c47e-4dfd-81e8-d45d1fde250a"
| ammongit/scripts | apps/sandbox-vm.sh | Shell | mit | 111 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.