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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b58632a8961857bb45f92999a5d851a3e572065d | Shell | Neyzoter/TestScript | /linux/dos2unixUtil.sh | UTF-8 | 263 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Please input file name ..."
read file
echo "Overwrite?[y/n]"
read overwrite
if [ $overwrite = "y" ]; then
dos2unix $file
else
echo "Please input file name ..."
read newFile
dos2unix -k -n $file $newFile
fi
cat -e $file | head -n 1
| true |
a7debe18b4c4d30400d2852fe23fc72b101a7be4 | Shell | romarcablao/kubernetes-vm-setup | /kubernetes-docker/scripts/common.sh | UTF-8 | 2,275 | 3.375 | 3 | [] | no_license | #!/usr/bin/env bash
FLAG=$1
echo "------------------------------------------------------------------------------"
echo " $FLAG"
echo " $FLAG ->> Adding Kubernetes and Docker-CE Repo"
echo " $FLAG"
echo "------------------------------------------------------------------------------"
### Install packages to allow apt ... | true |
d0c9911e8b1a26edabe4fecbd8f6588001e6c66a | Shell | Azure-Samples/azure-cli-samples | /sql-database/failover-groups/add-managed-instance-to-failover-group-az-cli.sh | UTF-8 | 11,719 | 3.171875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Failed validation in Bash 12/01/2021 - not yet supported in Managed Instance using Azure CLI.
# In order to establish failover group between two SQL MIs, both of them have to be part of the same DNS zone.
# To achieve this, you need to provide instance partner to the secondary instance during creation. ... | true |
d2d522b8b1de2ff71071d6aaabe6336236573a60 | Shell | LesyaMazurevich/slackbuilds | /qt5/qt5-qtbase/qt5-qtbase.SlackBuild | UTF-8 | 16,619 | 3.03125 | 3 | [] | no_license | #!/bin/sh
#-- qt5-qtbase for Slackware --
# Build script by Phantom X <megaphantomx at bol.com.br>
# Suggested usage: $ qt5-qtbase.SlackBuild 2>&1 | tee build.log
#--
# Copyright 2008-2015 Phantom X, Goiania, Brazil.
# Copyright 2006 Martijn Dekker, Groningen, Netherlands.
# All rights reserved.
#
# Redistribution and ... | true |
8eece5be18ff29df35f1cd99164c51059c65690e | Shell | marcuskais/skripti_alused | /praks7/yl3.sh | UTF-8 | 214 | 2.65625 | 3 | [] | no_license |
#
#
#!/bin/bash
#
#
#kujundi valjastamine
#
#
echo "Sisesta ridade arv"
read read
for (( i=1; i <=$read; i++))
do
echo -n "$i."
for ((j=1; j<=i; j++))
do
echo -n "*"
done
echo ""
done
| true |
ce4b15f2df91eca1dcd0c4fbc9851c9b8fd3d43e | Shell | Stonnos/eca | /automation/db/mssql/init-script.sh | UTF-8 | 379 | 2.59375 | 3 | [] | no_license | for i in {1..90};
do
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -d master
if [ $? -eq 0 ]
then
echo "SQL server started"
break
else
echo "SQL server not ready yet..."
sleep 1
fi
done
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -d... | true |
b9b462984d1bcd0475db54faabfa5c185ff9be45 | Shell | laife/life2.0 | /life.sh | UTF-8 | 1,294 | 3.0625 | 3 | [] | no_license | #!/bin/bash
menu=('interface' 'dhcpd' 'sair')
select option in "${menu[@]}"; do
case "$option" in
"${menu[0]}")
cd /etc/network
mv interfaces interfaces.original
touch interfaces
echo "source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
allow-hotplug enp... | true |
421224c696aaae44196cfbd0214903b4f2694ef3 | Shell | tmax-cloud/hypercloud-operator-go | /test/cmd/example.sh | UTF-8 | 1,029 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
run_simple_tests() {
set -o nounset
set -o errexit
hypercloud::log::status "Testing kubernetes cluster(v1:pods/v1:namespaces)"
hypercloud::log::status "Create namespace test"
kubectl create ns test
hypercloud::test::get_object_assert nam... | true |
9daa00f08d9f6eed84a7743bf0aaf77fcf449231 | Shell | xamexd/vmware | /application.sh | UTF-8 | 311 | 3.296875 | 3 | [] | no_license | #!/usr/bin/env bash
if [ "$1" = "start" ]; then
./application.vi
elif [ "$1" = "status" ]; then
if ps -p "$2" > /dev/null
then
echo "running"
else
echo "not running"
fi
elif [ "$1" = "stop" ]; then
kill -9 "$2"
else
echo "usage: $0 [start, status, or stop], if status then [ppid], if stop[ppid]"
fi
| true |
5237bdd498f4bc0b656b29b61e8db1ca1b6ecff3 | Shell | ifzz/sona | /keepalived/restart_service.sh | UTF-8 | 300 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
ps -fe |grep keepalived |grep -v grep
if [ $? -eq 0 ]; then
echo "do nothing"
exit
fi
ps -fe |grep sona_broker |grep -v grep
if [ $? -ne 0 ]; then
exit
fi
DETECT=`/etc/keepalived/broker_detect 127.0.0.1 9902`
if [ $? -ne 0 ]; then
exit
fi
/etc/init.d/keepalived start
| true |
5c48ce109f300fa09df418be08e1f4c0d36f26e9 | Shell | wontfix-org/bash-bundles-prompt | /bundle | UTF-8 | 2,300 | 3.484375 | 3 | [] | no_license | #!/usr/bin/env bash
BBPROMPT_HOSTCOLOR=${BBPROMPT_HOSTCOLOR:-"\$(bbprompt_hostcolor)"}
BBPROMPT_USER=${BBPROMPT_USER:-"\[\033[38;5;230m\]\u"}
BBPROMPT_HOST=${BBPROMPT_HOST:-"\[$BBPROMPT_HOSTCOLOR\]\\h"}
BBPROMPT_DIRECTORY=${BBPROMPT_DIRECTORY:-'\[\033[38;5;104m\]\W$(__git_ps1 " (%s)")'}
BBPROMPT_RETURN_CODE=${BBPROMPT... | true |
d7f347beca51c4ffe3c63c66a7050a44a0b75776 | Shell | virtualtam/developus-apparatus | /scripts/spider_wget.sh | UTF-8 | 560 | 4.21875 | 4 | [
"WTFPL"
] | permissive | #!/bin/bash
#
# Check if a file needs to be (re-)downloaded by comparing local
# and remote checksums
url=$1
dl=1
if [[ -f $file_path ]]; then
local_size=$(ls -l $file_path | awk '{print $5}')
remote_size=$(wget --spider $url 2>&1 | awk '/Length/ {print $2}')
if [[ $local_size -eq $remote_size ]]; then
... | true |
8d96c2d30a581832e369cade45ac7105c36bd4b1 | Shell | gabrielecanepa/dotfiles | /.bashrc | UTF-8 | 116 | 2.9375 | 3 | [] | no_license | #!/bin/bash
# Backup to zsh if available.
if command -v zsh >/dev/null; then
export SHELL=/bin/zsh
exec zsh
fi
| true |
38aa70fbefc24a77062bbf78d40536efb8779b7b | Shell | ramoh/hobnob | /scripts/e2e.test.sh | UTF-8 | 680 | 3.0625 | 3 | [] | no_license | #!/usr/bin/env bash
RETRY_INTERVAL=${RETRY_INTERVAL:-0.2}
#Make sure the port is not already bound
if netstat -vnap tcp | grep -q 8080; then
echo "Another process is using port 8080"
exit 1
fi
if ! launchctl list | grep -q 'elasticsearch-full'; then
echo "Starting elastic search service"
brew services run e... | true |
13fa0d4114dd4555ab17acee4ea13288cdb0ac5e | Shell | koundinyabs/xfmr | /ci/latest/update-maven-app.sh | UTF-8 | 571 | 2.921875 | 3 | [] | no_license | #!/usr/bin/env sh
set -e -u
cd git-repo
THE_VERSION=$(grep -o '<revision[^"]*' pom.xml | sed -e 's/<revision>\(.*\)<\/revision>/\1/')
echo "Updating xfmr in CF with ${THE_VERSION} of Maven artifact"
# Replace `<ROUTE>` with the route of SCDF-server running in CF.
# curl \
# -X \
# POST "http://sabby-test-dataflo... | true |
6596b1d569381402e4a6e4e3bf8a6483ead5afd8 | Shell | mhristof/dotfiles | /gitlab-work.sh | UTF-8 | 2,131 | 3.703125 | 4 | [] | no_license | #! /usr/bin/env bash
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
IFS=$'\n\t'
die() {
echo "$*" 1>&2
exit 1
}
repo() {
local url
url="$1"
echo "cd $(DRY=true ~/bin/clone "$url" | awk '{print $NF}')"
exit 0
}
URL=${1:-}
if [[ -z $URL ]]; then
die "Error,... | true |
9226473b839f9e1db0af2d322411ffb97836042d | Shell | lremes/vault-rpm | /SOURCES/vault-bootstrap.sh | UTF-8 | 1,908 | 3.875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Constants
#
LOCK_PATH="locks/vault/bootstrap"
SECURE_TOKEN_PATH="/etc/default/consul_secure.env"
VAULT_URL="https://localhost:8200"
# Variables
#
token="$1"
function do_exit {
rval=$1
consul-cli kv unlock --session=${sessionid} ${LOCK_PATH}
exit ${rval}
}
if [ -z "${token}" -a -f ${SECURE_TOKEN_P... | true |
9c5e2d698c5421b78328a8a8283b4dd1b55dd735 | Shell | sweety-apps/money_pig | /wangcai_svr/sbin/show_user_info.sh | UTF-8 | 465 | 2.625 | 3 | [] | no_license | #!/bin/bash
if [ $# -ne 1 ]; then
echo "usage $0 <userid>"
exit
fi
userid=$1
echo "SELECT * FROM user_info WHERE id = $userid \G" | mysql wangcai
echo "SELECT * FROM user_device WHERE userid = $userid \G" | mysql wangcai
echo "SELECT * FROM billing_account WHERE userid = $userid \G" | mysql wangcai_billing
ec... | true |
062bfc906c5cf5644532a53e8bfbc8632119fe61 | Shell | cheng6563/fdboot | /extracted/boot.sh | UTF-8 | 4,950 | 3.34375 | 3 | [] | no_license | #!/bin/bash
echo 'Welcome fdboot.'
if [[ -z $START_CLASS ]]; then
START_CLASS=$(sed -n 's/^Start-Class: //p' ./META-INF/MANIFEST.MF)
echo "Use start class in ./META-INF/MANIFEST.MF"
fi
if [[ -z $START_CLASS ]]; then
START_CLASS=$(sed -n 's/^Main-Class: //p' ./META-INF/MANIFEST.MF)
echo "Use main clas... | true |
a10e9d7de097a7104202db08acb011d1fb5dedfd | Shell | sebgod/userscripts | /homebin/src/mercury_build_scripts/build_only_compiler.sh | UTF-8 | 584 | 2.78125 | 3 | [] | no_license | #!/bin/sh
#
pushd $MERCURY_GIT
PARALLEL=-j2
TARGET_DRIVE=c
TARGET_DIR=/mercury/dev-$MERCURY_CC
PREFIX=${TARGET_DRIVE}:${TARGET_DIR}
echo ./configure --with-cc=$MERCURY_CC --prefix=$PREFIX \
--enable-libgrades=$MERCURY_LIBGRADES \
--enable-new-mercuryfile-struct
git checkout build &&
git rebase master &&
acloc... | true |
4ac64df70af320c045d9359111199d8cb560e92c | Shell | marcorvazquezs/Docker | /Counter_Web_App/random_number.sh | UTF-8 | 153 | 2.578125 | 3 | [] | no_license | #!/bin/bash
while true
do
echo "<br /><center><h1>Your random number is: $RANDOM</h1></center>" > /usr/share/nginx/html/index.html
sleep 1
done
| true |
ded0218790260fae37c52ea861d2e3df9eaf53e4 | Shell | hjyou07/personalProjects | /Systems-primitiveSearchEngine/lab1_bash/myScript.sh | UTF-8 | 2,582 | 4.25 | 4 | [] | no_license | # Problem Statement:
# Often I have to copy some files from the remote repository
# into my local repository, most often for starter codes.
# In order to do that I need to "git pull" from "resources" folder,
# then see what directory I want to copy into my local student repository,
# then copy a specific directory int... | true |
3088a52f8fd81ba53b71d4286a20452edc8a37e8 | Shell | twmccart/SRAssemblerold | /data/xtestA | UTF-8 | 2,295 | 2.765625 | 3 | [] | no_license | #!/bin/bash
echo "============================================================================================================"
echo " Test1: Use the -1, -2 options to assign reads files."
echo "============================================================================================================"
rm -rf Atestou... | true |
589ed935b8a17c21742fe353e2368fcde31253eb | Shell | xibo-sun/VTR_with_Yosys | /vtr@2780988/.github/travis/install.sh | UTF-8 | 315 | 2.703125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"MIT-Modern-Variant"
] | permissive | #!/bin/bash
source .github/travis/common.sh
set -e
# Git repo fixup
start_section "environment.git" "Setting up ${YELLOW}git checkout${NC}"
set -x
git fetch --tags
git submodule update --recursive --init
git submodule foreach git submodule update --recursive --init
set +x
end_section "environment.git"
$SPACER
| true |
2f2625b54f949e99113fa3e2764b8aded0ce783d | Shell | avm99963/foam | /apps/builder/build.sh | UTF-8 | 666 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
BASEDIR=$(readlink -f $(dirname "$0"))
BUILD_DIR="$BASEDIR"/build
FOAM_DIR=../..
APP_DEF=foam.apps.builder.App
BASEDIR_FILES=( designer_view.html bg.js config.js manifest.json _locales 128.png builder.css )
pushd "$BASEDIR"
mkdir -p "$BUILD_DIR"
node --harmony "$FOAM_DIR/tools/foam.js" foam.build.BuildAp... | true |
4893753ea435b4dfa3343cb654d7805b8be5b193 | Shell | jmetzz/sandbox-scripts | /learn-bash/echoFile2.sh | UTF-8 | 1,237 | 3.734375 | 4 | [] | no_license | #!/bin/bash
usage() {
echo "Usage:"
echo " prepareSql [-f] [-t]"
echo
echo "Arguments:"
echo " -f file"
echo " -t type"
}
main() {
echo "Start sql generation"
for line in $(tail -n +2 $INPUT | tr '\n\r' ' ');
do
export C_ID=$(echo $line | cut -d ',' -f 1);
export A_ID=$(echo $line | cut -d... | true |
8c6817143fa25b7c58fa8ed549db17bc0fb915f2 | Shell | alessio/dokku | /tests/unit/20_core_ports_1.bats | UTF-8 | 2,787 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bats
load test_helper
setup() {
[[ -f "$DOKKU_ROOT/VHOST" ]] && cp -f "$DOKKU_ROOT/VHOST" "$DOKKU_ROOT/VHOST.bak"
[[ -f "$DOKKU_ROOT/HOSTNAME" ]] && cp -f "$DOKKU_ROOT/HOSTNAME" "$DOKKU_ROOT/HOSTNAME.bak"
DOCKERFILE="$BATS_TMPDIR/Dockerfile"
}
teardown() {
destroy_app
[[ -f "$DOKKU_ROOT/VHOS... | true |
24c3902c84d800d25d72884ddae487c2675c5f41 | Shell | AImissq/puppy-no-sudo-bash | /no-sudo.sh | UTF-8 | 863 | 2.5625 | 3 | [] | no_license | #!/bin/bash
#developer - philip ackroyd
#Copyright (C) 2019 ackroydAI
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later versio... | true |
1a0124c818d12e560dea21883d04f74e3bfac3fb | Shell | matheuscscp/TG | /benchmark/scripts/check_batch_proofs | UTF-8 | 1,984 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
prover_res() {
grep Theorem prover_$$.out > /dev/null 2> /dev/null
if [ "$?" = "0" ]; then
return 0
else
grep CounterSatisfiable prover_$$.out > /dev/null 2> /dev/null
if [ "$?" = "0" ]; then
return 1
else
grep ResourceOut prover_$$.out > /dev/null 2> /dev/null
if [ ... | true |
51251495378b7ba4059e232bb2cf106ce305346a | Shell | FreifunkHochstift/ffho-salt-public | /icinga2/plugins/check_salt | UTF-8 | 613 | 3.53125 | 4 | [] | no_license | #!/bin/sh
# Check if state-file exists, otherwise exit with unknown
if [ ! -f /var/cache/salt/state_apply ] ; then echo "Statefile does not exist" ; exit 3 ; fi
# Check age of statefile. If it's older than 2 hours, exit with unknown
if [ $(($(date +%s) - $(date -r /var/cache/salt/state_apply +%s))) -gt 25200 ] ; then... | true |
51ff1d72f06cf8b9149a081e94aca1c4ba467884 | Shell | gawara/ruby-sample | /detach.sh | UTF-8 | 3,708 | 4.125 | 4 | [] | no_license | #!/bin/bash
#
# @(#) detach.sh ver.1.0.0 2015.08.01
#
# Usage:
# detach.sh param1
# param1 - インスタンスID
#
# Description:
# 引数で指定されたインスタンスIDのインスタンスを、AutoScalingGroupから切り離し、
# インスタンスを停止するスクリプト。
# 本スクリプトの実行には、下記ツールが必要。
# - jq
# jqインストールコマンド
# - sudo curl -o /usr/bin/jq http://stedolan.github.io/j... | true |
8ac5da148bbb9389996f560f6879c39e84c3f2e0 | Shell | yueyz818/webrtc-bin | /buildTarget.sh | UTF-8 | 8,070 | 3.609375 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
set -e
target=webrtc
platform=all
configuration=debug
architecture=all
merge=1
logLevel=2
################
target_webrtc=0
target_ortc=0
platform_iOS=0
platform_macOS=0
platform_linux=0
platform_android=0
configuration_Release=0
configuration_Debug=0
architecture_arm=0
architecture_armv7=0
architectur... | true |
bfa57e72211411fdf453299a9d01f5d2bd3985c0 | Shell | dkirrane/gf-test | /my-proj/setenv.sh | UTF-8 | 2,837 | 3.5 | 4 | [] | no_license | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export GITFLOW_VERSION="3.0"
export M2_HOME=C:/apache-maven-3.0.5
# export M2_HOME=C:/apache-maven-3.3.9
# Maven attach Debugger
# export MAVEN_OPTS="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
# Maven attach Ne... | true |
42e90a4e244e9772dd9cbdcdfd622da52f30a086 | Shell | vgerak/pazcal | /bin/pzcheck | UTF-8 | 400 | 3.046875 | 3 | [] | no_license | #!/bin/bash
while [ "$1" != "" ]; do
case "$1" in
-o)
shift
shift
;;
-*)
shift
;;
*)
cat "$1" \
| grep PROGRAM \
| sed 's/.*PROGRAM[ \t]*\([A-Za-z0-9_]*\).*/\1/' \
| sed '... | true |
215cfe042b2bba2e9015b37ad5c2d82bac1e5e81 | Shell | jamesoff/zsh | /local-plugins/starship/init.zsh | UTF-8 | 945 | 3.03125 | 3 | [] | no_license | launch_starship() {
local _latest_starship
local _starship_time
if [[ -x $HOME/src/starship/target/release/starship ]]; then
_latest_starship=$HOME/src/starship/target/release/starship
_starship_time=$( stat -f %m "$_latest_starship" )
fi
if [[ -x $HOME/src/starship/target/debug/starship ]]; then
if [[ -n ... | true |
a54d82c389a575689860d22584a531f0c88c2be8 | Shell | lasizoillo/docker-volume-nest | /resources/share/examples/zfs_local/path.sh | UTF-8 | 325 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/bash -eu
# Return path where volume should be mounted. Use stderr for errors and stdout to show path where file is mounted
declare base_mnt_dataset=${ZFS_BASE_MNT_DATASET:-/tank/docker-volumes}
declare volname=$1
declare mount_point="${base_mnt_dataset}/${volname}"
mountpoint -q ${mount_point} && echo ${mount_p... | true |
7bc70204add325b2f8c4d3d96047ff774060b4c9 | Shell | rohitsengar001/OS-Lab | /table.sh | UTF-8 | 134 | 3.328125 | 3 | [] | no_license | echo "enter the number "
read num
i=1
echo " "
while [ $i -lt 11 ]
do
tb=$(( $num * $i ))
echo "$tb "
i=$(( $i + 1 ))
done
| true |
0a5096270e2d7c04db64cf17ea6f57d0e411b6a2 | Shell | gsakkas/edsger-compiler | /edsger_compiler/check_installation.sh | UTF-8 | 677 | 3.34375 | 3 | [] | no_license | #!/bin/bash
TEST_PATH=./edsger_compiler/tests
echo "Checking installation..."
echo
for i in {1..4}
do
echo "Testcase $i out of 4:"
./edsc -O $TEST_PATH/test_$i.eds
./$TEST_PATH/test_$i > $TEST_PATH/test_temp_$i
if ( diff $TEST_PATH/test_temp_$i $TEST_PATH/test_output_$i > .__testing__) then
echo "OK!"
else
... | true |
709547cf24b47ee3b612aa5a3b0a242cd93d6e74 | Shell | Vectra130/vdr_eeebox_scripts | /.suspend2s3.sh | UTF-8 | 1,625 | 3.03125 | 3 | [] | no_license | #!/bin/bash
# v1.1 eeebox
. /etc/vectra130/configs/sysconfig/.sysconfig
#Suspend to ram vorbereiten
rm /tmp/.startsuspend-s3
touch /tmp/.s2ram_active
logger -t SUSPEND "System geht in Suspend"
#frontend beenden
killall -q -9 .frontend.sh
# Aufraeumen
echo "" > /var/log/debug
... | true |
d68a3b9dc5ed2cf8dbf27c0fbbd286e5e731ab9b | Shell | eyeskiller/fuck | /macos/.bash_aliases | UTF-8 | 77 | 2.59375 | 3 | [] | no_license | fuck(){
killall $2
echo "Fuck $1 $2 I am MAC!"
}
| true |
42289ce24dbe1b2af87d253bfc425bceb0ab717c | Shell | lynzh/scripts | /addr | UTF-8 | 167 | 2.90625 | 3 | [] | no_license | #!/bin/sh
#
first=''
second=''
third=''
fourth=''
echo "State the range of IP addr :"
read first, second, third, fourth
echo "ip addr: $first.$second.$third.$fourth"
| true |
6e693b993745f8a66cb3c340dc11ad5a20bfef9a | Shell | danX-4q/deploy-gerrit | /gerritAlp/setup-once.sh | UTF-8 | 942 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
function step_2 {
sed docker-compose.yaml -e 's/^#init\( entrypoint.*\)$/\1/g' > docker-compose--setup-only.yaml
docker-compose -f docker-compose--setup-only.yaml up gerrit && rm -rf docker-compose--setup-only.yaml
./modify-gerrit-conf.sh
#激动,终于试出,两次初始化,将数据库由h2迁移到postgres的效果
./delete-gerrit-data.s... | true |
9cbdf80f264a3f36aca40fc165dd083a209857f5 | Shell | kenjirofukuda/sandbox | /Tools/enable_arc.sh | UTF-8 | 309 | 3.671875 | 4 | [] | no_license | #!/bin/bash
target_dir="."
if [ $# -gt 0 ]; then
target_dir="$1"
fi
# echo "target_dir=${target_dir}"
if [ ! -d "$target_dir" ]; then
echo "not found: $target_dir"
exit 1
fi
find "$target_dir" -type f \( -name "GNUmakefile" -or -name "GNUmakefile.*" \) \
-exec "$(dirname $0)/_enable_arc.sh" {} \;
| true |
1c96173eae0282689dc867bddd59b156dbef463c | Shell | AEW2015/Vitis-AI | /tools/Vitis-AI-Quantizer/vai_q_pytorch/tools/format_code.sh | UTF-8 | 421 | 3.734375 | 4 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
yapf_format() {
yapf -i --style='{based_on_style: chromium, indent_width: 2, blank_lines_around_top_level_definition: 1}' $1
}
strip_trailing_ctrlm() {
sed -i "s/^M//" $1
}
for file in $(find "${SCRIPT_DIR}/.." -name *.py); do... | true |
ebed5ee6f6de4c326e86b03eb7a2f01b7dd03bbe | Shell | azinchen/duplicacy | /root/usr/bin/container-init-up-99-backupimmediately.sh | UTF-8 | 331 | 3.046875 | 3 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | #!/command/with-contenv bash
exitcode=0
if [[ $RUN_JOB_IMMEDIATELY == "yes" ]] || [[ $RUN_JOB_IMMEDIATELY == "YES" ]]; then
if [[ "${BACKUP_CRON}" ]]; then
backup.sh
exitcode=$?
fi
if [[ "${PRUNE_CRON}" ]] && [[ $exitcode -eq 0 ]]; then
prune.sh
exitcode=$?
fi
fi
exit... | true |
b61203a7b1746eeeab13ec319f1922ec753a5233 | Shell | hmrc/pension-administrator-frontend | /migrations/applied_migrations/BusinessType.sh | UTF-8 | 2,083 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo "Applying migration BusinessType"
echo "Adding routes to conf/register.routes"
echo "" >> ../conf/app.routes
echo "GET /businessType controllers.register.company.BusinessTypeController.onPageLoad(mode: Mode = NormalMode)" >> ../conf/register.routes
echo "POST /businessType... | true |
458ca96b3b215b53c97cd7777589cd8f9f347d4d | Shell | dirten/git-toolbelt | /git-assume | UTF-8 | 852 | 4.15625 | 4 | [] | no_license | #!/bin/sh
set -e
usage () {
echo "usage: git assume [-ah] <file> [<file> ...]" >&2
echo >&2
echo "Assume files to be unchanged, so they won't show up in status " >&2
echo "reports, and won't be included when staging files." >&2
echo >&2
echo "Options:" >&2
echo "-a Assume all locally mod... | true |
40a6b50012f6c9066058234b2399fff0b7d53761 | Shell | yanatan16/denvr | /dev-resources/test-app/start.sh | UTF-8 | 273 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [[ -e node_modules ]]; then
rm -rf node_modules
fi
if [[ -z $SYNC ]]; then
node $1
else
nodemon --exec 'cp package.json /data && cd /data && npm install' \
--watch package.json
nodemon $1 --watch . --watch /data/node_modules
fi
| true |
5e5d3246dfc732b6568eb8098205cf12539e8c50 | Shell | netj/selectmail | /src/keepmail.sh | UTF-8 | 5,937 | 3.96875 | 4 | [] | no_license | #!/usr/bin/env bash
Id="SelectMail $VERSION" # (http://netj.org/selectmail)
# KeepMail -- remove and extract messages from mailboxes
# Author: Jaeho Shin <netj@sparcs.org>
# Created: 2007-02-24
set -e
. "`dirname "$0"`/$EXEDIR"/common
keepmail() {
local mode=keep output= spread=
# process options
local o=... | true |
c2c3c5276c2b3df733ca596498d70371c6c3aebe | Shell | haiyaoxliu/btd5 | /tools/_log.sh | UTF-8 | 208 | 3.40625 | 3 | [] | no_license | #!/bin/bash
LOG=~/Github/btd5/tools/log
if [ ! -f $LOG ]; then
echo "[$now] ABORT: no log"
exit 1
else
for MSG in "$@"
do
now=$(date +"%T")
echo "[$now] $MSG" >> $LOG
done
fi
exit 1
| true |
5fdd1ce213bdd81472cafd4f2df43ac32a978923 | Shell | cul-it/drupal-scripts | /aegir_site_migrate.sh | UTF-8 | 7,558 | 3.75 | 4 | [] | no_license | #!/bin/bash
# aegir_site_migrate.sh - move a production site to an existing site in aegir
# based on https://omega8.cc/import-your-sites-to-aegir-in-8-easy-steps-109
# run this on test server
### svn:keyword $Date: 2014-03-31 16:51:59 -0400 (Mon, 31 Mar 2014) $
### svn:keyword $Author: jgr25 $
### svn:keyword $Rev: 226... | true |
dbc7e41b011618cfefe570d544893b907a02e124 | Shell | dselig11235/pentest-tools | /ssh_enum_algos.sh | UTF-8 | 1,291 | 3.375 | 3 | [] | no_license | #!/bin/bash
script=$(readlink -f "$0")
dir=$(dirname "$script")
. "$dir/target-functions.sh"
. "$dir/screenshot-functions.sh"
for t in `cat targets.ssh`
do
temp=`mktemp`
spool "$temp" nmap -Pn --script ssh2-enum-algos -p $(getport $t) $(gethost $t)
temp2=`mktemp`
"$dir/sshcolor.pl" "$temp.spl" | grep ... | true |
dc25dcc17acbacb0f4936183aa307c2838798701 | Shell | jankenshow/lfind | /install.sh | UTF-8 | 287 | 3.09375 | 3 | [] | no_license | #!/bin/bash
SCRIPT_DIR=$(cd $(dirname $0); pwd)
chmod -R 700 ./lfind
mv ${SCRIPT_DIR}/lfind ~/.local/bin
echo -n -e "\n" >> ~/.bashrc
echo "# add local commands to path" >> ~/.bashrc
echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.bashrc
source $HOME/.bashrc
rm -rf ${SCRIPT_DIR} | true |
be34d1a0fce8a4bd20a3dea389977124c7894d7e | Shell | codefinity/micro-continuum | /zipkin/wait-for.sh | UTF-8 | 636 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# wait-for.sh
set -e
shift
cmd="$@"
is_elasticsearch_server_on=false
until $is_elasticsearch_server_on ; do
sleep 20
if [ $(nc -z elasticsearch 9200 ; echo $?) -eq 0 ]
then
is_elasticsearch_server_on=true
echo "$(date) - Elasticsearch Connected"
else
echo "$(date) - Waiting fo... | true |
242daabcdb7fd87dfd49db8e13ed2afb4c47cb44 | Shell | gazingatnavel/ucf-spring2017-cis3360-program2-crcheck | /run-test-cases.sh | UTF-8 | 2,785 | 3.9375 | 4 | [] | no_license | #!/bin/bash
# Variable '$?' is the exit status of a command
# Test for C or Java program.
if [ -a "crcheck.c" ]; then
isC=1
elif [ -a "crcheck.java" ]; then
isC=0
else
echo "Unable to find source file crcheck.c or crcheck.java"
exit 1
fi
# Compile source into executable.
if [ $isC == 1 ]; then
#... | true |
6a882b3b444cf88886c1c2b0647460d51ca08abb | Shell | cwru-robotics/ariac-docker | /prepare_ariac_system.bash | UTF-8 | 453 | 3.71875 | 4 | [] | no_license | #!/bin/bash -x
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "Preparing the ARIAC competition setup"
ROS_DISTRO_TO_BUILD=${1}
if [[ -z ${ROS_DISTRO_TO_BUILD} ]]; then
echo " - No ROS distributions specified as first arg, assumming melodic"
sleep 3
ROS_DISTRO_TO_BUILD="melodic"
fi
${DIR}... | true |
6bd1b1f9dcaf41cf23e0ecb41728429fbb375b24 | Shell | rsnemmen/raspberry-pi-overclocking | /normal.sh | UTF-8 | 301 | 2.921875 | 3 | [] | no_license | #!/bin/sh
#
# Run this script to cancel the overclocking. This will return the
# raspberry pi to the standard settings and reboot the system.
#
# applying standard, factory settings
sudo cp ./config_std.txt /boot/config.txt
echo "Applied factory settings, now rebooting"
echo
# rebooting
sudo reboot | true |
a0ce5ddf6ee3ae5782386cafb36067b5447ef4bb | Shell | myurasov/NodeAppStrap | /dev/scripts/deploy-production.sh | UTF-8 | 959 | 3.40625 | 3 | [
"WTFPL"
] | permissive | #!/bin/bash
localRoot="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../.."
# config
serverUser=root
server=<server-name>
remoteRoot=<remote-root>
remoteUser=root
rsyncOptions="-avz --delete --exclude=.DS_Store --exclude=.git --exclude=data/ --exclude=_private/"
sshOptions="-i ${localRoot}/dev/scripts/production-... | true |
e91a286c419eceb4c6c29fab6263329411521a95 | Shell | aurelienmaury/prom-tmp | /templates/host.sh | UTF-8 | 1,068 | 3.265625 | 3 | [] | no_license | #!/bin/bash
HOSTNAMECTL=$(hostnamectl)
TEXTFILE_COLLECTOR_DIR=/var/lib/node_exporter/textfile_collector
PROM_FILE=$TEXTFILE_COLLECTOR_DIR/host.prom
TEMP_FILE=${PROM_FILE}.$$
mkdir -p $TEXTFILE_COLLECTOR_DIR
echo -n 'host{' > $TEMP_FILE
echo "$HOSTNAMECTL" | grep "Static hostname" | awk 'BEGIN {FS=": "};{printf "hos... | true |
3a9cd8998ac66ea393d5f66fb8c72ea85c066591 | Shell | NateWeiler/Resources | /Git/Clone/clone.bash | UTF-8 | 210 | 2.96875 | 3 | [] | no_license |
#!/bin/bash
echo What is the 'GitHub User '
read $GitHubUser
curl -s https://api.github.com/users/$GitHubUser/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone
| true |
6331399556f79d442e697cfdbaa79a56ac25d51b | Shell | acupt/amazing | /deploy.sh | UTF-8 | 254 | 2.65625 | 3 | [] | no_license | #!/bin/bash
git pull
if [ $? -ne 0 ]; then
echo "pull failed"
exit 2;
fi
mvn clean package -Dmaven.test.skip=true
if [ $? -ne 0 ]; then
echo "package failed"
exit 2;
fi
nohup java -jar target/amazing-1.0-SNAPSHOT.jar >/dev/null 2>&1 &
echo "finish"
| true |
94e31f170e822d0cfa36d13146200680bb51856d | Shell | vKnmnn/dotfiles | /.bashrc | UTF-8 | 6,057 | 3.3125 | 3 | [] | no_license | #
# ~/.bashrc
#
[[ $- != *i* ]] && return
export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/opt/android-sdk/platform-tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/VSCode-linux-x64/bin
export GIT_PROMPT_ONLY_IN_REPO=1
export HISTCONTROL="ignoredups:erasedups"
exp... | true |
356af4a5c9fa8fbf60c0995f0f516cf0b6f26862 | Shell | jperocho/a-vagrant-scripts | /initsite | UTF-8 | 1,041 | 2.859375 | 3 | [] | no_license | #!/usr/bin/env sh
SITENAME=$1
cat > /etc/nginx/conf.d/${SITENAME}.dev.box.conf <<EOF
server {
listen 80;
listen [::]:80;
server_name ${SITENAME}.dev.box;
root /vagrant/www/${SITENAME};
index index.php index.html index.htm;
location / {
try_files \$uri \$uri/ /inde... | true |
9e3d0c52026e8bb2928b851706c45f49ae722e62 | Shell | maximbaz/connman_dmenu | /connman_dmenu | UTF-8 | 1,814 | 4.0625 | 4 | [] | no_license | #!/bin/bash
readonly STORAGE_PATH=/var/lib/connman
readonly SCAN_RESULT=$(mktemp) || exit
trap 'rm -f $SCAN_RESULT' EXIT
[[ "$1" == "scan" ]] && scan=1 || scan=0
get_services() {
connmanctl enable wifi &>/dev/null
(( scan )) && timeout 5 connmanctl scan wifi &>/dev/null
connmanctl services | cut -c 5- | ... | true |
4e542671e6dfe20ccdf6610284083fbac3710455 | Shell | particleman314/ShellLibrary | /lib/newscriptgen.sh | UTF-8 | 7,858 | 3.625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
###############################################################################
# Copyright (c) 2016. All rights reserved.
# Mike Klusman IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
# COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
# ONE POSSIBLE IMPLEMENTATIO... | true |
95c3cd143d706096fa3f55ceeab69f65b93c54d6 | Shell | IBMStreams/streamsx.sttgateway | /tests/frameworktests/tests/StreamsxSttgateway/Translation/TestSuite.sh | UTF-8 | 413 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #--variantList='de_DE fr_FR it_IT es_ES pt_BR ja_JP zh_CN zh_TW en_US'
##--variantList='en_US'
# must set cat default for all suites to be ignored in quick test run
if [[ $TTRO_variantSuite == 'en_US' || $TTRO_variantSuite == 'de_DE' ]]; then
setCategory 'quick'
else
setCategory 'default'
fi
function testPreparatio... | true |
24b71973eb910d94cf992e9da5fe0a17ae886996 | Shell | acoret/zdcclient | /PKGBUILD | UTF-8 | 709 | 2.53125 | 3 | [] | no_license | pkgname='zdcclient'
pkgver='1.6'
pkgrel=1
pkgdesc="Nettool for school in china,Connect x802.1fixed"
url="git+https://github.com/isombyt/zdcclient.git"
arch=('x86_64' 'i386')
license=('GPL')
source=($pkgname::git://github.com/acoret/zdcclient.git)
gitsource=($pkgname::https://github.com/acoret/zdcclient.git)
makedepends... | true |
efd2704dd09f1bd138aa659779ffc05cf372ff7e | Shell | TheStrix/dotfiles | /aliases | UTF-8 | 5,785 | 3.1875 | 3 | [] | no_license | #!/usr/bin/env bash
# Custom exports
if [[ "$(mount | grep work)" ]]; then
export C_WORKDIR="/work";
export C_ANDROIDWORKDIR="/work/Android";
else
export C_ANDROIDWORKDIR="${HOME}";
fi
export C_ANDROIDTOOLSDIR="${C_ANDROIDWORKDIR}/tools";
export C_LINEAGEDIR="${C_ANDROIDWORKDIR}/lineage";
export C_PADIR="$... | true |
76ce0e6566c85104e4100f09d825299851502a35 | Shell | davehenton/dg | /helper.sh | UTF-8 | 3,791 | 3.984375 | 4 | [
"Apache-2.0"
] | permissive | #! /bin/bash
# shellcheck disable=SC2034
set -e
# Echo an error message before exiting
err_report() {
echo "$(tput setaf 1)optimize: error on line $1$(tput sgr0)"
}
trap 'err_report $LINENO' ERR
# --------------------------
# CONSTANTS
# --------------------------
BEGINNING_OF_LINE="\\r"
ERASE="$BEGINNING_OF_LINE... | true |
fb4f9ce0797768bb17f8d41521101e04b7d08793 | Shell | ReconCell/smacha | /smacha_ros/doc/build_locally_docker.sh | UTF-8 | 1,606 | 3.984375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#===============================================================================
# RECONCELL DOCUMENTATION LOCAL DOCKER BUILD SCRIPT
#
# This script will build the current package documentation locally by running
# the ReconCell documentation build script in a local ROS Kinetic docker image.
# This method ... | true |
89cfd4ea279c18d5ae2efae36253efa71f0692cf | Shell | phoenix110/macchinetta-web-multi-blank-thymeleaf | /change-infra.sh | UTF-8 | 432 | 3.328125 | 3 | [] | no_license | #!/bin/sh
MODE=$1
KEYWORD="REMOVE THIS LINE IF YOU USE $1"
TARGET="projectName-*"
DIRNAME=`echo $MODE | tr "[:upper:]" "[:lower:]"`
echo "change to $MODE"
rm -rf tmp
mkdir tmp
cp -r infra/$DIRNAME/* tmp/
rm -rf `/usr/bin/find tmp -name '.svn' -type d `
echo "copy infra/$DIRNAME"
#cp -rf tmp/* src/main/... | true |
2b28b35d5a6f5e05f035ea224b4f5e225238d14e | Shell | katsyoshi/dotfiles | /system/gentoo/post.inst.d.efi | UTF-8 | 256 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ ! -d /boot/efi ]; then
exit 0
fi
if ! mountpoint /boot/efi > /dev/null; then
mount /boot/efi
fi
if [ ! -d /boot/efi/efi/boot ]; then
mkdir -p /boot/efi/efi/boot
fi
dracut --hostonly --kver $1
grub-mkconfig -o /boot/grub/grub.cfg
| true |
fa299bd7a07e05479541b7f698bc5e1ecb7ae23c | Shell | Hsuing/shelll_script | /shell/ssl/gen_ssl_certs.sh | UTF-8 | 1,509 | 3.390625 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
ROOT_DOMAIN=$1
SYS_DOMAIN=sys.$ROOT_DOMAIN
APPS_DOMAIN=apps.$ROOT_DOMAIN
DOMAIN_DIR="${ROOT_DOMAIN}_cert"
SSL_FILE=sslconf-${ROOT_DOMAIN}.conf
[ ! -d "${DOMAIN_DIR}" ] && mkdir "${DOMAIN_DIR}"
cd "${DOMAIN_DIR}"
#Generate SSL Config with SANs
if [ ! -f $SSL_FILE ]; then
cat > $SSL_FILE... | true |
806510b8ddbef83212899646916ff87792616882 | Shell | kstenschke/tictac-track | /test.sh | UTF-8 | 2,558 | 3.078125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
########################################################################################################################
# Run functional tests written with bats - https://github.com/sstephenson/bats #
# ... | true |
3f2ac2427f81e9e2a5efc1a4580a1c4d4bffecae | Shell | chipmanc/AdminScripts | /vhostCreator.sh | UTF-8 | 1,312 | 3.625 | 4 | [] | no_license | #!/bin/bash
if [ $# != 1 ]
then
echo "Command Syntax:"
echo "./vhostCreator.sh domainname"
else
DOMAIN=$1
if [ -e /etc/redhat-release ]; then
export distro="RHEL"
elif [ "$(lsb_release -d | awk '{print $2}')" == "Ubuntu" ]; then
export distro="Ubuntu"
fi
if [ $distro == "RHEL" ]; then
cat > /etc/httpd/vhost... | true |
1f273b857ccdee8bb12de845631143cf177be355 | Shell | Brayyy/ecs-spot-watch | /spotWatch.sh | UTF-8 | 1,800 | 3.8125 | 4 | [] | no_license | #!/bin/bash
# If EC2 is not spot, sleep forever or exit immediately
if [ "$(curl -s http://169.254.169.254/latest/meta-data/instance-life-cycle)" == "normal" ]; then
if [ "$EXIT_IF_NOT_SPOT" == "true" ]; then
echo "$(date +%s) - instance-life-cycle: normal, exiting"
exit 0
fi
echo "$(date +%s) - instance... | true |
31c56e97be71f825f414e5dc55fba2e80e36eedf | Shell | hectorhmx/Linux-2020 | /Intermedio/Miercoles/while.sh | UTF-8 | 150 | 2.90625 | 3 | [] | no_license | #!/bin/bash
function whil
{
contador=0
while [ $contador -lt 10 ]; do
echo "El contador es $contador"
let contador=contador+1
done
}
whil
| true |
711c0d1af3d64c3b1321aa89989f03d7f98ca8d6 | Shell | sinoe9891/ejercicios_bash | /tarea-case/tarea-case.sh | UTF-8 | 2,866 | 3.953125 | 4 | [] | no_license | #!/bin/bash
#Danny Sinoé Velasquez
echo "Escriba su nombre"
read nombre
echo "******** Bienvenido $nombre *********"
echo "Al sistema de operaciones aritméticas"
echo "*************************************"
m=0
num1=$1
num2=$2
num3=$3
DIA=`date +"%d/%m/%Y"`
HORA=`date +"%H:%M"`
echo "Hoy es el $DIA y la hora de ingres... | true |
a72763ab18d511c6fcc6dd6626fcd2ff3a5187ec | Shell | zencircle/spark-build | /scale-tests/declare_kafka_cluster_count.sh | UTF-8 | 362 | 3.34375 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
if [[ $1 != ${1//[^0-9]/} || $1 == 0 ]]; then
echo "First argument must be a positive integer." >&2
exit 1
fi
value="$1"
shift
exec "$(dirname "$0")"/push_metric.sh \
--metric-name "set_kafka_or_zk_cluster_count" \
--metric-description "Expected number of kafka and zookeeper clusters... | true |
1c08b0c0a1c70d03dc00f26c89f4c5e834c4a162 | Shell | lakhanp1/omics_utils | /RNAseq_scripts/pipeline_RNAseq.sh | UTF-8 | 3,724 | 4.1875 | 4 | [] | no_license | #!/bin/bash
## RNAseq pipeline script: hisat2 maping -> samtools indexing -> stringtie
set -e
set -u
set -o pipefail
##----------------------------------------------------------------
## argument parsing
usage="
Usage: bash RNAseq_process.sh -i /path/to/HiSAT2/index -g /path/to/annotation.gtf -c sampleInfo.tab
-c, -... | true |
8eb04811275e40576fbf840c0931d2931de76b70 | Shell | jidongdeatao/LinuxTest | /FirstVersion/vmSecureScan/config/script/Container_sudoers.sh | UTF-8 | 333 | 2.859375 | 3 | [] | no_license | images=(`docker ps |egrep -v "pause|CONTAINER" |awk '{print $2}'`)
docker=(`docker ps |egrep -v "pause|CONTAINER" |awk '{print $1}'`)
i=0
len=${#docker[@]}
while(($i<$len))
do
echo "############### ${docker[$i]} ${images[$i]}"
docker exec -u 0 ${docker[$i]} cat /etc/sudoers |egrep -v "^#|^Defaults|^$"
echo ""
i=$(... | true |
c643985c17dd8efbe9d632932c06104705e1e058 | Shell | takahiro-itou/CygwinSettings | /Bash/CorrectGitCommiter.sh | UTF-8 | 1,432 | 3.71875 | 4 | [] | no_license | #! /bin/bash -ue
targetHash='FALSE'
targetDate='FALSE'
commitSign='FALSE'
while [ $# -gt 0 ] ; do
case $1 in
-c) targetHash="$2" ; shift 2 ;;
-d) targetDate="$2" ; shift 2 ;;
-s) commitSign='TRUE' ; shift 1 ;;
--) shift 1; break;;
esac
done
if [ $# -gt 0 ] ; then
targetCommits=$1
... | true |
ca90659ad516cba05899c58b5ca9bade56be2d0d | Shell | sharyanto/scripts | /.old/downloads/wget-merck-manual-method2 | UTF-8 | 374 | 2.8125 | 3 | [] | no_license | #!/bin/bash
# pertama ambil dulu merck.com-nya
wgetr www.merck.com/mrkshared/mmanual/sections.jsp
# lalu ekstrak url akamainya, baru ambil terpisah
perl -MFile::Find -e'$/=undef;
find sub {return unless -f;return unless /\.(jsp|html)/;
open F,$_; $x=<F>;
print "$1\n" while ($x=~m#(http://\S+?akamai\S+?)["\s]#g)... | true |
5bcc8a2ebdbe73bce8e632bbb73b5c6f95ed51b9 | Shell | fenggaoyao/crontab-ui | /hook.sh | UTF-8 | 895 | 2.84375 | 3 | [
"MIT"
] | permissive | #! /bin/sh
repo_full_name=$1
tag=$2
Url="registry.cn-hangzhou.aliyuncs.com/${repo_full_name}:${tag}"
ssh root@106.53.76.57 << eeooff
#set -x
# sh hook.sh cloudsu/crontab-ui 2.1.6
function crontab(){
id=\$(docker ps | grep 'dollymi' | awk '{print \$1}')
if [ -z "\$id" ]; then
docker run -d --name dollymi -p 7000:80 ${... | true |
7851cf9b6cf7da228676180b31f456e940c2f040 | Shell | typoworx-de/linux-snipplets | /bin/toggle-touchpad | UTF-8 | 702 | 3.6875 | 4 | [] | no_license | #!/bin/bash
declare -i ID
declare -i STATE
#
# Search all TouchPad devices if there are more than one
# Attention may be some kind of exclude-list may be required (is on my ToDo)
#
for DEVICE in $(xinput list | grep -Eio 'TouchPad\s*id\=[0-9]{1,2}');
do
ID=$(echo $DEVICE | grep -Eo '[0-9]{1,2}');
if [[ -z $ID ||... | true |
8e499bd44af9cabc81521c217a50398b2ec03d48 | Shell | MarcelGehrig2/wiki | /linux/scripts/inUse/runAtBoot.sh | UTF-8 | 606 | 3.046875 | 3 | [] | no_license | #!/bin/bash
[[ $_ != $0 ]] && script_is_sourced=true || script_is_sourced=false
if [ $script_is_sourced ]; then
SCRIPT_PATH=$BASH_SOURCE
else
SCRIPT_PATH="$(readlink -f $0)"
fi
SCRIPT_DIR="$(dirname $SCRIPT_PATH)"
SCRIPT_NAME=$(basename $SCRIPT_PATH)
touch /tmp/runAsBoot
touch ~/runAsBoot
#/home/mgehrig2/wi... | true |
32da92340c3df509ce719ef0f393834f14bd5e91 | Shell | leolanavo/LanArchInstall | /arch_install.sh | UTF-8 | 1,031 | 3.46875 | 3 | [] | no_license | #!/bin/bash
# ARGUMENTS:
user=$1 # $1 --> your user
driver=$2 # $2 --> the flag for the system specific drivers
host=$3 # $3 --> your hostname
# Setting up locale
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
echo "pt_BR.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
# Set... | true |
39fae21afa47dcb64704beab84df8d523fc02503 | Shell | AWGL/SomaticEnrichment | /SomaticEnrichmentLib-1.4.0/compileQcReport.sh | UTF-8 | 4,072 | 3.234375 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
# Christopher Medway AWMGS
# compiles a file of useful QC metrics from the multitude of PICARD metrics
seqId=$1
panel=$2
# loop through each sample and make QC file
for sampleId in $(cat ../sampleVCFs.txt); do
dir=/data/results/$seqId/$panel/$sampleId
if [ -e $dir/"$seqId"_"$... | true |
cb5ac840080b24afd84324731ceebf25650e34ec | Shell | skymix/koboh20_nightmode | /.adds/nightmode/nightmode.sh | UTF-8 | 2,324 | 3.09375 | 3 | [] | no_license | #! /bin/sh
#by skymix.es@gmail.com
#
#Working on H2O Kobo Ebook Edition 2 Version 2 Mark 7
#Need Kfmon installed and working
#
#Required!
#You need to add to .kobo/Kobo/Kobo eReader.conf the next section:
#[FeatureSettings]
#InvertScreen=true
#This extra section enable the inverse mode (black and white text) on the nex... | true |
6b777599d87c944e092b6de15c81d4cbd4c9b73f | Shell | olivierdalang/SPCgeonode | /docker-entrypoint.sh | UTF-8 | 476 | 2.953125 | 3 | [] | no_license | #!/bin/sh
# Exit script in case of error
set -e
echo $"\n\n\n"
echo "-----------------------------------------------------"
echo "STARTING DJANGO ENTRYPOINT --------------------------"
date
# Run migrations
echo 'Running initialize.py...'
python -u initialize.py
echo "-----------------------------------------------... | true |
f802c043be2e79eb4d6f43b6cf2a13d43d47aa12 | Shell | t0mac0/Embedded-Linux-System | /MX233/gists/BCB-to-SD-card.sh | UTF-8 | 743 | 3.4375 | 3 | [] | no_license | echo "Remove old files"
rm bcb
rm bcb_512.cfg
rm bcb_sdcard_part.old
rm bcb_sdcard_part.readback
echo "Compiling bcb tool"
gcc bcb.c -o bcb
echo "Running bcb tool"
./bcb
echo "Saving old partition contents to bcb_sdcard_part.old"
dd if=/dev/sdb3 of=bcb_sdcard_part.old
echo "============= Contents of ->OLD<- BCD ===... | true |
d087968d62e8d18d87a77a7848aacc3c81ed75ac | Shell | pertruccio/postfix-tls-policy | /convert_list_to_sql.sh | UTF-8 | 899 | 3.9375 | 4 | [] | no_license | #!/bin/bash
tempfoo="sqlimport"
# Let's try mktemp for output, if creation fails -> Exit with Errorcode 1
TMPFILE=`mktemp /tmp/${tempfoo}.XXXXXX` || ERROR=true
if [[ $ERROR ]]; then
echo "ERROR: while creation of temp file!"
exit 1
fi
# delete all lines in existing table, they are probably old
echo "TRUNCATE TABLE ... | true |
0f50017fc69d3202f670ae985ddc8abbbe7e45d3 | Shell | infortrend-openstack/ubuntu-kilo-multinode | /install-network-node.sh | UTF-8 | 2,562 | 3.140625 | 3 | [] | no_license | #!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
PASSWORD=111111
CONFIG_DIR=network
source networkrc
echo "Start to Install Neutron"
sleep 3
cp /etc/sysctl.conf /etc/sysctl.conf~
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.rp_filter=... | true |
bbaedfcebefff63f5142f2f50f16ce527c93cea0 | Shell | hyb8892208/wire | /my_tools/sh/gpio_ctl/gpio_remove.sh | UTF-8 | 304 | 3.328125 | 3 | [] | no_license | ## stop gpio work
#!/bin/sh
gpio_reset_port=105
gpio_run_port=111
gpio_path=/sys/class/gpio
stop_gpio()
{
echo ${gpio_reset_port} > ${gpio_path}/unexport
echo ${gpio_run_port} > ${gpio_path}/unexport
}
if [ ! -e /sys/class/gpio/export ]; then
echo no export file exist!
exit
fi
stop_gpio
exit 0
| true |
398693ae516965c83a9702f6a58abf44e1c6087f | Shell | ted92/3203-assignment1 | /WordCount/script_wc.sh | UTF-8 | 3,639 | 3.734375 | 4 | [] | no_license | #!bin/bash
# Enrico Tedeschi - ete011
# INF - 3203 Advanced Distributed Systems
# Assignment 1
# Word count script.
# 1) Menu to run Word Count with different input
# 2) Possibility to choose the number of reduce tasks
# 3) generate a pdf with a graph showing the performance using gnuplot
#function execution
functi... | true |
45b1290895f79df821f1d7785ccfdf090e556e2c | Shell | zhixingfeng/shell | /sam2fq | UTF-8 | 296 | 3.1875 | 3 | [] | no_license | #!/bin/bash
if [ $# -ne 3 ]; then
echo "USAGE: sam2fq samfile fqfile nthread"
exit 0
fi
samfile=$1
fqfile=$2
nthread=$3
samtools view -F 2304 --threads $nthread $samfile | awk -F "\t" '{
if (length($10) > 1 && $10 != "*"){
print "@"$1; print $10; print "+"$1; print $11
}
}' > $fqfile
| true |
1eef87290fcf39193045191b25866012721dc74d | Shell | huggergit/Linuxscripts | /tennis/source/tennisGame.sh | UTF-8 | 656 | 3.359375 | 3 | [] | no_license | #! /usr/bin/env bash
### tennisGame.sh ###
source ./functions.sh
playersLine=`head -n 1 $1`
echo "$playersLine"
firstPlayer=`getFirstPlayerFrom "$playersLine"`
secondPlayer=`getSecondPlayerFrom "$playersLine"`
wholeScoreFileContent=`cat $1`
totalNoOfLines=`echo "$wholeScoreFileContent" | wc -l`
for currentLine i... | true |
cdae264747f54079e5cf0dc1c3ec3f858f7bb253 | Shell | bthakur/benchmarks | /mpi/run_symmetric/dapltest/run_dapltest.sh | UTF-8 | 1,791 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Base parameters for launching server
servertest0="dapltest -T S -d -D ofa-v2-ib0"
servertest1="dapltest -T S -d -D ofa-v2-mlx4_0-1s"
parameterT="-i 1000 client SR 409600 1 server SR 409600 1"
parameterP="-i 1000 RW 409600 2"
if [ '1'=='1' ]; then
server="smic005h"
clients="smic006h"
clie... | true |
11bf59ef66282966bcc15bbd08e0d96b3994fe99 | Shell | knoxknox/dev-labs | /docker/infra/nginx/certs.sh | UTF-8 | 787 | 3.171875 | 3 | [] | no_license | #!/bin/bash
path="$(dirname $0)/certs"
##
# Root Certificate Authority
#
echo 'Generate root private key'
openssl genrsa -out "$path/ca.key" 4096
echo 'Generate root certificate'
subject="/C=US/O=Development/CN=local"
openssl req -new -x509 -sha256 -days 3650 -subj $subject -key "$path/ca.key" -out "$path/ca.pem"
#... | true |
301b37cfcab683ac0699b88fbccd05a23f8101eb | Shell | cmstas/MT2Analysis | /limits/batchsubmit/wrapper.sh | UTF-8 | 1,244 | 2.65625 | 3 | [] | no_license | #!/bin/bash
echo "host: "
hostname
HOME=`pwd`
#This stuff to get it to run
export CMS_PATH=/cvmfs/cms.cern.ch
export SCRAM_ARCH=slc6_amd64_gcc481
source /cvmfs/cms.cern.ch/cmsset_default.sh
source /cvmfs/cms.cern.ch/slc6_amd64_gcc481/lcg/root/5.34.18/bin/thisroot.sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
export ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.