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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8e919562ccd93e3204abf4c439b3ee51d29468a9 | Shell | squ1rr3lly/.dotfiles | /zsh/configs/history.zsh | UTF-8 | 784 | 2.625 | 3 | [] | no_license | # History File Settings
HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history # Save ZSH History after exit
setopt EXTENDED_HISTORY # More data in hist file (timestamp, elapsed time)
SAVEHIST=5000 # How many lines to save in hist file
HISTSIZE=2000 # How many lines to remember in current session
setopt SHARE_HISTORY # Share hist fil... | true |
f195041e77d0210bf84cb6004f7a523ea9aa9a8d | Shell | CermakM/mnist-from-scratch | /RUN | UTF-8 | 992 | 2.578125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# ---
# COMPILATION
# ---
tput bold; tput setaf 2; echo -e "\nConfiguration\n"; tput sgr0;
cmake .
tput bold; tput setaf 2; echo -e "\nBuild.\n"; tput sgr0;
cmake --build . --target all
# ---
# TRAINING
# ---
tput bold; tput setaf 2; echo -e "\nTraining\n"; tput sgr0;
export CONTINUE_TRAINING=0
e... | true |
07973f77b562748abe4e50a6b48c1a071a4bcae1 | Shell | iambenmitchell/obs-installer-for-apple-silicon | /template/cmake/osxbundle/fixup_bundle.sh | UTF-8 | 1,070 | 3.640625 | 4 | [] | no_license | #!/bin/bash
if [ "$#" != 2 ]; then
echo "usage: $0 /path/to/install/root relative/lib/destination"
exit 1
fi
cd "$1"
function buildlist() {
otool -L "$@" |
grep -E '^\s+/' |
grep -vE '^\s+/System/' |
grep -vE '^\s+/usr/lib/' |
perl -pe 's|^\s+(/.*)\s\(.*$|$1|' |
grep -vE ":$" |
sort -u
... | true |
c0e8c87db8d2c034b0419d740502a7fd6eee5ff8 | Shell | entrealist/crypton | /ops/bash/src/crypto.sh | UTF-8 | 716 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
function encrypt-signing-properties() {
local signingProperties="$CRYPTON_ROOT/signing.properties"
gpg --symmetric \
--batch \
--yes \
--cipher-algo AES256 \
--passphrase="$1" \
"$signingProperties"
mv "$signingProperties.gpg" "$CRYPTON_ROOT/ops/data/"
}
function decrypt-signin... | true |
4bb10bf2c3264023c8352f4baa15fee3d8b21cac | Shell | infynyxx/django_nginx_gunicorn_supervisor | /nginx_init.d | UTF-8 | 1,284 | 3.796875 | 4 | [] | no_license | #!/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
CONFIG_FILE=/etc/nginx/nginx.conf
DAEMON=/usr/local/sbin/nginx
DAEMON_OPTS="-c $CONFIG_FILE"
NAME="nginx"
DESC="Nginx Web Server"
PIDFILE=/var/run/nginx.pid
SCRIPTNAME=/etc/init.d/$NAME
#only run if binary can be found
test -x $DAEMON || exi... | true |
d47f16fb3fb76f6f5f4879c8cf152ffe87a8ed4e | Shell | malus-security/ioracle | /query_testing/scripts/evaluateAnswer.sh | UTF-8 | 898 | 4.21875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#this script compares the output of a query to the expected answer for a given test.
#If the test passes, then the output is "PASSED: $testName"
#If the test fails, then the output is "FAILED: $testName" followed by a diff of the respective output and answer files.
if test $# -ne 3; then
echo "Usage: $0... | true |
ed5df046db78700be9ce17f35f5c74e35e0c4c3a | Shell | MartynDavis/utilities | /Shell/wget | UTF-8 | 259 | 3.75 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ -z "$1" ]; then
echo "usage: $0 URL"
exit 1
fi
echo "Downloading '$1' saving it as '${1##*/}'..."
curl "$1" -o "${1##*/}"
if [ $? -ne 0 ]; then
echo
echo "FAIL: 'curl \"$1\" -o \"${1##*/}\"' failed"
echo
exit 1
fi
| true |
155608a24dcdbb07aa7ad79effd63db54d1b8e06 | Shell | keizer619/DependencyManager | /resolver/src/main/resources/pullGit.sh | UTF-8 | 542 | 3.46875 | 3 | [] | no_license | OUTPUT_PATH="/Users/tharik/Desktop/git/rep"
EXCEL_PATH="/Users/tharik/Desktop/git/WSO2BuildStablization2015Plan.csv"
KEY_WORD="github.com"
cat $EXCEL_PATH | while read line
do
let COUNT=COUNT+1
#Get repository URL from CSV line
REPO_URL=$(echo $line | cut -d, -f2)
#Checks if it is a github url
if [[ $REPO_URL == ... | true |
cd5cd8c05065d58307e7d36177e3cab4982d8a71 | Shell | wazuh/wazuh-cloudformation | /production/deploy.sh | UTF-8 | 1,206 | 3.734375 | 4 | [] | no_license | # Deploy a CloudFormation Wazuh stack
#!/bin/bash
# Path of the parameters JSON file
PARAMS_FILE='./parameters.json'
# Path of the template file
TEMPLATE_FILE='./wazuh_template.yml'
# Stack name
STACK_NAME='<cloudformation-stack-name>'
# Bucket name
BUCKET_NAME='<S3-bucket-name>'
# AWS Region
REGION='<region>'
#... | true |
f7eb34a3bb2cf0be30f939a2128121cd960211f8 | Shell | ragu-manjegowda/text-finder | /run.sh | UTF-8 | 2,971 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# halt script on error
set -e
################################################################################
#################### For MacOS #################################################
################################################################################
if [ "$(uname)" == "Darwin" ]; the... | true |
07cfbaa9adbc75585f5ac89c1ad1e92f72a716aa | Shell | xm4dn355x/terra_colab | /scripts/tc-init | UTF-8 | 1,404 | 3.890625 | 4 | [] | no_license | #!/usr/bin/env bash
TERRA_PREFIX=""
TERRA_GUI_BRANCH=""
red=$(tput setaf 1)
green=$(tput setaf 2)
reset=$(tput sgr0)
while [[ "$#" -gt 0 ]]; do
case $1 in
-b|--branch) TERRA_GUI_BRANCH="--branch $2"; shift ;;
-e|--env) TERRA_PREFIX="$2."; shift ;;
*) echo "${red}ERROR: unknown parameter \... | true |
b6e1744fb13feee9332fba0d25328dea9a66c533 | Shell | Bhanu88/Nginx_kube_terra_ansible | /AWS/userdata.sh | UTF-8 | 1,654 | 3.125 | 3 | [] | no_license | #!/usr/bin/env bash
if [ "$(. /etc/os-release; echo $NAME)" = "Ubuntu" ]; then
apt-get update
apt-get -y install curl python-minimal python-simplejson
sudo cp /home/ubuntu/.ssh/authorized_keys /root/.ssh
#apt-get -y install figlet docker.io git apt-transport-https curl python-minimal python-simplejson
... | true |
0b7392b02302532d0c9eafc946aada870e2e31e0 | Shell | ftakao2007/work | /build/dhealth/digitalocean_centos8_dhealth.sh | UTF-8 | 553 | 2.75 | 3 | [] | no_license | #!/bin/sh
user=centos
yourdlt_version="1.2.1"
symbol_cli_version="1.0.0"
#key=
#address=
. ./setup_params_dhealth
# test
#ssh -i ~/.ssh/${key} ${user}@${address}
#exit
# 基本的なソフトウェアのインストール
#./digitalocean_centos8_dhealth_base.sh $key $address $user $yourdlt_version $symbol_cli_version
# yourdltの設定と起動
./digitalocean... | true |
475533d06c55919da5086b17126d9c60feb09ee0 | Shell | khdlr/PKGBUILDS | /minimetro/PKGBUILD | UTF-8 | 1,943 | 2.90625 | 3 | [] | no_license | # Maintainer: XZS <d dot f dot fischer at web dot de>
# Contributor: Martin Lukes <martin.meridius@gmail.com>
# Contributor: Samuel Littley <samuel.littley@toastwaffle.com>
# Contributor: William Giokas <1007380@gmail.com>
# Contributor: Konrad Heidler <k.heidler@tum.de>
_longname="Mini Metro"
pkgname="${_longname,,}"... | true |
669e47c68b55898624850a39ccbfc1faa7bab77d | Shell | hqh546020152/check_system_resource | /save/system_check.sh | UTF-8 | 665 | 2.625 | 3 | [] | no_license | #!/bin/bash
DIVIDE(){ echo "---------------------------"
}
#CPU=`cat /proc/cpuinfo |grep "processor"|wc -l`
#MEMORY=`free -mh |grep Mem |awk '{print $2}'`
echo "配置为
`cat /proc/cpuinfo |grep "processor"|wc -l`核 `free -mh |grep Mem |awk '{print $2}'`" && DIVIDE
uptime && DIVIDE
dmesg -V &> /dev/null && dmesg |tail -1... | true |
af183dbf29205156ff854ea40bf235d42b83efbf | Shell | ryanbomo/swe5415 | /assignment_1/scripts/offline_tests/offline_test.sh | UTF-8 | 117 | 2.734375 | 3 | [] | no_license | #! /bin/bash
if [ -z "$1" ]
then
echo "No function specified"
exit 1
fi
./test_params.sh | ../../build/$1
| true |
f523a30a186f8d83faabc137c484a14dfd32a34a | Shell | ledup/nginx | /stable/scripts/run.sh | UTF-8 | 568 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/env bash
if [ -n "${LED_DOCROOT}" ]; then
sed -i "s#root /src;#root /src/${LED_DOCROOT};#" /etc/nginx/conf.d/default.conf
fi
# override default controller in FastCGI configuration
if [ -n "${REDIRECT_CONTROLLER}" ]; then
sed -i "s#index.php#${REDIRECT_CONTROLLER}#" /etc/nginx/snippets/phpfpm.conf
fi
if [ ... | true |
d6d106a15e8d1c0286f8d0af461a505551335bd3 | Shell | Alpus/text | /oss_scripts/kokoro/macos/release.sh | UTF-8 | 2,084 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e # fail and exit on any command erroring
set -x # print evaluated commands
PY_VERSION=${1}
# cd into the release branch in kokoro
cd "${KOKORO_ARTIFACTS_DIR}"/github/tensorflow_text/
# Checkout the release branch if specified.
git checkout -f "${RELEASE_BRANCH:-master}"
# Breakout for alternativ... | true |
a7926c124d09bd3602d103f266bfa8f5ccc5e0da | Shell | djmonta/dotfiles | /etc/init/osx/30-install_required.sh | UTF-8 | 946 | 3.78125 | 4 | [] | no_license | #!/bin/bash
trap 'echo Error: $0: stopped' ERR
set -u
set -e
if ! type brew >/dev/null 2>&1; then
echo 'Requirement: brew' 1>&2
exit 1
fi
echo 'brew updating...'
brew update
outdated=$(brew outdated)
if [ -n "$outdated" ]; then
echo 'The following package(s) will upgrade.'
echo ''
echo "$outdat... | true |
a28e894b56d3fc899467b25173bba8e797caa3ec | Shell | jenkins-infra/infra-mirror | /run.sh | UTF-8 | 1,923 | 3.28125 | 3 | [] | no_license | #!/bin/bash
HOST=osuosl
BASE_DIR=/srv/releases/hudson
REMOTE_BASE_DIR=data/
SCRIPT_DIR=$PWD
pushd $BASE_DIR
rsync -avz --delete-during --delete-excluded --prune-empty-dirs --include-from=<(
# keep all the plugins
echo '+ plugins/**'
echo '+ updates/**'
echo '+ art/**'
echo '+ podcast/**'
# I... | true |
a30789833abef0a0473a397da950be04976fdff1 | Shell | BackupTheBerlios/kant-svn | /trunk/markup/dtd/scripts/clean.sh | UTF-8 | 324 | 3.625 | 4 | [] | no_license | #!/bin/bash
for opt
do
case $opt in
*=*) arg="${opt/*=/}" ;;
*) arg="" ;;
esac
case $opt in
--help | -help | -h | -?)
cat << EOF
Usage: clean.sh
Removes autogenerated files.
EOF
exit 0 ;;
*)
echo "Unknown option $opt." 1>&2
exit 1
;;
esac
done
for i in *.in
do
rm -fv "${i/%.in/}"
done
... | true |
c3a4ca0c6a97cb1657b4d5ca2d160c667a7128c6 | Shell | nikhilchandak258/General_Programs | /Shell_Programs/fact.sh | UTF-8 | 153 | 3.65625 | 4 | [] | no_license | #!/bin/bash
function fact()
{
a=$1
x=1;
for (( i=$a; $i>0; i-- ))
do
x=$(($x*$i))
done
echo "Factorial of $a is $x"
}
echo "Enter no"
read n
fact $n
| true |
df608466290e436b16aadaebe61c78ed424b285d | Shell | cultab/dotfiles | /scripts/bin/nf-dl | UTF-8 | 2,677 | 3.859375 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/usr/bin/env bash
# see: https://raw.githubusercontent.com/lime-desu/dootsfile/main/bin/nf-dl
if [ "$(uname -s)" == "Linux" ]; then
FONT_DIR="$HOME/.local/share/fonts"
NF_DL_DIR="$HOME/.cache/fzf/nf-dl"
elif [ "$(uname -s)" == "Darwin" ]; then
FONT_DIR="$HOME/Applications/Fonts"
NF_DL_DIR="$HOME/Library/Caches/f... | true |
469348084facb31d5cc5ac94d3aaf5f5da1b28ca | Shell | mgh35/lab-eks | /run-in-eks-eksctl/kube-delete.sh | UTF-8 | 497 | 2.609375 | 3 | [] | no_license | #!/bin/zsh
set -e
cd "$(dirname "$0")"
CLUSTER=lab-eks
kubectl delete -f cluster/
eksctl delete fargateprofile \
--cluster $CLUSTER \
--name hello
kubectl delete -f cluster-setup/
eksctl delete iamserviceaccount \
--name alb-ingress-controller \
--namespace kube-system \
--cluster $CLUSTER
aws iam dele... | true |
e9bcb21852d4e700a4ae94985ad99c3c89e01385 | Shell | isabella232/benchmark-3 | /legacy/setup/packet-benchmark-setup.sh | UTF-8 | 370 | 3.046875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
set -x
set -e
if [ "$#" -ne 1 ]; then
echo "Usage: $0 COMMIT" >&2
exit 1
fi
rm -rf /root/benchmark
git clone https://github.com/pytorch/benchmark /root/benchmark
cd /root/benchmark
git fetch --quiet --tags https://github.com/pytorch/pytorch.git +refs/heads/*:refs/remotes/origin/* +refs/pull/*:refs/re... | true |
cc3f4c16d66f4fce83b5f57e426c0765d9849272 | Shell | Dschoordsch/gluecodium | /scripts/parse_changelog.sh | UTF-8 | 310 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Parses changes for a given version from CHANGELOG.md
# Parameters: FILE RELEASE
line_range=$(grep -n "^## " "$1" | grep "$2" -A 1 | cut -d ":" -f 1)
OLD_IFS="$IFS"
IFS=$'\n' from_to=(${line_range})
IFS=$OLD_IFS
from=$(( ${from_to[0]} + 1 ))
to=$(( ${from_to[1]} -2 ))
sed -n "${from},${to}p" $1
| true |
7e46fff5b55dd3c1e3b9c32930c19de8850209a7 | Shell | seregaed/UralDev | /deploy/vagrant/venv.sh | UTF-8 | 667 | 2.75 | 3 | [] | no_license | #!/bin/bash
set -e #exit if error
echo "cd src" >> /home/vagrant/.bashrc #print directory
echo "cd src" >> /home/vagrant/.zprofile
echo "Create python virtual environment"
pyvenv-3.5 "/home/vagrant/env" #create virtual environment with python 3.5
source "/home/vagrant/env/bin/activate" #start second script in thi... | true |
e7d5971bdd0a33120508ae11e496cfe91499c33c | Shell | Grazfather/dotfiles | /githelpers | UTF-8 | 663 | 3.859375 | 4 | [] | no_license | #!/bin/bash
LOG_HASH="%C(white)%h%Creset"
LOG_DATE="%C(green)%cd%Creset"
LOG_AUTHOR="%C(bold blue)%an%Creset"
LOG_REFS="%C(yellow)%d%Creset"
LOG_SUBJECT="%s"
# Put a '}' between sections so we can use it as a unique delimeter
LOG_FORMAT="$LOG_HASH}$LOG_DATE}$LOG_AUTHOR}$LOG_REFS $LOG_SUBJECT"
pretty_git_log() {
... | true |
319fb18b5dd2c19ae33d11aa5bdc94a44a941a77 | Shell | google/skia | /platform_tools/android/bin/android_perf | UTF-8 | 3,028 | 4.15625 | 4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
#
# android_perf: utility for running perf on an android device
#
# The basic usage sequence is to run...
# 1) perf record [gm/tests/bench] # runs profiler on specified app
# 2) perf report # prints profiler results
# 3) perf clean # cleans the temporary directory used to store results
#
SCRIPT_DIR="$( ... | true |
923fd4baa19dc41f336ea98e3a0a270957879391 | Shell | kvazimoda24/openmediavault | /deb/openmediavault/usr/share/openmediavault/mkconf/collectd.d/interface | UTF-8 | 1,717 | 2.9375 | 3 | [] | no_license | #!/bin/sh
#
# This file is part of OpenMediaVault.
#
# @license http://www.gnu.org/licenses/gpl.html GPL Version 3
# @author Volker Theile <volker.theile@openmediavault.org>
# @copyright Copyright (c) 2009-2018 Volker Theile
#
# OpenMediaVault is free software: you can redistribute it and/or modify
# it under the ... | true |
9b363cb14e3b10683185c46801b32f13956cae45 | Shell | viscrisn/mit-algo-cpp | /CPP Projects/5th Sem OS lab/OS Lab/Week 3/case_1.sh | UTF-8 | 260 | 3.34375 | 3 | [] | no_license | # menu program
echo menu test program
stop=0
while test $stop -eq 0
do
cat <<ENDOFMENU
1 : date
2,3 : pwd
4 : exit
ENDOFMENU
echo
echo 'Enter ur choice :- '
read ch
echo
case $ch in
"1")
date
;;
"2" | "3")
pwd
;;
"4")
stop=1
;;
*)
echo Illegal
;;
esac
done
| true |
434e3e45ad357d2a1986ea5d220289f2d7ac5d55 | Shell | mark-book/markbook | /bin/addbookmark.sh | UTF-8 | 1,241 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -o xtrace
URI="$1"
RECALLS="$2"
MAKER="$3"
TITLE="$4"
ID="$5"
CREATED="$6"
echo "URI : $URI" 1>&2
echo "RECALLS : $RECALLS" 1>&2
echo "MAKER : $MAKER" 1>&2
echo "TITLE : $TITLE" 1>&2
echo "ID : $ID" 1>&2
echo "CREATED : $CREATED" 1>&2
usage() {
echo "Usage: $0 <URI> <RECALLS> <MAKER> <TITLE> <ID> ... | true |
e6d0cc37d86bacb4dd8dd139a4ff6b8d0e1a64bd | Shell | favasconcelos/otxserver | /docker.sh | UTF-8 | 360 | 3.375 | 3 | [] | no_license | #!/bin/bash
if ! [ -x "$(command -v unzip)" ]; then
echo 'Error: unzip is not installed.' >&2
exit 1
fi
# Config
MAP_PATH="./data/world/"
MAP_FILE="realmap.otbm"
# check if the map does not exists and unzip it
if [ ! -f "$MAP_PATH$MAP_FILE" ]; then
unzip "$MAP_PATH$MAP_FILE.zip" -d $MAP_PATH
fi
docker-compose -... | true |
6e3aa644da7fa08e0e96e2e0ec0e849434763efe | Shell | 17500mph/CAP | /Configure | UTF-8 | 60,457 | 3.296875 | 3 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-other-permissive"
] | permissive | #!/bin/sh
# $Author: djh $ $Date: 1996/09/10 14:11:08 $
# $Header: /mac/src/cap60/RCS/Configure,v 2.107 1996/09/10 14:11:08 djh Rel djh $
# $Revision: 2.107 $
# CAP configuration shell script. This ain't perfect, but it's a start.
# Execute with /bin/sh Configure if your system won't run it (ksh is okay too)
#
# Usag... | true |
cead1fee0e9a11b6fcdcc2d77d27c82d06d83a07 | Shell | hxiong388/ruby-docker | /builder/build_tools/build.sh | UTF-8 | 1,655 | 4.3125 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -e
DIRNAME=$(dirname $0)
IMAGE_TAG="new"
STAGING_FLAG=
show_usage() {
echo "Usage: ./build.sh [-t <image-tag>] [-s]" >&2
echo "Flags:" >&2
echo ' -t: set the image tag (defaults to "new")' >&2
echo ' -s: also tag new image as staging' >&2
}
OPTIND=1
while getopts ":t:sh" opt; do
case $o... | true |
7e34c406decc968b2a9893cab7033d4abc7f740b | Shell | qixin5/debloating_study | /expt/debaug/benchmark/tar-1.14/testscript/I7/2 | UTF-8 | 264 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
BIN=$1
OUTDIR=$2
TIMEOUT=$3
INDIR=$4
cp -r $INDIR/myarchive.tar ./
{ timeout -k 9 ${TIMEOUT}s $BIN -tvf myarchive.tar home/qxin6/debaug_expt/debaug/benchmark/tar-1.14_template/input.origin/I7/anaconda-ks.cfg; } &>$OUTDIR/o2
echo "$?" >>$OUTDIR/o2
| true |
487c7fc25e31a25d489d0bdfa06220fb83837823 | Shell | ShalokShalom/plan.sh | /sdl2/plan.sh | UTF-8 | 974 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | pkg_origin=cosmos
pkg_name=sdl2
pkg_version=2.0.5
pkg_description="Library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)"
pkg_upstream_url="http://www.libsdl.org"
pkg_license=('MIT')
pkg_deps=('glibc' 'libxcursor' 'libxext' 'libxrender' 'libx11' 'libgl' 'pulseaudio... | true |
b86282fd03b158d57e0679383d2a8e3f08ef5620 | Shell | mehulrao/Gandalf | /build.sh | UTF-8 | 1,013 | 3.75 | 4 | [] | no_license | #!/bin/bash
#Please run with a Linux flavor. macOS makes a lot of dummy files.
# Aliases
basename="io.github.ethanrdoesmc.gandalf102"
conflictfile="conflicts.txt"
# create control file and setup for conflicts
echo "Creating directories and copying files."
controlfile="$basename/DEBIAN/control"
mkdir -p "$basename/DE... | true |
4b1be52d117ca2ec74d91ffcbc797837be1c9f8f | Shell | takeke0404/video_summarization | /summarization_by_bert/summarization_by_bert.sh | UTF-8 | 276 | 2.671875 | 3 | [] | no_license | #!/bin/sh
positions="../get_clip_position/positions/*"
for filename in $positions; do
name=${filename##*/}
name=${name%.*}
python make_data.py "$name"
python predict.py "$name"
python make_summarization.py "$name"
done
echo "summarization_by_bert is done"
| true |
5380195a5a0cf0cd34a73ea30a160d3131c62554 | Shell | seantma/MADC-FileIO | /fMRILab_Preproc_FieldMap/fmri_preproc/scripts/build_config.sh | UTF-8 | 663 | 3.671875 | 4 | [] | no_license | #!/bin/bash
# Be in the subject directory.
PDIR=`pwd`
# Defaults
FETCH_PROTOCOL=0
OUTFILE=config.json
ACQTYPE='mb'
STUDYNAME='study'
# Parse options
while [ $# -gt 0 ]
do
case $1 in
-p)
FETCH_PROTOCOL=1
shift 1
;;
-o)
OUTFILE=$2
shift 2
;;
-aq)
ACQTYPE=$2
shif... | true |
0f97520423f615d5ce488de70ebe9d5186dec37c | Shell | adreyer/DropPod | /files/drop | UTF-8 | 1,681 | 3.484375 | 3 | [] | no_license | #!/bin/bash
DropPod="/usr/local/DropPod"
command=$1
shift
export SSL_CERT_FILE=/usr/local/share/ca-bundle.crt
case "$command" in
pod | pods )
cat <(echo "include baseline::types") <(for pod; do /usr/bin/ruby -r open-uri -e "puts open('$pod').read"; done) | ${DropPod}/binstubs/puppet apply
;;
test )
... | true |
9f29986fdbf923799b5fb744d4b45b5a5cea57fa | Shell | Filirom1/cis-docker-image | /cis-4.9 | UTF-8 | 108 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
ADD=$(docker history $1 |head -n -1 |grep ADD)
if [ -n "$ADD" ]; then
echo FAIL
exit 1
fi
| true |
9f938017e4a0a12798c1aab9d330ad537963558f | Shell | dstrctrng/12factor | /bin/publish | UTF-8 | 1,207 | 3.640625 | 4 | [
"Apache-2.0",
"MIT"
] | permissive | #!/bin/bash
#/ NAME
#/ publish -- publish site to GitHub Pages
#/
#/ SYNOPSIS
#/
#/ publish
# first time, this will be empty, to trigger enforce_rvm
: ${_AO_RVM:=}
# figure out the project root under which bin, lib live
shome="$(cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"
# load a jason bour... | true |
89829e5dd888d19ae336ea404187120a22fc5ed7 | Shell | DTFN/occlum | /tools/occlum | UTF-8 | 8,832 | 4 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
occlum_dir="$( cd "$( dirname "$this_dir/../../../" )" >/dev/null 2>&1 && pwd )"
build_makefile=$occlum_dir/build/bin/occlum_build.mk
if [[ "$occlum_dir" == "/opt/occlum" ]]; then
version_header=$occlum_dir/include/occlum_v... | true |
4c65259665bc96d2cdc230f563e690a0e89259cb | Shell | ejhonglab/hong_setup | /function_specific/choice_video_only_acquisition/install.sh | UTF-8 | 557 | 3.0625 | 3 | [] | no_license | #!/usr/bin/env bash
cp tom_tracking_terminals.desktop ~/.local/share/applications
# TODO also position at bottom?
app="tom_tracking_terminals.desktop"
existing_launcher_apps=`gsettings get com.canonical.Unity.Launcher favorites`
# checking if app is in existing_launcher_apps
if [[ ! $existing_launcher_apps = *"${app... | true |
577d7febcda6d8ca71bbfeed0ab83652a75a0eea | Shell | lhcgeneva/PARDynamics | /Macros/MetamorphSplitter.sh | UTF-8 | 486 | 3.359375 | 3 | [] | no_license | #Find all files that contain 'thumb' and delete
sudo find . -name "*thumb*" -delete
#Divide Acquisitions
f_short=NWG0026A_40G_60R_P2_
for f in NWG0026A_40G_60R_P2_*; do
size=${#f_short}
let size+=2
echo ${f:0:($size)}
t=${f:0:($size)}
mkdir -p "${t}"
mv -v "$f" "${t}/"
done
#Divide Positions
f_short=_s
for f in *_s*;... | true |
dc709bf1550ce7b22bcbc669417ba1dd51a9cd29 | Shell | trenigma/dotfiles-1 | /setup.sh | UTF-8 | 32,852 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -o nounset
cd ~ || { echo "Could not go to home"; exit 1; }
sudo -v # Ask for the administrator password upfront
if [[ $(uname) = 'Linux' ]]; then
if [[ -n $GITPOD_WORKSPACE_ID ]] || [[ -n $CODESPACES ]]; then
echo "Running in an unsupported env (not Gitpod or Codespaces), exiting..."
exit... | true |
76558398590fba58e524a5aac9345c1a4e3ee6f6 | Shell | systemroot/all | /help | UTF-8 | 2,467 | 3.078125 | 3 | [] | no_license | #!/bin/bash
clear
echo "*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*"
echo ""
echo "$(tput setaf 1)$(tput bold)RAWS COMMAND LIST$(tput sgr0)"
echo "1. $(tput setaf 2) raws$(tput sgr0) $(tput setaf 1)-v $(tput sgr0)"
echo "2. $(tput setaf 2) raws$(tput sgr0) $(tput setaf 1)sysinfo $(tput sgr0)"
echo "3. ... | true |
f99b00d0953e999359519442e38293fc7a4fdea7 | Shell | aktsk/NWPentestUtils | /get-alive-ip.sh | UTF-8 | 425 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -eu
usage() {
echo "Usage: ${0##*/} <ip-range>"
}
if [ $# -eq 0 ]; then
echo "Error: Target hosts must be specified"
usage
exit 1
fi
if [ "$1" = "-h" ]; then
usage
exit 0
fi
today=`date +%Y%m%d`
if [ ! -d ./results/${today} ]; then
mkdir -p ./results/${today}
fi
now=`date +%Y%m%d_%H%M%S... | true |
a7427473c8d3bca791396b189b904a79a68b4c5f | Shell | AsteriskZuo/ffmpeg_build_scripts | /color_log.sh | UTF-8 | 6,401 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
source ./util.sh
echo "###############################################################################" >/dev/null
echo "# Script Summary: #" >/dev/null
echo "# Author: yu.zuo #" >/dev/nu... | true |
b47bda53dde2490cf2fcf6288a9933da0294fd33 | Shell | blalor/auto_tm | /backup.sh | UTF-8 | 274 | 3.53125 | 4 | [] | no_license | #!/bin/bash
cd "$( dirname $0 )"
# Set the drive name that we mount for our backups
vol_mount="$( ./get_destinations.py )"
if [ -n "${vol_mount}" ]; then
# Drive is mounted, so: backup and then eject after
tmutil startbackup -b
diskutil eject "${vol_mount}"
fi
| true |
9d2d00cac1d333e337b6744abeb333c59892157f | Shell | Gerling/habib | /lab6/lab601.sh | UTF-8 | 198 | 3.328125 | 3 | [] | no_license | #!/bin/bash
# Chapter 6 exercise 1
# Oliver Gerling
if [ $# -eq 2 ]; then
echo "First argument: $1"
echo "Second argument: $2"
else
echo "$0 needs 2 arguments to start"
exit 1
fi
exit 0
| true |
c3004477dd19fb3db8d2f86ef048f5e12b7e9be8 | Shell | spdfire/teddix | /teddix-web/init.d/teddix-web.rhel | UTF-8 | 1,639 | 3.640625 | 4 | [
"BSD-2-Clause-Views"
] | permissive | #!/bin/bash
#
# teddix-web Start up the teddix-agent daemon
#
# chkconfig: 2345 55 25
# description: This service starts up the teddix-web daemon.
#
# processname: teddix-web
# config: /etc/teddix/teddix.conf
# pidfile: /var/run/teddix-web.pid
### BEGIN INIT INFO
# Provides: teddix-web
# Required-Start: $local_fs $ne... | true |
64eb927caa5df997c402460248cbd9c607ac057b | Shell | NotKit/archlinux-maemo | /maemo-launcher-git/PKGBUILD | UTF-8 | 774 | 2.53125 | 3 | [] | no_license | # Maintainer: TheKit <nekit1000 at gmail.com>
pkgname=maemo-launcher-git
pkgver=r296.40ba057
pkgrel=1
pkgdesc="Application startup accelerator for Maemo"
arch=('i686' 'x86_64' 'arm' 'armv7h' 'aarch64')
url="https://github.com/fremantle-gtk2/maemo-launcher"
license=('GPL')
depends=('libhildon' 'iphbd' 'dbus-glib')
maked... | true |
8b8431b462f175cdbc4aae87b635df58b09b47c5 | Shell | dongcj/oh-my-linux | /test/dialog_example/timebox.sh | UTF-8 | 250 | 3.25 | 3 | [] | no_license | #!/bin/sh
: ${DIALOG=dialog}
USERTIME=`$DIALOG --stdout --title "TIMEBOX" --timebox "Please set the time..." 0 0 12 34 56`
case $? in
0)
echo "Time entered: $USERTIME.";;
1)
echo "Cancel pressed.";;
255)
echo "Box closed.";;
esac
| true |
b58b54716662af696f66169b653aebed2afdb889 | Shell | jf7686/git-helper | /git-helper.sh | UTF-8 | 5,172 | 3.75 | 4 | [] | no_license | #!/bin/bash
# 简单易用高效的git命令行助手
# Author: letseeqiji
# version: 1.0.2
# data: 2018.5.1
# 首先避免自己被添加到git管理中
sfile=$(ls | grep .sh)
if [ -f .gitignore ]; then
if [ -z $(grep ${sfile} .gitignore) ]; then
echo "${sfile}" >> .gitignore
fi
else
echo "##ignore this file##" >> .gitignore
echo "${sfile}" >> .gitignore
fi
#... | true |
dd07390d626406c2df6c42df2179064d572dcbe9 | Shell | owiber/happypack | /examples/build-all.sh | UTF-8 | 1,100 | 3.9375 | 4 | [] | no_license | #!/usr/bin/env bash
if [ ! -d examples ]; then
echo "You must run this from happypack root."
exit 1
fi
function run_task {
task=$@
echo -e "\n[$task] STARTING $(date)"
$task 2>&1 | while IFS="" read line; do echo -e "[$task] $line"; done
exit_status=${PIPESTATUS[0]}
if [[ $exit_status != 0 ]]; then
... | true |
48b2d7dcfec019204a7fee914f87c9edfef26ee0 | Shell | derekbatoyon/adventofcode2020 | /day18/test_part2.sh | UTF-8 | 564 | 2.65625 | 3 | [] | no_license | #!/bin/bash -e
TMPFILE=$(mktemp)
trap "rm -f $TMPFILE" EXIT
echo "231" > $TMPFILE
python3 part2.py test1.txt | diff $TMPFILE -
echo "51" > $TMPFILE
python3 part2.py test2.txt | diff $TMPFILE -
echo "46" > $TMPFILE
python3 part2.py test3.txt | diff $TMPFILE -
echo "1445" > $TMPFILE
python3 part2.py test4.txt | diff... | true |
27ac356a97b2d546722bd7cfc937c8cd7d1b6b4d | Shell | yusuke1997/dbsa | /scripts/prepare-aspec.sh | UTF-8 | 8,503 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Copyright (c) Hiroyuki Deguchi
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
function not_exists() {
! ( [[ -d $TOOLS_DIR/$1 ]] || [[ -f $1 ]] )
}
function corpora_not_exists() {
! [[ -d $orig ]] || ! [[ -f $orig/trai... | true |
c371b0103b3a9976bbec06c4b759db2b1f5ee161 | Shell | adam-sweet/kepler-pipeline | /source-code/matlab/gar/huffman/matlabenv.sh | UTF-8 | 3,064 | 2.78125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
#
# Setup the environment to run executables that need the MATLAB runtime
#
# Other things I had to do:
#
# SELinux (if you have SELinux enabled):
# permissions problem (Error: cannot restore segment prot after reloc: Permission denied):
# find /path/to/mcr -name "*.so" -print -exec chcon -t texrel_shlib_... | true |
ab37ad8afeec5dbae02ccac7fb92d30019fa68fc | Shell | nesity/sanei-core | /modules/sanei-core/lib/lxc/lxc.sh | UTF-8 | 1,057 | 3.6875 | 4 | [] | no_license | #!/bin/bash
enter_container(){
local container=$1
REAL_TEMPLATE_ROOT=$TEMPLATE_ROOT
REAL_BACKUP_DIR=$BACKUP_DIR
REAL_HOME_DIR=$HOME_DIR
TEMPLATE_ROOT=/lxc/$container/rootfs
BACKUP_DIR=$TEMPLATE_ROOT/root/.backups
# we always want $HOME of containers to be /root
HOME_DIR=/root
CONTAI... | true |
1fb7d4592138cda36bf804b0857b1d4e64f10f51 | Shell | strategist922/dkrcp | /TestFramework.sh | UTF-8 | 24,283 | 3.953125 | 4 | [
"MIT",
"dtoa",
"CC-BY-3.0"
] | permissive | #TODO: conurrently run tests.
#TODO: Determine if detection pipeline functions for scanning are still necessary
##############################################################################
##
## Purpose:
## Test component dependencies, like Docker CLI version, to ensure
## they exist and are of proper verison.... | true |
30c2ecf19862317db1afee76709f4bf905ed938c | Shell | uyjulian/uyjulianRBXPersonalScript | /prepare-env.sh | UTF-8 | 1,116 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Root check
if [[ $EUID -ne 0 ]]; then
echo "Please run with sudo:"
echo "sudo ./prepare-env.sh"
exit 1
fi
# Install required packages
apt-get -y update
apt-get -y install luajit luarocks zlib1g zlib1g-dev
luarocks install lua-zlib
luarocks install lua-parser
luarocks install serpent
luarocks in... | true |
6705d9167909acfe207c92e2ea8606acc79c99dd | Shell | Luisangonzalez/andavr | /local/bin/linuxchroot.sh | UTF-8 | 12,166 | 3.921875 | 4 | [] | no_license | #!/system/bin/sh
(
export busybox="/data/data/com.galoula.LinuxInstall/bin/busybox"
# If $BINDS does not exist, then done of the others are set iether.
if $busybox [ -z "$BINDS" ]; then
export DIST="debian squeeze"
export FILESYSTEM=/flash/Linux.loop
export MOUNTPOINT=/data/local/mnt/Linux
export PREFIX=/da... | true |
2ba77db79e04edf70585e9b55cef3ddb69bde52e | Shell | choodly/RRPN | /experiments/infer_nucoco.sh | UTF-8 | 1,172 | 3.1875 | 3 | [
"MIT"
] | permissive | #! /bin/sh
# Run inference on a single image.
CUR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ROOT_DIR="$(dirname "$CUR_DIR")"
## Parameters
PROPOSAL_METHOD='rrpn'
MODEL='fast_rcnn_X-101-32x8d-FPN_1x_nucoco_rrpn'
CFG='fast_rcnn_X-101-32x8d-FPN_1x_finetune_nucoco.yaml'
##------------------... | true |
5a35cb178c4c5a0a8912fb51b04aca8cde929490 | Shell | fetaro/server_comp | /scomp_digest.sh | UTF-8 | 2,579 | 4.125 | 4 | [] | no_license | #!/bin/bash
USAGE=`cat <<EOF
Make digest of Server Compaire Tool
Usage : $0 -c conf_file [-i ignore_file] [-o output_file] [-vh]
option
-c conf_file :
Specify config file.
Config file format is as follows.
---
/etc/
/usr/local/
/home/myapp/myapp.conf
---... | true |
58c91a1dffb5f42d28ea888d609083708acc5553 | Shell | szarta/stars-research | /planet_name_generation/gather_names.sh | UTF-8 | 338 | 2.703125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#------------------------------------------------------------------------------
# Just builds the unique list of names from all of the other lists.
#
# Author: Brandon Arrendondo
# License: MIT
#------------------------------------------------------------------------------
cat name_lists/*.txt >> names.txt
s... | true |
8cfebc40b619f11f8f712523c6125cb2d8874044 | Shell | couchbase/build-infra | /docker/buildslaves/buildjobs/docker/docker-hook.sh | UTF-8 | 363 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
# Set up for Docker pushing
mkdir /home/couchbase/.docker
chmod 700 /home/couchbase/.docker
if [ -e /home/couchbase/.ssh/docker-push-config.json ]; then
cp /home/couchbase/.ssh/docker-push-config.json /home/couchbase/.docker/config.json
chmod 600 /home/couchbase/.docker/config.json
fi
chown -R c... | true |
728fea242aa7888f5194de2a8ebcf6f2de6e1074 | Shell | rhzx3519/learnshell | /shell_in_practice/1/normdate | UTF-8 | 926 | 4.1875 | 4 | [] | no_license | #!/bin/bash
# normdate
monthNumToName()
{
# 将变量month设置为相应的值
case $1 in
1) month="Jan" ;; 2) month="Feb" ;;
3) month="Mar" ;; 4) month="Apr" ;;
5) month="May" ;; 6) month="Jun" ;;
7) month="Jul" ;; 8) month="Aug" ;;
9) month="Sep" ;; 10) month="Oct" ;;
11) month="Nov" ;; 12) month="Dec" ;;
*) echo "$0... | true |
dd0885875f7a9d81631495761d07afcd620a3bef | Shell | tolry/environment | /install.sh | UTF-8 | 623 | 3.546875 | 4 | [] | no_license | #!/bin/bash
confirm () {
# call with a prompt string or use a default
read -r -p "${1:-Are you sure?} " -n 1 response
echo ""
case $response in
[yY][eE][sS]|[yY])
true
;;
*)
false
;;
esac
}
confirm "bashrc konfigurieren?" && source ./... | true |
ab1831d8300a9078fd782d536d582f7c9277f59c | Shell | jangocheng/smartype | /examples/androidExample/smartypeGenerate.sh | UTF-8 | 271 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
SM_FILE=smartype.jar
if [ -f "$SM_FILE" ]; then
echo "$SM_FILE exists, skipping download."
else
curl https://repo1.maven.org/maven2/com/mparticle/smartype-generator/1.1.0/smartype-generator-1.1.0.jar > smartype.jar
fi
java -jar smartype.jar generate
| true |
339b596c3554bf361e7827bf6f4f10f4978d2925 | Shell | bkyoung/tools | /install_virtualbox.sh | UTF-8 | 1,048 | 3.46875 | 3 | [] | no_license | #!/bin/bash
set -e
LATEST=$(curl -sL https://download.virtualbox.org/virtualbox/LATEST.TXT)
DMG=$(curl -sSL https://download.virtualbox.org/virtualbox/${LATEST}/ | grep OSX | cut -d'"' -f2)
EXTPACK=$(curl -sSL https://download.virtualbox.org/virtualbox/6.1.0/ | grep Extension | cut -d'"' -f2 | head -n1)
cleanup() {
... | true |
275eb9b03c3c5fb42561b9476776e21d195a130e | Shell | sumkincpp/CodeTest | /linux/commands.sh | UTF-8 | 1,114 | 2.96875 | 3 | [] | no_license | # Archiving
zip -r backup.zip data
tar -cf backup.tar data
tar -czf backup.tar.gz data
# unpacking to data folder
mkdir data
tar -cf backup.tar -C data
# Code coloring with enscript
enscript -2rG --line-numbers -p - --word-wrap --highlight=javascript --color=0 untitled.js | pstopdf -i -o ~/out.pdf && open ~/out.pdf... | true |
f68dc03133f21a5f46e26777fee0df4b292b42ba | Shell | NCrashed/specialist | /build.sh | UTF-8 | 1,960 | 2.5625 | 3 | [] | no_license | #!/usr/bin/sh
mkdir -p $1/build
cp $1/src/*.tex $1/build
cp $1/src/rpz/*.tex $1/build
mkdir -p $1/build/design && cd $1/build/design
cp $1/src/Common.hs $1/build/design
$1/$2 $1/src/rpz/design/arch
mkdir -p $1/build/technology
mkdir -p $1/build/science
cp -r $1/src/rpz/design/* $1/build/design
cp -r $1/src/rpz/techno... | true |
85093cbb565bd6d2e841fa6e48f67e0d3b985907 | Shell | janw/kubecuddle | /rc-files/.zshrc | UTF-8 | 976 | 2.828125 | 3 | [] | no_license |
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
source /usr/share/zgen/zgen.zsh
if ! zgen saved; then
zgen oh-my-zsh
zgen oh-my-zsh plugins/git
zgen oh-my-zsh plugins/kubectl
zgen oh-my-zsh plugins/helm
zgen oh-my-zsh plugins/sudo
zgen load zsh-users/zsh-completions src
zgen load denysd... | true |
62b4020cc39a49efa4b5fe9f624bd27c55e68485 | Shell | rjhilgefort/dotfiles-2014-2018 | /.zlogin | UTF-8 | 614 | 2.78125 | 3 | [] | no_license | # Executes commands at login post-zshrc.
# Execute code that does not affect the current session in the background.
{
# Compile the completion dump to increase startup speed.
zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; the... | true |
58bde7f0bbc92d12a9e0413f864b5680283defb8 | Shell | perfectfoolish/abs | /ex39.sh | UTF-8 | 756 | 3.9375 | 4 | [] | no_license | #!/bin/bash
ROOT_UID=0 # Only users with $UID 0 have root privileges.
E_NOTROOT=65
E_NOPARAMS=66
if [ "$UID" -ne "$ROOT_UID" ]
then
echo "Must be root to run this script."
# "Run along kid, it's past your bedtime."
exit $E_NOTROOT
fi
if [ -z "$1" ]
then
echo "Usage: `basename $0` find-string"
exit $E_N... | true |
cf82270dedf1fbc693b2412af7136257791fc064 | Shell | systems-nuts/hcontainer-tutorial | /scripts/builder.sh | UTF-8 | 2,381 | 4.0625 | 4 | [] | no_license | #!/bin/bash
# Author Tong Xing
# Stevens Institute of Technology
# This script will build a container
#set -x
DIR=$1
PORT_FLAG=$2
PORT_BIND=$3
help()
{
cat <<- EOF
Desc: Build is a helper function to help build a H-container
Usage: ./builder.sh <Container DIR> [Port_Flage] [PORT:PORT]
- Container DIR is th... | true |
80db91c731fea145304266443cd9e13b92050542 | Shell | itemco/now | /api/exec/rpm.sh | UTF-8 | 354 | 3.34375 | 3 | [] | no_license | if [ $2 ]; then
echo "ERROR|This resource only allow 1 params"
exit
fi
if [ $1 ]; then
SHELL=$(rpm -qa --queryformat '%{summary}|%{name}|%{version}|%{release}|%{size}\n' | sort | grep $1)
else
SHELL=$(rpm -qa --queryformat '%{summary}|%{name}|%{version}|%{release}|%{size}\n' | sort)
fi
echo "Summary|Name|Versi... | true |
989eaf8c573a35f9b46d999fd4e66adca001fb7b | Shell | arcolife/cfme-tune | /scripts/get_metric_capture_avg.sh | UTF-8 | 2,734 | 3.578125 | 4 | [] | no_license | #!/bin/bash
# optional prerequisites for visulizing timings on bash
# sh -c "curl https://raw.githubusercontent.com/holman/spark/master/spark -o /usr/local/bin/spark && chmod +x /usr/local/bin/spark"
logfile=$1
# last_lines=$2
last_events=$2
log_start=$3
log_end=$4
ems_event_id=$5
cd /var/www/miq/vmdb/log/
if [[ $*... | true |
552bcb1e1c2e3e7348c048481d210c12f0c261b6 | Shell | chunchengmeigui/dalyNote | /linux/centos系统springboot启动、重启、停止shell脚本/boot.sh | UTF-8 | 1,618 | 4.28125 | 4 | [] | no_license | #!/bin/bash
#这里可替换为你自己的执行程序,其他代码无需更改
APP_NAME=menuztree-0.0.1-SNAPSHOT.war
#使用说明,用来提示输入参数
usage() {
echo "Usage: sh 执行脚本.sh [start|stop|restart|status]"
exit 1
}
#检查程序是否在运行
is_exist(){
pid=`ps -ef|grep $APP_NAME|grep -v grep|awk '{print $2}'`
#如果不存在返回1,存在返回0
if [ -z "${pid}" ]; then
return 1
else
... | true |
dd36947c1a670c80e69718beb39fd8065a953a3e | Shell | sturrent/kvm-build-with-cloud-image | /build-vm.sh | UTF-8 | 8,107 | 4.21875 | 4 | [] | no_license | #!/bin/bash
# Script to setup and boot cloud image VMs in kvm
# v.0.7.25
## Usage
#"-h|--help" help info
#"-n|--name" vm name
#"-c|--cores" number of cores
#"-m|--memory" memory in MB
#"-s|--sshkey" path to public ssh key
#"-i|--image" path to cloud image to use (ubuntu or centos)
#"-d|--delete" delete VM
# Director... | true |
1ae018fbd068b0f89f510fe8ac0cbf68cfdcfa3b | Shell | rgeyer-rs-cookbooks/cookbooks_all | /tarball.sh | UTF-8 | 160 | 2.65625 | 3 | [] | no_license | #!/bin/sh -e
if [ -f cookbooks.tar.gz ]; then
echo "Deleting cookbooks.tar.gz"
rm cookbooks.tar.gz
fi
tar -zcvf cookbooks.tar.gz --exclude=.git cookbooks
| true |
d6999c0f8ab58e8153fec77f96ef652841fd202e | Shell | saltstack/salt | /salt/cloud/deploy/bootstrap-salt.sh | UTF-8 | 353,541 | 3.703125 | 4 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | #!/bin/sh -
# WARNING: Changes to this file in the salt repo will be overwritten!
# Please submit pull requests against the salt-bootstrap repo:
# https://github.com/saltstack/salt-bootstrap
#======================================================================================================================
# vim: ... | true |
d9af0de4104a312bc248d1343a6750a86171296b | Shell | syvanpera/dotfiles-yadm | /scripts/rofi-kube-namespace.sh | UTF-8 | 438 | 3.203125 | 3 | [] | no_license | #!/usr/bin/env bash
function main() {
local sel_ns=$(kubectl get namespaces -o=jsonpath='{range .items[*].metadata.name}{@}{"\n"}{end}' | sort -n | rofi -dmenu -p 'Kube namespace')
local cur_ctx=$(kubectl config view -o=jsonpath='{.current-context}')
if [[ -n "${sel_ns/[ ]*\n/}" ]]
then
local r... | true |
fc85d4507b191ebfccf66a8a77d5bcc7332129a6 | Shell | Dustplanet/libreelec-password-changer | /script.sh | UTF-8 | 8,388 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# Tested with openELEC v4.0.6, v4.2.1, v5.0.8 and v6.0.0 #
# Tested with LibreELEC v7.90.002 #
# ... | true |
d7bd85a72d0cc98f3d8574435f73de59311762f0 | Shell | milochen0418/eos-script | /nodeos/createWallet.sh | UTF-8 | 616 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# cleos wallet create --to-console
WALLET_INFO_FILE=~/eos-script-wallet/wallet_info.txt
TMP_PASSWD_FILE=/tmp/pass.txt
NAME=default
if [ $# -ne 0 ]
then
NAME=$1
fi
mkdir -p ~/eos-script-wallet/
touch $WALLET_INFO_FILE
touch $PASSWD_FILE
if grep --quiet $NAME $WALLET_INFO_FILE
then
echo "The wallet nam... | true |
b8d02316c4c37719d6ccb68616bfd5bd95c22e18 | Shell | barnabycolby/backup | /scripts/rotatingBackup.sh | UTF-8 | 2,789 | 4.3125 | 4 | [] | no_license | #!/bin/bash
# Get the directory containing this script
scriptDir="${BASH_SOURCE%/*}"
# Store the script start time so we can write it to the log later
scriptStartTime="$(date '+%A %d %B %Y %X')"
# Check that we've been passed a config file and that it's exists
if [ $# -ne 1 ] || [ ! -f $1 ]
then
echo "The first arg... | true |
4bf312cc6812fafa716f0bb1c2b87482f3629c28 | Shell | abernix/spaceglue | /admin/tests/test_meteor_app.sh | UTF-8 | 1,253 | 3.59375 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -e
my_dir=`dirname $0`
admin_dir="$my_dir/.."
. ${admin_dir}/lib.sh
. ${my_dir}/test_lib.sh
check_images_set
base_app_name="spaceglue-test-app"
clean() {
docker rm -f "${base_app_name}" 2> /dev/null || true
docker rmi -f "${base_app_image_name}" 2> /dev/null || true
rm -rf "${base_app_name}" || ... | true |
06b44df9dfc60f31fdf7b05626252c3ffd54568c | Shell | jiady/ltp | /tools/train/rock.sh | UTF-8 | 5,076 | 2.703125 | 3 | [] | no_license | #!/bin/sh
#################################################
# THE GLOBAL SESSION #
#################################################
ROOT=
BUILD_DIR=build
CONF_DIR=conf
LOG_DIR=log
# create model output folder
if [ -d $BUILD_DIR ]; then
rm -rf $BUILD_DIR
fi
mkdir -p $BUILD_DIR
if [ ... | true |
3f011c29c304939ec85029e414a4b760febbd9f1 | Shell | andrewdavidbell/packer | /provision/virtualbox.sh | UTF-8 | 666 | 2.5625 | 3 | [] | no_license | #!/bin/sh
# Install development tools to build guest additions
yum -y install make
yum -y install perl
yum -y install gcc
yum -y install kernel-devel
# Install guest additions
mkdir /media/VBoxGuestAdditions
mount -o loop,ro /root/VBoxGuestAdditions.iso /media/VBoxGuestAdditions
sh /media/VBoxGuestAdditions/VBoxLinux... | true |
8172ffd975f4d5117273639641f56e08937f2d0b | Shell | ew-shopp/ingestion_lib | /template_single_shot/bash_scripts/single_shot.sh | UTF-8 | 649 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# arg1: run_file_name
# arg2: retry_max_count
# arg3: code directory
# arg4: input directory
# arg5: work directory
# arg6: output directory
code_directory=${3}
input_directory=${4}
work_directory=${5}
output_directory=${6}
echo "code_directory: ${code_directory}"
#echo "input_directory: ${i... | true |
881881ccbf86ac41a05030e098a9f0592f4fcf52 | Shell | kubevirt/hyperconverged-cluster-operator | /cluster/sync.sh | UTF-8 | 3,085 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -ex
source ./hack/common.sh
function set_env() {
if [ ${KUBEVIRT_PROVIDER} != "external" ]; then
source ./_kubevirtci/cluster-up/cluster/ephemeral-provider-common.sh
registry_port=$(${_cri_bin} ps | grep -Po '(?<=0.0.0.0:)\d+(?=->5000\/tcp)' | head -n 1)
if [ -z "$registry_por... | true |
fd5ca77b67d90e1c6f97fb888a62dcc73c04d391 | Shell | Gruniek/nixie | /0.1/installer.sh | UTF-8 | 2,389 | 3.734375 | 4 | [] | no_license | #!/bin/bash
version="0.1";
FILE="/tmp/out.$$"
GREP="/bin/grep"
# Make sure only root can run our script
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
FILE=/opt/nixie/nixie.sh
if [ -f $FILE ]; then
echo "Nixieare already installed.";
echo "For a complete reinst... | true |
c3760b0be67595c5771d0b1713419e947b6faf0b | Shell | srichter/zsh-composer-php-version | /zsh-composer-php-version.plugin.zsh | UTF-8 | 2,694 | 3.765625 | 4 | [
"MIT"
] | permissive | function _available_php_versions {
echo $(update-alternatives --list php | grep -o '[0-9]\.[0-9]')
}
function _set_php_version {
sudo update-alternatives --quiet --set php "/usr/bin/php${1}"
sudo update-alternatives --quiet --set php-config "/usr/bin/php-config${1}"
sudo update-alternatives --quiet --s... | true |
b6635be40877110b6c492009096c3a1078fc15e6 | Shell | abhmul/ubuntu-setup | /.scripts/lock.sh | UTF-8 | 1,107 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# i3lock blurred screen inspired by /u/patopop007 and the blog post
# http://plankenau.com/blog/post-10/gaussianlock
# Timings are on an Intel i7-2630QM @ 2.00GHz
# Dependencies:
# imagemagick
# i3lock
# scrot (optional but default)
IMAGE=/tmp/i3lock.png
SCREENSHOT="scrot $IMAGE" # 0.46s
# Alternate sc... | true |
018e6e2e11b97b3356d1d8d45eae67f90f58b02a | Shell | gruntwork-io/terraform-aws-couchbase | /modules/install-couchbase-server/install-couchbase-server | UTF-8 | 11,563 | 3.484375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly BASH_COMMONS_DIR="/opt/gruntwork/bash-commons"
if [[ ! -d "$BASH_COMMONS_DIR" ]]; then
echo "ERROR: this script requires that bash-commons is installed in $BASH_COMMONS_DIR. See https://github.com/gruntwork-io/bash-comm... | true |
b3f9746a9684737fb75bbe92752a356b4ce9f508 | Shell | cilium/cilium | /test/provision/dns.sh | UTF-8 | 291 | 2.875 | 3 | [
"Apache-2.0",
"BSD-3-Clause",
"GPL-1.0-or-later",
"GPL-2.0-only",
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
# This script update the dns servers to use google ones.
set -e
sudo systemctl disable systemd-resolved.service || true
sudo service systemd-resolved stop || true
echo "updating /etc/resolv.conf"
cat <<EOF > /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
EOF
| true |
56c959687a600ef01566d7eedfd6771100cbfdb0 | Shell | DaniloVeljovic/Master_studije | /Sistemi za obradu velike količine podataka/bigdata-main/project3-machine-learning/start-machine-learning.sh | UTF-8 | 451 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [[ -z "$ES_DATA_DIR" ]]; then
echo "ES_DATA_DIR environment variable is not set"
echo "Set it and make sure it points to dataset folder"
exit 1
fi
docker stop es-machine-learning-app spark-master spark-worker-1 spark-worker-2
docker rm es-machine-learning-app spark-master spark-worker-1 spark-wor... | true |
6bce95b19ac5ef1132eb99172224a317ca45e9da | Shell | jeffvance/rhs-hadoop-install | /bin/check_uids.sh | UTF-8 | 1,514 | 4.34375 | 4 | [] | no_license | #!/bin/bash
#
# check_uids.sh verifies that the hadoop users have the same UID across the
# list of passed-in nodes.
# Syntax:
# $@ = list of nodes expected to contain the hadoop users
PREFIX="$(dirname $(readlink -f $0))"
errcnt=0
NODES=($@)
(( ${#NODES[@]} < 2 )) && {
echo "Syntax error: a list of 2 or more nod... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.