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
: ${PREFIX:=~}
: ${ETC:=~}
if [ "${ETC%/}" = /etc ];
then : ${BASHRC:=bash.bashrc}
else : ${BASHRC:=.bashrc}
fi
cp session $PREFIX/bin/session
if ! grep -q '### LOAD COMPONENTS$' $ETC/$BASHRC; then
sed -i.bak "\$afor component in \$(ls $ETC/.bash.d); do source $ETC/.bash.d/$component; done ### LOAD ... | dlthomas/sessions | install.sh | Shell | mit | 441 |
#!/bin/sh
# CYBERWATCH SAS - 2016
#
# Security fix for RHSA-2014:0453
#
# Security announcement date: 2014-04-30 19:09:25 UTC
# Script generation date: 2016-05-12 18:11:56 UTC
#
# Operating System: Red Hat 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - xalan-j2-eap6.noarch:2.7.1-9.redhat_7.1... | Cyberwatch/cbw-security-fixes | Red_Hat_5/x86_64/2014/RHSA-2014:0453.sh | Shell | mit | 646 |
git clone https://github.com/paulo-raca/android-openssl
| hbirchtree/coffeecutie-meta | instrumentation/openssl/compile-android.sh | Shell | mit | 56 |
@class
MathUtil(){
decrement(){
difference ${1} 1
}
difference(){
echo $((${1}-${2}))
}
format(){
if [[ ${1} -le 9 ]]; then
echo 0${1}
else
echo ${1}
fi
}
increment(){
if [[ ! ${1} ]]; then
echo $((+1))
else
sum ${1} 1
fi
}
isDivisible(){
if [[ $(modulus ${1} ${2}) == 0 ]]; th... | anthony-chu/bash-toolbox | math/util/MathUtil.sh | Shell | mit | 927 |
#!/usr/bin/env bash
# vim: ai ts=2 sw=2 et sts=2 ft=sh
# Install or re-install phpenv with
# multiple versions of PHP on macOS.
#
# Usage:
#
# curl -L https://git.io/JvG7i | bash
#
# Bash strict mode.
set -o pipefail
set -o errexit
set -o nounset
# Allow empty globs.
shopt -s nullglob
IFS=$' '
# Check OS.
if [[ ... | troyxmccall/dotfiles | phpenv-macos.sh | Shell | mit | 3,540 |
#!/bin/sh
ls '/proc/sys/vm/dirty_writeback_centisecs';
ls '/sys/class/scsi_host/host2/link_power_management_policy';
ls '/sys/class/scsi_host/host0/link_power_management_policy';
ls '/sys/module/snd_hda_intel/parameters/power_save';
ls '/sys/class/scsi_host/host1/link_power_management_policy';
ls '/sys/class/scsi_host... | nobiruwa/home-directory | sbin/detect-sysfs-e130.sh | Shell | mit | 1,436 |
./cleanup.sh
#set -e
aclocal
automake --add-missing
autoconf
mkdir build
| ttroy50/vsid | bootstrap.sh | Shell | mit | 75 |
# Node Version Manager
# Implemented as a POSIX-compliant function
# Should work on sh, dash, bash, ksh, zsh
# To use source this file from your bash profile
#
# Implemented by Tim Caswell <tim@creationix.com>
# with much bash help from Matthew Ranney
{ # this ensures the entire script is downloaded #
NVM_SCRIPT_SOUR... | Theodeus/nvm | nvm.sh | Shell | mit | 73,708 |
#!/bin/bash
while :
do
python /home/chip/datakamp/MobileReader.py
sleep 4
echo "Python crashed"
done | kaosbeat/datakamp | startup.sh | Shell | mit | 103 |
#!/bin/bash
# Remove these two incriminating pictures.... for now!
rm /home/paus/www/photos/2012/02/thumbs/2012\:02\:04-22\:11\:*
rm /home/paus/www/photos/2012/02/images/2012\:02\:04-22\:11\:*
| cpausmit/Config | bin/photos/removeYes.sh | Shell | mit | 193 |
#!/bin/sh
# as root
echo > /var/log/httpd/error_log
echo > /var/log/httpd/access_log
| Fornost461/drafts-and-stuff | web/PHP-SQL/config files/logs/empty.sh | Shell | cc0-1.0 | 87 |
#!/bin/bash
if [ "$(wget http://www.museudoazulejo.gov.pt/ -o /dev/null -O -|grep -i x-shockwave-flash -c)" -eq "0" ]; then
echo "azulejo: incumprimento pode já não existir";
else
echo "azulejo: Incumprimento mantém-se, a actualizar o README (faça um git diff, valide, e commit!)";
while IFS='' read -r line || [[ -n... | marado/RNID | scripts/22-azulejo.sh | Shell | cc0-1.0 | 570 |
#!/usr/bin/env bash
#
#loggertoken="a5d2fd23" ; source logger.sh ; # paste into script & uncomment
callhelp="$0 must be called using the one-liner command contained within."
#
# Summary
# Once loaded, provides the sourcing script with logging functions custom
# to the sourcerer.
# Note, logg... | jameswilliamknight/scripts.pub | Bash/provision/logger.sh | Shell | cc0-1.0 | 1,787 |
#!/bin/bash
###
# #%L
# che-starter
# %%
# Copyright (C) 2017 Red Hat, Inc.
# %%
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.h... | redhat-developer/che-starter | cico_build_deploy.sh | Shell | epl-1.0 | 2,772 |
#! /bin/bash
#############################################################################
# Copyright (c) 2003-2005,2007-2009 Novell, Inc.
# All Rights Reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public License as
# published ... | marxin/kernel-source | scripts/sequence-patch.sh | Shell | gpl-2.0 | 16,417 |
#! /usr/bin/env bash
#
# Copyright (C) 2013-2015 Zhang Rui <bbcallen@gmail.com>
#
# 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 ... | 307509256/ijkplayer-plus | init-ios.sh | Shell | gpl-2.0 | 2,378 |
#!/bin/bash
# time to run in seconds
RUN_TIME_SECONDS=$1
# wait between checks
WAIT_TIME_SECONDS=$2
MYSQL_USER=$3
MYSQL_PASSWORD=""
MYSQL_SOCKET=$4
LOG_NAME=$5
# kill existing log file if it exists
rm -f $LOG_NAME
while [ $RUN_TIME_SECONDS -gt 0 ]; do
echo "******************************" >> $LOG_NAME
date... | Percona-QA/toku-qa | bin/capture-extended-status.bash | Shell | gpl-2.0 | 613 |
#!/bin/bash
make distclean
echo "TBS drivers set for x86 Linux 3.x"
./v4l/tbs-x86_r3.sh
#./v4l/tbs-dvbc-x86_r3.sh
# Enable some staging drivers
make stagingconfig
echo "TBS drivers building..."
make -j2
echo "TBS drivers installing..."
sudo rm -r -f /lib/modules/$(uname -r)/extra
sudo make install
echo "TBS drive... | work40/linux-tbs-drivers | tbs_install_lnx3x_x86.sh | Shell | gpl-2.0 | 371 |
#!/bin/bash
INTERFACES_FILE="${TARGET_DIR}/etc/network/interfaces"
SEARCH_CRITERIA="eth0"
NONE_FOUND="0"
RESULT_FROM_COMPARISON=$(grep -c $SEARCH_CRITERIA $INTERFACES_FILE)
echo "$RESULT_FROM_COMPARISON"
if [ "$RESULT_FROM_COMPARISON" == "$NONE_FOUND" ]
then
echo "auto eth0" >> $INTERFACES_FILE
echo "iface e... | linux4hach/buildroot-at91 | support/scripts/setNetwork.sh | Shell | gpl-2.0 | 466 |
#!/bin/env bash
THIS=`basename $0 '.sh'`
DATE=`date +%F`
FILE="$THIS-$HOSTNAME-$DATE-all"
OLD_PKG="old-packages"
NEW_PKG="new-packages"
OLD_PKG_NAME="$OLD_PKG-name"
NEW_PKG_NAME="$NEW_PKG-name"
NEW_PKG_NAME_INSTALL="$NEW_PKG_NAME-install"
_pre_install() {
(
IFS=$'\n'
for package in `rpm -qa --qf ... | zappyk-github/zappyk-ocean | root/bin/upgrade-rpm-query.sh | Shell | gpl-2.0 | 1,134 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2008-2018 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distribu... | jonatanolofsson/tup | test/t4004-link-subdir.sh | Shell | gpl-2.0 | 1,239 |
# test suite that always succeds - for testing framework
run()
{
run_testcase true
return 0
}
| joyent/libfaketime | test/functests/test_true.sh | Shell | gpl-2.0 | 97 |
#!/bin/bash -ue
skip=true
NUMC=${NUMC:-3}
SDURATION=${SDURATION:-300}
TSIZE=${TSIZE:-1000}
NUMT=${NUMT:-16}
STEST=${STEST:-oltp}
AUTOINC=${AUTOINC:-off}
TCOUNT=${TCOUNT:-10}
SHUTDN=${SHUTDN:-yes}
TXRATE=${TXRATE:-120}
RSLEEP=${RSLEEP:-10}
RMOVE=${RMOVE:-1}
LOSS="${LOSS:-1%}"
DELAY="${DELAY:-3ms}"
CMD=${CMD:-"/pxc/bin/... | percona/pxc-docker | partition-test/galera-partition.sh | Shell | gpl-2.0 | 21,525 |
rm setup.py
py2applet --make-setup SQLite\ Browser_CN.py
python setup.py py2app --iconfile logo.icns
| XD-DENG/SQLite-Browser | scripts/GUI/CN/Build_Mac_Application_CN.sh | Shell | gpl-2.0 | 101 |
#!/bin/bash
#set -x
trap exit SIGHUP SIGINT SIGTERM
taskDir=rsfcGraphAnalysis
task=ESTOP
## task=funcon
RSFC_ROOT=/data/sanDiego
if [[ $# -gt 0 ]] ; then
subjects="$*"
else
# subjects="$( cat ../data/config/control.subjectList.txt ../data/config/mdd.nat.txt )"
# subjects="106_C 112_C 118_C 144_C 149_... | colmconn/rsfcGraphAnalysis | runEachSubjectParallel.sh | Shell | gpl-2.0 | 2,535 |
# Openstack icehouse installation script on ubuntu 14.04
# by kasidit chanchio
# vasabilab, dept of computer science,
# Thammasat University, Thailand
#
# Copyright 2014 Kasidit Chanchio
#
# this script or commands below should be called
# prior to openstack installation
#
#!/bin/bash
#
cd $HOME/OPSInstaller/networ... | kasidit/openstack-mitaka-installer | documents/OPSInstaller.example/network/exe-stage00-SUDO-update.sh | Shell | gpl-2.0 | 744 |
# Copyright (c) 2015 Igor Pecovnik, igor.pecovnik@gma**.com
#
# This file is licensed under the terms of the GNU General Public
# License version 2. This program is licensed "as is" without any
# warranty of any kind, whether express or implied.
# This file is a part of the Armbian build script
# https://github.com/ar... | 150balbes/lib | lib/main.sh | Shell | gpl-2.0 | 11,464 |
#!/bin/sh
#Скрипт запуска - бесконечный цикл, рассчитан на вылет программы, перезапуск с сохранением стандартного вывода
#Первый проход цикла помещает вывод в ./logs/syslog.log, при повторном переносит предыдущий лог в OLD
#Перезапуск через 10 секунд
#Сохраним pid текущего процесса
I=1
while [ $I -gt 0 ]; do
if [ $I -... | mborisv/SigmaLine | run.sh | Shell | gpl-2.0 | 1,013 |
# ----------------------------------------------------------------------------
# Gera um nome aleatório de N caracteres, alternando consoantes e vogais.
# Obs.: Se nenhum parâmetro for passado, gera um nome de 6 caracteres.
# Uso: zznomealeatorio [N]
# Ex.: zznomealeatorio
# zznomealeatorio 8
#
# Autor: Guilherme ... | faustovaz/funcoeszz | zz/zznomealeatorio.sh | Shell | gpl-2.0 | 1,553 |
#!/bin/bash
sqlite3 $1 "SELECT * FROM users" | while read ROW; do
id=`echo $ROW | awk '{split($0,a,"|"); print a[1]}'`
name=`echo $ROW | awk '{split($0,a,"|"); print a[2]}'`
email=`echo $ROW | awk '{split($0,a,"|"); print a[3]}'`
echo $name;
echo $email;
./sendemail.sh $email $name
done
| rfoecking/catpics | scripts/sendcat.sh | Shell | gpl-2.0 | 315 |
#!/bin/sh
# This script is the current "state of the art" of compiling GNUnet for the
# Sharp Zaurus SL5000. It does not work yet. You need to download the cross
# compiler rpms from the Sharp website to get it to "compile" -- note that
# it does not link...
# This is where the rpm installs the compiler, must be in th... | pruby/GNUnet-Mirror | bin/arm.sh | Shell | gpl-2.0 | 815 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2012-2018 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distribu... | jonatanolofsson/tup | test/t7047-mod-deleted-file.sh | Shell | gpl-2.0 | 1,387 |
#!/bin/bash
# Sergio Cayuqueo <cayu@cayu.com.ar>
# http://cayu.com.ar
# Script para chequear el database_status en Oracle
DATABASE_STATUS=`echo -e "set head off\nset pagesize 0\nSELECT status, database_status FROM v\\$instance;" | sqlplus -S "/ as sysdba"| cut -f1`
case "$DATABASE_STATUS" in
MOUNTED)
... | cayu/nagios-scripts | check_oracle_database_status.sh | Shell | gpl-2.0 | 830 |
#!/bin/bash
export PATH=~/kernel_build/arm-eabi-4.6/bin/:$PATH
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=~/kernel_build/arm-eabi-4.6/bin/arm-eabi-
export LOCALVERSION=+
#export INSTALL_MOD_PATH=~/kernel_build/rk3188/mod_fw
#board name
./mk.sh "mp92_1021"
| andr7e/mediacomMP82S4 | kernel/build_yf_mp92_1021.sh | Shell | gpl-2.0 | 273 |
#!/bin/bash
#
# Copyright (c) 2015 Igor Pecovnik, igor.pecovnik@gma**.com
#
# This file is licensed under the terms of the GNU General Public
# License version 2. This program is licensed "as is" without any
# warranty of any kind, whether express or implied.
#
# This file is a part of tool chain https://github.com/igo... | nfedera/igorpecovnik-lib | patching.sh | Shell | gpl-2.0 | 4,376 |
#! /usr/bin/env bash
cd `dirname $0`
out=$(grep buildVersion config.json | cut -d ":" -f 2 | cut -d '"' -f 2)
../node_modules/espresso/bin/espresso.js build
if [[ $* =~ --no-cache ]]
then
sed -i 's/<html manifest="cache.manifest">/<html>/' build/$out/index.html
fi
if [[ $* =~ --dev ]]
then
ln -snf $out build/curre... | bfpi/klarschiff-mobil | KsMobil/build.sh | Shell | gpl-2.0 | 493 |
convert images/OCS-565-A.png -crop 1553x453+0+0 +repage images/OCS-565-A-0.png
convert -append images/OCS-564-B-11.png images/OCS-565-A-0.png images/OCS-564-B-11.png
rm images/OCS-565-A-0.png
convert images/OCS-565-A.png -crop 1553x395+0+468 +repage images/OCS-565-A-1.png
convert images/OCS-565-A.png -crop 1553x309+0+8... | jonnymwalker/Staroslavjanskij-Slovar | scripts/findindents.OCS-565.sh | Shell | gpl-2.0 | 1,478 |
#!/bin/bash
################################################################################
## ##
##copyright 2003, 2016 IBM Corp ##
## ... | PoornimaNayak/autotest-client-tests | linux-tools/pygtk2/pygtk2.sh | Shell | gpl-2.0 | 3,515 |
#!/bin/bash
cd "$HOME"
for i in ~/Sync/dotfiles/.*; do
ln -sf "$i"
done
rm .git
# vim: set ft=sh ts=2 sw=2 et:
| Boohbah/dotfiles | link_dotfiles.sh | Shell | gpl-2.0 | 117 |
#!/bin/bash
# Questo script serve per creare una copia dei dati sulla macchina locale dentro una cartella specificata dall'utente dentro un server remoto.
# Per il backup è necessario installare rsync e avere conoscenza di SSH e in particolare del file ~/.ssh/config
#
# La struttura del backup è la seguente:
# root-ba... | pazpi/ATLab-backup-rsync | baskup.sh | Shell | gpl-2.0 | 5,844 |
#!/bin/bash
build_compile()
{
./configure \
--prefix=/usr \
--disable-static
make
}
build_test_level=3
build_test()
{
make check
}
build_pack()
{
make DESTDIR=$BUILD_PACK \
docdir=/usr/share/doc/check-0.12.0 \
install
}
| phyglos/phyglos | bundles/phyglos-core.dir/check-0.12.0.sh | Shell | gpl-2.0 | 271 |
#! /bin/bash
. ${DIR}/trs_aescbc_sha1_common_defs.sh
SGW_CMD_XPRM='-w 300'
config_remote_xfrm()
{
ssh ${REMOTE_HOST} ip xfrm policy flush
ssh ${REMOTE_HOST} ip xfrm state flush
ssh ${REMOTE_HOST} ip xfrm policy add \
src ${REMOTE_IPV4} dst ${LOCAL_IPV4} \
dir out ptype main action allow \
tmpl proto esp mode tra... | emmericp/dpdk | examples/ipsec-secgw/test/trs_aescbc_sha1_defs.sh | Shell | gpl-2.0 | 1,946 |
#!/bin/sh
#TODO: replace folder structure with variables declared in the beginning
#TODO: announcements
screensession=testserver
serverlocation=/data/testservers/wetfjordTest/serverMinecraft/
backuplocation=/data/backups/minecraft/testserver/
buildtoolslocation=/home/minecraft/buildtools/
javapath=/usr/java/oracle/j... | Trustmega/Wetfjord-Universe | wetfjord.sh | Shell | gpl-3.0 | 5,294 |
#!/bin/sh
echo "# my aliases
alias aptu='sudo apt-get update && sudo apt-get dist-upgrade -y'
alias aptc='sudo apt-get autoclean && sudo apt-get clean && sudo apt-get autoremove -y'
alias apti='sudo apt-get install '" >> ~/.bashrc
sudo apt-get update && sudo apt-get dist-upgrade -y
sudo apt-get install build-essenti... | paolme/linuxTweaks | ubuntu/ubuntu1204Dev64Restore.sh | Shell | gpl-3.0 | 2,424 |
# postexecute/GNU/Linux/60_save_knife_node_output.sh
# see also https://github.com/gdha/upgrade-ux/issues/100
if type -p knife >/dev/null 2>&1 ; then
[[ ! -f /etc/chef/client.rb ]] && return # we need this file to continue
if (( PREVIEW )) ; then
Log "knife node show (after patching) [not in preview m... | gdha/upgrade-ux | opt/upgrade-ux/scripts/postexecute/GNU/Linux/60_save_knife_node_output.sh | Shell | gpl-3.0 | 493 |
#!/bin/bash
echo
echo "<<< HOST >>>"
echo
/root/es_scripts/upgrade_debian.sh
echo
echo "<<< CONTAINERS >>>"
echo
/root/es_scripts/upgrade_container.sh
| emrahcom/emrah-stretch | host/root/es_scripts/upgrade_all.sh | Shell | gpl-3.0 | 153 |
#!/bin/bash
# Copyright 2014 Cumulus Networks, Inc. All rights reserved.
# Author: Stanley Karunditu stanleyk@cumulusnetworks.com
# Change the hostname without reboot.
# * Script is interactive
# Applies only to debian based OS
# Example:
# ./change_hostname.sh mynewswitch
#
die () {
echo >&2 "$@"
exit 1
}
[ "$#... | CumulusNetworks/customer-scripts | change_hostname.sh | Shell | gpl-3.0 | 1,202 |
#!/bin/sh
export GR_DONT_LOAD_PREFS=1
export srcdir=/home/katsikas/gnuradio/gnuradio-core/src/python/gnuradio/gr
export PATH=/home/katsikas/gnuradio/build/gnuradio-core/src/python/gnuradio/gr:$PATH
export LD_LIBRARY_PATH=/home/katsikas/gnuradio/build/volk/lib:/home/katsikas/gnuradio/build/gruel/src/lib:/home/katsikas/g... | katsikas/gnuradio | build/gnuradio-core/src/python/gnuradio/gr/qa_stream_mux_test.sh | Shell | gpl-3.0 | 613 |
#!/bin/sh
gpasm -p pic12lf1822 hello.asm
| mrtee/pickit2-f1xxx | test/make_hex.sh | Shell | gpl-3.0 | 41 |
#!/bin/bash
# Author: Claudio Di Ciccio
# Version: 0.8
# Date: 2013/09/20
# Description: This script launches the MinerFulSimuStarter to test what happens when making the alphabet size grow, slowly.
## Import the shell functions to create Regular Expressions expressing constraints
. ./constraintsFu... | cdc08x/MINERful | test-launchers/test-MINERful-slowlyGrowingLog.sh | Shell | gpl-3.0 | 6,718 |
#!/bin/sh
# Generate groff manpage from markdown
curl -F page=@docs/textsuggest.1.md http://mantastic.herokuapp.com 2>/dev/null
| maateen/TextSuggestBangla | docs/gen_manpage_from_markdown.sh | Shell | gpl-3.0 | 130 |
#!/bin/bash
function launch_new_lxc()
{
lxc info $LXC_BASE >/dev/null && lxc delete $LXC_BASE --force
if [ $(get_arch) = $ARCH ];
then
lxc launch images:debian/$DIST/$ARCH $LXC_BASE -c security.privileged=true -c security.nesting=true
else
lxc image info $LXC_BASE >/dev/null && lxc ima... | YunoHost/package_check | lib/build_base_lxc.sh | Shell | gpl-3.0 | 2,369 |
function setupRequirement () {
pip install -U -r requirements.txt docker-py pytest-xdist==1.27.0 sauceclient
pip install -r requirements-optional.txt
}
# Sourcing and exporting required env vars and setting up robottelo properties
function setupPrerequisites () {
source "${CONFIG_FILES}"
source confi... | lpramuk/robottelo-ci | scripts/satellite6-upgrade-run-scenarios.sh | Shell | gpl-3.0 | 3,487 |
#!/bin/sh
if [ $# -lt 2 ]; then
cat <<EOF
Usage: test_ldb.sh PROTOCOL SERVER [OPTIONS]
EOF
exit 1;
fi
p=$1
SERVER=$2
PREFIX=$3
shift 2
options="$*"
. `dirname $0`/subunit.sh
check() {
name="$1"
shift
cmdline="$*"
echo "test: $name"
$cmdline
status=$?
if [ x$status = x0 ]; then
echo "success: $name"
else
... | amitay/samba | testprogs/blackbox/test_ldb.sh | Shell | gpl-3.0 | 8,014 |
#!/bin/sh
echo "YG" > /tmp/foos-debug.in
| swehner/foos | debug/goal_yellow.sh | Shell | gpl-3.0 | 42 |
#!/bin/sh
# This script generates the po/nautilus-admin.pot file
FILEPATH="$(readlink -f "$0")"
DIR="$(dirname "$FILEPATH")"
cd "$DIR"
xgettext --package-name=nautilus-admin \
--package-version=1.1.9 \
--copyright-holder='Bruno Nova <brunomb.nova@gmail.com>' \
--msgid-bugs-address='https://gi... | brunonova/nautilus-admin | generate-pot-file.sh | Shell | gpl-3.0 | 469 |
#!/bin/bash
# Copyright (C) <2014,2015> <Ding Wei>
#
# 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 i... | daviding924/ibuild | ichange/rev2patch.sh | Shell | gpl-3.0 | 1,582 |
#!/bin/dash
curl -e "http://www.google.com" -A "Mozilla/4.0" -skL "http://google.com/search?q=site:azlyrics.com+$(echo "$@" | tr ' ' '+')&btnI" | awk '
/<!-- start of lyrics -->/, /<!-- end of lyrics -->/ {
gsub("<[^>]*>", "")
gsub(/\r/, "")
print " " $0
}
' | p
| israellevin/kalisher | overlay/root/bin/lyrics.sh | Shell | gpl-3.0 | 296 |
#!/bin/bash
export PATH=$PATH:/opt/texbin
# create data paths
mkdir -p /data/db
mkdir -p /data/user_files
mkdir -p /data/compiles
mkdir -p /data/cache
mkdir -p /data/tmp
mkdir -p /data/tmp/uploads
mkdir -p /data/tmp/dumpFolder
mkdir -p /data/logs/
mongod &
redis-server &
# Waiting for mongodb to startup
until nc -z ... | DirkHeinke/sharelatex-docker | sharelatex.sh | Shell | gpl-3.0 | 2,023 |
:
# src_communityband/reset_membership_status.sh
# --------------------------------------------
# Input
# -----
echo "$0" "$*" 1>&2
if [ "$APPASERVER_DATABASE" != "" ]
then
application=$APPASERVER_DATABASE
elif [ "$DATABASE" != "" ]
then
application=$DATABASE
fi
if [ "$application" = "" ]
then
echo "Error in `ba... | timhriley/appaserver | src_communityband/reset_membership_status.sh | Shell | gpl-3.0 | 1,466 |
#!/bin/bash
if [ $# -ne 0 ]
then
echo " "
echo " "
for (( x = 1 ; x <= $1 ; x++ )); do
#Tabulacion
for (( y = $1 ; y >= x ; y-- )); do
echo -n " "
done
#resta
for (( z = 1 ; z <= x ; z++ )) ; do
echo -n "$z"
done
#Suma
for (( i = 2 ; i <= x ; i++ )); do
echo -n "$(($x - $i + 1))"
don... | procamora/Scripts-Bash | Piramide.sh | Shell | gpl-3.0 | 424 |
#!/bin/bash
set -v
make clean
make
bin/qvz -u fref.txt -c 1 -f 0.5 -s test.in test.q > write
bin/qvz -x test.q test.dec > read
diff fref.txt test.dec
| mikelhernaez/qvz | test.sh | Shell | gpl-3.0 | 153 |
java -cp ./bin/:./lib/xdb.jar:./lib/mysql-connector-java-5.1.38-bin.jar org.xdb.MigrationClient $1 $2 $3 | BrownBigData/xdb_elasticity | migration_client.sh | Shell | gpl-3.0 | 104 |
#!/bin/bash
# This bash script will be set as ENTRYPOINT, all additional arguments to the proactive node
# can be set in the COMMAND/CMD which will be propagated to the bash script as argument.
# Those arguments will be added to the ProActive node exeuction via $@
echo "Start docker daemon"
# Start docker deamon: fr... | tobwiens/proactive-node-dockerfile | 6.1.0/container-start-script.sh | Shell | gpl-3.0 | 473 |
set icon="slackware"
set kcmdline="rcutree.rcu_idle_gp_delay=1 lang_en dousb aa=/dev/loop1";
set kernel_img="(loop)/austrumi/bzImage"
set initrd_img="(loop)/austrumi/initrd.gz";
echo $"Loading ...";
loopback -d md_initrd
loopback -m md_initrd ${initrd_img};
set search_str="if test %-f \$CD/austrumi/austrumi.fs; then";... | a1ive/grub2-filemanager | boot/grubfm/distro/austrumi.sh | Shell | gpl-3.0 | 1,321 |
#for f in Transcriptions/*/*.docx; do echo $f; docxtotei --profile=oulipo $f; done
#mv Transcriptions/*/*.xml XML
cd XML
saxon -it:main -o:generated.odd ../oddbyexample.xsl corpus=.
| lb42/difdepo | 2014-10-Seminaire/convert.sh | Shell | gpl-3.0 | 184 |
#!/bin/bash
#author :Ricardo de Souza Maia
#license :GPLv3
#version :$Id
#encoding :UTF-8
#Based on GNU/Linux CentOS /etc/init.d/httpd script
# httpd -f /etc/httpd-seplan/conf/httpd.conf -d /etc/httpd-seplan/
# start|restart|graceful|stop|graceful-stop
#httpd -f /etc/httpd-seplan/conf... | google-code/apache-isolated-instances | httpd.sh | Shell | gpl-3.0 | 1,204 |
echo "Starting Diamond DMS ..."
nohup java -classpath ./lib/activation-1.1.jar:./lib/commons-fileupload-1.2.2.jar:./lib/commons-io-2.0.1.jar:./lib/commons-lang3-3.1.jar:./lib/commons-logging.jar:./lib/commons-modeler.jar:./lib/commons-validator-1.4.0.jar:./lib/derby.jar:./lib/dmsmodel.jar:./lib/dmsserver.jar:./lib/dmsw... | Kreidos/diamond | script/diamonddms.sh | Shell | gpl-3.0 | 768 |
#!/bin/bash
# easy_install3 simple-crypt
aptitude install python3-yaml python3-nmap python3-dialog python3-netifaces python3-netaddr python3-psutil
| berserkerbernhard/Lidskjalv | code/networkmonitor/install_dependencies.sh | Shell | gpl-3.0 | 150 |
#! /bin/bash
# FoxCatcher - a bulk firefox downloader
# Downloads multiple versions of firefox with different locales
# for testing translations and accept language headers
# dillbyrne GNU GPL v3
catch_foxes()
{
declare -a LANGS=( $(echo $3 | sed -e 's/,/ /g') )
for L in "${LANGS[@]}"
do
# Check the version ... | dillbyrne/addon-dev-tools | foxcatcher.sh | Shell | gpl-3.0 | 3,164 |
#!/bin/bash
###########################################################################
# Copyright (c) 2011-2014 Unixmedia S.r.l. <info@unixmedia.it>
# Copyright (c) 2011-2014 Franco (nextime) Lanza <franco@unixmedia.it>
#
# Domotika System Controller Daemon "domotikad" [http://trac.unixmedia.it]
#
# This file is par... | nexlab/domotikad | clean.sh | Shell | gpl-3.0 | 1,138 |
#!/usr/bin/env zsh
# Copyright (C) 2016 Nico Bäurer
# #
# # 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.
# #
# # ... | seebye/dotfiles | i3/lemonbar-music.sh | Shell | gpl-3.0 | 2,938 |
#!/bin/bash
###################################
# $Id: backup 379 2012-04-02 08:43:42Z netkiller $
# Author: netkiller@msn.com
# Home: http://www.netkiller.cn
###################################
#Number of copies
COPIES=30
###################################
BACKUP_HOST="localhost"
BACKUP_USER="admin"
BACKUP_PASS=""
BA... | oscm/shell | backup/backup.mongodb.sh | Shell | gpl-3.0 | 992 |
#!/bin/bash
last_status=0
req_string="https://api.vk.com/method/users.get?user_ids=347745&fields=online&v=5.8"
while (( 1 ))
do
sleep 60
api_ans=$(wget "$req_string" -q -O - | grep -oP "\"online\":\d")
cur_status=${api_ans: -1}
if [[ $cur_status != $last_status ]]
then
if [[ $cur_status ==... | ItsLastDay/academic_university_2016-2018 | subjects/Bash&Python/bash_hw2/5.sh | Shell | gpl-3.0 | 496 |
#!/bin/sh
cd "$(dirname "$0")"
exec ./1812_aventura_linux_x86.x86 "$@" | Firenz/1812 | executables/linux/x86/run_1812.sh | Shell | gpl-3.0 | 74 |
#!/bin/sh
# Ensure that moving hard-linked arguments onto existing destinations works.
# Likewise when using cp --preserve=link.
# Copyright (C) 2003-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 pub... | pexip/os-coreutils | tests/mv/hard-2.sh | Shell | gpl-3.0 | 2,030 |
#!/usr/bin/env bash
# usage: travis.sh before|after
if [ $1 == 'before' ]; then
composer self-update
# install php-coveralls to send coverage info
composer init --require=satooshi/php-coveralls:0.7.0 -n
composer install --no-interaction --ignore-platform-reqs
elif [ $1 == 'after' ]; then
if [ "$TRAVIS_PHP_VER... | geminilabs/pollux | tests/bin/travis.sh | Shell | gpl-3.0 | 516 |
#!/bin/bash
##
## @brief @(#) Test domain 3
##
## @file dom3.sh
##
## -----------------------------------------------------------------------------
## Enduro/X Middleware Platform for Distributed Transaction Processing
## Copyright (C) 2009-2016, ATR Baltic, Ltd. All Rights Reserved.
## Copyright (C) 2017-2019, Mavimax... | endurox-dev/endurox | atmitest/dom3.sh | Shell | agpl-3.0 | 1,733 |
#!/bin/sh
#
# Copyright (c) 2014, Scott J Maddox
#
# This file is part of SimpleQW.
#
# SimpleQW 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 of the
# License, or (at you... | scott-maddox/simpleqw | test_setup.sh | Shell | agpl-3.0 | 1,224 |
#!/bin/sh
# Stamp logs of Symfony1.x projects with the date of the last log line
# (of each file in log/history/). Support gzip compression.
# Tested with sf1.4 (the PHP framework) under Linux with bash & zless installed.
#
# Created on 2012-11-27 by Julien Moreau aka PixEye
for f in log/history/*.log*
do
echo
ls -... | PixEye/PixShellScripts | sf-date-logs.sh | Shell | agpl-3.0 | 546 |
#!/bin/bash
#######################################################################
#
# MNXB01-2017-HW3b
# File: pokemoninfo.sh.skeleton file
# Author: Florido Paganelli florido.paganelli@hep.lu.se
# Lund University
#
########################################################################
# The script must t... | floridop/MNXB01-2017 | alehuusko/HW3b/pokemoninfo.sh | Shell | agpl-3.0 | 4,042 |
#!/bin/bash
exit_status=0
function t() {
expected=$1
shift
diff -u --label Expected <( echo -n "$expected" ) \
--label Actual <( ./planeteer "$@" ) || exit_status=1
}
t ' 850,000 Buy 300 Medical Units
850,000 Jump from Earth to Sickonia (2 hyper jump units)
3,220,600 Sell 300 Medical U... | chkno/planeteer | test.sh | Shell | agpl-3.0 | 20,881 |
#!/bin/bash
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
HOMEBREW_NO_AUTO_UPDATE=1 brew install curl nettle libmicrohttpd libuv
git clone https://github.com/Storj/libstorj.git
cd libstorj
./autogen.sh
./configure
sudo make install
else
echo "deb http://us.archive.ubuntu.com/ubuntu/ xenial main" ... | Storj/node-libstorj | .travis.sh | Shell | lgpl-2.1 | 1,243 |
#!/bin/bash
set -o errexit
cd cpp
mkdir -p dist
cd dist
cmake ..
make -j5
cd ../..
| nikki-and-the-robots/nikki | src/build-qtwrapper.sh | Shell | lgpl-3.0 | 85 |
set -x
g++ -std=c++11 main.cpp -o cpusage-DBG -O0 -g -Wall
g++ -std=c++11 main.cpp -o cpusage -O3 -s -Wall
| vivaladav/BitsOfBytes | cpp-program-to-get-cpu-usage-from-command-line-in-linux/build.sh | Shell | unlicense | 107 |
#!/bin/sh
echo "Make sure you are in desired folder (e.g. ~/f-droid.org/) prior to running this script."
echo "You may also want to modify 'repo_url' on fdroid_backup_aio.py if you wish to mirror a site besides f-droid.org"
echo "Downloading latest F-Droid files to current directory..."
python fdroid_backup_aio.py
wait... | g4jc/fdroid-backup | fdroid_fresh.sh | Shell | unlicense | 941 |
#!/bin/bash
sleep 20 && conky;
| cybert79/HaXor | dot-files/conkyscript.sh | Shell | unlicense | 31 |
#!/bin/sh
#
# git_checkout.sh
#
# part of pfSense (https://www.pfsense.org)
# Copyright (c) 2004-2018 Rubicon Communications, LLC (Netgate)
# 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 cop... | ptorsten/pfsense | build/scripts/git_checkout.sh | Shell | apache-2.0 | 2,752 |
#!/bin/bash -e
set -beEu -o pipefail
echo "CREATE HOLDOUT PATCH!"
if [ $# -eq 1 ]
then
version_string="AND version = $1"
else
version_string=""
fi
GP_CUTOFF=`cat ../results_log/gp_cutoff`
cd ..
source env_local.sh
deepdive sql """
SELECT
labeler,
true_pos,
true_neg,
false_pos,
false_neg,
(true_pos::... | HazyResearch/dd-genomics | util/gp_raw_stats.sh | Shell | apache-2.0 | 2,413 |
#!/usr/bin/env bash
if [ "`head -1 $0`" != "#!/usr/bin/env bash" ]; then
echo "Shebang of the original file isn't the first line of the produced artefact" >&2
exit 1
fi
| thought-machine/please | test/sh_rules/shebang.sh | Shell | apache-2.0 | 179 |
#!/bin/bash
set -uxf -o pipefail
usage() {
echo $"Usage: $0 <cassandra_version> <schema_version>"
exit 1
}
check_arg() {
if [ ! $# -eq 2 ]; then
echo "ERROR: need exactly two arguments, <cassandra_version> <schema_version>"
usage
fi
}
setup_cassandra() {
local tag=$1
local image=cassandra
loca... | jaegertracing/jaeger | scripts/cassandra-integration-test.sh | Shell | apache-2.0 | 1,313 |
#!/bin/bash
#
# Copyright 2022 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 ... | GoogleCloudPlatform/bq-pii-classifier | scripts/prepare_data_projects_for_auto_dlp_mode.sh | Shell | apache-2.0 | 1,116 |
#!/bin/bash
UNITTESTS=1
DEPCHECK=1
MINCOVERAGE=85
set -e # quit on error
# allow user to skip parts of docker test
# this wrapper script only cares about -n, -u, -i, others passed to test suite.
while getopts "cdijknsux" o $FAUCET_TESTS; do
case "${o}" in
i)
# run only integration tests
... | trentindav/faucet | docker/runtests.sh | Shell | apache-2.0 | 2,579 |
#!/usr/bin/env bash
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python ./scripts/action-recognition/train_recognizer.py \
--dataset kinetics400 \
--data-dir /home/ubuntu/data/kinetics400/train_256 \
--val-data-dir /home/ubuntu/data/kinetics400/val_256 \
--train-list /home/ubuntu/data/kinetics400/k400_train_24... | dmlc/web-data | gluoncv/logs/action_recognition/kinetics400/i3d_inceptionv1_kinetics400.sh | Shell | apache-2.0 | 1,040 |
#!/bin/bash
source ~/.bashrc
echo Host name: `hostname`
umask 002
if [ $# -lt 1 ]
then
echo "Usage: wrapper.sh <command>"
echo "Where <command> is the command to be executed by the SGE"
else
echo "Executing command: $@"
exec "$@"
fi
| romanzenka/swift | swift/scripts/src/main/resources/bin/util/sgeWrapper.sh | Shell | apache-2.0 | 241 |
#!/bin/bash
# Function to update the fpm configuration to make the service environment variables available
function setEnvironmentVariable() {
if [ -z "$2" ]; then
echo "Environment variable '$1' not set."
return
fi
# Check whether variable already exists
if grep -q $1 /etc/php5/fpm/po... | crollalowis/docker-apache-php5 | run.sh | Shell | apache-2.0 | 927 |
#!/usr/bin/env bash
# prepare_NA12878.sh: download NA12878 reads and prepare chr22-related reads
# We need to include all the reads on chr22 or an associated alt, but also any
# reads that are pair partners with those reads. We will keep them all in paired
# FASTQs.
set -ex
# Download the CRAM
wget --progress=dot:gi... | adamnovak/hgvm-builder | scripts/prepare_NA12878.sh | Shell | apache-2.0 | 1,057 |
#!/bin/bash
USER_SVM_PATH="$HOME/.svm"
TEMP_PATH="/tmp"
#
# helper functions
#
_svm_title_message() {
local message="$1"
echo -e "\n\033[1;4m $message \033[0m\n"
}
_svm_info_message() {
local message="$1"
echo -e " $message "
}
_svm_error_message() {
local message="$1"
echo -e "\033[41m $message \033[0m"... | modulexcite/svm | install/installer.sh | Shell | apache-2.0 | 4,772 |
#!/usr/bin/env bash
# Copyright 2019 The Knative 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 ... | knative-sandbox/net-http01 | hack/update-codegen.sh | Shell | apache-2.0 | 1,003 |
#!/bin/bash
cd ..
mvn package
cd docker
if [ ! -f "lib" ]; then
mkdir lib
fi
echo "Copying libraries..."
cp ../accumulo-mesos-framework/target/accumulo-mesos-framework-0.2.0-SNAPSHOT-jar-with-dependencies.jar lib/
cp ../accumulo-mesos-dist/target/accumulo-mesos-dist-0.2.0-SNAPSHOT.tar.gz lib/
| aredee/accumulo-mesos | docker/build-framwork.sh | Shell | apache-2.0 | 298 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.