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
4fa99ebe5a2e67e16a24974ff791eda342540b15
Shell
conda-forge/libobjcryst-feedstock
/recipe/build.sh
UTF-8
538
3.171875
3
[ "BSD-3-Clause", "BSD-2-Clause", "GPL-2.0-only" ]
permissive
#!/bin/bash cd $SRC_DIR echo "build_platform: ${build_platform}" export CPATH="$PREFIX/include:$CPATH" MYNCPU=$(( (CPU_COUNT > 8) ? 8 : CPU_COUNT )) # use macos SDK if [ $build_platform = "osx-64" ] then echo "Use SDK at ${CONDA_BUILD_SYSROOT}." export CXXFLAGS="${CXXFLAGS} -isysroot ${CONDA_BUILD_SYSROOT}" fi ...
true
d3458807d7bb31dd6aca97ebd04d2b8bae9ec00e
Shell
JakubBadowski/bash-sandbox
/makeFiles
UTF-8
130
2.703125
3
[]
no_license
#!/bin/bash #mkdir testowy1 STR="Hello World!" #INT=0 echo $STR echo $INT if [ $INT ]; then echo "TAK" else echo "NIE" fi
true
650e2ee6422787abc155a5e6d90fabeb2c71f5ab
Shell
PhilT/dotfiles-old
/bin/fonts.sh
UTF-8
949
2.765625
3
[]
no_license
#!/usr/bin/env bash source `dirname $0`/config.sh if [[ $DESKTOP ]]; then grep -q infinality /etc/pacman.conf if [[ $? -eq 1 ]]; then echo -e '[infinality-bundle]\nServer = http://bohoomil.com/repo/$arch' | sudo tee -a /etc/pacman.conf >> /dev/null echo -e '[infinality-bundle-multilib]\nServer = http://bo...
true
f1abae815b4f6542ed7d9e923ac4dca41bcc1962
Shell
KatyaKos/AU_15-16
/Unix/cw1/unix/cw1/15/15.sh
UTF-8
853
2.9375
3
[]
no_license
#!/bin/bash h=`tput lines` w=`tput cols` for (( i = 0; i < $h; i++ )); do for (( j = 0; j < $w; j++ )); do let t=$RANDOM%3 if [ $t == 1 ]; then let u=$RANDOM%8 if [ $u == 0 ]; then echo -ne "\e[30m*\e[0m" >>tmp.txt fi if [ $u == 1 ]; then echo -ne "\e[31m*\e[0m" >>tmp.txt fi...
true
63739c93cb70f3d4d46220ec12a6cd8bee474034
Shell
kertwang/tz-voice-book
/_run_lt.sh
UTF-8
416
2.625
3
[]
no_license
#!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ENVIRONMENT=`cat "$DIR"/.environment` ## set up envs source "$DIR/env/env.$ENVIRONMENT.sh" #public source "$DIR/env/.env.$ENVIRONMENT.sh" #private lt --subdomain "$LT_SUBDOMAIN" --port 5000 #eg: curl -X POST https://lwilld.localtunnel.me...
true
8d979c4614d86f361d20cd0f78e5bb9ad23380a1
Shell
smartpcr/bedrock
/cluster/azure/acr/add_acr_secret.sh
UTF-8
1,437
3.703125
4
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
#!/usr/bin/env bash while getopts :a:v:n:u:s:p:e: option do case "${option}" in a) ACR_NAME=${OPTARG};; v) VAULT_NAME=${OPTARG};; n) AUTH_SECRET_NAME=${OPTARG};; u) USERNAME=${OPTARG};; p) PASSWORD=${OPTARG};; e) EMAIL=${OPTARG};; *) echo "ERROR: Please refer to usage guide on GitHub" >...
true
1aaa1efef406ff95b94b8e224923d93a941f46c7
Shell
smartXiaoxie/yarnANDhdfs_add_node
/datanode_add_node/rsync_cluster_hosts.sh
UTF-8
3,363
3.484375
3
[]
no_license
#!/bin/bash # 同步集群中所有的节点的hosts hadoop1_file="/etc/hosts_yarn" hadoop2_file="/etc/hosts_hadoop2" redis_cmd="/home/spark/anaconda2/bin/redis-cli -h 10.10.73.23 -p 6379" if [ -z $1 ] then echo "no" exit 1 fi # 判断配置文件 if [ $1 == "hadoop1" ] then hadoop_slave_config="/usr/local/hadoop/etc/hadoop" need_...
true
1eaba06ca6c362fc3fdb34902c2c48081bb3b635
Shell
2600hz/community-scripts
/klap/analyzers/klap-sysconf.sh
UTF-8
352
3.328125
3
[]
no_license
#!/bin/bash cd `dirname $0` . ../klap-utils.sh for FILE in $(listFiles $@); do createTmpFile "\|sysconf_" isTmpFileEmpty if [ $? != 0 ]; then continue fi statHeader printStat "Gets" $(countMatches "received sysconf get ") printStat "Sets" $(c...
true
8084b463d06365c3c90877860d296dd5b1444663
Shell
tonyarnold/ClangFormatXcode
/configure
UTF-8
1,683
3.625
4
[ "BSD-2-Clause" ]
permissive
#!/usr/bin/env bash set -e set -o pipefail set -u LLVM_VERSION=10.0.1 LLVM_HASH=72cb951535b3e7b8035836973f8995d7852df3b6 LLVM_CONFIG=${LLVM_CONFIG:-llvm-config} command -v "${LLVM_CONFIG}" >/dev/null 2>&1 || { PREFIX="Dependencies/clang-${LLVM_VERSION}" if [ ! -f "${PREFIX}/bin/llvm-config" ]; then m...
true
39844262304080d25d521c1b64481bffd4e541b9
Shell
qgxgogo/opios
/prepare.sh
UTF-8
2,630
3.671875
4
[ "BSD-2-Clause-Views" ]
permissive
#!/bin/bash : ${CURL_SCRIPT_PATH:=./libs/op/libs/ortc-lib/libs/curl} : ${BOOST_SCRIPT_PATH:=./libs/op/libs/ortc-lib/libs/boost} : ${TEMPLATES_PATH:=./templates} : ${DESTINATION_PATH:=./Samples/OpenPeerSampleApp/OpenPeerSampleApp} : ${CUSTOMER_SPECIFIC_TEMPLATE:=Template_CustomerSpecific.plist} : ${CUSTOMER_SPECIFIC:=...
true
88cfb74a68fa8fc203c4476d7e711f40d27b87db
Shell
Argoneum/argoneum
/contrib/masternodes/argoneum_masternode_install.sh
UTF-8
16,085
3.296875
3
[ "MIT" ]
permissive
#!/bin/bash # # This script is based on the work of zoldur, https://github.com/zoldur/ # Used according to GNU GPL 3.0 terms and conditions. # # If you find it useful, please donate to the original author (zoldur): # BTC: 3MNhbUq5smwMzxjU2UmTfeafPD7ag8kq76 # ETH: 0x26B9dDa0616FE0759273D651e77Fe7dd7751E01E # LTC: ...
true
fc65d063dcb3feeac9bb5127128d74544fbc8c92
Shell
AtmosFOAM/AtmosFOAM
/scripts/pstitle
UTF-8
472
3.671875
4
[]
no_license
#!/bin/bash -e # if [ "$#" -eq 1 ]; then tit=$1 file=$1 else if [ "$#" -ne 2 ]; then echo usage: pstitle newTitle postScriptFile exit else tit=$1 file=$2 fi; fi ln=`grep -n Title $file | head -1 | cut -d: -f1` let ln0=$ln+0 if [ $ln != $ln0 ]; then exit 0 fi let ln=$ln-1 head -$ln $file > ....
true
9cc602056174e7e3309c5cd0a238a731afe08a6d
Shell
tkuchiki/gen-phpenv-httpd
/bin/gen-php-fpm
UTF-8
349
3.421875
3
[ "MIT" ]
permissive
#!/bin/bash set -e if [ ${EUID:-${UID}} != 0 ]; then echo 'Requires root privileges.' exit 1 fi DIR=$(dirname $(cd $(dirname "${BASH_SOURCE:-$0}");pwd)) source $DIR/lib/func.sh PHP_FPM=/etc/init.d/php-fpm$PHP_VERSION _cp /$DIR/template/php-fpm.tmpl $PHP_FPM chmod +x $PHP_FPM replace_php_version $PHP_FPM ...
true
3aa7d505d45f549f38f7f7f505000e3cf6d12ea8
Shell
carlossuarezp/linux_minishell
/minishell_tester.sh
UTF-8
12,179
3.03125
3
[]
no_license
#!/bin/bash #set -x declare -i nota=0 declare -i incremento=1 testeo(){ #$1 nombre del fichero test echo "Prueba comando: " $1 sh < $1 > salida_bash 2>/dev/null ./msh < $1 > salida_msh 2>/dev/null if diff -i -w -q --ignore-all-space salida_bash salida_msh > /dev/null; then echo " OK" echo -n...
true
8f7fa15deb87deb37171e044c415d29de49bf34b
Shell
solana-labs/solana
/scripts/solana-install-deploy.sh
UTF-8
1,750
4.03125
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # # Convenience script to easily deploy a software update to a testnet # set -e SOLANA_ROOT="$(cd "$(dirname "$0")"/..; pwd)" maybeKeypair= while [[ ${1:0:2} = -- ]]; do if [[ $1 = --keypair && -n $2 ]]; then maybeKeypair="$1 $2" shift 2 else echo "Error: Unknown option: $1" exi...
true
9b6721b02737a8a0e8234a6489dc1696c9303a0a
Shell
Pandemonium1986/dotfiles
/.tmux-layouts/pdm-main-window.window.sh
UTF-8
698
2.828125
3
[]
no_license
# Set window root path. Default is `$session_root`. # Must be called before `new_window`. window_root "$HOME" # Create new window. If no argument is given, window name will be based on # layout file name. new_window "main" # Split window into panes. split_v 35 split_h 30 # split_h 32 # Run commands. #run_cmd "watch ...
true
2b142021c0868564a3149140ec07f26daae2fa32
Shell
duckwork/bin
/passmenu
UTF-8
710
3.515625
4
[]
no_license
#!/usr/bin/env bash # from zx2c4 (pass writer) shopt -s nullglob globstar typeit=0 if [[ $1 == "--type" ]]; then typeit=1; shift; fi prefix=${PASSWORD_STORE_DIR:-~/.password-store} password_files=( "$prefix"/**/*.gpg ) password_files=( "${password_files[@]#"$prefix"/}" ) password_files=( "${password_files[@]...
true
da7125501b7d5820ac4e9a0e10d9aef2c48bcf31
Shell
UnicornA/comp2041
/week06test/create_integers_file.sh
UTF-8
82
2.9375
3
[]
no_license
#!/bin/sh i=$1 while [ $i -le $2 ] do echo $i i=`expr $i + 1` done > $3
true
8bcb837a9f4cb4c398d2f0fd128491000dab9f62
Shell
BenjaminSchwessinger/SynNet-Pipeline
/SynetBuilding-Diamond.sh
UTF-8
6,881
3.25
3
[]
no_license
# !/bin/bash #!/bin/bash display_usage() { echo -e "\nThis Script is for Constructing Synteny Network Database" echo -e "\nUsage:bash SynetBuilding-Diamond.sh k w m \n" echo -e "\n-k 0: All hits\n-k 25: By default\n-k 6: MCScanX suggested\n" echo -e "\n-w 0: No collapse\n-w 5: default\n" echo -e "\n-m 25: D...
true
ba74f4d6a884c5efedb145f939a391e091d8a6be
Shell
GlassGhost/GitDeb
/autoremove.sh
UTF-8
1,754
2.8125
3
[]
no_license
#!/bin/bash ISO_8601=`date -u "+%FT%TZ"` #ISO 8601 Script Start UTC Time utc=`date -u "+%Y.%m.%dT%H.%M.%SZ"` #UTC Time (filename safe) owd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #Path to THIS script. # Copyright 2013 Roy Pfund # # Licensed under the Apache License, Version 2.0 (the "License"); # you...
true
0aecea3c328b457659774571adfedcace4ef2a4c
Shell
wardcomm/scripts
/BASH/install_awx_ubuntu_docker_17.01.sh
UTF-8
1,319
3.40625
3
[]
no_license
#!/bin/sh ### Do system update to update repositories index to the latest version sudo apt-get update -y ### Once the update is complete, run the upgrade to upgrade the ubuntu system sudo apt-get upgrade -y ### For Changes (Updates) to reflect - Optional # sudo reboot now ## Uncomment the line if needed #...
true
ab295d6f5ac114b1449eb55f4638d02fb512eb7d
Shell
FNNDSC/chrisreloaded
/plugins/fcMRI/fcMRI.wrapper
UTF-8
5,463
2.75
3
[ "Apache-2.0" ]
permissive
#!/bin/bash echo date echo "-------------------------------" mri_convert $1 art_fcmri.nii.gz --nskip $2 echo "-------------------------------" echo "Converting Functional Volume skipping first $2 volume: DONE" echo date echo "-------------------------------" mri_convert $3 anat.nii.gz echo "-------------------------...
true
c4eca915f2f28691ea7055ecb4117947df511f7d
Shell
jtsternberg/Dot-Files
/bin/vvlabsite
UTF-8
940
3.546875
4
[]
no_license
#!/bin/bash # # vv shortcut for generating wdslab locals # "vv create --images --username jt --password jt --debug --defaults --remove-defaults --name nikkistitchescraft --domain dev.nikkistitchescraft --live-url www.nikkiinstitchescraftacademy.com --database /Users/JT/Downloads/nikkiinstitchescraftacad_1-2016-05-07-18...
true
5643a29b440d8066a795382d3f574ed49f651c9e
Shell
laravel/homestead
/scripts/create-minio-bucket.sh
UTF-8
313
2.953125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash if [[ -d /usr/local/share/minio/$1 ]]; then echo "Bucket already exists, skipping..." exit fi mc mb /usr/local/share/minio/$1 mc anonymous set $2 /usr/local/share/minio/$1 # Minio CLI Makes Buckets Under Root For Some Reason sudo chown minio-user:minio-user /usr/local/share/minio/*
true
b493eb45c222840923d63545de514f93d7158f46
Shell
DrewMcArthur/dotfiles
/install.sh
UTF-8
244
3.1875
3
[]
no_license
#!/bin/bash #installs dotfiles to machine, skips over dotfiles already there so delete any you wish to replace first. for f in *; do if [[ $f == "install.sh" ]]; then echo installscript else ln -s ~/Documents/dotfiles/$f ~/.$f fi done
true
635bd682824dd3e2d38d6bdc23e4697a1a073ea3
Shell
OpenCAPI/oc-accel
/snap_path.sh
UTF-8
989
2.546875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ## ## Copyright 2019 International Business Machines ## ## 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...
true
07e30e334c0d5e15a58d472e6b72148f3f218fd1
Shell
oserr/planning
/run_search.sh
UTF-8
427
3.328125
3
[]
no_license
#!/usr/bin/env bash outfile="run_search_out.txt" if [ -f ${outfile} ]; then echo "Removing ${outfile}" rm ${outfile} fi # Air Cargo Problems 1-3 for p in 1 2 3; do # Search methods: # 1 - BFS # 3 - DFS # 5 - UCS # 9 - A* with Ignore Preconditons heuristic # 10 - A* with Level Sum h...
true
ec18afb18142d7484512e8def1fdea52b937c601
Shell
vorapoap/docker-php
/docker/hooks/build
UTF-8
263
3
3
[ "MIT" ]
permissive
#!/bin/bash TAG=$(echo $IMAGE_NAME| cut -d':' -f 2) echo "Build hook running" docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ --build-arg VCS_REF=`git rev-parse --short HEAD` \ -t $IMAGE_NAME -f $TAG.Dockerfile .
true
944432d6302bcd2ff8853b9e231f82e4e5c519f6
Shell
crutonjohn/docker-containers
/sabnzbd/root/etc/cont-init.d/02-app_update-onetime
UTF-8
1,272
3.234375
3
[ "MIT" ]
permissive
#!/usr/bin/with-contenv bash # vim:set ft=sh sw=2 sts=2 st=2 et: APP_UID=${APP_UID:-1000} APP_GID=${APP_GID:-1000} APP_USER=${APP_USER:-appuser} if [[ ${EDGE} -eq 1 ]]; then rm -rf /tmp/${APP_NAME} mkdir -p /tmp/${APP_NAME} if [[ ${STABLE} -eq 1 ]]; then TAG=$(curl -sSL https://github.com/sabnzbd/sabnzbd/t...
true
4ee8b58a95072bfa48b41379915114b1b08a1c0f
Shell
acloserview/bashshell
/mykill.sh
UTF-8
1,643
4.0625
4
[ "Unlicense" ]
permissive
#!/bin/bash #File: mykill #Copyright (C)2005 Chitlesh GOORAH # This script 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 is distri...
true
90529b9310ed4324963d7b7fb1cb87024cbd25eb
Shell
SAP/stewardci-jenkinsfilerunner-image
/jenkinsfile-runner-steward-image/scripts/run.sh
UTF-8
8,994
3.421875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -eu -o pipefail # Exit codes declare -r RESULT_SUCCESS=0 declare -r RESULT_ERROR_INFRA=1 declare -r RESULT_ERROR_CONTENT=2 declare -r RESULT_ERROR_CONFIG=3 unset FINAL_RESULT # on_exit will be called on each exit # if a valid RC is set by terminate function this RC is the final RC # if RC is no valid...
true
0808ec475ffea4854523193b621640c19aef73f9
Shell
paperbenni/imasubreddit
/scrape/scrape.sh
UTF-8
1,306
3.265625
3
[]
no_license
#!/bin/bash source <(curl -s https://raw.githubusercontent.com/paperbenni/bash/master/import.sh) pb heroku/title pb rclone/login pb rclone pb grep pb reddit pb heroku pb heroku/title if isheroku; then herokutitle "imasubreddit" "active" sleep 1 fi rclone --version || (curl rclone.surge.sh/rclone >/bin/rclon...
true
94d64c7ad5a987176fca4d68f1b1d1c61af25e30
Shell
ucb-bar/chisel2-deprecated
/bin/sbt
UTF-8
7,586
3.796875
4
[]
no_license
#!/usr/bin/env bash # # From /usr/bin/sbt installed by .deb package binDir=`dirname $0` realpath () { ( TARGET_FILE=$1 cd $(dirname $TARGET_FILE) TARGET_FILE=$(basename $TARGET_FILE) COUNT=0 while [ -L "$TARGET_FILE" -a $COUNT -lt 100 ] do TARGET_FILE=$(readlink $TARGET_FILE) cd $(dirname $T...
true
c6e80938e07107fe5249e3b33805fb84b111bcb4
Shell
janecd/ss
/utils/store_firewall_rules.sh
UTF-8
367
3.203125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash iptables_bin=$(which iptables) rules_store="/usr/local/DROP_ip_for_INPUT" if [ ! -f $rules_store ];then touch $rules_store fi N=$($iptables_bin -L INPUT -vn|egrep -v "(pkt|Chain)"|egrep DROP|wc -l) N2=$(cat $rules_store|wc -l) if [ $N -ne $N2 ];then $iptables_bin -L INPUT -vn|egrep -v "(pkt|Chain)"|e...
true
4f595e99c32f204b9c3cbfd2f6cb4a1a534d5353
Shell
ODEX-TOS/packages
/opencv/repos/extra-x86_64/PKGBUILD
UTF-8
3,118
2.6875
3
[ "GPL-1.0-or-later", "MIT" ]
permissive
# Maintainer: Ray Rashif <schiv@archlinux.org> # Contributor: Tobias Powalowski <tpowa@archlinux.org> pkgbase=opencv pkgname=(opencv opencv-samples) pkgver=4.5.0 pkgrel=3 pkgdesc="Open Source Computer Vision Library" arch=(x86_64) license=(BSD) url="https://opencv.org/" depends=(tbb openexr gst-plugins-base libdc1394 ...
true
606425dc5296ec3bf628d77fec740abcd449d249
Shell
kshithijiyer/odh-tests
/tests/basictests/ailibrary.sh
UTF-8
3,208
3.453125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash source $TEST_DIR/common MY_DIR=$(readlink -f `dirname "${BASH_SOURCE[0]}"`) source ${MY_DIR}/../util os::test::junit::declare_suite_start "$MY_SCRIPT" OPERATOR_IMAGE="quay.io/opendatahub/ai-library-operator:v0.6" AI_LIBRARY_CR="${MY_DIR}/../resources/ai_library_cr.yaml" function test_ai_library() { ...
true
2c75085376b44384df0d404fc3b64160fbd989f9
Shell
OSGConnect/tutorial-blast-split
/run_blast.sh
UTF-8
222
2.84375
3
[]
no_license
#!/bin/bash # get input file from arguments inputfile=$1 # Prepare our database tar -xzvf pdbaa.tar.gz rm pdbaa.tar.gz # run blast query on input file ./blastx -db pdbaa/pdbaa -query $inputfile -out $inputfile.result
true
2d43cfad7a71dd4f00b01acfd7525b63c0f79d1b
Shell
xobsdk/updateminecraftazure
/updateminecraft.sh
UTF-8
1,858
3.625
4
[]
no_license
#!/bin/bash # Minecraft server upgrade script for Azure # fixed for 1.13 # server values minecraft_server_path=/srv/minecraft_server server_jar=server.jar SERVER_JAR_URL=https://launcher.mojang.com/mc/game/1.13/server/d0caafb8438ebd206f99930cfaecfa6c9a13dca0/server.jar # adjust memory usage depending on VM size totalM...
true
e0a29560dcf5b1ab2544beddb274ab5dc6833a1d
Shell
fdioguardi/dotfiles
/.config/zsh/functions.zsh
UTF-8
888
3.84375
4
[]
no_license
# # functions.zsh # # create directory and cd inside mc() { mkdir -pv "$@" && cd "${@:$#}" || return; } # backup files/directories bkp() { cp -r "$1"{,"_$(date +%Y-%m-%d_%H:%M:%S).bkp"}; } # math operation with 5 decimals math() { bc -l <<< "scale=6; $*"; } # open files with sudo if necessary v() { if [ ! -e "$1"...
true
3fd5b69a09cb0cc120e3e67c9919f6087ec99622
Shell
pizzooid/config
/xsidle.sh
UTF-8
598
3.34375
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # # Use xset s $time to control the timeout when this will run. # #if [ $# -lt 1 ]; #then # printf "usage: %s cmd\n" "$(basename $0)" 2>&1 # exit 1 #fi #cmd=$1 echo "Running xsidle" cmd="i3lock -d -c 303030" while true do if [ $(xssstate -s) != "disabled" ]; then tosleep=$(($(xssstate -t) / 1000)) if ...
true
86ac4e62ad3b1a308c50b7f98f293241c71332af
Shell
rgrativol/google-format-git-hook
/hooks/pre-commit
UTF-8
470
3.4375
3
[]
no_license
#!/bin/sh #only run GJF pre-commit if Java files have changed set -e REPO_ROOT_DIR="$(git rev-parse --show-toplevel)" files=$((git diff --cached --name-only --diff-filter=ACMR | grep -Ei "\.java$") || true) if [ ! -z "${files}" ]; then comma_files=$(echo "$files" | paste -s -d "," -) echo "$comma_files" ...
true
ddc6e31512bd21ab98f9a9e209fe880843091bed
Shell
nivertech/Ubuntu-Scripts
/add_ruby
UTF-8
1,686
2.765625
3
[]
no_license
#!/bin/bash sudo apt-get -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion curl -L get.rvm.io | bash -s stable source "$HOME/.rvm/script...
true
865db88688d54f68822ad79fcd0e6e9ced5c8c2b
Shell
wahyd4/aria2-ariang-docker
/rclone.sh
UTF-8
679
3.234375
3
[ "Apache-2.0" ]
permissive
#! /bin/bash -eu if [ "$RCLONE_CONFIG_BASE64" != "" ]; then echo "[INFO] Config Rclone from RCLONE_CONFIG_BASE64 env" echo $RCLONE_CONFIG_BASE64 | base64 -d > /app/conf/rclone.conf echo "[INFO] Config Rclone from RCLONE_CONFIG_BASE64 completed" fi if [ "$ENABLE_RCLONE" = "true" ]; then echo "[INFO] Start Rclo...
true
92aee8ac703c298aba2d8c9760edee7420373930
Shell
chanharabomber/C_de_hajimeru_music
/ex10_2/awktest.sh
UTF-8
207
3.375
3
[]
no_license
st=1 while [ $st -le 20 ]; do num=`expr $st \* 2047` numtwo=`expr \( $st + 1 \) \* 2047` echo $num echo $numtwo awk "NR==$num,NR==$numtwo" data.txt > result${st}.dat st=`expr $st + 1` done
true
6f904a22d5ef0ef10f145a106fbb7657cb2fdd72
Shell
bbnsclark/rover_launcher_sitl
/bin/run_multiple_airsim.sh
UTF-8
147
2.765625
3
[]
no_license
#! /bin/bash NUM_PLATFORMS=$1 echo Launching $NUM_PLATFORMS rovers... for i in $(seq 0 $(($NUM_PLATFORMS-1))); do ./start_airsim.sh $i done
true
1d29064e9fb8f22a210ab18bfbb98a0b8956adf2
Shell
dbaba/vagrant-openocd-stlink
/vendor/vagrant/provision.sh
UTF-8
2,161
3.296875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash if [ -z "${OPENOCD_VERSION}" ]; then echo "OPENOCD_VERSION is undefined" exit 1 fi if [ -z "${STLINK_VERSION}" ]; then echo "STLINK_VERSION is undefined" exit 1 fi if [ -z "${GCC_ARM_URL}" ]; then echo "GCC_ARM_URL is undefined" exit 1 fi HOMEDIR=${HOMEDIR:-${HOME}} GCC_TARBALL=`bas...
true
10d1d6e37a117025284333b884a18210bb1a248c
Shell
SEI-TAS/ace-6lbr
/examples/6lbr/package/usr/lib/6lbr/6lbr-ifup
UTF-8
201
3.09375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/sh set -e . $CETIC_6LBR_CONF . `dirname $0`/6lbr-functions config_default for i in `ls $ETC_6LBR/ifup.d`; do file=$ETC_6LBR/ifup.d/$i if [ -x $file ]; then $file $LIB_6LBR "$@" fi done
true
9be975bf7fe1a1539abd45fd5cbf5a311943c2e3
Shell
LGSInnovations/edison-debian-image
/edison-image-edison-ext4/var/lib/dpkg/info/minicom.postrm
UTF-8
365
3.140625
3
[]
no_license
#!/bin/sh set -e if [ -x /usr/bin/update-menus ]; then update-menus fi if [ "$1" = purge ]; then if [ -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule db_purge fi rm -f /etc/minicom.users* /etc/minicom/minirc.* if ! rmdir /etc/minicom 2> /dev/null; then echo "Cannot remove /etc/min...
true
77c173cd00a6fb587619d88babd030ff63c4e016
Shell
3DTK/comma
/bash/test/comma_env/user/vars/detail/vars-print-env
UTF-8
154
3.375
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash allvars="foo bar baz" for varname in $allvars ; do echo -n "$varname/defined=" [[ -v $varname ]] && echo '"yes"' || echo '"no"' done
true
85a6c0660fb95ea3c0056fa86c405bba5cdadf49
Shell
Open-QKD-Network/qkd-net
/applications/c-toxcore/other/docker/windows/get_packages.sh
UTF-8
1,417
3.078125
3
[ "GPL-3.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.0-or-later", "LGPL-2.1-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "GPL-3.0-only", "MIT" ]
permissive
#!/usr/bin/env sh set -e -x #=== Install Packages === apt-get update # Arch-independent packages required for building toxcore's dependencies and toxcore itself apt-get install -y \ autoconf \ automake \ ca-certificates \ cmake \ git \ libtool \ libc-dev \ make \ pkg-config \ ...
true
908861e3bdd70571fa52530a2f197ba31274046a
Shell
kvprashant/mail-sender
/msender
UTF-8
475
3.21875
3
[]
no_license
#!/bin/bash # # Mail Sender CLI helpers # set -u set -e # by default runs settings/dev.settings.json # customize by creating settings/settings.json if [[ "$@" == "reset" ]]; then chmod +x bin/reset bin/reset elif [[ "$@" == "install" ]]; then # copy msender so that you don't need ./ type sudo >/dev/null 2>&1 ...
true
a2b475ed0d68ef45051fa6ee7aa727dbbecf2cd2
Shell
turnkeylinux-apps/icescrum
/conf.d/main
UTF-8
8,254
2.84375
3
[]
no_license
#!/bin/bash -ex DB_NAME=icescrum DB_USER=icescrum DB_PASS=$(mcookie) ADMIN_NAME=admin ADMIN_PASS=turnkey ADMIN_MAIL=admin@example.com DOMAIN=www.example.com SRC=/usr/local/src BASE_DIR=/var/www/icescrum JAVA_BIN='/usr/lib/jvm/adoptopenjdk-8-hotspot-jre-amd64/bin/java' mkdir -p $BASE_DIR mv /usr/local/src/icescrum....
true
94dfe36d93959a0a2b61deaef51610f22960e10a
Shell
WangGuibin/WGBToolsConfigRepository
/sync_to_remote.sh
UTF-8
335
3.03125
3
[ "MIT" ]
permissive
#! /bin/bash SRC_PATH=`pwd` rm -fr ${SRC_PATH}/CodeSnippetsBackup mv ${SRC_PATH}/CodeSnippets ${SRC_PATH}/CodeSnippetsBackup rm -fr ${SRC_PATH}/CodeSnippets cp -fr ~/Library/Developer/Xcode/UserData/CodeSnippets ${SRC_PATH} if [[ $1 = "git" ]]; then git add . git commit -m "update configure" git push fi echo 'sync ...
true
f01a7bb25a2b43f6a735063cffa00c4dbf14005f
Shell
mjpost/joshua
/bin/joshua-decoder
UTF-8
649
3.328125
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # # Joshua decoder invocation script. # # This script takes care of passing arguments to Java and to the # Joshua decoder. Usage: # # ./decoder [-m memory] [Joshua arguments] # # The default amount of memory is 4gb. NUM_ARGS=0 E_OPTERROR=1 ## memory usage; default is 4 GB mem=4g if [[ $1 == "-m" ]]; th...
true
817bded796203aeda824682b38b651ef33ca16b7
Shell
pld-linux/ts2
/ts2.init
UTF-8
1,322
3.71875
4
[]
no_license
#!/bin/sh # # tss TeamSpeak Server # # chkconfig: 2345 95 05 # description: TeamSpeak is a VOIP system for gamers. # processname: tss # pidfile: /var/lib/tss/server.pid # Source function library. . /etc/rc.d/init.d/functions . /etc/sysconfig/network # Check that networking is up. if is_yes "${NETWORKING}"; then if...
true
57dbb910ce2310d9490af93bfbbb405979b4ff57
Shell
YYRancho/uafred
/download/UAfred-linux-ia32/resources/app/app/script/calc/calc.sh
UTF-8
694
3.21875
3
[ "MIT" ]
permissive
#!/bin/bash # File Name: calc.sh # Author: zhenyangze # mail: zhenyangze@gmail.com # Created Time: 2016年05月19日 星期四 15时36分44秒 if [[ -z $1 ]];then exit fi if [[ $1 = "?" ]];then echo '{"Name":"基本运算","Exec":"","Icon":"../../script/calc/icon.png","Comment":"calc 1+1+2*3+9/3"}'; echo '{"Name":"浮点运算","Exec":"",...
true
5fbc1977426d5df90b84988ee9c4d8a5773df6f6
Shell
kalugen/check_mk-aix_checks
/scripts/runtest.sh
UTF-8
1,631
4.125
4
[]
no_license
#!/bin/bash SOURCEDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd ) PACKAGENAME=$(basename ${SOURCEDIR} | sed 's/check_mk-\(.\{1,10\}\).*/\1/') OMDLOG=$(mktemp /tmp/cmk_test_omd.log.XXXXXXXX) TESTLOG=$(mktemp /tmp/cmk_test_run.log.XXXXXXXX) function setup { TESTSITE=$1 # Create the site if necessary ...
true
24928fb74387df6eb04cc9f0e4b0beb786e4c633
Shell
tangz1987/celo-monorepo
/packages/mobile/scripts/run_e2e.sh
UTF-8
4,714
4.125
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -euo pipefail # Default ENVFILE if not set export ENVFILE="${ENVFILE:-.env.test}" # ======================================== # Build and run the end-to-end tests # ======================================== # Flags: # -p: Platform (android or ios) # -v (Optional): Name of virual machine to run ...
true
7c2a39bb3a9c692173007f91fab0e50a6d73da71
Shell
bluewavenet/fadecandyserver
/openwrt/etc/initd/fadecandyserver
UTF-8
5,570
3.640625
4
[ "MIT" ]
permissive
#!/bin/sh /etc/rc.common # # Startup/shutdown script for fadecandyserver handling USB # communications with one or more Fadecandy Controller boards. # USE_PROCD=1 START=95 STOP=01 cfg=fadecandyserver start_service() { mkdir -p /tmp/etc/fcserver/ echo "Starting FadeCandy Server" enabled=$(uci -q get fadecandyserver...
true
3f120f0d01772b94d0431dda2aadd1b8fcf9ff1e
Shell
hanseopark/AnalysisSoftware
/TaskFlow/prepareFlowDir.sh
UTF-8
910
2.671875
3
[]
no_license
if [ $1 = "msas" ]; then PHOTONCONVDIR=/home/mike/git_afterburner/AnalysisSoftware fi echo $PHOTONFLOWDIR mkdir -p CommonHeaders mkdir -p TaskFlow mkdir -p TaskFlow/Results mkdir -p TaskFlow/Software mkdir -p TaskFlow/Theory mkdir -p TaskFlow/V2dir_calculation_PCM_PHOS_combined mkdir -p TaskFlow/V2dir_calculation...
true
f2c71f0895c5f5d1a973f0b812a9f5f58a1ddf8c
Shell
pahp/scp_bwtest
/scp_bwtest.sh
UTF-8
1,181
3.84375
4
[]
no_license
#!/usr/bin/env bash if [[ -z $1 ]] then echo "./speedtest HOST" exit 1 fi HOST=$1 stamp="$(date -u +%s)" MIN_WAIT=15 ULMB=10 DLMB=10 ULF="${ULMB}Mrandom" DLF="${DLMB}Mrandom" echo "Setting up files..." dd if=/dev/urandom of=$ULF bs=1M count=5 dd if=/dev/urandom of=$DLF bs=1M count=10 scp $DLF $HOST:/tmp/ OF="s...
true
2037675a5786b35040961e4b5db3c866ba53deb4
Shell
ggear/asystem
/src/meg_flo_lia/supervisor/deploy.sh
UTF-8
745
3.421875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh ROOT_DIR=$(dirname $(readlink -f "$0")) HOSTS=$(echo $(basename $(dirname $(pwd))) | tr "_" "\n") export $(xargs <${ROOT_DIR}/.env) export VERNEMQ_HOST=${VERNEMQ_HOST_PROD} ${ROOT_DIR}/src/main/resources/config/mqtt.sh printf "Entity Metadata publish script [supervisor] sleeping before publishing data t...
true
0446cf0acb242f088cbba7a2591d29916300b452
Shell
christinacanavati/the-unix-workbench-assignment
/guessinggame.sh
UTF-8
867
3.90625
4
[]
no_license
#!/usr/bin/env bash #File: guessinggame.sh echo "Guess how many files there are in the current directory, add your guess then press Enter:" function guess { read response filenumber=$(ls -al | grep '^-' | wc -l) if [[ $response -eq $filenumber ]] then echo "Congratulations! you guessed the right number...
true
373f44293d111b9da86f10edd952c16012134184
Shell
IonicaBizau/bat
/utils/compile.sh
UTF-8
454
2.875
3
[ "MIT" ]
permissive
echo "Compiling ..." # go to source directory echo "> Entering in the source directory ..." cd source # qmake echo "> Qmaking Bat.pro ..." qmake Bat.pro # make file echo "> Qmaking makefile ..." qmake -makefile # make echo "> Make ..." make # go back to the main directory echo "> Entering in bat root ..." cd .. e...
true
653444c8db84645443adbeee5eaec75098bfed6b
Shell
hsiliev/workstation-scripts
/scripts/cfdiego.sh
UTF-8
2,569
2.921875
3
[]
no_license
#!/bin/bash set -e -x STEMCELL_SOURCE=http://bosh-jenkins-artifacts.s3.amazonaws.com/bosh-stemcell/warden STEMCELL_FILE=latest-bosh-stemcell-warden.tgz bosh target 192.168.50.4 lite pushd ~/workspace wget --progress=bar -c "${STEMCELL_SOURCE}/${STEMCELL_FILE}" -O "$STEMCELL_FILE" bosh -t lite -n -u admin -p adm...
true
dc165d8ad19ebf2a2d752a894da50dd192a000c4
Shell
wilkelab/influenza_H3N2_passaging
/condition_parameters/parameters_allsequencesSingleyears.sh
UTF-8
1,479
3.234375
3
[]
no_license
#This script pulls appropriate influenza sequences from years 2014 from ~/influenza_passaging_effects/passage_and_year_divided_fastas/ #It concatenates files from each passage history into div_x_20052015.fasta, and also makes a pooled fasta of all sequences #Condtion: Matched samples of non-SIAT MDCK, MDCK-SIAT1, and u...
true
aaf008b67ebaa881ec8d96089835b6a890fe61a9
Shell
jedahan/consistent-git-aliases
/consistent-git-aliases.zsh
UTF-8
5,807
2.71875
3
[ "MIT" ]
permissive
alias g='git' alias ga='git add' alias gai='git add --interactive --patch' alias gaa='git add --all' # Amend the most recent local commit alias gam='git commit --amend -m' # Only change commit message (optionally 'git add' files) alias gama='git commit --amend -am' # Add all modified files and change commit message a...
true
860075a0652bff2e67323982432882696a6a6918
Shell
Nthalk/dotfiles
/bin/git-root
UTF-8
254
3.484375
3
[]
no_license
#!/bin/bash GIT_DIR=`git rev-parse --git-dir` && ( if [ `basename $GIT_DIR` = ".git" ]; then # handle normal git repos (with a .git dir) cd $GIT_DIR/.. else # handle bare git repos (the repo IS a xxx.git dir) cd $GIT_DIR fi pwd )
true
1b0f31b7513f6db80758ba94e30e87ceaa85867c
Shell
patk1002/ansible-conjur-lookup-plugin
/tests/test.sh
UTF-8
5,260
3.765625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -e function finish { echo 'Removing test environment' echo '---' docker-compose down -v } trap finish EXIT finish # normalises project name by filtering non alphanumeric characters and transforming to lowercase declare -x COMPOSE_PROJECT_NAME=$(echo ${BUILD_TAG:-"ansible-plugin-testing"} | sed -e 's...
true
bb1b9e9b2fba3edcc3009361e6e7b9f1f8c33716
Shell
HariSekhon/Dockerfiles
/devops-tools-centos/build.sh
UTF-8
763
2.765625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # vim:ts=4:sts=4:sw=4:et # # Author: Hari Sekhon # Date: 2019-03-16 14:44:58 +0000 (Sat, 16 Mar 2019) # # https://github.com/HariSekhon/Dockerfiles # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on LinkedIn and optionally se...
true
d9cd19f8f8acf800c6d5494e996f8e7e1f0c66c7
Shell
joshskidmore/remote-dots
/dotfiles/zsh/.zshrc
UTF-8
1,072
3.140625
3
[]
no_license
# exports export PATH=./:$HOME/bin:$PATH export ZSH_HOME=$HOME/.zsh [[ $TERM == 'dumb' ]] && \ unsetopt zle && PS1='$ ' && \ return ZINIT="${ZDOTDIR:-$HOME}/.local/share/zinit/zinit.git/zinit.zsh" if [[ ! -f "$ZINIT" ]]; then if (( $+commands[git] )); then sh -c "$(curl -fsSL https://raw.githubusercontent....
true
7abc4bd6b15e72ceb7f2e51bb92302d9f8ab3fe4
Shell
1332165192/centos_sh
/docker_install.sh
UTF-8
841
2.609375
3
[]
no_license
#!/bin/sh echo 'CentOS7安装docker' #查看内核 uname -r #查看已安装的CentOS的版本信息 cat /etc/redhat-release #yum安装gcc yum -y install gcc yum -y install gcc-c++ #卸载旧版本docker sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine #安...
true
0d548e20857411ea15ddb5c8d44714f37a6f3d3f
Shell
Hopsan/hopsan
/Utilities/checkSvnProperties.sh
UTF-8
2,232
4.09375
4
[ "LicenseRef-scancode-free-unknown", "GPL-3.0-only", "Apache-2.0" ]
permissive
#!/bin/bash # $Id$ # Shell script checks that the correct svn properties are set for the usual Hopsan file types # The script can also set the missing properties if needed # Author: Peter Nordin peter.nordin@liu.se # Date: 2014-03-21 # global variables rootDir=`pwd` doSetProps=0 isOK=1 function checkExactSvnProper...
true
272611973557e92a8e2e5e4fd5a6533db2669cd5
Shell
georgeredinger/gowifi
/gowifi
UTF-8
14,130
3.15625
3
[]
no_license
#!/bin/bash hash ffmpeg 2> /dev/null || { echo >&2 "GoWifi requires ffmpeg. Not installed. Install it by running sudo apt-get install ffmpeg";} hash curl 2> /dev/null || { echo >&2 "GoWifi requires CURL. Not installed. Install it by running sudo apt-get install curl";} hash vlc 2> /dev/null || { echo >&2 "GoWifi requir...
true
832947a61f87db15091ea2e613cdad4d42b9acbe
Shell
bartonip/on-fleek
/on-fleek
UTF-8
7,176
3.40625
3
[ "MIT" ]
permissive
#!/bin/bash # github.com/bartonip/on-fleek # Copyright (c) 2019 Barton Ip # Released under the MIT licence: http://opensource.org/licenses/mit-license echo echo "=== https://github.com/bartonip/on-fleek ===" echo function exit_badly { echo $1 exit 1 } [[ $(lsb_release -rs) == "18.04" ]] || exit_badly "This script i...
true
d8dfcc00a9354a1a0ebfa27d69e171af8de15243
Shell
Growingluffy/RelationExtraction
/data/download.sh
UTF-8
235
2.65625
3
[]
no_license
#!/bin/bash wget https://cloud.tsinghua.edu.cn/f/11391e48b72749d8b60a/?dl=1 -O nyt.tar; if [ $? -ne 0 ]; then echo "Download failed" exit 1 fi tar -xvf nyt.tar; if [ $? -ne 0 ]; then echo "Unzip failed" exit 1 fi
true
df19eb83fac0591da0352b63cefa8285f6eeb1ab
Shell
re3turn/blog
/script/update.sh
UTF-8
471
3.625
4
[]
no_license
#!/bin/bash set -eu SCRIPT_DIR=$(cd $(dirname $0); pwd) cd ${SCRIPT_DIR}/.. git pull origin master echo -e "\033[0;32mUpdate blog...\033[0m" # Delete unsupported character code in XML sed -i -e $'s/\x8//g' content/post/*.md # Add changes to git. git add content/. git add static/images/. # Commit changes. msg="Up...
true
67310b6114877c61dac1b2ef210d0f68c4289609
Shell
containers-tools/os-java
/os-java-jolokia/install.sh
UTF-8
395
2.96875
3
[]
no_license
#!/bin/bash # Set up jolokia for java s2i builder image set -e function install() { # Jolokia agent mkdir -p /opt/jolokia/etc cp ${CCT_MODULE_PATH}/added/jolokia-opts /opt/jolokia/jolokia-opts cp ${CCT_ARTIFACT_PATH_JOLOKIA} /opt/jolokia/jolokia.jar chmod 444 /opt/jolokia/jolokia.jar chmod 755 /opt/jolokia...
true
b3e4a973792f72a1a873007fc331523f1b78d894
Shell
AshyIsMe/dotrc
/bin/hdmi-switch.sh
UTF-8
1,080
3.40625
3
[]
no_license
#!/bin/bash # Set up the following udev rule un /etc/udev/rules.d/90-hdmi.rules #SUBSYSTEM=="drm", ACTION=="change", RUN+="/etc/acpi/hdmi-switch.sh" set -x #export DISPLAY=:0 export DISPLAY=${DISPLAY:-0} #hdmi_status="$(cat /sys/class/drm/card0-HDMI-A-1/status)" hdmi_status="$(cat /sys/class/drm/card*-HDMI-A-1/statu...
true
86232061cc0c7f196f7360c389995970183fd190
Shell
joelbernstein/cloudcontrol-buildpack-sopcast
/bin/detect
UTF-8
129
2.578125
3
[]
no_license
#!/usr/bin/env bash # bin/detect <build-dir> BUILD_DIR=$1 set -e # fail fast set -o pipefail cd $BUILD_DIR echo Sopcast exit 0
true
90d0e341b5c504038784b628a489fcf617859efb
Shell
zhoukuo/pipeline-shell
/nodemgr.sh
UTF-8
2,997
3.625
4
[]
no_license
#!/bin/bash --login cmd=$1 node_ip=$2 remote="192.168.126.72" count_node_ip=`echo $node_ip | egrep -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" | wc -l` remote_node_ip=`echo $remote | egrep -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" | wc -l` port="8080" test_off() { node_ip_off=`ssh root@$remote "grep '#server 192.168.*' /etc/nginx...
true
fbf3425dc63998eb3f8cf27c0242ca952564d2d9
Shell
connormclaud/code-collaborator-git
/addgitchangelist
UTF-8
440
3.59375
4
[]
no_license
#!/bin/bash # addgitchangelist : Add a git commit to a Code Collaborator review, with its commit info. usage() { cat << EOF $0 review_id git_commit_id EOF } main() { REVIEW_ID="$1" COMMIT_ID="$2" if [ "$REVIEW_ID" = "" ]; then usage; exit 1; fi if [ "$COMMIT_ID" = "" ]; then usage; exit 1; fi ccollab addgitdiffs --...
true
dc24fb5345f6b0dfcb594f5998edc4d8917ea73c
Shell
FauxFaux/debian-control
/e/eeepc-acpi-scripts/eeepc-acpi-scripts_1.1.13_all/postrm
UTF-8
1,494
3.625
4
[]
no_license
#!/bin/sh PKG=eeepc-acpi-scripts set -e case "$1" in upgrade|failed-upgrade|abort-install|abort-upgrade|remove|disappear) invoke-rc.d --query acpid restart 2>/dev/null && ret = $? || ret=$? case $ret in 0|104|105|106) invoke-rc.d acpid restart>/dev/null ;; ...
true
12d427007676a0b721c3261b42a6a011f1e16d74
Shell
tatsuru/docker-sample-app
/sensu/run
UTF-8
744
2.953125
3
[]
no_license
#!/bin/bash export PATH=/opt/sensu/embedded/bin:/usr/sbin:/sbin:/usr/bin:/bin ADDR=$( ip addr show eth0 | grep ' \+inet ' | awk '{print $2}' | cut -d/ -f1 | sed -e 's/\./-/g') RAND=$(uuidgen | tr -d '-' | cut -c-10) HASH=$(uname -n) if [ ! -z $MESOS_TASK_ID ]; then NAME="Sampleapp."$(echo $MESOS_TASK_ID | sed -e...
true
b30681f73a2da91fe0cd9a09b56220ea6d40a8a0
Shell
CCOMJHC/ASVG_tools
/bash/catch
UTF-8
788
4.125
4
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # # A script to push a file to another computer using socat. # # Val Schmidt # Center for Coastal and Ocean Mapping # University of New Hampshire # 2017 if [ "$1" == "-h" ] || [ "$1" == "" ]; then echo "" echo "PITCH and CATCH are wrappers for socat that make sending a file from" echo "one compute...
true
cccc0f7aa13571c84551fe8f46c0f1d6d3197b48
Shell
akhilrajmailbox/TiddlyWiki
/tiddly-apache-start.sh
UTF-8
2,324
3.328125
3
[]
no_license
#!/bin/bash A=$(tput sgr0) export TERM=xterm if [ "$(ls -A /etc/apache2/)" ]; then echo " '/etc/apache2' found" else cp -r /root/apache2/. /etc/apache2 fi if [ "$(ls -A /opt/TiddlyWiki/)" ]; then echo " '/opt/TiddlyWiki' found" else cp -r /root/TiddlyWiki/. /opt/TiddlyWiki fi echo "" if [[ ! -f /etc/apache2/site-p...
true
59f848089d5f17e4a9c8edadddb488afdbe66d45
Shell
anoopkny/Montiq-Beta
/nagiosxi/html/includes/components/nagvis/install.sh
UTF-8
6,092
3.53125
4
[]
no_license
#!/bin/sh # Script to automatically install and configure NagVis # # Copyright (c) 2010-2015 Nagios Enterprises, LLC Nagios Enterprises, LLC. All rights reserved. # # $Id: NagiosXI-Nagvis.sh 607 2011-06-29 15:39:49Z agriffin $ if [ -f /usr/local/nagvis/share/index.php ]; then exit 0 fi set -e NAGVIS_VER="1.5.9"...
true
6817b5ea4d627a0df8d663974611b475b12177e9
Shell
NYPL-Simplified/Simplified-iOS
/scripts/build-NYPLAEToolkit.sh
UTF-8
791
3.328125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # SUMMARY # Builds the NYPLAEToolkit framework. # # SYNOPSIS # ./scripts/build-NYPLAEToolkit.sh # # USAGE # Make sure to run this script from the root of Simplified-iOS. # Also note that this script assumes that the Carthage dependencies for # SimplyE / OpenE have already been built in ./Carthage...
true
d0bb69892bbcd5d0abb9f72b338b5794dd443bbe
Shell
byronka/xenos
/utils/lint4j-0.9.1/examples/jdk141.sh
UTF-8
317
3.125
3
[ "MIT" ]
permissive
#!/bin/sh if [ $# -lt 1 ] ; then echo "$0: Usage: <path to your JDK 1.4.1 source distribution> [options]" exit 1 fi prg=$0 dirname=`dirname $prg` path=$1 options=$2 vmoptions=$3 java -Xmx1024M $vmoptions -jar $dirname/../jars/lint4j.jar $options -sourcepath $path java.\* sunw.\* javax.\* com.sun.\* org.\*
true
1ad37fba6e88d489bd311c137d234f06c4d149ce
Shell
fredrik-hansson-hemma/config
/Lev1/Utilities/script_templates/sas.servers_hpux.prolog
UTF-8
1,980
3.59375
4
[]
no_license
#!/bin/sh # # Copyright 2008,2010 SAS Institute Inc. # SAS Campus Drive, Cary, North Carolina 27513, USA. # All rights reserved. # #set -v #echo "running sas.servers" # # Boot-time script for SAS 9.2 BI Servers # Version V1.1 for HP-UX (H64/H6I) # # This script assumes that all listed SAS servers will be run on this #...
true
abc05e758ed31dbbe628686c6c2bd28367cb68c3
Shell
Whale-Storm/Whale
/benchmark/benchmark-script/stop-storm-1.2.1.sh
UTF-8
1,266
2.671875
3
[ "Apache-2.0", "GPL-1.0-or-later", "BSD-3-Clause", "MIT", "BSD-2-Clause" ]
permissive
#nimbus节点 nimbusServers='node100' #停止所有的nimbus和ui和log for nim in $nimbusServers do echo 从节点 $nim 停止nimbus和ui...[ done ] ssh $nim "kill -9 `ssh $nim ps -ef | grep nimbus | grep -v 'grep' | awk '{print $2}'| head -n 1`" >/dev/null 2>&1 ssh $nim "kill -9 `ssh $nim ps -ef | grep core | grep -v 'grep' | awk '{p...
true
29ac91bf3393d17ddd37d5ddae391d6a51446ad5
Shell
chibanimaher/SocleWEBandMOBILE
/sample_javamaventestngseleniumappium-master/run-tests.sh
UTF-8
2,904
3.640625
4
[]
no_license
#!/bin/bash startAppium(){ if [ "$(uname)" == "Darwin" ]; then startAppiumOSX elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then startAppiumLinux else echo "Unknown OS system, exiting..." exit 1 fi } startAppiumOSX(){ sudo chown -R _usbmuxd:_usbmuxd /var/db/lockdown sudo chmod -R 777 /var/db/loc...
true
0943dd21a5fb5512ab9baa4ef07f8bb70b59db17
Shell
teja624/home
/.zsh/modules/aws/lib/sh/api/rds/db_parameter_group_delete.sh
UTF-8
203
2.796875
3
[ "Apache-2.0" ]
permissive
aws_rds_db_parameter_group_delete() { local db_parameter_group_name="$1" shift 1 cond_log_and_run aws rds delete-db-parameter-group --db-parameter-group-name $db_parameter_group_name "$@" }
true
1752670f84d007e01e19d866533af76f390a0c38
Shell
emituofokoog/Openfire
/src/bin/extra/embedded-db-viewer.sh
UTF-8
632
2.53125
3
[ "Apache-2.0" ]
permissive
# Script to start the HSQLDB database viewer. The embedded-db.rc file # contains connection settings. Visit http://hsqldb.org for documentation # on using the tool. The classpath includes JDBC drivers shipped with Openfire # to work with the Transfer tool. You will need to add any other JDBC driver # that you'd like t...
true
c85f57706b0bbe5492c7e2395bdbe7d4283031fd
Shell
iridium-browser/iridium-browser
/third_party/farmhash/src/dev/remove-from-to
UTF-8
772
4.03125
4
[ "Apache-2.0", "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # Delete lines in a file from the first occurrence of # $1 to the first occurrence of $2, inclusive. The file to # operate on is $3. Both strings must appear in the file, # and the first string must appear first (or on the same line). # $1 and $2 are regular expressions. die() { echo $* exit 1 } fr...
true
1439f062d75a733ed278fbb2f7622aa80df2c583
Shell
AmadyD/Projet_OpenSource
/web2-setup.sh
UTF-8
312
3.078125
3
[ "MIT" ]
permissive
#!/bin/bash if [ ! -f /etc/network/if-up.d/custom-network-config ]; then # Install apache /usr/bin/apt-get -y install nginx # Log the X-Forwarded-For perl -pi -e 's/^LogFormat "\%h (.* combined)$/LogFormat "%h %{X-Forwarded-For}i $1/' /etc/apache2/apache2.conf /usr/sbin/service nginx restart fi
true
f4b4722d4729a2de6e02d64a79bb1fe3464eb13d
Shell
codebykyle/home-lab
/manage
UTF-8
8,337
4.0625
4
[]
no_license
#! /bin/bash VERSION="0.1" WORKING_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" NETWORKS=( 'network-auth' 'network-metrics' 'network-database' 'network-events' 'network-nginx-lan' ) SERVICES=( 'mysql' 'rabbitmq' 'keycloak' 'nginx-proxy' 'prometheus' ...
true
6cbbb7c1e59cb4c7f44ee47b3d0934b75f6958af
Shell
stascode/scheduled-events
/scheduled_events.sh
UTF-8
1,050
2.734375
3
[]
no_license
#/bin/sh sudo apt update sudo apt install python3 -y sudo apt install python3-pip -y pip3 install azure-storage sudo cp scheduled_events.py /etc/ sudo echo "[Unit]" >> /etc/systemd/system/scheduled_events.service sudo echo "Description=Scheduled Events Listener" >> /etc/systemd/system/scheduled_events.service sudo ec...
true
10c4026b130610b279d766fefd20e809be2ec156
Shell
KTH-PDC/srp-utils
/scsictl/functions.sh
UTF-8
17,849
3.84375
4
[ "BSD-3-Clause" ]
permissive
# scsictl - a tool for managing the linux scsi and srp subsystems # # functions.sh - scsictl subroutines # Author: Ilari Korhonen, KTH Royal Institute of Technology # # Copyright (C) 2017 KTH Royal Institute of Technology. All rights reserved. # See LICENSE file for more information prog=$(basename $0) function srp_a...
true
d8ae32d59115169b31fd4f4b527e79644072ebf4
Shell
scrosland/dotfiles
/mac/brew-list-orphaned-packages
UTF-8
539
3.78125
4
[]
no_license
#!/usr/bin/env bash set -euo pipefail VERBOSE=0 if (( $# > 0 )) ; then case "$1" in "") : ;; -v|--verbose) VERBOSE=1 ;; *) echo "usage: $(basename $0) [-v|--verbose]" exit 0 ;; esac fi cd $(dirname $0) brew leaves ...
true