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
34e01e1beea4682d86d42359f85074e2cf0ad1bd
Shell
jensp/Arch-Linux-on-i586
/extra/libcdio/PKGBUILD
UTF-8
985
2.53125
3
[]
no_license
# $Id: PKGBUILD 35681 2009-04-15 11:19:42Z jgc $ # Maintainer: damir <damir@archlinux.org> # Contributor: damir <damir@archlinux.org> pkgname=libcdio pkgver=0.81 pkgrel=2 pkgdesc="GNU Compact Disc Input and Control Library" arch=("i586" "i686" "x86_64") license=('GPL3') url="http://www.gnu.org/software/libcdio/" depen...
true
a0f12793bbd2408b4888884e4bdc9b4dabedbc75
Shell
aur-archive/kftpgrabber-svn
/PKGBUILD
UTF-8
1,096
2.8125
3
[]
no_license
# Contributor: Andrea Scarpino <andrea@archlinux.org> pkgname=kftpgrabber-svn pkgver=1338485 pkgrel=2 pkgdesc="A graphical FTP client for KDE" url="http://kftp.org" arch=('i686' 'x86_64') license=('GPL') conflicts=('kftpgrabber') provides=('kftpgrabber') depends=('kdelibs' 'libssh2') makedepends=('subversion' 'cmake' ...
true
6720154f457d3e3a026f40fba6746b25a27987c9
Shell
5kg/lttng-gsoc
/dyninst/benchmark/run
UTF-8
1,489
3.21875
3
[]
no_license
#!/bin/sh : ${ITERS:=10} : ${NR_EVENTS:=100000} : ${NR_CPUS:=1} : ${PROG_NOTRACING:="./bench_notrace $NR_CPUS $NR_EVENTS"} : ${PROG_TRACING:="./bench_trace $NR_CPUS $NR_EVENTS"} : ${PROG_DYNINST:="DYNINSTAPI_RT_LIB=/usr/lib/libdyninstAPI_RT.so ./mutator ./dyntp.so ./bench_notrace $NR_CPUS $NR_EVENTS"} echo "-- NR_EV...
true
c994ccb9f6d46f6f3413f4c122d19a986951ca21
Shell
nslay/bleak
/Experiments/Data/eeg/Get.sh
UTF-8
548
3.84375
4
[]
no_license
#!/bin/bash if ! which "wget" > /dev/null 2>&1 then echo "Error: wget needs to be in PATH." 1>&2 exit 1 fi if [ ! -f "eeg_full.tar" ] then wget -O "eeg_full.tar" "http://kdd.ics.uci.edu/databases/eeg/eeg_full.tar" fi rootDir="data" eegTarFile="${PWD}/eeg_full.tar" mkdir -pv "${rootDir}" pushd "${rootDir}" ta...
true
a847a4965ce25ae6633622d5fbf1a88554637bbe
Shell
dougbeal/wordpress-indieweb-docker
/pgp-identity/entrypoint.sh
UTF-8
201
2.875
3
[]
no_license
#!/bin/sh read input="" date while IFS= read -r line; do input="$input\n$line" echo "." done echo "intput: '$input'" echo "$input" | gpg --clearsign --armor tail -f /dev/null echo "exited..."
true
29e5837c7cb671b86ebe63041299db9d89575cf6
Shell
christophstach/bash-uni-operating-systems
/exercise-02/src/main/sh/2.3_summe.sh
UTF-8
211
3.40625
3
[]
no_license
#!/bin/sh i=$1 out="" sum=0 while [ $i -le $2 ]; do sum=`expr $sum + $i` if [ $i -eq $2 ]; then out="$out $i" else out="$i +" fi i=`expr $i + 1` done; echo "$out = $sum"
true
d72f0a14d0e428b8eafef8dbec0861f0a18cf422
Shell
chipmunk-sm/buildffmpeg
/FFmpegBuild.sh
UTF-8
2,350
3.71875
4
[]
no_license
#!/bin/sh set -e tmpexitcode=0 BUILDPROFILE=$1 ROOT_DIR=$2 BIN_DIR="${ROOT_DIR}/${BUILDPROFILE}_bin" PREF_DIR="${ROOT_DIR}/${BUILDPROFILE}_pref" rm -rf $BIN_DIR mkdir $BIN_DIR rm -rf $PREF_DIR mkdir $PREF_DIR yasm.exe --version echo "**** which yasm $(which yasm)" echo "**** which cl $(which cl)" echo "...
true
2f6fdb020e7c7f37c630d4f66ab91f1f8d5e94e9
Shell
alcap-org/musun_job_scripts
/submitG4Job.sh
UTF-8
11,613
4.09375
4
[]
no_license
#!/bin/bash # This script is used for running G4. # It requires a valid dataset and Monte Carlo GEANT files for all runs (you can limit the number of runs with -n argument) that # If a previous submission had a limited number of runs the logical Monte Carlo dataset can be # increased by using the same pass tag. # # ...
true
6267fd9125fc4cc958a69757b75fab8738951637
Shell
chakralinux/desktop
/kbd-xdg/PKGBUILD
UTF-8
1,426
3.03125
3
[]
no_license
pkgname=kbd-xkb pkgver=0.1.6 pkgrel=1 pkgdesc="Keytable files imported from XKB" arch=('x86_64') url="http://www.kbd-project.org" license=('GPL') depends=('glibc' 'pam' 'kbd') makedepends=(perl keyboardctl=$pkgver) source=('xml2lst.pl') md5sums=('c2fb8f824d5af81df99d9bd962dd721c') package() { # Convert X keyboard ...
true
c200949e27ba29c5ca1af45293d6c5b4e3270eb5
Shell
darianJmy/learning
/haproxy-learning/kubez-keepalived/mycheckscript.sh
UTF-8
113
2.890625
3
[]
no_license
#!/bin/bash set -x count=`ss -lntp | grep haproxy | wc -l` if [ $count > 0 ]; then exit 0 else exit 1 fi
true
3d5535d07b86f2bc856aa75bc3dd65eca6412acb
Shell
rupal-bq/sql-odbc
/run_test_runner.sh
UTF-8
953
2.515625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2....
true
cf792793762f360dff3030263f65a2b2080d839a
Shell
opennetworkinglab/onos
/tools/dev/p4vm/start_onos.sh
UTF-8
1,396
3.96875
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash ONOS_TAR=~/onos.tar.gz [ -f $ONOS_TAR ] || (echo "$ONOS_TAR not found" && exit 1) ONOS_DIR=/tmp/$(tar tf $ONOS_TAR | head -n 1 | cut -d/ -f1) # Kill any running instances ps -ef | grep apache.karaf.main.Main | grep -v grep | awk '{print $2}' | xargs kill -9 &>/dev/null # Do not tolerate any err...
true
dc528546fe45a447662dc230695f40e1e2a28c1e
Shell
aegypius/dotfiles
/home/.spells
UTF-8
520
3.015625
3
[ "MIT" ]
permissive
# -*- shell-script -*- function sf() { (docker-compose config > /dev/null 2>&1 && docker-compose exec php bin/console "$@") || php bin/console "$@" } function composer() { (docker-compose config > /dev/null 2>&1 && docker-compose exec php composer "$@" ) || command composer "$@" } function serve() { docker run...
true
0c3e831cfebfbbd43f3c9fc9ece74fdea8df4331
Shell
tdorsey/blind-bake
/flash_to_card.sh
UTF-8
548
3.28125
3
[]
no_license
#!/bin/bash FLASH_VERSION=2.2.0 HYPRIOT_VERSION=1.10.0 FLASH_PATH='/usr/local/bin/flash' if test "$#" -ne 2 then echo "Usage: $0 <CLOUD-INIT> <BLOCK DEVICE>" exit 1 fi #Install dependencies sudo apt-get install -y pv curl python-pip unzip hdparm #Install flash curl -LO https://raw.githubusercontent.com/hyp...
true
bf36b97f4971d800e29726e19742e0f846b5797e
Shell
scottwedge/OpenStack-Stein
/designate-8.0.0/devstack/upgrade/shutdown.sh
UTF-8
1,042
2.6875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # ``shutdown-designate`` set -o errexit source $GRENADE_DIR/grenaderc source $GRENADE_DIR/functions # We need base DevStack functions for this source $BASE_DEVSTACK_DIR/functions source $BASE_DEVSTACK_DIR/stackrc # needed for status directory source $BASE_DEVSTACK_DIR/lib/tls source ${GITDIR[designate]...
true
537575f24b382473561c36eb250ebd751d2cda90
Shell
shanman190/dotfiles
/bash/aliases.bash
UTF-8
266
2.546875
3
[]
no_license
# overrides for ls alias ls="ls -F --color=auto" alias l="ls -C" alias ll="ls -la" alias la="ls -A" # overrides for grep alias grep="grep --color=auto" alias fgrep="fgrep --color=auto" alias egrep="egrep --color=auto" # allow for common cd typo alias cd..="cd .."
true
a4f9478281f455bcecbec577fdc115c7880e5f4f
Shell
t-tht/MIPS1-Compiler
/input_testfile.sh
UTF-8
869
3.609375
4
[]
no_license
#!/bin/bash compiler="bin/c_compiler" have_compiler=0 if [[ ! -f bin/c_compiler ]] ; then >&2 echo "Warning : cannot find compiler at path ${compiler}. Only checking C reference against python reference." have_compiler=1 fi input_dir=$1 working="tmp/random" mkdir -p ${working} REF_C_OUT=$2 if [[ ${...
true
4c7b2bfe38e12452bed5b76f0c40ce475a2ff5cf
Shell
FauxFaux/debian-control
/f/freewnn/freewnn-kserver_1.1.1~a021+cvs20130302-7+b1_amd64/postinst
UTF-8
2,018
3.4375
3
[]
no_license
#! /bin/sh # postinst script for freewnn # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour' <package> # ...
true
80b6353dc8d7e7025f3bc2dfedfce1a0dbbca90d
Shell
elct9620/nginx-pagespeed
/runtime/functions
UTF-8
2,963
3.921875
4
[]
no_license
#!/bin/bash set -e source ${NGINX_RUNTIME_DIR}/envs-default generate_config() { local FILE=${1?missing argument} shift local DEST=${1?-1} shift [[ ! -f ${FILE} ]] && return 1 [[ ${DEST} == -1 ]] && return 1 # Direct copy if no environment need to replate if [[ -z $1 ]]; then cp -a "${FILE}" ${...
true
0cd40ae16f462d65b4a7392cc15cc4b8572859c6
Shell
pavelkolomitkin/quick-lang-practice-backend-nest
/docker/dev/start.sh
UTF-8
535
2.65625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash echo -n "Stop previous containers..." echo -en '\n' docker-compose stop # Install dependencies echo -n "Install dependencies..." echo -en '\n' docker run --rm -v $(pwd)/../../:/app -w /app node:10.16.0-stretch-slim npm install # Up docker compose echo -n "Up docker compose..." echo -en '\n' docke...
true
30f5e97a1f0f533bd78eee213c638f7cdc9c3b3e
Shell
rjuelich/dp_report
/MODULES/dp_outdir_gen.sh
UTF-8
2,871
3.796875
4
[]
no_license
#!/bin/bash study=$1 out_home=$2 sublist=$3 phx="/ncf/cnl03/PHOENIX" csv="${phx}/GENERAL/${study}/${study}.csv" #TODO: add sublist autogen if not specified if [ ! -e ${out_home} ] then mkdir ${out_home} fi if [ ! -e ${out_home} ] then echo "${out_home} cannot be generated. Try doing so manually and rerun." ...
true
dd79f86969ec07a7d1b7c2c840ba8e2fa8f304a2
Shell
JimmWizzy/lancom-router-nagios-plugin
/check_snmp_router_temperature.sh
UTF-8
4,275
3.65625
4
[]
no_license
#!/bin/bash # check_snmp_router_temperature # Description : Checks Temperature of Lancom Router # The MIT License (MIT) # # Copyright (c) 2015, Roland Rickborn (roland.rickborn@exensio.de) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentatio...
true
5ce9c00e13b7fbb596685bb92d46dd0c843d7a38
Shell
yingjun-wu/apus
/APUS/eval/test2.sh
UTF-8
1,609
3.578125
4
[]
no_license
#!/bin/bash function error_exit() { echo "Usage: test2.sh -p<p> <list of username@server addresses> p: the percentage of bandwidth for other traffic." >&2; exit 1 } if [[ $# -lt 3 ]]; then error_exit fi while getopts ":p:" opt; do case $opt in p) trafficPer="$OPTARG" ;; \?) error_exit ;; ...
true
49eedf4d917e8705fe82f8f65361b909a1d28f31
Shell
RaymiiOrg/raymiiorg.github.io
/inc/software/easyconverter-v4e.sh
UTF-8
3,454
3.875
4
[]
no_license
#!/bin/bash #################################### ## Script made by Raymii.org ## #################################### # V0.4 new features: # Extension select before folder. # Filter on extension # Check if files exist in folder. # Added .flv to input format # Added .aac to input/output format # Quality selector ...
true
e5d3c9fd30e551ec4b60480fe48fd8d8267897da
Shell
chicha1986/gfs_verif
/fit2obs/scripts/timeship.newb
UTF-8
2,367
2.59375
3
[]
no_license
#!/bin/ksh set -x export list=$listvar #echo "jn is $jn" #echo "PSLOT is $PSLOT" #echo "RUNLOG is $RUNLOG" #echo "yyyy is $yyyy" #echo "mm is $mm" #echo "datefix is $datefix" #echo "BASEDIR is $BASEDIR" #echo "SCRIPTSDIR is $SCRIPTSDIR" #echo "ACCOUNT is $ACCOUNT" #echo "ARCDIR is $ARCDIR" #export SHDIR=${SHDIR:-$BA...
true
a4bc800e81f4323eb9f0561d51ddb70f0091b6a5
Shell
philipbel/dotfiles
/zsh.d/99-cache.zsh
UTF-8
251
2.890625
3
[]
no_license
_CCACHE_PATHS=(/usr/lib/ccache /usr/lib64/ccache /usr/local/opt/ccache/libexec) for _path in $_CCACHE_PATHS; do if [ -d "$_path" ]; then _CCACHE_PATH=$_path fi done export PATH=$_CCACHE_PATH:$PATH export CCACHE_DIR=/var/tmp/ccache
true
fd7a39cdea3fa36434896683770ae82e69003c09
Shell
tyr2014/cuba
/_misc/scripts/cron.d/daily_mongodump.sh
UTF-8
979
3.640625
4
[]
no_license
#!/bin/bash BackupDirBase=/var/lib/mongodb/dbdump ArchiveDir="$BackupDirBase/archive" LogFile="$BackupDirBase/dump.log" Database="toureet" [ $(date +%H) -eq 04 ] && DirName="midnight" || DirName="$(date +%H)" BackupDir="$BackupDirBase/dump_$(date +%m%d)/$DirName" echo -e "\n### $(date) ###" >> "$LogFile" mkdir -p "$...
true
ccf30ff5db8fb766d4fab6585bcf912496a60f4b
Shell
tzhang2014/redirectify
/package.sh
UTF-8
314
3.375
3
[ "MIT" ]
permissive
#!/bin/sh set -e EXTENSION=redirectify SRC=src # Set working directory to location of this script cd $(dirname $(readlink -m "$0")) VERSION=$(grep '"version":' src/manifest.json | sed 's/.*"\([0-9.]*\)".*/\1/') OUT="$EXTENSION"-"$VERSION".xpi rm -f "$OUT" cd "$SRC" zip -r -FS ../"$OUT" * echo Created "$OUT"
true
45a5e67fd11134211f55259b24ace35265fbd06f
Shell
cachix/install-nix-action
/install-nix.sh
UTF-8
2,900
3.640625
4
[ "MIT", "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -euo pipefail if nix_path="$(type -p nix)" ; then echo "Aborting: Nix is already installed at ${nix_path}" exit fi # GitHub command to put the following log messages into a group which is collapsed by default echo "::group::Installing Nix" # Create a temporary workdir workdir=$(mktemp -d)...
true
826332d28fb25550451e66ea5e7dc099c4a294c9
Shell
bl419cam/sql_practice
/bash/01_install_packages.sh
UTF-8
951
2.875
3
[]
no_license
# upgrade all brew packages & update homebrew brew upgrade && brew update # install tool used to download a local copy of a file from the Internet brew install wget # install open source implementation of the Java Platform, Standard Edition brew cask install adoptopenjdk # install the scala programming language brew...
true
543b218fc1854b42e301f9a2f7f187d18688a400
Shell
Stuartlab-UCSC/cell-atlas-env
/bin/loop_over_cluster.exp.starter.sh
UTF-8
614
2.875
3
[ "MIT" ]
permissive
#!/bin/bash ATTR_FILTERED_SCR=/projects/sysbio/users/cellAtlas/bin/attributes/filter.py CLUSTERDIR=/projects/sysbio/users/cellAtlas/data/cluster.exp OUTPUTDIR=/projects/sysbio/users/cellAtlas/data/cluster.exp.less_1000 for dir in ${CLUSTERDIR}/*; do echo $dir for filename in ${dir}/*; do echo $(basename $filename)...
true
7b4f1033225bdedf9cef8db076ec22d0d66da324
Shell
nighthawk149/fvs318g-cfw
/ramdisk/root/tc.sh
UTF-8
2,374
2.53125
3
[]
no_license
#!/bin/sh CONFIGURE_TC=1 WLAN_NUM_BANDS=1 if expr $CONFIGURE_TC = 1 then echo Configuring Linux QoS Queues ##tc qdisc del dev wlan0 root tc qdisc add dev wlan0 root handle 1: prio bands 4 tc qdisc add dev wlan0 parent 1:1 handle 10: pfifo limit 100 tc qdisc add dev wlan0 parent 1:2 handle 20: pfifo limit 1100...
true
cbb5aceb2b045183760228e13bcc75b104b7e7a2
Shell
liuzhisheng1226/HipMer
/.edison_deploy/build.sh
UTF-8
1,378
3.4375
3
[ "BSD-3-Clause-LBNL" ]
permissive
#!/bin/bash -l set -e [ -n "${HIPMER_BUILD_ENV}" ] || . $(dirname $0)/env.sh [ -n "${BUILD}" ] [ -n "${PREFIX}" ] SRC=$(pwd) if [ -e "${BUILD}" ] then cmakecache=${BUILD}/CMakeCache.txt if [ -f ${cmakecache} ] then testsame=$( ( grep HipMer_SOURCE_DIR /tmp/build-regan-edison/CMakeCache.txt ; echo ...
true
2c4b12a58f1f9f4a9319af3a61e12bb95dea01fc
Shell
rlucente-se-jboss/integration-demo
/install-rhdm.sh
UTF-8
3,728
2.9375
3
[]
no_license
#!/usr/bin/env bash . $(dirname $0)/demo.conf PUSHD $WORKDIR echo if [ -d "$JBOSS_HOME" ] then echo "RHDM currently installed. Please remove it before attempting install." echo exit 1 fi echo -n "Install EAP ..................... " unzip -q $BINDIR/jboss-eap-$VER_DIS...
true
843343927e41ba5086619501261131c81f01e225
Shell
pupupulp/microservices-architecture
/dependency-installation.sh
UTF-8
1,278
3.046875
3
[ "MIT" ]
permissive
#!/bin/bash # Setup docker key and repository KEY_BASE=https://download.docker.com/linux/ubuntu/gpg \ && curl -fsSL ${KEY_BASE} | apt-key add - \ && apt-key fingerprint 0EBFCD88 \ && add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ ...
true
8d0e161be09ec8f490efd5330d920616056ad66c
Shell
dmalyuta/config-public
/.my_scripts/desktop_env/vim-anywhere
UTF-8
567
3.46875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # # This is inspired/copied from https://github.com/cknadler/vim-anywhere # See https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ set -o errexit -o errtrace -o nounset -o pipefail tmpfile_dir=/tmp/vim-anywhere tmpfile="${tmpfile_dir}/doc-$(date +"%y%m%d%H%M%S")" [[ -d ${tmpfile...
true
02daa77465f917fd02dcda4ee43ff7652625d136
Shell
Angry-Pixel/The-Betweenlands
/.github/workflows/build/config/config.sh
UTF-8
2,467
3.28125
3
[]
no_license
#!/bin/bash # Sets up the necessary environment variables echo "BS_DEPLOY_REPOSITORY_URI=git@github.com:Angry-Pixel/The-Betweenlands-Development-Builds.git" >> $GITHUB_ENV echo "BS_DEPLOY_REPOSITORY_BRANCH=master" >> $GITHUB_ENV echo "BS_DEPLOY_NAME=Build Wizard" >> $GITHUB_ENV echo "BS_ABORT_ON_DEPLOY_ERROR=true" >>...
true
ca5c7103b79b295eaf6d0ab665223468206ea5e4
Shell
dfnb/TermuxDockerVM
/run.sh
UTF-8
1,467
3.125
3
[]
no_license
ARCH=$(uname -m) ALPINELINUXARCH="" if [ "$ARCH" = "armv7l" ]; then echo "armv7" ALPINELINUXARCH="armv7" elif [ "$ARCH" = "aarch64" ]; then echo "aarch64" ALPINELINUXARCH="aarch64" else echo "armhf" ALPINELINUXARCH="armhf" fi INITRAMFS=http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/$ALPINELINUXARCH/netboot-...
true
72ac95206897cda84c53ae0f5a6657ae459e94a4
Shell
bmuschko/gradle-docker-plugin
/src/test/resources/auth-config/docker-credential-no-server-url
UTF-8
290
2.734375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [[ $1 == "get" ]]; then read > /dev/null echo '{' \ ' "Username": "username",' \ ' "Secret": "secret"' \ '}' elif [[ $1 == "list" ]]; then echo '{' \ ' "registry.example.com": "username"' \ '}' else exit 1 fi
true
d20c3cf6cd5ccd8c2dd8cfae267d56f51914e4e6
Shell
b03201003/firmware
/_DIR-300A1_FW105b09.bin.extracted/squashfs-root/etc/scripts/misc/profile.sh
UTF-8
1,332
3.4375
3
[]
no_license
#!/bin/sh echo [$0] $1 ... > /dev/console if [ -f /etc/config/rgdb ]; then nvram=`cat /etc/config/rgdb` else nvram=`cat /etc/config/nvram` fi case "$1" in get) rgcfg get -n $nvram -c /var/run/rgdb.xml.gz if [ "$?" != "0" ]; then echo "Can't get config from nvram, generate default!" > /dev/console /etc/scripts/m...
true
cabcb6921b119af1dd917b304160a7331fc5a843
Shell
AleksaMCode/kriptografija-i-racunarska-zastita
/ispit_20200129/z03/script.sh
UTF-8
366
3.1875
3
[]
no_license
#!/bin/bash while IFS= read -r algo do for i in {1..11} do openssl dgst -$algo -out otisak.txt ulaz.txt if [[ "$(cat otisak.txt)" =~ "$(cat otisci/otisak$i.txt)" ]] then echo "MATCH: $algo + ulaz.txt = otisak$i.txt" rm otisak.txt break 2 fi ...
true
8556271d836a4a729de9651af041196663af6c76
Shell
MenkeTechnologies/zpwr
/autoload/common/zpwrDockerWipe
UTF-8
514
3
3
[ "MIT" ]
permissive
# -*- mode: sh -*- # vim: set ft=sh: function zpwrDockerWipe(){ if [[ -z $1 ]]; then docker stop $(docker ps -qa) 2>/dev/null docker rm -f $(docker ps -qa) 2>/dev/null docker rmi -f $(docker images -qa) 2>/dev/null else app="$1" docker stop $(docker ps -qa --filter name=...
true
5cc38a5a05b97a00c88050f5ac42dd01127e0df4
Shell
capossele/drand
/web/deploy.sh
UTF-8
3,804
4.34375
4
[ "LicenseRef-scancode-unknown-license-reference", "CC-BY-4.0", "MIT" ]
permissive
#!/bin/bash # set -x ### This script allows you to deploy our drand website on your domain ## There are 2 modes: interactive and flag based if [ $# -eq 0 ] then echo Starting the deployment in *interactive* mode. Run sh deploy.sh --help for more information about the different modes. echo Before beginning, ...
true
fb58d79dbfc7d59241c276563bf8c692162dac91
Shell
axblk/PKGBUILD
/libomp-hermit-git/PKGBUILD
UTF-8
1,217
2.703125
3
[]
no_license
_pkgname="libomp-hermit" pkgname=$_pkgname-git pkgver=r790.a6a63d1 pkgrel=1 pkgdesc="Cross-build binary utilities for HermitCore" arch=('x86_64') url="https://github.com/hermitcore/openmp" license=('GPL') groups=() depends=() makedepends=('git' 'cmake' 'binutils-hermit' 'gcc-hermit' 'newlib-hermit' 'pte-hermit' 'libher...
true
a9d07e544db85726e9c1e8dd58fb1dd37ea21ddd
Shell
nguyen-tich-duy/canvas-lms-test
/build.sh
UTF-8
2,135
3.953125
4
[ "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/bash set -eo pipefail # -e: immediately exit if any command has a non-zero exit status # -o: prevents errors in a pipeline from being masked function usage { echo "./build.sh : build local only" echo "./build.sh clean : remove all images" echo "./build.sh push : build and push" echo "....
true
9c593289288628a304e65f28ae278ee8ed07a83d
Shell
third774/dotfiles
/script/setup
UTF-8
522
2.703125
3
[]
no_license
#!/usr/bin/env bash touch ~/.dotfiles/.localProfile echo 'installing oh-my-zsh' curl https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -fsSL | sh echo 'copying dotfiles to user directory' cp ~/.dotfiles/.zshrc ~/.zshrc cp ~/.dotfiles/.vimrc ~/.vimrc echo 'cloning night owl theme for iTerm' rm -r...
true
f60c5298c80b841216a1a446ffa261b423431ebb
Shell
vinz3872/lang-install
/lang_install
UTF-8
367
3
3
[ "MIT" ]
permissive
#!/bin/sh project_dir=$(realpath $0 | xargs dirname) cd $project_dir # load functions . lib/parse_options.sh . lib/utils.sh . lib/actions.sh . lib/load_config.sh # load conf & env load_config # parse options parse_options "${@}" [[ $action == 'add' ]] && add_lang [[ $action == 'remove' ]] && remove_lang # refresh...
true
06bf8c8f8c304a88da015b66c9fb1dc792805f3c
Shell
paceholder/chigraph
/.travis/install.sh
UTF-8
206
2.65625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -xe if [ "$TRAVIS_OS_NAME" == "linux" ]; then bash ./setup.sh else brew install cmake qt5 bison gettext ninja python3 || echo brew install llvm --with-clang bash ./setup.sh fi
true
8e44e79bdbb4f31b33187732b48e57ba1af1a612
Shell
michaelcunningham/oracledba
/admin/restart_cloud_control_agent.sh
UTF-8
1,789
3.734375
4
[]
no_license
#!/bin/sh HOST=`hostname -s` log_dir=/mnt/dba/logs/$HOST log_file=${log_dir}/restart_cloud_control_agent.log email_body_file=${log_dir}/restart_cloud_control_agent.email mkdir -p $log_dir EMAILDBA=dba@tagged.com result=`sudo cat /proc/sys/fs/aio-nr` if [ $result -lt 1000000 ] then # If the value of /proc/sys/fs/a...
true
f26e40b2835167c948d48c4a55395c22e199e34c
Shell
IanMadlenya/gnome-shell-sia
/install.sh
UTF-8
2,283
3.8125
4
[ "MIT" ]
permissive
#!/bin/bash # # Install Sia desktop extension/applet for GNOME or Cinnamon # # Note: Currently broken in Cinnamon # # Dependencies: unzip # # Check unzip command -v unzip >/dev/null 2>&1 || { echo "Error: Please install unzip"; exit 1; } # Test which desktop is running. By default, we assume GNOME shell. EXTENSIO...
true
3bb6e640eefff90c9d391e55a8d66141774a2687
Shell
zzyhappyzzy/XCConfigOrTarget
/XCConfigDemo/beforeBuildShell.sh
UTF-8
1,550
3.5625
4
[ "MIT" ]
permissive
#! /bin/sh # Note: change *.xcconfig file and then rebuild project will not see changes for derivedData Caches. # 说明:直接修改*.xcconfig文件,重新编译,app里面并不能马上体现是因为derivedData的缓存导致的 # remove derivedData and clean project for rebuild # 该脚本用于清除缓存,保证每次的修改编译后都能够及时生效 # Xcode Version: 9.3 (9E145) <not test for other xcode version> # 版...
true
d182f2023e62e8197dfc0e1dcca3151e75e999d0
Shell
Sewdn/meteor-mdl
/scripts/publish-edge.sh
UTF-8
698
3.25
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ################################################################################ # This script publishes the edge version. ################################################################################ RLSVER=1.3.5 EDGE_VERSION=1.1.3_8 SCRIPTDIR="$(dirname "$0")" ROOTDIR="${SCRIPTDIR}/../" cd $ROOTDIR...
true
c9db1d40c8df2b75932d578bda10a5a875378e5a
Shell
jiangz222/transporter
/scripts/teardown_db_in_docker.sh
UTF-8
173
2.890625
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash set -e case "$TESTDIR" in adaptor/*) adaptor=`cut -d "/" -f2 <<< $TESTDIR` cd config/$adaptor/test_setup docker-compose down ;; esac
true
1305ca0dad04e5e0237dde90305c1376c7a30487
Shell
vishwakumba/vagrant-vms
/sftp-centos-vm/configure-sftp.sh
UTF-8
489
2.53125
3
[]
no_license
#!/bin/bash sudo mv /etc/ssh/sshd_config /etc/ssh/sshd_config.backup sudo cp /vagrant/sshd_config /etc/ssh/ sudo chmod 600 /etc/ssh/sshd_config sudo chown root:root /etc/ssh/sshd_config sudo mkdir -p /super-heroes-work sudo userdel -f batman sudo groupdel super-heroes sudo groupadd super-heroes sudo useradd batma...
true
d42511afa4d2ffdaec66fa446e350f97a781a008
Shell
AndrewSB/dotfiles
/script/new-mac.sh
UTF-8
1,414
3.484375
3
[]
no_license
#!/bin/bash # runnable as `curl -L andrew.energy/newmac | bash` sudo echo # Install Homebrew NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" eval "$(/opt/homebrew/bin/brew shellenv)" || eval "$(/usr/local/bin/brew shellenv)" # Install Mackup brew insta...
true
6ec54df0b220d7db4738608ec3cfaca3a3bc16e4
Shell
rathoddilip/Day5_Sequence_Practice_Problem
/1_3_Add2RandomDiceNum.sh
UTF-8
154
2.921875
3
[]
no_license
#!/bin/bash -x diceNumber1=$((RANDOM%6+1)) diceNumber2=$((RANDOM%6+1)) sum=$(( $diceNumber1 + $diceNumber2 )) echo "Result of two dice numbers =:" $sum
true
13212ad229c50b83a2189990bba45fe211f5568e
Shell
trapd00r/Documentation
/zsh/ftzsh/zshrc.d/000-check_com.z
UTF-8
1,407
3.578125
4
[]
no_license
### vim:ft=zsh:foldmethod=marker ### check_com(): check if a command exists ### eg: check_com "vim -p" function check_com() { #setopt localoptions xtrace local words local -i comonly local cmd if [[ ${1} == '-c' ]] ; then (( comonly = 1 )) shift else (( comonly = 0 )) ...
true
a1270dca601a1b8e036f315e6b7df7d5633a71c0
Shell
behnammhp/myscripts
/create-mac-user.sh
UTF-8
1,223
2.84375
3
[]
no_license
#LOCAL_ADMIN_FULLNAME="Joe Admin" # The local admin user's full name #LOCAL_ADMIN_SHORTNAME="joeadmin" # The local admin user's shortname #LOCAL_ADMIN_PASSWORD="password" # The local admin user's password echo -n "Please enter full name for the user:" read LOCAL_ADMIN_FULLNAME echo -n "Please enter the u...
true
300ee5b661dd458e179aab31d3b921099c36a374
Shell
ennweb/docker-percona_galera
/database/bin/functions
UTF-8
4,000
3.78125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash function etcd_set_default { etcdctl --no-sync -C $ETCD mk /$1 $2 >/dev/null 2>&1 || true } function etcd_make_directory { etcdctl --no-sync -C $ETCD setdir /$1 >/dev/null 2>&1 || true } function cluster_members() { CLUSTER_MEMBERS= LIST= for server in $(cat /app/cluster_members.txt); do ech...
true
7db4914c9413429957f20679722ea577b85eb841
Shell
jwmatthews/ec2_scripts
/scripts/install_report_server.sh
UTF-8
722
3.53125
4
[]
no_license
#!/bin/sh # Assumes that "install_rpm_setup.sh" has already been run source ./functions.sh # # Cloning git repo so the curl scripts under playpen are available for testing. # yum install -y git cd ~ git clone https://github.com/splice/report_server.git yum -y install report-server || { echo "yum install of repor...
true
0117fe2e9b2c98db89331e655e830405bacbaea8
Shell
0xch4z/dotfiles
/scripts/bin/center-me
UTF-8
417
2.6875
3
[ "CC0-1.0" ]
permissive
#!/usr/bin/env bash set -e window="$(yabai -m query --windows --window)" display="$(yabai -m query --displays --window)" coords="$(jq \ --argjson window "${window}" \ --argjson display "${display}" \ -nr '(($display.frame | .x + .w / 2) - ($window.frame.w / 2) | tostring) + ":" + (($display.fra...
true
9eaa8dd240e63c285a981c47d75f7640f5fef84d
Shell
lfwanner/dq-apps
/bodytrack/run.sh
UTF-8
415
2.859375
3
[]
no_license
NTHREADS=1 cd inputs while getopts t:d:s:m:l option do case "${option}" in t) ../bin/bodytrack.arm sequenceB_1 4 1 5 1 0 ${NTHREADS};; d) ../bin/bodytrack.arm sequenceB_1 4 1 100 3 0 ${NTHREADS};; s) ../bin/bodytrack.arm sequenceB_1 4 1 1000 5 0 ${NTHREADS};; m) ../bin/bodytrack.arm sequenceB_2 4 2 2000 5 0 $...
true
21ba341ec723124bc37c5e09b3f3029c695a4bfa
Shell
davideavagliano-zz/press
/publish.sh
UTF-8
390
2.9375
3
[ "MIT" ]
permissive
current_tag=$(git tag --points-at) latest_tag=$(git tag) if test -z "$current_tag" then echo "\033[0;31mError: HEAD doesn't have a tag (\033[0;37mlatest tag is $latest_tag\033[0;31m). If you need to publish your artifacts, create a release first.\033[0m" else echo "\033[0;32mUploading \033[0;37mPress v-$current_tag...
true
25813629ff15e335814016ef07a6cc5dd9226cf4
Shell
manintheit/SampleExpectScript
/expect.sh
UTF-8
1,068
3.328125
3
[]
no_license
#!/usr/bin/expect -f set timeout 8 set username [lindex $argv 0] set password [lindex $argv 1] set hostname [lindex $argv 2] set command [lindex $argv 3] log_user 1 if {[llength $argv] == 0} { send_user "Usage: '\username\' \'password\' \'hostname\' \'\[command\]\'\n" exit 1 } send_user "###########Connecting t...
true
102fbad46a75a9c8d01dcdf95de5f09ac769c1f2
Shell
zzfd97/6502Decoder
/build.sh
UTF-8
753
3.078125
3
[]
no_license
#!/bin/bash LIBS="-lm" INCS="" DEFS="" if [[ $OS = *"Windows"* ]]; then LIBS="$LIBS -largp" DEFS="-D_GNU_SOURCE" elif [[ `uname` = Darwin ]]; then if [ -f /opt/local/include/argp.h ]; then # MacPorts packages required: argp-standalone LIBS="$LIBS -L/opt/local/lib -largp" INCS="$INCS -I/opt/local/inc...
true
fa2db2fc1698d52dc93c739ea7b2c932f14e3af1
Shell
MartinStengard/Bash-Scripts
/misc/counter.sh
UTF-8
644
4.0625
4
[]
no_license
#!/usr/bin/env bash # Counts up/dow according to paramters. # $1 = start number # $2 = end number # $3 = step number # @return echo countdown sequense counter() { start=$1 end=$2 steps=$3 # Clear screen. clear # Message to display before counter. msg="... " # Place cursor one row down. tput cup 1 0 # Pri...
true
aaa7e13fd955efde16176cd305d9c1d95aa6b1c4
Shell
ggombos/mtree
/script/gg/installGG.sh
UTF-8
2,365
3.546875
4
[]
no_license
#!/bin/bash set -e # Source code directory of the M-tree index readonly SOURCE_DIRECTORY="/home/ggombos/mtree/mtree_gist/source" # Include directory readonly POSTGRESQL_INCLUDE_DIRECTORY="/home/ggombos/mtree/mtree_gist/postgre/include/postgresql/server" # PostgreSQL home of SQL and control files readonly POSTGRESQL_E...
true
e1b8ff4e35d977515a59ebce1b20d6712ce35afc
Shell
orsha2/C_language_workshop
/beta_versions/Ex2/beta1/tests/test2.sh
UTF-8
555
2.625
3
[]
no_license
#! /usr/bin/env bash RED='\033[0;31m' NC='\033[0m' # No Color Gre='\e[0;32m'; echo "${Gre}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n${NC}" echo "${RED}~~~~ Test 2 - find google in google.html~~~~\n${NC}" ./my_grep google tests/input_files/test_file_2 >tmp_output grep google tests/input_...
true
782156590364caab450a259e0b13076497e9b7bf
Shell
marcelofelipes/dotfiles
/.zshrc
UTF-8
3,009
2.859375
3
[]
no_license
# Detectar a plataforma atual case "$(uname -s)" in Linux*) # Configurações para Linux export PATH="$HOME/bin:/usr/local/bin:$PATH" ;; Darwin*) # Configurações para macOS export PATH="$HOME/bin:/usr/local/bin:$PATH" ;; *) # Configurações padrão para ou...
true
1abddd9c347b6c098d8bf36991701df80fe3f0e6
Shell
huskerjeff6224/perlWork
/counts_with_wait.sh
UTF-8
1,357
3.1875
3
[]
no_license
#!/bin/bash #This script lets you run a series of commands then wait for those commands to finish # before running another set of commands. Good for jobs that depend on the prevcous commands output FAIL=0 echo "starting" list=`ls | grep -P 'thout_*'` for dir in $list do echo $dir samtools sort -n $dir/accepted_hit...
true
11dc0971a9b603b3941f0c3e090db28fd111b58d
Shell
YACCGroup/hammer-patch-by-host-collection
/patch-job-by-content-group.sh
UTF-8
838
3.921875
4
[]
no_license
#!/usr/bin/env bash usage() { echo "$0 usage:" && grep " .)\ #" $0; exit 0; } [ $# -eq 0 ] && usage # Set default org id ORG='MyOrg' CMD='yum update-minimal --security -y' while getopts "o:c:" arg; do case "${arg}" in o) # Specifiy org id: hammer organizaion list ORG=${OPTARG} ;; ...
true
05a338d87c15ddc4d9b7cbe5fe0a1229addaec90
Shell
tt0y/docker-dev-environment
/.docker/start
UTF-8
481
2.53125
3
[]
no_license
#!/usr/bin/env bash source .env sudo docker-compose up -d --build #PHP_VERSION=$(php -v | tail -r | tail -n 1 | cut -d " " -f 2 | cut -c 1-3) echo " ===================== 🚀 Done 🚀 =================== Created by Anton Kuznetsov Access your new links: 🌎 Web server: http://www.$PROJECT_DOMEN ⚙️ P...
true
6e46c089287f2bc273dce79e26faefa2f8855ccb
Shell
dandouthit/ubuntu_install
/setup.sh
UTF-8
445
2.6875
3
[]
no_license
#!/bin/bash/ ####################################### # Bash script to install apps on a new system (Ubuntu) # Written by @AamnahAkram from http://aamnah.com ####################################### # Update packages and Upgrade system sudo apt update -y && sudo apt upgrade # Git install and configuration echo '###Ins...
true
6a177e0f99ecd3f60dd35fb64dfa04ef078f8466
Shell
Pmarva/skriptimiskeeled2017
/bash/memoryUsage.sh
UTF-8
357
2.84375
3
[]
no_license
#!/bin/bash echo "Sisestage kasutaja kelle m2lukasutust tahate j2lgida"; read kasutaja memory=($(ps aux | grep $kasutaja | awk '{sumVSZ+=$5; sumRSS+=$6}END{print sumVSZ" "sumRSS;}')); vsz=$(numfmt --from-unit=1024 --to=iec ${memory[0]}); rss=$(numfmt --from-unit=1024 --to=iec ${memory[1]}); echo "Kasutaja " $kasu...
true
2b31c738d0e4d9042213153ef5b7bc558b8a5f73
Shell
DingGuodong/LinuxBashShellScriptForOps
/projects/LinuxSystemOps/SoftwareManagement/php/php7-install-update.sh
UTF-8
9,579
3.71875
4
[]
no_license
#!/usr/bin/env bash # Created by PyCharm. # File Name: LinuxBashShellScriptForOps:php7-install-update.sh # Version: 0.0.1 # Author: Guodong # Author Email: dgdenterprise@gmail.com # URL: https://github.com/DingGuodong/LinuxBashShellScriptForOps # ...
true
458a5e179d552ed8090c2f76f530b806527ce327
Shell
xandercrews/kubernetes-on-nomad
/script/ssh.sh
UTF-8
2,176
3.484375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ssh::cmd () { if [ "$_test_" == "true" ]; then echo "cat" elif [ "$KON_VAGRANT_SSH" == "true" ]; then echo "vagrant ssh $(ssh::host)" else echo "ssh $(ssh::user)$(ssh::host)" fi } ssh::user () { if [ ! "$KON_SSH_USER" == "" ]; then echo "$KON_SSH_USER@"; fi } s...
true
708936f550b8fbace14a484701d9df373b03bda7
Shell
jgstew/tools
/bash/bigfix_run_qna_debian.sh
UTF-8
785
3.1875
3
[ "MIT" ]
permissive
args=$* # TODO: detect if Ubuntu # cat /etc/os-release /etc/lsb-release | grep --ignore-case --max-count=1 --count ubuntu if ! [ -f /tmp/BESAgent-debian.deb ]; then curl -o /tmp/BESAgent-debian.deb https://software.bigfix.com/download/bes/100/BESAgent-10.0.9.21-debian6.amd64.deb fi # https://www.cyberciti.biz/faq/h...
true
3c42e7c746b20c0eca9290752c1452badb562768
Shell
westtoer/search.westtoer.be
/bin/solr-delete-one.sh
UTF-8
486
2.703125
3
[]
no_license
#!/bin/bash file="$1" relfile=$(echo "${file}" | sed -e 's/^\/mnt\/westtoer//') path=$(echo "$relfile" | sed -e 's/ /\\ /g') qval=$(echo "$relfile" | sed -e "s/%/%25/g;s/ /%20/g;s/'/%27/g;s/(/%28/g;s/)/%29/g;s/&/%26/g;s/;/%3B/g") echo "deleting id == ${relfile}" SOLRBASE="http://localhost:8983/solr"; SOLRUPDATEURI...
true
f09f3dd11bbdece735c35385d7030f94c9694318
Shell
reubenlindroos/OmniPhotos
/Python/preprocessing/openvslam/run_image.sh
UTF-8
1,618
3.53125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Output files: # 1) map.msg: map information # 2) frame_trajectory.txt: camera pose information echo "Start reconstructing camera pose." PROGRAM_FILE="/mnt/sda1/workspace_linux/openvslam/build/run_camera_pose_reconstruction " ORB_VOCAB="/mnt/sda1/workdata/openvslam_data/orb_vocab/orb_vocab.dbow2" DATA...
true
7e41887dac64a6c462b6923da427d35cbf8a8cf0
Shell
LLNL/conduit
/src/examples/docker/ubuntu/example_build.sh
UTF-8
811
2.765625
3
[ "BSD-3-Clause" ]
permissive
# Copyright (c) Lawrence Livermore National Security, LLC and other Conduit # Project developers. See top-level LICENSE AND COPYRIGHT files for dates and # other details. No copyright assignment is required to contribute to Conduit. # remove old source tarball if it exists echo "rm -f conduit.docker.src.tar.gz" rm -f ...
true
f75281fcaf2928af4b5e44a2da879bb57650e391
Shell
Philonous/haskell-servant-template
/scripts/run.sh.mustache
UTF-8
130
2.609375
3
[ "MIT" ]
permissive
#!/bin/bash set -e until nc -z database 5432; do echo "Waiting for PostgreSQL..." sleep 1 done exec /app/{{name}} "$@"
true
da43aa0e7030703b2d9392391f56ce121ce88367
Shell
okloecker/cryptrsync
/src/cryptrsync.sh
UTF-8
6,382
4.09375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -o nounset set -o errexit # script to watch a directory and if any changes occur, sync this with a remote, # either using rclone or rsync # There is a distinction between dir to watch and local dir to allow use of gocrypt: # inotifywait can't watch the encrypted view, only the original dir # c...
true
965a844efc598d1c7dadb09b84b083e8c87bea31
Shell
spetrunia/range-locking-benchmark
/run-test.sh
UTF-8
7,422
3.796875
4
[]
no_license
usage () { echo "Usage: $0 [-p] [-m] [-c] [-d] [-e] server_name test_run_name" echo " -p - Use perf for profiling" echo " -m - Put datadir on /dev/shm" echo " -c - Assume sysbench uses 4 tables and move them to different CFs." echo " -d - Same but use 2 CFs" echo " -e - Remove the secondary index" } ### ### Parse...
true
32c88627c716275f99c2afd9745dd32cf78f2775
Shell
lilab-bcb/skylab
/docker/zarr-to-loom/build.sh
UTF-8
296
3.203125
3
[]
no_license
#!/usr/bin/env bash tag=$1 if [ -z $tag ]; then echo -e "\nYou must provide a tag" echo -e "\nUsage: bash build_docker.sh TAG\n" exit 1 fi docker build . -t quay.io/humancellatlas/zarr-to-loom:$tag echo "You can now push with docker push quay.io/humancellatlas/zarr-to-loom:$tag"
true
6655ed61bc0c5d601cc7c7e2d070259d8c055283
Shell
qrvd/discord-unix-bot
/bin/some
UTF-8
525
2.640625
3
[ "BSL-1.0" ]
permissive
#!/bin/bash set -ueo pipefail function saywait() { sbin/say "$SRCID" <<< "$2" if [[ "$1" -gt 0 ]]; then sleep "$1" fi } saywait 1 '*...BODY just told me* :notes:' saywait 3 '*the **world** is gonna roll me* :notes:' saywait 3 "*I ain't the sharpest tool in the shed-* :notes:" saywait 1 '*She was looking kinda dum...
true
73e75cf1ab17a52f2cdbd07be274ff9f04c43f37
Shell
Dunaiskyi/Project
/backup/root/etc/nginx/ssl/acme/deploy/gcore_cdn.sh
UTF-8
4,581
3.359375
3
[]
no_license
#!/bin/bash # Here is the script to deploy the cert to G-Core CDN service (https://gcorelabs.com/ru/) using the G-Core Labs API (https://docs.gcorelabs.com/cdn/). # Returns 0 when success. # # Written by temoffey <temofffey@gmail.com> # Public domain, 2019 #export DEPLOY_GCORE_CDN_USERNAME=myusername #export DEPLOY_G...
true
74548b6c34cbffca351a165c5a469f3b6c7b9b05
Shell
ag3mma/learningToCode
/sec2ex6bashShellScriptingUdemy.sh
UTF-8
415
4.03125
4
[]
no_license
#! /bin/bash # Sixth exercise of the course Shell Scripting on Udemy read -p "Give a name of a file or a directory: " INPUT if [ -d "${INPUT}" ] then echo "The input is a directory." ls -l elif [ -f "${INPUT}" ] then echo "The input is a regular file." ls -l elif [ -e "${INPUT}" ] then echo "The in...
true
49b1ddbb3245d8c9f299b051a9d661af56fbd304
Shell
kushida-gh/audit
/rhel7-baseline-compare
UTF-8
2,556
2.984375
3
[]
no_license
#!/bin/bash # # Compare diff before/after baseline files, run script as root rightnow=$(date +%Y-%m-%d) systemhostname=$(hostname | cut -d '.' -f 1) out=("$systemhostname") diff before/$out-local-users-with-shell-access-$rightnow.txt after/$out-local-users-with-shell-access-$rightnow.txt >> diff/$out-group-$rightnow....
true
563c08de61e0359b63a298b7699f2e26ad8018b7
Shell
trngaje/es_losernatorconfig
/config/scripts/configscripts/mupen64plus.sh
UTF-8
8,076
3.265625
3
[]
no_license
#!/usr/bin/env bash # This file is part of The RetroPie Project # # The RetroPie Project is the legal property of its developers, whose names are # too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source. # # See the LICENSE.md file at the top-level directory of this distribution ...
true
9a407d9a518521719edf486228a3c1f2e2cef521
Shell
kdave/xfstests
/tests/btrfs/156
UTF-8
3,138
3.453125
3
[]
no_license
#! /bin/bash # SPDX-License-Identifier: GPL-2.0 # Copyright (c) 2017 SUSE Linux Products GmbH. All Rights Reserved. # # FS QA Test 156 # # Check if btrfs can correctly trim free space in block groups # # An ancient regression prevent btrfs from trimming free space inside # existing block groups, if bytenr of block gro...
true
e9752e83b1ffcafc26a9dd13e7e5334865dbe83a
Shell
ChenyunWu/DescribingTextures
/models/naive_classifier/train_ft_fc_tune.sh
UTF-8
1,011
2.515625
3
[]
no_license
#!/usr/bin/env bash cd ~/work1/DescribeTexture . /home/chenyun/anaconda3/etc/profile.d/conda.sh conda activate py37_cuda92 exp=v1 exp_i=0 partition=1080ti-short for tune in False True; do for fc in "" "512"; do for ft in "4" "3" "2" "1" "1,4" "2,4" "3,4" "1,3" "2,3" "1,2"; do if ((exp_i >= 7))...
true
dc22247081b61f20f79a9ac36ea158bdf6321245
Shell
CSCfi/pouta-openshift-cluster
/playbooks/files/monitoring/check_cinder/check_cinder.bash
UTF-8
664
3.296875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # # A wrapper Bash script to handle Python virtualenv and oc login for the # check_oso_deploy.py Python script. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [[ ! -d $HOME/check_cinder ]]; then virtualenv $HOME/check_cinder &> /dev/null source $HOME/check_cinder/bin/activa...
true
27d3d027c8f149dbda369095832c0748cbc6dd28
Shell
Methodo-Stats-Tutor/resources
/bin/pdf2php.sh
UTF-8
1,251
2.765625
3
[]
no_license
#!/bin/bash chemin=$1 entryPdf=$2 uid=$3 cd "$chemin" && mkdir -p "$uid" && cd "$uid" && pdf2htmlEX --embed-css 0 --css-filename "$uid.css" --embed-image 0 --optimize-text 1 --fit-width 1000 "$chemin$entryPdf" "$uid.html" && awk 'BEGIN{RS="</script>"}/<script/{gsub("<script.*","")}{print}END{if(RS=="")print}' "$uid...
true
7305b7e25a47f486f2ccf2cd3b512f8e017a2e4e
Shell
albertoaus/bisect
/test.sh
UTF-8
250
3.234375
3
[]
no_license
#!/bin/bash # Script para compilar y testear el ejemplo echo "Compilando" javac Hello.java echo "Lanzo Hello" java Hello > resultado.txt A=$(cat resultado.txt) if [ $A = "Hello" ]; then echo "OK" else echo "Fail" fi rm Hello.class exit
true
1351446931eb63cfa36e8c1bad30cbe1fc398a78
Shell
mrwhale/limitlessled-bash
/led.sh
UTF-8
8,168
3.96875
4
[]
no_license
#!/bin/bash if [ -z $1 ] then echo "You must enter a parameter:" echo "e.g. 'led.sh' c 1 on #turns colour zone 1 one" exit "1" fi ########## # Config ########## # Wifi controller information ipaddress="10.1.1.23" portnum="8899" ########## # Zone Information ########## # Change the value on the left hand ...
true
cb38daa80b7358c08352a0918d07ede3121ab45e
Shell
yousong/brtest
/modparams.sh
UTF-8
634
3.6875
4
[]
no_license
# # Author: Yousong Zhou <yszhou4tech AT gmail.com> # # Sample run # # ./modparams.sh ixgbe # _modparams() { # module local m="$1" # module path local mp="/sys/module/$m" # parameter path local pp="$mp/parameters" local param # not yet loaded? [ -d "$mp" ] || { echo "cannot find $mp" >&2 return 1 } ...
true
684e4eab1c76e6ceb8767bcc1fde8b3574eafbc5
Shell
npavlovikj/pegasus-trinity-test
/submit.sh
UTF-8
1,881
2.90625
3
[]
no_license
#!/bin/bash # totalmemory is in megabytes # runtime is in seconds set -e # create dax file ./dax.py > pipeline.dax # create the site catalog cat > sites.xml <<EOF <?xml version="1.0" encoding="UTF-8"?> <sitecatalog xmlns="http://pegasus.isi.edu/schema/sitecatalog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc...
true
69f4aaf5429d474c9a1be2ea36f22c3b254611cd
Shell
patrisampe/Books-AI
/extractClp.sh
UTF-8
1,278
3.578125
4
[]
no_license
CLP=Libros.clp BEGINLINES=$(cat $CLP | grep ";;; " --line-number | grep BEGIN | xargs --delimiter=: | awk '{print $1}') FILENAMES1=$(cat $CLP | grep ";;; " --line-number | grep BEGIN | xargs --delimiter=: | awk '{print $3}') FILENAMES2=$(cat $CLP | grep ";;; " --line-number | grep END | xargs --delimiter=: | awk '{pri...
true
08dfd8993c67cbef6b4ad9136b30ec2694d0f4ab
Shell
Smiledemon/junit
/checkout.sh
UTF-8
326
2.875
3
[]
no_license
#!/usr/bin/env bash name="<testsuite errors=\"0\" failures=\"0\"" result=`grep -c "${name}" report/TESTS-TestSuites.xml` name1="<testsuite errors=\"0\" failures" result1=`grep -c "${name1}" report/TESTS-TestSuites.xml` if [ "${result}" -eq "${result1}" ] then exit 0 else git reset --hard git push exit ...
true
8690b5a939af272fdffa9ec89392d9efa32825f9
Shell
mohitmayank/.dotfiles
/profiles/centos
UTF-8
331
2.984375
3
[]
no_license
#!/bin/bash ##Add self to suoders ME=$(whoami) sudo sh -c "echo '$ME ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/$ME" sudo yum install –y epel-release if [ -x "$(command -v yum-config-manager)" ]; then yum-config-manager --enable epel fi sudo yum -y install curl wget p7zip tree htop sudo yum -y install vim git tmux ...
true