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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
70a0f34373e2047bc57c6767dd1f6bab70b00c51 | Shell | SampurnR/ICR-R | /installations.sh | UTF-8 | 2,105 | 3.046875 | 3 | [] | no_license | #!/bin/bash
# Program: installations.sh
# Created by: Sampurn Rattan
# Purpose: Install tesseract 3.04 (with its training tools), along with its dependencies
# Version : 1.0
# Date: 2016-12-24
# Dependencies:
# 1. R (>3.0)
# 2. All other dependencies are being installed here
#
# Modification History:
#
#... | true |
180f70ef95887451ac737e64b47b3234ffe00c3e | Shell | wmchad/NetworkResearch | /Shell/Common/DataParsing/MSCstep5-TowerFinal.sh | UTF-8 | 1,175 | 2.625 | 3 | [] | no_license | # This script calls a scala file to pull out just the fields needed
# for analyzing data at the tower level
# It then combines the resulting files into the TowerFinal directory
# under CDR_chad
# The final file has the following fields, semicolon delimited:
# Year (YYYY)
# Month (MM)
# Day (DD)
# Hour (HH)
# ... | true |
fe0cd30d1a0013e0f831911715b65e77db5fdae0 | Shell | KeyserSoze1/goestools | /scripts/setup_raspbian.sh | UTF-8 | 932 | 3.9375 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
#
# Setup environment for cross-compilation for Raspbian.
#
set -e
target_dir="xcompile/raspbian"
mkdir -p "${target_dir}"
cp -f "$(dirname "$0")/files/raspberrypi.cmake" "${target_dir}"
# Checkout tools repository if needed
if [ ! -d "${target_dir}/tools" ]; then
git clone https://github.com/raspber... | true |
f6f308c8b2ffbc54add05f583e5feb2d94d69d44 | Shell | bjoris33/humanGutConj_mSystems | /bin/resume_adult_binning.sh | UTF-8 | 1,665 | 3.109375 | 3 | [] | no_license | #!/bin/bash
##############
# Author: Ben Joris
# Created: May 22nd, 2020
# Purpose: For adult dataset, map to already created bowtie databases, bin with metabat2
##############
newarray=( SRR5650151 SRR5650152 SRR5650153 SRR5650154 SRR5650155 SRR5650156 SRR5650157 SRR5650158 SRR5650159 )
for samplepath in ${newarray[... | true |
352b6f6c5c784b52bbeabbe7bb5c3a06a845ddbf | Shell | musq/dotfiles-old | /src/os/install/macos/gpg.sh | UTF-8 | 508 | 2.796875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh" \
&& . "./utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n GPG\n\n"
./../gpg.sh
brew_install "GPG" "gpg"
brew_install "GPG 2" "gpg2"
# gpg-agent is removed because it is redundant... | true |
0c34094bced01704566d116ba1e83e76dcefae07 | Shell | imxieke/scripts | /sh/functions.sh | UTF-8 | 7,477 | 3.5625 | 4 | [
"Unlicense"
] | permissive | #!/usr/bin/env bash
# @Author: imxieke
# @Date: 2021-09-29 21:34:58
# @Last Modified by: imxieke
# @Last Modified time: 2021-11-13 23:05:13
# 字符转大写
strtoupper()
{
echo $1 | tr '[a-z]' '[A-Z]'
}
# 字符转小写
strtolower()
{
echo $1 | tr '[A-Z]' '[a-z]'
}
# 字符大小写反转
strtolower()
{
echo $1 |tr '[a-zA-Z]' '[A-Za-z]'
}
... | true |
0b7274bc7e85127489781f42b846298f29165679 | Shell | jinlongchen/stappler-deps | /android/jpeg-android.sh | UTF-8 | 1,209 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# Android/ARM, armeabi (ARMv5TE soft-float), Android 2.2+ (Froyo)
CFLAGS="-Os"
CONFFLAGS="--enable-shared=no --enable-static=yes --with-pic=yes"
ORIGPATH=$PATH
LIBNAME=jpeg
ROOT=`pwd`
Compile () {
mkdir -p $LIBNAME
cd $LIBNAME
ARCH=$1
NDKABI=$2
TARGET=arm-linux-androideabi
if [ "$1" == "x86" ]; then
TA... | true |
885cb08421944adce84b578a2546638fe9cc5400 | Shell | supar/3proxy-debian-package | /debian/postinst | UTF-8 | 482 | 3.015625 | 3 | [] | no_license | #!/bin/sh
# postinst script for lbweb-admin
#
# see: dh_installdeb(1)
set -e
SYSTEMNAME=proxy3
if ! id -u $SYSTEMNAME > /dev/nul 2>&1; then
echo asdfasdf
adduser --system --no-create-home --disabled-login --group $SYSTEMNAME
fi
UID=`id -u $SYSTEMNAME`
GID=`id -g $SYSTEMNAME`
chown $UID:$GID -R /etc/3proxy
chow... | true |
6886fdf002a779927dad496c2627779d7059b91a | Shell | ansell/ala-gbif-merge | /reprocess-acacia-longifolia.sh | UTF-8 | 4,969 | 3.078125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
set -e
set -x
#INPUT_FOLDER="/media/sf_HostDesktop/LeeBelbin_ALAGBIFMerge/FromLee/"
INPUT_FOLDER="./Source-Files/"
OUTPUT_FOLDER="./"
mkdir -p "${OUTPUT_FOLDER}"
CSVSUM_PATH="../csvsum/"
DWCA_UTILS_PATH="../dwca-utils/"
# Stage 1: Acacia longifolia from ALA
ACACIA_ALA_OUTPUT_FOLDER="${OUTPUT_FOLDER}Mappe... | true |
0a1948e8cd71b3cfcaa3fb0a01a0b0d293b0517e | Shell | jmandrade/project_member | /project_member.sh | UTF-8 | 403 | 3.09375 | 3 | [] | no_license | #!/bin/bash
EMAIL=$(gcloud auth list --filter=status:ACTIVE --format="value(account)")
echo "Active user account is $EMAIL"
echo "Obtaining list of projects with member access..."
for PROJECT in $(\
gcloud projects list \
--format="value(projectId)" )
do
gcloud projects get-iam-policy $PROJECT --format="json" |... | true |
310936bbdc9414c095025d6c0d8a0215210b3f88 | Shell | OrenBochman/knesset-data-pipelines | /devops/db_backup/provision_resources.sh | UTF-8 | 1,804 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
if [ "${1}" == "" ] || [ "${2}" == "" ]; then
echo "provision all required google cloud resources to handle db backup and restore"
echo "usage: devops/db_backup/provision_resources.sh <SERVICE_ACCOUNT_NAME> <STORAGE_BUCKET_NAME>"
exit 1
fi
if [ "${CLOUDSDK_CORE_PROJECT}" == "" ] || [ "... | true |
a268cb29bd7acdbbd52b279d969d94c7e3308bfc | Shell | adityareddy93/4103-102-OpSys-Kankanala | /assignments/homework-01/sum_args.sh | UTF-8 | 88 | 2.734375 | 3 | [] | no_license | #!/bin/bash
echo command_args.sh
b=0
for i in $*
do
b=$(expr "$i" + "$b")
done
echo $b
| true |
db0cf8d1ce32d04cdf32f82661ae295de78fe85b | Shell | eranfuchs1/DI_Bootcamp | /Week4/Day3/daily_challenge/command.sh | UTF-8 | 294 | 3.125 | 3 | [] | no_license | #if [ -z "$1" ]; then echo "usage: $0 <shift value>"; exit 1; fi
test () {
if [ -z "$(diff <(cat test.txt | python untitled.py encrypt $1 | python untitled.py decrypt $1) test.txt)" ]; then echo 'works'; else echo "doesn't work"; fi;
}
for i in {-200..200}; do echo $(test $i) with $i; done
| true |
4c9c043dcfdc2e88b308a32d9c9805e184f8fa0a | Shell | kiriakos/kandc-stash | /app/protected/tests/test-on-filechange.sh | UTF-8 | 94 | 2.6875 | 3 | [] | no_license | #! /bin/bash
dir=`dirname $0`
cd "$dir"
while inotifywait ../../
do
./test.sh $@
done
| true |
c252bcbf740ed9a0dbb77ab42e66f2bdfe9b5b80 | Shell | groffhibbitz/music_tools | /create_album_folders.sh | UTF-8 | 585 | 3.359375 | 3 | [] | no_license | #!/bin/bash
IFS=$'\t\n'
#i="340498_Waves_And_Sun_African_Waves_Mix_Dorfmeister.mp3"
for i in *.mp3; do
#if this mp3 doesn't have id3v2 information, only id3v1 info, then convert the tag
tag=`id3v2 -l $i | grep "id3v2"`
if [ -z $tag ]; then
echo "converting id3 tag"
id3v2 -C $i
fi
album=`id3v2 -l $i | grep ... | true |
7a8d6acfbef2956553f7327900ad69eab951b1dd | Shell | ChristinaB/Incubating-a-DREAM | /Sauk_DHSVM_modeldata/formatted_stn_Sauklist_DHSVM.sh | UTF-8 | 944 | 2.9375 | 3 | [] | no_license | #!/bin/sh
# use awk to format input for DHSVM
## run command example "./formatted_stn_Sauklist_DHSVM.sh Sauk_94CentroidVICpoints_UTM.csv Sauk_94CentroidVICpoints_inputlist.txt"
# gmauger,cband Jan-Feb 2016
# cband, cbev Nov 2016
incsv=$1
outfl=$2
# clear output file, if exists already:
\rm -f $outfl
# skip header... | true |
f19fc2994e71bd15f556b505d20eab8771a374b5 | Shell | mikowiec/hs-collection1 | /hs-mini-httpd/run.sh | UTF-8 | 200 | 2.828125 | 3 | [] | no_license | #!/bin/sh
while true; do
echo Compiling.
ghc --make httpd.hs
if [ $? != 0 ]; then
read r
else
echo Starting.
./httpd -d $HOME/public_html
echo Restart!
sleep 1
fi
done
| true |
deb85699e02b353349d2302e764e3188b08b7757 | Shell | rIIh/portfolio-mevn | /deploy-traefik.sh | UTF-8 | 650 | 3.484375 | 3 | [] | no_license | # Compose file path
COMPOSE=docker-compose.traefik.yml
# Remote url first argument
export REMOTE=${1:?"Provide remote"}
# Registry url second argument. Default is url registry.yourremote.com
# Passed to compose file as variable
export REGISTRY=${2:-"registry.${REMOTE}"}/
echo Building images
docker-compose -f $COMPO... | true |
8836e95580de0dd5baf78dbad777c1081e897d74 | Shell | elifesciences/data-pipeline-sql-prototype | /airflow/install-dev.sh | UTF-8 | 384 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
# removing old virtual environment, if any
pipenv --rm || true
rm -rf venv || true
# install develop and default dependencies
pipenv install --dev
# create venv link for convenience
ln -s $(pipenv --venv) venv
# install csv-generator and db-manager from source
source venv/bin/activate
cd ../cs... | true |
d9503af75e7c19d083ecd258514acd018e908c97 | Shell | elitonluiz1989/ubuntu-instalador | /sources/criarProjeto.sh | UTF-8 | 1,307 | 3.609375 | 4 | [] | no_license | #!/usr/bin/env bash
criarProjeto() {
echo "---> Defina o nome do projeto:"
read projeto
if [ -z "${projeto}" ]; then
echo "---> Nome do projeto está vazio."
echo "---> Deseja reinserí-lo? (S/n)"
read reiniciar
if [ -z "${reiniciar}" ] || [ "${reiniciar,,}" == "s" ]; then
criarProjetos
else
echo "-... | true |
872fa33a7daedb7032bb752f41299ba2a1d82e74 | Shell | metalshreds/rpi_urine_monitoring | /installer.sh | UTF-8 | 2,331 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
# This is an installer script for Rpi Urine Monitor station
# It is based on the MagicMirror2 installer script.
echo -e "\e[0m"
echo ''
echo 'Installing Rpi Urine Monitor'
echo ''
echo -e "\e[0m"
# Determine which Pi is running.
ARM=$(uname -m)
# Check the Raspberry Pi version.
if [ "$ARM" !=... | true |
33874c40941132240eefda8b3d24bf1733b7ce44 | Shell | vbba/empty | /tools/trailer_export.sh | UTF-8 | 895 | 2.828125 | 3 | [] | no_license | prefile="tmp_prefile";
printf "%10s %20s\n" "cidNum" "当前文件专辑个数";
printf "%10s %20s\n" "commonNum" "和上个文件专辑相同的个数";
printf "%10s %20s\n" "delNum" "只在上个文件存在的专辑个数";
printf "%10s %20s\n" "cidNum" "只在当前文件存在的专辑个数";
printf "%40s %10s %10s %10s %10s\n" "fileName" "cidNum" "commonNum" "delNum" "addNum"... | true |
a2b0361051661f6bcbfa542e8f71c9b5dffffb73 | Shell | jerome9189/lotus-leaf | /scripts/test.sh | UTF-8 | 1,676 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# A script that runs unit tests.
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source "${ROOT}/scripts/shflags"
DEFINE_boolean "debug" ${FLAGS_FALSE} "Whether to run unit tests in a debugger." "d"
DEFINE_string "envroot" "${ROOT}/src/server/env" "The server environment root." "e"
DEFINE... | true |
88986e2a9604593109a920808a1aea684aa48096 | Shell | iocCN/docker | /compiler/officiald/builder.sh | UTF-8 | 443 | 2.828125 | 3 | [] | no_license | #! /bin/bash
set -eo pipefail
repo=$1
branch=$2
commit=$3
reponame=iocoin
#dpkg -s libboost-dev | grep Version # Version: 1.65.1.0ubuntu1
#dpkg -s libminiupnpc-dev | grep Version #Version: 1.9.20140610-4ubuntu2
# build core
#git clone $repo ${reponame}
git clone --single-branch --branch $branch $repo ${reponame}
cd ... | true |
e8361b2a8918f29e4c652cdfe7b5db32aa78ec1a | Shell | yuioksk/private_directory | /jk.sh | UTF-8 | 426 | 3.0625 | 3 | [] | no_license | #backup files
echo ""
echo "spath and d path"
src="/home/e1027/saranya/"
targ="/opt/backup/"
echo ""
echo "Enter Directory Name"
read dirname
if [ ! -d "/home/e1027/saranya/$dirname" ]
then
echo "File doesn't exist. Creating now"
mkdir /home/e1027/saranya/$dirname
echo "File created"
else
echo "File ex... | true |
3be008304d438fcd4a283e197bbb79cc771b4838 | Shell | ut-ims-robotics/warnie | /warnie/scripts/run_user_study.sh | UTF-8 | 2,524 | 3.796875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
RED="\e[31m"
YELLOW="\e[33m"
GREEN="\e[32m"
BOLD="\e[1m"
NL="\n"
RESET="\e[39m\e[0m"
# Success/failure control function
check_success() {
if [[ $? != 0 ]]; then
echo -e $RED$BOLD$1". Exiting"$RESET
exit
fi
}
ROBOSEMIOTICS_PTH=~/robosemiotics_study
WARNIE_PTH=/home/robert/catkin_ws/src/warnie/... | true |
6626e55f9585bdeb55326c4dce167312619bacf5 | Shell | heychick/master | /oracle.sh | UTF-8 | 3,668 | 2.984375 | 3 | [] | no_license | #!/bin/bash
ip = `ifconfig ens3|awk '/netmask/ {print $2}'`
hostnamectl set-hostname oracle
hostname oracle
echo $ip oracle >> /etc/hosts
echo "#####安装包及yum源#####"
yum -y install zip unzip wget ftp xhost gcc glibc sysstat elfutils-libelf-devel compat-libstdc++-33 gcc-c++ libaio-devel unixODBC unixODBC-devel
wget -O /... | true |
e2a54a541c57ddd51aec6136cd4a9e1229a75343 | Shell | FangnaF/docker-jpeg2lxfml | /start.sh | UTF-8 | 345 | 2.75 | 3 | [] | no_license | #!/bin/bash
wget $IMAGE_URL -O input.jpeg
# Add Java class to system Java & execute
javac Jpeg2Lxfml.java
java Jpeg2Lxfml input.jpeg
# Install gist gem to create gists from file
gem install gist
# Upload anonymous gist to GitHub
gist input.jpeg.lxfml
echo "Navigate to gist URL and save text as <name_of_image>.lxf fi... | true |
0a94c92adc1a71b7068738f067c38913b825c9f2 | Shell | tmellan/scripts_ThomasHPC | /1innerBatch.pbs | UTF-8 | 855 | 3.09375 | 3 | [] | no_license | #!/bin/bash -l
#$ -S /bin/bash
#$ -N inner4loop
#$ -l mem=12G
#$ -l tmpfs=12G
#$ -pe mpi 120
#$ -l h_rt=00:19:00
#$ -cwd
dir=`pwd`
vaspdir="/home/mmm0011/src/VASP_5.4.4/vasp_5.4.4_stable_6May2017/bin"
pwd
cd $dir
pwd
#Lets make a script to run 5 set of jobs in parallel each usng 1 node (24 cores), and once the five h... | true |
b3fee949bc7e599586edb7a7129fdc5c84064aae | Shell | langmead-lab/recount-projects | /old/allen/get_meta.sh | UTF-8 | 265 | 3.09375 | 3 | [] | no_license | #!/bin/bash
d=$(dirname $0)
set -ex
study=allen
srp=SRP061902
get_metadata() {
pushd $d/../../src
python -m metadata.sradbv2 search "study_accession:${srp}" --gzip --output ${study}.json
popd
mv $d/../../src/${study}.json.gz $d/
}
get_metadata
| true |
f77a686d021aee5c8b0c229970287acaf1942d83 | Shell | samwhelp/archcraft-adjustment-prototype | /project/archcraft-adjustment-prototype-ctrl/PKGBUILD | UTF-8 | 1,128 | 2.890625 | 3 | [
"MIT"
] | permissive |
##
## * https://wiki.archlinux.org/title/Creating_packages
## * https://wiki.archlinux.org/title/Arch_User_Repository
## * https://archlinux.org/groups/x86_64/base-devel/
## * https://wiki.archlinux.org/title/pacman
## * https://wiki.archlinux.org/title/makepkg
## * https://wiki.archlinux.org/title/PKGBUILD
## * https... | true |
2b79d72a93726c420d1e15d741f2ab0ca208a1e3 | Shell | hplewa/cs342 | /hw3/fileinfo | UTF-8 | 165 | 2.640625 | 3 | [] | no_license | #!/bin/bash
if [[ $# < 1 ]]; then
echo "Usage: fileinfo <filepath> [additional filepaths..]" 1>&2;
exit 1;
fi;
java -cp bin:lib/pdfbox-app-2.0.6.jar Main $@ | true |
64666d68d49cc0c10c5dc6a37ecc57b3c43fead3 | Shell | delkyd/alfheim_linux-PKGBUILDS | /gst-plugins-base-git/PKGBUILD | UTF-8 | 1,422 | 2.65625 | 3 | [] | no_license | # Original Package: Jan de Groot <jgc@archlinux.org>
# Maintainer: Lubosz Sarnecki <lubosz@gmail.com>
pkgname='gst-plugins-base-git'
pkgver=1.13.0.1.15990.7e94d2824
pkgrel=1
pkgdesc="GStreamer Multimedia Framework Base Plugins"
arch=('i686' 'x86_64')
license=('LGPL')
makedepends=('pkgconfig' 'gstreamer-git' 'orc' 'lib... | true |
47114f50d229028e8cca8216414ab984c9d583f9 | Shell | austindyoung/dotfiles | /setup.sh | UTF-8 | 582 | 3.140625 | 3 | [] | no_license | #!/usr/bin/env bash
cd `dirname $BASH_SOURCE` && source resources/bootstrapping.sh
source dotfiles/lib/shellrc/functions.sh
case `uname` in
'Darwin')
source resources/osx.sh
source resources/brew.sh
;;
'Linux')
source resources/apt-get.sh
;;
esac
function install_powe... | true |
199b1dd127b37d3bfbc57fc8443fdaafad2e5822 | Shell | ybayart/42-ft_services | /setup.sh | UTF-8 | 2,382 | 3.09375 | 3 | [] | no_license | ##########################
## INIT ##
##########################
#rm -rf ~/.minikube/ ~/goinfre/minikube
#mkdir ~/goinfre/minikube
#ln -s ~/goinfre/minikube ~/.minikube/
if [ `uname -s` = 'Linux' ]
then
VMDRIVER="docker"
VMCORE=2
else
VMDRIVER="virtualbox"
VMCORE=4
fi
minikube start --vm-driver=$V... | true |
48333cec27b167c1599687874b790f9d898e6a33 | Shell | fullmei/rpi3-arm64-ubuntu | /buildfirmware.sh | UTF-8 | 355 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
cd build
D=$(pwd)
mkdir boot
git clone --depth 1 -b stable https://github.com/raspberrypi/firmware.git
cp -r firmware/boot/* $D/boot
rm $D/boot/*.dtb
rm $D/boot/*kernel*
rm -rf firmware
cd $D/rootfs/lib
sudo git clone --depth 1 https://github.com/rpi-distro/firmware-nonfree.git
sudo mv firmware-nonfree firmwa... | true |
a9bcec45c70024599304e064e4891ee66edbf8ec | Shell | sandervanvugt/bash-scripting | /script11 | UTF-8 | 385 | 3.734375 | 4 | [] | no_license | #!/bin/bash
COUNTER=$1
COUNTER=$(( COUNTER * 60 ))
minusone()({
COUNNTER=$(( COUNTER - 1 ))
sleep 1
}
while [ $COUNTER -gt 0 ]
do
echo you still have $COUNTER seconds left
minusonne
done
[ $COUNTER = 0 ] && echo time is up && minusone
[ $COUNTER = "-1" ] && echo you now are one second late && minusone
while tr... | true |
a559e828aeeda5c7fd5e05a9dc9e7331fa7f458a | Shell | NitorCreations/aws-utils | /opt/nitor/template-snippets/nexus-userdata.sh | UTF-8 | 1,559 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -ex
# Copyright 2016-2017 Nitor Creations Oy
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | true |
f0ceb91cc37421dc1553134124a8bf2907981880 | Shell | ErickChacon/dotfiles-ubuntu-18 | /.local/bin/colors-terminal.sh | UTF-8 | 1,342 | 2.875 | 3 | [] | no_license | #!/usr/bin/env bash
# select a random palette
path_pals="$HOME/.palettes"
path_palname="$HOME/.palette-name.vim"
pal=$(cat $path_palname)
path_colors=$path_pals/$pal
# set up the terminal colors
profile=$(dconf read /org/gnome/terminal/legacy/profiles:/default)
full_profile=/org/gnome/terminal/legacy/profiles:/:${pro... | true |
aec628126677d8508874c8a649fa80ee9bb6ba60 | Shell | dearith/mfext | /adm2/templates/mfxxx.start | UTF-8 | 2,511 | 3.46875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
. ${MFEXT_HOME}/lib/bash_utils.sh
exit_if_root
if test "${1:-}" = "--help"; then
echo "usage {{MODULE_LOWERCASE}}.start [NOINIT]"
echo " => start the {{MODULE_LOWERCASE}} module"
exit 0
fi
NOINIT=0
if test "${1:-}" = "NOINIT"; then
NOINIT=1
fi
STARTUP_FLAG=`env |grep "^${MODULE}_STARTUP_... | true |
6940cdfa9f1601cdefd973cfdad0b7cceb3b8264 | Shell | gitgjt/jee-universal-bms | /main/deploy/bin/start.sh | UTF-8 | 738 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
BASEDIR="$(dirname $(readlink -f $(dirname "$0")))"
profile=""
port=""
if [ $# -eq 2 ] ; then
profile="-Dspring.profiles.active=$1"
port="-Dserver.port=$2"
fi
str=`jps | grep -i "BmsApplication" | awk -F ' ' '{print $1}'`
if [ ! -n "$str" ]; then
echo "back-site process has been dead"
else
... | true |
bd6fa7b7892d66a0c026e3434d1944c576b5beb7 | Shell | Clarence-pan/static-packer-demo | /install.sh | UTF-8 | 2,022 | 3.90625 | 4 | [] | no_license | #/bin/bash
cd "`dirname $0`"
if [ "$?" != "0" ]; then
echo "Cannot automatically switch to project root directory. Please switch by yourself and rerunt this script."
exit 1;
fi;
PROJECT_BASE="`pwd`"
echo Node version: `node --version`
if [ "$?" != "0" ]; then
echo "You must install node.js."
exit 1;
... | true |
1080a419f153c715751e277dbb4216a438442f30 | Shell | oemergenc/dotfiles | /.dot/aliases/aliases_helm.sh | UTF-8 | 828 | 2.765625 | 3 | [] | no_license | fhelm(){
ns=${1:-"omm"}
helm tiller run $ns -- helm list --all| sed -e '1,8d' | sed -e '$ d' | \
fzf \
--header="CTRL-Y/E/F/B to scroll preview, CTRL-S to copy release-name, CTRL-X to delete and purge, CTRL-C to exit" \
--preview="echo {} | sed 's/ .*//' | sed 's/[0-9]*//g' | xar... | true |
d73c4f83f719f46b39fa992714ce6b2e7a5ae76c | Shell | PacktPublishing/Python-Network-Programming | /Chapter21/21_5_open_contrail_compute_node.sh | UTF-8 | 750 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
##############################################################################
# Python Network Programming Cookbook, Second Edition -- Chapter - 12
# Adopted from https://github.com/Juniper/contrail-controller/wiki/Install-and-Configure-OpenContrail-1.06
####################################################... | true |
659d04ca378339af7f8c73fb8f19c72b1ce69352 | Shell | joekir/js-reversing-workbench | /volumes/scripts/illuminate.sh | UTF-8 | 236 | 2.859375 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
INPUT_FILE=`readlink -f $1`
pushd /opt/illuminate > /dev/null
./node_modules/@babel/cli/bin/babel.js --plugins "./illuminatejs/babel-plugin-deobfuscate/lib/illuminatejs.js" ${INPUT_FILE}
popd > /dev/null
| true |
f98b7502646d261f74090a2af0c9dcbdb25bc88a | Shell | JCVenterInstitute/HumanSubtractionDB1 | /run_Demo_subtraction.sh | UTF-8 | 3,265 | 3.671875 | 4 | [] | no_license | #!/bin/sh
# Here is a project-specific pipeline in script form.
# This script provides an example but it is specific to one dataset and one compute environment.
# The dataset is a subset of the JCVI data using Sendai virus.
# The compute environment is the SGE grid at JCVI.
SCRIPTDIR=$1
echo "ASSUME CORE SCRIPT DIREC... | true |
c1fed5554afb55dfd839fff3b2987376684d2653 | Shell | AndreasPK/bench_hc_libs | /libs/binary/driver.sh | UTF-8 | 1,578 | 3.671875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#Execute using ./driver <pathToGhc> [aliasForGhc [BuildFlags [FlagAlias]]]
#If any optional flag is given all flags before that must also be given.
set -x
LOG_DIR=benchResults
mkdir -p "$LOG_DIR"
LOG_DIR="../$LOG_DIR"
BENCHMARKS="get builder generics-bench put"
HC=${1:-ghc}
HC_NAME=${2:-vanilla}
HC_FLA... | true |
e01f666d0da7773c7f671785e88d50b48bc87d6e | Shell | DMBuce/clicraft | /src/etc/clicraft-starmade.conf.in | UTF-8 | 3,769 | 3.703125 | 4 | [
"BSD-2-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!bash
# This is an example clicraft configuration file for starmade servers. The
# format is bash, so configuration options take the form OPTION="value" (with
# no whitespace between the equals sign (=) ).
#
# This file is sourced from within clicraft before the default values are set,
# so you must take care to initi... | true |
ff589bf9295ac36366518dc03faaaafa2e24fca4 | Shell | akbiggs/Bombman | /compile.sh | UTF-8 | 405 | 3.125 | 3 | [] | no_license | #!/bin/bash
set -o errexit
DIR_PATH=`pwd`
JAR_PATH="$DIR_PATH/bombman.jar:$DIR_PATH/lib/*"
CLASS_PATH="$DIR_PATH/bombmanplayer"
BUILD_CLASS_PATH="$JAR_PATH:$CLASS_PATH"
SRC_PATH="$DIR_PATH/bombmanplayer/PlayerAI.java"
# Clean
rm -f "$CLASS_PATH/*.class"
# Compile
javac -classpath $BUILD_CLASS_PATH $SRC_PATH -verbose... | true |
fb546d917adb89e382d664cd4f393b5f252cb7ff | Shell | fasl/freenac | /bin/monitor_mysql_slave | UTF-8 | 4,055 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
#!/usr/bin/sh -x
#
# FILE: monitor_mysql_slave
#
# FUNCTION: Alert once every 15 mins, if replication dies
# USAGE: Call from cron, if an emails come, react!
# */5 7-18 * * 1-5 /opt/vmps/monitor_mysql_slave
#
# 2006.07.19/Sean Boran. Based on original from:
# http://forge.mysql.com/snippets... | true |
d40a72d7142a901e2dc2efc8170a0d5fd8249c3d | Shell | reposman/utils | /git/config.sh | UTF-8 | 243 | 2.796875 | 3 | [] | no_license | #!/bin/sh
function run {
echo "$@"
$@
}
gitc="git config"
run "$gitc pack.packSizeLimit 4m"
run "$gitc gc.auto 0"
if [ -z "$1" ] ; then
true
elif [ "-b" == "$1" ] ; then
run "$gitc core.compression 0"
run "$gitc pack.compression 0"
fi
| true |
06afd6c9bf30a1a5b9ea651f6e5d024b5b67512a | Shell | bediger4000/combinatory-logic | /runtests | UTF-8 | 1,247 | 3.484375 | 3 | [] | no_license | #!/bin/sh
ulimit -d `ulimit -a -H | grep data | sed 's/^..* *\([^ ][^ ]*\)$/\1/'`
ulimit -s `ulimit -a -H | grep stack | sed 's/^..* *\([^ ][^ ]*\)$/\1/'`
if [ ! -x ./cl ]
then
echo Compile ./cl first
exit 1
fi
if [ ! -d ./tests.output ]
then
mkdir ./tests.output
fi
for TNAME in tests.in/test.???
do
OUTPUT=`b... | true |
1a7b97c986f4ade05e33cdeb3c45827c8aa24dc9 | Shell | faerietree/shell__backup_using_git | /backup.all.sh | UTF-8 | 1,610 | 3.453125 | 3 | [] | no_license | #!/bin/bash
disks=
{
q # daten
,d # bilder
#,p # not included because this network disk is used to store not only the
#backups but also the bare shared repositories (accessible via SSH).
}
cd /
for d in $disks; do
echo "" >> backup.all.log
echo "Backing up disk: "$d >> backup.all.log
echo "Current wor... | true |
81ee86fcbbb4f9e2984e30d50ce070860149b365 | Shell | unique379r/Useful_code | /Whole_genome_alignment/lastzExample.sh | UTF-8 | 1,540 | 2.8125 | 3 | [] | no_license | #!/bin/bash
##############################################################################
# This is template batch script for calling lastz to make pairwise gene/genome
# alignments on ASU's Saguaro Cluster.
#
# Requires the Whole_Genome_ALignment scripts from the Avian Genome Project.
# git clone https://github.com... | true |
1c923674a8247304c52ec6e5b5ee520256fa0c06 | Shell | threeworld/Security-baseline | /Linux/主机安全基线脚本/CIS-LBK/DEBIAN_FAMILY_LBK/functions/recommendations/nix_fed28_ensure_password_reuse_limited.sh | UTF-8 | 6,601 | 3.546875 | 4 | [] | no_license | #!/usr/bin/env sh
#
# CIS-LBK Recommendation Function
# ~/CIS-LBK/functions/recommendations/nix_fed28_ensure_password_reuse_limited.sh
#
# Name Date Description
# ------------------------------------------------------------------------------------------------
# Eric Pinnell 09/28/20 Recom... | true |
8434bde7393d507db6605067b01557ba8d89cdbe | Shell | adriangrigore/ulinux | /ports/pkg/ports | UTF-8 | 625 | 3.890625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# shellcheck disable=SC1091
. /bin/pkg.common
index=
cleanup() {
rm -rf "$index"
}
get_index() {
index="$(mktemp -p /tmp -t ports-index-XXXXXX)"
wget -q -O "$index" "$URL"/index
}
sync_ports() {
(
cd "$PKG_PORTSDIR" || fatal "could not change directory to PKG_PORTSDIR $PKG_PORTSDIR"
whil... | true |
bb5e59dabf2a561421b9e56c19c8f45593b88009 | Shell | prajnanBhuyan/GeekTrust | /TameOfThrones/build.sh | UTF-8 | 770 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
write_header()
{
printf '=%.0s' {1..30}
printf '\n'
printf " $1"
printf '\n'
printf '=%.0s' {1..30}
printf '\n'
}
write_header "CLEAN"
dotnet clean -c 'Release' ./src/Set5.sln
printf '\n'
printf '\n'
write_header "RESTORE"
dotnet restore -s https://api.nuget.org/v3/index.j... | true |
555ecd4a91cf4615b0227cb35284d376f4a2a071 | Shell | mrummuka/geo | /spiritdvd2text | UTF-8 | 2,382 | 3.90625 | 4 | [
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/sh
PROGNAME="$0"
usage() {
cat <<EOF
NAME
`basename $PROGNAME` - Spirit DVD Code to/from text
SYNOPSIS
`basename $PROGNAME` [options]
DESCRIPTION
Spirit DVD Code to or from text. Decoding uses '1', 'l', '|', or 'I' as
aliases for '1'.
OPTIONS
-e Encode
-D lvl Debug level
EXAMPLES
... | true |
9b6d2bf568b7c628cf7f9a2cf1e615e980d842e5 | Shell | faja/shell-helpers | /terraform/tf_module_list.sh | UTF-8 | 556 | 3.515625 | 4 | [] | no_license | #!/bin/bash -
SCRIPT_VERSION=1.0.0
MODULE_PATH=~/GitRepos/AS/INFRA/infra-terraform-aws-modules
cd ${MODULE_PATH}
echo pulling latest changes from git..
git pull origin master
echo
echo
printf "%-30s\t%10s\n" "MODULE NAME" "VERSION"
for dir in $(ls -l)
do
if ! test -d "$dir"
then
continue
fi
VERSION=$(... | true |
990e7c8cfd566afc4c1b361bc2c7f54b6235dc32 | Shell | masoud-al/dotfiles-arch | /scripts/raid_demo.sh | UTF-8 | 2,619 | 4.15625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# this script is based on the template from
# https://agateau.com/2014/template-for-shell-based-command-line-scripts/
set -e
PROGNAME=$(basename $0)
ndev=8
last=$(expr $ndev - 1)
size=64M
raiddev=/dev/md/MtRAID6
mtpt=raidpt
ids=$(seq 0 $(expr $ndev - 1))
COMMANDS="create|stop|clean|fail"
command=""
sub... | true |
82d44f0d87ba36183cc1255e64cc0ef035b0ae56 | Shell | amorriscode/computer-science-flash-cards | /build.sh | UTF-8 | 363 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
command -v mdanki >/dev/null 2>&1 || { echo -e >&2 "Install mdanki to build the decks:\nyarn add global mdanki"; exit 1; }
# Clean up build directory
rm -rf ./build; mkdir ./build
# Build all decks in the deck directory
cd decks
for dir in */ ; do
deckname=${dir%?}
mdanki ./${deckname} ../bui... | true |
40b928f23839104661ecd01babddfd36fc4e15d3 | Shell | kapamaroo/fluidanimate_cuda_version | /tools/test.sh | UTF-8 | 807 | 3.265625 | 3 | [] | no_license | #!/bin/bash
BUILDDIR="bin"
LOGDIR="log"
CPU_BIN="fluidanimate_cpu"
GPU_BIN="fluidanimate_gpu"
CHECK_BIN="./tools/checkfiles"
THREADS="256"
FRAMES="$@"
INPUT="inputs/in_100K.fluid"
CPU_OUTPUT="out_100K_cpu.fluid"
GPU_OUTPUT="out_100K_gpu.fluid"
mkdir -p $LOGDIR
echo
echo
echo
echo "######## Start Test for $@ fram... | true |
f56ed9983381d499139ecb8bcc245cd228bb373f | Shell | starbops/dotfiles | /bash_profile | UTF-8 | 935 | 3.15625 | 3 | [] | no_license | #
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
function load_pyenv() {
PYENV_ROOT=$1
export PYENV_ROOT
PATH="$PYENV_ROOT/bin:$PATH"
export PATH
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
}
PATH="$PATH:/usr/local/sbin"
export PATH
CLICOLOR=1
LSCOLORS="gxfxcxdxbxegedabag... | true |
d840d4db43ea8f87d8cc88b7b9bdbf0ac3ab958d | Shell | alldatacenter/alldata | /studio/micro-services/SREWorks/paas/tesla-gateway/APP-META/docker-config/environment/common/bin/setenv.sh | UTF-8 | 6,142 | 3.09375 | 3 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"EPL-1.0",
"LGPL-2.0-or-later",
"MPL-2.0",
"GPL-2.0-only",
"JSON",
"BSD-2-Clause"
] | permissive | #!/bin/bash
# SETENV_SETTED promise run this only once.
if [ -z $SETENV_SETTED ]; then
SETENV_SETTED="true"
# app
# set ${APP_NAME}, if empty $(basename "${APP_HOME}") will be used.
APP_HOME=$(cd $(dirname ${BASH_SOURCE[0]})/..; pwd)
if [[ "${APP_NAME}" = "" ]]; then
APP_NAME=$(b... | true |
8dbbd44f40e8a06f3c76db0fd38e9cbced53c637 | Shell | XingGemini/GATKBestPractice | /GATK.sh | UTF-8 | 10,816 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
BASEDIR=$(dirname "$0")
CONFIG=$BASEDIR/config
source $CONFIG
CHROM=( chr1 chr2 chr3 chr4 chr5 chr6 chr7 chr8 chr9 chr10 chr11 chr12 chr13 chr14 chr15 chr16 chr17 chr18 chr19 chr20 chr21 chr22 chrX chrY )
STDOUT='/dev/stdout'
STDIN='/dev/stdin'
TMPDIR=$PWD/tmp
HG19REF=$REFERENCEDIR/ucsc.hg19.fasta
HG19R... | true |
de815759a5698c30e156c50799165e2aada31f69 | Shell | andrejchikilev/vimrc | /install.sh | UTF-8 | 503 | 2.609375 | 3 | [] | no_license | #!/bin/sh
set -e
if ! [ -d ~/.vim/ ]; then
mkdir ~/.vim
else if ! [ -d ~/.vim/bundle/ ];
then mkdir ~/.vim/bundle
fi
fi
if ! [ -d ~/.vim/bundle/Vundle.vim/ ]; then
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
fi
if ! [ -f ~/.vimrc ]; then
cp .vimrc ~/
... | true |
4bede6f977b0760d50ad0d0fcd348d16e7e76a47 | Shell | Minigugus/CodinSchool | /lancer.sh | UTF-8 | 773 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# set -e
shopt -s extglob
echo Lancement de CodinSchool...
if [[ "$0" == '/docker-lancer.sh' ]]; then
echo Synchronisation du projet...
mkdir -p /app
rm -rf /app/!(package.json|node_modules) /app/.[a-zA-Z]* 2>/dev/null
cp -rf /usr/src/app/!(package.json|node_modules) /usr/src/app/.[a-zA-Z]* /app
... | true |
347592b5a2bb466c63e68f1086576b910b821b5a | Shell | Xuanwo/dont-starve-together | /scripts/dontstarve_server | UTF-8 | 500 | 2.640625 | 3 | [] | no_license | #!/usr/bin/env bash
# Exit immediately on non-zero return codes.
set -e
# Make sure all files are belong to user steam.
chown -R $STEAM_USER:$STEAM_USER "$DST_HOME/mods"
chown -R $STEAM_USER:$STEAM_USER "$DST_CLUSTER_PATH"
# Workaround for main.lua not load
cd $DST_HOME/bin
gosu "$STEAM_USER" ./dontstarve_dedicated... | true |
8ffa20daabb748e23585f201c24828fadab890af | Shell | 3rav/MINGW-packages | /mingw-w64-capnproto/PKGBUILD | UTF-8 | 1,251 | 2.890625 | 3 | [
"BSD-3-Clause"
] | permissive | # Based on https://aur.archlinux.org/packages/mingw-w64-capnproto/
#
# Maintainer: Igor Matuszewski <xanewok@gmail.com>
# Contributors: Dave Reisner <dreisner@archlinux.org>
# Matthias Blaicher <matthias@blaicher.com>
# Severen Redwood <severen@shrike.me>
# Igor Matuszewski <xa... | true |
5c11054fb4dddcbd026a9cbb5a546b1277c38f2d | Shell | slavrd/tfev4-vagrant-proxy | /scripts/install_tfe_online.sh | UTF-8 | 702 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# installs replicated and pTFE
[ -v PTFE_PRIVATE_IP ] || PTFE_PRIVATE_IP="192.168.56.33"
[ -v PTFE_PUBLIC_IP ] || PTFE_PUBLIC_IP="192.168.56.33"
cp /vagrant/config/replicated.conf /etc/replicated.conf
curl -sS -o /tmp/install.sh https://install.terraform.io/ptfe/stable
if [ -v PROXY_ADDR ]; then... | true |
32cb542914c9d10d015346ea53a39b4e8d6170c2 | Shell | EhsanEsc/TestGenerator | /file_gen.sh | UTF-8 | 297 | 3.515625 | 4 | [] | no_license | #!/bin/bash
# file_gen.sh <directory>
# Create files for new problem
if [[ $# -ne 1 ]]
then
echo "Input problem number"
exit 1
fi
if [[ -d ./$1 ]]
then
echo "Directory is already existed!"
exit 1
fi
mkdir $1
cd $1
mkdir in
mkdir out
touch a.cpp in_gen.cpp sol.cpp test_desc.txt | true |
758febcdf07f76aee7aea9b1b4037d33a3f541d9 | Shell | aweiteka/openshift-ansible-contrib | /reference-architecture/osp-cli/ch4.5.5_boot_infra_nodes.sh | UTF-8 | 712 | 3.25 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/sh
DOMAIN=${DOMAIN:-ocp3.example.com}
GLANCE_IMAGE=${GLANCE_IMAGE:-rhel72}
# Retrive a Neutron net id by name
function net_id_by_name() {
# NAME=$1
neutron net-list --field id --field name | grep $1 | cut -d' ' -f2
}
for HOSTNAME in infra-node-0 infra-node-1
do
VOLUMEID=$(cinder show ${HOSTNAME}-dock... | true |
95287308830cf16864a0a39701293c6e9c62484d | Shell | k1rh4/EOS_TOOL | /RUN_NODE/SCRIPT/makeUser.sh | UTF-8 | 821 | 2.78125 | 3 | [] | no_license | #!/bin/bash
USER_NAME=$1
rm -rf /home/k1rh4/eosio-wallet/./$USER_NAME.wallet
cleos wallet create --to-console -n $USER_NAME
cleos wallet create_key -n $USER_NAME
echo "::::::::: CREATE RANDOM KEY ::::::::::::"
DATA=`cleos create key --to-console`
PRV_KEY=`echo $DATA | awk -F "[ ]" {'print $3'}`
echo $PRV_KEY
PUB_KEY=`e... | true |
ece423c0a22328c16d61b28ee99675da4154b00c | Shell | agus1010/Paralelos | /TP 1/Ej2/CorreTodo | UTF-8 | 1,198 | 3.375 | 3 | [] | no_license | #!/bin/bash
printf "Algoritmo\tN\tHilos\tTiempos\n" > tiempos.csv
N=512
Hilos=1
tSecuencial="1"
tPthreads2="0"
tOpenmp2="0"
tPthreads4="0"
tOpenmp4="0"
finish=true
while [[ $finish == true ]]; do
echo "Probando para N=$N"
printf "Secuencial\t$N\t$Hilos\t" >> tiempos.csv
tSecuencial="$(./secuencial.exe $N | tr... | true |
0d4021c2d059a472dae93dce0e3605767e18c5e6 | Shell | yatishbalaji/mailpop3 | /tests/tls.sh | UTF-8 | 902 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
RANDOMID=$RANDOM
print_test "Sending test message to $EMAIL (str: $RANDOMID)"
OUTPUT=`./sendmail.sh -q 1 $EMAIL "subject with $RANDOMID" "body with $RANDOMID"`
print_result 0 $OUTPUT
print_test "Wrong port"
OUTPUT=`node tls.js --username $USER --password $PASS --host $HOST --port $PORT --login off`;
print_... | true |
32ab118e126e74bb1f359a206531702242d75c57 | Shell | 776166/yggdrasil-django | /bin/clean_py.sh | UTF-8 | 333 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
APPLICATION=$DIR/$APP
P1=`dirname $0`
HOME=`cd $P1; cd .. ; pwd`
. $HOME/etc/env.conf
if [ ! -z $1 ]; then
clean_path=$HOME/$1
else
clean_path=$HOME
fi
find $clean_path -type d -name '__pycache__' -print | xargs rm -vr
find $clean_path -name '*.pyc' -print -delete
find $clean_path -name '*.pyo' -p... | true |
fcaf684a36d6fa60a0fd97a448b346c80f364aa4 | Shell | wsimpso1/DS601_Spring21 | /Demo/user-data_notcorrect.sh | UTF-8 | 1,422 | 3 | 3 | [] | no_license | # #!/usr/bin/env bash
# this will also work but installing anaconda is too much for the task
# # ++++++++++++++++++++ START ANACONDA INSTALL +++++++++++++++++++++
# cd /home/ec2-user
# su ec2-user
# # Download the Linux Anaconda Distribution
# # wget https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh... | true |
3c37df9c8bdbad8afc56fa97c24aa7a1a681861f | Shell | codacy-badger/win-sudo | /install.sh | UTF-8 | 493 | 2.6875 | 3 | [] | no_license | #!/usr/bin/env bash
echo "Downloading win-sudo...";trap 'echo "Failed to install, sorry :(";exit 1' ERR
mkdir -p ~/bin/win-sudo && cd "$_";git init -q && git config core.sparsecheckout true;echo s/ >> .git/info/sparse-checkout
git remote add -mf origin https://github.com/DemonixCraft/win-sudo.git && git pull -q origin ... | true |
3db776ccb1fdd351e11cac9b41dff36e7ec6bb82 | Shell | TanguyLevent/RL4Microgrids | /mono_gpu.slurm | UTF-8 | 1,297 | 2.59375 | 3 | [] | no_license | #!/bin/bash
#SBATCH --job-name=gpu_mono # nom du job
#SBATCH --ntasks=1 # nombre de tâche (un unique processus ici)
#SBATCH --gres=gpu:1 # nombre de GPU à réserver (un unique GPU ici)
#SBATCH --qos=qos_gpu-t4 #specifier le qos à executer
#SBATCH --cpus-per-task=10 ... | true |
65577a6430b307e60506f3a8cb6f4be9e6b9479a | Shell | lbrookeIS/dotfiles | /install-docker.sh | UTF-8 | 696 | 2.796875 | 3 | [] | no_license | #!/usr/bin/env bash
# !!! requires root !!!
set -e
echo "Installing apt packages..."
apt-get update -y
apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
linux-image-extra-$(uname -r)
echo "Installing docker..."
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:... | true |
443664a3d68d3c73b5ce9d346ea317c8e50bead8 | Shell | tclem/dotfiles | /bin/check | UTF-8 | 512 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# domainavailable
# Fast, domain name checker to use from the shell
# Use globs for real fun:
# domainavailable blah{1..3}.{com,net,org,co.uk}
# Inspired by foca / giles:
# http://gilesbowkett.blogspot.com/2009/02/simple-bash-domain-availability.html
for d in $@;
do
if host $d | grep "NXDOMAI... | true |
52b865d08d27245308aff23544256c0f81f364b4 | Shell | datapressio/mylondon | /deploy.sh | UTF-8 | 933 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
TMP=/tmp/deploy_mylondon
BASEDIR="."
DEST_HOST=s3-eu-west-1.amazonaws.com
DEST_BUCKET=s3://my.london.gov.uk/
find . -name ".DS_Store" -exec rm -f {} \;
rm -rf $TMP
mkdir -p $TMP
cp $BASEDIR/index.html $TMP
cp $BASEDIR/mylondon.css $TMP
cp $BASEDIR/mylondon.js $TMP
cp -r $BASEDIR/http $TMP
mkdir -p $TMP/... | true |
8296f695a72ec6c562adc048765b5292f2ad88a0 | Shell | devmittal/Concurrent-Programming | /lab0/test_random | UTF-8 | 323 | 3.15625 | 3 | [] | no_license | #!/bin/bash
get_seeded_random()
{
seed="$1"
openssl enc -aes-256-ctr -pass pass:"$seed" -nosalt \
</dev/zero 2>/dev/null
}
shuf -i1-5314 --random-source=<(get_seeded_random 5) > case3.txt
sort -n case3.txt > soln3.txt
./mysort case3.txt -o your3.txt
cmp --silent your3.txt soln3.txt && echo "Pass" || echo "Fai... | true |
972a98688d934e126d8680dc588f1b0747c5e116 | Shell | fanmuzhi/chameleon | /patch/shasta-bootldr-SRAMtest-1.00.0001/build - original.sh | UTF-8 | 735 | 3.078125 | 3 | [] | no_license | #!/bin/sh
set -ex
unset TZ TERM LANG
pwd
date
# Remote repository for release:
GITROOT=ssh://gitms@git.synaptics.com/git/biometrics
RELTAG=fw/nassau_patch_bootldr_flasherase/shasta-1.01.0006
REPS="b1216/common b1216/tools fw/include fw/nassau/patch/bootldr fw/nassau/patch/common fw/nassau/common include tools"
rm -rf $... | true |
4c3f4cc3061745b4f1ac2e8548a8c9ceaa42ec24 | Shell | runtime-verification/benchmark-challenge-2018 | /Open/FOStreams/run.sh | UTF-8 | 410 | 3.3125 | 3 | [] | no_license | #!/usr/bin/env bash
BASE_DIR=$(dirname "${BASH_SOURCE[0]}")
cmd=$1
shift
case "$cmd" in
generator|Generator ) $BASE_DIR/generator.sh "$@";;
replayer|Replayer ) $BASE_DIR/replayer.sh "$@";;
oracle|Oracle ) $BASE_DIR/generator.sh "$@" -osig ./tmp.sig -oformula ./tmp.mfotl; monpoly -sig ./tmp.sig -formula ./tmp.mfo... | true |
1bf8c79a44140326de37c7158aefc446c1c9f261 | Shell | brandocorp-omnibus/omnibus-sickbeard | /package-scripts/sickbeard/postinst | UTF-8 | 304 | 3.140625 | 3 | [] | no_license | #!/bin/bash
#
# Perform necessary sickbeard setup steps
# after package is installed.
#
PROGNAME=$(basename $0)
addgroup --system sickbeard
adduser --system --home /opt/sickbeard --no-create-home --group sickbeard
chown -R sickbeard: /opt/sickbeard
echo "Thank you for installing sickbeard!"
exit 0
| true |
e6a4ca6d3d888dce6cfddcd7ad0c3cf29207dfb6 | Shell | alin-corodescu/Operating-Systems | /lab5/ex1.sh | UTF-8 | 317 | 3.296875 | 3 | [] | no_license | #/bin/bash
ascuns=0
alias=0
subdir=0
for item in `find $1 -mindepth 1`
do
if test -d $item
then
let subdir+=1
fi
if test -h $item
then
let alias+=1
fi
name=`basename $item`
if [[ $name =~ ^\..* ]]
then
let ascuns+=1
fi
done
echo "Subfoldere= $subdir"
echo "Linkuri = $alias"
echo "Ascuns = $ascuns"
| true |
703785c23077e270f8a9e335832636e881675ad8 | Shell | niklaskorz/.dotfiles | /xinitrc | UTF-8 | 1,129 | 2.765625 | 3 | [] | no_license | #!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ... | true |
4712a861645872bd7d888b43d1a8a5f80393d101 | Shell | lukas-vlcek/elasticsearch-prometheus-exporter-branches-switch | /branch-out-139.sh | UTF-8 | 5,696 | 4.125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#set -euxo pipefail
function usage() {
cat <<EOF
Usage: $0
Example: $0 1> branching.log 2> error.log
This script converts elasticsearch-prometheus-exporter repository into
branches as discussed in https://github.com/vvanholl/elasticsearch-prometheus-exporter/issues/139
In the beginning it w... | true |
55efd5952f35db302f501dedbc02b5c8b9a5b572 | Shell | windhw/another-django-based-blog | /rhsite/restart.sh | UTF-8 | 401 | 3.0625 | 3 | [] | no_license | #!/bin/bash
# Replace these three settings.
PROJDIR="/home/haowei/rhcloud/a/wsgi/rhsite/"
PIDFILE="$PROJDIR/mysite.pid"
SOCKET="$PROJDIR/mysite.sock"
pids=$(ps aux | grep python | grep manage.py | grep -v grep | awk '{print $2}')
for pid in ${pids};do
kill ${pid}
done
cd $PROJDIR
if [ -f $PIDFILE ]; then
rm -f --... | true |
5edd2bfb722be17a5da84872c48c8c0592abf88a | Shell | hkmshb/dotfiles | /bin/ssh-ip | UTF-8 | 206 | 2.59375 | 3 | [] | permissive | #!/bin/sh
#
# Usage: ssh-ip
#
# Display ip address for vagrant box described by a vagrantfile
# NOTE: (current directory should have a vagrantfile)
vagrant ssh -c "hostname -I | cut -d' ' -f2" 2>/dev/null
| true |
5b7ee786919d14b5b9c65e187824dd42fdfc1cf3 | Shell | cpackham/novaprova | /build/vagrant/centos.sh | UTF-8 | 1,106 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | # Setup C development environment and prereqs
domainname localdomain
# Setup EPEL
repo=/etc/yum.repos.d/epel.repo
if [ ! -f $repo ] ; then
cat <<EOM >/etc/yum.repos.d/epel-bootstrap.repo
[epel]
name=Bootstrap EPEL
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-\$releasever&arch=\$basearch
failov... | true |
ab16f144bd527270d2d51bdf4a5dd9552339a645 | Shell | atztao/sos_flow | /examples/synthetic_1/run_a_only.sh | UTF-8 | 1,372 | 3.234375 | 3 | [
"LicenseRef-scancode-other-permissive"
] | permissive | #!/bin/bash -e
export SOS_ROOT=$HOME/src/sos_flow
export SOS_CMD_PORT=22500
cwd=`pwd`
working=/tmp/sos_flow_working
mkdir -p ${working}
cd ${working}
if [ ! -f adios_config.xml ] ; then
ln -s ${cwd}/adios_config.xml .
fi
if [ ! -f tau.conf ] ; then
ln -s ${cwd}/tau.conf .
fi
# cleanup
rm -rf new1.ppm *.bp *.... | true |
3eb77646fabc73d828deacabf11723c33d74da6a | Shell | elentok/dotfiles | /extra/scripts/git-fix-author | UTF-8 | 828 | 3.390625 | 3 | [] | no_license | #!/usr/bin/env bash
#
# Usage: git-fix-author <name> <new-email> <old-email>
#
# More details:
#
# - https://stackoverflow.com/questions/58263216/how-to-change-commit-author-for-multiple-commits-using-filter-branch
# - https://git-scm.com/docs/gitmailmap#_examples
set -euo pipefail
if [ $# -lt 2 ]; then
usage "$0"
... | true |
866aee3349a4a7858787aa07cb1ed0417dffa0eb | Shell | alphonsetai/Ant-Media-Server | /src/main/server/create_app.sh | UTF-8 | 858 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | APP_NAME=$1
AMS_DIR=$2
APP_NAME_LOWER=$(echo $APP_NAME | sed 's/./\L&/g')
APP_DIR=$AMS_DIR/webapps/$APP_NAME
RED5_PROPERTIES_FILE=$APP_DIR/WEB-INF/red5-web.properties
WEB_XML_FILE=$APP_DIR/WEB-INF/web.xml
mkdir $APP_DIR
cp $AMS_DIR/StreamApp*.war $APP_DIR
cd $APP_DIR
jar -xf StreamApp*.war
rm StreamApp*.war
sed -i '... | true |
c9d263e93d5b965703ba468e514dc061f7c01712 | Shell | HL7-DaVinci/prior-auth | /dockerRunnerDev.sh | UTF-8 | 1,110 | 3.3125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Handle closing application on signal interrupt (ctrl + c)
trap 'kill $CONTINUOUS_BUILD_PID $SERVER_PID; gradle --stop; exit' INT
export TOKEN_BASE_URI=http://localhost:9015
mkdir logs
# Reset log file content for new application boot
echo "*** Logs for 'gradle installBootDist --continuous' ***" > ./lo... | true |
68ac2690d565559fd141c15ce3028bc03b9166d4 | Shell | bireme/fi-admin-migration | /1_trata_insumo/scripts/file_out.sh | UTF-8 | 8,053 | 3.25 | 3 | [] | no_license | #!/bin/bash
# -------------------------------------------------------------------------- #
# index_master.sh - Realiza conversao de registro LILACS para versao 1.7 #
# -------------------------------------------------------------------------- #
#
# Chamada : index_master
# Exemplo : ./index_master.sh <FI>
#
#... | true |
f4aea882e1cf57fe26e037a7ebf1257e5be31665 | Shell | depositolegale/ojs-archive | /archive.sh | UTF-8 | 335 | 2.65625 | 3 | [
"CC0-1.0"
] | permissive | #!/bin/bash
if [ -z "$1" ]
then
echo "USAGE: archive.sh {seed_file}"
exit
fi
jobname=$(basename "$1" .seeds)
wget-lua --user-agent='Wget/1.14.lua.20130523-9a5c - http://www.depositolegale.it' \
--lua-script=ojs.lua \
--input-file=$1 \
--warc-file=data/warc/$jobname \
--page-requisites \
--output-file=lo... | true |
f382a16aa1570b02b062788df3143c0e27819f76 | Shell | BipoaroXigen/dotfiles-sway | /scripts/dckd.sh | UTF-8 | 169 | 2.671875 | 3 | [] | no_license | #!/bin/bash
if [[ $1 == '--clean' ]]
then
docker stop $(docker ps -a -q)
docker image rm -f $(docker image ls -q)
docker volume rm -f $(docker volume ls -q)
fi
| true |
a55b6ed5e2326cff04ff7f1cbd638e069c990670 | Shell | git-for-windows/MSYS2-packages | /tree/PKGBUILD | UTF-8 | 843 | 2.515625 | 3 | [
"BSD-3-Clause"
] | permissive | # Maintainer: Alexey Pavlov <Alexpux@gmail.com>
pkgname=tree
pkgver=1.7.0
pkgrel=1
pkgdesc="A directory listing program displaying a depth indented list of files"
arch=('i686' 'x86_64')
url="http://mama.indstate.edu/users/ice/tree/"
license=('GPL')
depends=('msys2-runtime')
source=(http://mama.indstate.edu/users/ice/$... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.