blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 4 115 | path stringlengths 2 970 | src_encoding stringclasses 28
values | length_bytes int64 31 5.38M | score float64 2.52 5.28 | int_score int64 3 5 | detected_licenses listlengths 0 161 | license_type stringclasses 2
values | text stringlengths 31 5.39M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
67a93aca7dd3c1021034fce09ff28cce4c80de3e | Shell | adithya-sn/misc_scripts | /jenkins_slave_alert.sh | UTF-8 | 390 | 3.171875 | 3 | [] | no_license | #!/bin/bash
slave_1_state=$(nc -vz IP1 PORT; echo $?)
slave_2_state=$(nc -vz IP2 PORT; echo $?)
if [ $slave_1_state != '0' ];then
A="Slave 1 is down."
curl -s -XPOST https://hooks.slack.com/services/ \
-d '{
"text": "'"$A"'"
}'
fi
if [ $slave_2_state != '0' ];then
B="Slave 2 is down."
curl -s -XPOST h... | true |
f965a92924601da4838934d2cd00bc29091c5000 | Shell | mahendran8655/Hello | /shellscript_practice/shellparam.sh | UTF-8 | 296 | 2.75 | 3 | [] | no_license | #!/bin/bash
echo this is script name $0
echo this first argument is $1
echo this is second argument is $2
echo this is third argument is $3
echo $$ PID of the script
echo $# total no of arguments
echo $? last return code
echo $* no of arguments in single string
echo $0 name of the script
| true |
3c6285dc51a21a09b827a35f424b8585028f08c5 | Shell | nbrew/binfiles | /bin/tc | UTF-8 | 282 | 3.0625 | 3 | [] | no_license | #!/bin/bash
# Logs comments with a datestamp to a log.
# usage: tc 'JOBNUM|TASK|Comment goes here'
# >> 2012-12-14 14:46:08 | JOBNUM|TASK|Comment goes here
for msg in "$@"
do
DATE=`date +'%Y-%m-%d %H:%M:%S'` && echo "$DATE | $msg" >> ~/Documents/timecard.txt
done
exit
| true |
1aac014ecdbc991212b9de2c6337c1437abe37d5 | Shell | metwork-framework/mfdata | /integration_tests/0006_process_a_thousand_files/test.sh | UTF-8 | 1,436 | 3.609375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Create and install plugin foobar6 archiving PNG images
# Inject 1000 PNG files
# Check number of PNG file and corresponding tags files on archive
# Check no tags left in redis
source ../support.sh
check_no_tags_left_in_redis
plugins.uninstall --clean foobar6 >/dev/null 2>&1
DEST_DIR="${MFMODULE_RUNTIME... | true |
2ce310f0a76473ad9e60663ea3b5c50d8995f1a0 | Shell | Piropa/YAMon-v4-alt | /includes/setupIPChains.sh | UTF-8 | 6,374 | 3.578125 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | ##########################################################################
# Yet Another Monitor (YAMon)
# Copyright (c) 2013-present Al Caughey
# All rights reserved.
#
# functions to define chains in iptables & optionally ip6tables
#
# History
# 2020-03-20: 4.0.7 - added wait option ( -w -W1) to commands that add ent... | true |
956ae68b320f9cb059b41565bf8ed73109ecf925 | Shell | owlxof/batteryguard | /brightness_bell.sh | UTF-8 | 165 | 2.578125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/usr/bin/bash
PREV=$(xbacklight -get)
for i in {1..2}
do
xbacklight -set 100
sleep 0.001
xbacklight -set 0
sleep 0.001
done
xbacklight -set $PREV
| true |
ebb7ded320f85aafb9c3b3f42a9cf37d2a492e13 | Shell | vforgione/dotfiles | /macos/install-packages.sh | UTF-8 | 528 | 3 | 3 | [] | no_license | #!/usr/bin/env bash
echo ""
echo " INSTALLING MACOS PACKAGES"
echo "............................."
if ! command -v brew &>/dev/null; then
echo "ensuring xcode cmd line tools installed..."
xcode-select -install
echo "downloading and running brew setup script..."
/bin/bash -c "$(curl -fsSL https://raw.github... | true |
228ea3c11d98dbe2e5bdf14943355ce26ef8ae1c | Shell | moisesrbd/ngm | /scripts/legal_md_to_html.sh | UTF-8 | 193 | 3.0625 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash -e
mkdir -p dist/legal/
template=$(<legal/template.html)
for file in legal/*.md; do
html=$(marked -i $file)
echo "${template//_CONTENT_/$html}" > dist/${file/.md/.html}
done
| true |
ef549d88ea13ff11ad39b1f8a211953bbc420a81 | Shell | mrVanDalo/overlay | /travis/emerge/emerge.sh | UTF-8 | 3,855 | 3.625 | 4 | [] | no_license | #!/bin/bash
#
# emerge a package
set -xe
if [[ "$#" -le 0 ]] || [[ "$#" -gt 2 ]]
then
echo "Usage: $0 =<ebuild category>/<ebuild name>-<version>" >&2
echo "Usage: $0 <ebuild category>/<ebuild name>" >&2
exit 1
fi
PACKAGE=$1
CONFIG=$2
cat <<EOF
-----------------------------------------------
Emerging ${PA... | true |
24914f77650f836e570f5979a767b998a89a0266 | Shell | dsantorojr/multegula | /cleanup.sh | UTF-8 | 992 | 2.828125 | 3 | [] | no_license | #!/bin/bash
###########################################################
#Multegula - cleanup.sh #
#Cleanup script for running Multegula processes #
#Armin Mahmoudi, Daniel Santoro, Garrett Miller, Lunwen He#
###########################################################
echo "C... | true |
b08b53107ec17b4f6f0527eb1eeebf5f746e165d | Shell | fecloud/bdsync | /bdsync | UTF-8 | 2,178 | 3.359375 | 3 | [] | no_license | #!/bin/sh
### BEGIN INIT INFO
#
# Provides: bdsync
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: initscript
# Description: This file should be used to construct scripts to b... | true |
0df214aaa2979ac40c06885822d13907de8cc095 | Shell | blakezimmerman/scripts | /ts-node-init.sh | UTF-8 | 1,333 | 3.625 | 4 | [] | no_license | #!/bin/sh
# Check if a command is available
checkCommand() {
command -v $1 >/dev/null 2>&1 || {
echo >&2 "I require $1 but it's not installed. Aborting."; exit 1;
}
}
checkCommand node
checkCommand npm
PROJECT_NAME=$1
mkdir $PROJECT_NAME
# Create package.json
cat << EOF > $PROJECT_NAME/package.json
{
"na... | true |
225d10edb54fb80173b1ef7ac19822828b5c33de | Shell | diqidoq/pw | /pw | UTF-8 | 5,313 | 3.5 | 4 | [] | no_license | #!/bin/bash
# PW - simple password user account storage management based on CSV.
# Copyright (c) 2016 Digidog (aka. diqidoq) - Released under GPL v3
#
# 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 Found... | true |
6c644570f1fcfd18fe82e12fe64269457eb3a0ed | Shell | mariusungureanu/APD | /laboratoare/lab03/test_oets.sh | UTF-8 | 1,350 | 2.96875 | 3 | [] | no_license | #!/bin/bash
if [ ! -f "oets" ]
then
echo "Nu exista binarul oets"
exit
fi
if ./oets 100 3 | grep -q "Sortare corecta"; then
echo "Sortare corecta pentru N = 100 P = 3"
else
echo "Sortare incorecta pentru N = 100 P = 3"
fi
if ./oets 100 5 | grep -q "Sortare corecta"; then
echo "Sortare corecta p... | true |
12aa8913bfb3b4c886ff717aa12db015888dc46c | Shell | ltoornman/bash_basics | /02-add_nums.sh | UTF-8 | 439 | 3.484375 | 3 | [
"Unlicense"
] | permissive | #!/bin/sh
echo "Enter your first number"
read first
echo "Enter your second number"
read second
echo "Enter your third number"
read third
sum=$(( first+second+third ))
echo "The sum is $sum"
# exercise: ask the user for the width and height and present total
# number of pixels
echo "Enter length in Pixels"
read fir... | true |
9d8dbcbacefe0f0ae0d1f7eb81c57a0c4a6003db | Shell | oldbitpusher/npasswd | /V2.0/src/PasswordCheck/SCCS/s.TestSuite.sh | UTF-8 | 8,473 | 2.734375 | 3 | [] | no_license | h38998
s 00346/00000/00000
d D 1.1 98/06/04 08:42:43 clyde 1 0
c date and time created 98/06/04 08:42:43 by clyde
e
u
U
f e 0
t
T
I 1
#! /bin/sh
#
# Copyright 1998, The University of Texas at Austin ("U. T. Austin").
# All rights reserved.
#
# By using this software the USER indicates that he or she has read... | true |
3f5718993575ab541a7f242f867e5bf697248163 | Shell | peter50216/dotfiles | /bin/unarchive | UTF-8 | 3,563 | 4.0625 | 4 | [] | no_license | #!/bin/bash
set -e
set -o noclobber
temp_files=()
cleanup() {
for file in "${temp_files[@]}"; do
rm -rf "${file}"
done
}
info() {
printf "\e[1;33m%s\e[m\n" "$*"
}
die() {
printf "\e[1;31mERROR: %s\e[m\n" "$*" >&2
cleanup
exit 1
}
atomic_file() {
{ true > "$1" ; } &> /dev/null
}
atomic_directory(... | true |
08a3bdeb17f804d5a9a9bca8840ed4cbc3cc5851 | Shell | naivekun/os6360_trtest | /cpss-ac3/cpss/cpssEnabler/mainOs/src/gtOs/linux/kernelExt/driver/inst_mod.sh | UTF-8 | 1,113 | 3.734375 | 4 | [] | no_license | #!/usr/bin/env bash
# parameters:
home_rootfs=$1
node_major=$2
node_minor=$3
init_sh=$home_rootfs/etc/init.sh
test -d $home_rootfs || exit 0
# copy module
unset MAKEFLAGS
KSUBD=$(make -s -C $DIST_HOME kernelversion)
grep -q 'modules.*uname -r' $init_sh || KSUBD=.
test -d $home_rootfs/lib/modules/$KSUBD || mkdir -p... | true |
39c1bc126078a50f86f393ecd86576449aae7ba4 | Shell | mercadopago/cart-magento2 | /bin/run-sync-files.sh | UTF-8 | 317 | 2.953125 | 3 | [] | no_license | #!bin/bash
echo "\n"
echo 🐘🔍 '\033[01;33m RUNNING SYNC FILES TO MAGENTO 2 CONTAINER \033[0m'
echo "\n"
docker cp src/. magento-php:/var/www/html/magento2/app/code
if [ $? -eq 0 ]; then
echo ✅ "\033[01;32m SYNC EXECUTED SUCCESSFULLY \n \033[0m"
else
echo 🚫 "\033[01;31m SYNC FAILED \n \033[0m"
fi
| true |
3f2d4b7941b052799aa4d8238e2767bfe0ccc279 | Shell | apache/impala | /testdata/bin/create-load-data.sh | UTF-8 | 27,724 | 3.375 | 3 | [
"Apache-2.0",
"OpenSSL",
"bzip2-1.0.6",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"LicenseRef-scancode-google-patent-license-webrtc",
"PSF-2.0",
"BSD-3-Clause",
"dtoa",
"MIT",
"LicenseRef-scancode-mit-modification-obligations",
"Minpack",
"BSL-1.0",
"LicenseRef-s... | permissive | #!/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");... | true |
4aae48fac58cda318ac3d8c084c91334c6029aa8 | Shell | praveenn7/KKN1 | /p4.sh | UTF-8 | 420 | 3.3125 | 3 | [] | no_license | <<Q
write a shell script
step 1: declare and initialize file system details
(filesystemType; filesystemMount ; filePartition)
(ex: xfs /D1 /dev/sda1 )
step 2: using echo command - display filesystem details
Q
fstype="xfs"
fmount="/D1"
fpart="/dev/xvdb1"
echo "--------------------------------
File system ty... | true |
63d2cc8dde1b4aa3476ad3978319d7c2137cf42d | Shell | emg110/wolfservers | /scripts/live.sh | UTF-8 | 1,821 | 3.0625 | 3 | [
"MIT"
] | permissive | currentSlot=$(cardano-cli query tip --mainnet | jq -r '.slot')
echo Current Slot: $currentSlot
cardano-cli query utxo \
--address $(cat payment.addr) \
--mainnet > fullUtxo.out
tail -n +3 fullUtxo.out | sort -k3 -nr > balance.out
tx_in=""
total_balance=0
while read -r utxo; do
echo aa1: ${utxo}
in_addr=$... | true |
5a61e0c714d81086be6f3f449bf72473235df913 | Shell | radarlui/jboss-soe | /build/sat-upload.sh | UTF-8 | 2,240 | 3.765625 | 4 | [] | no_license | #!/bin/bash
BUILD_DIR=`dirname $0`
HOST="Please enter the Host"
USER="Please enter the Host"
CHANNEL_5="Please enter the name of the Channel to upload to"
CHANNEL_6="Please enter the name of the Channel to upload to"
EASYBASHGUI_VERSION=1.3.1
source ${BUILD_DIR}/../tools/EasyBashGUI_${EASYBASHGUI_VERSION}/easybashgui... | true |
490d3e0a739a27fd9f742891e2a3086222254773 | Shell | Trietptm-on-Security/el_harden | /fixes/repo/account_disable_post_pw_expiration.sh | UTF-8 | 426 | 2.765625 | 3 | [] | no_license | #!/bin/bash
# SID: CCE-27283-1
{
: ${DISABLE_POST_PW_EXPIRATION:=30}
var_account_disable_post_pw_expiration="${DISABLE_POST_PW_EXPIRATION}"
grep -q ^INACTIVE /etc/default/useradd && \
sed -i "s/INACTIVE.*/INACTIVE=$var_account_disable_post_pw_expiration/g" /etc/default/useradd
if ! [ $? -eq 0 ]; then
echo "INAC... | true |
3a8c88f16b6d060b600b14d03385d3e147ade5e8 | Shell | regilo76/pButtonsExtract | /pbreportlib/graphic_gnuplot.sh | UTF-8 | 676 | 2.625 | 3 | [] | no_license | for f in $DataFolder"/"*; do echo "Processing $f file.."; genchart.sh $f | bash; done
gnuplot -persistent -e "n='4'" -e "filename='$CPUTimeFile'" -e "graphic_title='CPU Time'" -e "max_y_stat=100" /usr/local/bin/plotline.plg > $CPUTimeFile.eps
gnuplot -persistent -e "n='4'" -e "filename='$CPUUtilizationFile'" -e "gra... | true |
a4306471ae693c87ca89c357c62aef93ed6bd6d0 | Shell | Wetitpig/termux-packages | /scripts/utils/package/package.sh | UTF-8 | 1,238 | 3.546875 | 4 | [
"Apache-2.0"
] | permissive | # shellcheck shell=sh
# shellcheck disable=SC2039,SC2059
# Title: package
# Description: A library for package utils.
##
# Check if package on device builds are supported by checking
# `$TERMUX_PKG_ON_DEVICE_BUILD_NOT_SUPPORTED` value in its `build.sh`
# file.
# .
# .
# **Parameters:**
# `package_dir` -... | true |
22c0da9292dfbe3d85cbb75d64f2ec2788673572 | Shell | layeddie/example-nix | /pkgs-make/haskell/tools/cabal-new-watch/cabal-new-watch | UTF-8 | 1,326 | 3.625 | 4 | [] | no_license | #!/bin/sh -eu
FIRST_RUN="first run"
main()
{
echo "$FIRST_RUN" | run_cabal_per_line "$@"
wait_for_change \
| filter_unrelated_out \
| run_cabal_per_line "$@"
}
wait_for_change()
{
fswatch -raE -l .5 -e '/\.' \
--event AttributeModified \
--event Created \
--event... | true |
596182350fd7cb286b27a0b966c4d23332e2cdc6 | Shell | vrybas/dotfiles | /bin/git-pick | UTF-8 | 545 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Usage: git pick
#
# 1. Creates `cherry-pick` branch from current branch
# 2. Saves `git log -p` to a file
# 3. Switches back to current branch
# 4. Opens `git log -p` file in vim
# 5. Now, in another shell, you can `git reset --hard` current branch
# and cherry-pick some commits, lookng at the log in a ... | true |
36120faa613251e44911f22c6673363376a2b336 | Shell | BaiLab/Read-Split-Fly | /splitPairs.sh | UTF-8 | 2,807 | 3.953125 | 4 | [
"Apache-2.0",
"Artistic-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
BASEDIR=$( cd ${0%/*} >& /dev/null ; pwd -P )
source "${BASEDIR}/config.sh"
OPTSFILE="" #to be filled-in
OUTPUTFILE="" #also to be filled-in
# options file needs:
# RNA-seq file: $2
# max split distance: $6
# rna sample length: $4
# known gene reference: $3
# reference boundries: $3.intronBoundries.exons... | true |
743dd3c178ecfe862b966d8613d6f5227596e807 | Shell | askrepps/EN605.417.FA | /module4/run.sh | UTF-8 | 923 | 3.328125 | 3 | [] | no_license | #!/bin/sh
runTest()
{
numThreads=$1
blockSize=$2
echo "Running with $numThreads total threads and a block size of $blockSize threads each..."
build/arrayXor $numThreads $blockSize
}
echo 'Creating build directory...'
if [ ! -d build ]; then
mkdir build
if [ $? -ne 0 ]; then
echo 'Could not create build dire... | true |
ff539dda846206e103ccdfa4a4ff103671deb767 | Shell | gitter-badger/solvcon | /ground/scvars.sh | UTF-8 | 1,740 | 3.203125 | 3 | [
"BSD-3-Clause"
] | permissive | #MANPATH=$(manpath -q)
manpathmunge () {
if ! echo $MANPATH | egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
MANPATH=$MANPATH:$1
else
MANPATH=$1:$MANPATH
fi
fi
export MANPATH
}
pythonpathmunge () {
if ! echo $PYTHONPATH | egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "afte... | true |
50ed39de72c46c59ae5a6c7c0d1e22e95f7925df | Shell | delkyd/alfheim_linux-PKGBUILDS | /mkpackage-git/PKGBUILD | UTF-8 | 575 | 2.65625 | 3 | [] | no_license | # Maintainer: Anna Ivanova <kalterfx@gmail.com>
pkgname='mkpackage-git'
pkgver='5.fbe2fd1'
url='https://github.com/kalterfive/mkpackage'
pkgrel='1'
pkgdesc='Collect an Arch package using its information from a local pacman database'
arch=('any')
license=('GPL3')
depends=('bash')
source=("mkpackage::git://github.com/ka... | true |
f2ba774be53167d50b28981de028e41a0663eedd | Shell | jbustamante35/phytomorph | /Aquire/phytoStreams/testStreams~ | UTF-8 | 1,059 | 2.6875 | 3 | [] | permissive | #!/bin/bash
echo "#############################################"
echo "Testing local copying via buffers"
echo " This test has a root other than the file(s) root"
echo "Expect to have the file and the extra folder strucuture rendered"
echo "#############################################"
echo "creating cyverse buffer st... | true |
0fb6f444059b527765c85476670629884f6015ca | Shell | AESD-Course-Project/AESD-Course-Project.github.io | /.github/scripts/cibuild | UTF-8 | 1,427 | 2.703125 | 3 | [] | no_license | #!/bin/sh
set -e
# Install site dependencies
python3 -m pip --no-cache install blockdiag seqdiag actdiag nwdiag graphviz
if [ -f "/etc/alpine-release" ]; then
export PATH="$PATH:/home/runner/work/jekyll/jekyll/vendor"
gem install -n /home/runner/work/jekyll/jekyll/vendor/ jekyll --user-install
gem install... | true |
77a162f2185aa3d1c2c1233c9d4b995ac0f64c49 | Shell | ple-utt239/macports-ports | /multimedia/mythtv.28/files/preinstall | UTF-8 | 652 | 3.0625 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
# MythTV installer support, preinstall script
# Note that all the preinstall scripts are run (as root), then the payload is 'shove'd into place
# After that, all the postinstall scripts are run.
# Script also runs in a sandbox with no access to /Private and other directories
# note that launchctl requires ... | true |
d34d9d207bc18f33a3c28f518e9fb350d31df658 | Shell | Pr0methean/TacoSpigot | /remap.sh | UTF-8 | 3,543 | 3.34375 | 3 | [] | no_license | #!/bin/bash
pushd Paper # TacoSpigot
PS1="$"
basedir=`pwd`
workdir=$basedir/work
minecraftversion=$(cat work/BuildData/info.json | grep minecraftVersion | cut -d '"' -f 4)
minecrafthash=$(cat work/BuildData/info.json | grep minecraftHash | cut -d '"' -f 4)
accesstransforms=work/BuildData/mappings/$(cat work/BuildData... | true |
ca5317e6dc17a86e683209479a9dc4cc90587400 | Shell | pisani/icm-util | /rm.sh | UTF-8 | 347 | 3.296875 | 3 | [] | no_license | #!/bin/bash -e
if [ $# -ne 1 ]; then
echo "rm.sh containerName"
exit 1
fi
icmname=$1
# cleanup cloud resources
docker exec $icmname sh -c 'cd $(cat dir.txt); icm unprovision -cleanUp -force; rm *.log'
docker stop $icmname
docker rm $icmname
# remove backup files
rm -fR ./Backup/$icmname
# remove a ssh key file
... | true |
ed0671097da14803ee1c49e44b8830e6821420ba | Shell | webuni/commonmark-twig-renderer | /run | UTF-8 | 1,154 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env sh
set -e
url="https://raw.githubusercontent.com/webuni/shell-task-runner/master/runner"
[ -f ./.runner ] || wget -q "$url" -O- > .runner || curl -fso .runner "$url"
. ./.runner
! mkdir -p ~/.composer/cache
if [ ! -f ~/.composer/auth.json ]; then echo "{}" > ~/.composer/auth.json; fi
_decorator()( _de... | true |
3164c7f418641db28447b0d4bd39126a09fa149b | Shell | nael-fridhi/elastic-stack-course | /config/install_logstash_filebeat.sh | UTF-8 | 2,089 | 4.03125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Bash output configuration to display message with colors
RED='\033[0;31m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
ORANGE='\e[93m'
info() {
printf "${BLUE}$1${NC}\n"
}
error() {
printf "${RED}$1${NC}\n"
}
warn() {
printf "${ORANGE}$1${NC}\n"
}
# Verify And Install Java
info "##############... | true |
d025df725756362e3602fb81b302d60dd849dc76 | Shell | danielleiszen/rdotnet | /build/build_R.NET_nuget.sh | UTF-8 | 3,078 | 3.234375 | 3 | [
"MIT"
] | permissive | rdotnet_dir=~/src/github_jm/rdotnet/
MSB=xbuild
# ======= NuGet settings
# Get the nuget tools from nuget.org. There is also one coming with the NuGet plug-on from Visual Studio.
# Section on NuGet.config for nuget update (NOT YET USED - CAME ACCROSS ISSUE WITH NUGET 2.8)
# To limit machine specific issues, we w... | true |
61805d718bd50ae3f589c913875b7bf2e24873b4 | Shell | elppans/ShellTestes | /ShellScript_do_zero/Scripts/mv_conv | UTF-8 | 24,510 | 3.171875 | 3 | [] | no_license | #!/bin/bash
data=$(echo $*)
LNXPDV=/Zanthus/Zeus/pdvJava
path=/Zanthus/Zeus/path_comum
BINCONV=lnx_conv_CJ
LCONV=./lnx_conv_CJ
NECF=$(pwd |cut -d "." -f "2")
#Date
if [ -z $data ]
then
echo -e "O comando mv_conv deve conter uma data como parametro no formato AAAAMMDD.\nPor exemplo: mv_conv $(date "+%Y%m%d")"
... | true |
ba225df1be30e132d2161a46f5d9e81c78620c79 | Shell | xf0e/ulogme | /logdesktop.sh | UTF-8 | 658 | 3.71875 | 4 | [] | no_license | #!/bin/bash
# periodically takes screenshot and saves them to desktopscr/
# the filename contains unix time
# wait time in seconds
waittime="60"
# directory to save screenshots to
saveprefix="desktopscr/scr"
mkdir -p desktopscr
#------------------------------
while true
do
islocked=true; if [[ $(qdbus org.kde.scre... | true |
302526e8ba133a690aee832c62d60fe1b0390ab0 | Shell | ezequieldevalais/sisop-4h | /bin/IniPro.sh | UTF-8 | 9,064 | 3.71875 | 4 | [] | no_license | #!/bin/bash
#===========================================================
#
# ARCHIVO: IniPro.sh
#
# DESCRIPCION: Prepara el entorno de ejecución del TP
#
# AUTOR: Solotun, Roberto.
# PADRON: 85557
#
#===========================================================
# Llama al log para grabar
# $1 = mensaje
# $2 = tipo (I... | true |
e08ac0124dd5f0ae746b134ff69bd03bca1458ef | Shell | MagicGroup/magicinstaller2 | /rootfs/post_scripts/commands_chroot.sh | UTF-8 | 350 | 2.9375 | 3 | [] | no_license | #!/bin/sh
### temp directory and files
touch /var/run/utmp
# Don't use the {} ,because chroot system is based on busybox.
#touch /var/log/{btmp,lastlog,wtmp}
for f in btmp lastlog wtmp;do
touch /var/log/$f
done
chgrp utmp /var/run/utmp /var/log/lastlog
chmod 664 /var/run/utmp /var/log/lastlog
if [ -x /sbin/ldconf... | true |
727201e04c26f0992233c7a67c7a0784428f17ad | Shell | hobby/mkx | /mkrun | UTF-8 | 10,614 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# vim:ts=4:sw=4:expandtab
##################################################################
# NAME
# mkrun - a toy for run target's command
#
# SYNOPSIS
# mkrun
# mkrun [ options ] command-type targets ...
#
# debug=on mkrun ...
#
# OPTIONS
# -h Print this message... | true |
5157791ce75a55bb8e6a67a7c5e23c5f60f56421 | Shell | saiprakash774/ConditionalStmtsExsinShell | /arthop.sh | UTF-8 | 591 | 3.328125 | 3 | [] | no_license | #!/bin/bash -x
echo "enter three numbers a,b,c is to perform arthimatic operations :"
read -p "enter value of a: " a
read -p "enter value of b: " b
read -p "enter value of c: " c
r1=$(( $a+$b*$c ));
r2=$(( $a%$b+$c ));
r3=$(( $c+$a/$b ));
r4=$(( $a*$b+$c ));
if [ $r1 -gt $r2 ];
then
if [ $r1 -gt $r3 ];
then
if [ ... | true |
28765aa7b52020489feda30470d092f735d9000c | Shell | fishi0x01/vsh | /test/util/common.bash | UTF-8 | 983 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
export VAULT_VERSION=${VAULT_VERSION:-"1.9.2"}
export VAULT_CONTAINER_NAME="vsh-integration-test-vault"
export VAULT_HOST_PORT=${VAULT_HOST_PORT:-"8888"}
export VAULT_TOKEN="root"
export VAULT_ADDR="http://localhost:${VAULT_HOST_PORT}"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd ... | true |
c4f7726bca883d84305064bd21319f8e2cd3a2cd | Shell | Zaier9/Curso-de-Bash | /21_archivoDirectorio.sh | UTF-8 | 373 | 3.640625 | 4 | [
"MIT"
] | permissive | # ! /bin/bash
# Programa para ejemplificar la creacion de archivos y directorios
# Autor: Zaier | veraalber989@gmail.com
echo "Archivos - Directorios"
if [ $1 = "d" ]; then
mkdir -m 755 $2
echo "Directorio creado correctamente"
ls -la $2
elif [ $1 = "f" ]; then
touch $2
echo "Archivo creado correc... | true |
c26e7efa4245393b57d9625a36bcc6a9bd015a23 | Shell | karunmatharu/Android-4.4-Pay-by-Data | /external/chromium_org/android_webview/build/install_binary | UTF-8 | 672 | 3.84375 | 4 | [
"BSD-3-Clause",
"MIT"
] | permissive | #!/bin/bash -x
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Copies a possibly stripped binary and a symbol file to installation dirs.
if [ "$3" = "" ]
then
echo "Usage: install_binary path/to/b... | true |
81c5855b66695d25d577c72476d65af224dc4ea6 | Shell | xaliq2299/UFAZ-BSc | /L0/S1/bash/cs_hw_5/ex2 | UTF-8 | 126 | 2.859375 | 3 | [] | no_license | #!/bin/bash
counter=0
until [ $counter -gt 20 ]
do
echo "The counter is $counter"
let counter=$counter+1
done
| true |
917c5a7b090a1c9df993c5a3cc44734fad307e31 | Shell | trowind/my_config | /common_conf.sh | UTF-8 | 946 | 2.703125 | 3 | [] | no_license | #!/bin/bash
. ${JYLEE_CONF_DIR}/.git-prompt.sh
green=$(tput setaf 2)
yellow=$(tput setaf 3)
cyan=$(tput setaf 6)
bold=$(tput bold)
red=$(tput setaf 1)
reset=$(tput sgr0)
PS1='\[$cyan\]\D{%Y%m%d %H:%M:%S} \[$green\]\u@\h\[$reset\]\w\[$yellow\]$(__git_ps1)\[$reset\]\n\$ '
## aliass
alias lh='ls -lah'
alias ll='ls -la... | true |
dc39f6c12b1ccf8d166a39311f91bdb382cab5af | Shell | brettcs/dotfiles | /start | UTF-8 | 2,008 | 3.578125 | 4 | [] | no_license | #!/bin/sh
set -e
set -u
xdg_dirs() {
local dirs home
eval "dirs=\${XDG_$1_DIRS:-}; home=\${XDG_$1_HOME:-}"
if [ -n "${dirs:-}" ]; then
echo "$dirs"
elif [ -n "${home:-}" ]; then
echo "$home"
else
echo "$HOME/$2"
fi
}
HERE="$(dirname "$(readlink -e "$0")")"
SOCKET_DIR="... | true |
04c04be144548ca13978142827231ef8f481fc78 | Shell | wilderfield/inference_results_v0.7 | /closed/Lenovo/code/rnnt/tensorrt/download_data.sh | UTF-8 | 1,281 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright (c) 2020, NVIDIA CORPORATION. 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 requi... | true |
a043a9eeab7b4838414789b34c27cce362f9eaff | Shell | sch3m4/net2ban | /net2ban_init.d | UTF-8 | 1,188 | 3.65625 | 4 | [
"BSD-3-Clause"
] | permissive | #! /bin/bash
#
# net2ban Start/stop net2ban service
#
### BEGIN INIT INFO
# Provides: net2ban
# Required-Start: $remote_fs $network $named $time $rabbitmq-server
# Required-Stop: $remote_fs $network $named $time $rabbitmq-server
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Des... | true |
b388f41eb56d72d7d9b2feb90fd07c434de9d69f | Shell | Brmm/dotfiles | /bootstrap.sh | UTF-8 | 2,218 | 3.046875 | 3 | [] | no_license | #!/bin/bash
set -v # echo commands on
set -e # quit on error
sudo -v
## Keep `sudo -v` alive
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
## Install binaries and applications with brew
chmod +x ./brew.sh
./brew.sh
# Helm
# helm plugin install https://github.com/futuresimple/helm-s... | true |
4fd89ff16c11b3f6fe779197406d3f56808d56e7 | Shell | HPI-Information-Systems/dynfd | /benchmark.sh | UTF-8 | 553 | 3.15625 | 3 | [] | no_license | #!/bin/bash
filename = "benchmark.adultfull.csv"
readarray test_versions < ./benchmarks.txt
batch_sizes=(1 10 100 1000 10000 100000)
tests_per_version_and_batch=5
for configuration in "${test_versions[@]}"; do
for run in $(seq 1 $tests_per_version_and_batch); do
for i in ${batch_sizes[@]}; do
... | true |
f7a7ee0ca41cf71046414813579fd6d0f2c0122f | Shell | raycast/script-commands | /commands/developer-utils/unix-timestamp.sh | UTF-8 | 419 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Copy Current Epoch Unix Timestamp
# @raycast.mode silent
# Optional parameters:
# @raycast.author Caleb Stauffer
# @raycast.authorURL https://github.com/crstauf
# @raycast.description Copy the current epoch Unix timestamp.
# @raycast.packa... | true |
a7ac65964831f78cf03f5e08f496ca56f2c1b2a4 | Shell | disputed1/Hammer-CSV-report- | /mailer.sh | UTF-8 | 527 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#### Variables ####
#email="email"
report=/path/satellite_hosts_$(date +%Y%m%d)*
lreport=/path/satellite_hosts_$(date +%Y%m%d)*
#### Puller ####
if [ ! -f $lreport ];
then
scp -P 1234 hostname:$report /report_location/
else
:
fi
### Email the reports
echo "This report is automatically generated... | true |
4100fbd0bd1315e3262bb82b70fd098a89f376fe | Shell | daniel-1964/msys2 | /custom-packages/stdman/PKGBUILD | UTF-8 | 14,835 | 3.28125 | 3 | [] | no_license | # Maintainer: Aleksandar Trifunović <akstrfn at gmail dot com>
# Contributor: Marcel Krüger <zauguin at gmail dot com>
pkgbase=stdman
pkgname=${pkgbase}
pkgver=2018.03.11
pkgrel=1
pkgdesc="Formatted C++11/14 stdlib man pages (cppreference)."
arch=(any)
url="https://github.com/jeaye/stdman"
license=('MIT')
source=("${p... | true |
80571c78a8ac3722a50c073aa61ffee0e0303d46 | Shell | bogol243/HW1_DSBDA | /start_lab1.sh | UTF-8 | 676 | 2.71875 | 3 | [] | no_license | # clear the hdfs workspace
hdfs dfs -rm -r output
hdfs dfs -rm -r input
#clear the local workspace
[ -d output ] && rm -r output
[ -d input ] && rm -r input
mkdir input
#generate input files
NUM_LINES=100000
NUM_BROKEN=20
DATE_BEGIN="2020-10-10"
DATE_END="2020-10-15"
NUM_FILES=4
./get_data.py $NUM_LINES $NUM_FILES $NUM... | true |
742593ca8aaba0948a614593c1f1c0c9789b6d6a | Shell | JCavallo/dotfiles | /tools/backlight | UTF-8 | 874 | 3.484375 | 3 | [] | no_license | #!/usr/bin/env bash
# Only works for intel_backlight
# Requires:
# sudo usermod -a -G video $LOGNAME
#
# In /etc/udev/rules.d/45-backlight.rules
#
# ACTION=="add", SUBSYSTEM=="backlight" KERNEL=="intel_backlight", RUN+="/bin/chgrp video /sys/class/backlight/intel_backlight/brightness"
# ACTION=="add", SUBSYSTEM==... | true |
291fc16469d2bdc7fe2af4fc36bcdd16348bea3a | Shell | k4ml/booktype | /.openshift/action_hooks/post_deploy | UTF-8 | 991 | 2.875 | 3 | [] | no_license | #!/bin/bash
# This deploy hook gets executed after dependencies are resolved and the
# build hook has been run but before the application has been started back
# up again. This script gets executed directly, so it could be python, php,
# ruby, etc.
# Activate VirtualEnv in order to use the correct libraries
source $O... | true |
986266a6076e4bfb458f8a88586e71bd7608a752 | Shell | vcatafesta/chili | /sh/sql.sh | UTF-8 | 2,413 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
sqlite3 test.db <<EOF
create table if not exists n (id INTEGER PRIMARY KEY,f TEXT,l TEXT);
insert into n (f,l) values ('john','smith');
select * from n;
EOF
sqlite3 -batch test.db "create table if not exists n (id INTEGER PRIMARY KEY,f TEXT,l TEXT);"
sqlite3 -batch test.db "insert into n (f,l) values ('john'... | true |
4a9f2b0a003ecabe66d55ae383e3153a4af3bdf3 | Shell | SaferSocietyGroup/suab | /client/clone.sh | UTF-8 | 517 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
## This script will checkout the git repository at $REPO_URL and put it in
## $CHECKOUT_DESTINATION. Note that $GIT_COMMIT is expected to passed in as
## an environment variable. This is achieved by the --env flag to suab. If
## omitted, it will checkout master by default
REPO_URL="https://github.... | true |
e35e706c3d1f4e1ca8bb0bfb8a17caaa65d23fdd | Shell | maiha/ansible-openstack | /files/redis/start | UTF-8 | 152 | 2.671875 | 3 | [] | no_license | #!/usr/bin/env bash
set -eu
dir=$(dirname ${BASH_SOURCE:-$0})
_olddir=$(pwd)
cd $dir
mkdir -p v
cp -p redis.conf v/
docker compose up -d
cd $_olddir
| true |
36e6fc9d0b2bd998e7a26f24da6600cc3aaedc5b | Shell | Dunaiskyi/Project | /backup/root/etc/nginx/ssl/acme/dnsapi/dns_desec.sh | UTF-8 | 5,411 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#
# deSEC.io Domain API
#
# Author: Zheng Qian
#
# deSEC API doc
# https://desec.readthedocs.io/en/latest/
REST_API="https://desec.io/api/v1/domains"
######## Public functions #####################
#Usage: dns_desec_add _acme-challenge.foobar.dedyn.io "d41d8cd98f00b204e9800998ecf8427e"
dns_desec_add... | true |
a43661284d3919bd7947ef60ab6cf4850d11467b | Shell | markcerv/dotfiles-v0 | /wsl/000-create-wsl-conf.sh | UTF-8 | 755 | 3.921875 | 4 | [] | no_license | #!/usr/bin/env bash
#
# Create an /etc/wsl.conf file
#
# The options will allow for you to have file permissions that are NOT all RWX
#
FILE=/etc/wsl.conf
TMP=/tmp/wsl.conf
if [ -f "$FILE" ]; then
echo "Uh-oh, $FILE already exists. Aborting."
exit 99
else
echo "Creating the $FILE file"
cat <<EOF > $T... | true |
a55cd2e5a2b5e6c72b7202fddacc174c459d0e21 | Shell | erlang/docker-erlang-example | /advanced_examples/logstash/.travis.sh | UTF-8 | 1,501 | 3.171875 | 3 | [] | no_license | #!/bin/bash
set -x
./create-certs
docker build -t logstash logstash/
docker run --name logstash -d -p 9600:9600 -p 44622:44622/udp logstash
docker build -t dockerwatch .
docker run --name dockerwatch -d -p 8443:8443 --init --volume="$PWD/ssl:/etc/ssl/certs" --log-driver=gelf --log-opt gelf-address=udp://0.0.0.0:44622... | true |
c8578e8171fba49d2bbd1e437e8faf5584b60f9b | Shell | growlzor/macos_setup_cheatsheet | /ip_command_for_mac.sh | UTF-8 | 224 | 2.8125 | 3 | [] | no_license | ip() {
if [[ $@ == "route" ]]; then
command netstat -nr
elif [[ $@ == "a" ]]; then
command ifconfig | grep inet
else
command ifconfig "$@"
fi
}
| true |
c21a44ba07519a9c571b5a008066fee8c46c8788 | Shell | AlecAivazis/dotfiles | /zsh/exports.zsh | UTF-8 | 1,322 | 2.734375 | 3 | [] | no_license | # patch zsh cache
export ZSH_CACHE_DIR=$HOME/.zsh
export SHELL=/bin/zsh
# go stuff
export GOPATH=~/dv/go
export GO111MODULE=on
# env vars for git
export GIT_PAGER="diff-so-fancy | less --tabs=4 -RFX"
# add the user specific bin to the path
export PATH=~/dv/dotfiles/bin/bash:~/bin/bash:~/.dotnet/tools:/usr/local/sbin... | true |
0c76f4716a15ffaca8f95031e8533bbbd8b77023 | Shell | tarmiste/lfspkg | /archcore/svnsnap/community/nbtscan/repos/community-x86_64/PKGBUILD | UTF-8 | 906 | 2.8125 | 3 | [] | no_license | # $Id: PKGBUILD 114101 2014-07-01 13:29:38Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergio Rubio <rubiojr@biondofu.net>
pkgname=nbtscan
pkgver=1.5.1
pkgrel=6
pkgdesc="NBTscan is a program for scanning IP networks for NetBIOS name information."
arch=('i686' 'x86_64')
license=('... | true |
efcc01a15ca370548f4b311c1091966bfeccac64 | Shell | LeGrand-Lab/INMG_SingleCell | /scripts/launch_seu.sh | UTF-8 | 794 | 3.25 | 3 | [] | no_license | #!/usr/bin/env bash
# Launch seurat+FItSNE on homeostasis data (D0)
# each dataset independently
# assumes compressed folders in 'data/'
# Runs from 'scripts/'
# Joha GL 2020
pwd
MYPATH=$(pwd) # expected home/MYHOME/scripts
echo "uncompress data keeping .tar.gz files, move to data"
cd ../data
for i in $(ls *D0.tar.g... | true |
714b82864455831b3402540c18302a71b5e69165 | Shell | ETHZ-INS/enrichMiR_benchmark | /processing/whipple.STAR.sh | UTF-8 | 644 | 2.59375 | 3 | [] | no_license | #!/bin/bash/
mkdir STAR
# Alignment for samples SRR10513924-SRR10513935 (paired-end RNA-seq):
for f in *_1.fastq.gz; do
/conda/pkgs/star-2.6.1b-0/bin/STAR --runThreadN 18\
--genomeDir /reference/Mus_musculus/GENCODE/GRCm38.p5/Annotation/Genes/genes_STARIndex\
--genomeLoad LoadAndKeep\
... | true |
3f14d687bba48b00d849a5a8565bbd7091869746 | Shell | mad3310/jetty-manager | /scripts/docker/init/jetty | UTF-8 | 1,276 | 4.25 | 4 | [] | no_license | #!/bin/bash
#
# Description: This shell script takes care of starting and stopping dennis
# Hu Dennis created on Sep. 24th, 2010
#
# Source function library
. /etc/init.d/functions
#the service name for example: dennis
SNAME=jetty
#the full path and name of the daemon program
#Warning: The n... | true |
bef9b51c139b770a570ee1e6707e1547bc5b1b7d | Shell | csye6225-rbharti-spring2020/ami | /scripts/JdkAndMavenSetup.sh | UTF-8 | 678 | 2.765625 | 3 | [] | no_license | #!/bin/bash
sudo apt update -y
sudo apt upgrade -y
sudo apt --fix-broken install
#JAVA SETUP
sudo apt install default-jre -y
sudo apt install default-jdk -y
sudo update-alternatives --config java -y
java --version
echo "export JAVA_HOME=$(dirname $(dirname $(readlink $(readlink $(which javac)))))" | sudo tee -a /etc/... | true |
73d31d1b0eae9bfd4da997682242048301338d98 | Shell | namidairo/cloudflare-ufw | /cloudflare-ufw.sh | UTF-8 | 1,183 | 3.40625 | 3 | [] | no_license | #!/bin/sh
DIR="$(dirname $(readlink -f $0))"
cd $DIR
wget https://www.cloudflare.com/ips-v4 -O ips-v4.tmp
wget https://www.cloudflare.com/ips-v6 -O ips-v6.tmp
mv ips-v4.tmp ips-v4
mv ips-v6.tmp ips-v6
for cfip in `cat ips-v4`; do ufw allow from $cfip; done
for cfip in `cat ips-v6`; do ufw allow from $cfip; done
ufw ... | true |
d9ad3bff3fe5caf8fff206a177e4e51d022d5c53 | Shell | eltsc/sen | /ansible/metricbeat/install | UTF-8 | 611 | 3.0625 | 3 | [] | no_license | #!/bin/bash
function metricbeat_action(){
action=$1
systemctl $action metricbeat.service
}
function turn_off(){
metricbeat_action stop
metricbeat_action disable
}
function turn_on(){
metricbeat_action enable
metricbeat_action start
}
function service_update(){
cp metricbea... | true |
afd07cf50f921278076403122e8db0ceef677c8d | Shell | dennis-tmeinc/dvr | /zeus6/deploy/ZEUS5_MSS/host/etc_back/init.d/stunneld | UTF-8 | 853 | 3.734375 | 4 | [] | no_license | #!/bin/sh
# chkconfig: 2345 17 81
STUNNEL_SCRIPT="/etc/init.d/stunnel"
SWITCH_FILE="/etc/conf.d/ssl/switch"
PEM="/etc/conf.d/ssl/certificate.pem"
IPTABLES="/usr/sbin/iptables"
IP_FLAG="INPUT 1 -i eth0 -p tcp --dport 80 -j DROP"
IP_SFLAG="INPUT 1 -i eth0 -p tcp --dport 443 -j DROP"
SWITCH=`cat $SWITCH_FILE`
start(){
... | true |
fd1eebf6e06c798bb318cb30fa2b0afb4938a537 | Shell | AdiPezer/linux | /vjezba1/cleanlog.sh | UTF-8 | 304 | 2.953125 | 3 | [] | no_license | #!/bin/bash
echo "Kao root korinsik potrebno je da ocistimo logove"
LOG_DIR=/var/log
ROOT_UID=0
E_XCD=86
E_NOTROOT=87
if [ "$UID" -ne "$ROOT_UID" ]
then
echo "Must be root to run this script."
exit $E_NOTROOT
fi
cat /dev/null > messages
cat /dev/null > wtmp
echo "Log files cleaned up."
exit 0
| true |
4bf76c38de1899d50af0025fa5982d9d891ad7a4 | Shell | dmedme/web_path_web | /autodefC.sh | UTF-8 | 2,827 | 3.640625 | 4 | [] | no_license | #!/bin/sh
#
# autodefC.sh automates the generation of a *.def file for a path script
# A *.def file must exist with possible substition values in the second col
# of each row (i.e. in the format of a def file but other than the second
# column the values can be null and are in any case ignored.
# Thus a current *.def f... | true |
0e2f01161415ceceb6b4d65e3bdf7675b9c7566b | Shell | echocloudG/auto-deploy-maven-project | /auto-update.sh | UTF-8 | 1,088 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/sh
APP_NAME=修改为你的项目名
PROJECT_PATH=修改为你的项目路径
PROJECT_JAR_PATH=${PROJECT_PATH}/target
# 检测代码是否有更新
LOG=$(git pull)
if [ "${LOG}" = "Already up-to-date." ]; then
echo "当前版本为最新版本"
exit 1
else
echo "更新到最新版本,开始编译"
# 开始打包程序
mvn clean package -Dmaven.test.skip=true
if [ $? != 0 ]
then
echo "打包时出现错误"
... | true |
c197fc45fd1b41f79448021d6adaaf6847c7545c | Shell | paddureddy/Free_elec_BBB_3.8 | /patch.sh | UTF-8 | 5,262 | 3.328125 | 3 | [] | no_license | #!/bin/bash
# (c) 2009 - 2013 Koen Kooi <koen@dominion.thruhere.net>
# (c) 2012 Robert Nelson <robertcnelson@gmail.com>
# This script will take a set of directories with patches and make a git tree out of it
# After all the patches are applied it will output a SRC_URI fragment you can copy/paste into a recipe
set -e
#... | true |
36aa21deacdd8a5f9d275b754a1b0115464550be | Shell | xzfc/cached-nix-shell | /tests/t15-old-nix.sh | UTF-8 | 394 | 2.640625 | 3 | [
"MIT",
"Unlicense"
] | permissive | #!/bin/sh
. ./lib.sh
# Check that cached-nix-shell works even if the $PATH contains an old derivation
# of nix-shell. https://github.com/xzfc/cached-nix-shell/issues/24
PATH=$(nix-build '<old>' -A nix --no-out-link -I \
old=https://github.com/NixOS/nixpkgs/archive/nixos-21.05.tar.gz
)/bin:$PATH run cached-nix-shell ... | true |
c87c60946e56cdc9443e982cebcd43dd8489a422 | Shell | tonanuvem/kafka-producer-consumer | /start_cluster.sh | UTF-8 | 218 | 2.96875 | 3 | [] | no_license | start_zookeper_kafka() {
docker-compose up -d
}
check_control_center_up() {
FOUND=$(docker-compose logs kafka | grep "started (kafka.server.KafkaServer)")
if [ -z "$FOUND" ]; then
return 1
fi
return 0
}
| true |
3b1b95efe5438d281dd17a85d2e14272e8746030 | Shell | gbarany/crypto-arbitrage-finder | /docker-entrypoint.sh | UTF-8 | 904 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
Mode="${MODE:-SANDBOX_NETX_KAFKA_AWS}"
if [ "$Mode" = "SANDBOX_NETX_LOCALPOLLER" ]; then
python ./src/FrameworkLive.py --noforex --resultsdir=./results/ --dealfinder=networkx 2> ./results/errorlog.txt
else
if [ "$Mode" = "SANDBOX_NEO4J_LOCALPOLLER" ]; then
python ./src/FrameworkLive.py --n... | true |
666e497abc02910d7a6a1a52000516869cecdc2c | Shell | nagatax/docker-library | /apache/hooks/build | UTF-8 | 1,115 | 2.734375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
##################################################
# Dockerイメージを作成する
##################################################
# Load some environmental values
. ./apache/hooks/env.sh
# Building a docker image
echo "Building a docker image"
docker image build . \
--build-arg APR=${APR} \
--build-arg APR_PAKAGE=${... | true |
1695a2de6b97038a6e5443ad1cfa0b9c4c31e485 | Shell | NKb03/Hextant | /setup/hextup.sh | UTF-8 | 3,262 | 3.828125 | 4 | [] | no_license | #!/bin/sh
get_jar() {
wget "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=com.github.nkb03&a=$1&v=$version&t=jar" -O "$hextant_home/plugins/$2"
}
check_java() {
if java --version; then
echo "Please make sure that your Java JRE has version 11."
else
echo "java command is no... | true |
b5ea9ac37c0a1ff5e92c946b309626b3dd49685f | Shell | commercetools/ctp-smoke-tests | /.circleci/run_smoke_tests.sh | UTF-8 | 339 | 2.5625 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
rm -rf test-reports && mkdir test-reports
img=gcr.io/ct-images/ctp-smoke-tests:master
docker pull $img
docker run \
--rm \
--mount type=bind,source="$(pwd)"/test-reports,destination=/tmp/test-reports,consistency=cached \
-e AUTH_URL \
-e CLIENT_ID \
-e CLIENT_SECRET \
-e PR... | true |
53b60989b9b350e1bd73dce6961f3e8e9387f9bd | Shell | mludolph/cloudcomputing | /assignment02/alex/spinup-gcp-for-openstack.sh | UTF-8 | 1,473 | 2.625 | 3 | [] | no_license | #!/usr/bin/env bash
# 1. VPC networks create
gcloud compute networks create cc-network1 --subnet-mode=custom
gcloud compute networks create cc-network2 --subnet-mode=custom
# 2. VPC networks create subnets
#? wtf, what networks should I give them
gcloud compute networks subnets create cc-subnet1 \
--network=c... | true |
4b972710f2219490fd88988c493fd09e21b95233 | Shell | tuyen81/self_learning | /shell/running_package/testcases/coreutils/uname.sh | UTF-8 | 471 | 3.3125 | 3 | [] | no_license | #!/bin/bash
#==============================================================================
# DISCRIPTION: Test script is test to 'uname' command.
# The 'uname' is a command which prints system information like the kernel name
#==============================================================================
... | true |
bbefe534007afd499fd4927a69268a30c4dde94d | Shell | LUGatGT/Scripts | /Hacks/Gizoogle/tranzizzle | UTF-8 | 450 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
INPUT=
if [[ $(tty) = 'not a tty' || "$1" = '' ]]; then
INPUT=$(cat -)
elif [[ -f "$1" ]]; then
INPUT=$(cat "$1")
else
echo "Could not find file '$1'"
exit 2
fi
OUTPUT=$(curl -s --data-urlencode "translatetext=$INPUT" \
--data 'translate=Tranzizzle+Dis+Shiznit' \
... | true |
4a8b6371e42c0bbc9e30c04d57bf99720b1fc078 | Shell | PhilyT/SystemDistrib | /build.sh | UTF-8 | 569 | 2.75 | 3 | [] | no_license | #!/usr/bin/env bash
set -a
echo ""
echo "--- Nettoyage de la version précédente de maven..."
mvn clean
echo "--- Nettoyage terminé."
echo ""
echo ""
echo "--- Packaging du projet..."
if [ -f "pom.xml" ]; then
mvn package
else
echo ""
echo "Le fichier pom.xml n'existe pas !"
exit 1;
fi
echo "--- Packa... | true |
caaf2f78b18686a4f298b1b1f0e0d0c4a32682f3 | Shell | mpolitano/bounded-exhaustive-api-testgen | /scripts/run-inclusion-korat-in-beapi.sh | UTF-8 | 1,311 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
projectsdir=$BE_EXP_SRC
scriptsdir=$projectsdir/scripts
source $scriptsdir/common.sh
source $scriptsdir/process-results.sh
TO=60m
function run_serialize() {
technique=$1
budget=$2
cmd="timeout $TO ./run-begen-serialize-experiment.sh $project $casestudy $technique $budget matching builders"
echo "***... | true |
0e3e8ecaa8a0ee8026b9be78cc10dcd7e3e4864b | Shell | progr1mmer/big-whale | /bin/restart.sh | UTF-8 | 306 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
source /etc/profile
if test $( pgrep -f big-whale | wc -l ) -eq 0
then
echo "big-whale is not running"
else
pgrep -f big-whale | xargs kill -9
echo "big-whale stopped"
fi
curr=$(date "+%Y%m%d")
echo "big-whale starting..."
nohup java -jar big-whale.jar >> application-$curr.log 2>&1 &
| true |
b83973ad9f8b3219304e06eb44556b4d388bd7a7 | Shell | monsterzzz/myBash | /test/2.sh | UTF-8 | 897 | 3.375 | 3 | [] | no_license | #!/usr/bin/env bash
name="monster"
echo $name
echo ${name}
# read dir file
# shellcheck disable=SC2045
#for i in $(ls /etc) ; do
# echo "$i"
#done
# readOnly var
readOnlyVar="monster"
readonly readOnlyVar # can not change var , because it is read only
readOnlyVar="monster1"
echo ${readOnlyVar}
# unset delet... | true |
1c06f4194692e74eee46a97a3a52b83254350be0 | Shell | songweijia/hdfsrs | /experiments/readwrite/run/writthp.sh | UTF-8 | 1,428 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# $1 - type
# $2 - block size
# $3 - paket size
# $4 - page size
# $5 - write size
# $6 - duration sec
# $7 - snapshot?
function run(){
EXP=$1
BS=$2
PKS=$3
PGS=$4
WS=$5
DUR=$6
SNAP=$7
#prepare
./prepare.sh $EXP $BS $PKS $PGS
#run
hadoop jar Exp1.jar timeappend /timefile $WS $DUR $SNAP... | true |
2f652cc32ab446562ebb8870be6ed400b350eaf8 | Shell | autom8ter/docker-protoc | /gwy/generate_gateway.sh | UTF-8 | 3,493 | 4.125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
set -e
printUsage() {
echo "protoc-gen-gwy generates a ready-to-build gRPC gateway server."
echo ""
echo "Options:"
echo "-h, --help Show this message."
echo "-i, --includes INCLUDES Extra includes (optional)."
echo "-f, --file FILE Relative path to the proto f... | true |
23d6e2a0d8a7b200932bedae70f3c3b1a2a2deb4 | Shell | cuongquay/monbus-restapi | /code-push.sh | UTF-8 | 1,397 | 2.96875 | 3 | [] | no_license | #!/bin/bash
# Simplify Automatic Deployment Script
# Project: monbus-restapi
# Deployment: monbus-demo
# Region: eu-west-1
# Profile: simplify-eu
# Version: 0.1.1
INITIAL_DIR=$PWD
node code-init.js --input monbus-demo.json
source ${INITIAL_DIR}/code-versions.sh ${1}
export DEPLOYMENT_STAGE=${ENV_functionForGetTimeta... | true |
9bd1b17742b9686dbdef95b4a9fa42f29de084a0 | Shell | cwinux/ducter | /server/script/svr_script/search/dcmd_svr_search_homepage.script | UTF-8 | 2,814 | 3.390625 | 3 | [] | no_license | #!/bin/bash
# test
#DCMD_SVR_USER=search
#DCMD_SVR_PATH=/letv/search
#DCMD_SVR_POOL=test_wanxiang_tdxy
###################################################################
PATH=$PATH:/usr/sbin:/sbin:/bin
export PATH
echo $PATH
# 确定部署目录
WX_KEYWORD="wanxiang"
GG_KEYWORD="guoguang"
if [[ $DCMD_SVR_POOL == *$WX_KEYWORD*... | true |
375a280bb4a16b5d9f1294535a7f4d81644f40db | Shell | kelseysbrose/COMP2101 | /bash/helloworldugly.sh | UTF-8 | 707 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# helloworldugly.sh - an exercise in obfuscation
# This script displays the string “Hello World!”
# and then displays its PID
# Function Definitions
function output-string { echo "$*"; }
# Main Script Body
# This is a silly way of creating the output text
# We start with similar text and stream edit it ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.