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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ed96749701197a514e7aed1996d69cd1b3f11e3c | Shell | raydennis/docker-selenium-grid | /.docker/docker-test.sh | UTF-8 | 1,514 | 3.8125 | 4 | [] | no_license | #!/bin/sh
COLOR_REST="$(tput sgr0)"
COLOR_GREEN="$(tput setaf 2)"
COLOR_RED="$(tput setaf 1)"
function service_info(){
service=$1
echo ""
printf 'Testing service: '
printf '%s%s%s' $COLOR_GREEN $service $COLOR_REST
echo ""
echo "======="
}
function assert_result(){
if [[ "$1" == true ]];... | true |
37fe49a98fa6fec34a35c37529780232d75d6959 | Shell | dk-dev/osv | /scripts/gen-drivers-config-header | UTF-8 | 650 | 3.75 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
if [ "$#" -ne 2 ]; then
echo "usage: $(basename $0) ARCH OUTPUT" >&2
exit 1
fi
arch=$1
output=$2
drivers_config_base_file=`dirname "$0"`/../conf/profiles/$arch/base.mk
tmp=$(mktemp)
cat >$tmp <<EOL
/* This file is generated automatically. */
#ifndef OSV_DRIVERS_CONFIG_H
#define OSV_DRIVERS_CONFIG_H
... | true |
1dabe7e9e870ef67ef5c2c03d36f6f7ea50a983e | Shell | crsantos/dotfiles | /scripts/bootstrap.sh | UTF-8 | 874 | 3.5 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# git pull origin master;
function syncFishFolder() {
rsync --exclude ".git/" \
--exclude ".DS_Store" \
--exclude ".osx" \
--exclude "scripts" \
--exclude "README.md" \
--exclude "LICENSE-MIT.txt" \
-avh --no-perms ./fish/ ~/.config/fish;
# Reload fish shell after that
exec /usr/local/bi... | true |
58e88f28d3df99f660fcd60f6cca892e07ec6537 | Shell | adis300/mxnet-build | /build-ios.sh | UTF-8 | 564 | 3.125 | 3 | [] | no_license | #!/bin/bash
# Remove previous build
rm -rf dist/
# Build mxnet in-case anything is not ready
./build-mxnet.sh
# Build amalgamation
AMALGAMATION_PATH=mxnet/amalgamation
SOURCE_FNAME=mxnet_predict-all.cc
BKUP_FNAME=${SOURCE_FNAME}.original
cd "${AMALGAMATION_PATH}"
echo Path changed
make
# Adapt source to iOS
cp ${SO... | true |
c1e433d18cd37962472b961c31f3b6bfb0e22920 | Shell | MasahiroSakoda/dotfiles | /home/.chezmoiscripts/run_onchange_after_21-python.sh.tmpl | UTF-8 | 406 | 2.75 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# -*-mode:sh-*- vim:ft=sh
set -eo pipefail
. "$(brew --prefix asdf)/libexec/asdf.sh"
echo $(asdf current python)
# Upgrade pip
python3 -m pip install --upgrade pip
# Poetry
## create .venv in your project
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
## use py... | true |
96e26184025ebef9830bec4aff47b963cf95bb6c | Shell | brettjrea/Armhf_ChromeOS_Crouton_Ubuntu_Wordpress_Apache_MySql | /wp | UTF-8 | 1,836 | 3.5 | 4 | [] | no_license | #!/bin/sh -e
# Copyright (c) 2016 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
REQUIRES=''
DESCRIPTION='Basic installation of WordPress on a LAMP stack'
HOSTBIN='wp'
CHROOTBIN='croutonpowerd'
. "${TARGETSDIR:="$PWD"}/comm... | true |
33f41262d0ca29665247bc6b25dc3e0a5e834eb5 | Shell | colonelpanic8/nixos-config | /home/config/scripts/wallpaper | UTF-8 | 1,622 | 3.9375 | 4 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
source "$SCRIPT_DIR/config"
help() {
# shellcheck disable=SC2154
printf '
## Usage
run dmwall without any argument to select a wallpaper from %s\n
dmwall [optional arguments]
-h\tD... | true |
f230111c591dac4817a45361a0893ac67d341634 | Shell | harrisonlab/fusarium_ex_strawberry | /gene_pred_Scripts/busco_s11.sh | UTF-8 | 852 | 2.515625 | 3 | [] | no_license | #Edited paths from Andy's direc to mine
#Updated entire script using https://github.com/harrisonlab/bioinformatics_tools/blob/master/Gene_prediction/README.md
#Does not have quast segment in script like Andy's pipeline
#Look into BuscoDB direc - directory exists
#Run in conda env - BUSCOenv
#Ran on genome(softmasked) a... | true |
2043f27286e3fa3f0bb6423b105c31f8b1b9ec76 | Shell | zhh518/AppleHDAPatcher | /AppleHDAPatcher.app/Contents/Resources/ListCodec.command | UTF-8 | 7,580 | 3.171875 | 3 | [] | no_license | #!/bin/bash
# Maintained by: Mironeⓒ
#
# PCI ids : https://github.com/pciutils/pciids
#
# Using in AppleHAPatcher.app to identify installed audio codecs
#
# Mandatory Requirements:
# 1. AppleHDA.kext
#
printf "Codecs Detecteds:\n\n"
#
#
# detect installed codecs for Vendor id.
ListCodec=$(ioreg -rxn IOHDACodec... | true |
fe2c9de3038fcfef2642e78c035c43c78d27aead | Shell | Tubbz-alt/dockerbuild | /dockerbuild/containerscripts/common.sh | UTF-8 | 1,536 | 3.703125 | 4 | [] | no_license | #!/usr/bin/env bash
set -x
set -e
export PKGDIR=/mnt/package
export OUTDIR=/mnt/output
export DEBIAN_FRONTEND=noninteractive
source /etc/os-release
xdie () {
local msg=$1
printf "ERROR: %s\nABORT.\n" "$msg"
exit 2
}
xgitclean () {
git clean -d -f
}
xarch () {
dpkg --print-architecture
}
xupstreamversio... | true |
e1251c68bc3e961731edb107c00a9494b6e2ec77 | Shell | wdicarlo/wdc-do-commands | /list/do-list-netstatus | UTF-8 | 264 | 2.859375 | 3 | [] | no_license | #!/usr/bin/env bash
cmd="do-super"
if [ ! `which lsof` ]; then
echo "Missing lsof command"
cmd="$cmd sh -c \"netstat -lptu&& netstat -tulpn && ss\""
else
cmd="$cmd sh -c \"lsof -i&& netstat -lptu&& netstat -tulpn && ss\""
fi
echo "> $cmd"
eval $cmd
| true |
fd987d7d888f11a28f4052bebe44fbbdcff472f8 | Shell | AdamStawarz/scripts | /stress_tools/cassandra-stress/test-cassandra-gaussian.sh | UTF-8 | 10,192 | 2.8125 | 3 | [] | no_license | #!/bin/bash
USER=$1
SCYLLA_HOST=$2
test_mode=$3
#USER=root
#SCYLLA_HOST_INTERNAL=10.100.53.133
# SCYLLA_HOST=( 147.75.107.46 147.75.107.30 147.75.193.234 )
# SCYLLA_HOST_INTERNAL=( 10.100.53.133 10.100.53.131 10.100.53.129 )
#SCYLLA_HOST=147.75.107.46
#test_mode=$2
STRESS_NUM=14
#NUM_KEYS=18000000
NUM_KEYS=9000000
... | true |
e76370f4a496fea2c41bfbfc84830fd6b7b049ce | Shell | encryptme/private-end-points-docker | /test.sh | UTF-8 | 3,646 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash -ux
REG_KEY="${REG_KEY:-}"
API_URL="${API_URL:-}"
SSL_EMAIL="${SSL_EMAIL:-}"
PEP_IMAGE="${PEP_IMAGE:-}"
BRANCH="${BRANCH:-}"
STATS_SERVER="${STATS_SERVER:-}"
REMOTE_USER="${REMOTE_USER:-}"
REMOTE_HOST="${REMOTE_HOST:-}"
REMOTE_HOST_IP="${REMOTE_HOST_IP:-}"
fail() {
echo "! ${1:-error}" >&1
exit ... | true |
8dd83a9389e9e8a941e50b9e97398dc122a353ef | Shell | GavinNL/linux_fun | /file_image_mount/run | UTF-8 | 524 | 3.578125 | 4 | [] | no_license | #!/bin/bash
#create a blank file which is 10Mb in size
dd if=/dev/zero of=$PWD/file.img bs=1M count=10
#format the file as an ext4 file system
mkfs.ext4 file.img
# make the mount point
mkdir mnt
# mount it in the folder
sudo mount -o loop file.img $PWD/mnt
# We need to change the permissions of the folder otherwis... | true |
59e5686d1a4c93be6d41ebbcba043117127c5c8d | Shell | leam18/dockerS1 | /EntornoDockerS1.sh | UTF-8 | 622 | 3.15625 | 3 | [] | no_license | #!/bin/bash
#Crea la imagen de Composer, instala las dependencias requeridas y luego borra el container
echo "Creando imagen de composer e instalando dependencias..."
docker build -f DockerfileComposer . -t alpinecomposer:latest 2>&1 >/dev/null && docker run --rm -v $(pwd):/var/www alpinecomposer "composer install" ... | true |
c1996cdc9e39a8b84687bcd1606e199b00431890 | Shell | theos/templates | /build.sh | UTF-8 | 716 | 3.984375 | 4 | [
"CC0-1.0"
] | permissive | #!/usr/bin/env bash
set -e
if [[ "$#" -gt 1 || "$1" == "--help" || "$1" == "-h" ]]; then
echo "Usage: $0 [template_name|-h|--help]"
exit 1
fi
if [[ "$#" == 1 ]]; then
templateName="$1"
fi
# For each directory containing one or more valid NIC templates' source
templateDirs=$(find . -type d -name NIC -exec dirname... | true |
aaea10f716fae88442d486dfb4546328d78981b7 | Shell | PoCta/PCF-demo | /ci/tasks/ft.sh | UTF-8 | 1,767 | 3.890625 | 4 | [] | no_license | #!/bin/sh
inputDir= outputDir= artifactId= packaging= inputManifest=
# optional
hostname=$CF_MANIFEST_HOST # default to env variable from pipeline
echo "hello ut test"
while [ $# -gt 0 ]; do
case $1 in
-i | --input-dir )
inputDir=$2
shift
;;
-o | --output-dir )
outputDir=$2
... | true |
b9ed2ad9cbb44c86553ca000629cb83dd6eda0d2 | Shell | evoltech/sympa | /tools/configfixin/topicfix | UTF-8 | 621 | 3.46875 | 3 | [] | no_license | #!/bin/sh
# Written by micah to deal with topics having commas at the end
# 07/15/03
# Updated by micah to deal with "Argument list too long" error - 07/27/03
listsdir=/crypt/sympa/expl
for list in `find $listsdir -maxdepth 3 -type f -name config \
| xargs egrep "topics .*,$" | cut -d/ -f6`
do
topic=`cat $lis... | true |
662decda2269f998f92a96b7bf501930a1b7c5f8 | Shell | Qarik-Group/buildkite-cloudfoundry-demo-app | /ci/agent/linode-stackscript.sh | UTF-8 | 3,198 | 3.5625 | 4 | [] | no_license | #!/bin/sh
# This script is the StackScript for Linode
exec >/var/log/stackscript.log 2>&1
set -eux
# <UDF name="buildkite_token" Label="Buildkite account token" />
# <UDF name="buildkite_spawn" Label="The number of agents to spawn in parallel" default="5" />
# <UDF name="buildkite_secrets_bucket" Label="[optional] ... | true |
08a6065b6bc588281b5d8a3f581e8047977862e4 | Shell | lukschwalb/Dotfiles | /scripts/o | UTF-8 | 456 | 3.25 | 3 | [] | no_license | #!/bin/bash
#########################################################
#Script Name : o (stands for open)
#Description : Executes the command you enter and
# detaches it from the current shell
#Args : No limit, just the command e.g. : o echo test
#Author : Luk Schwalb
#Email :... | true |
beaac77e75256a8dba1911f8791d78b64ce6ad21 | Shell | Qwaz/ctf-env-setup | /optional/qemu.sh | UTF-8 | 634 | 2.65625 | 3 | [] | no_license | $INSTALL gdb-multiarch qemu binfmt-support qemu-user-static
update-binfmts --display
if [ $KERNEL_OPT -eq 1 ]; then
echo 0 | $SUDO tee /proc/sys/vm/mmap_min_addr
echo "vm.mmap_min_addr = 0" | $SUDO tee /etc/sysctl.d/mmap_min_addr.conf
fi
$SUDO mkdir -p /etc/qemu-binfmt
# apt-cache search '^libc6-[^-]+-cross... | true |
6b97ee53782f22a2daff0822fed52e63b4bbe2d1 | Shell | google/filament | /third_party/libsdl2/build-scripts/strip_fPIC.sh | UTF-8 | 454 | 3.453125 | 3 | [
"Zlib",
"Apache-2.0",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
#
# libtool assumes that the compiler can handle the -fPIC flag
# This isn't always true (for example, nasm can't handle it)
command=""
while [ $# -gt 0 ]; do
case "$1" in
-?PIC)
# Ignore -fPIC and -DPIC options
;;
-fno-common)
# Ignore -fPIC and -DPIC o... | true |
8b60cd624f26aa2f7da955085d730915cc7425c1 | Shell | PhilippMolitor/server-dotfiles | /.bashrc | UTF-8 | 3,182 | 3.640625 | 4 | [] | no_license | #################
# Bash settings #
#################
# stop if non-interactive
case $- in
*i*) ;;
*) return;;
esac
# load bash completion
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
source /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completio... | true |
67f179674d50f250a7d4c9b18ed065abad494a65 | Shell | yangcs1596/ycs_test | /脚本/sdelasticsearch | UTF-8 | 2,653 | 3.734375 | 4 | [] | no_license | #!/bin/bash
# Copyright www.safedog.cn @ 2017
# by 1057 (lvxj@safedog.cn)
# Check if user is mybk
[ $(whoami) != "mybk" ] && { echo "ERROR: This script must be run as mybk"; exit 1; }
# Default
es_instances="elasticsearch1 elasticsearch2"
# Config File
. /home/mybk/mybk.cfg &> /dev/null
[[ $es_enable != 1 ]] || [ "$l... | true |
751a398560960c6e12ed27090b21381eaed94d4d | Shell | Asmageddon/dotfiles | /bin/screenshot | UTF-8 | 626 | 3.515625 | 4 | [] | no_license | #!/bin/bash
# TODO: Check in order: flameshot, scrot, imagemagick
# ImageMagick:
#timestamp="$(date +%d.%m.%Y"_shot_"%H:%M:%S)"
#targetbase="$HOME/Pictures/screenshots"
#mkdir -p $targetbase
#[ -d $targetbase ] || exit 1
#import -window root -quality 98 $targetbase/$timestamp.png
if [[ $(command -v flameshot) != "" ]... | true |
94ff699d1879c90e72a14127bcb16e0acb90c48f | Shell | nivyaal/OS-HW1 | /tests/alice/drive-download-20210420T150016Z-001/t.sh | UTF-8 | 189 | 2.890625 | 3 | [] | no_license | #!/bin/bash
for i in {1..7}; do
diff test${i}.out test${i}.exp > diff${i}
if ! [[ -s diff${i} ]]; then
echo "test $i PASSED! yayyy"
else
echo "test $i failed"
fi
done | true |
c638ee93e4ada8bd24be875e973eb28483bf9d59 | Shell | alex-shumilov/dotfiles | /.bash_it_custom/nvm.bash | UTF-8 | 300 | 2.875 | 3 | [] | no_license | # shellcheck shell=bash
# vi: set ft=sh:
if [ -d "$HOME/.config/nvm" ]; then
export NVM_DIR="$HOME/.config/nvm"
elif [ -d "$HOME/.nvm" ]; then
export NVM_DIR="$HOME/.nvm"
fi
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && source "$NVM_DIR/bash_completion"
| true |
ec2f48f3312a555da693b8d10cfc9a157c9d3398 | Shell | sjawhar/nts-rss-feed | /deploy.sh | UTF-8 | 181 | 2.9375 | 3 | [] | no_license | #!/bin/sh
set -e
docker-compose run --rm generator
read -p "Commit and push? " commit
if [ "${commit}" = "y" ]; then
git add -p
git commit -m "Update feed.xml"
git push
fi
| true |
eb993bad7b757a790acd0743aa004041d0b42a7a | Shell | RichardBronosky/dotfiles | /.bash_quick-setup.sh | UTF-8 | 334 | 2.71875 | 3 | [] | no_license | cat >> ~/.bashrc << EOF
for f in .bash_aliases .bashrc.env.ext .bashrc.man.ext .bashrc.hist.ext .bashrc.tmux.ext; do
if [ -f $(cd "$(dirname "$BASH_SOURCE")"; pwd)/\$f ]; then
source $(cd "$(dirname "$BASH_SOURCE")"; pwd)/\$f
fi
done
EOF
mkdir ~/.vim
ln -s $(cd "$(dirname "$BASH_SOURCE")"; pwd)/.vim/vimrc.... | true |
bb1a5e926029c174cf81e909bf2ca8ed8bbbf8d4 | Shell | Prashu94/Learnings | /LinuxP/ost-exam/Decimal to Binary.sh | UTF-8 | 175 | 3.109375 | 3 | [] | no_license | #Decimal to Binary
clear
echo " enter the decimal number"
read b
bin=0
while [ $b -ne 0 ]
do
r=`expr $b%2|bc`
b=`expr $b/2|bc`
bin=$r$bin
done
bin=`expr $bin/10|bc`
echo $bin
| true |
77f5d16fdd335427802fbd90469f173f890b51ac | Shell | SussexUCU/ogustools | /search_for.sh | UTF-8 | 765 | 4.46875 | 4 | [] | no_license | #/bin/bash
#
# Search for string "foo" in PDF files, writing result to file foo.txt
usage() { echo "Usage: $0 [-h] [-i] [-o <output_directory>] <string> " 1>&2; }
CASE=""
OUT_DIR=""
DATE_TIME=`date -u "+%Y-%m-%d_%H-%M"`
while getopts ':hio:' option
do
case "${option}"
in
i) CASE=-i
;;
o) OUT_DIR=${OPTARG}/
;;
h) usa... | true |
3e57de622b37e254d01f64fddbfdbea2cad9dc6b | Shell | maxxwave/dipole | /submit_gpu | UTF-8 | 766 | 2.671875 | 3 | [] | no_license | #!/bin/bash
#$ -notify
# Job name
#$ -N test
# Request Queue
#$ -q tesla.q
#$ -l gpu=1
#$ -l proc_type=intel*
#$ -l h_rt=48:00:00
# Export current environment
#$ -V -cwd
#$ -j y
user=`id -un`
nodes=$HOSTNAME
scratch=/scratch/$user/$JOB_ID
#====================================================
# Copy data to... | true |
7a23bc290ac3272106f21de236c2ac349bc43b04 | Shell | fnareoh/jellyfish | /scripts/remote.sh | UTF-8 | 1,336 | 3.65625 | 4 | [] | no_license | #!/bin/bash
# number of frames to render
NB_FRAMES=120
nb_hosts=0
while read host ; do
nb_hosts=$((nb_hosts + 1))
done < scripts/hosts.list
echo "---" $nb_hosts "hosts found"
echo "--- Update remote sources"
while read host ; do
ssh -n $host 'rm -rf /tmp/jelly && mkdir -p /tmp/jelly' &
done < scripts/hosts... | true |
09224bd51a89cc186bf3f881073f335d6c93fce9 | Shell | nvm-sh/nvm | /test/fast/Aliases/lts/'nvm alias' should ensure LTS alias dir exists | UTF-8 | 355 | 3.265625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
set -ex
\. ../../../../nvm.sh
\. ../../../common.sh
LTS_ALIAS_PATH="$(nvm_alias_path)/lts"
rm -rf "${LTS_ALIAS_PATH}"
die () { echo "$@" ; exit 1; }
[ ! -d "${LTS_ALIAS_PATH}" ] || die "'${LTS_ALIAS_PATH}' exists and should not"
nvm alias >/dev/null 2>&1
[ -d "${LTS_ALIAS_PATH}" ] || die "'${LTS_ALIAS... | true |
0018e1316d41cd4b7d4f89cb5c249c679f08e1eb | Shell | xlhyy/Zero_book | /kv/超一线上布代码相关/deploy_pub_android.sh | UTF-8 | 2,590 | 3.390625 | 3 | [] | no_license | #!/bin/sh
# main
if [ $# -ne 1 ]; then
echo "Usage: `basename $0` <version_tag>"
exit 1
fi
tag=$1
# example r0.00.00.00
reg="^r[0-9]\.[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}$"
if [ ! `echo $tag | grep -E $reg` ]; then
echo "version error example r0.0.0.0"
exit 1
fi
WORK_DIR=$(cd "$(dirname "$0")"; pwd)
... | true |
c0def85faf29526deef717529e5a78333ec5f012 | Shell | dmnur/tupe | /ch3/ex3-18/bundle | UTF-8 | 324 | 3.765625 | 4 | [] | no_license | #!/bin/sh
# bundle: group files into distribution package
# (from section 3.9)
# Modified for exercise 3-18: include with each file the information
# garnered from `ls -l`.
echo '# To unbundle, sh this file'
for i
do
echo "cat >&2 <<'EOF'"
ls -l $i
echo EOF
echo "cat >$i <<'End of $i'"
cat $i
echo "End of $i"
d... | true |
9ba6a3e73310f95a87443527a2982a07cf57cfce | Shell | kumattau/gitapps | /git-restore-timestamp | UTF-8 | 1,779 | 3.703125 | 4 | [] | no_license | #!/bin/sh
LANG=C
IFS='
'
if [ $# -eq 0 ]
then
set .
fi
while [ 0 -lt $# ]
do
obj=$1
for sub in `find "${obj}" -print`
do
# check "not" git metadata directory
if echo "${sub}" | grep -q -E '(^\.git|/.git/|/.git$)'
then
continue
fi
if [ ! -d "${su... | true |
43e0d8d22afeb246380e4379ae8474a452982ff2 | Shell | lanceshelton/Avere | /src/tutorials/ArtistAnywhere/ArtistWorkstation/Linux/15.Machine.sh | UTF-8 | 449 | 2.6875 | 3 | [
"CC-BY-4.0",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | #!/bin/bash
set -ex
cd /usr/local/bin
echo "export CUEBOT_HOSTS=$renderManagerHost" > /etc/profile.d/opencue.sh
if [ "$teradiciLicenseKey" != "" ]; then
yum -y install https://downloads.teradici.com/rhel/teradici-repo-latest.noarch.rpm
yum -y install epel-release
yum -y install usb-vhci
yum -y insta... | true |
d28173b7341180c6048c559845c12d5f90c91ad6 | Shell | labaneilers/dk | /install.sh | UTF-8 | 557 | 3.609375 | 4 | [] | no_license | #!/bin/bash
cd $(dirname "$0")
if [ "$DK_DIR" = "" ]; then
DK_DIR="$HOME/bin"
fi
DK_BIN_PATH="$DK_DIR/dk"
echo "Installing dk to $DK_BIN_PATH..."
mkdir -p ~/bin
curl -s -f -S -o "$DK_BIN_PATH" https://raw.githubusercontent.com/labaneilers/dk/master/dk
ERROR="$?"
if [ ! "$ERROR" = "0" ]; then
echo "Failed t... | true |
917988a10a7d09f5e598c88c1cbd08a4680e06ee | Shell | WhitewaterFoundry/pengwin-setup | /rpm/pengwin-setup.d/terminal.sh | UTF-8 | 4,918 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# shellcheck source=./common.sh
source "$(dirname "$0")/common.sh" "$@"
declare wHome
declare SetupDir
function main() {
# shellcheck disable=SC2155
local menu_choice=$(
menu --title "Terminal Menu" --checklist --separate-output "Select the terminals you want to install\n[SPACE to select, ENTER... | true |
ce95d4008b201f810b62037fffee4f4251b731be | Shell | housel/catkin | /bin/catkin_util.sh | UTF-8 | 1,685 | 3.4375 | 3 | [] | no_license | TMPDIR=$PWD/.tmp/$$
# /bin/echo "$0 will be working in temporary dir $TMPDIR"
initializeANSI()
{
esc=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[40m"; redb=... | true |
10de4c4675dfc295243a3b0b642d6b77c860c4f8 | Shell | yu-ichiro/.settings | /defaults.sh | UTF-8 | 5,125 | 2.546875 | 3 | [] | no_license | #! /bin/zsh
# ================================================================================
# 【For Mac】MacOS.sh : Setup MacOS
# ================================================================================
if [[ "$(uname)" != "Darwin" ]] ; then
echo 'Not macOS!'
exit 1
fi
echo 'Setup MacOS'
# ===========... | true |
63dd084d8e682402e87cb9b81d561b3fd870d4d4 | Shell | s6088/Local-Search | /plse/all.sh | UTF-8 | 394 | 2.625 | 3 | [] | no_license | make
#g++ qwh.cpp -o a
#grid size
for i in 70
do
#fixed percent
for j in 70
do
truncate -s 0 o.txt
printf "$i sq grid with $j percent fixed \n"
for eachfile in in/PLSE-$i-$j-0/*
do
./a $eachfile $i >> o.txt
done
echo -n "avrg time : "
awk '{ total1 += $2 } END { print total1/100 }' o.txt
echo -n "avrg vi... | true |
f8dbcfa034362e2df49719ea2efb38287bd27483 | Shell | qq944463782/InjectDylib | /resign_script.sh | UTF-8 | 1,328 | 2.59375 | 3 | [] | no_license | rm -rf Payload
rm -rf SampleNOF-Signed.ipa
unzip -q SampleNOF.ipa
rm -rf __MACOSX
rm -rf Payload/SwiftSupport
find . -name '.DS_Store' -type f -delete
#read -p "enter to continue"
rm -rf Payload/SampleNOF.app/_CodeSignature
#read -p "enter to continue"
cp embedded.mobileprovision Payload/SampleNOF.app/embedded.mob... | true |
d298ac4bfa8df722fa3191806819af20e19ed47a | Shell | orcasound/orca-noise-analysis | /setup-data-dirs.sh | UTF-8 | 443 | 2.578125 | 3 | [
"MIT"
] | permissive | # setup-data-dirs.sh
#
# Set up data directory structure in the local root directory
# (explicitly not in the repository, to avoid hitting the 100MB Github limit)
# for temporary storage of audio and ais data during processing
#
# Should eventually add some logic to ensure there isn't any data/strucutre that gets over... | true |
48bf680d2ca3c604216b009b089b7abf25372d16 | Shell | Ste74/manjaro-tools | /lib/util-iso-image.sh | UTF-8 | 10,887 | 3.703125 | 4 | [] | no_license | #!/bin/bash
#
# 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; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without ev... | true |
4a866107a5f29782a5a5e8e378031571e432e246 | Shell | lpf7551321/script_shell | /quota_check_mini.sh | UTF-8 | 1,278 | 3.5 | 4 | [] | no_license | #!/bin/sh
cd
#used=`df -h . | awk '{print $5}' | sed -n '2p' | sed 's/%//g'`
exit_code=1
# status
minFS=""
minSize=""
minUsed=""
minAvail=""
minUsage=100
minMounted=""
for disk in `df -h | awk '{print $6}' | awk '/mnt/'|sed '1i /'`
do
#echo '***********'
cd $disk
usage=`df -h . | awk '{print $5}' | sed -n '2p... | true |
9a685411cc2c8f7cb00dc8acedd6425273ce1d67 | Shell | caguerra/Burkardt-Fortran-90 | /f_src/wave_mpi/wave_mpi.sh | UTF-8 | 252 | 2.703125 | 3 | [] | no_license | #! /bin/bash
#
mpifort -c -Wall wave_mpi.f90
if [ $? -ne 0 ]; then
echo "Compile error."
exit
fi
#
mpifort wave_mpi.o
if [ $? -ne 0 ]; then
echo "Load error."
exit
fi
rm wave_mpi.o
mv a.out $HOME/bin/wave_mpi
#
echo "Normal end of execution."
| true |
0bc9f812ef8fa4687ce41fa80bb1b14a8e524820 | Shell | jacob975/deep_learning | /get_2mass_GCQE.sh | UTF-8 | 990 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# Abstract:
# This is a program for retrieve data from the GCQE 2MASS table.
# Usage:
# get_2mass_GCQE.sh [input wise table]
# Output:
# 1. The SEDs of sources.
# 2. The coordinates of sources.
# 3. The Quality label of sources.
# Editor:
# Jacob975
#
# ##################... | true |
c5bf553f507a33b6043f3ea0acde39ca072343c3 | Shell | Rotuladores/twitsim | /mp | UTF-8 | 261 | 3.4375 | 3 | [] | no_license | #!/bin/bash
# Make Push
git add . -n
echo -n "Confirm? [y/n]: "
read CONFIRM
if [ "$CONFIRM" == "y" ]; then
git add .
echo -n "Write commit message and press [ENTER]: "
read MESSAGE
git commit -m "$MESSAGE"
git push -u origin master
else
echo "Abort."
fi | true |
1a4f461a96c654ffb78d8cf35bf206ef28044d97 | Shell | lamiru/reactor | /deploy/_release | UTF-8 | 676 | 2.84375 | 3 | [] | no_license | #!/bin/bash
set -e
source ./.common
sudo su -p <<HERE
set -e
source ~/.bash_profile
# Python version
pip install --upgrade pip==$PIP_VERSION
# Extract project
mv $PROJECT_DIR/media /home/ec2-user
rm -rf $PROJECT_DIR
mkdir $PROJECT_DIR
tar -xzf /home/ec2-user/$PROJECT_NAME.tar.gz -C $PROJECT_DIR
mv /home/ec2-user/med... | true |
18cffc7f23d2b221f6422b0dc7be3954b805d87c | Shell | stnmrshx/bakufu | /etc/init.d/bakufu.bash | UTF-8 | 1,575 | 3.84375 | 4 | [
"WTFPL"
] | permissive | #!/bin/bash
# bakufu daemon
# chkconfig: 345 20 80
# description: bakufu daemon
# processname: bakufu
#
#
#
DAEMON_PATH="/usr/local/bakufu"
DAEMON=bakufu
DAEMONOPTS="--verbose http"
NAME=bakufu
DESC="bakufu: MySQL replication management and visualization"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
ulim... | true |
6401a649a94e0ddf46035a682013583498256a5a | Shell | fcandido/docker-day2 | /appserver/monitoring/graph/get_cpu_info.sh | UTF-8 | 2,567 | 3.8125 | 4 | [] | no_license | #!/bin/bash
#
# get_cpu_info This shell script gets cpu information from a linux server
# using free.
#
SERVER=`hostname`
MCONNECT="/usr/bin/mcacheconnect"
STAT="/proc/stat"
GREP='/bin/grep'
EXPR=`which expr`
COUNT=0
LOCKFILE="/tmp/get_cpu_info.lock"
if [ -f $LOCKFILE ]; then
echo "Script $0 is al... | true |
a797faa429a6296b6283848bcd516f754e6638d9 | Shell | emryan1/eosio-web-ide | /setup_hokietoken.sh | UTF-8 | 319 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
echo "=== start of first time setup ==="
# change to script's directory
cd "$(dirname "$0")"
SCRIPTPATH="$( pwd -P )"
echo "=== clone system contracts ==="
git clone https://github.com/EOSIO/eosio.contracts --branch v1.7.0 --single-branch
echo "=== setup hokietok ==="
scripts/init_blockchain.sh | true |
9794db6490006e3a0beb4a74a73b00b07bb05c59 | Shell | LiQingLeo/java-cef-build | /make-release-version.sh | UTF-8 | 522 | 3.453125 | 3 | [] | no_license | #!/bin/bash
{
# Pattern taken from https://bitbucket.org/chromiumembedded/cef/issues/2596/improve-cef-version-number-format#comment-50679036
export CEF_VERSION=$(perl -n -e '/^\s*set\s*\(CEF_VERSION\s+"((?:\d+\.?){3}\+g\w+\+chromium-(?:\d+\.?){4})"\s*\)/i && print "$1"' "$1/CMakeLists.txt")
echo -e '\n\nChanges'
... | true |
2d4b3630bc82145816af5b4f1173fb22afecb9fb | Shell | krlmlr-archive/r-snap | /install.sh | UTF-8 | 520 | 3.359375 | 3 | [] | no_license | #!/bin/sh
set -e
set -x
APPNAME=r-snap
APPDESC=R
BINPATH=R/bin
log() {
echo $* >> /dev/stderr
}
clone() {
( cd $SNAP_CACHE_DIR/$APPNAME && git pull && git checkout . && git clean -fdx )
}
clone_or_pull() {
if ! clone; then
rm -rf $SNAP_CACHE_DIR/$APPNAME
git clone https://github.com/krlmlr/${APPNAME}... | true |
2da4349fc85b9138f75bc16fb6a0e8aabf82f538 | Shell | FTeichmann/soundex_metric_search | /benchmark.sh | UTF-8 | 753 | 3.21875 | 3 | [] | no_license | #!/bin/bash
###############################################
# Run intensive benchmark tests from here #
###############################################
declare -i lines=10;
declare -i thresholds=0;
threshold=0.0;
threshholds=0;
testData="./labels_en.nt"
testDataUrl="http://downloads.dbpedia.org/3.9/en/labels_en.nt.bz2... | true |
7586fd0190a4911d5b3d5589d61b0dd674de8db5 | Shell | fossabot/kevlar-repo | /salt/apply-state.sh | UTF-8 | 1,035 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# TBD trap on error
# for debug
# showgrains=1
# echo=echo
# dryrun="test=True"
# loglevel=debug
loglevel=info
saltdir=$(cd "$( dirname "${BASH_SOURCE[0]}" )" &>/dev/null && pwd)
${echo} salt-call \
--config-dir "${saltdir}/config/" \
grains.setval username $(whoami)
${ech... | true |
f6ecb6473fefc71142dd1ebcffbd9f32faf11fbc | Shell | akauppi/just-solve | /tools/port-is-free.sh | UTF-8 | 342 | 3.84375 | 4 | [] | no_license | #!/bin/bash
#
# Usage:
# <<
# $ tools/port-is-free.sh <port>
# <<
#
# Returns as success, if 'port' is available; with non-zero if taken
#
# Requires:
# - curl
#
if [ $# -eq 0 ]; then
echo "Usage: $0 port"
exit 1
fi
_PORT=$1
curl -o /dev/null --silent --fail http://localhost:$_PORT
RC=$?
if [[ $RC -eq 0... | true |
61229c1b62c24f108cd3122300ce20886ffe5e5c | Shell | sodeon/dotfiles | /ubuntu/bin/hardware/toggle-tv-power | UTF-8 | 486 | 3.5 | 4 | [] | no_license | #!/usr/bin/bash -ue
tv=192.168.0.106
if [ $1 == "on" ]; then
cmd='turn_on'
elif [ $1 == "off" ]; then
cmd='turn_off'
else
exit 1 # Error. Support on/off arguments only
fi
for i in 0 1 2 3 4 5; do
# When triggered by resuming from sleep, network may not be available. Add service polling to alleviate.
... | true |
3ecf8c33c627e978c3b906ed3b11e926e356c379 | Shell | fidian/bin | /wavtomp3 | UTF-8 | 411 | 3.53125 | 4 | [] | no_license | #!/bin/bash
IN="$1"
OUT="$2"
if [ -z "$IN" ]; then
echo "Specify a wav to convert"
exit
fi
if [ -z "$OUT" ]; then
OUT="`echo "$IN"|rev|cut -d '.' -f 2-|rev`.mp3"
fi
lame -Sh --vbr-new -V 2 "${IN}" "${OUT}"
if [ $? -eq 1 ]; then
# ffmpeg: While I don't like it (can't set good VBR), it does convert
# troubleso... | true |
6b234e3ef52cfb5418a81184c3c2945b6102f329 | Shell | zonginator/github-contributors | /deploy.sh | UTF-8 | 304 | 2.78125 | 3 | [] | no_license | #!/usr/bin/env sh
if [[ "$DEPLOY_KEY" ]]; then
GIT_SSH_COMMAND='ssh -i $DEPLOY_KEY'
fi
BUILD_NUMBER=${SNAP_PIPELINE_COUNTER:-DEV}
rm -rf deploy
git clone git@github.com:zonginator/zonginator.github.io.git deploy
cp -r dist/* deploy
cd deploy && git commit -am "Deploying build $BUILD_NUMBER" && git push | true |
a47bc9527f52f9be72e957575ec20d5b3eb391a0 | Shell | gecos-team/gecosws-installation-disk-generator | /config/var/gensys/live-build/gecosv2-14.04/scripts/build/rebuild_mount_squashfs_chroot | UTF-8 | 1,350 | 3.734375 | 4 | [] | no_license | #!/bin/sh
## live-build(7) - System Build Scripts
## Copyright (C) 2006-2013 Daniel Baumann <daniel@debian.org>
##
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.
# Incl... | true |
38fc9212251d778530d7f6264f26028987bf4a96 | Shell | openhdf/hdftoolbox | /usr/lib/enigma2/python/Plugins/Extensions/HDF-Toolbox/scripts/all-hbbtv.sh | UTF-8 | 2,810 | 3.3125 | 3 | [] | no_license | #!/bin/sh
line=$(grep -e et4000 -e et8000 -e et10000 /etc/enigma2/boxinformations)
boxtype=$(grep getBoxType /etc/enigma2/boxinformations | cut -d "=" -f 2)
echo Boxtype =$boxtype
if [[ -n "$line" ]]
then
if [ -f /usr/local/NXBrowser/launcher ]; then
echo
echo -n "HbbTV Browser found ... remove from$boxtype"
o... | true |
3d0d41a1a22f77006521702a2f80971c74a2ec34 | Shell | emeentag/followermaze-realtime-com-server | /run.sh | UTF-8 | 588 | 3.03125 | 3 | [] | no_license | #!/bin/bash
export CONCURRENCY_LEVEL=0 \
LOG_LEVEL="off" \
REGISTRATION_SERVER_PORT=9099 \
EVENT_RECEIVER_SERVER_PORT=9090
PROD="--prod"
JAR_PATH=build/libs/followermaze-server-all-1.0.jar
if [ \( "$1" = "$PROD" \) -a \( "$#" -ne 0 \) ]
then
if [ -f "$JAR_PATH" ]
then
echo "Application ja... | true |
dc5565c8cb5c1ad688eb66ab92ca14d87ff20095 | Shell | l3nz/toonverter | /convert_folder.sh | UTF-8 | 141 | 3.171875 | 3 | [
"MIT"
] | permissive | #! /bin/bash
if [ -z "$1" ]; then
echo "Please enter a folder to convert"
exit 1;
fi
find $1/* -exec ./convert_xvid.sh '{}' \;
| true |
b7dab901e791a4d7ada69ca14e93eddc064cf7b5 | Shell | cjalmeida/test-batch | /21-create-batch-resources.sh | UTF-8 | 730 | 3.234375 | 3 | [] | no_license | #!/bin/bash
set -e
. ./variables.sh
. ./password.sh
echo "loging to batch service"
az batch account login -g $RESOURCE_GROUP -n $BATCH_ACCOUNT
echo "create batch pool. We'll use a JSON file to specify advanced"
echo "container configurations"
envsubst '$POOL_ID $CLIENT_ID $CLIENT_SECRET $ACR_REGISTRY' < ./pool_confi... | true |
a1182a0da8b13aeef129b53e542cf40d6f799b17 | Shell | bluesquall/lcm-syslog | /java/run-lcm-spy.sh | UTF-8 | 316 | 2.59375 | 3 | [] | no_license | #!/bin/bash
LPATH=${1:-../process-management-lcmtypes}
JPATH=${2:-/tmp/lcmtypes}
find $JPATH -type f \( -name "*.java" -o -name "*.class" \) -delete
find $LPATH -type f -name "*.lcm" -exec lcm-gen --java --jpath $JPATH {} \;
find $JPATH -type f -name "*.java" -exec javac -cp $JPATH {} \;
CLASSPATH=$JPATH lcm-spy
| true |
c1a4ab842fa9a4d2318d195836b0d12bbd50f5cc | Shell | jantomec/BEAM-App | /scripts/build_lin_gnu.sh | UTF-8 | 381 | 3.640625 | 4 | [
"MIT"
] | permissive | if [ "$1" = "" ]
then
echo "No filename. Correct usage: bash scripts/build_lin_gnu.sh filename.f90"
exit
fi
file="${1##*/}"
filename="${file%.f90}"
LIST1=""
for file in lib/*.o
do
LIST1=$LIST1" "$file
done
LIST2=""
for file in lapack/lib/*.o
do
LIST2=$LIST2" "$file
done
gfortran -Ilib -Ilapack/lib $1 $LIST2... | true |
7475b4b8e565d43371ee93fae107f2e0f89112d2 | Shell | garage-env/garage-env | /install | UTF-8 | 312 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eu
INSTALL_DIR="$HOME/.garage"
garage_install() {
[ -e "$INSTALL_DIR" ] || mkdir "$INSTALL_DIR"
curl -L https://github.com/juniorz/garage-env/archive/master.tar.gz | tar -C $INSTALL_DIR --strip-components 1 -xzvf -
echo "Add ~/.garage/cli/ to you PATH"
}
garage_install "$@"
| true |
e48309131c85fd77693e8024871c49ee3aa50ebc | Shell | vncloudsco/bitnami-docker-ghost | /3/debian-10/rootfs/run.sh | UTF-8 | 375 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# shellcheck disable=SC1091
. /opt/bitnami/base/functions
. /opt/bitnami/base/helpers
USER=ghost
START_COMMAND="ghost start && ghost log -f"
export NODE_ENV=production
cd /opt/bitnami/ghost || exit 1
# If container is started as `root` user
if [ $EUID -eq 0 ]; then
exec gosu ${USER} bash -c "${STA... | true |
2a040a3cd21979435a09895c19859f5233c561d7 | Shell | netarchivesuite/netsearch | /netarchive-arctika/src/test/resources/ssh_test_script.sh | UTF-8 | 199 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Dummy script that ignores all processing and reports that all jobs succeds
#
# Input: solr warc*
echo "Solr: $1"
shift # Ignore Solr
for W in "$@"; do
echo "0 $W"
done
| true |
9215ed89b5b46d63c98235b26b080f10af520815 | Shell | veip007/hj | /hj.sh | UTF-8 | 7,945 | 2.828125 | 3 | [] | no_license | #!/usr/bin/env bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
sh_ver="2.1.3"
#0升级脚本
Update_Shell(){
sh_new_ver=$(wget --no-check-certificate -qO- -t1 -T3 "https://raw.githubusercontent.com/veip007/hj/master/hj.sh"|grep 'sh_ver="'|awk -F "=" '{print $NF}'|sed 's/\"//g'|he... | true |
044c4201067983e03351ea8306e5ec5cd8b587f5 | Shell | HumboldtWirelessLab/brn-testbed | /brn-testbed-driver.sh | UTF-8 | 3,222 | 3.40625 | 3 | [] | no_license | #!/bin/sh
PATH=$PATH:/testbedhome/testbed/software/openwrt/backfire-x86/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/usr/bin
PATH=$PATH:/testbedhome/testbed/software/openwrt/backfire-mips/staging_dir/toolchain-mipsel_gcc-4.1.2_uClibc-0.9.30.1/usr/bin
PATH=$PATH:/testbedhome/testbed/software/openwrt/backfire-wn... | true |
a2666771f8d3b847157f8593d1ae9fa57349f3d8 | Shell | ECP-WarpX/WarpX | /.github/workflows/source/inputsNotTested | UTF-8 | 1,003 | 4.09375 | 4 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause-LBNL"
] | permissive | #!/usr/bin/env bash
# Search input files in Examples/ and verify if all input files are tested
set -eu -o pipefail
ok=0
for file in $(find Examples -type f)
do
# Name of file without path
filename=$(basename $file)
# If file is an input file
if [[ ${filename:0:6 } =~ inputs ]] ||
[[ ${f... | true |
58cd325c5bcaf56d2821966ecaf4450b7fca3802 | Shell | pkafma-aon/subnet | /build_deb.sh | UTF-8 | 1,162 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
SCRIPT_BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
BUILD_DIR=${1%/}
if [ -f "${BUILD_DIR}" ]; then
echo "Cannot build into '${BUILD_DIR}': it is a file."
exit 1
fi
if [ -d "${BUILD_DIR}" ]; then
rm -rfv ${BUILD_DIR}/*
fi
mkdir -pv ${BUILD_DIR}/src/github.com/twitc... | true |
d4af7e8b9c7637be79157ea295802b5e9219f732 | Shell | ashok24r/miniproject | /component/gerrit_tracker/cleanup.sh | UTF-8 | 246 | 2.625 | 3 | [] | no_license | cleanup_location=$1
echo "Cleaning up requests"
find $cleanup_location -iname "*.txt" -mmin +5 -exec rm -f {} \;
find $cleanup_location -iname "*.json" -mmin +5 -exec rm -f {} \;
find $cleanup_location -iname "*.html" -mmin +5 -exec rm -f {} \;
| true |
245857ccc5d11421878d7a405382a63678d9808a | Shell | openstack-yak/dev-multinode | /multinode.sh | UTF-8 | 5,412 | 2.78125 | 3 | [] | no_license | #!/bin/bash
source ~ubuntu/counts.sh
GLOBALS_FILE=/etc/kolla/globals.yml
DOCKER_SERVICE=/etc/systemd/system/docker.service
INVENTORY=~ubuntu/kolla/ansible/inventory/multinode
DISK=/dev/vdc
PRIMARY_IP=$(hostname -I | awk '{ print $1 }')
# echo "${PRIMARY_IP} $(hostname)" | sudo tee -a /etc/hosts %>/dev/null
chmod 0... | true |
bae1e990433170592bff7896ee825fc3745396c9 | Shell | stayhsfLee/tc-all | /bin/webapp/server-stop.sh | UTF-8 | 1,236 | 3.9375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#if [[ "admin" != $(/usr/bin/whoami) ]]; then
# echo "only executable under admin user, exiting";
# exit 1;
#fi
SCRIPT_NAME=$0;
BIN_DIR=`dirname ${SCRIPT_NAME}`;
MS_HOME=$(cd ${BIN_DIR}/..; pwd);
MAIN_CLASS="com.thenorthw.tc.web.Main"
PID_FILE="${MS_HOME}/.tcserver.pid"
function is_alive()
... | true |
dfdfbcad541a751b2749a22a1b24c3ab41f121c1 | Shell | anikchowdhury440/EmployeeWageComputation | /empWageComputation.sh | UTF-8 | 1,009 | 3.71875 | 4 | [] | no_license | #!/bin/bash -x
# CONSTANTS FOR THE PROGRAM
IS_PART_TIME=1
IS_FULL_TIME=2
MAX_HRS_IN_MONTH=100
EMP_RATE_PER_HR=20
NUM_WORKING_DAYS=20
#VARIABLES
totalEmpHrs=0
totalWorkingDays=0
function getWorkingHours(){
case $1 in
$IS_FULL_TIME)
empHrs=8
;;
... | true |
ba403fc079deb240760fe254b6a6e6e0074b015f | Shell | strengthen8/python_tools | /API状态监控/api_request_of_last_hour_statics.sh | UTF-8 | 671 | 2.890625 | 3 | [] | no_license | #!/usr/bin/bash
host=`/usr/local/zabbix/sbin/zabbix_agentd -t agent.hostname | sed -n 's/.*|\(.*\)]/\1/p'`
demo_log_dir='/data/logs/nginx/demo/'
day=`date +%Y%m%d_`
h=`date +%H`
file_time=`date +%Y%m%d_%H -d '-1 hours'`
last_h=`expr $h - 1`
file_date=${day}'*'${last_h}
demo_file=`find ${demo_log_dir} -name access_${... | true |
1da11a6bd446fdb252bcbfb90a3c6bab662b48ea | Shell | GNU-Pony/netcfg | /src/globals | UTF-8 | 3,009 | 4.21875 | 4 | [] | no_license | #!/bin/bash
# /usr/lib/networks/globals
#
# All +x files in /usr/lib/network/hooks will be sourced when this file is.
# Hook files can override any of the utility functions defined here for custom
# behavior (such as logging error messages to syslog). This lets us keep netcfg
# simple but gives it the flexibility for ... | true |
d52cdaf3ae868fd09aab7dbe1182630b94e9be6a | Shell | WormBase/website-classic | /cgi-perl/ontology/browser_lib/launch_ontology_sockets.sh | UTF-8 | 1,025 | 3.125 | 3 | [] | no_license | #!/bin/bash
# This shell script launches socket servers that support
# browsing of the various ontologies at WormBase
# Usage:
# launch_ontolgy_sockets.sh /path/to/obo/dir /path/to/socket/dir WSVersion
BINDIR=/usr/local/wormbase/cgi-perl/ontology/browser_lib
SOCKET=/usr/local/wormbase/sockets
WSVERS=$1
DBDIR=/usr/l... | true |
5ded012badd9a97eacd48e2219bd68bc42dbf6d7 | Shell | Kingsford-Group/lrassemblyanalysis | /src/biosample_isoseq.sh | UTF-8 | 3,215 | 3.859375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# Laura Tung
#
# Perform isoseq full analysis for a dataset corresponding to a BioSample.
# First, create the merged subreads dataset from all the SRA Runs of current BioSample before performing the full analysis.
#
# Usage: biosample_isoseq.sh <BioSample_ID> <Top_dir> <Organism>
#
# <BioSample_ID>: BioS... | true |
df11ee11e9c1b648e10f4829c7823ee32d3198ff | Shell | dkirker/modeswitcher | /control/prerm | UTF-8 | 1,046 | 2.6875 | 3 | [] | no_license | #!/bin/sh
# Handle execution as pmPostInstall.script
if [ -z "$IPKG_OFFLINE_ROOT" ]; then
IPKG_OFFLINE_ROOT=/media/cryptofs/apps
mount -o remount,rw /
fi
SRV_ID=org.e.lnx.wee.modeswitcher.srv
SRV_DIR=/media/cryptofs/apps/usr/palm/services/${SRV_ID}
SYS_ID=org.e.lnx.wee.modeswitcher.sys
SYS_DIR=/media/cryptofs/ap... | true |
581da7a3c2c84e6571695ac459f0f2bb928960ba | Shell | ossimlabs/o2-pushbutton | /openshift/disconnected/containers/bundle-images.sh | UTF-8 | 388 | 2.640625 | 3 | [] | no_license | #!/bin/bash
pushd `dirname ${BASH_SOURCE[0]}` >/dev/null
BUNDLE_IMAGES_SCRIPT_DIR=`pwd -P`
popd >/dev/null
DESTINATION_DIR=$1
mkdir -p ${DESTINATION_DIR}/docker-images
docker save ansible|gzip -c>${DESTINATION_DIR}/docker-images/ansible.tgz
docker save httpd|gzip -c>${DESTINATION_DIR}/docker-images/httpd.tgz
docker s... | true |
17555ed0fe03383a8b29fcd1da11bb93230a2b87 | Shell | johnchaussard/skeletor | /scripts/scan_all_for_prepare.bash | UTF-8 | 420 | 3.140625 | 3 | [] | no_license | #!/bin/bash
if [ ! $# -eq 2 ]
then
echo "usage: " $0 "shape skeleton_directory"
exit 1
fi
List="$(ls $2/*.pgm)"
~/Progs/collapse/bin/div2 $1 4 temp_script
sub $1 temp_script temp_script
inverse $1 temp_inv
for i in ${List[*]};
do
name=`echo $i | sed s/".pgm"//g`
sub temp_script $i temp_res.pgm
add temp_res.pg... | true |
c7dcdab11b09189626d0125a1206e7dd99e4c734 | Shell | amazurenko/nexus-scripts | /provision.sh | UTF-8 | 1,650 | 3.984375 | 4 | [] | no_license | #!/bin/bash
# A simple example script that publishes a number of scripts to the Nexus Repository Manager
# and executes them.
# fail if anything errors
set -e
# fail if a function call is missing an argument
set -u
while getopts u:p:h: option
do
case "${option}"
in
u) username=${OPTARG};;
p) password=${OPTARG};;... | true |
d3372c6ad38215534250c8bde688057976980f23 | Shell | extremevn/gradledeputil | /tools/git/config.sh | UTF-8 | 258 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#Set branch type name prefix. If value is "feature|bug|hotfix" then branch name must be start with "feature" or "bug" or "hotfix"
# So branch "feature/task_123" is valid but not "task_123" or "task/123"
export BRANCH_TYPE_NAME="feature|bug|hotfix"
| true |
591660026b5031f6d0913ce1d6d8fa008f5b9c5f | Shell | xpjiang/physics-recon | /simulations/moba_T1_simu.sh | UTF-8 | 2,412 | 2.984375 | 3 | [] | no_license | #!/bin/bash
#
# Copyright 2020. Uecker Lab, University Medical Center Göttingen.
#
# Authors: Xiaoqing Wang and Nick Scholand, 2020
# nick.scholand@med.uni-goettingen.de
# xiaoqing.wang@med.uni-goettingen.de
#
set -e
export PATH=$TOOLBOX_PATH:$PATH
if [ ! -e $TOOLBOX_PATH/bart ] ; then
echo "\$TOOLBOX_PATH is not ... | true |
d0976d44ebee911dc64547e9c3029db0ac8a7526 | Shell | ee12lmb/TextureStrength | /shell/run_IR.sh | UTF-8 | 3,477 | 3.5625 | 4 | [] | no_license | #!/bin/bash
# Script runs index_repeat from command line
# See relevant documentation in function (/project/souce/dev/...)
# Output filename is always placed in: /project/analysis/outputs/IR
function usage()
{
echo "Usage: run_IR.sh [ infile ] [ step ] [ no. grains ] [ repeat ] [ seed ] [ crystal ] [ index ] [ bin s... | true |
7f2edd5e2a5cc50c28ef90b92605e0a5826ae634 | Shell | pcopfer/ansible-duplicity | /templates/backup_dup.sh | UTF-8 | 1,093 | 3.859375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Backup with Duplicity
if [ "`whoami`" != "root" ]; then
echo 'Only root can run "backup"!' >&2
exit 1
fi
#
# read the configuration file, it defines
# * $BACKUP_MOUNT
# * $BACKUP_CREDENTIALS
if [ -z $1 ] || [ $1 == '-h' ];
then
echo "Usage: backup_mount.sh PATH \n PATH is PATH for .backuprc "
... | true |
f5b223aeddb4a6ecc681379c21cb4a660751fd90 | Shell | seema1611/Shell_Script | /Functions/isPrimePalindrome.sh | UTF-8 | 1,382 | 4.375 | 4 | [] | no_license | #!/bin/bash
#Program to findout first number is prime and then palindrome and last palindrome is also a prime
#Check here number is Prime or NOT
function isPrime() {
number=$1
check=1
for (( i=2; i<$number; i++ ))
do
if [ $(($number % $i)) -eq 0 ]
then
check=0
fi
done
echo $check
}
#Check here Number... | true |
c98fea633ab53aa5978fc0ae2cd7927534694817 | Shell | Facj/Update_sw | /Tests/reset_for_test.sh | UTF-8 | 3,069 | 3.546875 | 4 | [] | no_license | #!/bin/bash
cd /home/fatima/Raspi_sw/Update_sw/Tests
#----------------------------------------------------------------------------------------------
#
# This script restores the conditions to start the update system testing.
# It restores v 1.0.0 in the repo folder of the both users whose name is received as a parame... | true |
ce18c1fc227a847dc84aee7ec1e34e3d5d0e40e7 | Shell | amaurer/patagonia-image-processing | /createCatalog | UTF-8 | 1,570 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
cd /Users/andrew/webfiles/patagonia-image-processing
secrets=`cat secrets.txt`
echo "$secrets"
# Remove existing files
echo Remove existing files
rm -rf ./dest/*
rm -rf ./todo/*
# Copy files from remote server to local
echo Mount...
mount_smbfs //$secrets@v33/storage/Dropbox/Patagonia/Catalog ./tmpmnt
d... | true |
bbda2f9b720b225b1bd755f13f7677d86a8943dc | Shell | halhenke/gist-bin-pub | /pdf-metadaten-leeren-exif-pdftk/pdf-metadaten-leeren-exif-pdftk.sh | UTF-8 | 652 | 3.5625 | 4 | [] | no_license | #!/usr/bin/env bash
# Remove PDF metadata with pdftk and exiftool
shopt -s nocaseglob
[[ -e ./tmp ]] && { echo "There is already a tmp dir." 1>&2 ; exit 1 ; }
[[ -e ./pdf_new ]] && { echo "There is already a pdf_new dir." 1>&2 ; exit 1 ; }
mkdir -- ./tmp ./pdf_new
cp -- ./*.pdf ./tmp
while IFS= read -d '' -r
do
... | true |
9b035e9e6d53c6ba48ef5c68d02c8ae8c2c55289 | Shell | EdwardOst/bash-explore | /array/array_scope.sh | UTF-8 | 699 | 3.125 | 3 | [] | no_license | declare -a myarr_outside=( x y )
function myfunc() {
declare -a -g myarr=( value1 value2 )
# implicit local scope
declare -a myarr_local=( value1 value2 )
declare -a myarr_outside=( value1 value2 )
echo "myarr inside: ${myarr[@]}"
echo "myarr_local inside: ${myarr_local[@]}"
echo "myarr_... | true |
a0271c0e4b7b1f233bd2e965a0c865cce0bf5983 | Shell | Lars139/Archive | /CS344/HW4/Homework4/time_bash | UTF-8 | 142 | 2.71875 | 3 | [] | no_license | #!/bin/bash
x=1
nt=10
while [ $x -le 4 ]
do
./sieve -q -t 1000 -n 100 -p $(($nt * $x)) --color=always | less -r
wait
x=$(($x+1))
wait
done
| true |
7795e755e1072b59b263d24ccc9463969d37dc65 | Shell | shanedenecke/ABC_scan | /SLC_scan/SLC_id_scripts/SLC_HMM_Search.sh | UTF-8 | 4,531 | 3.625 | 4 | [] | no_license | #!/usr/bin/env bash
### add help
if [ "$1" == "-h" ]; then
echo "
Welcome ! This shell script is designed to search SLC transporters in non-model arthropods
Arguments:
-database: starting database. Pathw to folder of model species you will use to search target species
-target: path to target species p... | true |
3839de1c4acf45e344e79c05b4a7fcbda197f248 | Shell | Jeanhwea/spring-docs-builder | /assets/setup.sh | UTF-8 | 694 | 3.1875 | 3 | [] | no_license | SPRING_GIT_REPO=${SPRING_GIT_REPO:="https://github.com/spring-projects/spring-framework.git"}
set -e
log() {
echo "$(TZ='Asia/Shanghai' date +'%F %T'): $*"
}
chmod +x /assets/entrypoint.sh
log "Cloning source code ..."
git clone -q $SPRING_GIT_REPO /assets/source
cd /assets/source && \
git reset --hard v5.2.5.R... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.