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
cat > sdksyms.c << EOF
/* This file is automatically generated by sdksyms.sh. */
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
/* These must be included first */
#include "misc.h"
#include "miscstruct.h"
/* render/Makefile.am */
#inc... | twobob/buildroot-kindle | output/build/xserver_xorg-server-1.9.4/hw/xfree86/loader/sdksyms.sh | Shell | gpl-2.0 | 7,416 |
#! /bin/sh
# Copyright (C) 1998-2022 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 2, or (at your option)
# any later version.
#
# This program ... | autotools-mirror/automake | t/link_c_cxx.sh | Shell | gpl-2.0 | 1,313 |
#!/bin/bash
# Copyright (c) 2011, Intel Corporation.
#
# 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 appli... | junqiang521/Test | dnvme/tnvme-master/dbgMemLeak.sh | Shell | gpl-2.0 | 1,123 |
#! /bin/sh
# Copyright (C) 2011-2022 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 2, or (at your option)
# any later version.
#
# This program ... | autotools-mirror/automake | t/tap-result-comment.sh | Shell | gpl-2.0 | 1,330 |
#! /bin/sh
# Copyright (C) 2001-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 2, or (at your option)
# any later version.
#
# This program ... | komh/automake-os2 | t/suffix6.sh | Shell | gpl-2.0 | 1,746 |
#!/bin/sh
# hostname for Splice's rpm builder machine
# used by install scripts to setup up yum repo files
export BUILDER_ADDR=ec2-23-22-86-129.compute-1.amazonaws.com
function waitfor() {
if [ "$#" -ne 4 ]; then
echo "Incorrect usage of waitfor() function, only $# arguments passed when 4 were expected"
... | splice/splice-server | ec2/scripts/functions.sh | Shell | gpl-2.0 | 1,124 |
#!/bin/bash
. `dirname $0`/functions.sh
# First check if __thread is supported by ld.so/gcc/ld/as:
rm -f tlstest
echo '__thread int a; int main (void) { return a; }' \
| $CC -xc - -o tlstest > /dev/null 2>&1 || exit 77
( ./tlstest || { rm -f tlstest; exit 77; } ) 2>/dev/null || exit 77
rm -f tls4 tls4lib*.so tls4.log... | ystk/debian-prelink | testsuite/tls4.sh | Shell | gpl-2.0 | 944 |
#!/bin/sh
ifconfig lo 127.0.0.1
if [ -f /lib/modules/r8101.ko ]; then
insmod /lib/modules/r8101.ko
else
insmod /lib/modules/sdp_mac.ko
fi
| card2000/buildroot-sam | package/busybox/files/genoa/etc/Scripts/network_init.sh | Shell | gpl-2.0 | 145 |
#!/bin/sh
mount 192.168.0.1:/mnt/nfs
| lumenosys/lumenosys-adi-buildroot | board/Lumenosys/blackfin/target_skeleton/root/mount.sh | Shell | gpl-2.0 | 37 |
#!/bin/sh
AM_VERSION="1.9"
if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
# automake-1.9 (recommended) is not available on Fedora 8
AUTOMAKE=automake
ACLOCAL=aclocal
else
ACLOCAL=aclocal-${AM_VERSION}
AUTOMAKE=automake-${AM_VERSION}
fi
echo "Generating build scripts in linphone..."
set -x
libtoolize --copy... | scs/uclinux | user/linphone/linphone-3.0.0/autogen.sh | Shell | gpl-2.0 | 603 |
#!/bin/sh
# quit on errors:
set -o errexit
# quit on unbound symbols:
set -o nounset
DIR=`dirname "$0"`
cd $DIR
export FLASK_APP=app.py
# Setup fixtures
flask db init
flask db create
| krzysztof/invenio-pidrelations | examples/app-fixtures.sh | Shell | gpl-2.0 | 188 |
#!/bin/bash
PYTHONPATH=$QUARK_CROOT/common:$QUARK_CROOT/tab python $QUARK_CROOT/tab/tab.py $1 $2
| UCSD-PL/kraken | reflex/coq/bench-quark/test/quark/tab/tab.sh | Shell | gpl-2.0 | 98 |
#!/system/bin/sh
SLEEP=500
if [ -e /data/.FM/calibrata ] ; then
exit 0
fi
(
while : ; do
#in case we might want to cancel the calibration by creating the file
if [ -e /data/.FM/calibrata ] ; then
exit 0
fi
LEVEL=$(cat /sys/class/power_supply/battery/capacity)
CURR_ADC=$(cat /sys/... | riversource/Galaxy-Note-Kernel | initramfs_own/sbin/boot/calibrate.sh | Shell | gpl-2.0 | 964 |
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
die() { echo "$@" ; exit 1; }
# only one process can talk to the pump at a time
ls /tmp/openaps.lock >/dev/null 2>/dev/null && die "OpenAPS already running: exiting" && exit
echo "No lockfile: continuing"
touch /tmp/openaps.lock
/home/pi/d... | oskarpearson/betacb | old/loop.sh | Shell | gpl-2.0 | 4,231 |
# (c) Copyright 2009 - 2010 Xilinx, Inc. All rights reserved.
#
# This file contains confidential and proprietary information
# of Xilinx, Inc. and is protected under U.S. and
# international copyright and other intellectual property
# laws.
#
# DISCLAIMER
# This disclaimer is not a license and does not grant... | elegabriel/myzju | junior1/CA/mips_pipeline2/ipcore_dir/instrmem/simulation/functional/simulate_vcs.sh | Shell | gpl-2.0 | 2,907 |
#!/bin/bash --
set -e
set -x
EXTNAME="${1}"
NOTESTS="${2}"
# Install dependencies
composer update -n --prefer-dist --no-progress
# Prepare extension structure
mkdir -p ../phpBB3/phpBB/ext/"${EXTNAME}"
# Build extension package
vendor/bin/phing
# Copy extension files and directories
cp -a build/package/"${EXTNAME}... | AlfredoRamos/phpbb-ext-simple-spoiler | .github/setup-extension.sh | Shell | gpl-2.0 | 493 |
#!/usr/bin/env bash
# clean.sh
#
# Author: Yann KOETH
# Created: Tue Jul 22 20:27:47 2014 (+0200)
# Last-Updated: Tue Jul 22 20:30:43 2014 (+0200)
# By: Yann KOETH
# Update #: 12
#
sudo rm -rvf *.egg *.pyc illum/ build/ *~
| xsyann/detection | clean.sh | Shell | gpl-2.0 | 238 |
source "$variables"
heading SETUP
if ! dpkg -s "curl" >> /dev/null 2>&1
then
sudo apt-get -y install "curl" || exit 1
fi
subheading "on controller, get token from Keystone (as admin)"
ssh ubuntu@controller "source admin-openrc.sh; openstack token issue" | tee "$TMP_PATH/remote.log" | log -i -vvv
TOKEN=`grep " i... | MasterprojectOpenStack2015/sourcecode | experiments/02_memcache_flush/setup.sh | Shell | gpl-2.0 | 449 |
# prompt.sh sets up the look and feel of
# the command prompt.
# \u = user
# \h = hostname
# \W = current directory name only not full PWD
PS1='\u@\h:\W$ '
| jwaterfaucett/bashd | config/prompt.sh | Shell | gpl-2.0 | 157 |
#!/bin/bash
# Make sure warpspeed environment vars are available before proceeding.
if [ -z "$WARPSPEED_ROOT" ] || [ -z "$WARPSPEED_USER" ]; then
echo "Error: It appears that this server was not provisioned with Warpspeed."
echo "WARPSPEED_ROOT and WARPSPEED_USER env vars were not found."
exit 1
fi
# Impo... | warpspeed/warpspeed | installers/redis.sh | Shell | gpl-2.0 | 609 |
#!/bin/sh
[ -n "$INCLUDE_ONLY" ] || {
NOT_INCLUDED=1
INCLUDE_ONLY=1
. ../netifd-proto.sh
. ./ppp.sh
init_proto "$@"
}
proto_3g_init_config() {
no_device=1
available=1
ppp_generic_init_config
proto_config_add_string "device:device"
proto_config_add_string "apn"
proto_config_add_string "service"
proto_conf... | LeeNCompanyInc/openwrt | package/network/utils/comgt/files/3g.sh | Shell | gpl-2.0 | 2,623 |
#!/bin/sh
expt=$1
if [ x"$expt" = x ]; then
>&2 echo "Usage: $0 EXPTID [DECODER]"
exit 1
fi
decode=${2:-../src/programs/pocketsphinx_batch}
# `dirname $decode`/../../libtool --mode=execute \
# valgrind --tool=massif \
# --alloc-fn=__ckd_calloc__ --alloc-fn=__ckd_calloc_2d__ --alloc-fn=__ckd_calloc_3d_... | HomeBankCode/lena-its-tools | pocketsphinx-master/regression/wsj1_test5k_fast.sh | Shell | gpl-2.0 | 924 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2011-2020 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... | ppannuto/tup | test/t8003-display.sh | Shell | gpl-2.0 | 1,049 |
#!/bin/bash
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
. "$DIR/Common.sh"
detect_os
export PATH=$PATH:/usr/local/bin
service subsonic stop
useradd --system syssubsonic
gpasswd --add syssubsonic audio
gpasswd --add syssubsonic video
if [ $os == "centos" ]
then
fileLoc="/etc/sysconfig/s... | roddydairion/Subsonic | RunConfig.sh | Shell | gpl-3.0 | 1,196 |
#!/usr/bin/env bash
# Installs motion-notify and all required dependencies.
# Pre-requisites: Run script as root, ensure a motion.motion user exists, ensure that /etc/motion-notify does NOT exist
# Refer to the README for additional steps required for configuring Google Drive, email and etc (those steps aren't covered... | amdean/motion-notify | install-motion-notify.sh | Shell | gpl-3.0 | 1,592 |
#!/bin/bash
#------------------------------------------------------------------
# Copyright (c) 2006-2011 Gluster, Inc. <http://www.gluster.com>
# This file is part of Gluster Management Console.
#
# Gluster Management Console is free software; you can redistribute
# it and/or modify it under the terms of the GNU Gene... | gluster/gmc | build/gmc-build.sh | Shell | gpl-3.0 | 9,309 |
#!/bin/env bash
docker stop mysql
docker rm mysql
docker rmi cn/mysql
docker build -t cn/mysql .
| cn100800/book | tools/NMRPG/mysql/build.sh | Shell | gpl-3.0 | 97 |
#!/bin/bash
# test many concurrent tcp connections
uname
if [ `uname` = "FreeBSD" ] ; then
echo "This test currently does not work on FreeBSD."
exit 77
fi
echo \[manytcp.sh\]: test concurrent tcp connections
uname
if [ `uname` = "SunOS" ] ; then
echo "Solaris: FIX ME"
exit 77
fi
. $srcdir/diag.sh init
.... | madedotcom/rsyslog | tests/manytcp.sh | Shell | gpl-3.0 | 769 |
#!/bin/bash
source "${SOURCEDIR}/custombuildscripts/android/prepare_sources.sh"
# mkdir "${TARGETDIR}/interfacestmp"
# cp -L -f -R "${SOURCEDIR}/src/interfaces" "${TARGETDIR}/interfacestmp"
# cp -L -f -R "${SOURCEDIR}/src/interfaces" "${TARGETDIR}"
# mkdir "${TARGETDIR}/scriptstmp"
# cp -L -f -R "${SOURCEDIR}/src... | thica/ORCA-Remote | custombuildscripts/debian/prepare_sources.sh | Shell | gpl-3.0 | 594 |
#!/bin/bash
#
# delete server file older than 7days
#sudo rclone --min-age 7d delete gdsecret:$(hostname -f)
# --drive-use-trash=false
sudo rclone sync --drive-use-trash=false /srv/backs/ gdsecret:$(hostname -f)
if [ $? -eq 0 ]
then
echo "Sync complete"
fi
| PoppyPop/docker | system/backup-scripts/scripts/backup-sync.sh | Shell | gpl-3.0 | 263 |
#!/bin/bash
# DOCUMENTATION SECTION.
:<<'CHARACTERS'
Key characters in the game
==========================
0. Table of contents
---------------------
1. Bosses
2. Wise guys
3. Lone wolves
4. Merchants
5. Hookers
1. Bosses
----------
Tony Emacsio
The leader of the Gnumino family. Best known for his greed, he... | yaaun/gta-bash | gtab.sh | Shell | gpl-3.0 | 7,053 |
:
# script_reponse.sh
# -----------------
#
# -- Tim Riley
# -----------------
grep=/usr/xpg4/bin/grep
cat typescript |
$grep -e ": " -e '? ' |
grep '^[A-Z]' |
grep -v SQL
| timhriley/appaserver | utility/script_response.sh | Shell | gpl-3.0 | 179 |
#!/bin/bash
set -ex
if rustc --version | grep '\(beta\|nightly\|dev\)'; then
echo "On non-stable rust version, no deploy."
exit 0
fi
# On stable!
# Create a "staging" directory
mkdir staging
# Copy the release binary to staging.
cp target/$TARGET/release/tfs staging
cd staging
# Prepare the release that ... | terminalcloud/tfs | ci/before_deploy.sh | Shell | gpl-3.0 | 399 |
LD_LIBRARY_PATH=../../target/release ./romkana_cli $1
| odrevet/libkana | test/romaji_to_katakana_C_cli/run.sh | Shell | gpl-3.0 | 54 |
#!/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 1B/logs/w-11-B/20161202T014316+0000/00/00/averageratioevent_3_ID0000027.sh | Shell | gpl-3.0 | 1,261 |
#!/bin/bash
python RunBootstrap.py --paralog1 YDR418W --paralog2 YEL054C --bootnum 84 > YDR418W_YEL054C_Boot84_PrintScreen.txt
| xjw1001001/IGCexpansion | Bootstrap/ShFiles/MG94_YDR418W_YEL054C_Boot84.sh | Shell | gpl-3.0 | 128 |
# If we're not running on a real cluster then we need a local copy of
# ctdb (and other stuff) in $PATH and we will use local daemons.
# Use in-tree binaries if running against local daemons.
# Otherwise CTDB need to be installed on all nodes.
if [ -n "$ctdb_dir" -a -d "${ctdb_dir}/bin" ] ; then
# ctdbd_wrapper is in... | sathieu/samba | ctdb/tests/simple/scripts/local_daemons.bash | Shell | gpl-3.0 | 5,528 |
#!/bin/bash
# set -x
# setup a new tinderbox image
# $1:$2, eg. 3:5
function dice() {
[[ $(( $RANDOM%$2)) -lt $1 ]]
}
# helper of ThrowUseFlags
function ThrowUseFlags() {
local n=$1 # pass up to n-1
local m=${2:-4} # mask 1:m of them
shuf -n $(( $RANDOM%$n)) |\
sort |\
while read -r flag
d... | toralf/tinderbox | bin/setup_img.sh | Shell | gpl-3.0 | 21,582 |
#!/bin/bash
set +v
if [ ! -d sysrestore.z ]; then
mkdir sysrestore.z
fi
if [ ! -f sysrestore.conf ]; then
echo "No sysrestore.conf"
exit 1
fi
if [ "$1" = "create" ]; then
while read line
do
if [ "$line" = "" ]; then
continue
fi
SAVEFILE=${line////__}
cp -v -p $line "sysrestore.z/${SAVEFILE}"
d... | ljay79/yoda | setup/sysrestore.sh | Shell | gpl-3.0 | 692 |
#!/bin/sh -e
# Run lxc-test.sh on LXD containers in parallel.
process_args() {
script=$(readlink -f "$0")
script_path=$(dirname "${script}")
while [ "$1" ]; do
case "$1" in
"-c" | "--container")
shift
containers="${containers} $1"
;;
"-f" | "--file")
shift
... | mattclay/ansible-hacking | lxc-parallel-test.sh | Shell | gpl-3.0 | 2,269 |
#!/bin/sh
echo 1..4
#########################################
./scc 1 < $srcdir/Matrix/scc.sms
./scc 2 < $srcdir/Matrix/scc2.sms
./scc 3 < $srcdir/Matrix/scc3.sms
./scc 4 < $srcdir/Matrix/mat364.sms | cbouilla/spasm | test/test_scc.sh | Shell | gpl-3.0 | 200 |
#!/bin/bash
Version=$(nvidia-settings -q openglversion -t)
Thermal0=$(nvclock -c 1 -T | grep GPU)°C
Thermal1=$(nvclock -c 2 -T | grep GPU)°C
echo "<openbox_pipe_menu>"
echo '<separator label="OpenGL / Version" />'
echo "<item label=\"$Version\" />"
echo '<separator label="Temperature GPU 0" />'
echo "<item label=\"$Th... | widowild/messcripts | bash/nvidiatemp.sh | Shell | gpl-3.0 | 448 |
#!/bin/sh
now="$(date): update all"
git add -A README.md
git add -A CMakeLists.txt
git add -A update-all.sh
git add -A src/*
git add -A include/*
#git add -A resources/*
git commit -m "$now"
git push origin master
| duguyue100/unixprotege | update-all.sh | Shell | gpl-3.0 | 218 |
#!/bin/bash
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
dataset_name="Ill_Br"
project_out_dir="/proj/b2011117/private/projects/out/db/cal_stat_$dataset_name"
vcf_tabix_file="/glob/jessada/private/master_data/CMM/CMM_Scilife_b2011158/vcf/Ill_Br_Fam242.vcf.gz"
patients_list="/glob/jessada/private/mast... | bahamoot/CMM-AL-projects | scripts/mutstat/mut_stat_Ill_Br/create_jobs_setup.sh | Shell | gpl-3.0 | 667 |
#!/bin/bash
python AnalyzeSimulation.py --paralog1 YNL069C --paralog2 YIL133C --simnum 67 > YNL069C_YIL133C_MG94_nonclock_Sim67_PrintScreen.txt
| xjw1001001/IGCexpansion | Simulation/ShFiles/MG94_YNL069C_YIL133C_sim67.sh | Shell | gpl-3.0 | 145 |
#!/bin/sh
#mode=online
mode=collect
pln_fitting_method=1
alpha=1
beta=1
min_inliers=1000
useWeight=1
total_frames=10
usePln=1
usePt=1
max_icp=10
max_lm=10
occluding=1
curvature=0
canny=0
mkdir data
mkdir data/depth
mkdir data/rgb
rm data/depth/*.png
rm data/rgb/*.png
rm data/*.txt
bin/Soledad -plnfit ${pln_fitti... | ElinorSun/Soledad | build/run/run_online.sh | Shell | gpl-3.0 | 580 |
#! /bin/bash
# Source: https://raw.github.com/thenbrent/multisite-user-management/master/deploy.sh
# http://thereforei.am/2011/04/21/git-to-svn-automated-wordpress-plugin-deployment/
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn
# The difference is ... | nickohrn/multiple-rich-editors | deploy.sh | Shell | gpl-3.0 | 2,810 |
#!/bin/bash
OLD_PATH=$(pwd)
echo $OLD_PATH
export PATH=$PATH:/c/Program\ Files/PostgreSQL/13/bin:/c/Program\ Files\ \(x86\)/WinSCP
cd src
sed -i 's/http:\/\/localhost:8000/https:\/\/firmadigital.solvosoft.com/g' client_fva/user_settings.py
sed -i 's/self.installation_path = None/self.installation_path = "C"/g' clien... | luisza/dfva_client | builder/ci/windows.sh | Shell | gpl-3.0 | 1,077 |
#!/usr/bin/env bash
# Author: Dmitri Popov, dmpop@linux.com
#######################################################################
# 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 versi... | dmpop/little-backup-box | scripts/ios-backup.sh | Shell | gpl-3.0 | 3,947 |
kubectl patch petset web -p '{"spec":{"replicas":0}}'
| hunering/demo-code | kubernates/petset/stop-petset.sh | Shell | gpl-3.0 | 54 |
#!/bin/bash
NUM_OF_REQUESTS=1000
NUM_OF_CONCURRENT_REQUESTS=100
SERVER="127.0.0.1"
PORT=54569
CHANNEL=liveshow
if [ -n "$1" ]; then
NUM_OF_REQUESTS="$1"
fi
if [ -n "$2" ]; then
NUM_OF_CONCURRENT_REQUESTS="$2"
fi
ab -k -n $NUM_OF_REQUESTS -c $NUM_OF_CONCURRENT_REQUESTS -p post_file -H "channel: $CHANNEL" htt... | shelmesky/message_service | benchmark/post_benchmark.sh | Shell | gpl-3.0 | 348 |
#! /bin/zsh
#set -x
TMP=${TMP:-/tmp}
P2XOPTS=($P2XOPTS -X -m -Vtimes,io)
infile=$TMP/p2x-speed-in
outfile=$TMP/p2x-out.xml
IN_KB=${IN_KB:-1000} # how many KB of input data
P2X=${P2X:-p2x}
yes | dd of=$infile ibs=16c cbs=2c count=$((64*$IN_KB)) obs=1c conv=block,sync
ls -lh $infile
szin=$(ls -l $infile | cut -d ... | rainac/p2x | tests/sh/speed_test.sh | Shell | gpl-3.0 | 605 |
######################################
# INSTALL OPENCV ON UBUNTU OR DEBIAN #
######################################
# All credits: milq
# Avaliable on: https://github.com/milq/milq/blob/master/scripts/bash/install-opencv.sh
# | THIS SCRIPT IS TESTED CORRECTLY ON |
# |-----------------------------... | ajunior/scripts | opencv.sh | Shell | gpl-3.0 | 2,564 |
#!/bin/bash
#
# Ezanvakti Yapılandırma Yöneticisi Bileşeni 2.1
#
#
# --config --gui css dosyası
if [[ -f ${EZANVAKTI_DIZINI}/ezanvakti-config.css ]]
then
EZV_CSS4="${EZANVAKTI_DIZINI}/ezanvakti-config.css"
else
EZV_CSS4="${VERI_DIZINI}/veriler/ezanvakti-config.css"
fi
yapilandirma() {... | fbostanci/ezanvakti | lib/yapilandirma_yoneticisi.bash | Shell | gpl-3.0 | 18,790 |
#!/bin/bash
set -ex
ostree pull --repo=$LUG_path --mirror flathub --depth=1
flatpak build-update-repo $LUG_path
| sjtug/mirror-docker | lug/worker-script/flatpak.sh | Shell | agpl-3.0 | 114 |
#!/bin/bash
xyz()
{
echo "curr func:$FUNCNAME is executing..."
}
xyz
echo "curr func: $FUNCNAME"
| cxsjabc/basic | bash/_basic/func.sh | Shell | agpl-3.0 | 103 |
#! /bin/bash
#
#----------------------------------------------------------------------------
#
# - Oh Jasmin Dynamic DNS -
#
# Copyright 2000 - 2015 by
# SwordLord - the coding crew - http://www.swordlord.com
# and contributing authors
#
# This program is free software; you can redistribute it and/or modify it
# under ... | LordEidi/ohjasmin.js | utilities/updatedns.sh | Shell | agpl-3.0 | 2,010 |
#!/usr/bin/env bash
set -eu
DB_HOST=localhost
DB_USER=$1
NEW_USER_PASSWORD=$2
DB_NAME=$3
DUMP_FILE="${4}"
export PGPASSWORD="${NEW_USER_PASSWORD}"
psql_settings=("--username=${DB_USER}" "--host=${DB_HOST}" "--dbname=${DB_NAME}" "--set" "ON_ERROR_STOP=on")
gunzip --stdout "history.${DUMP_FILE}" \
| sed -e "/ALTER... | akvo/akvo-lumen | postgres/migration-from-elephantsql-to-google-sql/restore-one-db.sh | Shell | agpl-3.0 | 899 |
#!/usr/bin/env bash
. $builddir/tests/test_common.sh
set -e
set -o pipefail
function test_xccdf_results_arf_asset {
local DS="${srcdir}/test_xccdf_results_arf_no_oval.xccdf.xml"
local result="results.xml"
local stderr="error.log"
[ -f $result ] && rm -f $result
$OSCAP xccdf eval --results-arf $... | OpenSCAP/openscap | tests/API/XCCDF/unittests/test_xccdf_results_arf_asset.sh | Shell | lgpl-2.1 | 2,089 |
#!/bin/bash
set -e
set -x
apt-get update
apt-get install -y git python-pip python-dev libgeoip-dev
pip install virtualenv
SCRIPTS=`dirname $0`
if [ ! -d "/opt/hpfeeds-logger" ]
then
cd /opt/
virtualenv hpfeeds-logger
. hpfeeds-logger/bin/activate
pip install hpfeeds-logger==0.0.7.1
else
echo "It... | Endika/mhn | scripts/install_hpfeeds-logger-splunk.sh | Shell | lgpl-2.1 | 1,829 |
#!/bin/bash
# make TARGET overrideable with env
: ${TARGET:=$HOME/miniconda}
function install_miniconda {
echo "installing miniconda to $TARGET"
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O mc.sh -o /dev/null
bash mc.sh -b -f -p $TARGET
}
install_miniconda
export PATH=$TARGET/bin:$P... | trendelkampschroer/msmtools | tools/ci/travis/install_miniconda.sh | Shell | lgpl-3.0 | 324 |
#!/bin/bash -eux
wget -q http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key -O - | apt-key add -
cat > /etc/apt/sources.list.d/jenkins.list << MUFASA
deb http://pkg.jenkins-ci.org/debian-stable binary/
MUFASA
apt-get update
apt-get install -qq jenkins git
service jenkins start
curl -sSOL https://updates.je... | gnawhleinad/mufasa | install/jenkins.sh | Shell | unlicense | 1,454 |
sudo docker run -ti --rm \
-e DISPLAY=$DISPLAY \
--privileged \
-v /dev/bus/usb:/dev/bus/usb \
-v /tmp/.X11-unix:/tmp/.X11-unix \
42n4/android-studio
| pwasiewi/dokerz | android-studio/android.sh | Shell | unlicense | 163 |
sudo apt-get install python-pip
sudo apt-get install python-bs4
sudo apt-get install python-wget
| Pensel/kikaloader | install.sh | Shell | unlicense | 97 |
#!/usr/bin/env bash
# Copyright 2016 The TensorFlow 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... | chemelnucfin/tensorflow | tensorflow/tools/ci_build/linux/cpu/run_mkl.sh | Shell | apache-2.0 | 2,190 |
#!/bin/bash
function logit() {
echo "[php_build] $@" 1>&2
}
function build_from_tar()
{
tar="$2"
if [ `uname -s` = "Darwin" ]; then
src=`echo $tar | sed -E 's/^.*\/?(php-[0-9]+\.[0-9]+\.[0-9]+)\.tar\.bz2$/\1/'`
else
src=`echo $tar | sed 's/^.*\/\?\(php-[0-9]\+\.[0-9]\+\.[0-9]\+\)\.tar\.... | chuan-yun/Molten | .travis/php_build.sh | Shell | apache-2.0 | 2,922 |
#!/bin/bash
echo "Checkout deploy/frontend"
git checkout deploy/frontend
echo "Merge master into deploy/frontend"
git merge master
echo "Push to upstream"
git push
echo "Checkout master"
git checkout master
| Thylossus/tud-movie-character-insights | deploy-client.sh | Shell | apache-2.0 | 207 |
#!/bin/sh
export CLASSPATH=$CLASSPATH:/c/users/ext-shambmi/spark-2.4.3-bin-hadoop2.7/jars
export JAVA_OPTS="$JAVA_OPTS -Dhttp.proxyHost=husproxy.hus.fi -Dhttp.proxyPort=8080 -Dhttps.proxyHost=husproxy.hus.fi -Dhttps.proxyPort=8080"export HADOOP_HOME=/c/users/ext-shambmi/winutils
| opme/SurgeonScorecard | scala/setenv.sh | Shell | apache-2.0 | 280 |
alter-install() {
if [ -d $1 ];then
sudo update-alternatives --install \
/usr/bin/java java "$1"/bin/java 200 \
--slave /usr/bin/jar jar "$1"/bin/jar \
--slave /usr/bin/javac javac "$1"/bin/javac \
--slave /usr/bin/javadoc javadoc "$1"/bin/javadoc \
--slave /usr/bin/javah javah "$1"/bin/javah \
--slave /usr/bin/j... | JoshuaJiangFD/bashrc.d | linux/java.path.bash | Shell | apache-2.0 | 732 |
#!/bin/bash
# Copyright 2015 Insight Data Science
#
# 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 ... | InsightDataScience/pegasus | config/presto/setup_cluster.sh | Shell | apache-2.0 | 1,673 |
CURRENT_DIRECTORY=`pwd`
cd "$(dirname "$0")"
source load_sysconfig.sh
echo "creating DB scheme"
${WIDGET_HOME}/bin/migrate_db.sh create
cd $CURRENT_DIRECTORY
| CloudifySource/cloudify-widget | setup/utils/create_schema.sh | Shell | apache-2.0 | 161 |
#!/bin/bash
# Author: yeho <lj2007331 AT gmail.com>
# BLOG: https://linuxeye.com
#
# Notes: OneinStack for CentOS/RedHat 7+ Debian 8+ and Ubuntu 16+
#
# Project home page:
# https://oneinstack.com
# https://github.com/oneinstack/oneinstack
Install_ImageMagick() {
if [ -d "${imagick_install_dir}" ]; the... | kaneawk/oneinstack | include/ImageMagick.sh | Shell | apache-2.0 | 2,594 |
#!/usr/bin/env bash
set -e
source bosh-cpi-src/ci/tasks/utils.sh
source /etc/profile.d/chruby-with-ruby-2.1.2.sh
cpi_release_name="bosh-google-cpi"
semver=`cat version-semver/number`
pushd bosh-cpi-src
echo "Using BOSH CLI version..."
bosh version
echo "Creating CPI BOSH Release..."
bosh create release --n... | frodenas/bosh-google-cpi-boshrelease | ci/tasks/build-candidate.sh | Shell | apache-2.0 | 479 |
: '@(#)robocmd_768AS.sh 22.1 03/24/08 2003-2004 '
#
#
# Copyright (C) 2015 University of Oregon
#
# You may distribute under the terms of either the GNU General Public
# License or the Apache License, as specified in the LICENSE file.
#
# For more information, see the LICENSE file.
#
#
#!/bin/sh
#
#
# Copyright (... | OpenVnmrJ/OpenVnmrJ | src/scripts/robocmd_768AS.sh | Shell | apache-2.0 | 796 |
#!/bin/bash
set -e
if [ $# -ne 1 ]; then
echo "Usage: `basename $0` <tag>"
exit 65
fi
TAG=$1
#
# Deploy the latest documentation
#
echo "Deploying documentation..."
mkdocs gh-deploy
#
# Tag & build master branch
#
echo "Tagging build..."
git checkout master
git tag ${TAG}
box build
#
# Copy executable file in... | theHarvester/csv-util | release.sh | Shell | apache-2.0 | 1,293 |
# set -e
echo "Preparing clean slate test run ..."
rm -rf tmp dist coverage .nyc_output
echo "Bootstrapping Denali commands"
npm run bootstrap
echo "Linking Denali globally"
yarn link 2> /dev/null
echo "Full build"
denali build
echo "Running tests"
NODE_ENV=test nyc denali test --verbose "$@"
| denali-js/denali | scripts/test.sh | Shell | apache-2.0 | 294 |
#! /bin/bash
./remove.sh
docker run --rm --name container-name huas/template command
| noricohuas/docker | _template/run.sh | Shell | apache-2.0 | 87 |
#!/bin/bash
KUBECTL=${KUBECTL:-"~/kubernetes/cluster/kubectl.sh"}
[ -x ${KUBECTL} ] || KUBECTL=/usr/bin/kubectl
RC_LIST="pulp-apache-rc pulp-worker-rc pulp-resource-manager-rc pulp-beat-rc
pulp-msg-rc pulp-db-rc"
#POD_LIST="pulp-db-init"
POD_LIST=""
SERVICE_LIST="pulp-web pulp-msg pulp-db"
#
# Reduce replicas t... | markllama/atomicapp-examples | pulp/kubernetes/centos/stop_pulp.sh | Shell | apache-2.0 | 711 |
#!/bin/bash
set -o errexit -o nounset
cd target/doc
git init
git config user.email 'apaseltiner@gmail.com'
git config user.name 'Andrew Paseltiner'
git remote add upstream "https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git"
touch .
git add -A .
git commit -qm "rebuild pages at ${TRAVIS_TAG}"
git push -q upstr... | apasel422/eclectic | deploy-docs.sh | Shell | apache-2.0 | 346 |
#!/bin/bash
outputfile=$1
filesize=$2
# FIO Write test.
fio --name=writefile --size=2G --filesize=${filesize}G --filename=$outputfile --bs=1M \
--nrfiles=1 --direct=1 --sync=0 --randrepeat=0 --rw=write --refill_buffers --end_fsync=1 \
--iodepth=200 --ioengine=libaio
| bdastur/cephutils | zabbix/scripts/fiotest.sh | Shell | apache-2.0 | 286 |
#!/bin/bash
## \cond
#HEADSTART##############################################################
#
#PROJECT: UnifiedTraceAndLogManager
#AUTHOR: Arno-Can Uestuensoez - acue.opensource@gmail.com
#MAINTAINER: Arno-Can Uestuensoez - acue.opensource@gmail.com
#SHORT: utalm-bash
#LICENSE: Apache-2.0 + C... | ArnoCan/utalm | src/utalm-bash/tests/utalm-bash/BETA/headerFormatDemo/SUBSYS/CASE001/CallCase.sh | Shell | apache-2.0 | 2,046 |
#!/bin/bash
# ---------
# -----------------------------------------------------
# Generation of the Dashboard PHP Initialisation script
# -----------------------------------------------------
echo "<?php" > dashboard.inc
function dashboard_service()
{
v=`co-resolver $1`
if [ -z "$v" ]; then
echo "\$$1=\"http://12... | compatibleone/accords-platform | dashboard/dashboard-init-unsafe.sh | Shell | apache-2.0 | 3,566 |
#!/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
# "License");... | InspurUSA/kudu | thirdparty/build-if-necessary.sh | Shell | apache-2.0 | 4,129 |
#!/bin/bash
# -------------------------------------------------------------------------- #
# Copyright 2002-2009, Distributed Systems Architecture Group, Universidad #
# Complutense de Madrid (dsa-research.org) #
# ... | fairchild/open-nebula-mirror | share/scripts/ubuntu/context/init.sh | Shell | apache-2.0 | 2,004 |
#!/usr/bin/env bash
TMP=${BASH_SOURCE[0]}
TB_FW_PATH=${TMP%/*}
TB_PROBES_PATH="${TB_FW_PATH}/../Probes"
TB_SERVERS_PATH="${TB_FW_PATH}/../Servers"
TB_EXECUTORS_PATH="${TB_FW_PATH}/../Executors"
TB_NOTIFIERS_PATH="${TB_FW_PATH}/../Notifiers"
TB_COLOR_RED='\033[38;31m'
TB_COLOR_YELLOW='\033[38;33m'
TB_NO_COLOR='\033[0;... | Fusion/TightBeam | _fw/init.sh | Shell | apache-2.0 | 2,480 |
#!/bin/bash
DATE=""
if [ $1 = "today" ];then
DATE=`date +%Y-%m-%d`
elif [ $1 = "yesterday" ]; then
DATE=`date -d "yesterday" +%Y-%m-%d`
elif [ `echo $1|cut -c1-5` = "2014-" ]; then
DATE=`echo $1|cut -c1-10`
fi
if [ -f "member.sql" ]; then
rm member.sql
fi
if [ "$DATE" = "" ]; then
for i in $(s... | liufeiit/shell | awk_shell/stats/member/gen.sh | Shell | apache-2.0 | 684 |
#!/bin/sh
if [ -z "$CI_IOS_TESTS" ]
then
echo no | android create avd --force -n test -t $ANDROID_TARGET --abi armeabi-v7a
emulator -avd test -no-skin -no-audio -no-window &
android-wait-for-emulator
adb shell input keyevent 82 &
./gradlew squidb-tests:installDebug squidb-tests:installDebugAndroidTe... | jdkoren/squidb | scripts/before-test.sh | Shell | apache-2.0 | 523 |
#!/bin/bash
#
# This script updates all slaves to the latest snapshot of the
# WEC indexing package
#
# To update (and install) configuration scripts on the slaves
# run upload_slave_config.sh.
#
SCRIPT_DIR=`dirname $0`
source $SCRIPT_DIR/wec.config.sh
if [ "$1" == "" ]; then
echo -e "USAGE:"
echo -e "\tslave... | statsbiblioteket/summa | Core/scripts/wec/slaves.sh | Shell | apache-2.0 | 2,098 |
#!/bin/bash
export GH_ORG=${GH_ORG:-davidehringer}
export GH_REPO=${GH_REPO:-cf-buildpack-management-plugin}
export DESCRIPTION=${DESCRIPTION:-"GA release"}
export PKG_DIR=${PKG_DIR:=out}
VERSION=1.0.0
if [[ "$(which github-release)X" == "X" ]]; then
echo "Please install github-release. Read https://github.com/akt... | davidehringer/cf-buildpack-management-plugin | bin/release.sh | Shell | apache-2.0 | 1,082 |
#!/usr/bin/env sh
# Copyright 2021 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | GoogleCloudPlatform/solutions-istio-mesh-expansion-migration | scripts/install-istio.sh | Shell | apache-2.0 | 5,430 |
#!/bin/sh
# Compile-time weaving - The following executes the HelloWorld woven application. This means aspectj aspects were woven in at compile time and
# are part of the classes. aspectjrt.jar needs to be in the classpath.
java -Dorg.automon=sysout -classpath ../automon/target/automon-1.0.1-SNAPSHOT.jar:../hellowo... | appbakers/automon_example | examples/hello-world-woven.sh | Shell | apache-2.0 | 733 |
echo "$((123+20))"
VALORE=$[123+20]
echo "$[123*$VALORE]"
| becloudready/devopstraining | bash/arithmatic/arith-00.sh | Shell | apache-2.0 | 59 |
echo Deploying i2 IAP 3.0.11 example deployment
function changeString {
if [[ $# -ne 3 ]]; then
echo "$FUNCNAME ERROR: Wrong number of arguments. Requires FILE FROMSTRING TOSTRING."
return 1
fi
SED_FILE=$1
FROMSTRING=$2
TOSTRING=$3
TMPFILE=$SED_FILE.tmp
#escape to and from strings
FRO... | samisalkosuo/pureapp | scriptpackages/i2iap3.0.11/setup.sh | Shell | apache-2.0 | 3,423 |
#!/bin/bash
readonly mongod="/c/Program Files/MongoDB/Server/3.0/bin/mongod.exe"
readonly dbpath='c/data/db'
readonly port='9090'
mkdir -p $dbpath > /dev/null
"$mongod" --dbpath "$dbpath" --port $port
| blstream/AugumentedSzczecin_java | mongo/mongoStart.sh | Shell | apache-2.0 | 203 |
#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Lice... | smanvi-pivotal/geode | ci/scripts/capture-call-stacks.sh | Shell | apache-2.0 | 2,663 |
#!/bin/bash
export DATA_ROOT=/app/data/
export KALDI_ROOT=/kaldi_uproot/kams/kaldi
| UFAL-DSG/kams | kams/docker_env.sh | Shell | apache-2.0 | 83 |
#!/bin/bash
rm -fr *.box
vagrant destroy
vagrant up
vagrant halt
vagrant package --output centos7-dev.box
| dknoern/vagrant-centos67-dev | build.sh | Shell | apache-2.0 | 108 |
pkg_name=libarchive
_distname=$pkg_name
pkg_origin=core
pkg_version=3.3.2
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_description="Multi-format archive and compression library"
pkg_upstream_url="https://www.libarchive.org"
pkg_license=('BSD')
pkg_source="http://www.libarchive.org/downloads/${_distn... | be-plans/be | libarchive/plan.sh | Shell | apache-2.0 | 847 |
#!/bin/bash
#
# update version here and run script
PREV_VERSION=0.6.6
NEW_VERSION=0.6.7
PREV_VERSION_SHORT=$(echo $PREV_VERSION | sed s/\\.//g)
NEW_VERSION_SHORT=$(echo $NEW_VERSION | sed s/\\.//g)
function replaceInFile {
cat "$1" | sed "s/$2/$3/g" > tmp.txt
mv tmp.txt "$1"
}
echo "Updating basic files"
# up... | AludraTest/aludratest-eclipse-plugin | newversion.sh | Shell | apache-2.0 | 3,315 |
#!/bin/bash
java $JAVA_OPTS -jar build/libs/irgat-poc.jar | irgat-org/poc | run.sh | Shell | apache-2.0 | 58 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.