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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6d982a3a61b400646a93a72d6cc2cce10a2ea7ce | Shell | inoxx03/newdoc-bulk-validate | /pv2-validate.sh | UTF-8 | 486 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#default_dir=$(pwd)
target_dir=$1
files=$(ls ${target_dir})
validator_cmd="newdoc -l"
if ! command -v newdoc &> /dev/null
then
echo "newdoc not found. Exiting."
exit 2
fi
validate ()
{
if [[ -f $file && "$file" == *.adoc ]]
then
#echo "Checking: ${target_dir}/${file}"
${validator_cmd} ${f... | true |
df45b4ab20cc677781f5ffe24f879ff4e54ba013 | Shell | yangzpag/SecureStreams-DEBS17 | /docker-images/sgx/build_files/start.sh | UTF-8 | 996 | 3.796875 | 4 | [] | no_license | #!/bin/bash
LUASGX=./luasgx
SRC_DIR=/root/worker
SGX=/dev/isgx
if [[ ! (-c $SGX) ]]; then
echo "Device $SGX not found"
echo "Use 'docker run' flag --device: --device=$SGX"
exit 0
fi
if [[ -z $1 ]]; then
echo "No file provided - you have to pass the filename of the LUA code as argument"
exit 1
fi... | true |
3714bd38ab6eff5b2fabb998d4a8afbcda79bca0 | Shell | aoles/BBS | /2.1/mybbs/config.sh | UTF-8 | 1,188 | 2.765625 | 3 | [] | no_license | #!/bin/bash
# ======================================================================
# Settings shared by all the Unix nodes involved in the 2.1-mybbs builds
# ======================================================================
export BBS_MODE="bioc"
export BBS_BIOC_MANIFEST_FILE="bioc_2.1.manifest"
# What type ... | true |
51edbdb84f9c48ef54cfc4660d839e4e5a24ce2a | Shell | cristiklein/stateless-workstation-config | /lint.sh | UTF-8 | 450 | 3.296875 | 3 | [] | no_license | #!/bin/bash
set -e
: ${BASE_DOCKER_IMAGE:=python:3.7}
DOCKER_IMAGE=${BASE_DOCKER_IMAGE}-precommit
docker build -t $DOCKER_IMAGE - <<EOF
FROM ${BASE_DOCKER_IMAGE}
RUN pip3 install pre-commit
EOF
USE_TTY=
if [ -t 1 ]; then
USE_TTY="-ti"
fi
docker run \
$USE_TTY \
-u $(id -u):$(id -g) \
-v $HOME:$HO... | true |
145889836b0cfeb7a6ee8aebde555a83e996f448 | Shell | YIKAILucas/mybash | /database.sh | UTF-8 | 616 | 3.234375 | 3 | [] | no_license | #!/bin/bash
if [ $1 = redis -a $2 = start ]; then
redis-server /usr/local/etc/redis.conf
elif [ $1 = redis -a $2 = stop ]; then
redis-cli shutdown
elif [ $1 = mongodb -a $2 = start ]; then
mongod --fork --logpath ~/data/log/mongodb.log --dbpath ~/data/db
elif [ $1 = mongodb -a $2 = stop ]; then
echo ... | true |
8d68a485f4a382f5ff953827810a96b0ee62f72c | Shell | MhmdRyhn/Shell_Scripts | /HackerRank/Linux_Shell/Cut #8.sh | UTF-8 | 201 | 3.34375 | 3 | [] | no_license | #!/bin/bash
# To know about `cut` command -> https://www.computerhope.com/unix/ucut.htm
while read line; do
# Get first 3 FIELDS, DELIMITED by `Space`
printf "$line" | cut -f -3 -d ' '
done
| true |
6bd85b54588ce24794f1e3242cefcb274dad0123 | Shell | njau-sri/hpc | /root/local/install-pcre.sh | UTF-8 | 187 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
VER=8.40
TOP=`pwd`
PREFIX=/share/apps/local
tar zxf pcre-$VER.tar.gz
cd pcre-$VER
./configure --prefix=$PREFIX --enable-utf8
make
make install
cd $TOP
rm -rf pcre-$VER
| true |
3db65d7f0ed0851ba1ccad793838d8d40722e159 | Shell | rrice/shell-scripts | /tokenize | UTF-8 | 1,882 | 3.6875 | 4 | [] | no_license | #!/usr/bin/env sh
#
# -*- mode: shell-script; fill-column: 75; comment-column: 50; -*-
#
# Copyright (c) 2013 Ralph Allan Rice <ralph.rice@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the... | true |
16481661bd84eeb2701c563e725a337f85606f75 | Shell | jcwearn/priceatronic | /deploy/deploy.sh | UTF-8 | 1,165 | 3.46875 | 3 | [] | no_license | DATE=$(date +%s)
FILE=priceatronic-$DATE.tar.gz
EXCLUDE="./node_modules"
EXCLUDE2="*.tar.gz"
EXCLUDE3="./.git"
APPLICATION_NAME=priceatronic
DEPLOYMENT_GROUP_NAME=priceatronic_deployment
BUCKET=priceatronic
if [ ! -f ./package.json ]; then
echo "You must run this script from the project's root directory"
else
... | true |
413e27ca23592a365970172cc4ce5f5ff54246e8 | Shell | buenaonda-chile/xwork | /eclipse-workspace/dioneRepository/DNKR/bin/aijm/aijmLogServerStart.sh | UTF-8 | 6,544 | 3.375 | 3 | [] | no_license | #!/bin/bash
# ****************************************************************************
# ** [JP] ファイル名 : aijmLogServerStart.sh **
# ** [JP] 処理概要 : AijmLogServerの起動 **
# ** [JP] ... | true |
c4f57b1abc8952385780dd9bbea424bfb3853dc0 | Shell | TarsCloud/K8STARS | /baseserver/replace_img_version.sh | UTF-8 | 233 | 3.1875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
from_version=":latest"
to_version=":v1.1.0"
if [[ "$OSTYPE" == "darwin"* ]]; then
alias sed="sed -i ''"
else
alias sed="sed -i"
fi
for f in `ls yaml/*.yaml`; do
sed "s/$from_version/$to_version/g" $f
done
| true |
1d2e0c3a4c2e3767112fa00043ba13560c8299d4 | Shell | aur-archive/eclipse-php | /PKGBUILD | UTF-8 | 1,582 | 2.921875 | 3 | [] | no_license | # Maintainer: Giovanne Castro <giovannefc@gmail.com>
# Based on official standard package (eclipse) maintained by Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
pkgname=eclipse-php
pkgver=4.4.1
pkgrel=2
_release=luna-SR1
pkgdesc="An IDE for PHP and other web development languages"
license=("EPL")
arch=('i686... | true |
1e9c258d8a91f3cf56a5f2bd7adb9e01e1baf1dd | Shell | Code-DigitalArt/ServersOpen | /fetch/wheatridge.sh | UTF-8 | 1,437 | 3.4375 | 3 | [] | no_license | #!/bin/bash
#
name="wrc"
hasMage=1
hasEE=1
timeFormat='%Y%m%d.%H%M'
timeNow=$(date +"${timeFormat}")
remoteHost="68.64.209.250"
remoteUserMage="${name}_mage"
remotePasswordMage="XDXn4cwzVz2k06ie-i*jaRMoVietviKf1zP3fNz0"
remoteUserEE="${name}_ee"
remotePasswordEE="asbmAfKd0qCyVy*G4wSV-DD1pXwBrt#yxMJw3on4"
DBMage="$... | true |
12eb349d46e529bc77219990e095f075ea303cd9 | Shell | jmcerrejon/PiKISS | /scripts/tweaks/autologin.sh | UTF-8 | 1,142 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Description : Autologin
# Author : Jose Cerrejon Gonzalez (ulysess@gmail_dot._com)
# Version : 1.3 (16/Mar/15)
# Compatible : Raspberry Pi 1 & 2 (tested), ODROID-C1 (tested)
#
clear
. ../helper.sh || . ./scripts/helper.sh || . ./helper.sh || wget -q 'https://github.com/jmcerrejon/PiKISS/raw/m... | true |
7f943de3b9048f82f13e5cbdfbb8733a802da738 | Shell | bopie/Bash | /run | UTF-8 | 210 | 3.609375 | 4 | [] | no_license | #!/bin/bash
name=${1%%.*}
[[ -e $name ]] && read -p "target file exist, overwrite?" -n 1 answer || answer=y
if [ "$answer" == "y" ]; then
gcc $1 -o $name && $name
rm $name > /dev/null 2>&1
else
exit 1
fi
| true |
491521b6a3d9acef540a3a96d566f8a105434cdc | Shell | xdjiangyang/ESXi-crontab | /local.sh | UTF-8 | 706 | 2.90625 | 3 | [] | no_license | #!/bin/sh
# local configuration options
# Note: modify at your own risk! If you do/use anything in this
# script that is not part of a stable API (relying on files to be in
# specific places, specific tools, specific output, etc) there is a
# possibility you will end up with a broken system after patching or
# upgra... | true |
fed7c932f4e4add363796750930184252a70f43f | Shell | mikesovic/Sistrurus_SinglePop_FSC | /PowerAnalyses/Simulate_SFS.sh | UTF-8 | 966 | 3.875 | 4 | [] | no_license | #!/bin/bash
#Run this script with ./Simulate_SFS.sh par_file_name [# of sim datasets to generate]
#needs a par file that is indicated as the first argument on the command line and the fsc252 executable.
if [ $2 ]; then #if we are simulating multiple sfs from a single par file
if [ ! -d SimlatedSFS ]; then
... | true |
97afad21fdd75716f0c12686f268a4a01a3b7460 | Shell | HirbodBehnam/Java-Testcase-Checker | /generator.sh | UTF-8 | 315 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Compile
mkdir build
javac -d build -sourcepath ./src src/*.java
# Loop tests
COUNTER=1
while :
do
[ ! -f "in/in$COUNTER.txt" ] && break
echo "Generating in$COUNTER.txt..."
java -classpath ./build Main < "in/in$COUNTER.txt" > "out/out$COUNTER.txt"
COUNTER=$((COUNTER+1))
done
# Cleanup
rm -rf build | true |
b6f2a41ac7424af6d18fa776910e27924ad171a5 | Shell | BC-MO/SnowConvertDDLExportScripts | /Teradata/bin/create_load_to_sf.sh | UTF-8 | 3,070 | 3.5625 | 4 | [
"MIT"
] | permissive | # Modified by:
# Modified Date:
# Description:
## ---------------------------------------------------------------
## Modify the following settings
## ---------------------------------------------------------------
SNOWFLAKE_DB_NAME="ADVENTUREWORKSDW"
SNOWFLAKE_WAREHOUSE_NAME="KVANCZ"
SNOWFLAKE_FILE_FORMAT_NAME="PIPE_... | true |
6abca700ce805ac86d4b4a520944af0eee56b035 | Shell | marieke-bijlsma/Imputation | /protocols/GenotypeHarmonizer.sh | UTF-8 | 1,567 | 3.4375 | 3 | [] | no_license | #MOLGENIS walltime=04:59:59 mem=5gb ppn=1
#string genotypeHarmonizerVersion
#string outputPerChr
#string referenceGenome
#string tempDir
#string intermediateDir
#string chr
#string pathToReference1000G
#string pathToReferenceGoNL
#string pathToReferenceHRC
#Load modules and list currently loaded modules
module load $... | true |
02f9ac231d30d5c25ac55509304c0effa7978fa5 | Shell | boberito/jamfscripts | /office365-install.sh | UTF-8 | 986 | 3.4375 | 3 | [] | no_license | #!/bin/sh
CurrentOfficeRelease=$(curl -s https://macadmins.software | grep "Office 365 Suite Install" | awk -F "a href" '{ print $1 }' | awk -F ">" '{print $10}' | awk -F " " '{print $1}')
CurrentOfficeInstalled=$(defaults read /Applications/Microsoft\ Word.app/Contents/Info.plist CFBundleVersion)
if [ "$CurrentOffic... | true |
8396148e90007dbfca6cb30bb9ce768de1267be8 | Shell | YashPareek1/Shell-Programs | /day6/coin11.sh | UTF-8 | 212 | 3 | 3 | [] | no_license | #! /bin/bash
headcount=0
totalcount=0
while [ $headcount -lt 11 ]
do
if [ $(( RANDOM%2 )) -eq 0 ]
then
headcount=$(( headcount+1 ))
fi
totalcount=$(( totalcount+1 ))
done
echo "$totalcount"
| true |
f55edb0380a5f99e41998fbde5e9c5512f8b4eea | Shell | reklis/pukcab | /backup.sh | UTF-8 | 2,407 | 4 | 4 | [] | no_license | #!/usr/bin/env bash
defaultconfig="${HOME}/.config/pukcab.conf"
usage() {
echo
echo "usage: $0 [-c config] [-v] [-n]"
echo " -c path to non-default config file"
echo " -v verbose tarballing"
echo " -n do not unmount after backing up"
echo
}
configfile="${defaultconfig}"
verbose=""
shouldunmou... | true |
ebd43ebebbea2423fdb0adc56a9e51914e82859c | Shell | ming-kwee/labamap | /run_labamap_services.sh | UTF-8 | 1,171 | 3.140625 | 3 | [] | no_license | #!/bin/bash
# This will start all the services required for tests or running the service.
# All services will have their output prefixed with the name of the service.
ctrl_c() {
docker compose down
echo "===> Shutting down Labamap Service"
kill "$labamap_pid"
lsof -ti tcp:8080 | xargs kill
lsof... | true |
89797232520eed673009241fe13961568de2d348 | Shell | Nellix/onap | /kubernetes/contrib/tools/rke/rke_setup.sh | UTF-8 | 9,976 | 3 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#############################################################################
# Copyright © 2019 Bell.
#
# 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.o... | true |
7eacbbfdba6631dad6b5dd6b888c0d1a33ce368e | Shell | SoftwareHeritage/swh-environment | /docker/services/swh-objstorage/entrypoint.sh | UTF-8 | 490 | 2.84375 | 3 | [] | no_license | #!/bin/bash
set -e
source /srv/softwareheritage/utils/pyutils.sh
setup_pip
echo Installed Python packages:
pip list
if [ "$1" = 'shell' ] ; then
exec bash -i
else
echo Starting the swh-objstorage API server
exec gunicorn --bind 0.0.0.0:5003 \
--log-level DEBUG \
--threads 4 \
--worker... | true |
656296ef35656ad55bf361ff34641e4e26d0f31b | Shell | yhfudev/bash-mrnative | /app-ns2/e2map.sh | UTF-8 | 11,514 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# -*- tab-width: 4; encoding: utf-8 -*-
#
#####################################################################
## @file
## @brief Run ns2 using Map/Reduce paradigm -- Step 2 Map part
##
## In this part, the script run the ns2, and plotting some basic figures,
## generate stats files.
##
## @author Yunh... | true |
faef8f5f14255b4e892ad9be96f38d1602956f74 | Shell | Aloike/bash-resources | /prompt/elements-ps1/420-kubernetes.bash | UTF-8 | 11,884 | 3.328125 | 3 | [] | no_license | # ##############################################################################
## @see https://github.com/jonmosco/kube-ps1/blob/master/kube-ps1.sh
# ##############################################################################
# Declare the function to be called by the PS1 prompt.
PROMPT_PS1_FUNCTIONS+=("bash_... | true |
c1537cb010d0be26970af3fb0982126d1b87795e | Shell | huit/cloudlet-rails | /provisioners/puppet/scripts/deploy | UTF-8 | 283 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
echo "Beginning deployment"
# send a sample capistrano deploy file via SES
if [ -r '/root/capistrano-deploy.rb' ]; then
mail -s "$(facter ec2_public_hostname) Capistrano deploy.rb" steve_huff@harvard.edu < /root/capistrano-deploy.rb
fi
echo "Finished deployment"
# vim: set ft=sh
| true |
fcb03f57972ed0d0d731588ad4f9e2ace5d0d862 | Shell | nlharris/RAST_SDK | /scripts/entrypoint.sh | UTF-8 | 897 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
. /kb/deployment/user-env.sh
python ./scripts/prepare_deploy_cfg.py ./deploy.cfg ./work/config.properties
export PATH=$PATH:$KB_TOP/services/genome_annotation/bin:$KB_TOP/services/cdmi_api/bin
export KB_DEPLOYMENT_CONFIG=/kb/module/deploy.cfg
( cd /kb/deployment/services/kmer_annotation_figfam/;./start_... | true |
a833e7f7adf058275d0b44b3832de979384f8d96 | Shell | AshishBokil/Cab-Hailing-springboot | /pods-project1-main/tests/phase1/Custom7.sh | UTF-8 | 1,783 | 3.234375 | 3 | [] | no_license | #! /bin/sh
# This test case checks whether the "interest" mechanism works
# reset RideService and Wallet.
# every test case should begin with these two steps
curl -s http://localhost:8081/reset
curl -s http://localhost:8082/reset
testPassed="yes"
#cab 101 signs in
resp=$(curl -s "http://localhost:8080/signIn?cabId=1... | true |
c44f702c289c40afd44c64cdd28e739d1b72685f | Shell | treejames/devices-p6_t00 | /custom_app.sh | UTF-8 | 554 | 3.203125 | 3 | [] | no_license | #!/bin/bash
apkBaseName=$1
tempSmaliDir=$2
if [ "$apkBaseName" = "Settings" ];then
echo ">>> in custom_app $apkBaseName"
if [ -f $tempSmaliDir/res/xml/security_settings_picker.xml ];then
echo ">>> begin delete unlock_set_baidu_slide in $tempSmaliDir/res/xml/security_settings_picker.xml"
sed -i... | true |
9b6239b53d9f74cb0f4641eab050e37e749344c6 | Shell | kxingit/macro | /stack_wavelet.sh | UTF-8 | 290 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
paste *Wavelet > all_Wavelet
awk '{
s=n=0;
for(i=1;i<=NF;i++)
if($i!="NA"){
s+=$i*1;n++
}
if(n!=0){
print s/n
}
}' all_Wavelet > ave_all_Wavelet
rm -f all_Wavelet
echo -e "Stacked wavelet is \033[36m ave_all_Wavelet \033[0m"
| true |
ac6b44d92f57477d5de08e5bafec2f6866e80282 | Shell | dburaglio/Cyber333_Projects | /lab7/script.sh | UTF-8 | 242 | 3.046875 | 3 | [] | no_license | eval "$(
declare | LC_ALL=C grep 'test.*=' | while read opt; do
echo "echo Processing $opt"
optname=${opt%%=*}
echo "echo Optname is $optname"
optvalue=${opt#*=}
echo "echo Optvalue is: $optvalue"
echo "echo $optname=$optvalue"
done
)"
| true |
31d0ab853b858d2ae6c2853fb3f7247acc1babb9 | Shell | alex1701c/KDevelopTemplates | /package.sh | UTF-8 | 1,129 | 3.28125 | 3 | [] | no_license | #!/bin/bash
# This automatically updates/installs the template in your local templates folder
if [[ $(basename "$PWD") == "KDevelopTemplates" ]];then
mkdir -p build
cd build
rm ./*.tar.bz2
rm ./*/*.tar.bz2
rm ./*/*/*.tar.bz2
rm ./*/*/*/*.tar.bz2
cmake -DKDE_INSTALL_KTEMPLATESDIR=~/.local/sh... | true |
28f1bddb47854609e8d33493086dfe72bb9770b1 | Shell | richzjc/IntentArgs | /convert_to_webp.sh | UTF-8 | 545 | 3.71875 | 4 | [] | no_license | # bin/bash
export lujing=$PWD
function compressToWeb(){
file=$1
fileName=${file%.*}
echo "${file##*.}"
if [ ${file##*.} = "png" && ${fileName##*.} != "9" ]
then
echo $fileName
cwebp -q 90 $2/$1 -o "$2/${fileName}.webp"
rm -f $2/$1
fi
}
function convertToWeb(){
for entry in $(ls $1)
... | true |
59b49f950c8f2fd4db1b27c54c94f744ea281d5c | Shell | nrsyed/files | /scripts/install_opencv.sh | UTF-8 | 1,034 | 2.828125 | 3 | [] | no_license | #!/bin/bash
CPUS=$(lscpu | grep -i "^cpu(s):" | awk {'print $2'})
sudo apt update
sudo apt install -y build-essential cmake pkg-config
sudo apt install -y libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt install -y libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt install -y libxvidcore-de... | true |
49635361fe29d1dad7cb14a1b428d881c6d7106e | Shell | swyder/LINUX_SHELL_4 | /SOLUTIONS/example_nested_commands.sh | UTF-8 | 141 | 3.21875 | 3 | [] | no_license | # Use backticks ` to execute a command inside another
for i in `ls`
do
echo $i
done
for i in `ls | grep foo | tr a-z A-Z`
do
echo $i
done
| true |
5ff92e193ea2705a2150da679cd5c86bedfbdebe | Shell | OpenModelica/OpenModelicaBuildScripts | /docker/build-deps-qt4-xenial.sh | UTF-8 | 289 | 2.859375 | 3 | [] | no_license | #!/bin/sh -xe
docker login docker.openmodelica.org
TAG=docker.openmodelica.org/build-deps:v1.16-qt4-xenial
if true; then
ARGS="--build-arg REPO=ubuntu:xenial"
else
ARGS="--build-arg REPO=$TAG"
fi
docker build --pull $ARGS -t "$TAG" - < Dockerfile.build-deps-qt4
docker push "$TAG"
| true |
ef7b0f4525fd60c8b9509fdf2fa68f854677f751 | Shell | k0smik0/opennebula_utils | /bin/one_build_cluster | UTF-8 | 6,026 | 3.6875 | 4 | [] | no_license | #!/bin/bash
ONE_HOME=/var/lib/one
function pop {
local array=($@)
local popped_array=(${array[@]:0:$((${#array[@]}-1))})
echo ${popped_array[@]}
}
function last {
[ $# -eq 1 ] && echo $@
local array=($@)
local li=$((${#array[@]}-1))
local last=(${array[@]:li:li})
echo $last
}
function create... | true |
abf4a5a7d17ff89e379cee9a878086a39cbc57f3 | Shell | kalaivairamuthu/terraform | /terra_ubuntu_log/install_arc_agent.sh.tmpl | UTF-8 | 506 | 2.53125 | 3 | [] | no_license | #!/bin/bash
# Download the installation package
wget https://aka.ms/azcmagent -O ~/install_linux_azcmagent.sh
# Install the hybrid agent
sudo bash ~/install_linux_azcmagent.sh
# Import the config variables set in vars.sh
# Run connect command
sudo azcmagent connect \
--service-principal-id "${client_id}" \
--ser... | true |
ae3d11abcafd32892a839639bd3460469a57f261 | Shell | kdemidov/dotfiles | /zsh/completion.zsh | UTF-8 | 5,775 | 2.921875 | 3 | [] | no_license | #
# Tab completion configuration
#
# Load and initialize the completion system ignoring insecure directories
autoload -Uz compinit && compinit -i
# Load completion listings module
zmodload -i zsh/complist
#
# Options
#
# Complete from both ends of a word
setopt COMPLETE_IN_WORD
# Move cursor to the end of a comple... | true |
75088e9139d53250250f790493a0cf3d0adbe1b9 | Shell | rajiv-ranjan/consulting-utilities | /Openshift/installation/dockerStorage/setDockerStorageToThinPoolStorage.sh | UTF-8 | 2,708 | 2.796875 | 3 | [] | no_license | #!/bin/bash
for host in \
master-0.rajranja.lab.pnq2.cee.redhat.com \
master-1.rajranja.lab.pnq2.cee.redhat.com \
master-2.rajranja.lab.pnq2.cee.redhat.com \
infra-0.rajranja.lab.pnq2.cee.redhat.com \
infra-1.rajranja.lab.pnq2.cee.redhat.com \
node-0.rajranja.lab.pnq2.cee.redhat.com \
node-... | true |
765c2a77675e00c950b7f4a048ed84026d8709e7 | Shell | facebook/chef-cookbooks | /cookbooks/fb_less/files/default/profile.d/fbless.sh | UTF-8 | 287 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | # shellcheck shell=sh
# Set some useful LESS options. If you prefer your own, set it in
# your shell startup script and it will be honored.
if [ -z "${LESS+set}" ]; then
export LESS='-n -i'
fi
if [ -z "${LESSOPEN+set}" ]; then
export LESSOPEN='||/usr/local/bin/lesspipe.sh %s'
fi
| true |
71697d115ccf085b70acbde644b14d2718a044a0 | Shell | GAIMJKP/expLinkage | /bin/runDiffSeed.sh | UTF-8 | 154 | 3.171875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
set -xu
startSeed=$1
shift
endSeed=$1
shift
command=$1
for seed in $(seq $startSeed $endSeed)
do
echo $seed
$command --seed=$seed
done | true |
aec24518ad6671ec1b1d3485c57df8872ddbb3e3 | Shell | cgzones/ctguard | /itests/research/test2/test.sh | UTF-8 | 710 | 3.421875 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | #!/bin/sh
set -eu
BIN=../../../src/research/ctguard-research
if ! [ -e ${BIN} ]; then
echo "Could not find binary at '${BIN}'!"
exit 1
fi
cleanup () {
rm -f test.output
}
cleanup
chmod 640 rules.xml test.conf
OUTPUT=$(${BIN} --cfg-file test.conf --input -f << EOF
Sep 24 12:10:03 desktopdebian unix_chk... | true |
f61ce5d09002bf54e8f1a3d38ae1fd4e9ad9f506 | Shell | leva24/levproject | /factorial.sh | UTF-8 | 174 | 3.375 | 3 | [] | no_license | #factorial
echo "enter a number"
read num
fact=1
numb=$num
while [ $num -ge 1 ]
do
fact=` expr $fact \* $num `
num=` expr $num - 1 `
done
echo "factorial of $numb is $fact"
| true |
954ffca170f5607f80ac392705061781d62935cc | Shell | sara-sabr/poc-network-vpn-split-tunnel | /Server/install.sh | UTF-8 | 822 | 2.65625 | 3 | [
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/sh
# Install docker on the VM assuming Ubuntu.
sudo apt-get update
sudo apt install docker.io -y
sudo apt install docker-compose -y
sudo systemctl start docker
sudo systemctl enable docker
sudo ufw allow ssh
sudo ufw allow 53
sudo ufw allow 500,4500/udp
sudo sed -i '\/net\/ipv4\/ip_forward/s/^#//g' /etc/ufw/... | true |
4e5aaf42be5ad1a49e03c2508ad9028d64fdb201 | Shell | jrevillard/biomed-support-tools | /SE/monitor-se-space/list-users-voms.sh | UTF-8 | 1,575 | 4.25 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# list-voms-users.sh, v1.0
# Author: F. Michel, CNRS I3S, biomed VO support
VO=biomed
VOMS_HOST=voms-biomed.in2p3.fr
VOMS_PORT=8443
VOMS_USERS=`pwd`/voms-users.txt
help()
{
echo
echo "This script gets the list of users from the VOMS server using the voms-admin command."
echo "The result file is repl... | true |
878a5243da3637a2331ac0181aaca58c2c237cbe | Shell | ch3rag/BASH | /Programs/Function/EuclideanGCD.sh | UTF-8 | 949 | 3.421875 | 3 | [] | no_license | ########################################################################
# Author: Bharat Singh Rajput #
# File Name: EuclideanGCD.sh #
# Creation Date: April 16, 2020 08:58 PM #
# Last Updated:... | true |
0257287ca8b6bf5651a1dc7d6555ed5878dc0a57 | Shell | YingLin-NOAA/pcpverif_metplus | /scripts/run_rtma_urma_st4.sh | UTF-8 | 3,689 | 3.28125 | 3 | [] | no_license | #!/bin/ksh
set -x
. ~/dots/dot.for.metplus
echo 'Actual output starts here:'
if [ $# -eq 0 ]
then
export vday=`date +%Y%m%d -d "2 day ago"`
else
export vday=$1
fi
run_pcprtma=1
run_pcprtma2p8=1
run_pcpurma=1
run_pcpurma2p8=1
run_st4=1
run_st4x=1
# export for ${model}_24h.conf:
MET=/gpfs/dell2/emc/verification/n... | true |
0eef3a539c0c062e88ea37b84545846ae810be53 | Shell | mnewt/teleprompt | /sh/__prompt_functions | UTF-8 | 2,351 | 3.75 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
__prompt_status () {
[ $__prompt_last_status -eq 0 ] && return 1
echo $__prompt_last_status
}
__prompt_directory () {
printf ${PWD/$HOME/"~"}
}
__prompt_short_directory () {
local length=20
local p=${PWD/#$HOME/\~} b s
while [ "$p" ] && [ ${#p} -gt $length ]; do
re_match "$p" '^(\... | true |
1cb740b0ef9f6ebec0fe2c213bbfa160f4a3d48f | Shell | red-lever-solutions/aws-meetup-vienna-20151126 | /provision/nginx/bootstrap.sh | UTF-8 | 371 | 2.859375 | 3 | [] | no_license | #!/bin/bash
HOSTNAME=`hostname`
mkdir -p /opt/nginx/data
cat >/opt/nginx/data/index.html <<EOF
<!doctype html>
<html>
<head><title>Hello, AWS enthusiasts!</title></head>
<body>
<p>
Hi, this is <strong>${HOSTNAME}</strong> speaking!
</p>
</body>
</html>
EOF
cp /tmp/bootstrap/docker-compose.yml /opt/nginx
cp /tmp/boot... | true |
460db62d216f3e799e3a1ebabfd99804ee7f5b4c | Shell | kavod/TvShowWatch-2 | /syno/scripts/postinst | UTF-8 | 464 | 2.6875 | 3 | [] | no_license | #!/bin/sh
PIP="/var/packages/python/target/bin/pip"
PYTHON="/var/packages/python/target/bin/python"
${PIP} install --upgrade pip > '/tmp/TSW2.log'
cd "${SYNOPKG_PKGDEST}" && ${PYTHON} utils/execute_color.py "Installing JSAG3" ${PYTHON} utils/pkg_manager.py "install" "JSAG3" >> '/tmp/TSW2.log' 2>&1
cd "${SYNOPKG_PKGD... | true |
6cc345d33a2ce691d235e6b49d8e85588b9c5831 | Shell | chessai/ghc | /ghc-4335c07/.circleci/fetch-submodules.sh | UTF-8 | 457 | 2.609375 | 3 | [] | no_license | #!/nix/store/nkq0n2m4shlbdvdq0qijib5zyzgmn0vq-bash-4.4-p12/bin/bash
set -euo pipefail
# Use github.com/ghc for those submodule repositories we couldn't connect to.
git config remote.origin.url git://github.com/ghc/ghc.git
git config --global url."git://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages... | true |
b39ea36d055300d504adf5faedcd8f0724125c2d | Shell | IvanLJF/My_InSAR_Codes | /tli_scr/plot_goecoded | UTF-8 | 1,079 | 2.625 | 3 | [] | no_license | #!/bin/sh
echo '****************************************'
echo '* Plotting geocoded deformation map... *'
echo '****************************************'
pdeffile='lel6vdh_merge_geocode_GMT'
psfile='lel6_geocoded.ps'
sz=0.01i # Size of the points
gmtset ANNOT_FONT_SIZE 9p ANNOT_OFFSET_PRIMARY 0.07i FRAME_WIDTH 0.04i... | true |
9431ac7a1c3dbd501878dc369e4ef79f18409608 | Shell | leschultz/analysis_scripts | /gather_apd | UTF-8 | 245 | 2.53125 | 3 | [] | no_license | #!/bin/bash
# Gather APD values from analysis
# Inputs:
# <analysis data from jobs>
# <name of file containing APD>
# <export directory>
gather_apd.py\
'../export'\
'apd_last.txt'\
'../export/analysis_data'
| true |
8e579c2ce3de01013f0b9dd9a4dff5d68c497b2a | Shell | flexiOPSResources/FCONodeMonitoringScripts | /scripts/storage/storage10min.sh | UTF-8 | 1,929 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -X
STORAGEDIR="/opt/extility/skyline/war/storage10/"
DATE=$(date "+%Y-%m-%dT%H:%M:%S")
storagec1 ()
{
STORAGE1KB=$(ceph df -f json-pretty | grep total_used | awk '{print $2}' | sed -e 's/,//g')
STORAGE1=$(echo $STORAGE1KB*1024 | bc)
AVAILABLESTORAGE1KB=$(ceph df -f... | true |
2cf621c31c3697724ef10d9b644477aa99558a94 | Shell | buildpacks/samples | /extensions/curl/bin/generate | UTF-8 | 191 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -eo pipefail
# 1. GET ARGS
output_dir=$CNB_OUTPUT_DIR
# 2. GENERATE run.Dockerfile
cat >>"${output_dir}/run.Dockerfile" <<EOL
FROM localhost:5000/run-image-curl
EOL
| true |
6c3af8ada8be5daa1c2f5d8a1c397383019b78d5 | Shell | arashkaffamanesh/hivemq-mqtt-tensorflow-kafka-realtime-iot-machine-learning-training-inference | /infrastructure/confluent/01_installConfluentPlatform.sh | UTF-8 | 12,646 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
# set current directory of script
MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
until gcloud container clusters list --zone europe-west1-b | grep 'RUNNING' >/dev/null 2>&1; do
echo "kubeapi not available yet..."
sleep 3
done
echo "Deploying prometheus...... | true |
ae8dc597617e5f4f1ad51f15160539ebd367aea3 | Shell | idosch/misc | /scripts/kernel/post-receive | UTF-8 | 3,940 | 3.46875 | 3 | [] | no_license | #!/bin/bash
source hooks/post-receive.config
read OLD_REV NEW_REV BRANCH
check_err()
{
local err="$1"
local msg="$2"
if [[ $err -eq 0 ]]; then
printf "STEP: %-65s [ OK ]\n" "$msg"
else
printf "STEP: %-65s [FAIL]\n" "$msg"
fi
}
log_step()
{
local name="$1"
printf "\n######################## "$name" #... | true |
2af70e182d5dc4d54f5492f15f14832929ab746c | Shell | dbeley/scripts | /buku.sh | UTF-8 | 237 | 2.8125 | 3 | [] | no_license | #!/bin/bash
# This script allows searching in buku bookmarks
pgrep -x rofi && exit 1
pgrep -x buku && exit 1
link="$(buku -p -f 10 | sed '/^waiting/ d' | rofi -p "Favoris " -i -dmenu)"
[ -z "$link" ] && exit 1
xdg-open "$link"
exit 0
| true |
c3beee9d34841007cb38d6b540ea9d6ab96593e6 | Shell | harimurtie/ndotfiles | /scripts/gitpush | UTF-8 | 498 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# A helper script to push content to GitHub
# Cheers! Addy
# Check if there is unfetched online files
echo -e "\e[34mChecking if there is an unfetched file from the repository\e[0m"
git pull
# Add every files in the project folder
git add --all .
# Add commit message
echo -e "\e[33mWrite your commit com... | true |
e166b8a3734a6656f13fb77fed7671f628ad97a8 | Shell | paultag/dockerfiles | /postgres/paultag-psqld | UTF-8 | 828 | 3.59375 | 4 | [] | no_license | #!/bin/bash
# Copyright (c) Paul R. Tagliamonte, MIT/Expat
set -e
VERSION="9.4" # XXX: Update this with the rest of the dockerfiles.
DATABASEDIR="/var/lib/postgresql/${VERSION}/main"
DB_OWNER=$(stat -c "%U" ${DATABASEDIR})
if [ "x${DB_OWNER}" != "xpostgres" ]; then
chown -R postgres:postgres ${DATABASEDIR}
fi
... | true |
62488850d39df5250d5da9a6689303314b386577 | Shell | Nax/Forsaken-Souls | /utils/mkspritesheet.sh | UTF-8 | 644 | 3.28125 | 3 | [] | no_license | #!/usr/bin/env zsh
# $1 -> Folder
# $2 -> Size
# $3 -> Outfile
rm -rf /tmp/mini;
mkdir /tmp/mini;
rm -rf /tmp/line;
mkdir /tmp/line;
num=0;
for file in $1/Anim*/*.png; do
convert $file -resize $2 /tmp/mini/img`printf '%08d' $num`.png;
num=`expr $num + 1`;
done;
sqrt=`ruby -e "p Math::sqrt($num).ceil"`;
used=0;
... | true |
4b201df58ca36b8df2a8eee737748e3a234f228d | Shell | felixonmars/sample-media-qmlvideo | /scripts/device-monitor.sh | UTF-8 | 743 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
CMAKE_SOURCE_DIR=$1
MON_TYPE=$2
if [ -z $CMAKE_SOURCE_DIR ]; then
echo 'Source dir not specified!'
exit 1
fi
case ${MON_TYPE} in
"mem")
MON_COL=rss
MON_UNIT='KB'
;;
"cpu")
MON_COL=pcpu
MON_UNIT='%'
;;
*)
echo "Unrecognized monitor type ${MON_TYPE}"
exit 1
;;
es... | true |
8832c860ecc6b7cdaf072a634d842746291e2aff | Shell | neotys-keptn-orders/keptn-orders-setup | /provisionAks.sh | UTF-8 | 2,972 | 3.546875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
AZURE_SUBSCRIPTION=$(cat creds.json | jq -r '.azureSubscription')
AZURE_RESOURCE_GROUP=$(cat creds.json | jq -r '.azureResourceGroup')
CLUSTER_NAME=$(cat creds.json | jq -r '.clusterName')
AZURE_LOCATION=$(cat creds.json | jq -r '.azureLocation')
AKS_VERSION=1.11.9
echo "==================================... | true |
968ddfd585bf9676e4eea574e86c51a2e6b73f9a | Shell | Elitebigboss90/Redwood | /util/notification-broadcast | UTF-8 | 714 | 3.15625 | 3 | [] | no_license | #!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it re... | true |
f2993dcc349c0bb648a7ca6b078eca1d100b9543 | Shell | touch123/csgear | /loganly/filespider/pick | UTF-8 | 1,443 | 3.75 | 4 | [] | no_license | #!/bin/sh
alias AWK=awk
DB_ORG_NAME=$WORK_DIR/db.json
function pick(){
app=$1
date=$2
echo "{ " >> $WORK_DIR/db.json
for logfile in $WORK_DIR/$app/output/$date-*.txt
do
echo "\"$logfile\" : {" >> $WORK_DIR/db.json
AWK -f pick.$app.awk $logfile >> $WORK_DIR/db.json
echo "}," >> $WORK_DIR/db.j... | true |
481b24f3631a0c7e17587a1b2ddeb4e7945e09ba | Shell | jnehlt/sdg | /packer/pscr/net.sh | UTF-8 | 3,079 | 2.796875 | 3 | [] | no_license | #!/usr/bin/env bash
yum remove firewalld -y
yum install iptables iptables-services -y
rm -f /etc/sysconfig/iptables
cat << 'EOF' >> ./iptables
*filter
# Clear all iptables rules (everything is open)
-X
-F
-Z
# Allow loopback interface (lo0) and drop all traffic to 127/8 that doesn't use lo0
-A INPUT -i lo -j ACCEPT... | true |
3fd760b1abc421728ecd2370d429a2adaa8fc174 | Shell | ndouglas/dotfiles | /ansible/roles/ndouglas.deploy_dotfiles/files/bash/library/get_prompt_atsign.sh | UTF-8 | 168 | 3.171875 | 3 | [
"Unlicense"
] | permissive | #!/usr/bin/env bash
# The kind of at-sign we'd like to use in a prompt.
nd_get_prompt_atsign() {
echo "$(printf "\[$(tput sgr0)$(tput bold)\]@\[$(tput sgr0)\]")";
}
| true |
3ba8222b9701070065419e25d278140535b7e21e | Shell | AlexBezuska/photo-tools | /extract-photos.sh | UTF-8 | 1,145 | 3.8125 | 4 | [] | no_license | #!/bin/sh
# This script uses gmv which is part of `coretils` (install via homebrew) on Mac OS, if you are on Linux you can change all instances of `gmv` to `mv`
photoDestination='/path/to/photos/'
videoDestination='/path/to/photos/'
if [ -z "$1" ]; then
echo "Please add a path to a folder containing images\n Examp... | true |
145779b2cfe909b351ab331bcdd7af2664b1bd0a | Shell | funduck/pytest_fingate | /database/restore_test_db.sh | UTF-8 | 1,036 | 3.734375 | 4 | [] | no_license | #!/bin/bash
cd $(dirname $0)
file=$(basename $1)
if [ -e $file ]; then
echo Performing backup of current database to prev.test_db.tar in case you want to rollback
[ -e prev.test_db.tar ] && rm prev.test_db.tar
./backup_test_db.sh prev.test_db.tar
echo Restore from $file
docker exec -i --env PGP... | true |
c84c2f03ca5ef151b558fc26d02877bb646001b9 | Shell | anitaNeutrino/anitaTreeMaker | /reProduceAllHeaders.sh | UTF-8 | 163 | 2.59375 | 3 | [] | no_license | #!/bin/bash
firstRun=$1;
lastRun=$2
for irun in `seq $firstRun $lastRun`; do
echo Reproducing headTree for run $irun
./runLDBHeadFileMaker.sh $irun
done
| true |
4860ae1e42f634ff93f503019058afe52c0d7951 | Shell | alisawyj/python | /Shell/zipjpg.sh | UTF-8 | 664 | 3.796875 | 4 | [] | no_license | #!/bin/bash
JPG=$(date -d +1day "+%Y%m%d")
curDate=$(date "+%Y%m%d")
SRC_DIR="/d/code_test"
function batch_convert() {
for FILENAME in `ls $1`
do
if [ -d "$1/$FILENAME" ]
then
cd "$1/$FILENAME"
batch_convert ./
else
if [ "${FILENAME##*.}" = "jpg" ];the... | true |
5ede7a5fc98342f36139db230b66c4541cacbce6 | Shell | Schetkiglobe7/GVirtuS | /gvirtus.cusparse/install.sh | UTF-8 | 386 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
INSTALL_FOLDER=$1
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${INSTALL_FOLDER} \
-G "Unix Makefiles" -j 4 \
. \
--graphviz=.graphviz/gvirtus.cusparse.dot
make
make install
dot -T pdf .graphviz/gvirtus.cusparse.dot -o gvirtus.cusparse.pdf
echo
/bin/echo -e "\e[1;30;102m... | true |
1559b8e524be8450e7a99be8c0c9fe3e917fb0e6 | Shell | guilherme/aliases | /scripts/build-release-debian.sh | UTF-8 | 412 | 3.140625 | 3 | [] | no_license | #!/bin/bash -u
VERSION_NUMBER=${1}
docker build -t alias-debian-pkg-builder -f packagers/debian/Dockerfile .
CONTAINER_ID=$(docker create -e VERSION_NUMBER="$VERSION_NUMBER" alias-debian-pkg-builder)
docker start -ai ${CONTAINER_ID}
docker cp ${CONTAINER_ID}:/tmp/aliases_${VERSION_NUMBER}.deb .
mkdir -p releases/... | true |
8f627784354235c439b0b39adfff47f63d44605d | Shell | paradisepilot/test-pachyderm | /docker-edges/DELETEME/2020-04-29.01/build-image.sh | UTF-8 | 293 | 2.84375 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
test -z "$1" && echo Need version number && exit 1
IMAGE="demo-pachyderm$1"
docker build . -t $IMAGE > stdout.docker.build 2> stderr.docker.build
# docker tag $IMAGE paradisepilot/test-pachyderm:$IMAGE
# docker push paradisepilot/test-pachyderm:$IMAGE
| true |
5c8eb999977bd1112b930ca2a2527bfc6a22f472 | Shell | FAruba611/COMP9041 | /17s2/test05/missing_include.sh | UTF-8 | 853 | 3.421875 | 3 | [] | no_license | #!/bin/sh
src_file="$@"
#cat $@
for src_file in "$@"
do
while read line
do
if [ `echo $line | wc -L` -lt 8 ]
then
#this line's length is shorter than 8
:
elif [ `echo $line | wc -L` -ge 8 ]
then
if [ "`echo $line | cut -c1-8`" = "#include" ] # compulsory to add "" on the both side
then
#line... | true |
6a0f4e74de6777c38eb12c55d64d97608fcff3d6 | Shell | gdamaskinos/isim | /utils/deploy_cluster.sh | UTF-8 | 5,533 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ "$#" -ne 2 ]; then
echo "usage: RUN_TESTS=1 bash $0 <'STANDALONE' || 'YARN'> <temp_dir>"
exit 1
fi
temp_dir=$(readlink -f $2)
host=`hostname -I | awk '{print $1}'`
SCRIPT=`realpath -s $0`
SCRIPTPATH=`dirname $SCRIPT`
#### STANDALONE SPARK ####
if [ "$1" = STANDALONE ]; then
cp $SPARK_HOME/co... | true |
f79e25da38c7ea986de9971c8db6f8ed9592051f | Shell | sashaman/mailcow-CloudFlare-DNS | /mailcow_cloudflare_dns.sh | UTF-8 | 8,999 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/usr/local/bin/zsh
#
scriptVersion="v0.9"
# Manual Config (0 input)
#################### CLOUDFLARE ACCOUNT CONFIG #####################
auth_mail="enter-your-cloudflare-email" # CF Email
auth_key="enter-your-cloudflare-api-key" # CF API Key
zone_id="enter-your-cloudflare-zone-key" # CF DNS Zone Key
DOMAIN="your-doma... | true |
c728f6a941fa574dfee6540f4224b94d50e7bf66 | Shell | dthoma141/Scripting | /securityscript.sh | UTF-8 | 2,612 | 3.796875 | 4 | [] | no_license | #!/bin/bash
#!/bin/bash
#tThis is a sscript to
`
1) Based on a user input parameter display the status of security - firewalld and selinux on a Linux system
2) Based on a user input parameter temporally enable or disable security - firewalld and selinux
3) Based on a user input parameter permanently enable or disabl... | true |
6c9bf193b36ec1403982d45121f3b71ba1bdc240 | Shell | PPinto22/PROMOS | /scripts/neat_sampling.sh | UTF-8 | 456 | 2.703125 | 3 | [] | no_license | #!/bin/bash
evolver="python ../src/py/evolver.py"
options="-d ./data/2weeks/best_idf_train.csv -t ../data/2weeks/best_idf_test.csv -P ../params/neat.txt -o ../results/sampling -m neat -T20 -p8"
runs=10
for i in $(seq 1 $runs)
do
( ${evolver} ${options} -s 100 --id="100(${i})" ) &
( ${evolver} ${options} -s 1000 --id... | true |
78367e7e9ce8b6b33e9ba1ee37043a3c7087efe8 | Shell | col1985/ionic-template | /preinstall.sh | UTF-8 | 490 | 3.90625 | 4 | [] | no_license | #!/bin/bash
NODE_VERSION="v6.9.5"
function versionCheck {
printf "\n"
printf "Checking NodeJS version is compatiblie with project configuration..."
node --version | grep ${NODE_VERSION}
if [ "$?" != "0" ]; then
printf "\n"
printf "Unable to " >&2
printf "\n"
printf "\n"
exit 1
else
... | true |
93c9cf7f1d34870f05d69811c947d1debdb6b0b5 | Shell | FFrabetti/Cooperative-container-migration | /experiments/utils/get_filler_file.sh | UTF-8 | 883 | 4.03125 | 4 | [] | no_license | #!/bin/bash
SIZE=$1 # in KB (or xxxMB)
INDEX=$2 # 1..95 -> +31 -> 32..126 DEC (see: man ascii)
INDEX=$(((INDEX - 1) % 95 + 1))
DEC=$((INDEX + 31))
# awk 'BEGIN { printf("%c", '$DEC') }'
filename="filler$INDEX"
# create filler files if not present
if [ ! -f $filename ]; then
# awk 'BEGIN { for(i=0; i<1024; i++) p... | true |
582da58dc574e39f2b12251d3c48a6dc6e76c1dc | Shell | tanawit-dev/spring-message-with-rabbitmq | /build.sh | UTF-8 | 315 | 2.9375 | 3 | [] | no_license | if [ -z "$1" ]
then
projects="customer-service email-service"
for project in $projects
do
mvn -f $project/pom.xml clean package -DskipTests
docker build -t tanawit17/$project $project/
done
else
mvn -f $1/pom.xml clean package -DskipTests
docker build -t tanawit17/$1 $1/
fi | true |
54b9ec664faca17b68f1a94adf60cbbb384f172f | Shell | williamthorsen/mount-project-aws-cicd | /src/aws/ec2/helpers/ssh-via-jump-host.sh | UTF-8 | 833 | 3.859375 | 4 | [] | no_license | #!/usr/bin/env bash
# This script is meant for connecting to a host with a private IP address (the private host)
# via a host with a public IP address (the jump host).
#
# Typical use case:
# - the private host is in a private subnet of a VPC
# - the jump host is in a public subnet of the same VPC
# - the connection i... | true |
a6f0883cf0524ecfd219d7c5542d09290d8da61d | Shell | philip-park/idv | /scripts/config-vgpu.sh | UTF-8 | 3,088 | 3.6875 | 4 | [] | no_license | #!/bin/bash
#===========================================
# select_mdev node
# locate and list the node for user to select.
# The default will be display in Green color
# i915-GVTg_V5_1 (1920x1200)
# i915-GVTg_V5_2 (1920x1200)
# i915-GVTg_V5_4 (1920x1200) <-- default
# i915-GVTg_V5_8 (1024x768)
#
# Require:
# scripts/... | true |
42dbab3cb6c9bf1899b6bbb86394027acc60c8c9 | Shell | DevoKun/dockerfiles | /asgard-centos/files/asgard-standalone.sh | UTF-8 | 303 | 2.53125 | 3 | [] | no_license | #!/bin/bash
MAXPERMSIZE="128m"
MAXPERMSIZE="512m"
export HTTP_PORT="8080"
export HTTP_HOST="localhost"
export ASGARD_HOME="/opt/asgard"
cd $ASGARD_HOME
java \
-Xmx1024M \
-XX:MaxPermSize=${MAXPERMSIZE} \
-DskipCacheFill=true \
-jar asgard-standalone.jar \
"" $HTTP_HOST $HTTP_PORT
echo $?
| true |
3f155c3c186f308529795a06d3cd3d903e77d123 | Shell | FusionPlmH/Fusion-Project | /vtools-scene/app/src/main/assets/custom/switchs/cloudmusic_ad_get.sh | UTF-8 | 645 | 3.1875 | 3 | [] | no_license | #!/system/bin/sh
if [[ ! -n "$SDCARD_PATH" ]]; then
if [[ -e /storage/emulated/0/Android ]]; then
SDCARD_PATH="/storage/emulated/0"
elif [[ -e /sdcard/Android ]]; then
SDCARD_PATH="/sdcard/"
elif [[ -e /data/media/0/Android ]]; then
SDCARD_PATH="/data/media/0"
fi
fi
path=$SDCAR... | true |
d722779552de547dff36a309c02a01efe6d4efb0 | Shell | clelange/zshutils | /autoKerb/renew_kerb.sh | UTF-8 | 1,843 | 3.875 | 4 | [] | no_license | #!/bin/bash
######
## USER OPTIONS PLEASE ADAPT TO YOUR NEEDS
KERB_USER="clange";
REALM="CERN.CH";
server="cerndc.cern.ch";
### END OF USERS OPTIONS
######
title="Kerberos_Status";
chck_port="/System/Library/CoreServices/Applications/Network Utility.app/Contents/Resources/stroke";
# assume growlnotifier is installed... | true |
9a027e15e8bc00dd107804f79a10f870eb0588ea | Shell | abhilash07/kong-boshrelease | /jobs/kong/templates/ctl.erb | UTF-8 | 1,011 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
JOB_NAME=kong
BASE_DIR=/var/vcap
SYS_DIR=$BASE_DIR/sys
RUN_DIR=$SYS_DIR/run/$JOB_NAME
LOG_DIR=$SYS_DIR/log/$JOB_NAME
JOB_DIR=$BASE_DIR/jobs/$JOB_NAME
CONFIG_DIR=$JOB_DIR/etc/kong
CONFIG_FILE=$CONFIG_DIR/kong.conf
PIDFILE=$RUN_DIR/$JOB_NAME.pid
mkdir -p $RUN_DIR $LOG_DIR $CONFIG_DIR
case $1 in
start... | true |
8df07c0b341732b9d613357151a748b566febb07 | Shell | mayunlong89/bed_statistics | /parse_split_utr_hierarchy.sh | UTF-8 | 3,284 | 3.671875 | 4 | [] | no_license | #!/bin/bash
## parse_split_utr_hierarchy.sh
## alex amlie-wolf 07-16-2015
## a script that takes in the entrywise output from entrywise_bed_coverage.py and reports the number
## and proportion of entries in each type of genomic element, assuming that the coverage script
## was run using the split UTR (exons and intron... | true |
a81763f55fd8d25bb8e6b370fdf4e9d41a7df448 | Shell | matthapenney/AmyloidPet-Pipeline | /3_native_to_pet.sh | UTF-8 | 4,590 | 3.328125 | 3 | [] | no_license | #!/bin/bash
#$ -S /bin/bash
#$ -o /ifshome/mhapenney/logs -j y
#$ -q compute.q
#------------------------------------------------------------------
# CONFIG - petproc.config
CONFIG=${1}
source utils.sh
utils_setup_config ${CONFIG}
#------------------------------------------------------------------
for subj in ${SU... | true |
54a49e232e517021c60f943700ab4f9f98d71155 | Shell | rbax82/Bash-Admin-Scripts | /.zshrc | UTF-8 | 22,478 | 3.15625 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ##################################
# Author : Jon Zobrist <jon@jonzobrist.com>
# Homepage : http://www.jonzobrist.com
# License : BSD http://en.wikipedia.org/wiki/BSD_license
# Copyright (c) 2019, Jon Zobrist
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, a... | true |
20a0db0ac92f647d0be269385598b488681cda80 | Shell | yolial22/SI-T6acteva | /ej1.sh | UTF-8 | 201 | 3.140625 | 3 | [] | no_license | #!/bin/bash
read -p "Introduce un usuario: " usuario;
resultado= grep -c $usuario usuarios.txt;
if [[ $usuario -eq $resultado ]];
then
echo "$resultado";
else
echo "no se ha logeado nadie";
fi
| true |
de86ddcdcc6562173b8383f00a2c1564d088fe10 | Shell | openstack/ironic | /devstack/plugin.sh | UTF-8 | 3,256 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# plugin.sh - devstack plugin for ironic
# devstack plugin contract defined at:
# https://docs.openstack.org/devstack/latest/plugins.html
echo_summary "ironic devstack plugin.sh called: $1/$2"
source $DEST/ironic/devstack/lib/ironic
if is_service_enabled ir-api ir-cond; then
if [[ "$1" == "stack" ]];... | true |
d8af3ab312a9c6c32e48142fce06a9415d0a22e3 | Shell | whoahbot/sonumator | /process_all_files.sh | UTF-8 | 533 | 3.421875 | 3 | [] | no_license | #!/bin/bash
set -o pipefail
args=("$@")
input_files=$(gsutil ls gs://sonumator/recordings/${args[0]}/*.wav);
trimmed_input_files=("${input_files[@]%.*}")
trimmed_output_files=("${output_files[@]%.*}")
for file in $input_files; do
base_file_name=$(basename ${file[@]%.*})
file_exists=$(gsutil ls gs://sonumat... | true |
3875568369c35d96ea7047a596a75dfc60f51ccc | Shell | jsatt/dotfiles | /dot_aliases | UTF-8 | 1,980 | 2.75 | 3 | [] | no_license | alias getip='wget -qO- icanhazip.com'
alias clearpyc='find . \( -type f -name "*.pyc" -o -type d -name __pycache__ \) -delete'
alias manage='python manage.py'
alias ipdbtest='manage test -sx --ipdb --ipdb-failures'
alias watchredis='redis-cli -n 1 monitor | cut -b -200'
alias watchtest='django-admin.py test --settings=... | true |
950867e88871e52351a319165d58f6654b0b6f2b | Shell | Freedom-Mr/casia-elasticsearch-shell | /write.sh | UTF-8 | 1,033 | 2.6875 | 3 | [] | no_license | #!/usr/bin/env bash
myJarPath=./lib/casia-elasticsearch-shell-5.6.3.1.14.jar
# 写入数据
#****************** 模式一 (已存在索引)**********************************
#参数1:数据源 , 参数2:数据主键, 参数3:数据文件夹路径, 参数4:索引名称, 参数5:索引类型
dataSource=test
id=id
dirPath=test/write
indexName=mblog_info
indexType=monitor_caiji
# 执行写入
nohup java -cp ${myJ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.