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
# cut.sh
cut -d " " -f1,3 /etc/mtab
uname -a | cut -d " " -f1,3,11,12
# 使用cut命令从e-mail中提取消息头:
grep "Subject:" read-messages | cut -c10-80
Re:Linux suitable for mission-critical apps?
MAKE MILLIONS WORKING ATHOME!!!
Spam complaint
Re: Spam complaint
# 列出所有在/etc/passwd中的用户。
FILENAME=/etc... | yaowenqiang/bash | outer-cmd/cut.sh | Shell | gpl-2.0 | 583 |
#!/bin/sh
#
# $Id$
#
# Copyright (c) 2002-2009
# The Xfce development team. All rights reserved.
#
# Written for Xfce by Benedikt Meurer <benny@xfce.org>
# and Brian Tarricone <brian@tarricone.org>.
#
export XDT_AUTOGEN_REQUIRED_VERSION="4.7.0"
(type xdt-autogen) >/dev/null 2>&1 || {
cat >&2... | xfce-mirror/xfce4-datetime-plugin | autogen.sh | Shell | gpl-2.0 | 705 |
#!/bin/sh
# Generic start / stop / restart button handler for webconf services
# Part of the web configuration system for LEAF routers
# Copyright (C) 2004 Nathan Angelacos - Licensed under terms of the GPL
# $Id: svcstat.sh,v 1.2 2008/04/04 09:36:43 mats Exp mats $
# takes 3 parameters:
# cmd (start|stop|restart)
# ... | LEAF-Bering-uClibc/bering-uclibc | repo/webconf/var/webconf/lib/svcstat.sh | Shell | gpl-2.0 | 2,480 |
export CROSS_COMPILE=/home/steve/compiler/bin/arm-none-linux-gnueabi-
INITRAMFS_DIR=G1initramfs
make steve_usa_defconfig
export KBUILD_BUILD_VERSION="STeVE's2.1USBeta"
export LOCALVERSION="-G1XXKPN-CL562447"
make -j2
cp crypto/ansi_cprng.ko $INITRAMFS_DIR/lib/modules/
cp drivers/scsi/scsi_wait_scan.ko $INITRAMFS_DIR/li... | SteveS84/Galaxy-Player-4.0-Kernel | build_kernel_usa.sh | Shell | gpl-2.0 | 669 |
#!/usr/bin/env bash
git clone --depth 1 --branch z3-4.8.7 https://github.com/Z3Prover/z3.git
cd z3
mkdir build
cd build
LDFLAGS="-static" cmake -DZ3_BUILD_LIBZ3_SHARED=OFF ..
make -j 4
make install | bobsummerwill/solidity | scripts/install_static_z3.sh | Shell | gpl-3.0 | 198 |
#!/bin/sh
#Per si el LANG no estigues ben posat, en emprar accents al zenity, fallaria.
if [ -z $LANG ]; then
export LANG=C.UTF-8
fi
#Deshabilitam proxy per assegurar-mos que les peticions al seycon van directes.
unset https_proxy
unset http_proxy
#En procés: independitzar mostrar missatges de error i warni... | annonygmouse/linuxcaib | linuxcaib.deb/linuxcaib/opt/caib/linuxcaib/caib-pam-auth.sh | Shell | gpl-3.0 | 23,179 |
#!/bin/sh
oscsend localhost 4001 /oled/aux/line/2 s "wifi"
ip link set wlan0 up
wpa_supplicant -D rtl8192cu,wext -i wlan0 -c wifi.conf &
dhcpcd wlan0
IP=$(hostname -i)
oscsend localhost 4001 /oled/aux/line/3 s $IP
# set to aux screen, signals screen update
oscsend localhost 4001 /oled/setscreen i 1
| bapch/Organelle_scripts | System scripts/wifi/run.sh | Shell | gpl-3.0 | 303 |
# DESCRIPTION
# Counts all files of type $1 in the current directory, then deletes every one that is not a multiple of $2 minus one.
# USAGE
# With this script in your PATH, run it with these parameters:
# - $1 the file type to search for (in the current directory only).
# - $2 the multiple of those files to _keep_ wh... | r-alex-hall/fontDevTools | scripts/fileNamesAndTimestamps/decimateFileType.sh | Shell | gpl-3.0 | 2,071 |
#!/bin/bash
# *** INSTALL DEPENDENCIES ***
sudo apt-get --yes install \
scons scons-doc git git-svn subversion \
subversion-tools systemtap-sdt-dev systemtap systemtap-client \
systemtap-common systemtap-doc systemtap-grapher systemtap-runtime python-setupdocs \
python-setuptools python-all python-all... | jmanoel7/my_shell_scripts | bin/instalar-pyv8-debian.sh | Shell | gpl-3.0 | 3,899 |
#!/usr/bin/env bash
# Se deja comentado a modo de documentacion: esta es la forma de evitar que Py-Art imprima en pantalla el mensaje de bienvenida.
#export PYART_QUIET=True
# Forma mas simple de usar la herramienta. El resultado va a la misma carpeta del archivo de entrada. Con -v indico que
# imprima informacion a... | INTA-Radar/radar-cmd | Testing/test_with_coverage.sh | Shell | gpl-3.0 | 5,758 |
#!/bin/bash
for i in $(ls -r /usr/share/zoneinfo/); do diff /usr/share/zoneinfo/$i /etc/localtime >/dev/null 2>&1; ret=$?; [[ $ret == 0 ]] && echo "Bingo: $i" ; done
| mboyar/utility-scripts | get-timezone.sh | Shell | gpl-3.0 | 167 |
#!/bin/sh
# Kill Gracenote Server
sh /jci/scripts/kill_gn.sh &
| Trevelopment/MZD-AIO-TI-X | app/files/tweaks/config/disable_gracenote/stage_usb.sh | Shell | gpl-3.0 | 64 |
#!/bin/sh
# run scan-build (clang) static analysis and dump the
# results in the parent-directory
SCAN_RESULTS="/tmp/scan-build"
if [ -e Makefile ]
then
make spotless
fi
scan-build -v ./configure
scan-build -v -o $SCAN_RESULTS make
| jjgreen/vfplot | script/scan-build.sh | Shell | gpl-3.0 | 239 |
#!/bin/sh
export GR_DONT_LOAD_PREFS=1
export srcdir=/home/zitouni/gnuradio-3.6.1/gr-vocoder/python
export PATH=/home/zitouni/gnuradio-3.6.1/build/gr-vocoder/python:$PATH
export LD_LIBRARY_PATH=/home/zitouni/gnuradio-3.6.1/build/volk/lib:/home/zitouni/gnuradio-3.6.1/build/gruel/src/lib:/home/zitouni/gnuradio-3.6.1/build... | zitouni/gnuradio-3.6.1 | build/gr-vocoder/python/qa_cvsd_vocoder_test.sh | Shell | gpl-3.0 | 752 |
#!/bin/bash
set -e -x
# The default build branch for all repositories. This defaults to
# TRAVIS_BRANCH unless set in the Travis build environment.
WTSI_NPG_BUILD_BRANCH=${WTSI_NPG_BUILD_BRANCH:=$TRAVIS_BRANCH}
sudo apt-get install -qq odbc-postgresql
sudo apt-get install libgd2-xpm-dev # For npg_tracking
sudo apt-g... | keithj/npg_irods | scripts/travis_install.sh | Shell | gpl-3.0 | 4,736 |
#!/bin/bash
set -e && set -x
# install it
curl https://apt.secrethub.io | sudo bash
echo "Run 'secrethub credential backup' on an existing machine."
secrethub init
| vkottler/dotfiles | bash/setup_secrethub.sh | Shell | gpl-3.0 | 166 |
#!/bin/sh
# Basic tests for "install".
# Copyright (C) 1998-2018 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 License, or
# (at your o... | pexip/os-coreutils | tests/install/basic-1.sh | Shell | gpl-3.0 | 4,900 |
#! /bin/bash
# permet de passer d'un fichier YAML à un fichier XML exploitable par renderd
echo ""
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo " BR"
cp osm_br.yml osm_br.mml
carto osm_br.mml > osm_br.xml
rm osm_br.mml
echo ""
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo... | osm-bzh/osmbr-mapstyle | scripts/yaml2xml.sh | Shell | gpl-3.0 | 907 |
# 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 License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# bu... | dopsi/al32-torrent | al32-mktorrent.sh | Shell | gpl-3.0 | 4,724 |
#!/bin/bash
set -e
find . -name "*.template" -print0 | while read -d $'\0' file
do
if [[ $file == *nat-subnets.template || $file == *mesosphere.template ]] ;
then
echo ''
echo '----!!! nat-subnets amd mesosphere fail validation !!!----'
else
echo ""
echo "Validating $file";
aws cloudformatio... | Bit-Clouded/Glenlivet | cicd/validate-templates.sh | Shell | gpl-3.0 | 380 |
#!/bin/sh
echo '>>> Start external dependency'
docker run -d --name zkserver -t "jetstream/zookeeper"
sleep 5
docker run -d --name mongoserver -t "mongo"
sleep 5
docker run -d --name kafkaserver -t "jetstream/kafka"
sleep 5
docker run -d --name cassandraserver -t "poklet/cassandra"
echo '>>> Sleep 30 seconds'
sle... | marcelmaatkamp/docker-applications | pulsar/pipeline/rundemo.sh | Shell | gpl-3.0 | 2,584 |
#!/bin/bash
# update with your own paths
LATTICE_TOOL_DIR=/media/Data/work/Tools/srilm/bin/i686-m64
LM_DIR=/media/Data/work/Development/EclipseWorkspace/TextCleanser/data/
$LATTICE_TOOL_DIR/ngram -lm $LM_DIR/tweet-lm.gz -mix-lm $LM_DIR/latimes-lm.gz -lambda 0.7 -mix-lambda2 0.3 -server-port 12345 &
| gouwsmeister/TextCleanser | start_ngram_server.sh | Shell | gpl-3.0 | 300 |
#!/bin/bash
# vim: ts=4:sw=4
. ~/plescripts/plelib.sh
. ~/plescripts/global.cfg
EXEC_CMD_ACTION=EXEC
typeset -r ME=$0
typeset -r PARAMS="$*"
typeset -r str_usage=\
"Usage : ${ME##*/} <libname>
Compte le nombre de fois qu'une fonction de la lib <libname> est utilisée dans un
script.
Ex : ${0##*/} ~/plescripts/plelib.... | PhilippeLeroux/plescripts | shell/lib_func_usage.sh | Shell | gpl-3.0 | 1,605 |
#!/bin/bash
ant -Dprofile=test clean ear
ant -Dprofile=quality clean ear
ant -Dprofile=prod clean ear | nchieffo/RestService2017 | build.sh | Shell | gpl-3.0 | 101 |
#!/bin/sh
(
echo "# Встановлення необхідних PPA..." ; sleep 1
sudo add-apt-repository ppa:webupd8team/y-ppa-manager
case $? in
1) zenity --error --text "Помилка встановлення"
;;
esac
echo "10"
echo "# Оновлення інформації про пакунки..." ; sleep 1
sudo apt update
echo "20"
echo "# Встановлення пакунків..." ; sl... | karpusv/SchoolHub | installer.sh | Shell | gpl-3.0 | 969 |
#!/bin/sh
# libevent development files are required for gevent
sudo apt-get install libevent-dev
# Install GeoDjango dependencies -- see
# https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#ubuntu
sudo apt-get install binutils gdal-bin libproj-dev postgresql-9.1-postgis \
postgresql-server-dev-9.1 py... | codeforsanjose/MobilityMapApi | ci/install.sh | Shell | gpl-3.0 | 879 |
:
# hydrology_select_value4validation.sh
# ------------------------------------
if [ "$#" -ne 5 ]
then
echo "Usage: $0 application station datatype begin_date end_date" 1>&2
exit 1
fi
application=$1
station=$2
datatype=$3
begin_date=$4
end_date=$5
table_name=`get_table_name $application measurement`
echo "select m... | timhriley/appaserver | src_hydrology/hydrology_select_value4validation.sh | Shell | gpl-3.0 | 749 |
#! /bin/bash
# Función para crear archivo de texto
export LANG=C.UTF-8
#RAW PDF LOCATION
#../../../../data/declaranet/cv/
#OUTPUT FILE NAME
OUTPUT="../../data/declaranet/cv_to_text.txt"
if [ ! -e "$OUTPUT" ] ; then
echo 'NOMBRE|SECTOR|PODER|AMBITO|INSTITUCION_O_EMPRESA|UNIDAD_ADMINISTRATIVA|PUESTO|FUNCION_PRINCIPAL... | rsanchezavalos/compranet | compranet/pipelines/etl/bash_scripts/declaranet.sh | Shell | gpl-3.0 | 1,770 |
#!/bin/bash
gprof -l fastion gmon.out > profl.txt
gprof fastion gmon.out > prof.txt
gprof2dot prof.txt > prof.dot
dot -Tpng -oprof.png prof.dot
exit | lmether/FASTION | makeProfile.sh | Shell | gpl-3.0 | 150 |
sudo apt install -y fonts-hack-ttf
| Yixf-Education/configure_Linux | 02_software/03_font-hack.sh | Shell | gpl-3.0 | 35 |
#!/usr/bin/env bash
source ~/.bash_profile
LOAD_USER_FUNTION
# 파일 보전 우선순위 htm=html=hwp=mht>odt=odp>doc=docx>pdf>fb2?txt
# 각 폴더 마다 존재하는 같은 이름 다른 확장자를 가진 파일들을 대상으로하여, 원본파일을 새로운 문서포멧으로 변환시키고, 원본과 전자책용 파일들을 삭제시키는 것이 목적.
# 단순 파일이 아니라, 두개 이상의 파일이 모여있을 경우도 처리해야겠다. 예를 들어, txt mp4와 같은 경우. 만약 doc mp4와 같은 경우 mp4는 자동삭제되게 된다. 그러나, ... | Thestar3Preservation/ScriptPack | Bash Shell Script/보관/전자책용 문서를 포함한 파일들을 변환하기.sh | Shell | gpl-3.0 | 7,658 |
#!/bin/bash -e
# Add no-password sudo config for vagrant user
echo "%vagrant ALL=NOPASSWD:ALL" > /etc/sudoers.d/vagrant
chmod 0440 /etc/sudoers.d/vagrant
# Add vagrant to sudo group
usermod -a -G sudo vagrant
# Install vagrant key
mkdir /home/vagrant/.ssh
chmod 700 /home/vagrant/.ssh
cd /home/vagrant/.ssh
wget --no-... | enoch85/scripts | packer/nextcloud/scripts/vagrant.sh | Shell | gpl-3.0 | 573 |
#!/bin/sh
read -p "Username: " USERNAME;
stty -echo;
read -p "Password: " PASSWORD;
stty echo;
mkdir -p site/lib/VO/DAO;
cd site/lib/VO
echo "";
echo "Generating VO Source Files..."
ppdao --database CinciLMS2 \
--tables Courses,CourseRoles,FactCourseEnrollment \
--keys FactCourseEnrollment=CourseID \
--v... | lainproliant/CinciLMS | genDAOVO.sh | Shell | gpl-3.0 | 2,572 |
#!/bin/bash
##check if the user has root access
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
loop=/sys/kernel/config/target/loopback
for wwn in ${loop}/naa* ; do
[ -d $wwn ] || continue
for t in ${wwn}/tpgt_* ; do
[ -d $t ] || continue
for l in ${t}/lun/lun_* ; do
[ -d $l ] || conti... | hreinecke/tcm-scripts | remove_loopback.sh | Shell | gpl-3.0 | 552 |
#!/bin/bash -ex
@import(userdata/common.sh)@
# Essential Packages
# The following packages are part of the FuzzingOS base image:
#sudo apt-get --yes --quiet update
#sudo apt-get --yes --quiet upgrade
#sudo apt-get --yes --quiet build-dep firefox
#sudo apt-get --yes --quiet install python python-pip python-dev git me... | choller/laniakea | userdata/peach.sh | Shell | mpl-2.0 | 1,916 |
#!/bin/bash
set -ex
source docker/bin/set_git_env_vars.sh
if docker pull "$DEPLOYMENT_DOCKER_IMAGE"; then
echo "image already exists, skipping the build"
else
make clean build-ci
fi
# push and tag images
# we have to do this even if we didn't build a new image so that
# the latest and git-tag tags are pushed... | MichaelKohler/bedrock | bin/build-release-image.sh | Shell | mpl-2.0 | 624 |
#!/bin/sh -e
echo "NO_START=0\nJETTY_HOST=127.0.0.1\nJETTY_PORT=8983\nJAVA_HOME=$JAVA_HOME" | sudo tee /etc/default/jetty
sudo cp ckan/ckan/config/solr/schema.xml /etc/solr/conf/schema.xml
sudo service jetty restart
nosetests --nologcapture --with-pylons=subdir/test.ini --with-coverage --cover-package=ckanext.panama -... | okfn/ckanext-panama | bin/travis-run.sh | Shell | agpl-3.0 | 364 |
#
# Copyright (c) 2010 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
# This file is part of the Emulab network testbed software.
#
# This file 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 Fou... | nmc-probe/emulab-nome | pelab/reset-plab.sh | Shell | agpl-3.0 | 2,965 |
#!/bin/bash
pkill node
pkill npm
mv current-log old-log
nohup nodemon >current-log 2>&1
| metamorp/website | restart_serving.sh | Shell | agpl-3.0 | 89 |
#!/bin/bash
##
## @brief @(#) Test18 Launcher
##
## @file run.sh
##
## -----------------------------------------------------------------------------
## Enduro/X Middleware Platform for Distributed Transaction Processing
## Copyright (C) 2009-2016, ATR Baltic, Ltd. All Rights Reserved.
## Copyright (C) 2017-2019, Mavima... | endurox-dev/endurox | atmitest/test018_tpacalltout/run.sh | Shell | agpl-3.0 | 2,625 |
curl -s $1 | grep '"id":' | sed 's/.*"id":"//' | sed 's/".*//' | while read OBJ; do
OBJREV=$(curl -s http://localhost:5984/civa/$OBJ | sed 's/{"_id":"//' | sed 's/","_rev":"/?rev=/' | sed 's/".*//')
curl -s -X DELETE http://localhost:5984/civa/$OBJREV
done
| 24eme/CIVA | project/bin/delete_from_view.sh | Shell | agpl-3.0 | 259 |
#!/bin/bash -e
IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img"
on_chroot sh -e - <<EOF
/etc/init.d/fake-hwclock stop
hardlink -t /usr/share/doc
EOF
rm -f ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache
rm -f ${ROOTFS_DIR}/usr/sbin/policy-rc.d
rm -f ${ROOTFS_DIR}/usr/bin/qemu-arm-static
if [ -e ${ROOTF... | fallnet/openwifiappliance | platform/rpi3/docker/export-image_03-finalise_01-run.sh | Shell | agpl-3.0 | 1,036 |
#!/bin/bash
########################################################################
# ClassCat/Volume-Notebook Asset files
# Copyright (C) 2015 ClassCat Co.,Ltd. All rights reserved.
########################################################################
#--- HISTORY ------------------------------------------------... | classcat/quayio-volume-notebook | assets/cc-init.sh | Shell | agpl-3.0 | 1,305 |
#!/bin/bash
email='asdf@gmail.com'
printf '%s (%s)\n' $email ${#email}
| devpanel/serverlink | bin/seeds/pivotx/teste2.sh | Shell | agpl-3.0 | 72 |
ln -s ../../II_docs/lib/ lib
################################################
## The source text is kept in plain form ######
export TEXT_COMPRESSOR=PLAIN;
# export INDEX_TYPE=RICE ;make ##1.4
# export INDEX_TYPE=RICE_RLE ;make ##1.5
# export INDEX_TYPE=MOFFAT_RICE ; make ##1.2
# ... | migumar2/uiHRDC | uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/compile.sh | Shell | lgpl-2.1 | 4,196 |
#$ -S /bin/bash
./ingestDir.sh /StagingArea/gridtests/extract/copySqlIgslSource.sh /StagingArea/gridtests/extract/output/IGSL/IgslSource/000 &
./ingestDir.sh /StagingArea/gridtests/extract/copySqlIgslSource.sh /StagingArea/gridtests/extract/output/IGSL/IgslSource/001 &
./ingestDir.sh /StagingArea/gridtests/extract/cop... | esdc-esac-esa-int/gaia | dl/tags/gaia-dl-ingestion-0.9.0/setup/startup_scripts/ingest_parallelized.sh | Shell | lgpl-3.0 | 1,594 |
echo eth0 > .netem-on
sudo tc qdisc add dev eth0 root netem delay 100ms loss 5.0%
| gritzko/swift | mfold/net.lossy.sh | Shell | lgpl-3.0 | 83 |
#!/bin/bash
# Run build process in docker container.
set -ex -o pipefail
CID=
TMPDIR=$(mktemp -d)
function docker_rm() {
if [[ -z "$CID" ]]; then
return 0
fi
if [[ -n "$LEAVE_CONTAINER" ]]; then
if [[ "${LEAVE_CONTAINER}" != "0" ]]; then
echo "Skip to clean container: ${CID}"
... | axsh/openvnet | ci/ci.el6.third-party/build.sh | Shell | lgpl-3.0 | 1,158 |
#!/bin/sh
#set -o errexit
VERSION="8.0"
DIR=$(cd `dirname $0`; pwd)
BASE=`basename $0`
if [ -n "$1" ]; then
VERSION="$1"
fi
echo Pull all subtree repo...
find $DIR -maxdepth 1 -mindepth 1 -type d -not -path '$DIR/.git' | xargs -I '{}' basename '{}' | xargs -I '{}' git subtree pull --prefix '{}' '{}' $VERSION
ec... | MackZxh/OCA-Choice | oca_update_subtree.sh | Shell | lgpl-3.0 | 328 |
#!/bin/bash
# various ids
card_id=0
id_front=1
id_headphone=9
id_automute=18
# Most used values
min_volume=0
max_volume=87
enum_disabled='Disabled'
enum_enabled='Enabled'
function run_control {
# Accepts card_id, num_id, value
amixer -c $1 cset numid=$2 $3 >> /dev/null 2>&1
return $?
}
function change_v... | jlebonzec/audioswitch | audioswit.sh | Shell | unlicense | 1,871 |
#! /bin/bash
# enumerate all web-ui pages
#
if [[ "$#" == 0 ]]
then
OUTPUT="/dev/null"
else
OUTPUT="$2"
fi
echo "ui tests @${STORE_HOST}"
function http_get () {
echo -n "${STORE_URL}$1 "
echo $CURL -w "%{http_code}\n" -s -L -u ":${STORE_TOKEN}" -o $OUTPUT ${STORE_URL}$1 > $ECHO_OUTPUT
$CURL -w "%{http_co... | dydra/http-api-tests | web-ui/web-ui.sh | Shell | unlicense | 1,183 |
#!/bin/bash
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# This script is designed to be run in the org3cli container as the
# first step of the EYFN tutorial. It creates and submits a
# configuration transaction to add org3 to the network previously
# setup in the BYFN tutor... | huangeason26/fabric-samples | first-network/scripts/step1org3.sh | Shell | apache-2.0 | 2,217 |
#!/bin/bash
##
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | rdblue/cm_csds | SPARK/src/scripts/control.sh | Shell | apache-2.0 | 8,405 |
#!/bin/bash
#############################################################
#Read options, currently only selecting one vm from a cluster
OPTIND=1 #A POSIX variable, reset in case getopts has been used previously in the shell.
while getopts "n:" opt; do
case "$opt" in
n)
vm_name=$OPTARG
;;
esac
d... | mxhdev/aloja | aloja-deploy/deploy_cluster.sh | Shell | apache-2.0 | 1,488 |
#!/bin/bash
# Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | googleapis/python-securitycenter | .kokoro/build.sh | Shell | apache-2.0 | 1,764 |
#!/bin/bash
# Copyright 2022 The gVisor 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 or a... | google/gvisor | tools/nogo/sanity/sanity_test.sh | Shell | apache-2.0 | 1,043 |
#!/bin/sh
cat $1 > $2
| alexsomesan/prometheus-test-environment | ed.sh | Shell | apache-2.0 | 22 |
#!/bin/bash
# detect devices on 1w-bus and write config
digitemp_DS9097U -i -s /dev/ttyS1 -c /opt/beerbox/etc/digitemp.conf
# read device's data on 1w-bus
#digitemp_DS9097U -a -s /dev/ttyS1 -c /opt/beerbox/etc/digitemp.conf
# read one device -t 0
#digitemp_DS9097U -t 0 -q -c /opt/beerbox/etc/digitemp.conf | RipZ/beerbox | scripts/digitemp.sh | Shell | apache-2.0 | 309 |
#!/bin/sh
#
# This file was produced by running the Configure script. It holds all the
# definitions figured out by Configure. Should you modify one of these values,
# do not forget to propagate your changes by running "Configure -der". You may
# instead choose to run each of the .SH files by yourself, or "Configure -S... | OSGConnect/modulefiles | recipes/geant4/geant4-9.4p02.config.sh | Shell | apache-2.0 | 4,961 |
#! /bin/sh
cp ssl_secrets.template.yaml ssl_secrets.yaml
cp cluster.template.cfg cluster.cfg
| tdeheurles/kube-jenkins-imager | prepare.sh | Shell | apache-2.0 | 93 |
#!/usr/bin/env bash
set -e
echo "starting tests"
for pkg in $(go list ./... | grep -v main); do
go test -coverprofile=$(echo ${pkg} | tr / -).cover ${pkg}
done
echo "mode: set" > c.out
grep -h -v "^mode:" ./*.cover >> c.out
rm -f *.cover
echo "tests finished"
| VolantMQ/volantmq | go.test.codeclimate.sh | Shell | apache-2.0 | 269 |
#!/bin/bash
vagrant destroy -f
vagrant up
vagrant provision
vagrant reload host1
vagrant provision
| mayflower/vagrant-issue-3836 | bug-run.sh | Shell | apache-2.0 | 100 |
#!/bin/bash -eux
########################################################################
#
# title: Build Ubuntu Image for NGINX (Single Instance)
# author: Marco Maccio (http://marmac.name)
# url: https://github.com/marcomaccio/devpaas
# description: Create image for DEVPAAS NGINX (Ins... | marcomaccio/devpaas | devpaas-vm/packer/AWS-build-image-devpaas-nginx-rhel-7-3.sh | Shell | apache-2.0 | 1,966 |
#!/bin/bash
#
# Turn on tracing, we want to see what's going on
#set -x
clear
# Remember the dir where we started out since we use relative paths
scriptPath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
RUNCMAKE_SCRIPTSTARTDIR=${scriptPath%/*}
echo "RUNCMAKE_SCRIPTSTARTDIR = $RUNCMAKE_SCRIPTSTARTDIR"
echo "... | LiberatorUSA/GUCEF | projects/CMake/RunCMake_Shared_CodeBlocks_Unix_udp2redis.sh | Shell | apache-2.0 | 816 |
#!/bin/bash
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
if (( ${#BASH_SOURCE[@]} == 1 )); then
echo "This script must be sourced."
exit 1
fi
if [[ $SD_PULL_REQUEST == false ]]; then
export SHOULD_BUILD=all
return 0
fi
JSON=$(curl -sLf https:... | vespa-engine/vespa | screwdriver/detect-what-to-build.sh | Shell | apache-2.0 | 1,153 |
#! /bin/sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
go run ${DIR}/main.go ${DIR}/gen-metadata-defs ${1} ${DIR}/metadata.yaml ${DIR}/../../${2}
goimports -w -local istio.io ${DIR}/../../${2}
| frankbu/istio | galley/tools/gen-meta/gen-meta.sh | Shell | apache-2.0 | 207 |
#!/bin/sh
set -e
## install
yum update -y
yum install -y httpd php php-gd php-mysqlnd
curl -L https://github.com/kelseyhightower/confd/releases/download/v0.7.1/confd-0.7.1-linux-amd64 -o /usr/local/bin/confd
chmod +x /usr/local/bin/confd
# apache config
rm /etc/httpd/conf.d/welcome.conf
## cleanup
yum clean all
| FlorianLudwig/docker-fun | apache2/install.sh | Shell | apache-2.0 | 318 |
#!/bin/bash
# Shell script to drop an deprecated v2 instance of the 3D City Database
# on PostgreSQL/PostGIS
# read database connection details
source ../CONNECTION_DETAILS.sh
# add psql to PATH
export PATH=$PGBIN:$PATH
# cd to path of the shell script
cd "$( cd "$( dirname "$0" )" && pwd )" > /dev/null
# Welcome ... | 3dcitydb/3dcitydb | postgresql/ShellScripts/Unix/MIGRATION/DROP_DB_V2.sh | Shell | apache-2.0 | 1,639 |
# in development, run with this command (fill in the ...)
# DATABASE_URL="postgres://..." SONDER_DB_URL="postgres://..." bash scripts/financial_ssot.sh
# environment variables for development
# storage database url, eg:
#DATABASE_URL="postgres://..."
# target database url, eg:
#SONDER_DB_URL="postgres://..."
# fixe... | Flatbook/simple-etl | scripts/financial_ssot.sh | Shell | apache-2.0 | 585 |
# sudo wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
# sudo yum install devtoolset-2-gcc devtoolset-2-gcc-c++ devtoolset-2-gdb devtoolset-2-binutils devtoolset-2-libstdc++-devel devtoolset-2-libatomic-devel
source /opt/rh/devtoolset-2/enable
export CC=/opt/rh/devtools... | ichenq/gist | src/bash/enable-devtoolset-2.sh | Shell | apache-2.0 | 440 |
#!/bin/sh
### BEGIN INIT INFO
# Provides: stopcock
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: true
# Short-Description: Start/stop stopcock server
### END INIT... | tignetworking/stopcock | contrib/stopcock.sh | Shell | apache-2.0 | 1,741 |
#!/bin/bash
# --
# Builds and uploads a release of the SDK against a release-specific tag.
# This does NOT create releases of individual services in the repo, just the SDK itself.
# --
syntax() {
echo "Syntax: ./release.sh -r <tagname or 'snapshot'> [-f] [-d]"
echo "Arguments:"
echo " -r: The version str... | mesosphere/dcos-commons | release.sh | Shell | apache-2.0 | 5,094 |
#!/bin/bash
########################################################################
# Generates an "amalgamation build" for roaring. Inspired by similar
# script used by whefs.
########################################################################
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
echo "We are about t... | lemire/CRoaring | amalgamation.sh | Shell | apache-2.0 | 5,348 |
#!/bin/bash
#
# THIS SCRIPT DOES NOT TAKE INTO ACCOUNT MULTIPLE NOIPFORME ENTRIES IN CRONTAB.
# IF YOU RUN IT YOUR CRONTAB WILL BE STRIPPED OF ANY .noipforme.sh SCRIPTS.
#
DDNSSERVERNAME=your-ddns-server.com
NOIPSCRIPT=~/.noipforme.sh
if [[ "$1" == "" || "$2" == "" ]]
then
echo "Missing arguments."
exit
fi
... | drodrig/noipforme | web/not-the-admin/linux-installer.sh | Shell | apache-2.0 | 1,040 |
#!/bin/bash
docker rm -f postgres
docker run --name postgres \
-e POSTGRES_DB=piper \
-e POSTGRES_USER=piper \
-e POSTGRES_PASSWORD=piper \
-p 5432:5432 \
-d postgres:11
| creactiviti/piper | scripts/database.sh | Shell | apache-2.0 | 182 |
#!/bin/sh
IMAGE=${IMAGE_DIR}/${IMAGE_NAME}
RUN_IMAGE=${RUN_DIR}/${IMAGE_NAME}
# remove old image if it exist
rm -f ${RUN_IMAGE}
# create new image in volume to bypass the 10GB limit
qemu-img create -f qcow2 -b $IMAGE $RUN_IMAGE
# start image with port forwarding
qemu-system-x86_64 -smp 1 -m 3072M -vnc :0 -device virt... | camunda-ci/camunda-docker-ci-windows | bin/start-qemu.sh | Shell | apache-2.0 | 475 |
export OS_IDENTITY_API_VERSION=3
openstack --os-interface public project create test
openstack --os-interface public user create test --password test --project test
openstack --os-interface public role add --user test --project test owner
openstack --os-interface public project show test > project
openstack --os-interf... | Fiware/ops.Health | fiware-region-sanity-tests/docker/start.sh | Shell | apache-2.0 | 1,411 |
#示例脚本12-7.sh grep检索多个关键字
#! /bin/bash
#hello
#Hello
#HELLO
#HEllo
#HELlo
echo '使用grep命令的-E选项'
echo '匹配hello|Hello'
grep -E "hello|Hello" 12-7.sh
echo
echo '匹配HE.lo|hello'
grep -E "HE.lo|hello" 12-7.sh
| zhaochl/bash-utils | grep_utils/12-7.sh | Shell | apache-2.0 | 261 |
#!/bin/sh
set -e
if [ -d tmp/index-bare ]; then
echo tmp/index-bare already exists, exiting
exit 0
fi
mkdir -p tmp
rm -rf tmp/index-bare tmp/index-co
echo "Initializing repository in tmp/index-bare..."
git init -q --bare tmp/index-bare
echo "Creating checkout in tmp/index-bare..."
git init -q tmp/index-co
... | steveklabnik/crates.io | script/init-local-index.sh | Shell | apache-2.0 | 794 |
#!/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin
set -e
set +u
# Avoid recursively calling this script.
if [[ $SF_MASTER_SCRIPT_RUNNING ]]; then
exit 0
fi
set -u
export SF_MASTER_SCRIPT_RUNNING=1
# The following conditionals come from
# https://github.com/kstenerud/iOS-Universal-Framework
if [[ "$SDK_NAME" =~ ([A... | amuramoto/realm-objc | scripts/build-fat.sh | Shell | apache-2.0 | 2,087 |
#!/bin/bash
clang++ -I/home/users/bcrawford/Development/src/compiler/ test.cpp -o test
chmod 0777 test
./test
| ozdevguy/Ditto | Old/src/compiler/test.sh | Shell | apache-2.0 | 110 |
gcc get_mountdir.c libcoreutils.a -o get_mountdir
| zhoulipeng/cppwork | filesystem/get_mountdir.sh | Shell | apache-2.0 | 50 |
#!/bin/bash
# This script expects $1 to be passed and for $1 to be the filesystem location
# to a puppet manifest file for which it will run syntax checks against.
module_dir="$2"
manifest_path="$3"
parser="$4"
syntax_errors=0
error_msg=$(mktemp /tmp/error_msg_puppet-syntax.XXXXX)
if [ $module_dir ]; then
manif... | bewie/puppet-git-hooks | commit_hooks/puppet_manifest_syntax_check.sh | Shell | apache-2.0 | 1,447 |
#!/bin/bash
# exit on failure
set -e
# Check if awscli is installed.
if ! hash aws 2>/dev/null ; then
echo "[ERROR]awscli is not installed!"
echo "[ERROR]On OSX type: 'brew install awscli'"
echo "[ERROR]On Ubuntu type 'sudo apt-get install awscli'"
echo "[ERROR]On RHEL/Fedora type 'sudo yum install a... | pveentjer/hazelcast-simulator | dist/src/main/dist/conf/aws-ec2_provision.sh | Shell | apache-2.0 | 7,318 |
#!/bin/sh
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | erocchi/k8s-stackdriver | fluentd-gcp-image/run.sh | Shell | apache-2.0 | 1,037 |
#!/bin/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... | markflyhigh/incubator-beam | release/src/main/scripts/set_version.sh | Shell | apache-2.0 | 2,955 |
#!/bin/bash
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
PRGDIR=`dirname "$PRG"`
[ -z "$TASK_HOME" ] && TASK_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
echo "TASK... | zhangxin23/widgets | task/src/bin/launcher.sh | Shell | apache-2.0 | 997 |
#!/bin/sh
# !! TODO need to have a section that shows the supported mime types based on
# the plugins installed
name=false
version=false
build_date=false
upt=false
installed_plugins=false
num_plugins=false
num_images=false
num_run_containers=false
num_stop_containers=false
num_repos=false
active_ssh=false
in... | Joecakes4u/vent | scripts/info_tools/get_info.sh | Shell | apache-2.0 | 6,259 |
#!/bin/bash -eu
#$ -cwd -V
#$ -pe smp 1
#$ -l h_vmem=10G
#$ -l h_rt=4:00:00
#$ -R y
#$ -q all.q,bigmem.q
# Matthew Bashton 2012-2016
# Runs Select Variants to filter with pre set cut-offs, this script is for UG
# SNP data. Note will get errors for undefined variables this is normal not all
# sites have all variables ... | MattBashton/MB-GATK-SGE | Manual/Hard_filt/HardFilt_snps_UG.sh | Shell | artistic-2.0 | 2,567 |
#!/bin/bash
# This script removes ALL docker images
# Originally found at http://jimhoskins.com/2013/07/27/remove-untagged-docker-images.html
docker rmi $(docker images -q)
| billt2006/docker-utils | docker-rmi-all.sh | Shell | bsd-2-clause | 174 |
#!/usr/bin/env bash
## Test basic Output DNS Adapter
## Start OpenDNSsEC, see if NOTIFY messages are send and accepted.
#TEST: Test basic Output DNS Adapter
#TEST: Start OpenDNSSEC and see if zone gets transferred and signed
#TEST: and see if NOTIFY messages are sent and accepted.
if [ -n "$HAVE_MYSQL" ]; then
ods... | opendnssec/opendnssec-svn | testing/test-cases.d/signer.adapters.output_with_notify/test.sh | Shell | bsd-2-clause | 873 |
#!/bin/bash
# author: Liang Gong
if [ "$(uname)" == "Darwin" ]; then
# under Mac OS X platform
NODE='node'
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
# under GNU/Linux platform
NODE='nodejs'
fi
cd directory-traversal/http_static_simple
RED='\033[0;31m'
BLUE='\033[0;34m'
GREEN='... | JacksonGL/NPM-Vuln-PoC | directory-traversal/http_static_simple/PoC.sh | Shell | bsd-3-clause | 878 |
#!/bin/bash
set -e
set -x
bundle exec script/import parliament-sessions && \
bundle exec script/import parties && \
bundle exec rails r script/import-promises-2017 | tee import-r.log && \
bundle exec rails r script/upgrade_categories.rb && \
bundle exec script/import daily --period 2013-2017 --session 2016-... | holderdeord/hdo-site | script/new-period-2017-2021.sh | Shell | bsd-3-clause | 720 |
#!/usr/bin/env bash
# Do apt-get package installations in non-interactive mode
export DEBIAN_FRONTEND=noninteractive
# Install GLLVM / OCCAM dependencies
sudo apt-get update
sudo -E apt-get install -y clang-10 clang-format-10 cmake git golang-go
sudo -E apt-get install -y libboost-dev libgmp-dev libprotobuf-dev llvm-... | ashish-gehani/OCCAM | vagrants/18.04/basic/bootstrap.sh | Shell | bsd-3-clause | 1,044 |
#!/bin/sh
FS_PATH_TO_MONITOR=/tmp/device/android-device-log.txt
inotifywait -mr --timefmt '%d/%m/%y %H:%M' --format '%T %w %f' \
-e close_write $FS_PATH_TO_MONITOR | while read date time dir file; do
echo "At ${time} on ${date}, file ${dir}${file} was changed"
tail -n 1 $FS_PATH_TO_MONITOR
done
| allanjos/device-watcher | inotify/inotify-wait.sh | Shell | bsd-3-clause | 314 |
#!/bin/bash
set -e # exit with nonzero exit code if anything fails
openssl aes-256-cbc -K $encrypted_244ac3091cff_key -iv $encrypted_244ac3091cff_iv -in deploy_key.enc -out deploy_key -d
echo 'Travis Build Dir: '$TRAVIS_BUILD_DIR
if $TRAVIS_PULL_REQUEST
then
DEPLOY_BRANCH=$TRAVIS_PULL_REQUEST
else
DEPLOY_BR... | chatelak/RMG-Py | deploy.sh | Shell | mit | 2,247 |
#!/bin/bash
# --------------------------------------------------------------------------------------------------------------------------------
# Cypress Browser Tests
# Boots up bin/dev-servers & bin/pserve with development.ini, waits for indexing to complete, then runs Cypress tests.
# Exits with exit code of `npm r... | 4dn-dcic/fourfront | deploy/run_cypress_tests_on_travis.sh | Shell | mit | 2,875 |
#!/bin/bash
#########################################################################################
# Check if the script is being running by a root or sudoer user #
#########################################################################################
if [ "$(id -u)" != "0" ]; then echo ""; echo "... | cesar-rgon/linux-app-installer | pre-installation/template-pre-installation.sh | Shell | mit | 1,990 |
#!/bin/bash
if [[ $target_platform =~ linux.* ]] || [[ $target_platform == win-32 ]] || [[ $target_platform == win-64 ]] || [[ $target_platform == osx-64 ]]; then
export DISABLE_AUTOBREW=1
mv DESCRIPTION DESCRIPTION.old
grep -v '^Priority: ' DESCRIPTION.old > DESCRIPTION
$R CMD INSTALL --build .
else
mkdir -... | AndersenLab/cegwas-web | mapping_worker/r-cegwas/build.sh | Shell | mit | 2,846 |
#!/bin/sh
#######################################################################################################
#
#
# short script for copying and launching the DIRAC testing machinery
#
#
#######################################################################################################
echo -e "\... | miroi/DIRAC_scripts | grid_runs/virtual_organizations/miscel/launch_osg.sh | Shell | mit | 4,225 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.