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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
eddcd7d7124dd83a31309f32ff83d43b8cf0cf23 | Shell | cash2one/cloud | /code/shell/tool/clean-git-rep.sh | UTF-8 | 588 | 2.71875 | 3 | [] | no_license | #!/bin/bash
# find exe file
find code -not -name "*.*" -type f > clearlist
echo "*tags" >> clearlist
echo "*.log" >> clearlist
echo "*.out" >> clearlist
echo "*.*~" >> clearlist
echo "*.vimrc" >> clearlist
echo "recv_file.tar.gz" >> clearlist
while read line
do
#git filter-branch -f --prune-empty -d /dev/shm/scra... | true |
4fafb760355396ded5231deef6fa2639a6745013 | Shell | PacktPublishing/Django-Web-Development-with-Python | /Module 2/Chapter11/django-myproject-11/deployment/commands/cleanup.bsh | UTF-8 | 293 | 2.78125 | 3 | [
"MIT"
] | permissive | #! /usr/bin/env bash
PROJECT_PATH=/home/myproject
CRON_LOG_FILE=${PROJECT_PATH}/logs/cleanup.log
echo "Cleaning up the database" > ${CRON_LOG_FILE}
date >> ${CRON_LOG_FILE}
cd ${PROJECT_PATH}
. bin/activate
cd project/myproject
python manage.py cleanup --traceback >> ${CRON_LOG_FILE} 2>&1
| true |
a73c85ba5e863e24079e15d891073c8553e04ce6 | Shell | pytorch/builder | /release/promote/prep_binary_for_pypi.sh | UTF-8 | 1,693 | 4.09375 | 4 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
# Preps binaries for publishing to pypi by removing the
# version suffix we normally add for all binaries
# (outside of default ones, CUDA 10.2 currently)
# Usage is:
# $ prep_binary_for_pypy.sh <path_to_whl_file> <path_to_multiple_whl_files>
# Will output a whl in your current directory
set -eo... | true |
3ab063656c11c688687bcab683e59cc1fb68f868 | Shell | kibatic/symfony-docker | /8.2/rootfs/entrypoint.sh | UTF-8 | 705 | 3.3125 | 3 | [] | no_license | #!/usr/bin/env bash
chown -R www-data:www-data /var/www/var
SYMFONY_VERSION=${SYMFONY_VERSION:-5}
NGINX_CONFIG=symfony$SYMFONY_VERSION
# Avoid to remove a bind mounted nginx config
NGINX_DEFAULT=/etc/nginx/sites-enabled/default
if ! mountpoint -q $NGINX_DEFAULT; then
echo "Using default nginx config : $NGINX_CONFI... | true |
29127546f17eed887b5fe7ecc3c0cf6d7865b410 | Shell | vaibhav-dhawan/ubs_mutating_webhook | /deploy.sh | UTF-8 | 5,419 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
name=$1
platform_namespace="${platform_namespace:-domino-platform}"
compute_namespace="${compute_namespace:-domino-compute}"
tls_secret=$2
host=$3
replicas=$4
[ -z ${name} ] && echo "Please specify a webhook unique name" && exit 1
[ -z ${tls_secret} ] && echo "Please specify a tls secret" && exit 1... | true |
c3e872d9878235d5baae4394a2853f9d517b5563 | Shell | lucmos/plyvel | /scripts/install-snappy.sh | UTF-8 | 365 | 2.9375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
set -eux
SUDO=$(command -v sudo || true)
SNAPPY_VERSION=1.1.7
mkdir /opt/snappy
cd /opt/snappy
curl -sL https://codeload.github.com/google/snappy/tar.gz/${SNAPPY_VERSION} | tar xzf -
cd ./snappy-*
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_POSITION_INDEPENDENT_CODE=on .
cmake --build .
$SUDO "$(command -v cmake... | true |
ee999d87175a2690cfef0a5d4ac90c72949c7d6e | Shell | bcdev/calvalus2 | /calvalus-examples/bundles/s2-granules-1.0/granule-splitter-prepare | UTF-8 | 224 | 3.25 | 3 | [] | no_license | #!/bin/bash
# switch on job control
set -e
set -m
inputPath="$1"
outputPath="$2"
marker=_$(basename ${inputPath})
if hadoop fs -ls ${outputPath}/${marker}; then
# output exist
echo CALVALUS_SKIP_PROCESSING yes
fi
| true |
5584e7e1e4126bd3532cadf98373509320e910fc | Shell | nlitsme/IncludeOS | /test/exceptions/run.sh | UTF-8 | 1,169 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #! /bin/bash
set -e
# Start as a GDB service, for debugging
# (0 means no, anything else yes.)
export IMAGE=$1
[ -z $INCLUDEOS_HOME ] && INCLUDEOS_HOME=$HOME/IncludeOS_install
DEBUG=0
[[ $2 = "debug" ]] && DEBUG=1
# Get the Qemu-command (in-source, so we can use it elsewhere)
. $INCLUDEOS_HOME/etc/qemu_cmd.sh
# ... | true |
6d5959f33c77a45e4c0c4b9611cae9577b08b762 | Shell | coolhandle01/pimake | /script/unpack.sh | UTF-8 | 162 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
source script/common/version.sh
header "$0"
#
# unpack the raspian image
#
msg "decompressing $build"
unzip $package -d $workspace_dir/img
exit 0
| true |
3d03dd30c73caaa9eba7335c0e2a3d2f70b9fd94 | Shell | askmhx/os-tools | /yum2apt.sh | UTF-8 | 1,044 | 3.75 | 4 | [] | no_license | #!/bin/bash
#
# Author MengHX
# Email mhxdev@gmail.com
case "$1" in
install)
apt-get install $2
;;
search)
apt-cache search $2
;;
update)
apt-get upgrade
;;
check-update)
apt-get update
;;
... | true |
cdc1965c9bc07aa6432f79c6b66d1199ecc62c47 | Shell | httpsmashina/LSCAN | /updater.sh | UTF-8 | 681 | 3.421875 | 3 | [] | no_license | #!/usr/bin/env bash
LCYAN=$(echo -en '\033[01;36m')
LYELLOW=$(echo -en '\033[01;33m')
clear
echo "${LCYAN}Updating LSCAN..."
sleep 1
clear
echo -e "${LYELLOW}\c"
sudo apt --only-upgrade install netdiscover
sudo apt --only-upgrade install net-tools
sudo apt --only-upgrade install iftop
clear
echo "${LCY... | true |
d79f92f1357397acd7fcc7157a11ffcc88f27cd2 | Shell | almacro/snippets | /shell/mk_sparsi.sh | UTF-8 | 419 | 3.546875 | 4 | [] | no_license | #!/usr/bin/env bash
#
# this script creates an encrypted sparse disk image on macosx
if [ $# -ne 2 ]
then
echo "ERROR wrong number of args given"
echo "usage: $0 <thesize>[mg] <thename>"
exit 1
fi
SIZE=$1
NAME=$2
echo creating volume named $NAME of size $SIZE
/usr/bin/hdiutil \
create \
-encryption \
-s... | true |
423df65b445622102a3f3f79d7939c8a8d6236b2 | Shell | VERITAS-Observatory/Eventdisplay_AnalysisScripts_VTS | /scripts/IRF.optimizeTMVAforGammaHadronSeparation.sh | UTF-8 | 5,372 | 3.515625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# script to optimize BDT cuts
#
#
h_cpu=11:59:59; h_vmem=4000M; tmpdir_size=1G
if [[ $# -lt 5 ]]; then
# begin help message
echo "
Optimize BDT cuts for TMVA with signal rates from MC and background rates from data.
IRF.optimizeTMVAforGammaHadronSeparation.sh <preselection results directory> <cut type> <... | true |
9c1eb9289e02580dd20b0c8bc9f8715c4ea2e9e0 | Shell | amitdu/udacity-capstone | /infra/scripts/deploy.sh | UTF-8 | 656 | 3.046875 | 3 | [] | no_license | # set -eux
# set -o pipefail
# takes argument as build no to update the app.yaml via sed
DEPLOYMENT_PATH="infra/k8/app.yaml"
echo "<< There are total 4 pods are running as per app.yaml and maximum surge 1 or 25% is set>>"
echo "<<<<<< Before Deployemnt >>>>>>"
kubectl get pods
echo "<<<<<<< Deploymennts going to start.... | true |
47cdb4e9ce93ba20bbb3599b23e7b08e5c81a45a | Shell | BGI-shenzhen/LDBlockShow | /src/make.sh | UTF-8 | 1,149 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#$ -S /bin/sh
echo Start Time :
date
echo Detection system platform is
if [ "$(uname)" == "Darwin" ];then
echo MacOS
cp plink_mac ../bin/plink
which "gzcat" >/dev/null 2>&1
if [ $? -eq 0 ];
then
echo check gzcat done
sed 's/ zcat/ gzcat/g' ./FileDeal.h > ./FileDeal.h.tmp
mv ./Fil... | true |
cd5fe683fe77d1a89949e4219a9058a813a8afe7 | Shell | mblumtritt/dotfiles | /bin/download-file | UTF-8 | 259 | 3.75 | 4 | [] | no_license | #! /bin/sh
set -e
readonly TDIR="$HOME/Downloads"
[ "$1" = '--help' ] && echo "Usage: ${0##*/} URL
Download a file from given URL to '$TDIR'." && exit
[ $# = 0 ] && (>&2 echo "${0##*/}: URL missing") && exit 1
mkdir -p "$TDIR"
cd "$TDIR"
curl -sLNO "$@"
| true |
090755e2374c8442a337e2dd9f3930330060e139 | Shell | connormclaud/bsubash | /22_sum_of_digits.sh | UTF-8 | 156 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
sum=0
grep -o . <<< $1 |
{ while read letter;
do
sum=$(($sum + $letter))
done;
echo "Sum of digits is" $sum; }
| true |
2dc17bc0dbf3fc70fa0b4de3f0b4177cdc042ace | Shell | petronny/aur3-mirror | /gle/PKGBUILD | UTF-8 | 840 | 2.703125 | 3 | [] | no_license | # Maintainer: A. S. Budden <abudden@NOSPAMgataki.co.uk>
pkgname=gle
pkgver=4.0.11
pkgrel=1
pkgdesc="Graphics Layout Engine -- text file based vector imaging application"
url="http://glx.sourceforge.net"
depends=(boost libtiff xorg bash)
source=(http://dl.sourceforge.net/sourceforge/glx/${pkgname}_${pkgver}_src.zip \
... | true |
ac4d5481ab7c38bcb27b16c0ffa499c48f810cc7 | Shell | mcao59/18845gp | /test_r | UTF-8 | 252 | 2.828125 | 3 | [] | no_license | #!/usr/bin/bash
SECONDS=0
for i in $(seq 200); do
LD_PRELOAD=../lib/lib440lib.so ../tools/440cat 1mb.txt > out_${i}.txt &
sleep 0.5
done
wait
duration=$SECONDS
echo "$(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
| true |
5b52738bf0c1715640dc844e724393d572208fd0 | Shell | cyberark/kubernetes-conjur-deploy | /utils.sh | UTF-8 | 4,704 | 3.796875 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash
PLATFORM="${PLATFORM:-kubernetes}" # default to kubernetes if not set
DEPLOY_MASTER_CLUSTER="${DEPLOY_MASTER_CLUSTER:-false}"
FOLLOWER_USE_VOLUMES="${FOLLOWER_USE_VOLUMES:-false}"
MINI_ENV="${MINI_ENV:-false}"
DEV="${DEV:-false}"
if [[ "$MINI_ENV" == "true" || "$DEV" == "true" ]]; then
IMAGE_PULL_POLIC... | true |
66cd9a7dfe5c085da81f0451fe3711c983ca450d | Shell | mchf/yast-devtools | /devtools/bin/gettextdomains | UTF-8 | 2,133 | 3.78125 | 4 | [] | no_license | ### sourced by 'check-textdomain' and 'y2makepot' ### -*- sh -*-
#
# get_domains_and_err():
# Argument: $1 -> directory to search
# Returns: $DOMAINS -> all text-domains found in $SRCDIR
# $ERR -> filenames without text-domain, but using [_]_tr()
#
function get_domains_and_err(... | true |
d69e58cce4ee9d810d5d020c50bcd9bba47a29c6 | Shell | bhaskar611/Flip_Coin_Simulation | /flipcoinsimulator.sh | UTF-8 | 657 | 3.203125 | 3 | [] | no_license | #! /bin/bash
count=21
headscount=0
tailscount=0
flipscount=0
difference=2
while(( 1 ))
do
flipscount=$(($flipscount + 1))
flip=$((RANDOM%2))
if((flip == 0 ))
then
headscount=$(($headscount + 1 ))
else
tailscount=$(($tailscount + 1 ))
fi
diff=$(( $headscount - $tailscount ... | true |
e9f8db4acbe195293c0c1f1f5beda6bf2c11c18a | Shell | EricRahm/node-openssl-dtls | /example/genpki.sh | UTF-8 | 956 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
PKINAME="$1"
if [ -z "$PKINAME" ]; then
echo "Usage: $0 [pkiname]" >&2
exit 1
fi
openssl ecparam -name "prime256v1" -out "prime256v1.pem"
# CA CRT + KEY
openssl ecparam -in "prime256v1.pem" -genkey -noout -out "$PKINAME-ca.key.pem"
openssl req -new -sha256 -key "$PKINAME-ca.key.pem" -out "$PKINA... | true |
cac6ea92b2f2552a55ecba136783c9b3dde7be47 | Shell | krzpiesiewicz/PO-web-crawler | /Demo1.sh | UTF-8 | 240 | 2.921875 | 3 | [] | no_license | #!/bin/bash
#@author Krzysztof Piesiewicz
if [ $# -ne 1 ]; then
echo "Zła liczba argumentów. Program przyjmuje 1 argument - adres internetowy.";
exit;
fi
ADDRESS=$1
java -cp lib/jsoup-1.10.2.jar:bin pl.edu.mimuw.crawler.kp385996.Demo1 $ADDRESS
| true |
74ecc0d3f9812fb487e6a4087e3b7315d0a04ffa | Shell | ballamark/filewatcher | /scripts/fileWatcherCopyFile.sh | UTF-8 | 1,424 | 3.609375 | 4 | [] | no_license | #
# [bash] fileWatcherCopyFile.sh file module rootDirectoryForServer [logger]
#
# file: forrásfile elérési útja az aktuális könyvtárhoz viszonyítva
# module: web modul neve, ahová a fájlt be kell mésolni
# projectRoot: project root elérése
# rootDir... | true |
1e2782f626a67e11ae8c517a5afb4ac118a80ed5 | Shell | WalterS/docker-squeezeboxserver | /bin/run_server | UTF-8 | 910 | 3.671875 | 4 | [] | no_license | #!/bin/bash
############################################################
# run_server
#
# Run squeezeboxserver
#
# WS 20160117
############################################################
if ! . /etc/sysconfig/squeezeboxserver; then
echo "Error: Could not read /etc/sysconfig/squeezeboxserver" >&2
exit 1
fi
stoppin... | true |
db2bb9b853a5f6c38a5c3be186ffd9088c90d5e9 | Shell | Scalr/create-scalarizr-repo | /steps/00-install-dependencies.sh | UTF-8 | 845 | 3.625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# Install dependencies
if which apt-get; then
echo "Found apt-get"
apt-get install -q -y -o Dpkg::Options::=--force-confold nginx dpkg-dev wget
elif which yum; then
echo "Found yum"
# Check the repos we need are installed
yum repolist | grep epel |... | true |
4e371c8e5272fa5c5e24884d0b02f1dee9502d60 | Shell | cobbr2/homer | /rpi/guard/bin/rm_old_video | UTF-8 | 635 | 3.875 | 4 | [] | no_license | #!/bin/bash
#
# Removes directory trees for camera directories more than <n>
# days old
# First implementation: may not perform since it examines all files.
# OTOH, it removes them all. Let's start with that.
threshold=${1:-60}
root=${2:-/mnt/cameras/archive}
case "${root}" in
?) echo "Check your root"
... | true |
2dc481c76c535b3faf9732216fadfc53cd801d92 | Shell | telecomprofi/exadel-DevOps-internship-21 | /task3/docker-ce-install.sh | UTF-8 | 1,794 | 3.125 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# source -official doc https://docs.docker.com/engine/install/ubuntu/
# valid for 64-bit version of Ubuntu
#Ubuntu Hirsute 21.04
#Ubuntu Groovy 20.10
#Ubuntu Focal 20.04 (LTS)
#Ubuntu Bionic 18.04 (LTS)
#Ubuntu Xenial 16.04 (LTS)
#uninstall old version of docker engine
sudo ap... | true |
bb5ba284529ba4b73aed804c23fe7c5bfda6d690 | Shell | tomashw/devops-scripts | /deploy/deploy_tomcat_service.sh | UTF-8 | 1,459 | 3.859375 | 4 | [] | no_license | #!/bin/bash
echo Deploying to $1
source $1
echo Fetching new war from $WAR_URL
wget $WAR_URL -O $CONTEXT_NAME.war
echo Printing war size:
ls -lah ./tmp/ |grep $CONTEXT_NAME.war
echo Going to stop tomcat by running $STOP_SCRIPT...
$STOP_SCRIPT
echo Current tomcat status:
$STATUS_SCRIPT
i="0"
while [ $i -lt 5 ]
d... | true |
8508453b8e7c6ee643e25e6135bb332f136cb1c7 | Shell | dnbaker/comanche | /deps/fetch-deps.sh | UTF-8 | 4,704 | 3 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
BASE=$PWD
function jumpto
{
label=$1
cmd=$(sed -n "/$label:/{:a;n;p;ba};" $0 | grep -v ':$')
eval "$cmd"
exit
}
start=${1:-"start"}
jumpto $start
start:
dpdk:
echo "Fetching DPDK v17.08 ..."
rm -f dpdk-17.08*
rm dpdk
wget http://fast.dpdk.org/rel/dpdk-17.08.tar.xz
#wget http://fast.dpd... | true |
140874c0e3a82dae47e27593a3ed34148942e0ea | Shell | ncsl/adamli | /fragility_dataanalysis/server/freqSpecAnalysis/preprocess_jobs.sh | UTF-8 | 3,345 | 2.625 | 3 | [] | no_license | #!/bin/bash -l
# 01: Prompt user for input that runs the analysis
echo "Begin analysis." # print beginning statement
printf "Enter window size: " # prompt for seizure_id {sz1, sz2, ..., seiz001, seiz003}
read winSize
printf "Enter step size: "
read stepSize
printf "Enter type transform (morlet, fourier):"
read typeTra... | true |
3ef434a2841dfd0a8ac34bbb117e917286ac3c32 | Shell | c913168497/Container-cloud | /application-components/application-deploy-components-kubernetes/src/main/resources/do_delete_deploy.sh | UTF-8 | 437 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#=========================================
# SYSTEM REQUIRED: Linux Centos6
# DESCRIPTION: kubectl delete deploy
# AUTHOR: Panjie
# Email: panjie@szzt.com.cn
#=========================================
kube_master_ip=$1
port=$2
namespace=$3
deploy_name=$4
scp -P $port /opt/appcloud/resources/dele... | true |
e3d09664e75d96038ad8fdadf80570356a3136bf | Shell | azoff/nuc | /.githooks/post-receive | UTF-8 | 267 | 3.265625 | 3 | [] | no_license | #!/usr/bin/env bash
set -eo pipefail
while read oldrev newrev ref
do
branch=$(git rev-parse --symbolic --abbrev-ref $ref)
if [[ $branch == "master" ]]; then
repo_dir=$(readlink -f "${GIT_DIR}/..")
bash -c "cd $repo_dir && make sync"
fi
done | true |
706700b830211590138611d4291c8c6a75305d98 | Shell | gitrhythm2/bash_sample | /variables/shell_variables.sh | UTF-8 | 924 | 3.828125 | 4 | [] | no_license | #!/usr/bin/env bash
# シェル変数(Shell Variables)
# HOME
echo "HOME: ユーザーのホームディレクトリ[${HOME}]"
# PWD
echo "PWD: カレントディレクトリ[${PWD}]"
cd $HOME
echo " cd $HOME'するとカレントディレクトリも変わる[${PWD}]"
# SHELL
echo "SHELL: ログインシェルのフルパス[${SHELL}]"
# BASH
echo "BASH: 現在動作しているbashコマンドのフルパス[${BASH}]"
# BASH_VERSION
echo "BASH_VERSION: 現在動作して... | true |
51bbe30b51ffd693f49841cbd7f61fc0fe7a8130 | Shell | nekeett/test_repository | /script.sh | UTF-8 | 636 | 3.4375 | 3 | [] | no_license | #!/bin/bash
source="/home/nikita/test_repository"
if [ ! -d "$source" ]
then
echo "Source directory '$source' does not exists"
exit 15
fi
sumsFile="/home/nikita/sums.txt"
File1=$(cat $sumsFile | grep file1 | awk -F "=" '{print $2}')
File2=$(cat $sumsFile | grep file2 | awk -F "=" '{print $2}')
File1OrigSum=$(cat $sumsF... | true |
a69165661e0b599eaa4460b225ccbac85d3e505a | Shell | ClickHouse/ClickHouse | /tests/queries/0_stateless/02504_regexp_dictionary_ua_parser.sh | UTF-8 | 2,815 | 2.890625 | 3 | [
"Apache-2.0",
"BSL-1.0"
] | permissive | #!/usr/bin/env bash
# Tags: no-fasttest, no-parallel
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
user_files_path=$(clickhouse-client --query "select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')" 2>&1 | grep Exception | awk '{... | true |
95252b184c3c0b0d20236a7d1d8096a9f2f94c25 | Shell | steedos/dataloader | /release/mac/install.command | UTF-8 | 4,805 | 3.625 | 4 | [] | no_license | #!/bin/bash
DATALOADER_VERSION="50.0.0"
DATALOADER_SHORT_VERSION="50"
DATALOADER_UBER_JAR_NAME="dataloader-50.0.0-uber.jar"
echo ""
echo "*************************************************************************"
echo "** ___ ____ ___ ____ _ ____ ____ ___ ____ ____ **"
echo "** | \ ... | true |
4684a2140350e2b822dac5d90694cd799a86d42b | Shell | aur-archive/fahviewer-beta | /PKGBUILD | UTF-8 | 1,083 | 2.984375 | 3 | [] | no_license | pkgname=fahviewer-beta
pkgver=7.4.2
pkgrel=10
pkgdesc='Viewer for Folding@Home'
url="http://folding.stanford.edu/English/HomePage"
arch=('i686' 'x86_64')
license=('GPL3')
depends=('bzip2' 'gcc-libs-multilib')
options=('!docs' '!libtool')
_common_url='https://fah-web.stanford.edu/file-releases/beta/release/fahviewer/'
... | true |
5afe955c0a0a546b2a7a660cadeb3f322709123d | Shell | ataber/docker_images | /build-and-deploy-image | UTF-8 | 632 | 3.765625 | 4 | [] | no_license | #!/bin/bash
image_name=$1
docker_user=${DOCKER_USER}
docker_password=${DOCKER_PASSWORD}
branch=${CIRCLE_BRANCH}
revision=${CIRCLE_SHA1}
./check-if-changed ${image_name}
retVal=$?
if [ $retVal == 0 ]; then
echo "Building ${image_name}"
docker build --build-arg TAG=${branch} -t ${image_name} ${image_name}
docker... | true |
9c63a0aeb1ef0522979e855703f4dac39dbfba8d | Shell | Docmos/git-rebase-merge | /windows/git-redo-commit | UTF-8 | 639 | 3.9375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
force_push=0
default_commits_to_reset=1
commits_to_reset=${1:-$default_commits_to_reset}
last_commit_message=$(git log -1 --pretty=%B)
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
-n|--number)
commits_to_reset="$2"
shift
shift
;;
-f|--force-push)
force_push=1
shift
;;
*)
... | true |
f82069070a1a8147ca23c73f02b78b2b2ed21144 | Shell | geneleung/tubo-env | /.zshrc | UTF-8 | 451 | 2.90625 | 3 | [] | no_license | if [[ "$TERM" == "dump" ]]; then
unsetopt zle
unsetopt prompt_cr
unsetopt prompt_subst
unfunction precmd
unfunction preexec
PS1='$ '
else
# colors
[ -e /etc/zsh/zprofile ] && source /etc/zsh/zprofile
[ -e /opt/etc/zsh/zprofile ] && source /opt/etc/zsh/zprofile
which dircolors >> /dev/null && eval `dircolors $... | true |
99cdd4a81a54b05ba9c1ce8c805f9fc297e7d7dd | Shell | simonpioli/auto-wordpress | /auto-wordpress.sh | UTF-8 | 4,746 | 3.109375 | 3 | [] | no_license | #!/bin/bash
# Latest version of WP
echo "Fetching WordPress...";
curl -O https://wordpress.org/latest.zip;
unzip -q latest.zip;
# Base Theme
echo "Which base theme? 'bones', 'underscore' or 'none' if you don't want a base theme."
read theme
if [ $theme != "none" ]; then
echo "What should we call the theme?"
read n... | true |
f855f21d28192e3fac41b5a793243b6029fb1e78 | Shell | gwabramblehouse/dcu-2019 | /analysis/bin/grideye-coverage-area-analyse | UTF-8 | 623 | 3.234375 | 3 | [] | no_license | #!/bin/bash
#############################################################################
# Home Mobility Monitoring.
#
# Generates a chart of area covered by a sensor placed at different heights.
#############################################################################
export HMM_HOME=${HMM_HOME:-$HOME/hmm}
bin_d... | true |
e7b52c1cd355691301f9409e5a4c367e4e442d47 | Shell | prasad-dharmadhikari/Shell | /selectionstatements/if/FlipCoin.sh | UTF-8 | 147 | 2.78125 | 3 | [] | no_license | #!/bin/bash -x
# Shell program to simulate flip coin problem
random=$(( RANDOM % 2 ))
if(( $random == 0))
then
echo "tails"
else
echo "heads"
fi
| true |
78869161fa5d58ee0b03a679db97c394eab07f66 | Shell | river2202/scripts | /xc | UTF-8 | 533 | 3.546875 | 4 | [] | no_license | #!/bin/bash
xcprojects=(".xcworkspace" ".xcodeproj")
set -f
for (( i=0; i<${#xcprojects[@]}; i++ ));
do
var=`ls -1 | grep -e ${xcprojects[$i]}`
array=(${var//\*/ })
if [[ ${#array[@]} -gt 0 ]]; then
index=0
if [[ ${#array[@]} -gt 1 ]]; then
for i in "${!array[@]}"
do
echo "$i. ${a... | true |
947212cb2915a2b545dc4479aa0bd1ba38ee7471 | Shell | neupanerabeen/BASH-Image-scraper | /get.sh | UTF-8 | 409 | 3.15625 | 3 | [] | no_license | filename="$1"
# log_file_name=$(echo $1|cut -d. -f1)_error.csv
log_file_name=$(echo $1|cut -d. -f1|cut -d/ -f2)_error.csv
while read -r line
do
url=$(echo $line|cut -d, -f1)
image=$(echo $line|cut -d, -f2)
file_name=$(echo $image | sed 's/ /\\ /g')
wget -O images/$image $url
if [[ $? -ne 0 ]]; then
echo "wget f... | true |
d5c9f0adc10226b1c89bd79d1f721fd7d088583f | Shell | icahoon/dotfiles | /.bashrc | UTF-8 | 126 | 3.140625 | 3 | [] | no_license | #!/bin/bash
function load_rc() {
for i in $HOME/.rc.d/*.sh; do
if [ -r "$i" ]; then
. $i
fi
done
}
load_rc
| true |
84a47cf2590af848708184a68baf3a6c29bc53c5 | Shell | ocean1/fuzzerino | /old/mk.sh | UTF-8 | 1,567 | 3.4375 | 3 | [] | no_license | #!/bin/bash
# Build everything
rm -f /dev/shm/gfzidfile
make -C ../ clean
make -C ../
float="false"
run=""
test="false"
CFILE="map_binary.c"
LLFILE="map_binary.ll"
while getopts ":fr12t" opt
do
case $opt in
f) float="true";;
r) run="r";;
1) run="1";;
2) run="2";;
t) test="true";;
esac
done
shift $(($O... | true |
cc73732c991ae4f23c4ae920f2ec5df61cf4744f | Shell | mmatena/comp_755_project | /organize_me/caveflyer_rollouts.sh | UTF-8 | 1,236 | 3.25 | 3 | [] | no_license | #!/bin/bash
#############################################################
# Various variables to set.
#############################################################
# TODO(mmatena): Make these flags.
# The directory of the cloned github repo.
PROJECT_DIR=~/projects/comp_755_project
MODEL_DIR=/pine/scr/m/m/mmatena/com... | true |
6e3e7f71e9118f9e87a4d678c39f0dd87531509d | Shell | hpc-apps/Genci_CVT | /SVE/Armie.sh | UTF-8 | 2,330 | 2.75 | 3 | [] | no_license | rm -f *log
export EXEC="./probe "
rm -f *.log
rm -f *.txt
for VL in 128 256 384 512 768 1024 1536 2048 ;do echo $VL; armie -msve-vector-bits=$VL -i libinscount_emulated.so -a -roi $EXEC > inscount-$VL.txt;
##################################
armie -msve-vector-bits=$VL -i libopcodes_emulated.so -a -roi $EXEC > NE... | true |
f93b28ae2d72005204651303a689e17c26d92108 | Shell | apathor/typer | /typer | UTF-8 | 2,365 | 4.46875 | 4 | [] | no_license | #!/usr/bin/env bash
# typer - pipe in, type out
# typer © Mike Lalumiere 2019
typer() {
# usage
read -r -d '' use <<EOF
USAGE: typer [OPTIONS] < TEXT
Write text input delayed to simulate typing.
OPTIONS:
-h : Print some help text
-c RATE : Print rate in characters per second (0-999)
-r : Randomize... | true |
20315c4001711b4c874958f3be0c17a033d5339f | Shell | thetrompf/uno-el-cliento | /scripts/run.sh | UTF-8 | 184 | 2.578125 | 3 | [] | no_license | #!/bin/bash
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
echo "Building project"
./build.sh
echo "Starting server"
cd ../serverto/build
nodemon app.js
exit 0
| true |
f5c382baab75b62b4cf233a9380ccbf96a536200 | Shell | Jseph/cloud-ingest | /gen_proto.sh | UTF-8 | 695 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# This script handles the compilation of protocol buffers into different
# languages. This script should be run from the root of the repository.
pbjs_rel_path="./webconsole/frontend/node_modules/protobufjs/bin/pbjs"
pbts_rel_path="./webconsole/frontend/node_modules/protobufjs/bin/pbts"
protoc --go_out=. tests... | true |
546dc0c62bba6ec174ec227adeadfb09b70f8640 | Shell | gielfeldt/fas-example | /docker/dev.sh | UTF-8 | 853 | 2.5625 | 3 | [] | no_license | #!/bin/bash
runuser -s /bin/bash -l www-data -c 'cd /app && composer install --optimize-autoloader'
apache2-foreground &
cd /app
while true; do
runuser -s /bin/bash -l www-data -c 'cd /app && composer update --optimize-autoloader'
find /app/src/ -type f -name '*.php' -exec php -l {} \; | (! grep -v "No sy... | true |
44d77238d00eaf6cefb5baed0c5e168077a0a678 | Shell | rayaxiom/oomphlib_userdrivers | /poisson_three_d/test_3_weak_scaling_single_node/gen_tests.sh | UTF-8 | 4,422 | 2.984375 | 3 | [] | no_license | #!/bin/bash
PROGRAM="poisson_3d"
CURRENT_DIR=`pwd`
#parallel R-S, CLJP, HIMS and PIMS
#//========================================================================
# /// \short Default AMG coarsening strategy. Coarsening types include:
# /// 0 = CLJP (parallel coarsening using independent sets)
# /// 1 = classic... | true |
eaf87f05f757f13ac58c71eae2428117268be006 | Shell | gvsurenderreddy/pandaOS | /phase3/shadow/build.sh | UTF-8 | 4,509 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set +h # disable hashall
shopt -s -o pipefail
PKG_NAME="shadow"
PKG_VERSION="4.2.1"
TARBALL="${PKG_NAME}-${PKG_VERSION}.tar.xz"
SRC_DIR="${PKG_NAME}-${PKG_VERSION}"
function prepare() {
if [[ ! -f "${TARBALL}" ]]
then
ln -sv "/source/$TARBALL" "$TARBALL"
fi
}
function unpack() {
... | true |
f951debaa4330c563835767d3479e9f99e1f3cd3 | Shell | scromityiii/PolyBandit | /level97.sh | UTF-8 | 3,374 | 3.296875 | 3 | [] | no_license | #!/bin/bash
echo "cat /home/level97/README.txt" >> /home/level97/.bashrc
echo "******************************************************************" >> /home/level97/README.txt;
echo "* Welcome to PolyBandit. This is a polymorphic clone of ... | true |
fa0fd78e91125f8a8d1f9f7a04a0f8cc2dcb5ddf | Shell | mperrando/dotfiles | /install.sh | UTF-8 | 1,346 | 4.1875 | 4 | [] | no_license | #!/bin/bash
cd ~ || exit 1
[ -d .dotfiles ] || { echo Install in ~/.dotfiles; exit 1; }
pushd .dotfiles
git submodule init
git submodule update
popd
function install_file {
echo "#### $1"
TARGET=~/.$1
SOURCE=.dotfiles/$1
if ! [ -e $SOURCE ]
then
echo File not found $SOURCE
return
fi
if [ -h $... | true |
e7b3af36be09d25db39b14f735bff3ec90d192ec | Shell | kupix/AOMTestScript | /scripts/run_tests | UTF-8 | 629 | 3.703125 | 4 | [] | no_license | #!/bin/bash
#
# Copyright 2010 Google Inc.
# All Rights Reserved.
# Author: jimbankoski@google.com (Jim Bankoski)
if [ $# -ne 4 ]
then
echo Encodes all the y4m files in the directory at the bitrates specified by
echo the first 3 parms and stores the results in a subdirectory named by the
echo 4th parameter:
ec... | true |
bd450ce0d9adb38beafabad3b8c7f1637fd7ce06 | Shell | droopy4096/docker-mailman | /build.sh | UTF-8 | 2,586 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -ex
# Since all the dockerfiles now require buildkit features.
export DOCKER_BUILDKIT=1
# Set the default value of BUILD_ROLLING to no.
export BUILD_ROLLING="${1:-no}"
DOCKER=docker
if [ "$BUILD_ROLLING" = "yes" ]; then
echo "Building rolling releases..."
python3 -m venv venv
source ven... | true |
915a33e732e54432384234f062198c5ca9542b2b | Shell | AlbertaSat/TMS570LC43xx | /extras/bin/eg.sh | UTF-8 | 442 | 3.1875 | 3 | [] | no_license | do_sync () {
base=$1
dir=$2
dest=iprsm/$dir
source=$mirror/$base/$dir
echo
echo Command: rsync $opts --delete $source/ $dest
echo
read -p "Proceed to update $dir from $base?"
[[ $REPLY =~ ^[Yy]$ ]] || (echo Aborted; false) || return 1
rsync $opts --delete $source/ $dest
chow... | true |
b5907771ee12da3ad523c90dec6efdc3c9dd0cef | Shell | devhirano/init_scripts | /ubuntu1604/sns/facebook-cli.sh | UTF-8 | 427 | 2.5625 | 3 | [] | no_license | #!/bin/bash
sudo apt install ruby-dev
sudo gem install facebook-cli
# have to setup login-app in the facebook from browser.
grep "alias for facebook-cli" ~/.bashrc >/dev/null 2>&1
if [ $? != 0 ]; then
cat << EOT >> ~/.bashrc
# alias for facebook-cli
alias fc='facebook-cli'
alias fl='facebook-cli login'
alias fp='fac... | true |
6f89d89832bf721e9b644bc441c0d0bbb0e5c450 | Shell | ODEX-TOS/packages | /ekiga/trunk/PKGBUILD | UTF-8 | 1,678 | 2.640625 | 3 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | # Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Tom K <tomk@runbox.com>
pkgname=ekiga
pkgver=4.0.1
pkgrel=33
pkgdesc="VOIP/Videoconferencing app with full SIP and H.323 support (GnomeMeeting expanded and renamed)"
url="https://www.ekiga.org"
license=(GPL)
arch=(x86_64)
depends=('opal' 'boost-libs' 'libxv... | true |
c6734bbb1ab5f11e85c9c309f50ada7fa9d46478 | Shell | MKamnikar/personal-scripts | /day-mode | UTF-8 | 265 | 3.234375 | 3 | [] | no_license | #!/bin/env bash
# Sets all monitors to their default brightness and gamma settings.
OUTPUTS=$(xrandr --listactivemonitors | sed 1d | cut -d ' ' -f 3 | sed 's/[\*+]//g')
for MONITOR in $OUTPUTS; do
xrandr --output "$MONITOR" --brightness 1 --gamma 1:1:1
done
| true |
8e4248f9e158e2be84fe845fc9ebae262e9b970f | Shell | IyiKuyoro/Shell-Scripting-With-Bash | /Control Flow/drawline.sh | UTF-8 | 497 | 4.09375 | 4 | [] | no_license | #!/bin/bash
# Outputs a line of characters
# First argument is the lenght of the line
# Second argument cgarater will default to "-" if none is given
[[ ! $1 ]] && { echo "Need line lenght argument" >&2; exit 1; }
# Check that first argument is a number
{ [[ $1 =~ ^[0-9]+$ ]] && lenght="$1"; } || { echo "First argum... | true |
cf91fba56e1d1aeeec32886f746ea799d47dadd4 | Shell | vekkt0r/dotfiles | /bin/runonce.sh | UTF-8 | 60 | 3.078125 | 3 | [
"WTFPL"
] | permissive | #!/bin/sh
pids=$(pidof $1)
if [ -z ${pids} ]; then
$@
fi
| true |
04abb5a33a796826b3398e1f8b957aedb64033ce | Shell | TituxMetal/dotfiles | /dot_bashrc | UTF-8 | 893 | 3.09375 | 3 | [] | no_license | #
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
HISTFILE=$HOME/.histfile
HISTSIZE=100000
HISTFILESIZE=$HISTSIZE
HISTCONTROL=ignorespace:ignoredups:erasedups
HISTTIMEFORMAT=""
_bash_history_sync() {
builtin history -a
HISTFILESIZE=$HISTSIZE
builtin history -c
builti... | true |
f12789785f29770313230d7e337561565cc39b35 | Shell | observatorium/observatorium-otelcol | /test/start-dex.sh | UTF-8 | 846 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
max_retries=50
podman run \
--detach \
--rm \
--name dex \
-p 5556:5556 \
-v ./test/dex.yaml:/etc/config/dex.yaml:z \
-v ./test/certs/cert.pem:/etc/config/cert.pem:z \
-v ./test/certs/cert-key.pem:/etc/config/cert-key.pem:z \
dexidp/dex:v2.25.0 \
serve \
/etc/config... | true |
766bc5da7168e21cc9e193859db93aaa71602073 | Shell | tomlee1968/osgoc | /gociptables/misc/compare/30-global-rules | UTF-8 | 1,664 | 3.125 | 3 | [] | no_license | #!/bin/bash
# Tom Lee <thomlee@indiana.edu>
# begun on 2008/04/02
# last modified 2012/12/21
# This file will be synchronized using puppet across all servers and should
# therefore contain only rules that should apply to all GOC servers.
# This file should not set any policies or define any chains. It should
# cont... | true |
7f9d4a6c868a122be20acf27374767f733fbd795 | Shell | tp953704/shell_note | /L6數組長度.sh | UTF-8 | 493 | 3.375 | 3 | [] | no_license |
# bash支持一維數組(不支持多維數組),並且沒有限定數組的大小。
# 定義數組
# 用括號保護數組,用空格分開
arrayNum=(0 1 2 3 4 5 6 7)
arrayNum2=(
0
1
2
3
4
5
6
7
)
arrayNum3[0]=0
arrayNum3[1]=1
arrayNum3[4]=4
# 讀取數組
echo ${arrayNum[@]}
echo ${arrayNum2[@]}
echo ${arrayNum3[@]}
# 獲取數組的長度 可用@ *
echo ${#arrayNum[@]}
echo ${#... | true |
acfcebf9c1c0e011bb4e78f20fa749a098616e23 | Shell | johnko/mac-dotfiles | /bin/stat-cpu | UTF-8 | 232 | 2.859375 | 3 | [] | no_license | #!/bin/sh
# Copyright (c) 2014 John Ko
case `uname -s` in
Darwin)
BINPATH=/usr/sbin
;;
FreeBSD)
BINPATH=/sbin
;;
esac
${BINPATH}/sysctl -n vm.loadavg | \
/usr/bin/sed -e 's/[^[:alnum:] .]//g' -e 's/^ *//g' -e 's/ *$//g'
| true |
8550c4a44cffa10d7c80d5c5ba0d895cd892ed2a | Shell | aspire-project/chisel-bench | /benchmark/rm-8.4/merged/tests/rm5 | UTF-8 | 1,090 | 3.203125 | 3 | [] | no_license | #!/bin/sh
# a basic test of rm -ri
# Copyright (C) 2002-2004, 2006-2010 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | true |
d756360a7784489ced0889509ce8ec58162850a9 | Shell | enonic-cloud/docker-compose-enonic-cms | /postgres/docker-entrypoint-initdb.d/init.sh | UTF-8 | 413 | 2.640625 | 3 | [] | no_license | #!/bin/bash
echo "Copying postgresql.conf to /var/lib/postgresql/data/postgresql.conf"
cp /docker-entrypoint-initdb.d/postgresql.conf /var/lib/postgresql/data/postgresql.conf
echo "Creating cms user"
gosu postgres postgres --single -jE <<-EOSQL
create user cms with password '$CMS_DB_PASSWORD';
EOSQL
echo "Creating d... | true |
ad079c704c3473156cf8c4b29c91a014a91469a3 | Shell | lyndonjie/shell | /pra/ss4 | UTF-8 | 142 | 2.5625 | 3 | [] | no_license | #!/bin/sh
echo "provide the old file name"
read old_name
echo "provide the new file name"
read new_name
mv $old_name $new_name
cat $new_name
| true |
8d7bde0f1be78c60da9980ac5c6cbdff0e6418ca | Shell | jasonmpittman/students-git-puller | /git-puller.sh | UTF-8 | 156 | 2.71875 | 3 | [] | no_license | #!/bin/bash
IFS=$'\n' read -d '' -r -a repos < student.repos
for repo in "${repos[@]}"
do
echo ""
echo "Getting update from " ${repo}
echo ""
done
| true |
f0d4f39f666a215b71eeb3d7dd0a5777c940f2c4 | Shell | ThePiGrepper/dow | /dow-put | UTF-8 | 4,705 | 3.828125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# To be called from data repository.
#
# Synchronize current branch with CVS.
data_repo=`pwd`
dow_root=$data_repo/.dow
versions_repo=$dow_root/versions
map=$dow_root/map
utils=$dow_root/utils
cvs_cmd=$dow_root/cvs_cmd
if ! $utils/check_clean_status; then
echo "Repository $(pwd) status not clean."
ex... | true |
2fcc579fa2fb04f8c40e7766f3c613117c5f9046 | Shell | r-adamski/thesis-visualfabric | /stopNetwork.sh | UTF-8 | 406 | 2.796875 | 3 | [] | no_license | #!/bin/bash
#
# Copyright IBM Corp All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
#
# Exit on first error
set -ex
starttime=$(date +%s)
# Bring the test network down
pushd ../../test-network
./network.sh down
popd
# clean out any old identites in the wallets
rm -rf wallet
rm -rf addAssets.json
cat <<E... | true |
7e31fd45a6e6c0af4bc8d21d1ab5c5cb846acef7 | Shell | fablab-luenen/dogekuwiki-dev | /setup | UTF-8 | 483 | 2.578125 | 3 | [] | no_license | #!/usr/bin/env sh
echo "Cloning repos"
git clone https://github.com/fablab-luenen/dokuwiki-preconfigured
# Krypton
rm -rf krypton
git clone https://github.com/fablab-luenen/dokuwiki-krypton krypton
(cd krypton; npx sass assets/css/doku.scss assets/css/doku.css)
# Visual Editor
# rm -rf visual-editor
# git clone https... | true |
04464f75aec3a5cb2288520f53644fdca8347bfd | Shell | centminmod/centminmodbench | /https_bench.sh | UTF-8 | 85,874 | 3.34375 | 3 | [] | no_license | #!/bin/bash
######################################################
# written by George Liu (eva2000) centminmod.com
# when ran with command
# curl -sL https://github.com/centminmod/centminmodbench/raw/master/https_bench.sh | bash
# setup & benchmark nginx http/2 https vhost
#############################################... | true |
b349f35190c6dafb845d1916aad687c221cc8e8d | Shell | debasispanda/poster-api | /scripts/docker_start.sh | UTF-8 | 1,065 | 3.578125 | 4 | [] | no_license | #!/bin/sh
CONFIG_FILE=./.env
# Check if docker is installed
if [ ! -x "$(command -v docker)" ]; then
echo "\nDocker not found! Retry after installing.\n"
exit 1
fi
# Crate network
docker network create poster_bridge
# Start postgres container
if [ ! "$(docker ps -q -f name=postgres)" ]; then
if [ "$(docke... | true |
eeecc366dcd8cf09a0cc4658b59ec479e8bbd4cf | Shell | RBigData/installation-instructions | /maker.sh | UTF-8 | 842 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
clean(){
rm -rf build
}
makeBuildDir(){
mkdir -p build
cd build/
}
makeBody(){
out=$1
shift
cat ../instructions/$1 > $out
echo '\\newpage \n' >> $out
shift
for f in $@; do
cat ../instructions/$f >> $out
echo "" >> $out
done
}
makeNativeInstr(){
touch native.md
make... | true |
f1fd64fbd918631304a7db6e2d4779052851c753 | Shell | jelmerk/hnswlib | /scripts/colab_setup.sh | UTF-8 | 1,269 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#default values for pyspark, pyspark-hnsw, and SPARK_HOME
HNSWLIB="1.1.0"
PYSPARK="3.0.3"
while getopts s:p: option
do
case "${option}"
in
s) HNSWLIB=${OPTARG};;
p) PYSPARK=${OPTARG};;
esac
done
echo "setup Colab for PySpark $PYSPARK and Hnswlib $HNSWLIB"
export JAVA_HOME="/usr/lib/jvm/java-11-openj... | true |
da59c809a192884dc556871450cb424a719876bf | Shell | ccodeidea/Create-VM-using-Pyvmomi | /centos6.5-tests/test_centos.sh | UTF-8 | 683 | 3.125 | 3 | [] | no_license | #!/bin/sh
printf "测试yum命令是否正常安装与卸载\n"
yum -y install w3m
yum -y remove w3m
printf "列出当前系统运行的进程\n"
ps
printf "列出io状态\n"
iostat
printf "列出内存使用情况\n"
vmstat
printf "测试gcc编译器\n"
gcc -o helloworld helloworld.c
printf "测试文件的基本操作\n"
printf "创建文件夹test-file\n"
mkdir test-file
printf "创建文件test1.txt\n"
touch test1.txt
printf... | true |
763f9cebbaf498f70beda72994305b3d13890bbb | Shell | lucc/shell | /linux/urxvt-url-handler.sh | UTF-8 | 344 | 3.65625 | 4 | [] | no_license | #!/bin/sh
# A small script to handle urls for urxvt. All it does is to prepend
# "http://" to urls that start with "www." as urxvt considers them urls but
# xdg-open considers them to be file names and can not find them.
case $1 in
*://*) xdg-open "$1";;
www.*) xdg-open "http://$1";;
*) echo "Unknown url type:... | true |
2077d94c609ca156ef4dbeee9df5207b28df797c | Shell | BruceZu/broken_colored_glass | /docker/entrypoint/common.sh | UTF-8 | 900 | 3.859375 | 4 | [] | no_license | #!/bin/bash
function debug_log() {
local marker="========="
echo "$marker $(date +"%T.%3N") $1 $marker"
}
function wait_mysql_up() {
local mysql_service=mysql
local mysql_port=3306
local mysql_up_message="awaiting response... 200"
local check_command="wget -o - -T 2 http://${mysql_service}:${mysql_port} 2... | true |
a6ac446ed629df783f88494e028242b5faa45bf3 | Shell | pratimugale/pru-eth-firmware | /update_firmware.sh | UTF-8 | 1,989 | 2.703125 | 3 | [] | no_license | #!/bin/sh
PRU0_RESOURCE_TABLE=/work/pru-software-support-package/examples/am572x/PRU0_emac_rsc/gen/PRU0_emac_rsc.out
PRU1_RESOURCE_TABLE=/work/pru-software-support-package/examples/am572x/PRU1_emac_rsc/gen/PRU1_emac_rsc.out
NULL_RSC=/work/pru-software-support-package/examples/am572x/null_rsc/gen/null_rsc.out
#FIRMWARE... | true |
85f4987f3d4150408b683baa86abaa6145fbfa9d | Shell | apache/royale-asjs | /js/bin/externc | UTF-8 | 2,206 | 3.265625 | 3 | [
"MPL-1.1",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"CC-BY-2.5",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"CC-BY-3.0"
] | permissive | #!/bin/sh
################################################################################
##
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ... | true |
84f8d8929ec288c8bd3405b6995edc45849997d1 | Shell | donjuanmon/ansible-rclone-jobber | /rclone_jobber/templates/rclone_jobber_schedule.j2 | UTF-8 | 594 | 2.65625 | 3 | [] | no_license | #!/usr/bin/env sh
# {{ ansible_managed }}
# path of rclone_jobber.sh
rclone_jobber={{ rclone_jobber_git }}
# backup source
source="{{ item.src }}"
# backup destination
dest="{{ item.dst }}"
# file move behavior
move_old_files_to="{{ item.move_old_files }}"
{% if item.filter == true %}
options="--filter-from={{ rclone... | true |
91a72fc302f937b6951c91ca8971cdcb5b70ebf5 | Shell | championboylay/provisioning-bash | /ubuntu18/mongo4.sh | UTF-8 | 935 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# See: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
#>>>>>>>>>> prepare
source prepare.sh
#<<<<<<<<<<
set -e
[ $(isroot) ] || { echo "${MYUSER} can not run ${MYNAME}" >&2; exit 1; }
# args
## 1 = mongo version
declare -r MINOR_VER=${1:-"0"}
declare -r MAJOR_VER="4.2"
declare -r ... | true |
7787535592881a4ad5302433ee3c804e67e04ac4 | Shell | charleygros/inspiredsct | /parameters.sh | UTF-8 | 586 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# Set environment variables for the study.
# path to input data (add "/" at the end)
export PATH_DATA="/Users/julien/data/INSPIRED/20180118/02/"
# list of subjects to analyse (add "/"" at the end)
export SUBJECTS=(
"001/"
"002/"
"003/"
"004/"
"005/"
"006/"
"007/"
"008/"
)
# sub-folder to data ... | true |
29fa19415c091acc1150699b9b41c3d88fc1607a | Shell | jtojnar/nixfiles | /pkgs/utils/nix-explore-closure-size | UTF-8 | 361 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
if (( $# != 1 )); then
echo "usage: nix-explore-closure-size <store-path>"
exit 1
fi
store_path=$1
until [[ -z $store_path ]]
do
store_path=$(nix path-info --human-readable --closure-size $(nix-store --query --requisites "$store_path") | sort --key 2 --human-numeric-sort --reverse | f... | true |
d69e10f35fd9a76cf53ca5d4ee1f4c0e2f266c32 | Shell | pombredanne/hiq-deployment | /rpm/submit_to_copr.bash | UTF-8 | 7,720 | 3.75 | 4 | [
"Apache-2.0"
] | permissive | #! /bin/bash
# ==============================================================================
#
# Copyright 2020 <Huawei Technologies Co., Ltd>
#
# 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 a... | true |
266797b004132859869467d30f7c1375d048fc85 | Shell | dolendupes/airflow | /dev-runner.sh | UTF-8 | 1,462 | 3.9375 | 4 | [] | no_license | #!/usr/bin/env bash
# Settings
VAGRANT_DIR="."
# Definitions
stop_airflow() {
(cd "$VAGRANT_DIR" && vagrant ssh -c "
sudo service airflow-webserver stop;
sudo service airflow-scheduler stop;
sudo service airflow-worker stop;
")
}
start_airflow() {
(cd "$VAGRANT_DIR" && vagrant ssh -c "
sudo ser... | true |
557d97d45a1387c8e69ca1964b9ac28bae3450e7 | Shell | jiwoongbio/SpliceFisher | /prepare.sh | UTF-8 | 724 | 3.078125 | 3 | [] | no_license | # Author: Jiwoong Kim (jiwoongbio@gmail.com)
#!/bin/bash
codeDir=`dirname $0`
gtfFile=$1
if [ -z "$gtfFile" ]; then
echo 'Usage: ./prepare.sh <gene.gtf>' 1>&2
exit 1
fi
type=exon
perl $codeDir/prepare_$type.pl $gtfFile | sort --field-separator=$'\t' -k1,1 -k2,2n -k3,3n > $type.txt
cut -f1,2,3,4,5 $type.txt | sort ... | true |
dc44b30fdd514ea4d1b63901adf496fd95507de7 | Shell | JulienPascal/nyc-taxi-data | /import_fhv_trip_data.sh | UTF-8 | 1,181 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
year_month_regex="tripdata_([0-9]{4})-([0-9]{2})"
fhv_schema_pre_2017_06="(dispatching_base_num,pickup_datetime,pickup_location_id)"
fhv_schema_2017_06="(dispatching_base_num,pickup_datetime,dropoff_datetime,pickup_location_id,dropoff_location_id)"
for filename in data/fhv*.csv; do
[[ $filename =~ $yea... | true |
253a32a1bc5def50ddac114da09e51aba5ee4280 | Shell | kosqx/better-bencode | /benchmark/run.sh | UTF-8 | 176 | 2.546875 | 3 | [
"BSD-3-Clause"
] | permissive | #! /bin/bash
if [ ! -d "$DIRECTORY" ]; then
virtualenv --no-site-packages venv
fi
source venv/bin/activate
pip install -r requirements.txt
python benchmark.py
deactivate
| true |
a7029efa20ddc8e694faf5fbfaebfd4670b37451 | Shell | minus5/statsdaemon | /test_nsqd.sh | UTF-8 | 1,139 | 3.171875 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
set -e
# Integertion test for nsqd.
# Starting nsqd, statsdeamon and nsq_tail.
# Sending some counters to statsdeamon and expecting to read them with nsq_tail.
echo starting nsqd
mkdir -p ./tmp/nsqd
nsqd -broadcast-address=127.0.0.1 -data-path=./tmp/nsqd -max-msg-size=10485760 > /dev/null 2>&1 &
PID1=$!
... | true |
0bbde28a159236f80151ed0b73155abde9421756 | Shell | cockroachdb/cockroachdb-cloudformation | /scripts/kubernetes-override-binaries.sh.in | UTF-8 | 1,262 | 3.546875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2017 by the contributors
#
# 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 appl... | true |
8821f831b5eaa7a40fa66a67aafd1ec1d962fc11 | Shell | it-slav/Azure-CAP | /azure_cap_scripts/service_broker.sh | UTF-8 | 2,062 | 2.90625 | 3 | [] | no_license | #!/bin/sh
#set -x
. ./set_env.sh
set +x
export LOCATION=$REGION
export AZURE_SUBSCRIPTION_ID=$(az account show | jq -r '.id')
#az group create --name ${SBRGNAME} --location ${LOCATION}
export SERVICE_PRINCIPAL_INFO=$(az ad sp create-for-rbac --name ${SBRGNAME})
export AZURE_TENANT_ID=$(echo ${SERVICE_PRINCIPAL_INFO} |... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.